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 #90563 is a reply to message #90560] Tue, 10 March 2015 11:23 Go to previous messageGo to previous message
PMan is currently offline  PMan
Messages: 61
Registered: January 2011
Member
On Tuesday, March 10, 2015 at 12:17:31 PM UTC-4, Chris Torrence wrote:
> Hi Paul,
>
> You are getting what looks like two select events because the first time it is trying to directly select the plot while the second time it is trying to use a "select box" to select anything within the box. If you change your handler to return "1", then it only goes in there once, because the selection was successful.
>
> So the short answer is that you need to take that into account when you're designing your handler.
>
> Hope this helps.
>
> -Chris

If I change the SelectChange to return '1', I still get two events in for 'data space' plus one more for the 'plot.' But the plot is easy to id and ignore. But I see what your saying, about the call from idlitmanipselectbox__define.pro when return is '0'. When return is '1' there is second call from graphicsmanip__define.pro instead.

Anyway, it seems either way there are at least two calls to selectChange. The only way I can differentiate is using scope_traceback() and just look for the calls from _idlitmanipulator__define.pro and only consider those valid.
[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 19:31:09 PDT 2025

Total time taken to generate the page: 0.00401 seconds