Movicon Help on Line - Rel. 11.7.1301
The Embedded Screen Style Properties are used to associate the Screen to be displayed.
To edit the Style properties, select the object with the mouse and use the Movicon 'Properties Window'.
The name of the original Screen to be represented in the object is entered in this edit box (or selected with the '...' browse button on the far right). For this to work, you must insert the original Screen iin the project beforehand.
The contents of the original Screen will be scaled to the size of the object and will be animated in realtime with the same animations of the original Screen.
You can also drag the Screen from the Project Explorer Window and drop it on the "Embedded Screen" object to associate it. This can also be done for screens belonging to Child projects.
|
The contents of the "Embedded Screen" are refreshed only after changes made to the connected screen have been saved and the screen containing the "Embedded Screen" has been reloaded. |
This edit box is used to enter the variable, or select the variable by using the "..." browse button, to use for the "change screen on variable" function which is used to command a displayed screen change in the Embedded Screen object through a RealTimeDB variable. This variable can obtain the index (ID) name of index of the same screen and can be declared either as string or as a numeric value.
When the variable is set as a "String" type, its value will assume the name of the screen to be opened.
In this case, the screen can also belong to a sub work folder. For instance, with a "Screen1" screen contained within the "Myfolder" in the Screens resource, simply set the "Screen1" word in the variable or the complete path of the subfolder name in which the screen is kept:"MyFolder\Screen1".
When the screen to be opened belongs to a child project and is used with an unique name in the entire Parent-Child project context, its name can then be written in the Embedded Screen object's variable belonging to the Parent project. If this not the case, it will be necessary to specify the name by indicating the screen together with the Child project name: i.e. "ChildPrjName\Screen1". If the screen is in a subfolder, you will need to specify: "ChildPrjName\MyFolder\Screen1").
|
Warning: the Child project name inserted in the path used for reaching the screen is Case Sensitive. |
Conversely, if the embedded screen object resides in a Child project, you can open a screen belonging to the Parent project by setting its path in the variable using the "..\ParentScreenName" syntax, or the "..\MyFolder\ParentScreenName" syntax if the screen is in the Parent project's resource subfolder.
You can also load a screen into the Embedded Screen object that is not in the project resources ("RESOURCES\ProjectName\") but somewhere else in the PC's file system, for instance: in "C:\temp\". The variable set in the "Embedded Screen Variable" should, therefore, contain the absolute path of the screen to be displayed: "C:\temp\MyScreen.movscr".
When the variable happens to be numeric type, the screen can be changed on variable by using each one of the screen's ID properties, as well as those in the "Screens" resource subfolders, and those belonging to Child projects from Father projects: they simple need to have unique ID. However, this cannot be done in the reverse because Father project screens cannot be opened from Child projects.
For instance, by means of using a Display object, you will only need to set the value of the screen's ID index, or use a Combobox to obtain the index of the selected item.
The variable set in the "Embedded Screen Variable" property can be declared locally to the screen so that, for example, a Client or Web Client application is server independent.
|
You can use Child project variables (string or numeric type) in Parent projects, (for instance: "ChildPrjName\ChildTagName") and use Parent project variables in Child projects (for instance: "..\..\ParentPrjName\ParentTagName"). |
|
Use the variable from the "Embedded Screen Variable" property in the object's or screen's VB Script to change screens quicker from the one set in the "DrawCmdTarget" interface's "EmbeddedSynoptic" property, which only has effect at the output of the routine from where it was invoked, to the one to be displayed. |
Select this option to show the the original Screen's background colour or associated background drawing. If this box is not selected, the object will assume a transparent background.
This property allows you to change the Embedded Screen object's behaviour as follows:
Disabled (default): the object will behave normally, meaning that any associated Screen animation properties will be active and the user will be able to interact with the associated Screen.
Enabled: the Embedded Screen will only display the image of the associated Screen and it will not be possible for the user to interact with the interactive objects within the associated Screen. The displayed Screen can be opened by clicking on the Embedded Screen. This mode is handy for creating change pages using screen previews. It is also used by objects which are used in the resource for managing the "Screen Navigation Editor".
|
The image that displays when the "Static Screen Image" option is active is searched for in the same folder in which the screen resource set in the "Embedded Screen" object resides. The name of the image searched for is "<Screen>_c.jpg" which is created manually by the "Save Screen Image" command from the screen's "General" properties in design mode or automatically if the "General\ShowTooltipPreview" key has been set to the '1' value (for further detail on this, please refer the chapter on "Screen general properties"), and is deleted every time the screen is modified. |
The 'Border' property is described in the paragraph on "Style Proprieties common to Drawings and Controls".