Please enable JavaScript to view this site.

DAQFactory User's Guide

Navigation: 7 Pages and Components > 7.18 The Components > 7.18.7 Buttons_&_Switches

7.18.7.1 Button Component

Scroll Prev Top Next More

Displays a button, similar to the standard Windows button.  Typically the OnLButtonUp (Left Click) event is used in this component so that clicking on the button does something.

Properties:

Label:

LabelMultiText: very similar to the MultiBrush and MultiColor lists described in section 7.17 except of course with text strings.  This determines what label is displayed on the button (if any).

LabelText: determines what is displayed if no MultiText is provided or the Expression doesn't evaluate to a valid value

LabelTextFormat, LabelTextFormatPreset: the formatting such as font type, size, weight, direction used to draw the label.

LabelTextMultiBrush, LabelTextMultiPreset, LabelTextBrush, LabelTextBrushPreset: determine the color of the text.  Please see sections 7.4.2 and 7.4.3 for details on Multi- properties and presets.

Button:

BackMultiBrush, BackMultiPreset, BackBrush, BackBrushPreset: determine the color of the background of the button.  Please see sections 7.4.2 and 7.4.3 for details on Multi- properties and presets.

BorderWidth: the width, in pixels of the border of the button

BorderMultiBrush, BorderMultiPreset, BorderBrush, BorderBrushPreset: determine the color of border of the button.  Please see sections 7.4.2 and 7.4.3 for details on Multi- properties and presets.

PressedBorderMultiBrush, PressedBorderMultiPreset, PressedBorderBrush, PressedBorderBrushPreset: determine the color of the border of the button when the button is pressed.  Please see sections 7.4.2 and 7.4.3 for details on Multi- properties and presets.

CornerRadiusX, CornerRadiusY: the radius of corners of the button.  Set to 0 would result in a true rectangle.  Any non-zero value in both would result in rounded corners.  These are in units of pixels.

Common Properties:

This component includes all the common properties of components described in section 7.4.4 but not the background properties.