Graphical Panel Controls: Common Control Properties

Table 1 contains descriptions of the common properties found in most Graphical Panel controls.

Table 1: Common Control Properties

Property Function and Options
Width Sets the width of the control in pixels.
Top Sets the distance of the control, in pixels, from the top edge of the panel.
Left Sets the distance of the control, in pixels, from the left edge of the panel.
Height Sets the height of the control, in pixels.
ForeColor Sets the foreground color of the control.  For most controls, this is equal to the text color.
BackColor Specifies the background color of the control.  To change this color, make sure the Transparent property is set to "Opaque".
Transparent Specifies whether the control should use the BackColor property or the form's background color:
  • 0-Opaque: Use BackColor property.
  • 1-Transparent: Show the panel's background color.
BorderStyle Sets the type of border around the control:
  • 0-None
  • 1-Sunken
  • 2-Raised
  • 3-Rimmed
  • 4-Embossed
  • 6-Simple
(An additional value, 5-GroupBox, is defined for the Text Display control.)
Font Sets the font family, style and size for the control.
Tag Sets an identifier for advanced scripts.  In most cases this can be left blank.
Enabled Specifies whether or not the control can be interacted with on the panel:
  • 0-No
  • 1-Yes
Caption Text to display for the control. 
ShowCaption Specifies whether or not the caption is visible.
  • 0-No
  • 1-Yes
Alignment Sets the horizontal alignment of text or caption in a control:
  • 0-Left
  • 1-Right
  • 2-Center
Signal When double-clicked, the Expression Builder is displayed so a signal can be associated with the control. (This property is present for most controls, though not all.)
Minimum Sets the smallest value the control will accept as input or display as output.
Maximum Sets the largest value the control will accept as input or display as output.

  Spy Documentation - (C) Copyright 1997-2022 Intrepid Control Systems, Inc.