Sun, 11/11/2012 - 05:08 am
Does anybody know if it is possible to suppress the marquee in a graph when shift is pressed. I would like to do some drag and drop stuff if shift is pressed. The getkeystate(0) == 4 is clear to me but I have no idea about the marquee handling. On the one hand I don't want to see the marquee in this case and on the other hand (and even more important) I need to catch mousemoved and mouseup events from the winhook eventcode which seems not to be possible if the marquee is drawn. In addition I would be happy if I could switch off the default drag and drop functionality given by IGOR itself.
Any ideas on that?
Alex
Alex
November 24, 2012 at 07:19 am - Permalink
STRUCT WMWinHookStruct &s
Variable disableMarquee = 0
switch(s.eventCode)
case 3: // mousedown event
// do whatever code here...
disableMarquee = 1
break
endswitch
return disableMarquee
End
December 12, 2014 at 03:46 pm - Permalink
Igor 7 will have a new ModifyGraph keyword, UIControl with a series of bit flags to control user interaction with graph elements. One of the flags (so far, at least) will disallow the marquee.
John Weeks
WaveMetrics, Inc.
support@wavemetrics.com
December 12, 2014 at 04:44 pm - Permalink