User Tools

Site Tools


takefieldevent_a_virtual_to_process_field_events_printpreviewclass_.htm
Navigation:  ABC Library Reference > PrintPreviewClass > PrintPreviewClass Methods >====== TakeFieldEvent (a virtual to process field events:PrintPreviewClass) C6H0009.jpg ====== Previous pageReturn to chapter overviewNext page

TakeFieldEvent, VIRTUAL, PROC

blk2blue.jpg

The TakeFieldEvent method is a virtual placeholder to process all field-specific/control-specific events for the window. It returns a value indicating whether window process is complete and should stop. TakeFieldEvent returns Level:Benign to indicate processing of this event should continue normally; it returns Level:Notify to indicate processing is completed for this event and the ACCEPT loop should CYCLE; it returns Level:Fatal to indicate the event could not be processed and the ACCEPT loop should BREAK.

Implementation:

The TakeEvent method calls the TakeFieldEvent method. The TakeFieldEvent method processes EVENT:NewSelection events for the preview window SPIN controls.

Return Data Type:     BYTE

Example:

MyWindowManager.TakeEvent PROCEDURE

RVal BYTE(Level:Benign)

I    USHORT,AUTO

 CODE

IF ~FIELD()

 RVal = SELF.TakeWindowEvent()

 IF RVal THEN RETURN RVal.

END

CASE EVENT()

OF EVENT:Accepted;   RVal = SELF.TakeAccepted()

OF EVENT:Rejected;   RVal = SELF.TakeRejected()

OF EVENT:Selected;   RVal = SELF.TakeSelected()

OF EVENT:NewSelection; RVal = SELF.TakeNewSelection()

OF EVENT:Completed;   RVal = SELF.TakeCompleted()

OF EVENT:CloseWindow OROF EVENT:CloseDown

 RVal = SELF.TakeCloseEvent()

END

IF RVal THEN RETURN RVal.

IF FIELD()

 RVal = SELF.TakeFieldEvent()

END

RETURN RVal

See Also:     Ask

takefieldevent_a_virtual_to_process_field_events_printpreviewclass_.htm.txt · Last modified: 2021/04/15 15:57 by 127.0.0.1