LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

control position of popup dialog box

Solved!
Go to solution

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

Download All
0 Kudos
Message 1 of 7
(5,691 Views)
Solution
Accepted by Al1234

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.

Message 2 of 7
(5,674 Views)

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

 

 

Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas

LabVIEW, programming like it should be!
0 Kudos
Message 3 of 7
(5,664 Views)

 

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...

0 Kudos
Message 4 of 7
(5,634 Views)

I've sent a message to Darren if he could re-add the file.

 

Ton

Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas

LabVIEW, programming like it should be!
0 Kudos
Message 5 of 7
(5,630 Views)

 


@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.

 

0 Kudos
Message 6 of 7
(5,607 Views)

@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

0 Kudos
Message 7 of 7
(5,600 Views)