>
> Maybe I'm being stupid but would you mind providing a simple
> Fluid example that *should* work?
This works:
# data file for the Fltk User Interface Designer (fluid)
version 1.0108
header_name {.h}
code_name {.cxx}
decl {\#include <FL/Fl_Sys_Menu_Bar.H>} {selected public global
}
Function {} {open
} {
Fl_Window main_win {open
private xywh {476 329 610 465} type Double visible
} {
Fl_Menu_Bar main_menu {open
private xywh {0 0 610 20}
class Fl_Sys_Menu_Bar
} {
Submenu {} {
label submenu open
private xywh {0 0 62 20}
} {
MenuItem {} {
label item
private xywh {0 0 30 20}
}
}
}
}
}
/* end of file */
NOTE: I had to manually add the #include for sys_menu_bar - fluid
doesn't automatically know to add the headers for widgets when you
change their class... In general, you would be changing the class to
match some widget subclass of your own manufacture of course, so fluid
would not know what headers to add anyway.
SELEX Sensors and Airborne Systems Limited
Registered Office: Sigma House, Christopher Martin Road, Basildon, Essex SS14
3EL
A company registered in England & Wales. Company no. 02426132
********************************************************************
This email and any attachments are confidential to the intended
recipient and may also be privileged. If you are not the intended
recipient please delete it from your system and notify the sender.
You should not copy it or use it for any purpose nor disclose or
distribute its contents to any other person.
********************************************************************
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk