cancel
Showing results for 
Search instead for 
Did you mean: 

Programatically customize a control

SOLVED
paul_a_cardinale
Active Participant

Re: Programatically customize a control

Message contains a hyperlink Message contains an image

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

rolfk
Knight of NI

Re: Programatically customize a control

Message contains an image

@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
DEMO, Electronic and Mechanical Support department, room 36.LB00.390
paul_a_cardinale
Active Participant

Re: Programatically customize a control

Message contains an image

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

paul_a_cardinale
Active Participant

Re: Programatically customize a control

Message contains a hyperlink Message contains an image

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

raphschru
Active Participant

Re: Programatically customize a control

Message contains an image

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

Hooovahh
Proven Zealot

Re: Programatically customize a control

Message contains a hyperlink

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.

paul_a_cardinale
Active Participant

Re: Programatically customize a control

Message contains an image

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