> Do I need to manually detect a window resize and respond?
This is what I do. > If so how should I detect this event? I didn't see an event > for it so currently I check the window size during draw() to > see if it has changed, which feels awkward. And this is how I usually do it. You can do it other ways (e.g. subclassing your widget and overriding its resize() method to detect the resize...), but checking in the draw method is pretty robust, and can be "timely" in the sense that you only respond to the resize when there's something to redaw... You do have to watch out though - depending on how the window manager handles resizing (e.g. if it shows the content changing while resizing) you might do an awful lot of work scaling the images during the drag - sometimes it is betetr to wait until the drag has stopped and just do all the rescaling once at the final size... SELEX Sensors and Airborne Systems Limited Registered Office: Sigma House, Christopher Martin Road, Basildon, Essex SS14 3EL A company registered in England & Wales. Company no. 02426132 ******************************************************************** This email and any attachments are confidential to the intended recipient and may also be privileged. If you are not the intended recipient please delete it from your system and notify the sender. You should not copy it or use it for any purpose nor disclose or distribute its contents to any other person. ******************************************************************** _______________________________________________ fltk mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk

