FLTK logo

[fltk.general] Order of variables in FLUID

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 All Forums  |  Back to fltk.general  ]
 
Previous Message ]New Message | Reply ]Next Message ]

Order of variables in FLUID "anmol.... Oct 06, 2020  
 
I've run into a problem multiple times. Essentially I have a double_window with derived tab and in the tab there are groups with widgets.
The order of definition of groups decides the display order of tabs.
So I need to have a particular order there.

As a result I have issues with static defined widgets defined after they are first called.

For instance a widget in Tab 1 may need to initialize or obtain values from a widget in Tab 2.

Is there a way to specify the order of static widget declaration? Or a way to tell the compiler to parse all the statics first and then the code?

This can be avoided with globals - but I would rather not extern all my widgets.

--
You received this message because you are subscribed to the Google Groups "fltk.general" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fltkgeneral+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/fltkgeneral/3fbede45-49f0-4edc-a3a5-e0fec40efbb5n%40googlegroups.com.
Direct Link to Message ]
 
     
Previous Message ]New Message | Reply ]Next Message ]
 
 

Comments are owned by the poster. All other content is copyright 1998-2024 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.