On 27.11.2009, at 10:56, Ronald Vink wrote:
> In fluid I can position the mainwindow. The coordinates are in the .fl file.
> Code snippet:
> Fl_Window mainWindow {
> label {hello world} open selected
> xywh {111 150 985 690} type Double box UP_BOX labelsize 12 hotspot
>
> In the generated .cpp file the x and y position coordinates are removed.
> Code snippet:
> ReloaderGui::ReloaderGui(int argc, char **argv) {
> { mainWindow = new Fl_Double_Window(985, 690, "hello world");
> mainWindow->box(FL_UP_BOX);
> mainWindow->labelsize(12);
>
> How can I tell fluid to use the FL_Double_Window constructor with x,y,w and h
> params ?
There is no such function. But you can use the "Extra Code" field to enter
something like "o-<position(100, 100);".
Matthias
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk