Home Search

DriveWorks Solo 24
How To: Reference Control Properties (KB16010601)

Send Feedback

How To: Reference Control Properties

There are two types of control property. These can be categorized into how the property is referenced (when used in a rule).

  • Direct Reference
  • Hierarchical Reference

The difference between the two is in how the property is referenced.

Applying the MyName() function directly on these properties will return the property reference.

Direct Referencing

The control properties that are most commonly used in rules can be referenced directly from the rules builder.

When the property is selected the control name is given a prefix that corresponds to the property.

The table below shows the available direct referenced properties and their prefixes:

Property ReferenceTypeExample Return Value
ControlNameEnabledBooleanTrue
ControlNameErrorNumeric4
ControlNameListDataStringOption A|Option B|Option C
ControlNameMaxNumeric32500
ControlNameMinNumeric17500
ControlNameReturnBy control typeReturns the current value of the control as entered on the user form
ControlNameVisibleBooleanTrue

Hierarchical Referencing

For all other control properties a hierarchical reference is used when the property value is required in a rule.

These properties can be selected from the rules builder intellisense or typed into the rule editor.

Hierarchical properties require a point separator between the control name and the property, for example:

ControlName.PropertyName

For example, to obtain the value of the height property of a control named ProductOptions, the reference used in the rule would be:

ProductOptions.height

Property References By Category

The following tables list the references available for each property.

Appearance Properties

Property NameHierarchical ReferenceExample Return Value
Background ColorControlName.BackgroundColorWhite or #ffffff
Border StyleControlName.BorderStyleInset3D
CaptionControlName.CaptionThe caption of the named control
Caption ColorControlName.CaptionColorWhite or #ffffff
Caption FontControlName.CaptionFontfont-family: Microsoft Sans Serif; font-size: 12pt; font-weight: bold; text-decoration:
Caption Horizontal AlignmentControlName.CaptionHorizontalAlignmentLeft
Check AlignmentControlName.CheckAlignmentLeft
Column WidthControlName.ColumnWidth200
FontControlName.Fontfont-family: Microsoft Sans Serif; font-size: 12pt; font-weight: bold; text-decoration:
Header ColorControlName.HeaderColorWhite or #ffffff
Header FontControlName.HeaderFontfont-family: Microsoft Sans Serif; font-size: 12pt; font-weight: bold; text-decoration:
Hide CharactersControlName.HideCharactersTrue
Hover ColorControlName.HoverColorWhite or #ffffff
Hover UnderlineControlName.HoverUnderlineTrue
Input Background ColorControlName.InputBackgroundColorWhite or #ffffff
List Item ColorControlName.ListItemColorWhite or #ffffff
List Item FontControlName.ListItemFontfont-family: Microsoft Sans Serif; font-size: 12pt; font-weight: bold; text-decoration:
MultilineControlName.MultilineTrue
Name Column VisibleControlName.NameColumnVisibleTrue
Number of RowsControlName.NumberofRows5
Option AlignmentControlName.OptionAlignmentLeft
Option Item ColorControlName.OptionItemColorWhite or #ffffff
Option Item FontControlName.OptionItemFontfont-family: Microsoft Sans Serif; font-size: 12pt; font-weight: bold; text-decoration:
Option Text Horizontal AlignmentControlName.OptionTextHorizontalAlignmentLeft
OrientationControlName.OrientationHorizontal
PictureControlName.PictureDefaultImages\CompanyLogo.jpg
Picture (Checked)ControlName.PictureCheckedImages\CompanyLogo.jpg
Picture (Hover)ControlName.PictureHoverImages\CompanyLogo.jpg
Picture (Pressed)ControlName.PicturePressedImages\CompanyLogo.jpg
Picture (Selected)ControlName.PictureSelectedImages\CompanyLogo.jpg
Picture Size ModeControlName.PictureSizeModeStretchImage
Picture StyleControlName.PictureStyleTextAndPicture
Reverse DirectionControlName.ReverseDirectionTrue
Show BorderControlName.ShowBorderTrue
Show CheckControlName.ShowCheckTrue
Show LimitsControlName.ShowLimitsTrue
Show OptionControlName.ShowOptionTrue
Size ModeControlName.SizeModeStretchImage
State Column VisibleControlName.StateColumnVisibleTrue
TextControlName.Text
Text ColorControlName.TextColorWhite or #ffffff
Text Horizontal AlignmentControlName.TextHorizontalAlignmentLeft
Text UnderlineControlName.TextUnderlineTrue
Thumb ImageControlName.ThumbImageImages\arrow.png
Track ColorControlName.TrackColor#e7eaea
Type Column VisibleControlName.TypeColumnVisibleTrue
Unit ColorControlName.UnitColorWhite or #ffffff
Unit FontControlName.UnitFontfont-family: Microsoft Sans Serif; font-size: 12pt; font-weight: bold; text-decoration:
Word WrapControlName.WordWrapFalse

Behavior Properties

