bbean Posted August 21, 2007 Report Share Posted August 21, 2007 I want to capture when a user clicks the title bar and drags a front panel window to a new location. I only found a "Panel Resize" Event which doesn't fire when the user "moves" the front panel. Am I missing an easy way to do this? Quote Link to comment
MikaelH Posted August 21, 2007 Report Share Posted August 21, 2007 I'm, guessing you have to place the check in the timeout case, and poll the window bounds. VI:Frontpanel.WinBounds If you want to know as soon as the mouse is clicked on the title bar, you have to use the InputDevices.llb\ Mouse VIs. These will get you the current mouse postion and button states and then compare them to you VI window positon. //Mikael Quote Link to comment
bbean Posted August 21, 2007 Author Report Share Posted August 21, 2007 QUOTE(MikaelH @ Aug 20 2007, 06:05 PM) I'm, guessing you have to place the check in the timeout case, and poll the window bounds.VI:Frontpanel.WinBounds Thats what I was afraid of. Quote Link to comment
Ton Plomp Posted August 22, 2007 Report Share Posted August 22, 2007 QUOTE(bbean @ Aug 20 2007, 11:22 PM) I want to capture when a user clicks the title bar and drags a front panel window to a new location. I only found a "Panel Resize" Event which doesn't fire when the user "moves" the front panel. Am I missing an easy way to do this? Have you checked the redraw event? Ton Quote Link to comment
bbean Posted August 22, 2007 Author Report Share Posted August 22, 2007 QUOTE(tcplomp @ Aug 21 2007, 12:23 AM) Have you checked the redraw event?Ton Redraw event? I'm using LV8.2 and don't see it. Quote Link to comment
Ton Plomp Posted August 22, 2007 Report Share Posted August 22, 2007 QUOTE(bbean @ Aug 21 2007, 01:15 PM) Redraw event? I'm using LV8.2 and don't see it. Uhm, it's private, and I don't know anything about it.... :ninja: But you might check this out EDIT: checked those bu they won't work... Ton Quote Link to comment
bbean Posted August 23, 2007 Author Report Share Posted August 23, 2007 QUOTE(tcplomp @ Aug 21 2007, 12:56 PM) Uhm, it's private, and I don't know anything about it.... :ninja: But you might check this out EDIT: checked those bu they won't work... Ton :ninja: I see Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.