I want to have one screen using Fl_Tile and want after setting it's
sizes to maintain the proportion when the window is resized, but
actually the bottom group is always resized to fill the parent window
instead of all tiles grow proportionally.
Thanks in advance for any help !
# data file for the Fltk User Interface Designer (fluid)
version 1.0300
header_name {.h}
code_name {.cxx}
decl {\#include <FL/Fl_Double_Window.H>} {public global
}
decl {template<typename T>
void show_create(T*& aptr) {
if (!aptr) aptr = new T();
aptr->show();
}} {
comment {This template checks if the pointer is already assigned,
if not it creates a new object.} public global
}
class DAD_Base_Window {
comment {This is the base class for all application windows and is used to
hold common code/functionality.} open : {public Fl_Double_Window}
} {
decl {DAD_Base_Window *callee;} {protected local
}
Function {DAD_Base_Window(int X, int Y, int W, int H, const char *L) :
Fl_Double_Window(X, Y, W, H, L)} {open
} {
code {callee = NULL;} {}
}
Function {DAD_Base_Window(int W, int H, const char *L):Fl_Double_Window(0, 0,
W, H, L)} {open
} {
code {//printf("Hello, World!\\n");} {}
}
Function {make_window_when_null(DAD_Base_Window &aref)} {open return_type
{static DAD_Base_Window*}
} {
code {//if (!aref) aref =
return &aref;} {}
}
}
widget_class DAD_SqliteCC {open selected
xywh {58 74 800 530} type Double resizable
class DAD_Base_Window visible
} {
Fl_Menu_Bar menuBar {
xywh {0 0 800 30} labelsize 18 textsize 18
} {
Submenu menuFile {
label File open
xywh {10 10 100 20}
} {
MenuItem mDBNew {
label {New DB}
xywh {10 10 100 20}
}
MenuItem mDBOpen {
label {Open DB}
xywh {10 10 100 20}
}
MenuItem mDBClose {
label {Close DB}
xywh {10 10 100 20} divider
}
MenuItem mExecute {
label Execute
xywh {10 10 100 20} divider
}
MenuItem mExit {
label Exit
xywh {10 10 100 20}
}
}
Submenu menuSettings {
label Settings open
xywh {10 10 100 20}
} {
Submenu menuEncoding {
label Encoding open
xywh {10 10 100 20}
} {
MenuItem mUTF8 {
label UTF8
xywh {10 10 100 20}
}
}
MenuItem mPreferences {
label Preferences
xywh {10 10 100 20}
}
}
Submenu menuHelp {
label Help open
xywh {10 10 100 20}
} {
MenuItem mAbout {
label About
xywh {10 10 100 20}
}
}
}
Fl_Tile tile {open
xywh {0 30 800 500}
} {
Fl_Group {} {open
xywh {0 30 800 190} box DOWN_BOX
} {}
Fl_Group {} {open
xywh {0 220 800 170} box DOWN_BOX
} {}
Fl_Group {} {open
xywh {0 390 800 140} box DOWN_BOX
} {}
}
}
Function {} {open
} {
code {DAD_SqliteCC *win = new DAD_SqliteCC;
win->show(argc, argv);} {}
}
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk