FLTK logo

Re: is it safe to sort children?

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 ]

Re: is it safe to sort children? Stan Mar 27, 2007  
 
> 	Maybe you don't even need to call insert() if your just moving
> 	widgets around, since 'sorting' has more to do with the widget
> 	x/y positions than it does with their position in the internal
>       arrays.
>

Exactly. I just add() the widgets, then sort the child
array by x/y position.

Thanks
Stan

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'.