Lookout

cancel
Showing results for 
Search instead for 
Did you mean: 

interlocks in lookout

what's the best way to do this: if I have a pot, and some condition a is true, then the pot is modifiable. If a is false, then the pot is not modifiable.
0 Kudos
Message 1 of 3
(3,159 Views)
I use the visible datamember: Connect the expression to Pot1.visible. When the expression is true the Pot can be modified by a user. When it is false it cannot be modified by a user.

If you want the pot to still be visible but not modifiable you can do a screen capture of the pot (or just get it from the graphics directory) and edit the colors of the image so it appears "greyed out." You then use this image in the expression you connected to the visible datamember. Make the False image the greyed out pot and the True image null. Lay the image expression over the pot in the exact pixel position. This gives the end user the illusion he can still see the pot but not make any changes.

One way to do it- there are probably many other ways too.

Regards,
Tomm
y Scharmann
0 Kudos
Message 2 of 3
(3,159 Views)


This one's similar to Tommy's idea:

Create and overlay a transparent PushButton on top of your Pot. Normally, you would see the Pot .. but when you click on it you're really clicking on the transparent PushButton and nothing happens!

Inverse the logical condition you want to check when modifying the Pot value and connect it to the transparent PushButton's Visible datamember. For instance, if you want to check for Switch1 to be TRUE before letting anybody modify the Pot value, you would make the following connection:

PushButton.visible = !Switch1

When the condition is satisifed, the transparent PushButton is "out of the way" allowing users to modify your Pot.

Hope this helps,

Khalid Ansari 🙂


0 Kudos
Message 3 of 3
(3,159 Views)