Move a Control
RGerkin
Function MoveControl(name,dx,dy[,win])
string name,win
variable dx,dy
win=selectstring(paramisdefault(win),win,winname(0,1))
controlinfo /w=$win $name
modifycontrol $name pos={v_left+dx,v_top+dy}, win=$win
End
string name,win
variable dx,dy
win=selectstring(paramisdefault(win),win,winname(0,1))
controlinfo /w=$win $name
modifycontrol $name pos={v_left+dx,v_top+dy}, win=$win
End
Forum
Support
Gallery
Igor Pro 9
Learn More
Igor XOP Toolkit
Learn More
Igor NIDAQ Tools MX
Learn More
Since WinName(0,1) returns the top Graph window, you might want to use WinName(0,65) so you get the top graph OR panel window.
John Weeks
WaveMetrics, Inc.
support@wavemetrics.com
August 6, 2010 at 03:37 pm - Permalink