There are two options (I have not tested either of them, but here we go 
anyways).

1: if it is just about getting the key state, try using Fl::get_key(myKey). 
This does not use the event system, but instead asks the input device directly. 
This works of course only if you can et least get timer events while dragging 
(which may not be the case on every platform).

2: But there is a second solution as well: you can resize a window from within 
FLTK. Just call myWindow->resize(...). So, now, place a button in the bottom 
left corner which the user can click and drag (you must capture the mouse 
pointer to get events even after the mouse leaves the window). Then simply 
resize the window any way you wish. This of course does not work with the 
window decoration.

3: another idea comes to mind: override the resize() method of your window and 
use the Fl::get_key() check. I am not sure if you can change the actual window 
size during this resize, but you can probably change the way the innards of the 
window resize.

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

Reply via email to