08-01-2007 12:37 PM
08-01-2007 01:23 PM
08-01-2007 01:29 PM
08-01-2007 04:52 PM
08-01-2007 05:05 PM
You can create an Action Engine that has states like.
Init - Cache reference to controls on FP in a shift register. All future calls to the AE will act on these references.
- Set visability of controls using an array of booleans to set visable/no.
Set Login - Shows "Enter" button and hides "Login" button.
SHow Privledged - Shows controls only accessable by supervisors
This AE can then becalled by the rest of your code when required using the approiate state (Add more if to suit your needs).
If that AE also kept track of all its settings in a history, then actions like
Back - Pops a state of the stack and restores the previous screen configuration.
If you need to get at control specific properties of controls via control references froma sub-VI (phew) then use the "More SPecific" operator to cast the control reference to the target type. Note: Good idea to check the return value from the "More Specific" operator to make sure you are acting on the proper type.
Please start a new thread for the Event structure question.
Have fun,
Ben
08-02-2007 08:58 AM
08-02-2007 09:04 AM