Stan wrote:
> So perhaps the easiest thing to do is just put things where you
> want them to be.
>  Fl_Widget** a = array();
>  Fl_Widget* tmp = a[2];
>  a[2] = a[1];
>  a[1] = a[0];
>  a[0] = tmp;
>
> A couple of gotchas to watch out for...  (1) Fl_Scroll has 2
> more children than you think it does, and they'll get moved back
> to the last 2 spots in the array no matter what you do.  (2) After
> you're done moving the children around as you described, the
> group tab order will be 3-1-2-(stop).  The tab key won't advance
> the focus from 2->3.  Both of these little issues apply no matter
> what method you use to move the children around, AFAIK.

Thanks for your advises, it will avoid a huge headache.
I've already noticed that Fl_Scroll has 2 child widgets (the 2 scrollbars I 
guess) and that they're placed at the end of the tab.
On the other hand I did'nt know about the twisted order of the group tab. It's 
a good thing to know before manipulate the tab.

Thanks for your example but infortunately it doesn't work.
This line cause an error:
Fl_Widget** a = array();

"invalid conversion from Fl_Widget* const* to Fl_Widget**

I tried a ugly cast:
Fl_Widget** a = (Fl_Widget**)array();

no more error but the tab move around doesn't work.
Any idea ?

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

Reply via email to