LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Programatically customize a control

Solved!
Go to solution

@Hooovahh wrote:

@tst wrote:

I don't think I ever tried this, but it might be relevant:

 

https://lavag.org/topic/20145-vector-boolean-creator/


Thanks for the shoutout. Yes under the hood it uses the same LabVIEW functions replacing sections of the control file with a new vector image so it scales better.  I have updated that example since that post to use native 2D picture controls instead of a Windows explorer search, and added the Google Material icons but I didn't want to post it unless I thought it was ready since it is a somewhat large attachment.


Unfortunately, on LAVAG, your code is

paul_a_cardinale_0-1726671176062.png

Can you repost it?

0 Kudos
Message 11 of 17
(140 Views)

@paul_a_cardinale wrote:


Unfortunately, on LAVAG, your code is

paul_a_cardinale_0-1726671176062.png

Can you repost it?


I can access it and download it. Are you logged in on LavaG?

Rolf Kalbermatter
My Blog
0 Kudos
Message 12 of 17
(136 Views)

@rolfk wrote:

@paul_a_cardinale wrote:


Unfortunately, on LAVAG, your code is

paul_a_cardinale_0-1726671176062.png

Can you repost it?


I can access it and download it. Are you logged in on LavaG?


Oops.  That was the problem.  I wasn't logged in (normally login is auto, so I don't think about it).

0 Kudos
Message 13 of 17
(126 Views)

@Hooovahh wrote:

@tst wrote:

I don't think I ever tried this, but it might be relevant:

 

https://lavag.org/topic/20145-vector-boolean-creator/


Thanks for the shoutout. Yes under the hood it uses the same LabVIEW functions replacing sections of the control file with a new vector image so it scales better.  I have updated that example since that post to use native 2D picture controls instead of a Windows explorer search, and added the Google Material icons but I didn't want to post it unless I thought it was ready since it is a somewhat large attachment.


Hi Hooovahh,

 

Please tell me about this class specifier constant:

paul_a_cardinale_0-1726673177422.png

How did you create it?

Can you create other special reference constants?

0 Kudos
Message 14 of 17
(124 Views)

@paul_a_cardinale  wrote:

Hi Hooovahh,

 

Please tell me about this class specifier constant:

paul_a_cardinale_0-1726673177422.png

How did you create it?

Can you create other special reference constants?


Using the ctrl+b Quick Drop:

Drop a Class Specifier Constant on the BD > Select it > ctrl+space > type "VI" > ctrl+b.

This also works for "Application".

 

Programmatically:

Invoke method "Set Type" of class "ClassSpecifierConstant".

You can either specify the class by its unique ID string or by its name (for this you need to set parameter "AllowAltName" to True).

 

Regards,

Raphaël.

0 Kudos
Message 15 of 17
(111 Views)

I don't want to derail the thread more, but this got me motivated to post an update to my Boolean Vector Control utility.  So I cleaned it up and posted it over on VIPM.IO

 

https://www.vipm.io/package/hooovahh_boolean_vector_controls/

 

Install the package and its dependencies and you'll have a Tools >> Hooovahh >> Boolean Control Creation...  Once ran it will start trying to display all the icons the toolkit installed.  I'll update the LAVA thread with more details.

Message 16 of 17
(95 Views)

@raphschru wrote:

@paul_a_cardinale  wrote:

Hi Hooovahh,

 

Please tell me about this class specifier constant:

paul_a_cardinale_0-1726673177422.png

How did you create it?

Can you create other special reference constants?


Using the ctrl+b Quick Drop:

Drop a Class Specifier Constant on the BD > Select it > ctrl+space > type "VI" > ctrl+b.

This also works for "Application".

 

Programmatically:

Invoke method "Set Type" of class "ClassSpecifierConstant".

You can either specify the class by its unique ID string or by its name (for this you need to set parameter "AllowAltName" to True).

 

Regards,

Raphaël.


But apparently no way to do it with a mouse?

0 Kudos
Message 17 of 17
(73 Views)