On 3 May 2009, at 17:22, Siggi wrote:

>> First: Please post such questions to fltk.general.  
>> fltk.development is
>> reserved for development of FLTK itself.
>
> I'm sorry. I didn't know that.

Yes - it's a common problem: it is in the notes for each list, but  
people do seem to miss it...

Anyway, regarding your original question, an alternate approach that  
I have taken on some occasions is to use the draw() method of my  
subclass widget, rather than the resize() method.
The idea being that I am going to add a custom draw() method anyway,  
and often the resize events are not interesting to the program until  
it has to redraw the widget anyway... It's probably a pointless  
optimisation, but...
The idea, of course, is for the draw method to record the dimensions  
of the widget each time it runs, and on that basis it can detect any  
changes in the dimensions and react accordingly.




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

Reply via email to