Chapter 17 Gwxslider Activex Control
Total Page:16
File Type:pdf, Size:1020Kb
M-Graphics User’s Manual 17-1 Chapter 17 GWXSlider ActiveX Control Introduction The GWXSlider ia an ActiveX control that can be inserted into the M-Graphics application to display and modify analog data. This chapter describes how to: • insert a GWXSlider ActiveX control • edit general parameters • edit slider parameters • edit slow spin buttons parameters • edit fast spin buttons parameters • edit scale parameters • edit background parameters • edit caption parameters • edit value parameters • edit fonts parameters • view about information © January, 2001 Johnson Controls, Inc. 17-2 Controls Key Concepts GWXSlider ActiveX Control GWXSlider ActiveX is an ActiveX control that can be inserted in the M-Graphics application. The GWXSlider ActiveX displays and modifies data in a virtual instrument panel format on graphics. The GWXSlider ActiveX supports connection to OPC compliant servers and provides excellent capabilities for managing data. GWXSlider ActiveX Properties The GWXSlider ActiveX Properties dialog box is the configuration interface to the GWXSlider ActiveX. Double-clicking anywhere in the GWXSlider ActiveX client during Configure mode opens the GWXSlider ActiveX Properties dialog box (Figure 17-1). The dialog box fields are described in Table 17-1. Figure 17-1: GWXSlider ActiveX Properties Dialog Box GWXSlider ActiveX Control 17-3 Table 17-1: GWXSlider ActiveX Properties Dialog Box Properties Page Description General Allows user to select the tag used as the data source for the slider. Slider Configures the appearance and behavior of the slider knob and track. Slow Spin Buttons Configures the appearance and behavior of the slider spin buttons. Fast Spin Buttons Configures the appearance and behavior of the slider spin buttons. Scale Configures the appearance of the scale of the slider. Background Configures the appearance of the slider within the container. Caption Configures the caption for the slider and the text for the ToolTip. Value Configures the format and style of the text box of the slider. Fonts Determines the font, font style, size, effects of selected text. Note: Specific parameters are discussed in Detailed Procedures. 17-4 Controls Procedure Overview Table 17-2: GWXSlider ActiveX Control To Do This Follow These Steps: Insert a GWXSlider In M-Graphics, on the Edit menu, select Insert ActiveX Control New Object. Select Create Control and ICONICS GWXSlider ActiveX for the object type. Click OK. Edit General Parameters Double-click on the GWXSlider control. Select the General tab. Modify the parameters. Edit Slider Parameters Double-click on the GWXSlider control. Select the Slider tab. Modify the parameters. Edit Slow Spin Buttons Double-click on the GWXSlider control. Select Parameters the Slow Spin Buttons tab. Modify the parameters. Edit Fast Spin Buttons Double-click on the GWXSlider control. Select Parameters the Fast Spin Buttons tab. Modify the parameters. Edit Scale Parameters Double-click on the GWXSlider control. Select the Scale tab. Modify the parameters. Edit Background Parameters Double-click on the GWXSlider control. Select the Background tab. Modify the parameters. Edit Caption Parameters Double-click on the GWXSlider control. Select the Caption tab. Modify the parameters. Edit Value Parameters Double-click on the GWXSlider control. Select the Value tab. Modify the parameters. Edit Fonts Parameters Double-click on the GWXSlider control. Select the Fonts tab. Modify the parameters. View About Information Double-click on the GWXSlider control. Select the General tab. Select the About button. GWXSlider ActiveX Control 17-5 Detailed Procedures Inserting a GWXSlider ActiveX Control To insert a GWXSlider ActiveX control: 1. In M-Graphics on the Edit menu, select Insert New Object. The Insert Object dialog box appears (Figure 17-2). Figure 17-2: Insert Object Dialog Box 2. Select Create Control and ICONICS GWXSlider ActiveX for the object type. 3. Click OK. A GWXSlider ActiveX control is added to the display (Figure 17-3). Note: As a shortcut, insert a GWXSlider ActiveX control by clicking on the icon in the M-Graphics ActiveX toolbar. 17-6 Controls Figure 17-3: GWXSlider ActiveX in M-Graphics Display GWXSlider ActiveX Control 17-7 Editing General Parameters To edit general parameters: 1. Double-click on the GWXSlider ActiveX control. The GWXSlider ActiveX Properties dialog box appears (Figure 17-4). Figure 17-4: GWXSlider ActiveX Properties Dialog Box: General Tab 2. Select the General tab. 3. Modify the parameters using Table 17-3. Note: Uncheck Preserve Aspect Ratio when changing the Slider Type from the default Horizontal to a Vertical Slider Type. 17-8 Controls Table 17-3: General Tab Parameters Parameter Description Data Source Displays the current data source. Tags Allows user to browse and select a tag. Range Override Allows user to override the ranges associated with the selected tag. Auto-Start Runtime If checked, automatically starts processing data when Mode display is put in Runtime mode. Preserve Aspect Ratio If checked, maintains slider ratio when the user changes its dimensions. Gradients Determines if the slider appears to be light-sourced. Slider Type Displays the available slider types in a drop-down menu: vertical or horizontal. Update Rate Determines how fast the system updates the data being displayed through the slider in milliseconds. Length Factor Determines the length (vertical or horizontal) of the slider. About Displays the About information. GWXSlider ActiveX Control 17-9 Editing Slider Parameters To edit slider parameters: 1. Double-click on the GWXSlider ActiveX control. The GWXSlider ActiveX Properties dialog box appears. 2. Select the Slider tab (Figure 17-5). Figure 17-5: GWXSlider ActiveX Properties Dialog Box: Slider Tab 3. Modify the parameters using Table 17-4. 17-10 Controls Table 17-4: Slider Tab Parameters Parameters Description Show Slider If checked, the slider is visible. Track If checked, the current value is tracked. Current Value Continuous If checked, the data is updated continuously. Update Detents Allows user to set the increments that the slider knob will move. Slider Track Fill Color Determines the color of the bar the slider moves on. Wide Track Displays a wide slider track. Edge Color Determines the color of the edge of the slider track. Edge Style Determines the style of the edge of the slider track: thin line, medium line, thick line, etched, bump, raised, sunken, or no edge. Track Determines the behavior when user clicks on the Control slider track: move to next detent, move to detent nearest the mouse pointer, move to mouse pointer position, move by fast spin increment, move by slow spin increment, or no action. Repeat Determines how often the track control action is repeated when the user holds down the mouse button. Knob Fill Color Determines the color of the slider knob. Edge Color Determines the color of the edge of the slider knob. Edge Style Determines the style of the edge of the slider knob: thin line, medium line, thick line, etched, bump, raised, sunken, or no edge. GWXSlider ActiveX Control 17-11 Editing Slow Spin Buttons Parameters To edit slow spin buttons parameters: 1. Double-click on the GWXSlider ActiveX control. The GWXSlider ActiveX Properties dialog box appears. 2. Select Slow Spin Buttons tab (Figure 17-6). Figure 17-6: GWXSlider ActiveX Properties Dialog Box: Slow Spin Buttons Tab 3. Modify the parameters using Table 17-5. Table 17-5: Slow Spin Buttons Tab Parameters Parameter Description Show Spin Buttons If checked, the slider has spin buttons. Increment Determines the increment or decrement value when clicking on a spin button. Repeat Rate Determines how often the increment action repeats when the user holds down the mouse on a spin button. Fill Color Determines the color of the spin buttons. Arrow Color Determines the color of the arrow. Acceleration Allows user to keep holding down a spin button to accelerate the increment. Delay Determines when the acceleration begins after spin buttons are pressed. Increment Determines the increment or decrement value for the acceleration option. Position Determines the position of the spin buttons relative to the slider: group left or bottom, group right or top, or surround. 17-12 Controls Editing Fast Spin Buttons Parameters To edit fast spin buttons parameters: 1. Double-click on the GWXSlider ActiveX control. The GWXSlider ActiveX Properties dialog box appears. 2. Select Fast Spin Buttons tab (Figure 17-7). Figure 17-7: GWXSLider ActiveX Properties Dialog Box: Fast Spin Buttons 3. Modify the parameters using Table 17-6. Table 17-6: Fast Spin Buttons Tab Parameters Parameter Description Show Spin Buttons If checked, the slider has spin buttons. Increment Determines the increment or decrement value when clicking on a spin button. Repeat Rate Determines how often the increment action repeats when the user holds down the mouse on a spin button. Fill Color Determines the color of the spin buttons. Arrow Color Determines the color of the arrow. Acceleration Allows user to keep holding down a spin button to accelerate the increment. Delay Determines when the acceleration begins after spin buttons are pressed. Increment Determines the increment or decrement value for the acceleration option. Position Determines the position of the spin buttons relative to the slider: group left or bottom, group right or top, or surround. GWXSlider ActiveX Control 17-13 Editing Scale Parameters To edit scale parameters: 1. Double-click on the GWXSlider ActiveX control. The GWXSlider ActiveX Properties dialog box appears. 2. Select the Scale tab (Figure 17-8). Figure 17-8: GWXSlider ActiveX Properties Dialog Box: Scale Tab 3. Modify the parameters using Table 17-7. 17-14 Controls Table 17-7: Scale Tab Parameters Parameter Description Show Scale If checked, the slider has a scale. Low Range Determines the low number for the scale. High Range Determines the high number for the scale. Label Every Determines the number of major ticks between labels. Label Format Allows user to determine how the label is displayed from 21 formats such as xxxx.