>  OK, it seems no one has an answer. :-(
>  Has anyone ever implemented a magnifying lens mechanism on images
> with behaviour more or less similar to my intentions? If yes, how was
> that made?

The problem may be that pressing a mouse button on a window may  
"capture" the mouse and connect it to the window that you clicked  
into, ignoring any newly popped up windows until you release the moue  
button again. However, this depends very much on your window manager,  
something we have very little influence on from the FLTK side of the  
world.

My suggested solution would be to customize the drawing function of  
the widget containing the image, and then - depending on some flag  
you would set in the handle() function - draw the magnifying class on  
top of the image, avoiding another window altogether. You can even go  
and create an image with a magnifying glass, antialiase edges and a  
drop shadow to give the impression of depth... . Plus, if the  
magnifier must overlap other parts of the window, you can draw it in  
the top-levels draw() function, but you must make sure to set damage  
flags correctly when the mouse moves. The only drawback is, that you  
magnifying glass can not leave the top-level window.

Matthias

----
http://robowerk.com/


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

Reply via email to