Timeline: Try to make the window fill the screen at startup.

pull/3/head
Jonathan Moore Liles 2009-12-26 02:25:01 -06:00
parent 00d0d733b5
commit e2f42b1c8b
1 changed files with 14 additions and 4 deletions

View File

@ -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 {
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 );