DataWindow.RegisterConditionalControls Method | |
Register a control in this data window as being subject to validation status and hence automatically dimmed whenever the window is in an invalid state.
Namespace:
VO
Assembly:
VOGUIClasses (in VOGUIClasses.dll) Version: 2.19
Syntax VIRTUAL METHOD RegisterConditionalControls(
oCC
) AS USUAL CLIPPER
[ClipperCallingConventionAttribute(new string[] { ... })]
public virtual Usual RegisterConditionalControls(
Usual oCC = default
)
Request Example
View SourceParameters
- oCC (Optional)
- Type: Usual
The control to be registered.
Return Value
Type:
UsualRemarks
Conditional controls allow the developer to register several controls as subject to validation. This means that when the window fails validation, these controls are automatically disabled; when the window's status is OK, they are automatically enabled again.
Controls that have been registered are automatically enabled or disabled—depending on validation status—by DataWindow:Prevalidate(), which is called on any status change in the window.
In a practical data entry window, all the buttons would be registered and conditionally disabled—SkipNext, SkipPrevious, GoTop, GoBottom, Insert, Delete, OK—except for Cancel, which discards the invalid changes and hence should always be available.
See Also