comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Locking graphics in GUI / disable resize, rotate or translate
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Locking graphics in GUI / disable resize, rotate or translate [message #90503 is a reply to message #90501] Thu, 05 March 2015 08:56 Go to previous messageGo to previous message
chris_torrence@NOSPAM is currently offline  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
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: FG-graphics polyline - moving the line and changing length/slope
Next Topic: IDLgrImage and the channel keyword

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 15:28:27 PDT 2025

Total time taken to generate the page: 0.00433 seconds