On 02.10.2009, at 16:10, David Lopez wrote:

> The "z-axis position" is given by the order in which an object is  
> defined in the file (same phylosophy as FLTK)
> It would be desirable that the editor could provide the function  
> "send to background / foreground" so that the user could create or  
> add objects in any order, and then adjust wich one is in background/ 
> foreground.
> The only way I know to change the z-axis order in FLTK when the  
> objects are already created is to destroy them and then recreate  
> them in the desired order.
> Somebody has a better solution?

There is no need to destroy the widgets. You can change the order by  
removing the widget from its parent group and adding or inserting it  
somewhere else.

Note however that, even if the widgets may get drawn in the expected  
order, FLTK has no concept of Z or depth among widgets except for the  
group-child relation. So even if a widget is "aabove" another widget,  
there is no guarantee that they are rendered in a specific order.

Matthias

_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to