diff --git a/Timeline/TLE.fl b/Timeline/TLE.fl index 95a5586..ea9d097 100644 --- a/Timeline/TLE.fl +++ b/Timeline/TLE.fl @@ -1,6 +1,6 @@ # data file for the Fltk User Interface Designer (fluid) version 1.0108 -header_name {.H} +header_name {.H} code_name {.C} comment {// // Copyright (C) 2008 Jonathan Moore Liles @@ -20,7 +20,7 @@ comment {// // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. // } {in_source in_header -} +} decl {const float STATUS_UPDATE_FREQ = 0.5f;} {} @@ -145,10 +145,11 @@ Fl::lock(); } Function {TLE()} {open } { - code {Fl::visual( FL_DOUBLE | FL_RGB8 ); + code { -make_window(); +Fl::visual( FL_DOUBLE | FL_RGB8 ); +make_window(); Fl::visible_focus( 0 ); @@ -159,6 +160,15 @@ system_colors[ 0 ] = (Fl_Color)Fl::get_color( FL_BACKGROUND_COLOR ); system_colors[ 1 ] = (Fl_Color)Fl::get_color( FL_FOREGROUND_COLOR ); system_colors[ 2 ] = (Fl_Color)Fl::get_color( FL_BACKGROUND2_COLOR ); +// try to fill the screen +{ + int sx, sy, sw, sh; + + Fl::screen_xywh( sx, sy, sw, sh ); + + main_window->resize( sx, sy, sw, sh ); +} + Fl::add_timeout( STATUS_UPDATE_FREQ, update_cb, this ); fl_message_icon()->box( FL_RSHADOW_BOX );