Logo
Home Cart [Log In] About Us Contact Us

Object Reference

xf_ControlsControl Related

Private Sub ControlAction (
c As Control,
Action As xf_ControlActionEnum,
FlagValue As Boolean,
Optional BGColour As Long = -1,
Optional SetFocusTo As Control = Nothing,
Optional SuppressErrors As Boolean = False
)

Take the action on the passed control.
Action_Lock Lock/unlock the control Action_Enable Enable/disable the control Action_Visible Show/hide the control Action_LockDisable Lock and diable/unlock and enable the control Action_LockOrDisable Lock data controls and disable command buttons Action_LockDisableSetBgColor As Action_LockDisable but also set the BackColor Action_SetBgColor Set BackColor Action_SetBorderColor Set BorderColor Action_SetToDefaultVal Set the value to the control's default value

C

The control

c as Control

(no description)

Action as xf_ControlActionEnum

The action from the list above

FlagValue as Boolean

The value indicating whether to emable/disable, etc

Optional BGColour as Long = -1

The colour value to use when setting colour

Optional SetFocusTo as Control = Nothing

The control to set focus to if the target control has the focus and cannot be disabled or hidden

Optional SuppressErrors as Boolean = False

Suppress errors, for example if trying to disable a tagged label (labels do not have an 'enabled' propertly)

Call Template:

xf.Controls.ControlAction C, c, Action, FlagValue
xf.Controls.ControlAction C, c, Action, FlagValue, BGColour, SetFocusTo, SuppressErrors

See Also:

Example 1:

ControlAction lstSample, Action_Enable, False
ControlAction lstSample, Action_SetBgColor, , 345005
Contact Us :: About Us :: Policies :: email: infspamo@arrospamw-of-tispamme.com    © 2012 Arrow Of Time Pty Ltd