Help wanted on SIMPLE task
Seth Manley
samofvt at hotmail.com
Sun Mar 4 05:42:26 PST 2007
>
>Hi!
>
>I am very new to wx programming and I need help on a simple task.
>
>How do I make a simple selection dragbox (using e.g. OnMouseEvent ) in a
>graphics window without destroying what's in it?
>I have the "Cross-Platform GUI Programming whith wxWidgets" book, and I
>think I have seen the source listing for the method there, but I just
>can't seem to find int.
>I have gone thru it several times and failed.
>
>I do not want to paint anything in the graphics window, I just want to
>make a flickering frame over the content to select an area to get input to
>a zooming in function.
>
>Extremely standard, apparently too simple to be demonstrated in wxWidgets
>samples, since I cannot find it there.
>
>Bengt
>
As far as I know, there are no built-in functions to do it. You'll need to
implement handlers for the mouse events: EVT_LEFT_DOWN(func)
EVT_LEFT_UP(func) and also EVT_MOTION(func) at least (SEE wxMouseEvent). In
the evt_motion handler, you'll need to erase/repaint the drag-box.
-Seth
http://www.xmlworkbench.com
_________________________________________________________________
Win a Zunemake MSN® your homepage for your chance to win!
http://homepage.msn.com/zune?icid=hmetagline
More information about the wx-users
mailing list