Hans George wrote:
>> Maybe try telling the parent widget to redraw().
> Oh, nice idea! I tried, but it didn`t help, my Item doesn`t redraw ...
>
>> I would look closely at the parent widget's source code
>> you're deriving from (Menu?) to see how it handles redrawing
>> items as you drag over/push items.
>
> Can you describe this more closely? The fltk::Menu class doesn`t
> have an own handle() and redraw() methode ...
I'm afraid I'm not familiar with 2.x enough to be more specific,
so I can't advise more than to study the FLTK code here.
(Just a recommendation on how to approach things when in
unfamiliar territory.)
Follow the class derivation path down if need be. Possibly
what you're looking for isn't in Menu's own source code,
but in the widget(s) it derives from (Group, Widget..).
Because Menu is a built-in fltk widget, there may be code
hooks in the base classes that helps implement Menu.
This is all speculation mind you.. the idea is to look at
fltk's code, and figure out exactly how it implements the
Menu drawing behavior so that you can visualize how your
modifications will operate within fltk's implementation.
Possibly someone else here who's more familiar with fltk2
can help you on this one.
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk