source: rtems-graphics-toolkit/fltk-1.3.0/test/resize.fl @ 855379e

Last change on this file since 855379e was f5c9e9c, checked in by Alexandru-Sever Horin <alex.sever.h@…>, on 07/05/12 at 09:33:03

Aded FLTK 1.3.0

  • Property mode set to 100644
File size: 1.4 KB
Line 
1# data file for the Fltk User Interface Designer (fluid)
2version 1.0300
3header_name {.h}
4code_name {.cxx}
5Function {} {open
6} {
7  Fl_Window {} {open
8    xywh {333 489 366 261} type Double resizable visible
9  } {
10    Fl_Button {} {
11      label {@<-}
12      callback {Fl_Window* w = o->window();
13w->position(w->x()-50,w->y());}
14      xywh {20 40 40 40}
15    }
16    Fl_Button {} {
17      label {@2->}
18      callback {Fl_Window* w = o->window();
19w->position(w->x(),w->y()+50);}
20      xywh {60 80 40 40}
21    }
22    Fl_Button {} {
23      label {@->}
24      callback {Fl_Window* w = o->window();
25w->position(w->x()+50,w->y());}
26      xywh {100 40 40 40}
27    }
28    Fl_Button {} {
29      label {@8->}
30      callback {Fl_Window* w = o->window();
31w->position(w->x(),w->y()-50);}
32      xywh {60 0 40 40}
33    }
34    Fl_Button {} {
35      label grow
36      callback {Fl_Window* w = o->window();
37w->size(w->w()+20, w->h()+20);}
38      xywh {30 130 110 40} labelfont 1 labelsize 18
39    }
40    Fl_Button {} {
41      label shrink
42      callback {Fl_Window* w = o->window();
43w->size(w->w()-20, w->h()-20);}
44      xywh {30 190 110 40} labelfont 1 labelsize 18
45    }
46    Fl_Box {} {
47      label {This is a test of program-generated resize() of a window.  The window should move or resize once when each button is clicked.  The program and window manager should not go into fits echoing resizes back and forth!} selected
48      xywh {150 10 160 220} box BORDER_BOX align 148
49    }
50  }
51}
Note: See TracBrowser for help on using the repository browser.