Skip to content

Basic Widget Properties

Gregory Miller edited this page Aug 4, 2019 · 2 revisions

The following properties are shared among almost all of the controls. These structure the widget and working area.

The "working area" is defined as the rectangle within the widget where controls are drawn. This area excludes the title, border and bottom buttons.

controlType "Control Type"

  • Sets the type/style of the controls that will be displayed. (A mixed type is in the works.)
  • The options are "Button Bar,Dialog Box,Form Backdrop,Numeric Up/Down,Sliders,Switches."
  • Switching types immediately empties myData, all other properties are the same.

defaultChangeType "New Defaults - Changing Type"

  • still in works

showMainSquare "Show Working Area"

  • When true, displays a solid rectangle for the main working area. (Again, not including the title and bottom buttons.)

mainSquareColor "Working Area Color"

  • Sets a color for the main working area

workingAreaOffsetW "Working Area Width Offset"

  • Offsets the working area from the left and right sides by the given number of pixels. This is used to increase the border around the controls horizontally.

workingAreaOffsetH "Working Area Height Offset"

  • Offsets the working area from the top and bottom by the given number of pixels. This is used to increase the border around the controls vertically. When the title and/or the bottom buttons are displayed, this offset is only for the working area.

boxBorder "Border thickness"

  • When greater than 0, creates a border around the edge of the widget.
  • Default = 5

boxRadius "Border and Box Radius"

  • Sets the radius angle to make a rounded rectangle of the edge of the widget as well as the square of the working area if displayed. Set to 0 for a non-rounded rectangle.
  • Default = 13

columnCount "Number of Columns"

  • Sets the number of columns the controls will be laid out in.
  • Default = 1

controlBufferV "Control Buffer Top/Bottom"

  • Adds extra space from the top and from the bottom of the working area before controls are drawn.
  • Default = 2

controlBufferH "Control Buffer Left/Right"

  • Adds extra space from the sides of the working area before placing controls.
  • Default = 2