Click or drag to resize

DataWindow.RegisterConditionalControls Method (Typed)

X#
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:  XSharp.VO.SDK
Assembly:  XSharp.VOGUIClasses (in XSharp.VOGUIClasses.dll) Version: 2.19
Syntax
 VIRTUAL METHOD RegisterConditionalControls(
	oCC
) AS USUAL CLIPPER
Request Example View Source

Parameters

oCC (Optional)
Type: Usual
The control to be registered.

Return Value

Type: Usual
Remarks
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