LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Picture Ring

Solved!
Go to solution

Unfortunately, you can't customize a control programmatically, but using Scripting method.

 

Because your solution would be to either programmatically customize the custom control you're using in your application, and replacing the original custom control *.ctl file into your exe file (or in data folder if you created your exe as is), or to create other custom control, and changing the control used into your application front panel.

No one of these options is feasible without scripting, and even with scripting, I'm not sure if it's possible inside an exe.

 

Regards,

Olivier L. | Certified LabVIEW Developer


0 Kudos
Message 31 of 35
(1,165 Views)

In this thread in the Breakpoint you will find a catalog of links to picture related threads.

 

Evertything you need to develop apps with dynamic GUI is covered n those links.

 

I have delivered mre than one application where the make-up of the GUI was un-known to me at development time and was implemented by rendering the FP objects in picture controls.

 

Discalimer:

 

Ni provides a lot of work when we use the of-the-pallette objects. When we choose to "roll-out-won" we take on a lot of work. Whatever you can do to make the application harness th existing LV functionality will help a great deal. Even combining a picture control with a boolean into a cluster and using "off-screen" controls will save you work.

 

For more reading on the subject serach for the phrase "Controls on the fly" to find out how this topic has gradually morphed from "You cant' do that!" into a "You can but do you really want to?"

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 32 of 35
(1,151 Views)

Hi Gak,

 

I have changed everything to the image indicator method already and I have implemented a mouse click event.

 

However, I have a minor problem with the pictures' property nodes --> "Disabled"

I realise that for pictures, the property node "Disabled" will not work. In other words, even if you have disabled those pictures, you can still click on them and the loops will still run, which is not what I want.

 

This property node is important in my program because when the stall owner edits the food items menu by updating if they are sold out or not, the food items pictures should "Grey out and disabled" so that even if the customer clicks on the food item picture, the loop for that particular sold out food item will not run.

 

Is there a method to disable these pictures effectively when they are updated as "Sold out items?"

 

Miu

0 Kudos
Message 33 of 35
(1,136 Views)

I ran into that too. There are two options that come to mind:

  • Use the value change event
  • Check the disabled status in your mouse click event. If the status is disabled then do not execute the code you would normally execute
=====================
LabVIEW 2012


Message 34 of 35
(1,130 Views)

@SteveChandler wrote:

I ran into that too. There are two options that come to mind:

  • Use the value change event
  • Check the disabled status in your mouse click event. If the status is disabled then do not execute the code you would normally execute

Yes the disbaled status should suggest an alternative option that is in stock.

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 35 of 35
(1,102 Views)