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

Home » Public Forums » archive » How to hide rois programatically ?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
How to hide rois programatically ? [message #84796] Tue, 11 June 2013 13:10 Go to next message
Leonardo R. Sbaraini is currently offline  Leonardo R. Sbaraini
Messages: 26
Registered: October 2007
Junior Member
I want to set a shortcut key to a menu item, and then use a keyboard key to hide rois. I was not able to use "IDLgrROI", lack information of use.

Any tips ?
Re: How to hide rois programatically ? [message #84797 is a reply to message #84796] Tue, 11 June 2013 13:22 Go to previous messageGo to next message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Leo_sjc writes:

> I want to set a shortcut key to a menu item, and then use a keyboard key to hide rois. I was not able to use "IDLgrROI", lack information of use.
>
> Any tips ?

I usually build a "layer" object (just a container) that I add graphical
objects to. When the Draw method of the layer object is called, it first
checks to see if its "visible" property is set. If so, it calls the draw
methods of the graphical objects inside it. If not, nothing is drawn.
This allows me to turn on and off groups of graphical objects, as I
desire.

Cheers,

David



--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thue. ("Perhaps thou speakest truth.")
Re: How to hide rois programatically ? [message #84808 is a reply to message #84796] Tue, 11 June 2013 18:45 Go to previous message
ben.bighair is currently offline  ben.bighair
Messages: 221
Registered: April 2007
Senior Member
On Tuesday, June 11, 2013 4:10:38 PM UTC-4, Leo_sjc wrote:
> I want to set a shortcut key to a menu item, and then use a keyboard key to hide rois. I was not able to use "IDLgrROI", lack information of use.
>
>
>
> Any tips ?

I'm not sure I understand why you can't simply use the HIDE = 0/1 property for each ROI or ROIGroup. Is it setting the property that is the issue for you? Or is it connecting a menu action with the show/hide property?

Ben
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: logarithmic Y axis in cgContour
Next Topic: GetValueAtLocation() method

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

Current Time: Wed Oct 08 11:45:47 PDT 2025

Total time taken to generate the page: 0.00724 seconds