09-09-2010 06:58 PM
Hi,
Is there a better method of positioning a popup dialog below a string control? - see attached (run parent.vi)
Can I obtain a Pane ref and a VI ref given a string control reference? so that I only need to pass the string ref
thanks
Al
Solved! Go to Solution.
09-09-2010 11:29 PM - edited 09-09-2010 11:29 PM
You can use the "Owning VI" property for the string reference to get a reference to the parent VI. From that you can get the pane reference as well. Note: you should wire your error clusters. Errors can and do happen.
09-10-2010 12:51 AM
If your VI has multiple panes (or just to be prepared), you can find, here a VI that returns the pane of a control.
Ton
09-10-2010 07:45 AM
Saverio, Thanks I've now removed the "this VI" ref - I completely missed that method in "OwningVI"
I'm using 8.5 is that why I don't see the "Panel" method in "OwningVI"? or are you doing some scripting wizardry?
(I removed all my error handling for clarity)
Ton, If I go to your link ( here ) I don't see a download button...
09-10-2010 07:50 AM
I've sent a message to Darren if he could re-add the file.
Ton
09-10-2010 09:55 AM
@Al1234 wrote:
Saverio, Thanks I've now removed the "this VI" ref - I completely missed that method in "OwningVI"
I'm using 8.5 is that why I don't see the "Panel" method in "OwningVI"? or are you doing some scripting wizardry?
It's not a method - it's a property. In the popup menu it's called "Front Panel". The default on the Property Node is to display only short names.
09-10-2010 10:04 AM
@smercurio_fc wrote:
It's not a method - it's a property. In the popup menu it's called "Front Panel". The default on the Property Node is to display only short names.
Sorry - typing without my brain working.
Thanks, It works perfectly