Copyright VirtualSim 2004-2020 - All rights reserved
Using Dyn-UI
User can define C++ variables for automatic interface code generation.
With a simple formalism, vsTASKER provides for these variable GUI interface, default value mechanism and runtime user updates.
How to Use
In the Declaration panel, after the variable definition, the sign //&& or //[!# will enable the Dyn-UI for the declared variable.
ie:
int my_data; //&&
If this variable is defined in a DataModelor Component, Logic or Knowledge, then, it will be accessible in the Interface part of theBehaviorreferring this Model.
User can put whatever value he wants at design time and this value will be put into the variable at runtime, during the initialization phase of the object instance.
If the Behavior Dyn-UI is used during runtime, the new value will be automatically sent to the object instance for update. All these mechanisms are automatically activated for any Dyn-UI variable defined by the user.
According to the above example, the following code will be automatically generated (and then, can be used from any vsTASKER code):