Please enable JavaScript to view this site.

DAQFactory User's Guide

Navigation: 7 Pages and Components > 7.4 Component Properties and Events

7.4.4 Properties in most Components

Scroll Prev Top Next More

All Components:

All components have the following properties:

Position:

MoveLocked: a boolean that determines if the component is locked from being dragged by the mouse.  The Lock Component Movement right click menu option affects this property

MouseLocked: a boolean that determines if the component is locked from being selected by the mouse.  The Lock Component Against Mouse Click Selection right click menu option affects this property

PositionLeft, PositionRight, PositionTop, PositionBottom: these determine the position of the component on the screen as well and exist mostly for backwards compatibility, but can also be used to easily change just one of the position coordinates.  Some component ignore the bottom and right coordinates.

Visibility:

Visible: a boolean that can be set to 0 to make the component disappear.

expVisible: an expression that if valid and evaluates to 0 will cause the component to disappear.  If it is a valid expression, the result will take priority over the Visible setting.

Advanced:

expCanInteract: an expression that if valid and evaluates to 0 will prevent any of the user interaction events like OnLButtonUp from running.  This can be used to create different access levels to your application to prevent certain users from interacting with controls.  This does not affect manipulating components when in development mode.

expParentObject: an expression that should result in an object that will then be considered local scope to the component.  Please see 7.4.8 for a more detailed explanation.

 

Most Components:

Most of the newer components have backgrounds which add the following properties to these components:

Background:

BackMultiBrush, BackMultiPreset, BackBrush, BackBrushPreset: determine the color of the background, not including the border.  Please see the last two sections for details on Multibrushes and presets.

BackRadiusX, BackRadiusY: the radius of corners of the background rectangle.  Set to 0 would result in a true rectangle.  Any non-zero value in both would result in rounded corners on the rectangle.  These are in units of pixels.

BorderMultiBrush, BorderMultiPreset, BorderBrush, BorderBrushPreset: determine the color of the border of the rectangle, assuming BorderWidth is non-zero.  Please see the last two sections for details on Multibrushes and presets.

BorderLineStyle: the style of the line used to draw the border

BorderWidth: the width, in pixels, of the border

PaddingLeft, PaddingTop, PaddingRight, PaddingBottom: the amount of padding, in pixels, from the appropriate edge of the rectangle that has a background, but won't contain the contents of the component itself.