GraphWorX32 PDF
GraphWorX32 PDF
GraphWorX32 PDF
ICONICS
100 Foxborough Blvd.
Foxborough, MA 02035
Tel: 508-543-8600
FAX: 508-543-1503
E-MAIL: [email protected]
WEB: http://www.iconics.com
Contents
Introduction to GraphWorX32
Starting GraphworX32
The GraphworX32 Screen
Using the Mouse and Keyboard
ICONICS 1
Introduction to GraphWorX32
GraphWorX32 is a human-machine interface (HMI) software package for process
control. GraphWorX32 is a fully compliant OPC client featuring ActiveX and
OLE Automation technologies.
ICONICS 2
ActiveX document server. GraphWorX32 is an ActiveX document server,
which means its displays can be run in applications such as Microsoft's
Internet Explorer.
Comprehensive OLE Automation interface.
A powerful set of OLE Automation methods and properties for
programmatically manipulating GraphWorX32 displays.
Fast dynamic animation.
Capability of 50-millisecond updates.
GraphWorX32 ActiveX control. GraphWorX32 includes an ActiveX
control ("GWXview32.OCX") that is capable of running GraphWorX32
displays. This component has all the runtime capabilities of
"GraphWorX32.EXE," and can be conveniently embedded into
ActiveX languages, such as Visual Basic or HTML pages.
Advanced symbol library. GraphWorX32 includes a utility for loading,
storing, and organizing GraphWorX32 symbols. Simply drag-and-drop
symbols to and from the symbol library.
OPC 1.0 and OPC 2.0 Data Access compliant.
More than 70 animation types supported.
Development and configuration for Windows CE.
Powerful AutoCAD style display layers with clutter/declutter.
PowerPoint style gradient fills.
State fields that display readable text representing machine states.
Ability to rotate text in 90-degree increments.
Web-based look and feel similar to MS Internet Explorer.
Professionally drawn 2-D and 3-D gradient symbol libraries.
Runtime Window Properties Mode for improved WYSIWYG
configuration.
View toolbar for convenient access to zooming and layering
commands.
Powerful advanced polyline editing capabilities.
Aliasing and advanced editing features.
Password on display files and user-created custom symbols and symbol
wizards.
Smart ActiveX toolbar that allows you to add or remove any ActiveX
control to the ActiveX toolbar.
Keypad and QWERTY Keyboard support to process point dynamic.
Customizable toolbars.
ICONICS 3
Recipe Wizard. Creates recipes.
Microsoft Word Wizard. Integrates data into MS Word.
E-mail and Outlook Wizard. Sends e-mail based on VBA events.
OPC Calculator Wizard. Connects a four-function calculator to a tag on
any display.
OPC KeyPad Wizard. Connects a QUERTY keypad to a tag on any
display.
Runtime Aliasing Wizard. Changes aliases during runtime mode.
Analog Chart Wizard. Creates displays with analog OPC tags.
Digital Chart Wizard. Creates displays with discrete OPC tags.
ICONICS 4
Starting GraphWorX32
You can start GraphWorX32 from the two following areas:
Start menu in Windows
Windows Explorer
Starting GraphWorX32
ICONICS 5
The GraphWorX32 Screen
The figure below shows the GraphWorX32 screen with its basic components,
including the Color Palette, Main toolbar, Draw toolbar, Arrange toolbar, Font
toolbar, and Dynamics toolbar.
GraphWorX32 Screen
ICONICS 6
Status Bar
Toolbars
Color Palette
Other Features of the Color Palette Tool
Definitions
The display size (or page size), defines the world coordinate boundaries for the
display. You can specify the display size.
The window dimensions refer to the size/location of the GraphWorX32
mainframe window.
Scaleable display means that when the GraphWorX32 main window is resized,
the view is scaled so that all objects currently in the view area remain visible.
Preserve aspect ratio means that the ratio of object-sizes in the display is
maintained during window resizing.
Fixed-scale display means that the view does not scale when the
GraphWorX32 main window is resized. Visible objects are clipped or revealed if
the window is sized smaller or larger.
The view area is the area of the display that is currently visible.
The home view is the view at which the display was last saved.
100% zoom means that one logical unit equals one pixel. This is always the
case, regardless of whether the display is fixed-scale or scaleable.
Status Bar
The status bar is displayed at the bottom of the GraphWorX32 window. To
display or hide the status bar, select the Status Bar command in the View menu.
The left side of the status bar describes actions of menu items as you use the
arrow keys to navigate through menus. This area similarly shows messages that
describe the actions of toolbar buttons as you depress them, before releasing
them. If after viewing the description of the toolbar button command you wish not
to execute the command, then release the mouse button while the mouse pointer
is off the toolbar button.
The following items are shown in the status bar:
Cursor coordinates
Zoom percentage
Grid snap on/off
ICONICS 7
Display layers
Toolbars
The GraphWorX32 tools you use to create your displays are grouped by
functionality and are available through the menu bar options and the following
toolbars:
Main Toolbar
The Main toolbar, shown below, is displayed by default across the top of the
application window, below the menu bar. The toolbar provides quick mouse
access to many tools used in your application. You use the Main toolbar for
basic file and display maintenance such as creating a new display, opening a file,
printing a file, cutting and pasting objects, duplicating objects. It also allows you
to undo and redo your last editing action, and to access help on your
GraphWorX32 application.
Main Toolbar
Dynamics Toolbar
You can use the Dynamics toolbar to make dynamic connections to data points
in OPC servers. See the Dynamic Connections section for a detailed
description of tool button functions on the Dynamics toolbar.
Dynamics Toolbar
ActiveX Toolbar
The ActiveX toolbar, shown below, enables you to insert various ActiveX objects
into the GraphWorX32 display. Refer to the GraphWorX ActiveX Control
section for more information.
ActiveX Toolbar
ICONICS 8
Draw Toolbar
You can use the Draw toolbar, shown below, to draw static graphic objects; to
select objects; to fill or unfill objects, including drawing objects and text objects;
and to import bitmaps, metafiles, and GraphWorX32 symbols.
Draw Toolbar
Arrange Toolbar
The Arrange toolbar, shown below, is used for grouping and ungrouping objects,
for aligning objects, for rotating objects, and for shifting objects in layers.
Note: It is now possible to rotate text in a GraphWorX32 display. Text can only
be rotated in 90-degree increments by using the Rotate Left and Rotate Right
buttons. This ability to rotate text applies to:
Multiline text
Left, center and right alignments
Text objects
Process points
Data entries
Statefields
Timedate
Buttons
Arrange Toolbar
ICONICS 9
Text Style Toolbar
Note: The functions of each toolbar button are described in detail in later
sections.
Color Palette
A Color Palette tool is provided for selecting new colors during configuration
mode in the GraphWorX32 application. This includes fill, border, background and
text colors.
The Color Palette, shown below, operates both as a toolbar and/or a dialog box.
ICONICS 10
The color palette tool consists of two or more rows of selectable colors, a spin
button control for accessing additional colors not currently visible, and a current
selected color indicator.
Fill color is changed by left-clicking on one of the color boxes.
Line color is changed by right-clicking on one of the color boxes. For text
objects, right-clicking on one of the color boxes changes the color of the text.
Double-clicking on a color box is used to select a custom color (via the windows
custom color common dialog).
If two or more objects are grouped together, it is possible to change the fill and
line color of both objects.
The toolbar can be reoriented while it is floating to change between horizontal
and vertical orientations.
This menu can be used to change the size of the color palette (large/small) and
to set the number of rows of colors visible at a time (two, three, or four). There is
also an option to reset the factory default color definitions of the color palette.
Note: The eyedropper feature can be used to pick up colors from a display to add
them to the color palette tool. To use this, choose Eyedropper from the
popup menu, as shown above (the mouse pointer will change to an
eyedropper). Click anywhere in the GraphWorX32 window over the color
you want to pick up. Deposit the color in the color palette by clicking over
the desired color box in the rows of available colors.
ICONICS 11
Using the Mouse and Keyboard
You can use both the mouse and keyboard to control GraphWorX32. This
section explains how to operate the mouse and lists keyboard shortcuts for
GraphWorX32.
Mouse Functions
Drag-and-Drop
Keyboard Shortcuts
Mouse Functions
In Windows, you use the mouse to move a pointer on the screen, usually in the
shape of an arrow. The pointer shows you where you are on the screen and
allows you to point to and select application items.
Function Description
Left-click Selects static objects, such as
rectangles and ellipses, tools, and
menus.
Hold down ALT while grid is on Object will not snap to grid and will
turn off snap to grid temporarily.
ICONICS 12
Hold down SHIFT while moving Will keep object in the same
object if move icon will not work horizontal and vertical plane.
Note: If objects are selected, use cursor keys to move by one pixel.
Drag-and-Drop
GraphWorX32 supports the drag-and-drop of native GraphWorX32 objects and
OLE objects. Static and dynamic GraphWorX32 objects can be dragged from
one instance of GraphWorX32 into another instance of GraphWorX32 as native
objects. Furthermore, objects can be dragged onto the Windows desktop (as a
scrap) and can later be dropped back into GraphWorX32 as native objects.
Objects dropped into GraphWorX32 that are not in the native GraphWorX32
format (or are not one of the other clipboard formats supported by
GraphWorX32) become OLE embedded objects. Other supported clipboard
formats include text, bitmaps, and Windows metafiles.
Keyboard Shortcuts
File Functions
CTRL+N Opens a new file
CTRL +O Opens an existing file
CTRL+S Saves the current file
ICONICS 13
CTRL+P Prints the current file
Edit Functions
CTRL+Z Undo
CTRL+X Cut
CTRL+C Copy
CTRL+V Paste
CTRL+D Duplicate
DEL Delete
View Functions
CTRL+H Home
CTRL+SHIFT+U Zoom out
CTRL+SHIFT+Z Box zoom
CTRL+SHIFT+S Zoom in
CTRL+F Fit to window
CTRL+W Show whole display
CTRL+SHIFT+N Decluttering zoom
CTRL+SHIFT+O Hides layers
CTRL+T Allows you to set the visibility of the toolbars
CTRL+B Shows/hides the status bar
CTRL+L Toggles the scroll bars
CTRL+SHIFT+G Shows the grid
CTRL+R Runtime window properties mode
F4 Opens the Properties window
CTRL+0 Custom zoom
CTRL+1 Zoom 50%
CTRL+2 Zoom 75%
CTRL+3 Zoom 100%
CTRL+4 Zoom 150%
CTRL+5 Zoom 250%
CTRL+NUMPAD+ Zoom in
CTRL+NUMPAD- Zoom out
CTRL+M Toggles configuration and runtime modes
Arrange Functions
CTRL+G Group into symbol
ICONICS 14
CTRL+U Ungroup symbol
CTRL+SHIFT+PgUp Brings object to front
CTRL+SHIFT+PgDn Sends object to back
CTRL+PgUp Brings object forward
CTRL+PgDn Sends object backward
Align
CTRL+SHIFT+T Tops
CTRL+SHIFT+B Bottoms
CTRL+SHIFT+M Middles
CTRL+SHIFT+L Lefts
CTRL+SHIFT+R Rights
CTRL+SHIFT+C Centers
Space Evenly
CTRL+SHIFT+A Across
CTRL+SHIFT+D Down
ICONICS 15
Your comments and suggestions on the operation of this software are
welcome. Please address them to:
ICONICS
100 Foxborough Blvd.
Foxborough, MA 02035
Tel: 508-543-8600
FAX: 508-543-1503
E-MAIL: [email protected]
WEB: http://www.iconics.com
Contents
Introduction
Command Line Options
Defining Application Preferences
Copying and Resetting Preferences and Properties
Language-Aliasing Support
ICONICS 16
Introduction
This section explains the different ways of configuring and customizing your
system. You can customize your GraphWorX32 system using:
Command line options.
Application Preferences dialog box.
Display Properties dialog box.
ICONICS 17
Command Line Options
You can customize a GraphWorX32 program item in Windows 95 and
Windows NT. This command line feature allows you to start GraphWorX32
with a specified display and launch GraphWorX32 directly in runtime. The
command line options are listed in the table below.
Command Line Options
Option Description
Runtime Launches GraphWorX32 in runtime,
automatically suppressing splash
screen.
NoSplash No splash screen
RegServer Registers application
UnregServer Unregisters application
ICONICS 18
Shortcut to GraphWorX32 Properties Dialog Box
ICONICS 19
Defining Application Preferences and Display Properties
Application Preferences
The Application Preferences dialog box, shown below, allows you to set default
operating parameters for your display-editing environment. These parameters
apply to each new display created in GraphWorX32. This command is available
under the Format menu, the Application Preferences dialog box defines the
defaults for the display. Since GraphWorX32 Preferences apply only to new
displays, changes made in this dialog box will not be seen until you select New
from the File menu.
Display Properties
You can also define the properties for the current display by selecting Display
Properties from the Format menu. This opens the Display Properties dialog
box, shown below. Any changes you make in this dialog box will be immediately
reflected in the display.
ICONICS 20
Display Properties Dialog Box
As you can see, the Display Properties dialog box is very similar to the
Application Preferences dialog box. Both dialog boxes contain following tabs:
General Parameters
Window Options
Runtime
Grid
Load Tabs
ToolTips
General Parameters
The General tab of the Application Preferences and Display Properties dialog
boxes, shown below, allows you to adjust the settings for the GraphWorX
display.
Besides Line Color and Fill Color, which allow you to choose the color you wish
to use for defining lines and filling objects, Background Color provides choices
ICONICS 21
of color for the background. Shadow Color and Shadow Offset enable you to
change the depth of a selected object.
You can also choose the Line Width, Line Style, and Font. Display Scaling
allows you to choose between a Fixed-Scale display in which the objects will not
change in size when the main window is resized, and a Scalable Display in
which objects will automatically resize to fit within the main window. The
Preserve Aspect Ratio check box provides you with the option to scale the
display proportionate to the screen's aspect ratio.
Also, Display Dimensions allows you to decide the Width and Height of the
working area of the display.
If the Query OPC data type and ranges during configuration box is checked,
then the system will look for OPC data types and ranges during the configuration
of the application. You can also choose to make a backup when saving your
displays.
Window Options
ICONICS 22
The Window tab in the Application Preferences and Display Properties dialog
boxes, shown below, allows you to configure parameters for the GraphWorX32
main window.
Note: Some of the window settings are only active in runtime mode.
The Window Dimensions field lets you resize the window to the exact
dimensions desired.
When the Scale window dimensions based on current screen resolution
check box is checked, the window dimensions are automatically scaled based on
the current screen resolution. For example, if the current screen resolution is
640x480 and your GraphWorX32 window size is 640x480, if you switch the
window's resolution to 800x600 the next time your display is loaded, its
dimensions will be scaled up to 800x600. If you want your window to always be
640x480 no matter what the resolution is, leave this check box unchecked.
Note: If the screen resolution is changed, the window dimensions will
remain the same as the way they were originally set up.
ICONICS 23
Under the Runtime Title bar Options, you have the option to hide or show the
title bar by checking the relevant box. You can choose to override the caption,
as well as minimize or maximize the System menu by checking the check boxes
provided.
You may also choose to hide or show the Horizontal/Vertical Scrollbars
(configuration mode and runtime mode), and the main Menu Bar (runtime mode
only). You may choose to have the window start initially minimized or
maximized. Always on Top ensures that the GraphWorX32 window will not be
obscured by other open windows (runtime mode only).
Set Window Properties on Runtime Load indicates whether the window
properties for a given display should be applied whenever that display is loaded
while in runtime mode (when checked), or only when GraphWorX32 is initially
launched into runtime mode (subsequent display loads will retain the window
properties of the previously loaded display).
The Runtime Frame Style options allow you to specify styles for the inner and
outer edges of the main window's border.
Runtime
In the Runtime tab in the Application Preferences and Display Properties
dialog box, shown below, you can specify parameters for runtime mode:
ICONICS 24
Application Preferences: Runtime Tab
For Runtime Focus Highlights, you can choose to show a Hand Cursor, which
indicates that you can pick the object. You can also choose to show a frame or a
Focus Rectangle around the pickable object, and specify a fill color and a
border color for the frame.
Point Fail Options allow you to choose to show alternate colors when data
points fail, by checking the box provided.
By default, the Point Fail Character (shown for process points and data entries)
is an asterisk as shown above.
As with point fail options, Disabled Object Colors allow you to specify that you
wish alternate colors to be shown when the object is disabled. Like disabled
buttons in Windows, when an object is disabled in GraphWorX32, you cannot
pick the object that is disabled. Data Input Controls can be automatically
disabled when the associated data connection is read only or when security write
access is denied for the associated data connection.
The Maximum Update Rate reflects how fast runtime updates can occur. The
fastest possible update rate is 50 milliseconds.
Checking the Suppress "Save Changes" Message in Runtime box saves the
changes made in runtime without prompting the user to do so. The Start
ICONICS 25
Application in Runtime Mode check box allows you to choose to start the
application in runtime mode.
The Keyboard/Number Pad field enables you to globally configure ranges for
keyboards and number pads, such as the one shown below, for use with entering
values to process points during runtime mode. If the entry is text, the keypad
opens; if the entry is a number, the number pad opens. The available ranges are
Very Small, Small, Medium, Large, and Very Large. The Show Ranges check
box will show or hide ranges in the number pad dialog box. The number pad can
be optionally shown in the Data Entry-Keypad function of the Process
Point/Data Entry (PPT/DE) tab of the Property Inspector dialog box.
Grid
The Grid command on the View menu enables you to show or hide the grid. The
Grid tab in the Application Preferences and Display Properties dialog boxes,
ICONICS 26
shown below, gives you flexibility with line style, color, and spacing. The Grid
Size is in arbitrary base units (depending upon the current zoom factor). When
zoom is at 100%, the spacing is in pixels.
On the Grid tab, Grid Style allows you to choose a style of dots or dashes. Grid
Size allows you to specify the grid spacing in terms of width and height. You can
choose a Vertical Line Style or a Horizontal Line Style from the options
available.
You can choose a color for the lines and dots of the grid. By checking the
appropriate boxes, you can choose to Show Grid and Snap to Grid.
Load Tabs
The Load Tabs tab in the Application Preferences and Display Properties
dialog boxes, shown below, allows you to construct a row of tabs; each tab will
load a display file. Load display tabs are a convenient method for navigating
through numerous display files.
ICONICS 27
Application Preferences: Load Tabs Tab
In the Tab Configuration section, you can specify a Label and a File name.
You can select a Tab Bar Position at the top or at the bottom of the display. You
can Add or Delete a tab by clicking the appropriate buttons. You can change an
existing tab's settings by double-clicking on its corresponding list box item.
You can choose a Font from the options available by clicking on the Font button.
ToolTips
ToolTips are text messages that pop up when the mouse is moved over certain
objects in a display. The ToolTips tab in the Application Preferences and
Display Properties dialog boxes is shown below,
ICONICS 28
Application Preferences: ToolTips Tab
The Show ToolTips for Dynamics section allows you to select the following
check boxes: Show Object Name, Show Object Description, Show Data
Source Name(s), Show Data Source Value(s). These ToolTip settings apply to
dynamic connections in the display (such as size dynamics or color dynamics).
The Show ToolTips for Statics section allows you to select check boxes Show
Object Name and Show Object Description. These ToolTip settings apply to
static objects like rectangles and ellipses.
ICONICS 29
Copying and Resetting Preferences and Properties
You can reset application preferences and display properties to their default
settings by choosing the corresponding Reset Default Display Properties from
the Format menu.
You can also copy settings from preferences to properties, or from properties to
preferences. Choosing Save Properties As Preferences from the Format
menu will open the Choose Settings dialog box, shown below:
Choosing Apply Preferences to Properties from the Format menu will also
open the Choose Settings dialog box.
ICONICS 30
Choose Settings Dialog
ICONICS 31
Language-Aliasing Support
GraphWorX32 has all of its strings saved in the resource file, which can be
modified to provide custom versions. In addition, it provides real-time support for
loading a resource-only .dll to support an international language. This .dll file is
compiled as a standard Win32 .dll. Any time the ICONICS applications settings
are switched to a different language, GraphWorX32 will load the corresponding
resource .dll.
ICONICS 32
Language-Aliasing Demo in Runtime Mode
ICONICS 33
Language-Aliasing Demo in Configuration Mode
For the example above, when you click on the "Tank Level" text box, the
Property Inspector dialog box opens, as shown in the figure below.
ICONICS 34
Property Inspector: Text
Similarly, when you click on the process point for "Tank Level," the Property
Inspector dialog box opens as shown below. The language-aliased string
"Unit\Level" appears at the bottom of the PPT/DE tab of the Property Inspector
dialog box. Note that the strings within a "/+" and "+/" delimiter pair define a
language-aliased string.
ICONICS 35
Property Inspector: Process Point
Note: The Unicode version language aliasing is independent of the resource .dll
selection, which relates mostly to the text in the dialog boxes and other user
interface elements. The Unicode version of GENESIS32 is available only for
Windows 2000 and Windows NT.
ICONICS 36
1. In configuration mode in GraphWorX32, select Text from the Draw
toolbar to create a text box. A text box will appear in the display.
2. Type the desired text in the text box. The text should be preceded by
the "/+" delimiter and followed by the "+/" delimiter. For example, the
word "hello" would be typed as "/+hello+/" in the text box, as shown in
the figure below. The delimiters tell the Language Server that the word
"hello" is a language-aliased text string.
3. Double-click on the text box to open the Property Inspector dialog box,
as shown below. Notice that "/+hello+/" shows up in the text field of the
Property Inspector.
ICONICS 37
Property Inspector With Language-Aliased Text String
4. You can now open the ICONICS Language Configurator from the
Programs - ICONICS GENESIS32 - Languages menu to configure a
new language alias in the language database for the text you just
created. If you do not create an alias for the text, the Language Server
will not know how to translate the text. When you create the alias in the
Language Configurator, the alias name in the Language Configurator
must exactly match that of the text in the GraphWorX32 text box. So in
this case, the alias name will be "hello." You can add as many
languages as you like to the alias. For each language you add to the
alias for "hello," you can enter the translation text for that language. For
example, you might use "Hello, how are you?" as the English
translation text for the "hello" alias, and you might use "Guten tag" as
the German translation for the "hello" alias. Refer to the Language
Configurator help documentation for detailed information about
configuring language aliases.
5. When you have finished configuring the translation for the language
alias, enter runtime mode in GraphWorX32. The translated text for
"hello" ("Hello, how are you?") now shows up in the GraphWorX32
runtime display, as shown below. Any other language translations that
you configure for the alias will also be available in runtime mode. To
switch between languages, choose Select Language from the View
menu of GraphWorX32 in runtime mode. This opens the Language
ICONICS 38
Selector dialog box. Choose the language you would like to have
displayed. In this case, if you choose German, "Guten tag" will show up
in the display.
2. Once you have added the unit conversion expression to the "inches"
alias, you can now associate the alias with a process point. In
ICONICS 39
GraphWorX32, select Process Point from the Intrinsics submenu of
the Dynamics menu. This adds a process point to the display.
4. Check the Lang. Alias box at the bottom of the Property Inspector, as
shown below. This enables the Language Alias field.
6. When runtime mode is activated, you will see the dynamic process-
point values for "gfwsim.ramp.long." To switch between languages,
choose Select Language from the View menu of GraphWorX32 in
runtime mode. This opens the Language Selector dialog box. Choose
the language you would like to have displayed. If English is selected,
the process-point values will be in inches. If German is selected, the
values will be in centimeters (cm).
ICONICS 40
Process Point With Language-Aliased String
ICONICS 41
Your comments and suggestions on the operation of this software are
welcome. Please address them to:
ICONICS
100 Foxborough Blvd.
Foxborough, MA 02035
Tel: 508-543-8600
FAX: 508-543-1503
E-MAIL: [email protected]
WEB: http://www.iconics.com
Contents
Introduction
GraphWorX32 File Name Extensions
Working with GraphWorX32 Display Files
Exiting GraphWorX32
Templates
Layers
ICONICS 42
Introduction
This section explains how to manage your GraphWorX32 display files. The File
menu contains the functions that allow you to create, open, save, and print
display files.
ICONICS 43
GraphWorX32 File Name Extensions
In GraphWorX32, a file can be saved as a:
GraphWorX32 display file, or *.gdf
GraphWorX32 template file, or *.tdf
Symbol file, or *.sdf
ICONICS 44
Working With GraphWorX32 Display Files
New
Open
Save As
Save
Printing GraphWorX32 Displays
Print Setup
Summary Information
New
Select New from the File menu to create a new document in your application.
Open
Select Open from the File menu to open an existing document in a new window.
Save As
Select Save As from the File menu dialog box is shown below.
ICONICS 45
Save As Dialog Box
The following options allow you to specify the name and location of the file you're
about to save:
File Name
Type a new file name to save a document with a different name. A file name can
contain up to eight characters and an extension of up to three characters. Your
application adds the extension you specify in the Save As Type box.
Save As Type
The Save As Type box allows you to save as .gdf (normal) or .tdf (template). If
you select an existing display name it overwrites the display.
Note: Each display will be saved as non-VBA until you execute a VBA-related
command.
Save
Clicking the Save button on the Standard toolbar allows you to save the current
file.
Use the Print command on the File menu or click the Print button on the
Standard toolbar to print a document. This command opens a Print dialog box,
where you may specify the range of pages to be printed, the number of copies,
the destination printer, and other printer setup options.
Shortcuts
Toolbar:
Keys: CTRL+P
ICONICS 46
Print Dialog Box
Printer
This is the active printer and printer connection.
Name
This allows you to select a printer from the list of printers available.
Properties
Choose the Properties option to change the page layout and paper size.
Print Range
This allows you to select the number and range of pages you want to print
Copies
This allows you to select the number of copies you want to print
Print Setup
Under the File menu, selecting Print Setup dialog box allows you to select a
printer and printer connection.
ICONICS 47
Print Setup Dialog Box
The options provided by the Print Set Up dialog box shown above, such as
Paper Size, Source, and Orientation, also allow you to select the destination
printer and its connection.
Summary Information
Selecting Summary Information on the View menu opens the following Summary
Information dialog box, shown below.
ICONICS 48
Summary Information Dialog Box
Summary Tab
In the Summary tab, you can fill in the details such as Author, Keywords,
Comments, Title, and Subject in the spaces provided.
Statistics Tab
The Statistics tab, shown below, provides general information about the file
currently on display.
ICONICS 49
Statistics Tab
ICONICS 50
Exiting GraphWorX32
Use the Exit command in the File menu to end your session. You can also use
the Close command on the application Control menu. You will be prompted to
save documents with unsaved changes.
Shortcuts
Mouse: Double-click the application's Control menu button.
Keys: ALT+F4
Note: If you have not saved the changes in Configure mode and you exit during
runtime, your changes are not saved.
ICONICS 51
Templates
Templates are standard formats with established parameters that can be
applied to a display at any time in the configuration mode.
GraphWorX32 supports two file extensions: .gdf (graphic display file), default
file extension and .tdf (template display file).
The following functions are provided under the Template submenu of the
Format menu.
Apply Template
Remove Applied Template
Edit Applied Template
Cancel Edit Applied Template
Update Template Displays
Insert Template Objects
Apply Template
A template file can be applied to a display at any time in configuration mode.
Applying a template causes the specified template to be loaded into the current
display. Any objects already in the display are preserved. Also, the current
summary information for the display is preserved. If you apply a template to a
display that already has a template applied, the old template will be replaced by
the new one. Objects in the applied template cannot normally be edited (they
are essentially frozen background elements), however these objects can be
modified using the "Edit Applied Template" functionality described below.
ICONICS 52
Update Template Displays
This function is only available when editing a .tdf file. This function is used to
globally update displays which have the same template file applied as the one
currently being edited. You can edit a .tdf file and use this function to apply the
changes to the displays that are based on that .tdf file.
ICONICS 53
Layers
The use of layers in GraphWorX32 is helpful because it allows you to
categorize elements of the display and separate it into levels of detail through
decluttering. Using the Layers command in the Format menu, you can add,
remove, or duplicate a layer. You can also edit the layer properties, set the
active layer, set the next layer, set the previous layer, hide layers above the
current layer and hide layers below the current layer.
Configuring Layers
Editing Tools
Security for Layers
Using Layers in Runtime Mode
Additional VBA Events for Layering
Configuring Layers
Every GraphWorX32 display starts off as a display with one layer, the primary
or system layer.
Note: This first layer is the only layer to which a template can be applied.
It is important to understand the significance of this first layer. When dealing
with a display that has several layers, whatever you put in the primary layer will
appear in all layer views. While the objects placed in the system layer can be
seen in the configuration of all other layers, it is not possible to edit these
components while editing other layers. To add another layer, select Format -
Layers - Add Layer. This opens the Edit Layer Properties dialog box, shown
below.
ICONICS 54
Edit Layer Properties Dialog Box
Through this dialog box, you can enter a layer name (this name should indicate
what the layer contains or why it is a separate layer and should be unique to
this display). Additionally, you can set a number of other configuration
elements, including the zoom threshold and the runtime data acquisition
elements.
Note: You can select an object in an inactive layer by pressing the ALT key
and double-clicking the object.
Note: It is possible to change the properties once you have set them by
selecting Format - Layers - Edit Layer Properties.
Runtime Data
The runtime data section of the Layer Properties dialog allows the user to set
how data should be retrieved from the display during runtime. If a layer has
never been visible the user has two options: to request data only when the layer
ICONICS 55
becomes visible or to request data even while hidden so when the layer
becomes visible it will contain valid data. If a layer was at one point visible and
is no longer visible the user has the option of continuing to request data while
the layer is hidden to maintain valid data or to release the data when the layer
is hidden and request data when it becomes visible again. Checking Explicitly
Hide Layer hides the layer in runtime regardless of the Hide Layer When Data
Source Is FALSE (zero) value.
The Tags Menu button allows you to set each layer to hide when certain
conditions become false. This is helpful when dealing with a multi-layer display
that is only useful if you can see the active layer. The following options are
available from the Tags Menu button.
OPC tags. Selecting this option allows you to select an OPC Tag from the OPC
Universal Tag Browser, shown below. The tag browser shows all available
tags from the your machine as well as the network. Once you have selected
the appropriate tag, click OK to return to the Edit Layer Properties dialog box.
Expression editor. Selecting this option opens the Edit Expression dialog
box, shown below. The Expression Editor is the same as the expression
compiler used in many other areas of GraphWorX32. You can use the
Expression Editor to create equations, which may or may not contain OPC
ICONICS 56
Tags. Once the equation is set, click OK to return to the Edit Layer Properties
dialog box.
Expression Editor
Aliases. Selecting Aliases will open the following dialog box, which contains all
aliases in the current display.
Note: You may recall that aliases are set by entering an alias name between
'<< >>'.
It is also possible to find aliases from other displays by selecting the Source
button. From this button, two options become available: Current Display or
Other Display. If you select Other Display, the Choose Display dialog box
ICONICS 57
will open, and then you can navigate throughout the system and network to find
the appropriate files. Once you have selected the proper alias, click OK to
return to the Edit Layer Properties dialog box.
Local variables. As with aliases, local variables are created when you are
setting up the configuration of different components in a display. Local
variables are denoted by the following syntax: ~~localvariable~~. If this option
is selected the following dialog box will be displayed:
The Source button is very similar to that of the alias selector box in that you are
given the options of Current Display or Other Display. Once you have
selected the appropriate local variable, click OK to return to the Edit Layer
Properties dialog box.
ICONICS 58
Simulation Variables
Select the appropriate simulated variable, and then click OK to return to the
Edit Layer Properties dialog box.
Note: The variable name is made up of three parts: the name of the server, the
name of the tag, and the data type.
Editing Tools
There are two main editing tools that should be noted for the configuration of
GraphWorX32 displays containing layers. The first is the Hide Layers feature
in the View menu. The other is the View toolbar, shown below. The first option
is also available in runtime mode and is discussed in greater detail in the
following section.
View Toolbar
Using the View toolbar, it is possible to change the view of the display by
activating different zoom functions. Additionally, the toolbar provides specific
shortcuts for layering. All of the following functions can also be found on the
Format - Layers menu.
ICONICS 59
This function allows you to set the editable layer to the layer that is just before
the currently displayed layer.
Note: To change the order of the layers, select Edit Layer Properties from the
Format menu and use the arrow buttons located underneath the layer list
box. The active layer name is displayed in the right corner of the status
bar.
Toggle Grid
This function will either hide or show the display configuration grid, depending
on which mode it is in.
ICONICS 60
Additionally, layers may be hidden due to the value of the tag they are attached
to or if you have selected the Explicitly Hide Layer feature.
The Explicitly Hide Layer feature forces the layer to remain hidden regardless
of whether the layer would be visible based on the zoom threshold. The layer
will remain hidden until this option is turned off, at which point the layer may
remain hidden depending on the attached tag value and zoom threshold.
Each layer that you added during configuration is shown in the dialog box,
along with the system generated shortcut key. Note that there is a check box to
the left of each layer name. If this box is checked, that layer will be hidden
during runtime mode.
ICONICS 61
Your comments and suggestions on the operation of this software are
welcome. Please address them to:
ICONICS
100 Foxborough Blvd.
Foxborough, MA 02035
Tel: 508-543-8600
FAX: 508-543-1503
E-MAIL: [email protected]
WEB: http://www.iconics.com
Contents
Introduction
Configuration Mode
Draw Functions
The Property Inspector
Import Functions
Export Functions
GraphWorX32 Symbols
Formatting Objects
Color Palette Menu
Arranging Objects
Rotation
ICONICS 62
Introduction
This section explains how to create and configure objects to use in your
GraphWorX32 displays. You can draw objects, such as circles, boxes, and
ellipses with the drawing tools available from the Draw menu. You can define
various formats for these objects including line style and weight, text fonts,
custom colors and background colors. The Format menu is used for this
purpose.
ICONICS 63
Configuration Mode
Configuration mode is the mode in which you design displays. In this mode, you
can create static and dynamic objects, set general display properties, etc. Static
objects are typically created onscreen, and then modified via the property
inspector (some static objects such as polylines, arcs, and text also have
additional onscreen editing capabilities). Dynamic objects are also configured via
the Property Inspector.
Enter your password in the Password field and then re-enter it in the Confirm
field. When a user tries to open a password protected display, that user will be
presented with the following dialog before being able to enter the configuration.
ICONICS 64
Enter Password
If the correct password is entered, the user will be able to enter the
configuration mode of the display. If the incorrect password is entered a
warning message will be displayed and the user will continue to be denied
access until the proper password is entered.
Note: The display password will not be applied to displays opened in runtime
mode.
ICONICS 65
CTRL+SHIFT Drag
When you press CTRL+SHIFT and drag an object, the object will not only be
copied, but you will only be able to drag the object in a horizontal or vertical
path from the source location. This is helpful when you are trying to line objects
up in the same path.
Template Activity
When a template is changed and saved, you will be automatically asked if you
wish to have all displays using said template to be updates as well. This is a
very effective way to incorporate changes that may affect several displays.
Although this may take some foresight on your part, effective planning can save
you a lot of time in the long run.
Customize Toolbars
You can add, remove, or relocate items on the various toolbars within
GraphWorX32. To access the Customize Toolbars dialog box, simply right-
click on the toolbar you wish to edit.
ICONICS 66
To remove a button from the toolbar, select the button from the list on the right
and click the <-Remove button. Similarly, if you wish to add a button to the
toolbar, select the button and click the Add-> button. Use the Move Up and
Move Down buttons to relocate buttons on the toolbar. This feature is helpful
since there may be functions represented on a toolbar that you do not use (in
which case it should be removed) or the default ordering of the buttons does
not make any sense to you.
Note: All functions pertaining to a particular toolbar will be in either the list of
available buttons or in the list of toolbar buttons. It is impossible to entirely
remove a function from the dialog.
ICONICS 67
Draw Functions
The Draw functions enable you to create display objects using various drawing
tools. You can create complex drawings by grouping different display objects.
The Draw functions are located in the Draw menu and the Draw toolbar as
shown in the figures below. The information on the bottom left of your screen
corresponds to the Draw toolbar.
Draw Menu
Draw Toolbar
Selector Tool
Selector Tool
With the Selector button, you can choose objects to modify. When you select an
object, you can change its appearance or location. Before you can modify an
object, you must select it. Once it is selected you can format and edit that object.
ICONICS 68
To select multiple objects:
1. Click the Selector button on the Draw toolbar.
2. Draw a box to surround all the objects by pressing the left mouse button
and dragging the pointer around the objects, or by pressing the SHIFT
key and clicking the individual objects.
3. Release the mouse button. Square handles surround each object
selected.
Note: The Select mode is always checked by default on the Draw menu.
Right-clicking the selected object will bring up a special version of the Format
menu, as shown below, which is discussed later in this section:
Format Menu
ICONICS 69
The Property Inspector
The Property Inspector, shown below, is a property sheet containing a
collection of property pages, or tabs. The Property Inspector dialog box lets
you view and make changes to object parameters. The primary page is the
General Page, which reflects the properties of a given static object (in the figure
shown below, a rectangle object).
The Property Inspector may also display a variable number of additional pages
that show information about attached dynamics. These additional pages are
easily accessed via the tabs at the top of the dialog box.
The Property Inspector has four buttons on its Property Sheet: OK, Cancel,
Apply, and Help. The OK button accepts all changes made on all of the
property pages and exits the dialog. The Cancel button discards all changes
made on all of the property pages and exits the dialog box. The Apply button
accepts all changes made on all of the property pages but does not exit the
dialog (subsequently canceling from the Property Inspector will not undo applied
changes since those changes have already been accepted).
ICONICS 70
Checking and Altering the Parameters of an Object
Lines
Segmented Lines
Rectangles
Ellipses
Text
Arcs
ICONICS 71
Checking and Altering the Parameters of an Object
To check and alter the parameters of an object:
1. Select the object and double-click. This opens the Property
Inspector dialog box.
2. Edit the parameters described in the table below, and then click OK
to return to the work area.
Note: The fields of the Property Inspector dialog box vary slightly
depending on what type of object is being inspected.
Gradient Fill
ICONICS 72
Gradient Fill
The Gradient Fill feature is supported for display background,
rectangles/rounded-rectangles, ellipses, pies/chords, lines and text - back - fill
(including PPTs, buttons and timedates). To access the gradient feature, you
must first insert one of the previously mentioned items and double-click the item
to open the property inspector.
Note: The color of the gradient object can be changed using the Color Palette.
ICONICS 73
Configure Gradient Dialog Box
Gradient Styles
There are three different gradient styles: Horizontal, Square and Vertical.
ICONICS 74
The Horizontal style has the light focus coming
from the top or the bottom of the object.
Offsets
The Offset feature allows you to select how far off center you want the light
focus to be. Two options are available in the Configure Gradient dialog box:
Offset X and Offset Y.
Brightness
If you are only using one color, the option of selecting a percentage of
brightness is available. The following is an example of some of the different
percentages of brightness that are possible through the gradient configuration
dialog. You can enter any number between 0 and 100 for the brightness level.
ICONICS 75
Brightness by Percentage
If you are using two colors, the brightness adjustment option disappears and
you are instead allowed to select the second color. This second color is tied to
the line color of the shape, even if the second color option is not selected. For
example, if you change the second color to yellow and then decide to switch
back to a one-color gradient, the border line of the object will still be yellow.
Detail Steps
The 'Detail Steps' feature allows you to set how smooth you want the gradient
to appear. The following is an example of how some of the different detail
steps appear:
Detail Steps
ICONICS 76
Quick Set Buttons
The configuration dialog also contains the following 11 Quick Set buttons:
Each quick set button has a predefined configuration, which will override any
settings you have already defined for a particular object.
ICONICS 77
Lines
The Line tool on the Draw toolbar enables you to draw straight lines in the work
area. You can also define the line style (solid or segmented) and line weight
(thickness) using the Line Style and Line Weight functions. Refer to the
Formatting section of this topic for more information.
To draw a line:
1. Select Straight Line from the Draw menu, or click the Straight Line
button on the Draw toolbar. The mouse pointer appears as a pencil.
2. Pressing SHIFT while you draw constrains the line to 0, 45 or 90
degrees.
Double-clicking on the line displays the Line Property Inspector, shown below.
Right-clicking the line displays the Format menu.
ICONICS 78
To alter the length of a line:
1. Select the line.
2. Left-click a square handle of the select box, drag it to extend the line,
and release.
To reposition a line:
1. Click the line.
2. Drag to a new position..
3. Release mouse button.
Segmented Lines
The Segmented Line button on the Draw toolbar allows you to draw a flexible,
segmented line that can be straight or curved.
Keep the left mouse key pressed for free-hand drawing. Click and release the
mouse from point to point. Double-clicking on the line will bring up the Property
Inspector specific to the segmented line, which is identical to the Property
Inspector page for the straight line.
When you create a segmented line, and the final vertex is close to the starting
vertex, the polygon will automatically be closed off.
Rectangles
You can use the Rectangle tool to draw filled or unfilled rectangles in the work
area. The color of the object's border is the currently selected color in the Color
Palette.
ICONICS 79
To draw a rectangle:
1. Select Rectangle/Square from the Draw menu, or click the
Rectangle/Square button on the Draw toolbar. The mouse pointer
changes to a box and cross.
2. Click the left mouse button and drag to form the box. To form a
square box, press SHIFT while you draw the box.
The Property Inspector for the rectangle object contains the check box Rounded
Corners, as shown above, in addition to the parameters described below, which
also occur in the Property Inspector pages for most of the other objects.
Right-clicking on the rectangle displays the Format menu, which provides
options to format the rectangle as you choose to. The Format menu will be
discussed later in this section.
Note: The cursor remains in the rectangle mode until you double-click,
right-click, press Esc. This applies to all draw operations.
ICONICS 80
To resize a rectangle:
1. Select the rectangle, and then click the left mouse button on a square
handle; drag to resize.
2. Use the SHIFT key to maintain the aspect ratio of the rectangle while
resizing.
Ellipses
With the Ellipse tool, you can draw elliptical or circular objects.
To draw an ellipse:
1. Select Ellipse/Circle from the Draw menu, or click the Ellipse in the
Draw toolbar.
2. Click the left mouse button and drag the pointer anywhere in the work
area to form an ellipse. To form a circle, press SHIFT while you draw.
ICONICS 81
Property Inspector: Ellipse
Text
Use the Text tool to insert text into the work area.
To insert text:
ICONICS 82
1. Select Text from the Draw menu, or click the Text button on the Draw
toolbar.
2. Left-click on the work area where you want to place the text object.
3. Type the text you wish to appear and left-click outside the text to insert.
When you right-click on the selected text object, the Format menu appears with
the edit text option. Right-click and press SHIFT to directly edit the text on
screen. Or you can double-click on the object to open the Property Inspector, and
then edit the text attributes according to the parameters given in the dialog box,
as shown below.
The text object Property Inspector parameters are listed in the table below:
ICONICS 83
Fill Color The Fill Color option determines the color of the text
background.
Shadow Color If Shadow Color option determines the color of the
shadow.
Gradient Fill If the Gradient Fill box is checked, the fill color will have
a gradient applied to it.
Freeze Object Locks the text object in one position.
Stretch Text on If this option is checked, the text will stretch with the text
Resize box when it is resized.
Line Width Determines the width of the text box.
Line Style Determines the style of the text box.
3D Edge Determines the style of the 3D edge.
Fill Pattern Determines a pattern for the background of the text
object.
Font Selection
Text Entry Area This allows you to edit the text in the text box.
Font Displays the font used for the selected text.
Size Displays the point size for the selected text.
Style Displays style of the selected text.
Font button Opens the font dialog box to change the parameters for
selected text object, such as font, size, and style.
Text: Left, Aligns the paragraph text to the left, center, or right.
Center, or
Right
Bound: Left, Bounds text to the left, center, or right of text box.
Center, or
Right
The figure shown below provides some examples of how you can configure text
to appear in your display:
ICONICS 84
Arcs
You can use the Arc tool to draw arc-shaped objects in the work area.
To draw an arc:
1. Select Arc from the Draw menu, or click the Arc button on the Draw
toolbar.
2. To determine the arc's radius, press and hold the left mouse button, drag
the pointer away from the start point, and click.
3. To determine the arc's length, press and hold the left mouse button over
one of the boxes on either end of the arc. Drag the arc to the desired
length.
To view the properties of the arc, double-click it to bring up the Arc Property
Inspector, shown below.
ICONICS 85
Property Inspector: Arc
Arc
Pie
Chord
To resize an arc:
1. Select the arc.
2. Press the left mouse button on a square handle, and then drag it to
resize the arc and release.
To convert to a polyline:
1. Select the arc.
2. Right-click the arc to display the Format menu, and then choose
Convert to Polyline.
3. Now you have the option of merging the arc with other line objects to
create a single polyline object. This allows you to apply properties
such as fill to the whole object. To merge two objects, select both
objects and then select Group Into Symbol from the Arrange menu
or toolbar.
ICONICS 86
Import Functions
Bitmaps
Metafiles
Symbols
Bitmaps
By selecting the Import Bitmap button on the Draw toolbar, or selecting Import
Bitmap from the Draw menu, you can import a bitmap file (.bmp) into your work
area in the same size as it was saved. Bitmaps can also be resized and moved
within a GraphWorX32 display.
Metafiles
ICONICS 87
Export Functions
By selecting Export from the Draw menu, you can export an enhanced metafile
(.emf) from your work area.
ICONICS 88
GraphWorX32 Symbols
Clicking the Import Symbol button on the Draw toolbar, or selecting Import
Symbol from the Draw menu, opens the Symbol Library, as shown below.
Symbol Library
The main purpose of Symbol Library is to preview and import previously stored
GraphWorX32 symbols back into GraphWorX32. Additional functionality allows
you to manage the contents of the Symbol Library. You can create, rename, and
delete categories and directories. You can also store, rename, and delete images
in a category.
The Symbol Library supports drag-and-drop and clipboard copy and paste for
data exchange with GraphWorX32, and between instances of the Symbol
Library, allowing for easy and fast reorganization in categories.
For more information, refer to the Symbol Library help documentation.
ICONICS 89
ICONICS 90
Formatting Objects
The Format menu provides options for layers, formatting line color, line style, line
width, font type, and background color for your display. It also allows you to fill
and unfill selected objects, to freeze and unfreeze objects, and to define font
style and size.
Format Menu
Background Color
The Background Color function lets you define the color of the background of
the object from the Color Palette, shown below.
Color Palette
ICONICS 91
Color Palette Menu
Double-clicking on the Color Palette displays the Color dialog box, shown
below. This allows you to choose from a wider range of colors than are available
on the basic color palette.
Color Dialog
You can use a slider to choose from a range of colors and patterns in the color
spectrum at right. The color will be displayed in the Color/Solid box. You can
then add a custom color or a textured color by clicking the Add to Custom
Colors button.
ICONICS 92
When any or all of these parameters are checked on the menu above, the color
palette can be kept large when floating, large when docked, viewed with two
rows when large, three rows when large, or four rows when large.
Eyedropper
Reset Default Colors
Fill Color
Line Color
Line Style
Line Width
Toggle Fill
Toggle Freeze
Font
Eyedropper
Selecting the Eyedropper function on the Color Palette menu allows you to
select a color from anywhere in the display and apply it within the display.
Fill Color
The Fill Color function opens the Color Palette, from which you can choose a
color to fill a selected object in your display.
Line Color
The Line Color function allows you to choose a color for the selected line in your
display from the Color Palette.
Line Style
ICONICS 93
The Line Style function allows you to define how the line appears. Lines can
appear as solid or segmented. Currently this works with a line that has no width.
There are several line styles from which to choose.
To define a line style:
1. Select the object (line, rectangle, segmented line, ellipse, or arc) in
your display.
2. Select Line Style from the Format menu.
3. Select a line type.
Line Width
The Line Width function enables you to define the thickness of the line.
To define the line width:
1. Select the object in your display.
2. Select Line Width from the Format menu. The line width options
appear to the right of the menu.
3. Select the line width.
Toggle Fill
The Fill function allows you to fill or unfill the inside of an object with the object's
current color.
To fill an object with color:
1. Select the object.
2. Select Toggle Fill from the Format menu or click the Toggle Fill
button on the Draw toolbar.
Note: Lines, bitmaps, and metafile images cannot be filled or unfilled with color.
Toggle Freeze
The Freeze function in the Format menu allows you to disable the movement or
stretching of objects in the work area. This function is useful for anchoring
objects in a display.
To freeze or unfreeze an object:
1. Select the object.
2. Select Toggle Freeze from the Format menu. A lock appears on the
object indicating it is frozen.
ICONICS 94
You can also freeze an object through the Property Inspector by checking the
Freeze check box.
Font
The Fonts function allows you to define the font types, styles, and point sizes for
text. You can define font attributes before or after you create text objects.
To define font types:
1. Select the text object(s) in your display.
2. Select Font from the Format menu to open the Font dialog box.
Define the font parameters and click OK. The text appears with the font
parameters you defined.
ICONICS 95
Arranging Objects
The Arrange menu, shown below, and the Arrange toolbar provide you with
options for moving objects in layers; grouping and ungrouping objects; rotating,
aligning, and evenly spacing selected objects in the display; and making objects
the same size.
Arrange Menu
Arrange Toolbar
The Group Into Symbol function on the Arrange menu and the Symbol button
on the Arrange toolbar allow you to group several objects into one symbol. The
resulting symbol can then be moved as one object.
ICONICS 96
Ungroup
The Ungroup Symbol function on the Arrange menu and the Ungroup Symbol
button on the Arrange toolbar allow you to ungroup the symbol into its
component objects.
Aligning Objects
The Align function on the Arrange menu enables you to align objects according
to their bottoms, tops, middles, lefts, rights, and centers, as well as to make the
objects the same height, the same width, and the same size. The Align function
on the Arrange menu and the Align buttons on the Arrange toolbar adjust the
relative positions of objects in the work area. You can align objects in the
following positions:
Bottoms Rights
Lefts Centers
To align objects:
1. Select the objects.
2. Select Align from the Arrange menu, and choose a position or click
on the appropriate button on the Arrange toolbar for align position.
You can make multiple objects in your display a uniform size, width, and height.
This function applies to drawing objects (such as boxes, circles, and ellipses,
push buttons, process points, time/date objects, text objects, sliders, imported
graphics, and TrendWorX32 embedded windows.
On the Arrange menu, the Make Same Size function enables you to make all
selected objects the same size (with respect to width, height, or both) as the
object of comparison.
ICONICS 97
2. Each object that you select is surrounded by a box with white
handles. Left-click the focus object. The selection box around the
focus object now has blue handles.
3. Select Make Same Size from the Arrange, menu or click the Make
Same Size button on the Arrange toolbar. All objects size to the
focus object immediately.
Bring to Front
Select Bring to Front on the Arrange menu, or click the Bring to Front button
on the Arrange toolbar, to move the selected objects on top of the objects
associated with it in the current work area.
Send to Back
Select Send to Back on the Arrange menu, or click the Send to Back button on
the Arrange toolbar, to move the selected objects to the bottom of all the objects
in the current work area.
Bring Forward
ICONICS 98
Select Bring Forward on the Arrange menu, or click the Bring Forward button
on the Arrange toolbar, to move the selected objects up one layer in the display.
Send Backward
Select Move Backward on the Arrange menu, or click the Move Backward
button on the Arrange toolbar, to move the selected objects down one layer in
the display.
ICONICS 99
Rotation
The Rotation function allows you to rotate a selected object freely, rotate left and
right, and flip the object horizontally and vertically.
Free rotation of static objects means that the objects can be rotated to any angle.
The following objects can be freely rotated: polylines, rectangles, ellipses, arcs,
and symbols. Text, bitmaps, and metafiles cannot be rotated.
Objects can be freely rotated through the Angle field of Property Inspector or
through the Free Rotate button on the Arrange toolbar, shown above.
Note: Objects that have been freely rotated can be flipped using the two flip
buttons (see the Horizontal/Vertical Section).
Clicking the Rotate Left and Rotate Right buttons on the Arrange toolbar,
shown above, allows you to rotate the selected object(s) to the left or the right in
90-degree increments. The following objects can be rotated by 90 degrees:
polylines,
Rectangles
Ellipses
Arcs
Symbols,
Bitmaps
Text
ICONICS 100
The ability to rotate text applies to the following:
Multiline text
Left, center, and right alignments
Text objects
Process points
Data entries
Statefields
Timedates
Buttons
Flip Horizontal/Vertical
Clicking on the Flip Horizontal and Flip Vertical buttons on the Arrange
toolbar, shown above, allows you to flip the selected object(s) to a horizontal or a
vertical position. The following objects can be flipped:
Polylines
Rectangles
Ellipses
Arcs
Symbols
Bitmaps
ICONICS 101
Your comments and suggestions on the operation of this software are
welcome. Please address them to:
ICONICS
100 Foxborough Blvd.
Foxborough, MA 02035
Tel: 508-543-8600
FAX: 508-543-1503
E-MAIL: [email protected]
WEB: http://www.iconics.com
Contents
Introduction to Editing Functions
Undo/Redo
Basic Editing
Find, Report, and Replace
User Interface for Find and Replace
Wildcards
Insert Object
Update Shared Objects
ICONICS 102
Introduction to Editing Functions
This section describes the GraphWorX32 Edit menu commands for altering your
display objects, including the following:
Edit Menu
ICONICS 103
Undo/Redo
Use the Undo command on the Edit menu to reverse the last editing action, if
possible. Use the Redo command to repeat the last editing action that was
undone. The name of the command changes depending on what the last action
was. Select Undo/Redo on the Edit menu, or click the appropriate button on the
Main toolbar. The Undo command changes to Can't Undo on the menu if you
cannot reverse your last action.
Note: To undo several editing actions, continue to click the Undo button until all
the edits you wish to remove have been undone. The same applies to the
Redo command.
Shortcuts
Toolbar:
Keys: CTRL+Z or CTRL+Y
ICONICS 104
Basic Editing
Basic editing functions include Cut, Copy, Paste, Paste Special, and Duplicate.
Copy
Cut
Paste
Paste Special
Duplicate
Copy
Use this command to copy selected data to the clipboard. This command is
unavailable if no data are currently selected.
To copy an object:
1. Select the object. A box with handles surrounds the object.
2. Select Copy from the Edit menu, or click the Copy button on the
Main toolbar.
Copying data to the Clipboard replaces the contents previously stored there.
Shortcuts
Toolbar:
Keys: CTRL+C
Cut
The Cut command moves one or more selected objects to the windows
Clipboard, removing them from the current display. Cutting data to the clipboard
replaces the contents previously stored there.
To cut an object:
1. Select the object to cut. A box with square handles surrounds the object.
ICONICS 105
2. Select Cut from the Edit menu, or click the Cut button on the Main
toolbar. The object is removed from the display and sent to the
Clipboard (here it remains until another object is placed onto the
Clipboard.)
Note: You can also use the DEL key to cut selected objects and place
them onto the Clipboard.
Shortcuts
Toolbar:
Keys: CTRL+X
Paste
The Paste object command places a copy of the objects currently in the
Clipboard into the work area. The objects remains on the Clipboard until you
copy or cut another object to the Clipboard. Use this command to insert a copy
of the Clipboard contents at the insertion point. This command is unavailable if
the Clipboard is empty.
Shortcuts
Toolbar:
Keys: SHIFT+INS
Paste Special
The Paste Special command is used to paste objects in a specified format when
more than one format is available. For example, some applications may copy
images as both bitmaps and metafiles. The Paste Special dialog box, shown
below, allows you to choose whether to paste the object as a bitmap or metafile
or as a device independent bitmap.
ICONICS 106
If the Display As Icon box is checked, the bitmap image will be displayed as an
icon on your desktop.
You can paste the object if the Paste radio button is checked, or you can paste
the link to the object if the Paste Link button is checked.
Duplicate
The Duplicate command on the Edit menu allows you to duplicate a selected
object.
To duplicate an object:
1. Select the object. A box with square handles surrounds the object.
2. Select Duplicate from the Edit menu, or click the Duplicate button
on the Main toolbar. When an object is duplicated, all of its attending
properties accompany the duplicated object.
Shortcuts
Toolbar:
Keys: CTRL+D
ICONICS 107
Find, Report, and Replace
The Find and Report functions on the Edit menu allow you to find and report
strings in GraphWorX32. The Find operation shows the result in the display as
a selection, and it shows the result as object hierarchy in the tree view Info.
Under the Advanced window of the Find dialog box, the tree is displayed with
the results of the find inquiry. Click Apply instead of OK to see that information
in the Advance window as shown in the following figure:
ICONICS 108
Find Dialog Box: Advanced Window
The Replace operation works in a similar way and replaces the "Find What"
string(s) with the "Replace With" string. All dialog options are the same, except
that the Replace dialog box has a field called Replace With.
ICONICS 109
Replace Dialog Box
ICONICS 110
User Interface for Find and Replace
Find/Replace User Interface
Parameter Description
Type Allows you to specify a type of string where
the Find and Replace commands work. All the
strings can be modified for every object or
dynamic action through the Property
Inspector dialog box.
Dynamic Tag Allows you to find/replace tags (dynamics
points).
Text Label Allows you to find/replace labels of text
objects.
Object Name Allows you to find/replace names of objects/
dynamic actions.
Share Keyword Allows you to find/replace global keywords
used in shared objects.
Description Allows you to find/replace based on a
description.
Custom Data Allows you to find/replace custom data.
File Name Allow you to find/replace file names.
Scope Determines the operating space for the
operation.
Selection Works in current selection; if no objects are
selected, this option is disabled.
Current Layer Works in current layer.
Whole Display Works in whole display.
Multiple Files Works in a group of file displays.
Match Case If checked, this function finds/replaces only
text strings that match the case of the
characters. Otherwise the command
finds/replaces strings with either uppercase or
lowercase character that match the character
in the "Find What" string.
Match Whole Word Only If checked, this function finds/replaces the
whole text strings. Otherwise the command
Find/Replace selects any string that contains
a "Find What" substring.
Find what Specifies the search text. A drop down button
of the combo is allowed to select from all
strings listed in the drop down list. This set of
strings is determined by the Scope and by the
Type radios. Wildcards are allowed (see
Wildcards below). Note that if the type is
Object Name and the Find What string is '*',
the Info tree view displays all object hierarchy
from current Scope (including multiple files
ICONICS 111
scope).
Replace with Specifies the string to replace the characters
found. A drop down button of the combo is
allowed to select from all possible strings. This
set of strings is determined by the Scope and by
the Type radios. Wildcards do not work here
(they have no special meaning).
Info Tree view shows the result of the Find/Replace
operation. All the object hierarchy that matches
the Scope and "Find What" string is displayed as
a tree. If a leaf (an object or symbol) is selected,
double-clicking or clicking pushbutton Show in
Display selects the specified object in the
display. Note that in multiple file scope, selecting
an object not in the current display loads a new
display with the object selected..
OK Button This button starts the find/replace operation. The
matching objects are selected in the display and
the dialog is closed.
Cancel/Close Button This button cancels the dialog and closes it. If an
Apply button was used, the label is changed from
Cancel to Close and the state of the dialog from
last Apply is stored.
Apply Button This button starts the find/replace operation. The
dialog is not closed so the result can be
inspected in the tree view Info and used to select
individual objects in the display(s). The label of
Cancel button is changed to Close.
Advanced This button toggles between a big dialog when
the tree view Info and the button Show in display
are visible and between a small dialog with these
widgets hidden. When using an Apply button,
frequently the tree info can be handy. When
using mostly the OK button, the small dialog is
more useful because the tree view can't be used
after the dialog is closed.
Options Allows you to set preferences for the Report Tree
dialog.
ICONICS 112
Wildcards
"Wildcard characters" '*' and '?' can be used in a "Find What" string. Character '*'
can be used to match a group of characters. Character '?' can be used instead of
one character. Display all objects from current scope by choosing the Type -
Object Name and entering an asterix (*) to the "Find What" combo.
ICONICS 113
Insert Object
Selecting Insert New Object from the Edit menu opens the Insert Object dialog
box, shown below. This function inserts and embeds an OLE object, such as a
chart or an equation, into the current display. The application in which the object
was created becomes active on the screen. The Insert Object command also
allows you to insert an ActiveX control into the current display. The property
sheet for that ActiveX control is automatically opened after inserting the ActiveX
control.
ICONICS 114
Update Shared Objects
The Update Shared Objects function is accessible from the Edit menu.
Selections made in the Property Inspector determine shared objects. An object
can be shared by checking the Shared Object box in Property Inspector. It is
made to belong to the desired group by entering a Keyword shared by all the
objects of one group. Any change can be made to an object of the group and
can be applied to the rest of objects in the specified group using Update Shared
Objects.
A least one object from a group must be changed to enable the Update Shared
Objects command.
Thus, if several objects are integrated into a symbol, that symbol is duplicated. If
the properties of one object in the symbol group are changed, the changes are
applied globally to the duplicated object by using the Update Shared Objects
function once a share keyword has been specified.
ICONICS 115
them or cancel the operation.
Preserve If you do not want to update all aspects of an object, you
can preserve (not update) any of the following by checking
the appropriate check boxes: Object Dimensions, Rotation
angles, Text Labels and Dynamic Tags.
ICONICS 116
Your comments and suggestions on the operation of this software are
welcome. Please address them to:
ICONICS
100 Foxborough Blvd.
Foxborough, MA 02035
Tel: 508-543-8600
FAX: 508-543-1503
E-MAIL: [email protected]
WEB: http://www.iconics.com
Contents
View Functions
The Home View
Zoom Functions
Summary Information
Viewing Object Count Statistics
Hide Layers
Toolbars
Viewing Current Coordinates on the Status Bar
Scrolling
Grid
Runtime Window Properties Mode
Properties Window
ICONICS 117
Select Language
ICONICS 118
View Functions
The following sections describe each View menu function. Many functions can
be accessed through the View menu or tfhe View toolbar, shown below.
View Menu
View Toolbar
ICONICS 119
The Home View
The Home view is defined as the view that you last saved the
document in.
To restore the viewing area to the home view, select Home from the View menu.
The display work area that you last saved the document is restored to the
screen. The zoom factor appears on the bottom right of the screen.
ICONICS 120
Zoom Functions
The Zoom factor is indicated in the bottom right portion of the status bar. 100%
zoom, 1 pixel = 1 unit is the default.
Zoom
Custom Zoom
Unzoom
Box Zoom
Zoom Selection
Fit to Window
Show Whole Display
Decluttering Zoom
Zoom
Select Zoom from the View menu, or select one of the buttons shown below
from the View toolbar. The Zoom submenu on the View menu allows you to
choose from a default zoom value, to zoom in or out, or to type in a custom zoom
percentage.
Custom Zoom
This function lets you add a custom zoom percentage.
Unzoom
This function keeps a stack of zooms and acts as an undo for zoom.
Select Unzoom from the View menu, or click the Unzoom button on
the View toolbar undo your zoomed views.
Box Zoom
The Box Zoom command allows you to select an area on which to
zoom.
ICONICS 121
To use the box zoom function:
1. Select Box Zoom from the View menu. The cursor appears as a
magnifying glass, indicating the zoom option is enabled.
2. Click the left mouse button and drag to draw a box around the area
in the display selected to zoom, and the release the mouse button.
Or, click the left mouse button without dragging to zoom in (plus 50
percent) on the point on which you clicked. Click the right mouse
button without dragging to zoom out (minus 50 percent) on the
point clicked on.
3. The area appears in zoomed view. You can zoom in numerous
times.
4. Select Home from the View menu when you are done viewing that
display area in the zoom mode and want to return to the home view. Or
select Unzoom from the View menu to undo your zoomed views.
Zoom Selection
Click the Zoom Selection button on the View toolbar to zoom in on
the selected object(s).
Fit to Window
Click the Fit to Window button on the View toolbar to size the display
such that all objects in the display fit inside the window.
Decluttering Zoom
The Decluttering Zoom option on the View menu allows layers to be hidden
when they are zoomed in or zoomed out beyond their zoom threshold. The
zoom thresholds must be set under Zoom Visibility Range in the Edit Layer
Properties dialog box for this feature to work.
ICONICS 122
Summary Information
Selecting Summary Information on the View menu opens the following Summary
Information dialog box, shown below.
Summary Tab
In the Summary tab, you can fill in the details such as Author, Keywords,
Comments, Title, and Subject in the spaces provided.
Statistics Tab
The Statistics tab, shown below, provides general information about the file
currently on display.
ICONICS 123
Statistics Tab
ICONICS 124
Viewing Object Count Statistics
The Object Count function on the View menu displays statistics for objects,
actions, and display sizes in your displays.
To display object statistics:
1. Select Object Count from the View menu. This opens the Object Count
dialog box, shown below, which contains data about static and dynamic
objects.
2. Click the OK to return to the display.
ICONICS 125
Arc Shows the number of arcs in the display.
Text Shows the number of text objects in the display.
Bitmap Shows the number of bitmaps in the display.
Metafile Shows the number of metafiles used in the display.
Symbol Shows the number of symbols used in the display.
OLE Objects Shows the number of OLE Objects in the display.
OLE Control Shows the number of OLE Controls in the display.
Template Shows the number of Template Objects in the display.
Object
Total Static Shows the total number of static objects in the display.
Objects
Dynamic Objects
Size Shows the number of Size connections in the display.
Location Shows the number of Location connections in the display
Rotation Shows the number of Rotation connections in the
display.
Hide Shows the number of Hide connections in the display.
Color Shows the number of Color connections in the display
Analog Color Shows the number of Analog Color connections in the
display.
Flash Shows the number of Flash connections in the display.
Pick Shows the number of Pick connections in the display.
Digital Shows the number of Digital Selector connections in the
Selector display.
Analog Shows the number of Analog Selector connections in the
Selector display.
Animator Shows the number of Animator Actions connections in
the display.
Process pt. Shows the number of Process Points in the display..
ICONICS 126
Time/Date Shows the number of Time and Date fields in the display.
Button Shows the number of pushbuttons in the display.
Total Shows the total number of dynamic objects in the
Dynamic display.
Objects
ICONICS 127
Hide Layers
Layers can be hidden/shown while in runtime by using either the View - Hide
Layers command or the keyboard shortcut combination CTRL+SHIFT+0. Both
of these options open the Check Layers to Hide dialog box, shown below.
Additionally, layers may be hidden due to the value of the tag they are attached
to or if you have selected the Explicitly Hide Layer feature.
The Explicitly Hide Layer feature forces the layer to remain hidden regardless
of whether the layer would be visible based on the zoom threshold. The layer
will remain hidden until this option is turned off, at which point the layer may
remain hidden depending on the attached tag value and zoom threshold.
Each layer that you added during configuration is shown in the dialog box,
along with the system generated shortcut key. Note that there is a check box to
the left of each layer name. If this box is checked, that layer will be hidden
during runtime mode.
ICONICS 128
Toolbars
The Toolbars command on the View menu opens the Show Toolbars dialog
box, shown below, which allows you to select which toolbars you want to be
visible. The Toggle Toolbars command on the View menu allows you to hide or
show all of the toolbars at once.
ICONICS 129
Viewing Current Coordinates on the Status Bar
The current mouse coordinates are shown in the right-hand corner of the status
bar. The current coordinates identify the position of the mouse pointer in the
work area through X- and Y-coordinates. This is helpful if you are working in
pixels and need to define the mouse pointer position more accurately.
ICONICS 130
Scrolling
The scrolling function allows you to scroll up and down your display using the
scroll bar displayed on the right of your screen. It also allows you to scroll left and
right using the horizontal scroll bar displayed at the bottom of your screen.
ICONICS 131
Grid
The Grid command on the View menu enables you to show or hide the grid. The
Grid tab in the Application Preferences and Display Properties dialog boxes,
shown below, gives you flexibility with line style, color, and spacing. The Grid
Size is in arbitrary base units (depending upon the current zoom factor). When
zoom is at 100%, the spacing is in pixels.
On the Grid tab, Grid Style allows you to choose a style of dots or dashes. Grid
Size allows you to specify the grid spacing in terms of width and height. You can
choose a Vertical Line Style or a Horizontal Line Style from the options
available.
You can choose a color for the lines and dots of the grid. By checking the
appropriate boxes, you can choose to Show Grid and Snap to Grid.
ICONICS 132
Runtime Window Properties Mode
This feature of GraphWorX32 makes it possible to see what a display will look
like in runtime mode without actually entering runtime. To enter this mode
press CTRL+R and the display window will toggle to look like it is in runtime
mode. Press CTRL+R again to return to configuration mode. When the action
toolbars are hidden, the configuration functions can be found in the main menu
or in the right-click popup menu.
Note: Pressing CTRL+M will toggle the display between configuration and
runtime mode.
This feature will help you set the proper display dimensions and zoom factors.
ICONICS 133
Properties Window
The Properties Window, shown below, lists the property settings for the
selected form or control. A property is a characteristic of an object, such as size,
caption, or color.
Properties Window
ICONICS 134
Select Language
The Select Language function on the View menu allows you to choose
which language you want to use in your display. Choosing Select
Language from the View menu opens the Select Language dialog box,
shown below.
Define the parameters listed in the table below. Then click OK to return to
the work area.
ICONICS 135
Your comments and suggestions on the operation of this software are
welcome. Please address them to:
ICONICS
100 Foxborough Blvd.
Foxborough, MA 02035
Tel: 508-543-8600
FAX: 508-543-1503
E-MAIL: [email protected]
WEB: http://www.iconics.com
Contents
Introduction to Data Connections
Tags
Tag Browser
Expression Editor
Expressions
Local GraphWorX32 Variables
Edit Local Variables Parameters
Constant Values
Aliasing Data Connections
ICONICS 136
Introduction to Data Connections
This section discusses the interface of GraphWorX32 objects to the field
Input/Output. The following topics will be discussed here:
ICONICS 137
Tags
All non-numeric data-connection strings that do not include the special
tokens described later in this section are interpreted as tags. If your tag
happens to be a string that is a number (a rare situation) and you do not
want the tag to be auto-detected as a constant value, use the following
syntax:
{{tag_name}}
Any tags that are not defined in the system at runtime will point fail.
ICONICS 138
Tag Browser
Clicking the Tags button in the Property Inspector opens the OPC
Universal Tag Browser, shown below. (See the Tag Browser
documentation for more information.) This feature allows you to search for
tags that specify certain available parameters.
ICONICS 139
ICONICS 140
Expression Editor
Clicking the Tags Menu button in the Property Inspector opens the menu
shown below.
Tags Menu
Selecting Expression Editor from the Tags menu opens the Edit
Expression dialog box, shown below.
ICONICS 141
Expressions
To indicate that a data connection is an expression, precede the string with
the "x=" token. To use a tag within the expression, use the following syntax:
{{tag_name}}
To use a local variable within the expression, use the following syntax:
~~local_variable_name~~
Variables
Variables can be used in expressions. How the variable needs to be referred to
depends on the type of variable.
A local variable can be used in expressions when the variable is embedded
between double tildes.
~~var1~~
An OPC tag can be used in expressions when the tag is embedded between {{
and }}, such as in the example shown below:
{{ICONICS.ModbusOPCServer\Dev1.Tag1}}
Strings in Expressions
Expressions allow calculations to be performed on incoming data. The OPC
server can provide the data in one or more data types, such as "float," "long,"
"integer," "string," etc. If the numeric data are coming from the server as strings,
they are compared as strings in GraphWorX32 expressions. This is done based
on the alphabetical order of the letters. Therefore, an expression evaluated as
TRUE "20" > "100" correctly. Of course, if there were an expectation of a numeric
comparison, 20 < 100 and the above expression might seem to be evaluated
incorrectly, but they are not.
An alternative way is to change the OPC server so that it sends the strings with a
fixed number of digits with leading zeros, or to use DataWorX32 registers for a
conversion from a string to a number.
Expression Editor
ICONICS 142
An Expression Editor is available to assist you in creating expressions.
Categories of functionality available for expressions include:
Arithmetic
Relational
Logical
Bitwise
Functions
Arithmetic
Clicking Arithmetic in the Edit Expression dialog box allows you to
perform the following mathematical functions:
Addition
Subtraction
Multiplication
Division
Modulus
Open Parenthesis
Close Parenthesis Arithmetic Menu
Where
Parameter A local variable, an OPC tag, a constant or another
expression
Symbol + or - or * or / or %
Result
The expression results in a number of any type (float, long, etc.)
Examples
Symbol Description Example Result
+ Addition ~~var1~~ + ~~var2~~ 8+3=11
ICONICS 143
Symbol Description Example Result
* Multiplication ~~var1~~ * ~~var2~~ 8*3=24
Relational
Clicking Relational in the Edit Expression dialog box allows you to edit
expressions using the following:
Less Than
Greater Than
Less Than or Equal
Greater Than or Equal
Equal To
Not Equal To
Relational Menu
Where
Parameter A local variable, an OPC tag, a constant or another
expression
Symbol < or > or <= or >= or == or !=
Result
The expression results in a Boolean value (0 or 1).
Examples
ICONICS 144
Symbol Description Example Result
< Smaller than ~~var1~~ < ~~var2~~ 8<3 = 0
Logical
Clicking Logical in the Edit Expression dialog box allows you to edit
expressions using the following:
AND
OR
NOT
Logical Menu
Where
Parameter A local variable, an OPC tag, a constant, or another
expression
Symbol && or || or !
Result
The expression results in a Boolean value (0 or 1).
Truth Table
ICONICS 145
~~var1~~ 0 not 0
~~var2~~ 0 not 0 0 not 0
~~var1~~ && ~~var2~~ 0 0 0 1
~~var1~~ || ~~var2~~ 0 1 1 1
!~~var1~~ 1 1 0 0
Examples
Symbol Description Example Result
&& And ~~var1~~ && ~~var2~~ 8 && 3 = 1
|| Or ~~var1~~ || ~~var2~~ 8 || 3 = 1
! Not !~~var1~~ !8 = 0
Bitwise
Clicking Bitwise in the Edit Expression dialog box allows you to edit
expressions using the following:
AND
OR
NOT
XOR
Shift Left
Shift Right
Bitwise Menu
The symbols '&', '|', and '^' of the bitwise group use the following format:
expression :: parameter symbol parameter
The symbol '~' of the logical group uses the following format:
expression :: symbol parameter
The symbols 'shl' and 'shr' of the bitwise group use the following format:
expression :: symbol (value, shiftby)
Where
Parameter A local variable, an OPC tag, a constant, or
another expression
Symbol && or || or ^ or shl or shr or ~
ICONICS 146
Result
The expression results in a number when the parameters used contain
numbers.
Bit Table
Binary (Decimal) Binary (Decimal)
~~var1~~ 0000.0000.0000.1000 0000.0000.0110.0000
(8) (96)
~~var2~~ 0000.0000.0000.1010 0000.0000.0000.1000
(10) (8)
~~var1~~ & 0000.0000.0000.1000 0000.0000.0000.0000
~~var2~~ (8) (0)
~~var1~~ | 0000.0000.0000.1010 0000.0000.0110.1000
~~var2~~ (10) (104)
~~var1~~ ^ 0000.0000.0000.0010 0000.0000.0110.1000
~~var2~~ (2) (104)
shl (~~var1~~,3) 0000.0000.0100.0000 0000.0011.0000.0000
(64) (768)
shr (~~var1~~,3) 0000.0000.0000.0001 0000.0000.0000.1100
(1) (12)
~(~~var1~~) 1111.1111.1111.0111 1111.1100.1111.1111
(-9) (-97)
Examples
Symbol Description Example Result
& Bit And ~~var1~~ & ~~var2~~ 8 && 3 = 0
| Bit Or ~~var1~~ | ~~var2~~ 8 || 3 = 11
^ Bit eXclusive Or ~~var1~~ ^ ~~var2~~ 8^3=11
shl Bit shift left shl(~~var1~~,3) 8<<3=64
shr Bit shift right shr(~~var1~~,3) 8>>3=1
~ Not (two's complement) ~(~~var1~~) !8 = -9
Functions
Clicking Functions in the Edit Expression dialog box allows you to edit
expressions using the following:
ICONICS 147
Conditional
Sine
Cosine
Tangent
Arcsine
Arccosine
Arctangent
Square root
Raised to Power
Logarithm
Natural Logarithm
Exponential
Absolute Value
Integer Ceiling
Integer Floor
Maximum
Functions Menu
Minimum
Like
The symbols 'sin', 'asin', 'cos','acos','tan','atan','log', 'ln', 'exp', 'sqrt', 'abs' 'ceil',
and 'floor' use the following format:
expression :: symbol (parameter)
The symbols 'pow', 'min' and 'max' use the following format:
expression :: symbol (parameter,parameter)
Where
Parameter A local variable, an OPC tag, a constant, or another
expression
Symbol sin or asin or cos or acos or tan or atan or log or ln or
exp or sqrt or abs or ceil or floor or min or max or pow or
if
Result
The expression results in a number.
Examples
ICONICS 148
Symbol Description Example Result
sin sine of an sin(~~var1~~) sin(0.785)=0.71
angle in
radians
cos cosine of an cos(~~var1~~) cos(0.785)=0.71
angle in
radians
tan tangent of tan(~~var1~~) tan(0.785)=1.0
an angle in
radians
asin arc sine asin(~~var1~~) asin(0.5)=0.52
returns an
angle in
radians
acos arc cosine acos(~~var1~~) acos(0.5)=1.05
returns an
angle in
radians
atan arc tangent atan(~~var1~~) atan(1)=0.785
returns an
angle in
radians
sqrt returns the sqrt(~~var1~~) sqrt(100)=10
square root
pow returns pow(~~var1~~,~~var2~~) pow(100,1.5)=1000
value 1
raised to the
power value
2
log 10 based log(~~var1~~) log(100)=2
logarithm
ln e based ln(~~var1~~) ln(7.389)=2
logarithm
exp exponential exp(~~var1~~) exp(2)=7.389
abs absolute abs(~~var1~~) abs(-1)=1
value
ceil integer ceil(~~var1~~) ceil(7.39)=8
ceiling
floor integer floor floor(~~var1~~) floor(7.39)=7
min lowest value min(~~var1~~,~~var2~~) min(10,5)=5
of two
max highest max(~~var1~~,~~var2~~) min(10,5)=10
value of two
if conditional if(~~var1~~<~~var2~~, if(5<8,5,8)=5
statement ~~var1~~,~~var2~~)
ICONICS 149
Symbol Description Example Result
statement
like Wildcard like(string, pattern, Note: string = the
String casesensitive) string to search in,
Compare pattern = the string
to search for (can
include wildcards),
casesensitive =
nonzero for case-
sensitive search,
zero for case-
insensitive search.
String syntax is
$"string"$.
ICONICS 150
Local GraphWorX32 Variables
To indicate that a data connection is a local variable, use the following
syntax:
~~local_variable_name~~
Selecting Edit Local Variables on the Dynamics menu opens the Edit
Local Variables dialog box, shown below:
The user interface for changing the default settings of local variables is
provided as shown above.
ICONICS 151
Edit Local Variables Parameters
Parameter Description
Data Type Allows you to specify the data type of the local variable.
Initial Value Allows you to change the initial value of the local
variable.
High Range and Allows you to set a range of values for the local
Low Range variable.
ICONICS 152
Constant Values
GraphWorX32 automatically recognizes if an entered data-connection string
is a number and interprets that data connection as a constant value. If you
want to enter a constant string value (a non-numerical constant), use the
following syntax:
$"constant_string_value"$
This syntax prevents the string from being auto-detected as a tag name.
ICONICS 153
Aliasing Data Connections
Overview of Aliasing
Object-Level Aliasing
Edit Alias Table User Interface
Runtime Aliasing
Second-Level Aliasing
Overview of Aliasing
Aliasing is the ability to define a string (usually a short name) to represent
another string (usually part or all of a tag name). You can access the Edit
Aliases command on the Dynamics menu. You can also access it by right-
clicking on an object and opening the Format menu.
When including an alias name in a data connection, the alias name should
be surrounded by the special tokens "<<" and ">>". These tokens are used
to identify the beginning and end of the alias name. For example:
[opcserver].<<tank>>.out.
In this case "tank" is the alias name.
Second-level aliasing is now available in GraphWorX32. This feature allows
an alias name to be entered as the alias definition. This second alias will be
resolved prior to the set-aliases command.
Object-Level Aliasing
Objects that utilize data connections can maintain their own alias table.
Each dynamic object can have an alias table. This alias table is
automatically created when you enter a data source string containing alias
names (the table is automatically populated with entries for each alias name
used in the data connections of the dynamic object. By default, the alias
replacement string is set equal to the alias name. If the alias name is equal
to the alias replacement string, the alias will not be resolved. You are only
allowed to change the replacement strings in object-level alias tables. The
alias names in the table are controlled by the alias names used in the data-
source strings.
To edit object-level aliases in GraphWorX32, you can select one or more
visible objects prior to executing the edit alias table functionality. All of the
alias tables for all the dynamics attached to all of the selected objects are
merged and displayed in a single edit alias table dialog box. If the selected
objects have object names defined, those names will be used to identify
which alias names belong to which objects. If no objects are selected when
you choose to edit aliases, all aliases in the entire display appear in the Edit
Aliases dialog box.
ICONICS 154
The user interface for modifying object-level alias tables allows you to
change alias definitions for each alias name entry. To open the Edit
Aliases dialog box, shown below, select Edit Aliases from the Dynamics
menu.
Note: The alias replacement strings are modifiable during runtime mode
via OLE Automation.
ICONICS 155
Runtime Aliasing
Runtime aliasing encompasses a variety of ways to change a display's
aliases during runtime. You can specify a collection of aliases to be set as
part of a given command. For example, when using a pick action to load a
display, the user can specify aliases to be set in the display that is about to
be loaded. These aliases will be set before any tags in the new display are
requested. The aliases to be set can be specified directly in GraphWorX32
or can come from an external tab-delimited text file (such files can be
exported from Excel, created in Notepad, or created using GraphWorX32's
Alias File Editor).
Commands with which aliases can be associated include:
ICONICS 156
Property Inspector: Pick Tab
To set aliases, click the Set Aliases button on the corresponding action tab
in the Property Inspector. This opens the Set Aliases Configuration dialog
box, shown below: This interface is similar to all of the actions, but it may
vary slightly depending upon the action being configured.
ICONICS 157
Set Aliases Configuration Dialog Box
There are also many OLE Automation methods that correspond to many of
the above actions. Refer to the OLE Automation Reference section for
details.
ICONICS 158
Note: The alias replacement strings are modifiable during runtime via OLE
Automation.
Second-Level Aliasing
Second-level aliasing is now available in GraphWorX32. This feature allows an
alias name to be entered as the alias definition. This second alias will be
resolved prior to the set-aliases command.
ICONICS 159
Your comments and suggestions on the operation of this software are
welcome. Please address them to:
ICONICS
100 Foxborough Blvd.
Foxborough, MA 02035
Tel: 508-543-8600
FAX: 508-543-1503
E-MAIL: [email protected]
WEB: http://www.iconics.com
Contents
The Data Source
Action Dynamics
Selector Dynamics
Intrinsic Dynamics
Customizing
ICONICS 160
The Data Source
In every dynamic dialog there is a data source. Refer to the Data Connections
sections for more information.
ICONICS 161
Action Dynamics
Dynamic actions connections apply specific actions to objects in a display based
on data-point values. You can create these connections through the Actions
submenu on the Dynamics menu, as shown in the following figure, or by clicking
the appropriate button on the Dynamics toolbar, shown below.
Dynamics Toolbar
Size Connection
Location/Slider
Rotation/Dial
Hide/Disable
Digital Color
Analog Color
Flash
Pick
Parameters for Pick Actions
Size Connection
With the Size connection tool, you can define an object that changes size based
on the real-time value of its connected data point. The object automatically sizes
to scale for incoming data points, such that a 100 percent scale equals the full
size of the drawn object. You can override the size by defining range override
values.
ICONICS 162
During runtime mode, the Size connection resizes the object in proportion to the
percentage of the high and low ranges of the connected data point.
To establish a size connection:
1. Select an object.
2. Select Actions-Size from the Dynamics menu, or click the Size button on
the Dynamics toolbar. The Dynamic Property Inspector page for the object
opens as shown below.
3. Establish a data connection.
4. Select a size action from the size action parameters listed in the table below.
ICONICS 163
Clicking the OPC Tags button opens the OPC Universal
Tag Browser, from which you can select tags in the
system. You can also use the options under the Tags
Menu to make a data connection. These ways of making
data connections for the primary value are also available
for making range override data connections.
OPC Tags Displays the Tag Browser.
Tags Menu Displays the Tag options.
Size Toolbar Specifies the direction in which to size the object when the
appropriate button is clicked.
Vertical Buttons Expands the object from the bottom up or top down.
Horizontal Expands the object from the left or right.
Buttons
Bias Bars Expands the object from the center above and below the
Buttons bias line, or to the left and right of the bias line.
Two Directional Expands the object outward from the center.
Button
Three Directional Expands the object in three directions outward from the
Button center.
Range Override Activates an operating range other than the default range
for the data point. Any dynamic based on an analog
values, such as process point, analog selector, will have a
range override.
Start Size/End Allows you to specify (as a percentage) the starting and
Size ending size of an object that has changing dimensions.
The size does not have to be an integer.
Scale Scales the object in proportion to the incoming signal.
Clip Reveals the object.
Delete Deletes this dynamic. This is only available on actions
shown on the Dynamic Actions toolbar.
Object Name Identifies the object for OLE Automation. A name specified
to this object can be referenced to identify this object. For
example, this is the object name that can be used in VBA.
Description Describes the object and coincides with what is displayed
under ToolTips.
Custom Data Customized configured data. For example, this could be a
custom configured data string. This will be enabled through
the custom configuration utility tied to the Custom button.
Refer to the Custom Configuration section for details.
Language Alias Displays a language-aliased string (if applicable).
5. Click OK. A highlighted box with red handles surrounds the object indicating
a dynamic connection, as shown below:
ICONICS 164
Location/Slider
The Location connection enables you to change the location of an object based
on the value of a data point. During runtime mode, the object moves within a
specified distance - horizontally, vertically, diagonally, or along a specified path -
based on the value of the connected data point.
The Slider function emulates a mechanical slider control. During runtime mode,
you can move the slider knob to change the value of the connected data point.
To make a location connection:
1. Select an object.
2. Select Actions - Location/Slider from the Dynamics menu, or click the
Location/Slider button on the Dynamics toolbar. The Dynamic Property
Inspector page for Location appears as shown below.
ICONICS 165
Property Inspector Dialog Box: Location Tab
3. Specify the data source tag and select the location/slider action parameters
that are described in the table below.
ICONICS 166
Set limits Allows you to define an area within which the
object will move. A gray frame around the object
indicates that the object in runtime will move within
that area.
Slider The slider allows you to hold the object with the
mouse and move the object.
Tracking This is part of the slider action. If this option is
checked, the object will move based on the
connected data value. If it is not checked, the
object will remain stationary, unless you move it
manually.
Delete Deletes this dynamic.
Detents Also a part of the slider action. The range of the
variable, tag, or expression that the slider is
controlling will be divided into N steps including the
high and low range, where N is the value entered
in the Detents field.
Object Name Identifies the object for OLE Automation. A name
specified to this object can be referenced to identify
this object. For example, this is the object name that
can be used in VBA.
Description Describes the object and coincides with what is
displayed under ToolTips.
Custom Data Customized configured data. For example, this could
be a custom configured data string. This will be
enabled through the custom configuration utility tied to
the Custom button. Refer to the Custom
Configuration section for details.
Language Alias Displays a language-aliased string (if applicable).
4. Click OK. Red handles appear around the object, indicating that a dynamic
connection has been made.
Rotation/Dial
ICONICS 167
2. Select Actions-Rotation/Dial from the Dynamics menu, or click the
Rotation/Dial button on the Dynamics toolbar.
3. The Dynamic Property Inspector page for Rotation opens, as shown
below.
4. Select the desired parameters described in the table below, and then
click OK.
Rotation Parameters
Parameter Description
Angles:
Start Allows you to choose the angle at which the
rotation starts.
End Allows you to choose the angle at which the
rotation ends.
ICONICS 168
Set Angles Sets the angle of rotation and defines the
and Pivot coordinates of the pivot point of the object from
which it rotates.
Rotation Allows you to define a rotation direction,
Direction clockwise or counterclockwise.
Dial Similar to the Slider function described for the
Location action. However, instead of allowing
you to manually move the object up and down,
Dial allows you to manually rotate the object.
Tracking This is part of the dial action. If this option is
checked, the object will move based on the
connected data value. If it is not checked, the
object will remain stationary, unless you move it
manually.
Detents Also a part of the dial action. The range of the
variable, tag, or expression that the slider is
controlling will be divided into N steps including
the high and low range, where N is the value
entered in the Detents field.
Range Activates an operating range other than the
Override default range for the data point.
Delete Deletes this dynamic.
Object Name Identifies the object for OLE Automation. A name
specified to this object can be referenced to identify
this object. For example, this is the object name that
can be used in VBA.
Description Describes the object and coincides with what is
displayed under ToolTips.
Custom Data Customized configured data. For example, this
could be a custom configured data string. This will
be enabled through the custom configuration utility
tied to the Custom button. Refer to the Custom
Configuration section for details.
Language Alias Displays a language-aliased string (if applicable).
Hide/Disable
The Hide connection causes objects to become hidden when the value of the
digital data point to which it is connected goes either true (logical 1) or false
(logical 0) as you configure it.
To make a hide connection:
1. Select an object.
ICONICS 169
2. Select Actions-Hide/Disable from the Dynamics menu, or click the
Hide/Disable button on the Dynamics toolbar.
3. The Dynamic Property Inspector page for Hide opens, as shown below.
Digital Color
ICONICS 170
The Digital Color dynamic allows the color of the object to change based on a
digital event. The color connections are prioritized in the order in which they are
created. Therefore, if two data points are true at the same time, the higher-
priority color connection takes precedence. If none of the connected data points
is true, the object is displayed in its original color.
The Color connection is use to indicate states such as alarm conditions and
temperature changes, or to notify operators of the flow in a pipe.
To create a digital color connection:
1. Select the object.
2. Select Actions-Color from the Dynamics menu, or click the Color button on
the Dynamics toolbar. The Dynamic Property Inspector page for Color
appears as shown below.
3. Select the desired parameters, and then click OK.
ICONICS 171
Color Connection Parameters
Parameter Description
Data Source This edit control/list box allows you to add to the
list of existing data sources.
Add Button Adds the string currently in the data source edit
control to the list of data sources.
Change Changes existing data connections. The
Button currently selected item in the data source list box
is changed to the string that is currently in the
data source edit control.
Remove Removes existing data connections from the
Button data source list box.
Apply Color These items vary depending on which source
Change To string is selected.
Fill Color If checked, changes color of the object's fill.
Clicking on the box next to the Fill Color check
box makes the color palette appear.
Line Color Changes the color of the object's border.
Clicking on the box to the right opens the Color
Palette.
Shadow Color Changes the color of the object's shadow.
Clicking on the box to the right opens the Color
Palette.
Change Color Changes the color of the object when the
on True/False connected data point goes true (logical 1) or
false (logical 0).
Delete Deletes this dynamic.
Object Name Identifies the object for OLE Automation. A name
specified to this object can be referenced to identify
this object. For example, this is the object name that
can be used in VBA.
Description Describes the object and coincides with what is
displayed under ToolTips.
Custom Data Customized configured data. For example, this
could be a custom configured data string. This will
be enabled through the custom configuration utility
tied to the Custom button. Refer to the Custom
Configuration section for details.
Language Alias Displays a language-aliased string (if applicable).
Analog Color
ICONICS 172
The Analog color connection will change the start color and end color based on
an analog signal.
Note: You can attach multiple analog color dynamics to shift between more than
two colors.
To create an analog color connection:
1. Select an object.
2. Select Actions - Analog Color from the Dynamics menu to open the
Dynamic Property Inspector page for Analog Color, as shown below:
3. Select the desired parameters described in the table below, and then click
OK.
ICONICS 173
Parameters Description
Fill Color - Changes the starting and ending fill colors of the
Start/End object. Clicking on the Start Color and End Color
boxes opens the Color Palette.
Start Color Changes the starting fill color of the object. This is
the color that will appear when the analog signal is at
its lowest value.
End Color Changes the ending fill color of the object. This is the
color that will appear when the analog signal is at its
highest value. When the analog signal is between its
minimum and maximum values, the color will be a mix
of the start and end colors.
Line Color - Changes the starting and ending line colors of the
Start/End object.
Shadow Color - Changes the starting and ending shadow colors of the
Start/End object.
Range Override: Activates an operating range other than the default
Low/High with specific options of choosing low range and/or
high range.
Default Color Sets the default color when above or below the
when Above specified range. The default color is the color of the
Range/Below object to which this dynamic is attached.
Range
Delete Deletes this dynamic.
Object Name Identifies the object for OLE Automation. A name
specified to this object can be referenced to identify this
object. For example, this is the object name that can be
used in VBA.
Description Describes the object and coincides with what is displayed
under ToolTips.
Custom Data Customized configured data. For example, this could be
a custom configured data string. This will be enabled
through the custom configuration utility tied to the
Custom button. Refer to the Custom Configuration
section for details.
Language Alias Displays a language-aliased string (if applicable).
Flash
The Flash connection causes an object with a digital connection to blink on and
off or to flash between two colors during runtime mode when the connected
digital value goes true (logical 1) or false (logical 0).
ICONICS 174
The default operation is for the object to flash between configured colors. The
Property Inspector shows the default as on/off. When the data-point value is
false (logical 0), the object displays in the normally on/normally off setting. When
the value is true (logical 1), the object blinks between the colors or between
visible and hidden. The rate at which the object blinks is determined by the
Flash Rate value.
To make a flashing connection:
1. Select an object
2. Select Actions - Flash from the Dynamics menu, or click the Flash button
on the Dynamics toolbar.
3. The Dynamic Property Inspector page for the Flash action opens, as shown
below.
4. Establish a data connection and select the desired parameters described in
the table below.
5. Click OK when you are finished.
ICONICS 175
Flashing Parameters
Parameter Description
Flash Rate The frequency of the flash in milliseconds. The
minimum flash value is 1000 ms.
Flash When True Flashes when the data-point value is true (logical
1). The object blinks between the colors or
between visible and hidden.
Flash When Flashes when the data-point value is false
False (logical 0).
Alternate State:
Hide Object Selects the alternate state as a hidden object.
Change color Selects the alternate state as a color change.
Fill Color Selects the color fill for the object. Clicking on
the box at right opens the Color Palette.
Line Color Selects the line color for the object. Clicking on
the box at right opens the Color Palette.
Shadow Color Selects the shadow color for the object. Clicking
on the box at right opens the Color Palette.
Show Alternate When not flashing, the object is shown in the
State When Not specified alternate color, or the object is hidden if
Flashing that is the chosen alternate state.
Delete Deletes this dynamic.
Object Name Identifies the object for OLE Automation. A name
specified to this object can be referenced to identify
this object. For example, this is the object name that
can be used in VBA.
Description Describes the object and coincides with what is
displayed under ToolTips.
Custom Data Customized configured data. For example, this
could be a custom configured data string. This will
be enabled through the custom configuration utility
tied to the Custom button. Refer to the Custom
Configuration section for details.
Language Alias Displays a language-aliased string (if applicable).
Pick
The Pick Action function allows you to configure an object such that it performs
an action when the object is clicked during runtime mode. Such actions include
ICONICS 176
loading displays, popping up windows, launching applications, and downloading
values.
To make a pick action connection:
1. Select an object.
2. Select Actions - Pick from the Dynamics menu, or click the Pick
button on the Dynamics toolbar.
3. This opens the Dynamic Property Inspector page for the Pick action,
as shown below.
Note: the appearance of this dialog box will vary depending upon which
action is selected.
4. Select the desired parameters from the combo box in the Action field.
Clicking on the Key Shortcut button opens the Define Key Shortcut dialog box,
shown below.
ICONICS 177
Define Key Shortcut Dialog Box
Enter a key and/or choose a modifier, and then click OK. When the display is
changed to runtime mode, the operator can perform the pick action by pressing
the designated shortcut key.
ICONICS 178
Execution Selects one of three options for executing the action; On
Trigger Down, While Down, or On Up.
On Down Executes the action when the mouse button is clicked
down.
On Up Executes the action when the mouse button is released.
While Executes the action while the mouse button is held down.
Down Lets you specify an interval in milliseconds.
ICONICS 179
Drag/Drop Load Parameters
Parameter Description
File Name You can click the Browse button to pick a file name (the
display file to be loaded during runtime).
ICONICS 180
Property Inspector Dialog Box: Popup Window Action
ICONICS 181
Action - Embedded Window
Embedded Window pick action is similar to the regular Popup Window pick
action except that an embedded window is a "child" window of the display that
launched the embedded window. The embedded window can move, scroll, and
scale with the parent display.
The parameter Modal Popup of the Popup Window action is not supported by
the Embedded Window action.
ICONICS 182
The Launch Application pick action launches the specified application when
GraphWorX32 is in runtime mode. It provides the Delete, Key Shortcut, and
Mouse parameters that have been discussed previously.
ICONICS 183
Property Inspector Dialog Box: Toggle Value Action
ICONICS 184
The Download Value pick action is used to download values when you click on
the pick object.
ICONICS 185
Action - Set Aliases
The Set Aliases action sets aliases for data connections in runtime mode. Click
the Set Aliases button on the property inspector to open the Set Aliases
Configuration interface. Refer to the section Aliasing Data Connections for
more details.
ICONICS 186
Property Inspector Dialog Box: Run VBA Script Action
ICONICS 187
Property Inspector Dialog Box: Custom Command Action
ICONICS 188
Property Inspector Dialog Box: Popup Menu Action
Click Menu Editor to open the Menu Editor dialog box, shown below, which
includes fields for Font and Size. Click the Font button to select a font. In
addition, the font face can be changed based on loaded language by the
language alias placed on the Pick tab. During runtime mode, the font is picked
up from the language database based on the language alias and is assigned to
the popup menu. This can be useful if the current/default font does not support all
characters of a given language.
ICONICS 189
Menu Editor Dialog Box
ICONICS 190
Property Inspector Dialog Box: Select Language Action
Actions - Layers
You can hide, show, and toggle layers using the pick actions Layer Hide On,
Layer Hide Off, and Layer Toggle in the Pick tab of the Property Inspector
dialog box, shown in the figure below. Select the appropriate pick action, and
then enter the layer name.
ICONICS 191
Property Inspector Dialog Box: Layers Actions
ICONICS 192
Selector Dynamics
Selector Menu
Selectors display specific objects based on the value of a data connection. You
can access selectors functions from the Selectors submenu of the Dynamics
menu, as shown above, or from the Dynamics toolbar. There are three types of
selectors:
Digital Selector. Displays one of a number of objects based on the state
of digital signals. One signal is connected to each object. The highest
priority signal (determined by position in the list) displays the
corresponding object when true (or optionally false).
Analog Selector. Displays one of a number of objects based on the
value of the analog signal. This object displays when the signal falls
within the range of values specified for the object.
Animator. Enables you to select a group of objects to display
sequentially based on the state of a digital variable to which they are
connected.
Note: The digital selector, analog selector, and animator can be modified after
creation by using subsymbol editing. Select the selector and either do
SHIFT+Right-click or Right-click - Edit Symbol to enter subsymbol editing.
Now you can add, modify, and delete the objects in the digital selector. Press the
Escape key or double-click outside the object to close the subsymbol editing.
The changes are reflected in the selector. Use the Property Inspector to connect
newly added objects if necessary. An alternative way is to use the Edit - Find
and View properties, or to select the inner objects from the tree.
Digital Selector
Analog Selector
Animator
Digital Selector
ICONICS 193
Only one object per connected data point can be displayed at a time. For
example, if two objects are connected to the same digital data point, the object
closer to the top of the connection list first appears. Generally, no objects display
when all signals are false (logical 0).
To define a digital selector:
1. Select two or more objects.
2. Choose Selectors - Digital Selector from the Dynamics menu, or click
the Digital Selector button on the Dynamics toolbar. The Dynamic
Property Inspector page for the Digital Selector opens, as shown below.
3. Select the desired parameters listed in the table below.
4. Establish a data-point connection for each object using the same
procedures, and then click OK. The objects to which the digital selector is
connected are grouped together.
ICONICS 194
Data Source Allows you to add to the list of existing data sources.
Click the OPC Tags button or the Tags Menu button
to quickly insert the desired OPC tag, alias,
expression, local variable, or simulation variable.
Change Button Changes existing data connections. The currently
selected item in the Data Source list box is changed to
the string currently in the data source edit control.
Remove Button Removes currently selected data connections from the
data source list box.
Object Numbers Lists the objects in the order created and their data-
point connections assigning priorities to the objects.
Change Object Changes the object order, allowing you to assign new
Order priorities for the data connections.
Show Object on Shows the object when the connected data point goes
True true (logical 1).
Show Object on Shows the object when the connected data point goes
False false (logical 0).
Analog Selector
ICONICS 195
Property Inspector Dialog Box: Analog Selector Tab
ICONICS 196
Range Override Activates an operating range other than the default range
for the data point. Allows you to specify a High Range
and a Low Range.
Hide Below Hides all the associated objects when the value of the
Range connected data point is below the specified range.
Hide Above Hides all the associated objects when the value of the
Range connected data point is above the specified range.
Animator
ICONICS 197
Property Inspector Dialog Box: Animator Tab
Animator Parameters
Parameters Description
Data Source This is the data point to which the dynamic is
connected. Click the OPC Tags button or the
Tags Menu button to quickly insert the desired
OPC tag, alias, expression, local variable, or
simulation variable.
Change Frame Changes the sequence number of the currently
Order displayed object, and allows you to reorder the
object.
Frame Number Displays the sequence number of the currently
displayed object.
Frame Rate The rate (in milliseconds) at which the frames
will change while animating.
Animate When Animates the object when the digital variable
True goes to its true state (logical 1).
Animate When Animates the object when the digital variable
ICONICS 198
False goes to its false state (logical 0).
Invisible When Off Displays no objects when not animating.
Visible When Off Displays the specified object when not
animating.
Current Frame Displays the most recent animation frame
When Off when not animating.
First Frame When Displays the first frame of the animation when
Off not animating.
ICONICS 199
Intrinsic Dynamics
The Intrinsic dynamics enable you to create operator controls in display files.
You can make dynamic connections to control objects that display real-time data
during runtime mode, such as data entry objects, sliders, and push buttons. You
can access the control functions from the Intrinsics submenu of the Dynamics
menu, as shown below, or from the Dynamics toolbar.
ICONICS 200
4. Additional properties relating to the visual appearance of the PPT/DE
can be made by selecting the Text tab. The text properties for Process
Points are similar to those used to edit static text objects.
5. Click OK. A box with question marks representing the PPT/DE format
selected appears in the work area.
ICONICS 201
box.
OPC Request Allows you to choose from a list that offers the following
Type choices: Native, Float, Double, Short, Long, Bool, String,
Byte, Word, DWord, and Char.
Client Display Allows you to choose from a list that offers the following
Type choices: Float, Double, Short, Long, Bool, String, Byte,
Word, DWord, and Char.
Format Type or select the value format for the connected point.
Format - Float Offers many default formats, such as "xxxx.xx," in a
drop-down list for analog (floating point) process points.
You can also define a scientific notation format using the
predefined formats, or you can create a user-defined
format. An example of scientific notation formats is the
"x.xxe" format.
Format - Double Offers the same formats as Float.
Format - Short Offers 10 default formats for integers, such as xxxx.
Format - Long Offers the same formats as Short.
Format - Bool Defines two-state display formats. Offers default formats,
such as 0/1, Off/On, Yes/No, False/True, Auto/Manual,
Enable/Disable, and Stop/Run.
Format - String Defines String text display formats, 10, 20, 30, 40, 50,
60, 70, and 80, as the number of characters. For String
process points, you must define the number of text
characters before you place this object in the display.
Eight predefined string lengths are provided in the menu.
You can use the predefined format or create your own.
Format - Byte Offers the same formats as Short and Long.
Format - DWord Offers the same formats as Short and Long. "Double
word" is an unsigned long value (32 bits).
Format - Word Offers the same formats as Short and Long. "Word" is an
unsigned 16-bit value.
Format - Char Offers the same formats as Short and Long. "Char" is a
signed 8-bit value.
Initial Value Defines the initial (startup) value to which the data-entry
object is initialized when the display is launched in
runtime mode.
Input Range Allows you to specify a low and high range in the boxes
provided. This range applies to data entries only. In
runtime mode, GraphWorX32 will not allow you to enter a
value outside this range.
States Opens the State Field Configuration dialog box, which
allows you to enter the meaning of a binary value. See
the State Fields section for more information.
ICONICS 202
State Fields
Clicking the States button in the PPT/DE tab of the Property Inspector opens
the State Field Configuration dialog box, shown below, which allows you to
enter the meaning of a binary value. State fields refer to the state of a variable.
They are usually a binary value, which is attached to a string, which in turn has
some meaning.
The configuration of state fields is very similar to that of aliases. You can enter
a state value or simply select a state that already exists, enter or change the
state string, and then click the proper action button (Add, Remove, Clear or
Clear All). The Import and Export buttons open the Open and Save As
dialogs, respectively. The Default String refers to the string that will appear
when the state does not have a preconfigured string attached to it. If the
process point is set to Data Entry, a drop-down menu of all possible states will
be available during runtime, as shown in the example below.
ICONICS 203
Data Entry Process Point In Runtime Mode
Time/Date
Different options are provided for the Time and Date functionality under the
Dynamics menu of GraphWorX32.
To define Time/Date:
1. Select Intrinsics - Time/Date from the Dynamics menu, or click the
Time/Date button on the Dynamics toolbar.
2. Click the work area where you want the Time/Date to appear.
3. This opens the Dynamic Property Inspector page for Time/Date, as
shown below.
4. Select a time and date format. Scroll through the various predefined
formats in the format list box.
5. You can configure additional properties relating to the visual
appearance of the Time/Date object using the Text tab, which is similar
to that used to edit static text objects.
6. Click OK. The Time/Date object appears in your display.
ICONICS 204
Property Inspector Dialog Box: Time/Date Tab
Push Button
ICONICS 205
3. This opens the Property Inspector for push buttons. The Property
Inspector includes tabs for Pick (the same tab as the pick dynamic)
and Button (the same tab as the static text object).
4. Configure the properties for the push button, and then click OK to save
these changes. The push button appears in the display, as shown
below.
Check Box
The Check Box function allows you to create a check box in the same way you
can create a push button. Check boxes differ slightly from normal push buttons
in both appearance and behavior. GraphWorX32 check boxes look and act like
standard Windows check box controls. When selected in runtime mode, the
check box remains selected until it is clicked again.
To create a check box:
1. Select Intrinsics
2. - Check Box from the Dynamics menu, or click the Check Box
button on the Dynamics toolbar.
3. Click the work area where you want the check box to appear.
4. This opens the Property Inspector for check boxes. The Property
Inspector includes tabs for Pick (the same tab as the pick dynamic) and
Check Box (the same tab as the static text object).
5. Configure the properties for the check box, and then click OK to save
these changes. The check box appears in the display.
Radio Button
The Radio Button function allows you to create a radio button in the same way
you can create a push button or a check box. Radio buttons differ slightly from
normal push buttons in both appearance and behavior. GraphWorX32 radio
buttons look and act like standard Windows radio buttons controls. When
pressed in runtime mode, the radio button becomes selected and automatically
deselects all other radio buttons that belong to the same group.
ICONICS 206
To create a radio button:
1. Select Intrinsics - Radio Button from the Dynamics menu, or
click the Radio Button button on the Dynamics toolbar.
2. Click the work area where you want the radio button to appear.
3. This opens the Property Inspector for radio buttons. The
Property Inspector includes tabs for Pick (the same tab as the
pick dynamic) and Radio Button (the same tab as the static text
object).
4. Configure the properties for the radio button, and then click OK to
save these changes. The radio button appears in the display.
ICONICS 207
GraphWorX32 Display Button
GraphWorX32 contains a feature called a display button. A display button,
once configured through a wizard, can do one of four things:
Load a new display.
Open a display in an embedded GraphWorX32 window.
Display a popup window.
Serve as a drag-and-drop object that can be placed in a GraphWorX32
ActiveX container to load a display.
This feature reduces clutter in a display because embedded windows and popup
windows are shown only when needed by the push of a button.
To configure a display button, select Intrinsics - Display Button Wizard from
the Dynamics menu, or by click the Display Button button on the Dynamics
toolbar. This opens the Display Button Wizard, shown in the figure below.
The Display Button Wizard is a very simple, single-dialog wizard. The Preview
field shows what the surface of the button will look like once it is configured. The
options available for customizing both the appearance and functionality of the
button are outlined in the following sections.
ICONICS 208
Note: Once the Display Button Wizard settings are changed, they will default to
these settings for the remainder of the current editing session.
Size
Display File
Action
Label
Size
The Size field in the Display Button Wizard allows you to select the size of the
button. The button in the Preview window resizes to match the item selected to
show you exactly what size the button will be.
Display File
In the Display File field in the Display Button Wizard, enter the name of the file
that the display button will load. You can use the Browse button to search for and
select a file. Once a file is selected, the button will show a shrunken image of the
display it is configured to load.
Action
This combo box determines how the button will behave in runtime mode. Each
of the four available actions is listed below and uses the display entered in the
Display File field.
Load display. Closes the current display and opens the new display.
Popup window. Opens a popup window that, unlike the embedded window, is
not restricted to the inside of the GraphWorX32 display and can be maximized or
minimized by the user.
Drag/drop load. When this option is chosen, the button no longer behaves like a
standard button. Rather it behaves like a drag/drop object. If there are existing
GraphWorX32 containers in the display, the button can then be dragged and
dropped into the container, causing the specified display to load.
Label
ICONICS 209
In the Label field of the Display Button Wizard, you can specify which label is to
appear on the display button. If you do not wish to have a label on the button,
uncheck the check box next to Label. Clicking the Font button to choose the font
type. The appropriate attributes from the standard font window can change the
label font. You can put the label near the top or near the bottom of the button by
selecting either Top or Bottom in the combo box next to Label Position.
Once the wizard is complete, the display button is ready to be used in runtime
mode. Upon execution, the button will perform according to the way it was
configured in the wizard. The figure below shows three different display buttons.
Each one launches a simple display called "Ellipse.gdf," which is simply an
ellipse configured to rotate through the use of a simulated tag. One display
button is configured to launch a popup window. The second launches an
embedded window. The third is a Drag/Drop button located next to a
GraphWorX32 ActiveX container.
Three different types of runtime windows, each with its own independently
animated ellipse, all come into existence in runtime through the use of display
buttons. At the top left of the figure is a demonstration of the effect of a display
button used to launch a popup window. At the top right, an embedded window
display button is shown. As you can see, the popup window can be minimized
and maximized, while the embedded window cannot. At the bottom of the figure
is a Drag/Drop display button next to a GraphWorX32 container that was, in
configuration mode, an empty container. Dragging that button and dropping it
into the container caused the ellipse display to load in the container. Had there
already been a display in the container, it would have been replaced by the new
display. In a more practical setting, multiple displays can be called by one
master display through the use of display buttons. Entire displays get
ICONICS 210
encapsulated in small, user-defined buttons ready to be activated at the user's
request.
ICONICS 211
Customizing
Custom Configuration
Custom Command Execution
Custom Configuration
Every tab in the GraphWorX32 Property Inspector has a Custom button located
next to the Custom Data edit field. This button can be tied to a custom
configuration utility. The custom configuration utility has to be programmed by the
user.
Clicking this button will create an Automation object that has a certain program
ID (ProgID). By default the ProgID is IcoCustom.Configure. This ProgID can be
overridden by setting an alternative ProgID in the Windows registry key:
HKEY_LOCAL_MACHINE\SOFTWARE\ICONICS\Gwx32\OEM
Information\Custom Configure ProgID = "YourProgIDHere"
You will probably want this Automation object to be exposed from a DLL. Gwx32
then uses the dispatch interface of this object to call the method:
boolean CustomConfigure(long hWndParent, IDispatch* ObjectOne,
BSTR ObjectOneType, IDispatch* ObjectTwo, BSTR ObjectTwoType);
Explanation:
hWndParent - the window handle of Gwx32 property inspector. You will probably
want to popup a modal dialog as your custom configuration UI. Use this window
handle as the parent of your dialog.
ObjectOne - dispatch pointer of the Gwx32 object associated with the Gwx32
property page currently shown (i.e. if the "pick" page is currently active,
ObjectOne is the "GwxPick" object for that page).
ObjectOneType - String name of the object type for ObjectOne (for example,
"GwxPick"). You will probably want to check the object type to be sure that you
support configuration for this object type.
ObjectTwo - dispatch pointer of the Gwx32 Display to which ObjectOne belongs.
ObjectTwoType - String name of the object type for ObjectTwo (i.e.
"GwxDisplay").
Return value is TRUE if you made changes to the objects passed to this method.
FALSE if no changes were made (i.e. Cancel). DO NOT Release() the dispatch
pointers passed to this method!!!
After the method returns, Gwx32 releases the dispatch pointer for the
"IcoCustom.Configure" automation object.
ICONICS 212
{
CString obj1Type(ObjectOneType);
if (obj1Type == _T("GwxPick"))
{
CString strCustomData;
//Run you configuration dialog here...
if (returnValOfConfigDialog)
{
COleDispatchDriver obj1(ObjectOne, FALSE);
//set user custom data
obj1.SetProperty(0x10001, VT_BSTR,
(LPCTSTR)strRCustomData);
//set pick action = Custom Command
obj1.SetProperty(0x1, VT_I4, (long)8);
return TRUE;
}
}
else
{
AfxMessageBox(_T("Custom Configuration for this object type is not
supported."));
}
return FALSE;
}
HKEY_LOCAL_MACHINE\SOFTWARE\ICONICS\Gwx32\Runtime
Settings\DataThread\Priority
HKEY_LOCAL_MACHINE\SOFTWARE\ICONICS\Gwx32\Runtime
Settings\TimerThread\Priority
The values are strings, and the following strings are valid:
-15 THREAD_PRIORITY_IDLE
-2 THREAD_PRIORITY_LOWEST
-1 THREAD_PRIORITY_BELOW_NORMAL
0 THREAD_PRIORITY_NORMAL [default]
1 THREAD_PRIORITY_ABOVE_NORMAL
2 THREAD_PRIORITY_HIGHEST
ICONICS 213
15 THREAD_PRIORITY_TIME_CRITICAL
You will probably want this Automation object to be exposed from an EXE. The
EXE should allow you to create multiple instances of this automation object
without launching multiple instances of the application.
Gwx32 then uses the dispatch interface of this object to call the method:
boolean CustomCommand(long hWndParent, IDispatch* ObjectOne,
BSTR ObjectOneType, IDispatch* ObjectTwo, BSTR ObjectTwoType);
The parameters are the same as CustomConfigure() described in the previous
section. DO NOT Release() the dispatch pointers passed to this method!!!
After the method returns, Gwx32 does NOT release the dispatch pointer for the
"IcoCustom.Command" automation object. Gwx32 keeps the dispatch pointer for
the next time a Custom Command is executed (so that Gwx32 doesn't have to
create the object again (so execution is faster)). This dispatch pointer is not
released until this instance of Gwx32 is closed.
ICONICS 214
Your comments and suggestions on the operation of this software are
welcome. Please address them to:
ICONICS
100 Foxborough Blvd.
Foxborough, MA 02035
Tel: 508-543-8600
FAX: 508-543-1503
E-MAIL: [email protected]
WEB: http://www.iconics.com
Chapter 9 Tools
Contents
Tools Menu
Function Keys
Set Working Directory
Alias File Editor
Exporting to HTML
Download to Windows CE Support
ICONICS 215
Tools Menu
The Tools menu allows the user to access many tools that are used in the
manipulation of GraphWorX32 data. The following is a list of options available
from this list:
Macros (Create, Edit, Step, Run, Clean Unused VBA Modules, and
open the Visual Basic Editor). (For more information on the Visual
Basic Editor, please refer to the Visual Basic for Applications
documentation.)
Function Keys
Set Working Directory
Security Configuration (For more information, please refer to the
ICONICS Security Configurator documentation.)
Alias File Editor
16 bit to 32 bit Translator (For more information, please refer to the
ICONICS GraphWorX32 Translation Utility documentation.
Export to HTML
Windows CE (Configure for Windows CE and Windows CE
Preferences)
ICONICS 216
Function Keys
New in Version 6.1 is the Function Keys feature available on the Tools menu.
The purpose of this feature is to provide simple function keys management and a
hierarchical functionality. Select Function Keys from the Tools menu. This
opens the Function Keys Script Editor, shown below, which allows you to add,
edit, and remove triggers. A trigger is a combination of a shortcut key and a VBA
script name, which together allow the user to open a VBA script when the
shortcut key is pressed.
Clicking the Add button or the Edit button opens the Function Key Properties
dialog box, shown below, which enables you to specify the shortcut and the
script.
ICONICS 217
Function Key Properties
You can either type the script name or click the VBA Edit button, which creates a
script or jumps to the script if the script already exists. You can now type the
script body in the VBA editor. It is recommended that you debug the script and
verify that it compiles without problems by clicking Debug and Compile Project
in the VBA Editor.
The Scope field allows you to specify the scope of the script. Currently only the
Display Level script scope is available. Display level function keys are the first
step of the function keys hierarchy. The other scope options are disabled. Future
versions of GraphWorX32 will implement the other scopes.
The Description field is simply a text field that appears in the last column of the
Function Keys Script Editor.
ICONICS 218
Set Working Directory
The Set Working Directory command on the Tools menu opens the Set
Working Directory dialog box, shown below, which enables you to configure a
custom directory in which all application configuration files will be stored and
retrieved. Click Browse to select the directory.
ICONICS 219
Alias File Editor
The Alias File Editor command on the Tools menu opens the Alias File Editor
dialog box, shown below, which allows you Add, Remove, and Change aliases.
Click on the Aliases button to show aliases for the display. You can also choose
to Import or Export an alias. Under the Alias Definition field, you can define
aliases using the Tags Menu button, which allows you to select tags,
expressions, local variables, and simulation variables.
ICONICS 220
Exporting to HTML
The HTML Export Tool enables you to publish your GraphWorX32 (.gdf)
display over a network (LAN or Internet). In publishing the display to a Web
server, WebHMI uses HTML to reference the .gdf files in an Internet-enabled
format. Once the display is "exported" and published, client machines can
browse it through an Internet browser, such as Microsoft Internet Explorer or
Netscape Navigator.
Note: Netscape Navigator generally does not support ActiveX technology.
ICONICS has solved this problem by supplementing Netscape with a plug-in.
Acting as a bridge, this plug-in allows for an ActiveX component to be put into
the special Netscape module.
In general, the HTML publishing process involves the following steps:
1. A developer creates a GraphWorX32 display (.gdf) on a Developer
Work Station with GraphWorX32 installed.
2. The GraphWorX32 HTML Export Tool is used, which generates the
appropriate HTML code (references for the required plug-ins needed
to deliver the ICONICS ActiveX components to run the .gdf file), and
publishes both the HTML file and the .gdf display on a remote Web
server.
Note: The GraphWorX32 display itself is not really converted into
HTML; rather, the display is referenced by the ActiveX plug-in.
3. The end user browses to the Web server through an Internet browser,
such as Internet Explorer.
4. The Web server delivers all the necessary components to the client PC,
which can then run the GraphWorX32 displays directly within their
Internet browser.
To expand on step 2 above, the following Internet Explorer example shows the
HTML source code generated to reference a .gdf. The GWXview32.cab file is
referenced in the "codeBase" field to deliver the plug-in for the GraphWorX32
Viewer ActiveX. This in turn opens up the .gdf display. In this example, the
.gdf display file is called Building1.gdf, as shown below in the "DisplayName"
parameter field.
<OBJECT classid=clsid:98A5DDE3-563B-11CF-A343-487C03C10000
codeBase="http://www.myserver.com/webhmi/cabs/GWXview32.cab"
id=GWXview321 style="HEIGHT: 420px; WIDTH: 620px" height=420
width=620>
<param name="_Version" value="65537">
<param name="_ExtentX" value="16404">
<param name="_ExtentY" value="11113">
<param name="_StockProps" value="160">
<param name="BorderStyle" value="1">
<param name="Appearance" value="1">
<param name="DisplayName"
value="http://www.myserver.com/webhmi/Building1.gdf">
<param name="UseAmbientBackColor" value="0">
<param name="AutoStartRuntime" value="-1">
<param name="OverrideScrollbarSettings" value="1">
<param name="VerticalScrollbar" value="0">
<param name="HorizontalScrollbar" value="0">
</OBJECT>
ICONICS 221
Exporting a .gdf file to HTML will not only reference the GWXview32.cab file
shown above, but will also reference any other "plug-in" .cab files required for
other ICONICS ActiveX components that may be included within the .gdf file
(e.g., TrendWorX32 or AlarmWorX32 Viewer ActiveX controls).
This is the simple procedure used for the displays used on a project. However,
before any of these .gdf files can communicate with live OPC data, there must
have been delivered to the Internet browser the .cab file plug-in for GenBroker
(for communications, security, licensing, etc.). This should be placed on a
"welcome" home page screen, so that it is delivered to the end user before
running animated displays. This is part of the IcoSetServer.cab file, and it
needs a .gbc (GenBroker configuration) file as well. A sample HTML source is
shown below.
<object id="SetServer2" classid="clsid:57802C16-9A15-11D4-B2A8-
0090272E599B"
codeBase=http://www.myserver.com/WebHMI/cabs/IcoSetServer.cab
height=28 width=17>
<PARAM NAME="CfgName"
VALUE="http://www.myserver.com/WebHMI/Samples/Default.gbc">
</object>
ICONICS 222
Developer Station Requirement
The developer station requires GraphWorX32 Version 6.1 or greater.
ICONICS 223
Export to HTML Dialog Box
In the Web Server CAB files URL field, type in the complete path of the .cab
folder, as shown above.
Finally, select your browser. In the Export to HTML dialog box shown above,
MS Internet Explorer has already been selected. Click OK.
Note: If your browser is Netscape Navigator, select Netscape Navigator in the
Generate HTML Code For field. The information you type in the Server Name
field will be the same as above. The Web Server CAB Files URL field will
ICONICS 224
become the Web Server DPL Files URL, and the ActiveX Plug-in URL field
will be activated. You will then be able to publish your HTML pages by following
the steps given above for users with MS Internet Explorer.
The Advanced Settings option of the Export to HTML dialog box allows for
Multiple WebHMI Server Support configuration and WebHMI Component
Versioning Support. Clicking Configure opens the Export Options dialog
box, shown below, which allows you to configure the settings for these options.
Selecting the Multiple WebHMI Server Support option in the Export Options
dialog box allows you to receive data from several WebHMI servers, whether
you are exporting locally or publishing to the Web server. The server that your
client connects to will depend on the type of information that you request. If
Server A, for example, does not contain the components necessary to answer
your request, it will be forwarded to Server B, or Server C, and so on. The
GenBroker Configuration File URL field allows you to specify the destination
address of the GenBroker configuration (.gbc) file.
ICONICS 225
If you do not click on the Publish to Web Server option, your client will
continue to receive information only from the server with which it made the
original connection.
The Gwx32 dialog box could appear, as shown below. This dialog box tells you
that your display contains VBA. (If the current display was previously saved as
non-VBA, this dialog box will not appear.) Your display file will then be saved as
non-VBA to the file whose address appears on the dialog box. To continue
exporting your file to HTML, click Yes.
Note: You should have access rights to the WebHMI server machine to upload
information. If an additional window appears, asking for this information, please
enter your user ID and password.
The second Gwx32 dialog box will appear, as shown below, indicating that you
have successfully uploaded your HTML pages and other information. Now open
your browser to view them.
In the Address field of the MS Internet Explorer home page, type the address
of your HTML page. A complete address is, for example,
"http://www.myserver.com/webhmi/Samples/filename."
ICONICS 226
The Address field should resemble the one shown below. Be sure to include
the name of the file ("filename") that you have published and the extension
"htm."
Exporting Locally
In the Export to HTML dialog box above, you can also select Export Locally.
You can then generate an HTML page on the local machine and save the page
in the same location of the display. This option is useful to HTML programmers
who may wish to edit the HTML code in such programs as FrontPage.
ICONICS 227
Download to Windows CE Support
New to Version 6.1 is the file download to Windows CE feature, which was added
to GraphWorX32, TrendWorX32, and AlarmWor1X32. When developing a
configuration file for a "Pocket" application, this feature allows you to download
the display configuration file to a Windows CE device. The file download function
uses Microsoft ActiveSync to connect to the CE device.
ICONICS 228
You must enable the file download ActiveSync module in the ActiveSync
Manager by checking the Download box.
An association with the CE device must be created to synchronize the download
ActiveSync modules. When the CE device responds without any problems, the
download synchronization module is active.
Microsoft ActiveSync
For more information about Microsoft ActiveSync services, please refer to the
Microsoft ActiveSync help documentation.
When enabled, the file download tool immediately downloads the configuration
file for Windows CE to the CE device. When disabled, the configured file will only
be saved.
ICONICS 229
Windows CE Preferences
You can also click the Browse button to select the destination directory. Clicking
the Browse button opens the Browse for Folder dialog box, shown below,
which shows the CE device directories. A warning message box will be
displayed when the file download ActiveSync module is inactive.
ICONICS 230
File Download ActiveSync Module
You can also use the Windows CE Preferences dialog box to configure other
settings for the CE device. You can set the resolution of the target device by
clicking the Resolution button. This displays a list of resolutions from 200 x 320
up to 1024 x 768.
The ICONICS Import File dialog box is displayed, indicating that the files are
downloading to the Windows CE device.
ICONICS 231
Your comments and suggestions on the operation of this software are
welcome. Please address them to:
ICONICS
100 Foxborough Blvd.
Foxborough, MA 02035
Tel: 508-543-8600
FAX: 508-543-1503
E-MAIL: [email protected]
WEB: http://www.iconics.com
Contents
Starting Runtime
Runtime File Menu
File Functions
Runtime View Menu
Runtime Security
ICONICS Login User Menu
Options
Runtime Data Entry
ICONICS 232
Starting Runtime
Menu Bar Option
To start runtime mode in GraphWorX32, select Runtime on the menu bar.
Shortcut on Desktop
1. Right-click on the shortcut for GraphWorX32 to open the Properties
menu.
2. Select Shortcut - Target and type in "runtime" to enter runtime mode
from the shortcut.
When you enter runtime mode, the menu bar changes to display the runtime
functions only, as shown below.
Runtime Environment
ICONICS 233
Runtime File Menu
ICONICS 234
File Functions
File - Open
Printing the Screen
Print Preview
File: Print Setup
File - Open
This section explains how to load displays during runtime mode. To load a
display:
1. Select the desired window if you have multiple windows running.
2. Select Open from the File menu. This opens the Open File dialog box.
3. Select a display file and click OK. The display appears in the selected
window.
Print Preview
To preview the display prior to printing:
1. Select Print Preview from the File menu.
2. The menu bar provides options to preview the current page, previous page, next
page, or two pages at once. It also lets you zoom in and out of the display.
3. Click Close to exit the preview mode to the full screen mode.
ICONICS 235
Runtime View Menu
The View menu in runtime mode provides the same options as the View menu
that is available in configuration mode.
Data Statistics
Selecting Data Statistics from the View menu shows runtime information in the
OLE Express dialog box.
Display History
GraphWorX32 maintains a history of the last 50 displays. You can navigate
through the display history via using the commands DisplayBack and
DisplayForward on the View menu. These commands are available as pick
commands and as OLE Automation methods. The display history feature is
similar to Microsoft Internet Explorer's back/forward feature.
Note: The display file history (forward/back commands) remembers the
initial alias settings specified when a display is opened (see description of
the runtime aliasing feature), and will reset those aliases when you go back
to that display in the file history.
ICONICS 236
Runtime Security
This section explains how to log in to the runtime environment. Security levels
are set initially in the project file and determine how much accessibility operators
have during runtime. To login to runtime:
1. Select Security - Login from the Tools menu. The Security Login
dialog box opens, as shown below.
2. Enter the user name and password in the appropriate fields, and then
click OK.
ICONICS 237
ICONICS Login User Menu
User Menu
Login / Logout
Change Password
Exit
Login / Logout
Selecting Login from the User menu of the ICONICS Security Login screen
opens the ICONICS Security Login dialog box, shown below.
Change Password
Selecting Change Password from the User menu of the ICONICS Security
Login screen opens the Change Password dialog box, shown below.
To change the password:
1. Select Change Password on the User menu.
2. Fill in the parameters listed in the table below:
3. Click OK.
ICONICS 238
Change Password Dialog Box
Exit
Select Exit from the User menu of the ICONICS Security Login screen to exit
the security screen.
ICONICS 239
Options
Options Menu
Options - Preferences
Toolbar and Status Bar
Help
Options - Preferences
1. Select Preferences from the Options menu of the ICONICS Security
Login screen to open the Preferences dialog box, shown below.
2. Define the parameters listed in the table below:
3. Click OK for the changes to be implemented
ICONICS 240
Auto Logout Specifies the time period between Auto Logout
Reminder Reminders (in minutes).
Status update Period Specifies the Status Update Period (in seconds).
Minimize after login If checked, the screen is minimized after login.
Help
Selecting Help topics on the Options menu of the ICONICS Security Login
screen displays the security help documentation. You can also click the Help
button on the toolbar, which opens the ICONICS About Box.
ICONICS 241
Runtime Data Entry
During runtime mode, you can quickly activate or enter data-entry fields by
using the TAB key.
ICONICS 242
Your comments and suggestions on the operation of this software are
welcome. Please address them to:
ICONICS
100 Foxborough Blvd.
Foxborough, MA 02035
Tel: 508-543-8600
FAX: 508-543-1503
E-MAIL: [email protected]
WEB: http://www.iconics.com
Contents
Introduction to VBA Wizards
How the VBA Wizard Works
Rules for VBA Wizard
VBA Wizard Creation Tool
More Information About VBA Wizards
Other Sources of Information
ICONICS 243
Introduction to VBA Wizards
VBA Wizards are GraphWorX32 objects with Visual Basic code behind them.
The code is run either in design mode to help to configure GraphWorX32 object
or in runtime mode to execute a specific task.
Normally, the VBA code is stored in the current document, saved from the VBA
Editor when the display is saved, and loaded back to VBA Editor when a display
is open in GraphWorX32.
However, if the rules described below are followed, the VBA code can be
"bound" to a GraphWorX32 object. When such an object is pasted / dropped to
another instance of GraphWorx32, to the Symbol Library, or to scrap (desktop),
this code goes with it.
ICONICS 244
How the VBA Wizard Works
The VBA Wizard can be run to perform a specific task either in design on runtime
mode.
Design Mode
Runtime Mode
Design Mode
You can launch the VBA Wizard macro in design mode in GraphWorX32 by
double-clicking the VBA Wizard.
By default, when an object is double-clicked in design mode, a Property
Inspector is launched. However, if there is a special keyword in the first line of
the Custom Data field of Property Inspector, a macro can be run.
Runtime Mode
You can launch the VBA Wizard macro in runtime mode by clicking a
GraphWorX32 button or a pick action configured to run a macro. The Action field
in the Pick tab of the Property Inspector must be configured to Run VBA Script.
The Script Name field must contain a macro name in the following format:
GwxMacroName_Main.MacroName
ICONICS 245
VBA Wizard in Button
The Custom Data field can contain any string keeping custom data as desired
between angle brackets.
ICONICS 246
Rules for VBA Wizard
GraphWorX32 takes care of coding behind the VBA Wizard. Due to the special
naming convention of all modules belonging to a specific VBA Wizard, the code
in these modules can be properly moved with the symbol.
If the macro name of the VBA Wizard is "MacroName," then all code modules
must start with the string "GwxMacroName_." This technique allows more code
and form modules to be used for one VBA Wizard object, and it facilitates moving
all of this code with the object when necessary.
ICONICS 247
VBA Wizard Creation Tool
Because creating VBA Wizard objects would be a tedious task, GraphWorX32
offers a useful creation tool, the VBA Script Wizard dialog box, which converts
objects to a VBA Wizard and generates the VBA template code. The code can
then be easily enhanced and modified
We demonstrate the use of this tool with a simple example. Run GraphWorX32,
create several ellipses and group them into a symbol. Right-click on this symbol
to display the popup menu, and then select the menu item Create Macro. You
can also select Macros - Create from the Tools menu. This opens the VBA
Script Wizard dialog box, as shown below. Enter a macro name (for example,
"Test") in the Script Name field. Note, that the Module field is unavailable, but it
is filled in automatically based on the name typed in the Script Name field.
Close the dialog box by clicking OK. A VBA Editor should start, as shown below,
and the cursor should be placed in the body of the "Test" subroutine in a module
"GwxTest_Main." You can now type the code, which is run when you double-click
on the symbol in design mode. Try the example code shown in the figure below.
ICONICS 248
Test Subroutine (Generated by Wizard)
Return to GraphWorX32, and double-click the symbol. A beep should sound, and
a message should appear.
You can try other examples with different settings in the following fields of the
VBA Script Wizard dialog box:
Module
The Module field of the VBA Script Wizard dialog box is always grayed out
because the module name is generated automatically based on the Script Name.
If the Insert code to the script to parse parameters check box is checked,
some extra code is generated in the body of the macro subroutine. It helps in
retrieving and storing parameters from the VBA Wizard object. This code uses
the "GwxTools" module to convert your parameters to a string, called "StrPar,"
that is local to your macro's subroutine.
ICONICS 249
Parameters
Type any string you like in the Parameters field of the VBA Script Wizard dialog
box. You can obtain this string when the macro runs. This field is designed to
allow custom data specific to a VBA Wizard instance. Different instances of the
same objects can keep different data. Using this field is optional. This feature
serves to simplify your code by allowing you to pass values into a macro.
Form
The Form field in the VBA Script Wizard dialog box is always grayed pit and is
generated automatically based on the Script Name.
ICONICS 250
More Information About VBA Wizards
Design Mode VBA Wizard
Runtime and Design Mode VBA Wizard
Runtime Mode VBA Wizard
Create Macro
Select the Create command to open the VBA Script Wizard dialog box. You can
also right-click on an object and then select Create VBA Script from the popup
menu. Both menus are enabled if an object that is not VBA Wizard is selected in
the display.
Edit Macro
The Edit command opens the VBA Editor and places the cursor in the body of
the macro. You can also right-click on an object and then select Edit VBA Script
from the popup menu. Both menus are enabled if a VBA Wizard object is
selected in the display.
Step Macro
The Step command runs the macro in step (debug) mode. It opens the VBA
Editor and stops on the first line of the macro. It is enabled if a VBA Wizard
object is selected in the display.
Run Macro
The Run runs the macro. You can also double-click a VBA Wizard. It is enabled
if a VBA Wizard object is selected in the display.
ICONICS 251
Runtime and Design Mode VBA Wizard
Clean VBA Unused Modules
When a VBA Wizard is deleted or moved out of the current display, the VBA
code is not deleted automatically. However, you can use this function to remove
all modules from the VBA Editor that start with the "Gwx" string and are not
referenced from the currently displayed VBA Wizards (either design or runtime
mode based).
ICONICS 252
Your comments and suggestions on the operation of this software are
welcome. Please address them to:
ICONICS
100 Foxborough Blvd.
Foxborough, MA 02035
Tel: 508-543-8600
FAX: 508-543-1503
E-MAIL: [email protected]
WEB: http://www.iconics.com
Contents
Inserting the GraphWorX32 ActiveX
The GraphWorX32 ActiveX Toolbar
Configuring the GraphWorX32 ActiveX
ICONICS 253
Inserting the GraphWorX32 ActiveX
Techniques for inserting an ActiveX control may vary slightly among different
control containers, however the basics are the same. This section describes how
to insert the GraphWorX32 ActiveX into GraphWorX32.exe.
From the Edit menu, choose Insert New Object, or click the Insert ActiveX
Control/OLE Object button on the ActiveX toolbar, as shown below.
This opens the Insert Object dialog box, shown in the figure below:
Select the item ICONICS GWX View32 ActiveX from the list of available controls,
and then click OK. The GraphWorX ActiveX control will appear in the center of
the display. Alternatively, you can use the GWX View32 button on the ActiveX
toolbar to directly insert the GraphWorX ActiveX.
ICONICS 254
GraphWorX32 ActiveX Toolbar
The GraphWorX32 ActiveX toolbar which is part of the GraphWorX32 Screen,
contains five buttons as shown below:
OLE ActiveX
Clicking the OLE button on the ActiveX toolbar inserts an ActiveX Control/OLE
Object. See GraphWorX ActiveX Control - OLE Automation topic for more
information.
Graphics ActiveX
Clicking the GWXView32 ActiveX button on the ActiveX toolbar opens the
Graphics ActiveX.
ICONICS 255
GWXView32 ActiveX Properties Dialog Box
The dialog box shown above allows you to insert a GraphworX32 Display within
this display.
You can save this inserted display with or without VBA. The default is that is
saved with VBA. However, if the display is embedded, is should be saved
without VBA as the following error message will display if you attempt to save it
with VBA.
Error Message
Trend ActiveX
Clicking the TWXView32 button on the ActiveX toolbar opens the TrendWorX32
Viewer ActiveX. For more information, refer to the TrendWorX32 Viewer ActiveX
help documentation.
Alarm ActiveX
ICONICS 256
Clicking the AWXView32 button on the ActiveX toolbar opens the AlarmWorX32
Container. For more information, refer to the AlarmWorX32 Viewer ActiveX help
documentation.
Gauge ActiveX
Clicking the GWXGauge ActiveX button on the ActiveX toolbar opens the
Gauge ActiveX, shown below.
ICONICS Gauge
For more information about the Gauge ActiveX, refer to the GWXGauge
ActiveX help documentation.
Switch ActiveX
Clicking the GWXSwitch ActiveX button on the ActiveX toolbar opens the
Switch ActiveX, shown below.
ICONICS 257
ICONICS Switch
For more information about the Switch ActiveX, refer to the GWXSwitch
ActiveX help documentation.
Slider ActiveX
Clicking the GWXSlider ActiveX button on the ActiveX toolbar opens the
Slider ActiveX, shown below.
Slider ActiveX
For more information about the Slider ActiveX, refer to the GWXSlider ActiveX
help documentation.
Numeric ActiveX
Clicking the GWXNumeric ActiveX button on the ActiveX toolbar opens the
Numeric ActiveX, shown below.
ICONICS 258
Numeric ActiveX
For more information abut the Numeric ActiveX, refer to the GWXNumeric
ActiveX help documentation.
Vessel ActiveX
Clicking the GWXVessel ActiveX button on the ActiveX toolbar opens the
Vessel ActiveX, shown below.
Vessel ActiveX
For more information about the Vessel ActiveX, refer to the GWXVessel
ActiveX help documentation.
ICONICS 259
Clicking the National Instruments ActiveX Control button on the ActiveX
toolbar opens the National Instruments ActiveX Control, shown below.
For more information about the National Instruments ActiveX, refer to the
National Instruments ActiveX help documentation.
ICONICS 260
Configuring the GraphWorX32 ActiveX
The GWXView32 ActiveX Properties dialog box, shown below, allows you to
change certain attributes of the GraphWorX32 ActiveX control.
To configure the GraphWorX32 Active X:
1. Double-click the GraphWorX32 ActiveX to display the control's
Properties dialog box, as shown below:
2. Fill in the parameters described in the table below, and then click OK.
ICONICS 261
runtime mode. This property only works if the
container supports the AmbientUserMode property.
GraphWorX32 and Visual Basic Forms both
support this property.
Override Scrollbar When this option is checked, this property indicates
Settings the control will override the scrollbar visibility
settings of the display currently loaded in the
control. When it is not checked, the control will use
the scrollbar settings defined in the currently loaded
display.
Horizontal Scrollbar When this option is checked, the horizontal
scrollbar of the control's window is visible. When it
is not checked, the horizontal scrollbar is hidden.
This property is ignored if Override Scrollbar
Settings is not checked.
Vertical Scrollbar When this option is checked, the vertical scrollbar
of the control's window is visible. When it is not
checked, the vertical scrollbar is hidden. This
property is ignored if Override Scrollbar Settings
is not checked.
ICONICS 262
Your comments and suggestions on the operation of this software are
welcome. Please address them to:
ICONICS
100 Foxborough Blvd.
Foxborough, MA 02035
Tel: 508-543-8600
FAX: 508-543-1503
E-MAIL: [email protected]
WEB: http://www.iconics.com
Contents
Introduction
Object Hierarchy
Automation Programming in C++ and VB:
Understanding Inheritance
Properties and Methods
ICONICS 263
Introduction
OLE Automation is used to access properties and methods of objects in
GraphWorX32.
Properties are used to reference attributes if an object (for example, a
GraphWorX32 display) has a BackgroundColor property. Methods are used to
make the object perform an action (for example, a display has a FileOpen
method that loads a new display).
Properties and methods can be called from Visual Basic scripts or from C++
programs.
There are numerous object types in GraphWorX32, each with their own methods
and properties. This section describes in detail, the methods and properties for
the object types exposed by GraphWorX32.
ICONICS 264
Object Hierarchy
The following diagram outlines the hierarchy of objects exposed by
GraphWorX32 via OLE Automation.
ICONICS 265
GwxRotation, etc.) are derived from GwxDynamic and consequently inherit all
the properties and methods of GwxDynamic. Dynamic objects are not visible
themselves; they exist to act upon the visual properties of an associated
GwxVisible derived object. A GwxVisible object can have many GwxDynamic
objects associated with it, by a GwxDynamic object has only one associated
GwxVisible object.
GwxPoint is the base object type for objects in a GraphWorX32 display that
reference OPC data, expressions, local variables, or constant values. Each
GwxDynamic object may have one or more GwxPoint objects associated with
it. GwxPoint objects are created and destroyed by GwxDynamic objects as
needed.
ICONICS 266
Automation Programming in C++ and VB: Understanding
Inheritance
The GraphWorX32 OLE Automation object hierarchy makes extensive use of
inheritance. This raises some programming issues in both C++ and Visual Basic.
To understand these programming issues, you must first understand how
methods and properties are accessed via OLE Automation interfaces.
An OLE Automation method or property can be accessed by the method/property
name or by an ID number associated with the method/property. When derived
objects use inherited methods/properties from a base object, the ID numbers for
the inherited methods/properties in the derived object must be changed such that
the high word of the ID number is set to the level of inheritance of the derived
object from base object in which the method property is defined. For example,
GwxVisible defines the FillColor property to have an ID number of 0x3.
GwxRectangle inherits the FillColor property as having the ID number 0x10003
(because GwxRectangle is derived from GwxVisible). Similarly, GwxButton
inherits the FillColor property as having the ID number 0x20003 (because
GwxButton is derived from GwxText which is derived from GwxVisible).
The nature of ID numbering for inheritance does not cause any problems when
accessing objects via their actual object types. Programming issues arise when
you want to downcast a derived object type to a base object type. For example,
the GwxDisplay method GetVisibleObjectFromName returns a GwxVisible
derived object, but there may be no way to know what the actual object type is
ahead of time, so the programmer would want to assign the return value to a
GwxVisible object (rather than a specific object type like GwxRectangle or
GwxEllipse). But, if you then try to access methods/properties defined for
GwxVisible of the returned object, they will not work because the ID numbers
will be wrong (if the returned object was actually a GwxRectangle the ID for
FillColor would be 0x10003, but since the object is being accessed via the base
GwxVisible object type it will try to use the ID number 0x3).
In Visual Basic, the solution to this issue is simple. If you don't know the actual
type of an object and you want to access it generically, use the object type
Object. This will cause VB to access methods and properties of the object by
name rather than by ID, thereby avoiding ID numbering issues.
In C++ this issue can require more work to get around. Typically when using
OLE Automation objects in C++ you will allow Developer Studio to generate
some kind of wrapper code for the automation interface. For instance, you can
use Class Wizard to generate a COleDispatchDriver derived wrapper class. Or,
you can use the #import directive to generate interface wrapper code (TLI and
TLH files). Both these techniques however, access methods and properties via
hard-coded ID numbers. Hence, when using such wrapper classes you will not
be able to correctly downcast object types. The best way around this issue is to
modify the generated wrapper classes for GwxVisible and GwxDynamic to
access methods and properties by name rather than by hard-coded ID.
ICONICS 267
Properties and Methods
GwxDisplay GwxDigitalColor
Events GwxDigitalColorInfo
GwxVisible GwxAnalogSelector
GwxText GwxAnalogColor
GwxRectangle GwxAnimator
GwxArc GwxSize
GwxSymbol GwxLocation
GwxOleObject GwxRotation
GwxEllipse GwxFlash
GwxLine GwxHide
GwxBitmap GwxPick
GwxMetafile GwxProcessPoint
GwxButton GwxTimedate
GwxDynamic GwxPoint
GwxDigitalSelector GWXView32
GwxDigitalSelectorInfo
ICONICS 268
GwxDisplay
GwxDisplay is the object type for GraphWorX32 displays. Properties and
methods of the GwxDisplay object type are described in detail below. Also
described, are the events exposed to GraphWorX32's integrated Visual Basic for
Applications (VBA). GwxDisplay objects can be created via the ProgID
Gwx32.Display.
Properties
OLE_COLOR BackgroundColor
Gets/Sets the current displays background color.
boolean Redraw
When TRUE, automation calls when change the visual appearance of a display
will automatically refresh the display. When FALSE, the user must explicitly
refresh the display (for instance, you may want to change the attributes of many
objects, and refresh them all at once).
short ScaleMode
Sets the scaling mode of the current display. Valid values are:
FixedScale = 0
Scaleable = 1
ScaleablePreserveAspect = 2
Methods
void BringWindowToTop()
Brings the GraphWorX32 main window to the top of the window z-order. (Not
available for displays running in GWXview32 objects).
void ClearGradientFill()
Clears a previously set background gradient fill (restores solid background fill).
void CloseAllPopupWindows()
Closes all currently open popup windows. (Not available in ActiveX ToolWorX).
void CloseWindow()
ICONICS 269
Closes the window for this display (this method is like the ExitApplication
method, however CloseWindow also works for displays running in popup
windows and embedded popup windows). (Not available in ActiveX ToolWorX).
ICONICS 270
Creates and returns a GwxBitmap object with the specified attributes, in the
current display. (See also GwxVisible). The fileName parameter refers to the
file name of a BMP file. Available only in configure mode.
ICONICS 271
boolean changeShadow, OLE_COLOR altFillColor, OLE_COLOR
altLineColor, OLE_COLOR altShadowColor)
Creates a GwxFlash object with the specified attributes and attaches it to the
visible object with the specified object name. Returns the newly created
GwxFlash object on success, NULL if the operation failed. (See also
GwxFlash and GwxDynamic). Available only in configure mode.
Creates a GwxPick object with the specified attributes and attaches it to the
visible object with the specified object name. Valid values for
GWXPICKACTION are:
PickLoadDisplay =0
PickDragDropLoad =1
PickPopupWindow =2
PickDownloadValue =3
PickToggleValue =4
PickLaunchApp =5
PickClose =6
PickRunScript =7
ICONICS 272
PickCustomCommand =8
PickEmbeddedWindow =9
PickDisplayBack = 10
PickDisplayForward = 11
PickSetAliases = 12
PickAliasesDialog = 13
ICONICS 273
(See also GwxProcessPoint, GwxText, GwxVisible, and GwxDynamic).
Available only in configure mode.
ICONICS 274
IDispatch* CreateStateField(BSTR textObjectName, BSTR
dynamicObjectName, boolean update, boolean dataEntry, boolean
hasInitialValue, VARIANT initialValue, BSTR stateConfiguration, BSTR
defaultState)
The stateConfiguration parameter has the following format:
value1<TAB>statestring1<CR-LF>value2<TAB>statestring2<CR-LF> etc.
The defaultState parameter is the string shown when no matching state is
found.
For more information, see CreateProcessPoint(). Available only in configure
mode.
void DeselectAllObjects()
ICONICS 275
Deselects all currently selected visible objects. Available only in configure
mode.
boolean DisplayBack()
Opens the previously loaded display in the display file history. (Not available in
ActiveX ToolWorX).
boolean DisplayForward()
Opens the next display in the display file history. (Not available in ActiveX
ToolWorX).
void DuplicateSelection()
Creates duplicates of the currently selected objects. Available only in configure
mode. (Not available for displays running in GWXview32 objects).
void ExitApplication()
Exits GraphWorX32. (Not available for displays running in GWXview32 objects).
boolean FileNew()
Starts a new (empty) display. Returns TRUE for success, FALSE for failure.
AliasNoCommand =0
AliasSetFromFile =1
AliasSetDirect =2
ICONICS 276
If aliasCommandType is AliasSetFromFile, aliasCommandString should be
a filename that specifies a text file containing tab-separated pairs of alias
names and alias definitions (see also SetAliasesFromFile()). If
aliasCommandType is AliasSetDirect, aliasCommandString should have
the following format:
aliasName1<TAB>aliasDef1<CR-LF>aliasName2<TAB>aliasDef2<CR-LF>
etc.
(In ActiveX ToolWorX this method only opens resource displays, not disk file
displays).
boolean FilePrint()
Prints the current display. Returns TRUE for success, FALSE for failure. (Not
available in ActiveX ToolWorX).
boolean FileSave()
Saves the current display. Returns TRUE for success, FALSE for failure. (Not
available for displays running in GWXview32 objects).
ICONICS 277
GwxDigitalSelector, GwxProcessPoint, GwxTimedate). Returns NULL if no
matching object is found.
BSTR GetFileName()
Returns the name of the currently loaded display.
BSTR GetFilePath()
Returns the path where the currently loaded display is located. The returned
path does not include the file name of the currently loaded display.
long GetFrameWindowHandle()
Gets the window handle of the frame window in which this GwxDisplay object
is running. (Not available in ActiveX ToolWorX).
IDispatch* GetHeadObject()
Gets the head visible object. In configure mode, the head object is the selected
object with the solid blue or red resize grips. In runtime mode, the head object
is the pickable object which currently has focus. If there is no head object, this
method returns NULL.
long GetNumberOfTopLevelVisibles()
Returns the number of visible objects in the root symbol of a display (referred to
as Top Level Visibles because they are the objects in top-most level of the
symbol hierarchy).
BSTR GetObjectTypeName()
Returns the type name of this object (GwxDisplay).
long GetOpenPopupCount()
Returns the number of open popup and embedded popup windows owned by
this display. (Not available in ActiveX ToolWorX).
ICONICS 278
the display loaded into the popup window (of type GwxDisplay) on success,
NULL on failure. (Not available in ActiveX ToolWorX).
IDispatch* GetParentDisplay()
If this display object is running in a popup window or embedded window, this
method returns the display object of the parent display (the parent display is the
display that opened the popup window). If the display is not running in a
popup/embedded window, this method returns NULL. (Not available in ActiveX
ToolWorX).
ICONICS 279
IDispatch* GwxGetVbaProject()
Returns the VBA Project interface. . (Not available for displays running in
GWXview32 objects).
void HideWindow()
Hides the GraphWorX32 main window.
boolean IsEmbeddedPopupWindow()
TRUE if this display is running in an embedded popup window; FALSE
otherwise. (Not available in ActiveX ToolWorX).
boolean IsPopupWindow()
TRUE if this display is running in a popup window or an embedded popup
window; FALSE otherwise. (Not available in ActiveX ToolWorX).
boolean IsRuntimeMode()
Returns TRUE is GraphWorX32 is currently in runtime mode, FALSE otherwise.
void MaximizeWindow()
Maximizes the GraphWorX32 main window. (Not available for displays running
in GWXview32 objects).
void MinimizeWindow()
Minimizes the GraphWorX32 main window. (Not available for displays running
in GWXview32 objects).
ICONICS 280
IDispatch* OpenEmbeddedWinSetAliases(BSTR filename, boolean center,
boolean hidden, GWXALIASCOMMAND aliasCommandType, BSTR
aliasCommandString)
Opens an embedded popup window with the specified display file and initially
sets the specified aliases. If currently in runtime mode, the aliases will be set
before any tags are requested. For descriptions of aliasCommandType and
aliasCommandString, see FileOpenSetAliases()). (Not available in ActiveX
ToolWorX).
boolean OpenSetAliasesDialog(GWXALIASCOMMAND
aliasCommandType, BSTR aliasCommandString, BSTR objectName)
Opens the Set Aliases Dialog. This dialog is used to allow the operator to enter
new alias definitions for a set of specified alias names. For descriptions of
aliasCommandType and aliasCommandString, see FileOpenSetAliases()).
The aliasCommandString parameter is the primary means of configuring the
dialog. For each unique alias name specified in aliasCommandString, there
will be a tab added to the dialog box. Alias definitions specified with the alias
names will be listed in the appropriate property pages combo box. The
objectName parameter specifies which visible object the new alias settings will
apply to (if no object name is specified, new alias settings will be applied to the
entire display). (Not available in ActiveX ToolWorX).
boolean PopAllCurrentSymbol()
ICONICS 281
Pops the current symbol edit level all the way back to the root level. Returns
TRUE for success, FALSE for failure. (See also
GwxSymbol::PushCurrentSymbol() ). Available only in configure mode.
boolean PopCurrentSymbol()
Pops the current symbol edit level up one level. Returns TRUE for success,
FALSE for failure. (See also GwxSymbol::PushCurrentSymbol() ). Available
only in configure mode.
void RefreshWindow()
Redraws the visible portion of a GraphWorX32 display.
void RestoreWindow()
Restores the (non-minimized/non-maximized) window size and position. (Not
available for displays running in GWXview32 objects).
ICONICS 282
aliasName1<TAB>aliasDef1<CR-LF>aliasName2<TAB>aliasDef2<CR-LF>
etc.
The rest of the parameters correspond to those in the gradient fill configuration
user interface.
ICONICS 283
boolean ShowDataSourceName, boolean ShowDataSourceValue, boolean
ShowStaticTooltips, boolean ShowStaticObjectName, boolean
ShowStaticObjectDescription)
Sets the tooltip properties for the display.
void ShowWindow()
Shows the GraphWorX32 main window.
void StartRuntime()
Puts GraphWorX32 into runtime mode.
void StopRuntime()
Takes GraphWorX32 out of runtime mode (into configure mode).
boolean ToggleRuntime()
Toggles the current operator mode between configure mode and runtime mode.
Returns TRUE, if the method put GraphWorX32 into runtime mode, FALSE if
the method put GraphWorX32 into configure mode.
ICONICS 284
boolean UngroupSymbol(BSTR objectName)
Ungroups the GwxSymbol object with the specified object name. Although the
function destroys the specified GwxSymbol, it does not destroy the objects that
were grouped in that symbol. Returns TRUE for success, FALSE for failure.
Available only in configure mode.
void ViewBoxZoom()
Enters Box Zoom mode. This mode allows the user to stretch a box defining
the new view area. (Not available in ActiveX ToolWorX).
void ViewFitToWindow()
Zooms such that all the objects in the display fit in the view. (Not available in
ActiveX ToolWorX).
void ViewHome()
Zooms to the home view. The home view is that view at which the display was
last saved. (Not available in ActiveX ToolWorX).
void ViewShowWholeDisplay()
Zooms such that the entire display dimensions fit in the view. (Not available in
ActiveX ToolWorX).
void ViewUnzoom()
Undoes the previous zoom command. (Not available in ActiveX ToolWorX).
void ViewZoomCustomDialog()
Brings up the Custom Zoom dialog. This dialog allows the user to type in a new
zoom percentage. (Not available in ActiveX ToolWorX).
ICONICS 285
Events
This section describes the events that are exposed to GraphWorX32s
integrated Visual Basic for Applications scripting. These events are also
exposed from the GWXview32 ActiveX control. (Note: for developers using
ActiveX ToolWorX, there are virtual member functions which correspond to the
events described below.)
void DisplayLoad()
This event is fired just after a display is loaded into GraphWorX32.
void DisplayUnload()
ICONICS 286
This event is fired just before a display is unloaded from GraphWorX32 (i.e. just
prior to loading a new display into GraphWorX32 or prior to closing
GraphWorX32).
void PostAnimateDisplay()
This event is fired after GraphWorX32 has finished animating a display.
ICONICS 287
void PostDeanimateDisplay()
This event is fired after GraphWorX32 has finished deanimating a display.
void PostRuntimeStart()
This event is fired when GraphWorX32 has finished entering runtime mode.
void PostRuntimeStop()
This event is fired after GraphWorX32 has completely exited runtime mode.
void PreAnimateDisplay()
This event is fired just before GraphWorX32 animates a display (animating a
display is the process of requesting the tags from the OPC server(s)). Displays
are animated when loaded during runtime mode, and deanimated when
unloaded during runtime mode.
void PreDeanimateDisplay()
This event is fired just before GraphWorX32 deanimates a display (deanimating
a display is the process of releasing the tags previously requested from the
OPC server(s)).
void PreRuntimeStart()
This event is fired just before GraphWorX32 is put into runtime mode.
ICONICS 288
void PreRuntimeStop()
This event is fired just before GraphWorX32 exits runtime mode.
GwxVisible
GwxVisible is the object type from which visible GraphWorX32 objects (ellipses,
rectangles, etc.) are derived. In other words, all visible GraphWorX32 objects
have the properties and methods of GwxVisible.
Properties
float Angle
Gets/Sets the rotation angle of the object. The angle is specified in degrees.
OLE_COLOR FillColor
Gets/Sets the visible objects fill color.
GWX3DEDGESTYLE EdgeStyle
The 3-D edge style of the objects border. Valid values for
GWX3DEDGESTYLE are:
EdgeNone =0
EdgeRaised =5
EdgeEtched =6
EdgeBump =9
EdgeSunken = 10
GWXLINESTYLE LineStyle
ICONICS 289
The style of the objects line/border. Valid values for GWXLINESTYLE are:
LineSolid =0
LineDash =1
LineDot =2
LineDashDot =3
LineDashDotDot =4
LineNone =5
boolean HasShadow
TRUE if the object has a shadow, FALSE if the object does not have a shadow.
boolean IsFilled
TRUE if the object is filled, FALSE if the object is not filled.
BSTR Keyword
This string is used to store a keyword. Use this property to identify an object for
GraphWorX32s Update Shared Objects functionality.
OLE_COLOR LineColor
Gets/Sets the visible objects line/border color.
long LineWidth
The width of an objects line/border. This value must be in the range of 0 to 10.
BSTR ObjectName
Gets/Sets the object name of a visible object. The object name is used to
identify the object when using certain OLE Automation methods (for instance
GwxDisplay::GetVisibleObjectFromName). GraphWorX32 will insure that
object names are unique. If you assign an object name that already exists for
another visible object in a display, GraphWorX32 will append a number to the
object name (for example, tank would become tank1, tank1 would become
tank2, etc.).
boolean Selected
TRUE if the object is selected, FALSE if the object is not selected. Selected
objects are objects which have resize grips around them. This property can
only be changed in configure mode.
OLE_COLOR ShadowColor
Gets/Sets the visible objects shadow color.
BSTR UserCustomData
ICONICS 290
This string is used to store custom data. Use this property to associate any
additional data with the visible object.
BSTR UserDescription
A description string for the visible object. Typically, this string is used to be
displayed as informational text in a tooltip.
boolean Visible
TRUE if the object is visible, FALSE is the object is hidden.
Methods
void ClearGradientFill()
Clears a previously set gradient fill for this visible object.
long GetNumberOfDynamics()
Returns the number of dynamic objects attached to this visible object.
BSTR GetObjectTypeName()
Returns the type name of this object.
ICONICS 291
Moves the object by the specified offset. This method only works for objects
that are top level visible objects.
void RefreshObject()
Caused the visible object to be redrawn.
The rest of the parameters correspond to those in the gradient fill configuration
user interface.
ICONICS 292
values are used to change the way the object shifts position during stretching.
For example, to resize an object from its center, the anchor values should be
the center coordinates of the object. This method only works for objects that
are top level visible objects.
GwxText
GwxText has all the properties and methods of GwxVisible, plus the additional
properties described below.
Properties
IFontDisp* Font
Gets/Sets font of the text object.
GWXTEXTALIGNMENT Alignment
The alignment of the text (left, center, right). This property is only significant for
multiline text strings. Valid values for GWXTEXTALIGNMENT are:
TextAlignLeft =0
TextAlignCenter =1
TextAlignRight =2
GWXTEXTALIGNMENT BoundaryAlignment
The alignment of the text relative to the text objects bounding rectangle (left,
center, right). Valid values for GWXTEXTALIGNMENT are:
TextAlignLeft =0
TextAlignCenter =1
TextAlignRight =2
boolean StretchText
TRUE if the font size should be resized when the text object is stretched.
FALSE if the font size should remain the same when the object is stretched.
BSTR Text
This string is the text that is displayed by the text object.
GwxRectangle
GwxRectangle has all the properties and methods of GwxVisible, plus the
additional properties described below.
Properties
boolean Rounded
ICONICS 293
When getting this property, if the value is TRUE, the rectangle has rounded
corners. When setting this property to TRUE, the rectangle is given rounded
corners with the default rounding settings.
long RoundingX
Gets/sets the amount of horizontal rounding of the rectangles corners.
long RoundingY
Gets/sets the amount of vertical rounding of the rectangles corners.
GwxArc
GwxArc has all the properties and methods of GwxVisible, plus the additional
properties described below.
Properties
float EndAngle
Gets/sets the end angle of the arc (in degrees).
GWXARCTYPE ArcType
Gets/sets the arc type of the arc. Valid values for GWXARCTYPE are:
ArcArc =0
ArcPie =1
ArcChord =2
float StartAngle
Gets/sets the start angle of the arc (in degrees).
GwxSymbol
The GwxSymbol is used to group together a collection of GwxVisible derived
objects. GwxSymbol objects can be used to group other GwxSymbol objects,
allowing nested groupings. GwxSymbol has all the properties and methods of
GwxVisible, plus the additional methods described below.
Methods
VARIANT GetDataSourcesRecursive(boolean includeDuplicates)
Gets all tag names associated with a symbol (includes all sub-objects). Returns
a (variant) array of strings (each string in the array is a tag name). The array
can optionally include or not include duplicate tag names.
ICONICS 294
long GetNumberOfChildVisibles()
Returns the number of immediate child objects grouped in this symbol.
boolean PushCurrentSymbol()
Pushes this symbol object onto the symbol edit stack. This essentially makes the
objects grouped in this symbol, top level visible objects (some operations, like
GwxVisible::SetObjectDimensions are only allowed on top level objects).
GwxOleObject
GwxOleObject has all the properties and methods of GwxVisible, plus the
additional methods described below. (GwxOleObjects used with ActiveX
ToolWorX cannot be activated and consequently should not be used).
Methods
IDispatch* GetOLEObject()
Gets the actual OLE object wrapped by GwxOleObject.
GwxEllipse
GwxEllipse has all the properties and methods of GwxVisible.
GwxLine
GwxLine has all the properties and methods of GwxVisible.
GwxBitmap
ICONICS 295
GwxBitmap has all the properties and methods of GwxVisible.
GwxMetafile
GwxMetafile has all the properties and methods of GwxVisible.
GwxButton
A GwxButton object is not fully functional until it has at least one GwxPick
dynamic object associated with it. GwxButton has all the properties and
methods of GwxVisible and GwxText.
GwxDynamic
GwxDynamic is the object type from which dynamic GraphWorX32 objects (size
dynamic, location dynamic, etc.) are derived. In other words, all dynamic
GraphWorX32 objects have the properties and methods of GwxDynamic.
Properties
BSTR DataSource
The primary data source for the dynamic object. DataSource is a string which
represents an OPC tag name, an expression, a constant value, or a
GraphWorX32 local variable.
BSTR HighRange
Represents the overridden high range for this dynamic. HighRange is a string
which represents an OPC tag name, an expression, a constant value, or a
GraphWorX32 local variable. This property is only used for dynamics based on
an analog data source; it is ignored for dynamics which are based on digital
connections.
BSTR LowRange
Represents the overridden low range for this dynamic. LowRange is a string
which represents an OPC tag name, an expression, a constant value, or a
GraphWorX32 local variable. This property is only used for dynamics based on
an analog data source; it is ignored for dynamics which are based on digital
connections.
BSTR ObjectName
Gets/Sets the object name of a dynamic object. The object name is used to
identify the object when using certain OLE Automation methods (for instance
GwxDisplay::GetDynamicObjectFromName). GraphWorX32 will insure that
ICONICS 296
object names are unique. If you assign an object name that already exists for
another dynamic object in a display, GraphWorX32 will append a number to the
object name (for example, size would become size1, size1 would become
size2, etc.).
boolean RangeOverride
Gets/Sets range override status. When FALSE, GraphWorX32 will use the
ranges associated with the primary DataSource. When TRUE, GraphWorX32
will use the ranges defined in the HighRange and LowRange properties. This
property is only used for dynamics based on an analog data source (GwxSize,
GwxLocation, GwxRotation, GwxAnalogColor, GwxAnalogSelector,
GwxProcessPoint); it is ignored for dynamics which are based on digital
connections.
long TimerRate
Frequency update rate for timer based dynamic types (this property is ignored
for dynamics which are not timer based). Timer based dynamics include:
GwxFlash, GwxAnimator, and GwxPick.
BSTR UserCustomData
This string is used to store custom data. Use this property to associate any
additional data with the dynamic object.
BSTR UserDescription
A description string for the dynamic object. Typically, this string is used to be
displayed as informational text in a tooltip.
Methods
BSTR GetAliasDefinition(BSTR aliasName)
Gets the alias definition of the specified alias name.
IDispatch* GetDataSourcePointObject()
Gets the GwxPoint object for the data source of this dynamic object.
IDispatch* GetHighRangePointObject()
Gets the GwxPoint object for the high range of this dynamic object.
IDispatch* GetLowRangePointObject()
Gets the GwxPoint object for the low range of this dynamic object.
long GetNumberOfSubDynamics()
ICONICS 297
Returns the number of immediate child sub-dynamic objects used in this
dynamic object. Sub-dynamic objects are used by the dynamic types:
GwxDigitalColor, GwxDigitalSelector, and GwxPick.
IDispatch* GetVisibleObject()
Gets the visible object to which this dynamic is attached.
BSTR GetObjectTypeName()
Returns the type name of this object.
GwxDigitalSelector
The GwxDigitalSelector object is used to hide/show individual objects from a
set of objects based on a digital (boolean) signal. GwxDigitalSelector objects
are only associated with GwxSymbol objects (the GwxSymbol object defines
the set of objects upon which the GwxDigitalSelector object acts).
GwxDigitalSelector has all the properties and methods of GwxDynamic, plus
the additional methods described below.
Methods
boolean SetConnectionInfo(short objectNumber, BSTR dataSource,
boolean showWhenTrue)
Sets data connections for this digital selector object. The parameter
objectNumber is a zero-based index representing an immediate child of this
ICONICS 298
symbol object to which this dynamic is attached (index zero is the first child
object). (See also GwxDigitalSelectorInfo).
GwxDigitalSelectorInfo
Currently unused. In future versions of GraphWorX32 this object may include
properties of individual data connections for GwxDigitalSelector objects.
GwxDigitalColor
The GwxDigitalColor object is used to change the color of the associated visible
object based on one or more digital (boolean) signals. GwxDigitalColor has all
the properties and methods of GwxDynamic.
GwxDigitalColorInfo
Currently unused. In the future versions of GraphWorX32 this object may include
properties of individual data connections for GwxDigitalColor objects.
GwxAnalogSelector
The GwxAnalogSelector object is used to hide/show individual objects from a
set of objects based on an analog signal. GwxAnalogSelector objects are only
associated with GwxSymbol objects (the GwxSymbol object defines the set of
objects upon which the GwxAnalogSelector object acts). GwxAnalogSelector
has all the properties and methods of GwxDynamic.
GwxAnalogColor
ICONICS 299
The GwxAnalogColor object is used to change the color of the associated
visible object based on an analog signal. GwxAnalogColor has all the
properties and methods of GwxDynamic.
GwxAnimator
The GwxAnimator object is used to hide/show individual objects from a set of
objects in a specified sequence, based on elapsed time. The GwxAnimator is
activated/deactivated based on the value of a digital signal. GwxAnimator
objects are only associated with GwxSymbol objects (the GwxSymbol object
defines the set of objects upon which the GwxAnimator object acts).
GwxAnimator has all the properties and methods of GwxDynamic.
GwxSize
The GwxSize object is used to change the size of the associated visible object
based on the value of an analog signal. GwxSize has all the properties and
methods of GwxDynamic.
GwxLocation
The GwxLocation object is used to change the location of the associated visible
object based on the value of an analog signal. GwxLocation has all the
properties and methods of GwxDynamic.
GwxRotation
The GwxRotation object is used to change the angle of the associated visible
object based on the value of an analog signal. GwxRotation has all the
properties and methods of GwxDynamic.
GwxFlash
The GwxFlash object is used to toggle the color or visibility of the associated
visible object at a specified rate. The GwxFlash object is activated/deactivated
based on the value of a digital signal. GwxFlash has all the properties and
methods of GwxDynamic.
GwxHide
ICONICS 300
The GwxHide object is used to toggle the visibility or enabled/disabled state of
the associated visible object based on the value of a digital signal. The
GwxHide has all the properties and methods of GwxDynamic.
GwxPick
Associating a GwxPick object with a visible object designates that the
associated visible object will perform an active when clicked on by the operator
during runtime mode. GwxPick objects can be associated with GwxButton
objects to make fully functional pushbuttons. GwxPick has all the properties and
methods of GwxDynamic.
Properties
BSTR AliasCommandString
If the AliasCommandType property is AliasSetFromFile,
AliasCommandString should be a filename that specifies a text file containing
tab-separated pairs of alias names and alias definitions (see also
SetAliasesFromFile()). If AliasCommandType is AliasSetDirect,
AliasCommandString should have the following format:
aliasName1<TAB>aliasDef1<CR-LF>aliasName2<TAB>aliasDef2<CR-LF>
etc.
GWXALIASCOMMAND AliasCommandType
AliasCommandType can be one of the following values:
AliasNoCommand =0
AliasSetFromFile =1
AliasSetDirect =2
BSTR NameParameter
The meaning of name parameter varies based on the value of the PickAction
property.
If PickAction equals PickLoadDisplay, PickDragDropLoad,
PickPopupWindow, or PickEmbeddedWindow, NameParamter is the
Gwx32 display filename (.gdf).
If PickAction equals PickLaunchApp, NameParameter is an executable
filename (.exe).
If PickAction equals PickRunScript, NameParamter is a VBA macro name.
If PickAction equals PickSetAliases or PickAliasesDialog, NameParameter
is a visible object name.
GWXPICKACTION PickAction
See GwxDisplay::CreatePickDynamic for description of this property.
ICONICS 301
boolean Tracking
If the pick dynamic is a toggle or download pick and a checkbox or radio button
pick, setting tracking to TRUE will cause the button state to track the data value
associated with this pick dynamic.
Methods
void SimulateClick(GWXMOUSEBUTTON mouseButton)
Causes this pick dynamic to behave as though the user clicked on this pick with
the specified mouse button.
GwxProcessPoint
GwxProcessPoint objects are associated with GwxText objects to create
alphanumeric display fields and data entry fields. A Process Point is used to
show and/or download the value of an associated signal (analog, digital, or
string). GwxProcessPoint has all the properties and methods of GwxDynamic.
Properties
boolean UseKeypad
TRUE to use an onscreen number pad or keyboard for this data entry.
boolean ConfirmBeforeWrite
TRUE to prompt the user with a confirmation message before
writing data values.
GwxTimedate
GwxTimedate objects are associated with GwxText objects to create fields
which display the current time and/or date. GwxTimedate has all the properties
and methods of GwxDynamic.
GwxPoint
GwxPoint is the object type that GraphWorX32 uses to represent data
connections. If several GwxDynamic objects are connected to the same data
source, they reference a single shared GwxPoint object. GwxPoint objects
handle OPC tags, expressions, constant values, and GraphWorX32 local
variables. GwxPoint objects cannot be explicitly created or destroyed.
GraphWorx32 automatically manages the lifetimes of GwxPoint objects based
on the data source connections of the GwxDynamic objects in the display.
Properties
ICONICS 302
GWXDATATYPE DataType
Data type of this point object. Valid values for GWXDATATYPE are:
DataTypeShort =2
DataTypeLong =3
DataTypeFloat =4
DataTypeDouble =5
DataTypeString =8
DataTypeBool = 11
DataTypeByte = 17
VARIANT HighRange
High range value associated with this point object.
VARIANT LowRange
Low range value associated with this point object.
VARIANT Value
Current data value of this point object. This property gets updated with new
values during runtime mode.
Methods
BSTR GetObjectTypeName()
Returns the type name of this object.
BSTR GetPointName()
Gets the point name (data source string) of this point object.
GWXView32
GWXview32 is the object type for the GraphWorX32 ActiveX control
(GWXview32.ocx). When using ActiveX ToolWorX, the properties and methods
described in this section can be inherited by new ActiveX controls. GWXview32
objects can be created via the ProgID GWXVIEW32.GWXview32Ctrl.1.
Properties
boolean AutoStartRuntime
When TRUE, the object/control will automatically enter runtime mode when the
object's container enters runtime mode. This property only works if the container
supports the AmbientUserMode property.
boolean HorizontalScrollbar
ICONICS 303
When TRUE, the horizontal scrollbar of the control's window is visible, when
FALSE the horizontal scrollbar is hidden. This property is ignored if
OverrideScrollbarSettings is FALSE.
boolean OverrideScrollbarSettings
When TRUE, this property indicates the object/control will override the scrollbar
visibility settings of the display currently loaded in the control. When FALSE, the
object/control will use the scrollbar settings defined in the currently loaded
display.
boolean UseAmbientBackColor
When TRUE, the background color of the object/control will automatically be set
to match the background color of the container in which this object is embedded.
This property only works if the container supports the AmbientBackColor
property.
boolean VerticalScrollbar
When TRUE, the vertical scrollbar of the control's window is visible, when FALSE
the vertical scrollbar is hidden. This property is ignored if
OverrideScrollbarSettings is FALSE.
BSTR DisplayName
File name of the GraphWorX32 display loaded in this object/control. Setting this
property to a new file name will cause the new display to be loaded.
short Appearance
Appearance of the window border. Valid values are:
Flat =0
3-D =1
short BorderStyle
Border style of the window. Valid values are:
No border =0
Normal Border = 1
Methods
IDispatch* GetDisplay()
Returns the GwxDisplay object for the display currently loaded in this
object/control. You can then use this object to access all of the properties and
methods of all the object types described in this section.
void StartRuntime()
Puts this object/control into runtime mode.
ICONICS 304
void StopRuntime()
Takes this object/control out of runtime mode.
ICONICS 305