Re: Locking graphics in GUI / disable resize, rotate or translate [message #90503 is a reply to message #90501] |
Thu, 05 March 2015 08:56   |
chris_torrence@NOSPAM
Messages: 528 Registered: March 2007
|
Senior Member |
|
|
On Thursday, March 5, 2015 at 9:43:18 AM UTC-7, Paul Mallas wrote:
> Hello,
>
> I created a fancy GUI for a project and showed my 10 year old son it. He is interesting in programming and I wanted show off the sorts of things you can make.
>
> Anyway, within about three seconds he can screwed up all the graphics with in the Gui. My question is, is there a way to lock graphics in a GUi? I am using window_widgets with either a map() graphic or image () graphics. I still need the user to be able to click on the map so I can get points from the user clicks, but I don't want the user to be able to zoom, rotate or translate the graphic.
>
>
> Any idea how to do this?
>
> Best Regards,
> Paul
Hi Paul,
You can use the EVENT_HANDLER keyword on the Window object, then override a bunch of the methods, and return "0" to skip the default event handling.
Look in the docs under the Widget_Window.
Cheers,
Chris
|
|
|