07-27-2016 07:28 AM
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:
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
Solved! Go to Solution.
07-27-2016 07:36 AM
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
07-27-2016 02:33 PM
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
07-27-2016 04:21 PM
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.
07-29-2016 12:15 AM
@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 @Norbert_B meant also?
@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
07-29-2016 06:22 AM
@RautSa wrote:
[...] Is this what @Norbert_B meant also?[...]
-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
08-17-2022 12:57 AM
@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.
Is there a more recent link for the example? On lava there is only an outdated webring.com link.