Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado
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 ?
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.")
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