Control Validation Event

Description

In BBj 5.0 and higher, the user is attempting to leave a control that is registered for control validation.

To register for control validation:

control!=BBjAPI().getSysGui().getWindow(context).getControl(id)

control!.setCallback(BBjAPI().getSysGui().ON_CONTROL_VALIDATION,label)

Remarks

If a control has registered for this event, the program must respond to it by invoking control!.accept(1) to accept the change or control!.accept(0) to reject the change. If processing events using an event loop, label specifies any string, including "". If processing events using callbacks, label must specify the subroutine that will handle the validation.

 

Mandatory/Optional

Mandatory.

Event Mask Bit

None. Event is always visible.

Event Template

context:u(2),code:c(1),id:u(2),flags:u(1),x:u(2),y:u(2)

Field

Description

context

Window containing the control that requires validation.

code

v (lower case v)

id

ID of the control that initiated this event.

flags

0

x

0

y

0

See Also

BBjControlValidationEvent



______________________________________________________________________________________

Copyright BASIS International Ltd. BBj®, Visual PRO/5®, PRO/5®, and BBx® are registered trademarks.