> I want to resize a window when clicking on a button within > it. I call resize(new_width, new_height) and the window > resizes fine. But when I then manually drag the window with > the mouse, it flips back and is drawn in its original size! > Is there some method I need to call, such as redraw? > I also tried changing the size using w() and h() directly, > but that doesn't do anything. Why? > Any help much appreciated!
Look at the example resize.cxx in the test folder - if you build that, does it work for you? Actually, I find I have to comment out the call fltk::warp_mouse(...) in that example to get it to build at all for me right now, but once I do that, the program builds, and the resize and move behaviour seems to be correct. If that example works, it should give you a clue how to fix up your code to work as well. 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

