Loading...
This chapter gives an overview of the members available for Pages and Windows. As explained in the topic"Object and Member Notation (dot syntax)", all kinds of objects can be addressed in the scripting language by using their members which set (or return if applicable) properties or methods of that object. Please refer to the chapter "Script Language" for more details about scripting in general.
PageName.Color1 |
Example: Alternative Example: |
This returns the top color of the specified page as a color value. You could also write it into a Widget, e.g. a ColorPicker via the script: ColorPicker1.SelectedColor = Page1.Color1 In return, you can also assign a new color to: |
PageName.Color2 |
Example: Alternative Example: |
This returns the bottom color of the specified page as a color value. You could also write it into a Widget, e.g. a Label via the script: Label1.Text = Page1.Color2 In return, you can also assign a new color to: |
PageName.Name |
Example: Alternative Example: |
This returns the name of the specified page as a string value. You could also write it into a Widget, e.g. a Label via the script: Label1.Text = Page1.Name In return, you can also assign a new name to it as follows: |
PageName.OffsetX |
Example: Alternative Example: |
The first example shows how to use it with a double variable named "vdouble". You could also write it into a Widget, e.g. a Label via the script: Label1.Text = Page1.OffsetX |
PageName.OffsetY |
Example: Alternative Example: |
The first example shows how to use it with a double variable named "vdouble". You could also write it into a Widget, e.g. a Label via the script: Label1.Text = Page1.OffsetY |
PageName.WindowName |
Example: Alternative Example: |
This returns the name of the Window to which the specified page belongs to as a string value. You could also write it into a Widget, e.g. a Label via the script: Label1.Text = Page1.WindowName |
WindowName.CustomHeader |
Example: Alternative Example: |
This returns the Custom HTML Header that was saved for the Window either in the dialog Windows > Edit Window or via this command. The first example shows how to use it with a string variable named "vstring". You can assign the header with this member as follows: |
WindowName.Name |
Example: Alternative Example: |
This returns the name of the specified Window. You could also write it into a Widget, e.g. a Label via the script: Label1.Text = Window1.Name In return, you can also assign a name to change the current one: |
WindowName.PageName |
Example: Alternative Example: |
This returns the page name of the specified Window. You could also write it into a Widget, e.g. a Label via the script: Label1.Text = Window1.PageName In return, you can also assign a page name to navigate to it: When a Group Value (available in in the WD Unlimited Edition only) is applied to a Window, clients can access pages independent from each other. Per default the Group Value is set to "None" and the pages are synchronized. |