LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to add an element to control's Properties?

Solved!
Go to solution

Hello,

 

I have a task to create an XControl, which has the ability to set a limit for the input string length. I found a good example, made by Prabhakant Patil, and it works like a charm. My only problem is that the limit should not be set by using property node, local variable or any other "programmatic" way, but instead like shown in the picture:

 Pic_5.png

 

It's okay for the XControl to have property nodes and variables, but the user wants to set the limit in VI differently. I have not found a way to accomplish this, but I wanted to be sure. Since people here on forums are much more wiser and experienced in LabVIEW than me I figured someone would know how to do this. Or tell me it ain't possible.

 

I'm using LabVIEW2014 and Microsoft Windows 7.

 

 

-RautSa

0 Kudos
Message 1 of 7
(4,779 Views)

You cannot modify the default property dialog.

However, you can create a custom context menu for the XControl which calls a configuration VI looking similar to the property dialog. This dialog has to be implemented by yourself.

 

Norbert

Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
0 Kudos
Message 2 of 7
(4,775 Views)

In your facade VI, trap the "Pane": Shortcut Menu Activation? event.  There setup the custom menu you want.

Also trap the "Pane": Shortcut Menu Selection (User) event.  There process the menu selection.

Dig through my XControl template for an example

"If you weren't supposed to push it, it wouldn't be a button."
0 Kudos
Message 3 of 7
(4,739 Views)
Solution
Accepted by RautSa

You can creaet your own VIs and make them show up on ctrl's property tabs.  Looks exactly the same as shown in your picture.

https://lavag.org/forum/23-development-environment-ide/

 

Keep in mind that, the ctrl property window only works in LabVIEW, won't work after built into exe.

 

George Zou
Message 4 of 7
(4,725 Views)


@zou wrote:

You can creaet your own VIs and make them show up on ctrl's property tabs.  Looks exactly the same as shown in your picture.

https://lavag.org/forum/23-development-environment-ide/

 

Keep in mind that, the ctrl property window only works in LabVIEW, won't work after built into exe.

 



This seems to be exactly what I was looking for. Thank you very much! Is this what 

 

@paul_cardinale wrote:

In your facade VI, trap the "Pane": Shortcut Menu Activation? event.  There setup the custom menu you want.

Also trap the "Pane": Shortcut Menu Selection (User) event.  There process the menu selection.

Dig through my XControl template for an example

This I have not yet looked into, I'll have to get it downconverted first. Will this work in edit mode, or only in run-time?

 

-RautSa

 

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

@RautSa wrote:

[...] Is this what [...]

-RautSa


Kind of. Thanks George for linking that stuff.

My idea was to create a complete separate properties dialog. This has the advantage that you can make that dialog accessible in runtime as well if required...

 

Norbert

Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
0 Kudos
Message 6 of 7
(4,656 Views)

@zou wrote:

You can creaet your own VIs and make them show up on ctrl's property tabs.  Looks exactly the same as shown in your picture.

https://lavag.org/forum/23-development-environment-ide/

Is there a more recent link for the example? On lava there is only an outdated webring.com link.

0 Kudos
Message 7 of 7
(1,973 Views)