Browse Source

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

tags/non-daw-v1.1.0
Jonathan Moore Liles 15 years ago
parent
commit
e2f42b1c8b
1 changed files with 14 additions and 4 deletions
  1. +14
    -4
      Timeline/TLE.fl

+ 14
- 4
Timeline/TLE.fl View File

@@ -1,6 +1,6 @@
# data file for the Fltk User Interface Designer (fluid) # data file for the Fltk User Interface Designer (fluid)
version 1.0108 version 1.0108
header_name {.H}
header_name {.H}
code_name {.C} code_name {.C}
comment {// comment {//
// Copyright (C) 2008 Jonathan Moore Liles // Copyright (C) 2008 Jonathan Moore Liles
@@ -20,7 +20,7 @@ comment {//
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
// //
} {in_source in_header } {in_source in_header
}
}


decl {const float STATUS_UPDATE_FREQ = 0.5f;} {} decl {const float STATUS_UPDATE_FREQ = 0.5f;} {}


@@ -145,10 +145,11 @@ Fl::lock();
} }
Function {TLE()} {open 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 ); 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[ 1 ] = (Fl_Color)Fl::get_color( FL_FOREGROUND_COLOR );
system_colors[ 2 ] = (Fl_Color)Fl::get_color( FL_BACKGROUND2_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::add_timeout( STATUS_UPDATE_FREQ, update_cb, this );


fl_message_icon()->box( FL_RSHADOW_BOX ); fl_message_icon()->box( FL_RSHADOW_BOX );


Loading…
Cancel
Save