Property NameHierarchical ReferenceExample Return Value
BehaviorControlName.BehaviorMultipleChildren
Character LimitControlName.CharacterLimit0
CheckedControlNameReturn (Direct Reference)False
Checked (Override Rule)ControlNameReturn (Direct Reference)False
Clear Selection AllowedControlName.ClearSelectionAllowedTrue
Database - Please refer to the topic Data Grid for more information.ControlName.Database
DateControlNameReturn (Direct Reference)08/01/2016
Date (Override Rule)ControlNameReturn (Direct Reference)08/01/2016
Date FormatControlNameDefaultdd/MM/yyyy
Decimal PlacesControlName.DecimalPlaces-1
Default File NameControlNameDefault (Direct Reference)\\DriveWorks\ProjectName\Images\OriginalName.jpg
Default Rotation-ZoomControlName.DefaultRotationZoomValue3D Preview Box90|45|50
Default Row IdentityControlName.DefaultRowIdentityAcme Co.
Default Row IndexControlName.DefaultRowIndex3
Default ValueControlName.DefaultValueTrue
Dialog NameControlNameReturn (Direct Reference)Details
Disply UnitsControlName.DisplyUnitsMillimeters
Display ValueControlNameReturn (Direct Reference)Numeric Text Box, Measurement Text Box2575
Duplicate File BehaviorControlName.DuplicateFileBehaviorOverwrite
Enable AnimationsControlName.EnableMenuTrue
Enable Image ModeControlName.EnableImageMode3D Preview BoxTrue
EnabledControlNameEnabled (Direct Reference)true
Error ResultControlNameError (Direct Reference)2
Field Names - Please refer to the topic Data Grid for more information.ControlName.FieldNames
File FilterControlName.FileFilterImage File:png,jpg|Word File:doc,docx|Excel File:xls
File NameControlName.FileNameMyAssy.drive3d
File Size LimitControlName.FileSizeLimit2Mb
Form NameControlName.FormNameDesign Info
Group NameControlName.GroupNameOptions
Hidden FieldsControlName.HiddenFieldsID|Name|Type
Hidden Item ValuesControlName.HiddenItemValuesServicePlan|Spares
Hidden Result ColumnsControlName.HiddenResultColumnsCost|Margin
Horizontal Scroll VisibilityControlName.HorizontalScrollVisibilityFrame ControlHidden
HyperlinkControlNameReturn (Direct Reference)Hyperlinkwww.driveworks.co.uk
Identity FieldsControlName.IdentityFieldsCustomer
IncrementControlName.Increment10
Items. See Items (Data Table) for the Data Table controlControlNameListData (Direct Reference)Item A|Item B|Item C|Item D|Item E|Item F
LightingControlName.LightingHard Lighting
Link BehaviorControlName.LinkBehaviorCurrentWindow
Macro ArgumentControlName.MacroArgument1
Macro NameControlNameReturn (Direct Reference)Cancel
MaximumControlNameMax (Direct Reference)3500
MinimumControlNameMin (Direct Reference)1200
Native UnitsControlName.NativeUnitsMillimeters
On Upload Complete MacroControlName.OnUploadCompleteMacroDriveValue
Password - Please refer to the topic Data Grid for more information.ControlName.Password
Preview Document NameControlName.PreviewDocumentNameMy3DFile
Preview EngineControlName.PreviewEngine
ProjectsNo hierarchical reference available.
Read OnlyControlName.ReadOnlyFalse
Selected ItemControlNameReturn (Direct Reference)Type A
Selected Item (Override Rule)ControlNameReturn (Direct Reference)Type A
Selected Item Removed BehaviorControlName.SelectedItemRemovedBehaviorSelectFirst
Selected OptionControlNameReturn (Direct Reference)Type A
Selected Option (Override Rule)ControlNameReturn (Direct Reference)Type A
Selected Row IndexControlName.SelectedRowIndex4
Tab IndexControlName.TabIndex3
Table Name - Please refer to the topic Data Grid for more information.ControlName.TableName
Task List EnabledControlName.TaskListFalse
Text. See Text (Label Control) for the Label controlControlNameReturn (Direct Reference)DriveWorks
Text (Override Rule)ControlNameReturn (Direct Reference)DriveWorks
URLControlName.URLhttp://www.driveworks.co.uk
User Name - Please refer to the topic Data Grid for more information.ControlName.UserNameData Grid
ValueControlNameReturn (Direct Reference)200
Value (override Rule)ControlNameReturn (Direct Reference)200
Vertical Scroll VisibilityControlName.VerticalScrollVisibilityHidden
VisibleControlNameVisible (Direct Reference)True
Where Clause - Please refer to the topic Data Grid for more information.ControlName.WhereClause

General Properties

Property NameHierarchical ReferenceExample Return Value
(Name)No hierarchical reference available.To determine the name of the control consider using the function MyNameThe name given to the control
(Tag)ControlName.TagThe tag applied to the control
Tooltip DurationControlName.TooltipDuration5
Tooltip TextControlName.TooltipTextPlease enter the length

Layout Properties

Property NameHierarchical ReferenceExample Return Value
Caption WidthControlName.CaptionWidth
HeightControlName.Height100
LeftControlName.Left24
TopControlName.Top50
WidthControlName.Width350

Knowledge Base Article Ref:KB16010601