User Tools

Site Tools


takeevent_process_edit_in_place_events_querylistvisual_.htm
Navigation:  ABC Library Reference > QueryListVisual > QueryListVisual Methods >====== TakeEvent (process edit-in-place events:QueryListVisual) C6H0009.jpg ====== Previous pageReturn to chapter overviewNext page

TakeEvent( **//event //), VIRTUAL**

blk2blue.jpg

TakeEvent Processes an event for the QueryListVisualClass object.
event An integer constant, variable, EQUATE, or expression that contains the event number (see EVENT in the Language Reference).

The **TakeEvent **method processes an event for the QueryListVisualClass object and returns a value indicating the user requested action. Valid actions are none, insert (InsertKey), change (MouseLeft2 or CtrlEnter), or delete (DeleteKey).

Implementation:

The EIPManager.TakeFieldEvent method calls the TakeEvent method. The TakeEvent method process an EVENT:AlertKey for the edit-in-place control and returns a value indicating the user requested action.

**Return Data Type:     **BYTE

Example:

EIPManager.TakeFieldEvent        PROCEDURE

I UNSIGNED(1)

**  CODE**

**  IF FIELD() = SELF.ListControl THEN RETURN Level:Benign .**

**  LOOP I = 1 TO RECORDS(SELF.EQ)+1**

**   ! Optimised to pick up subsequent events from same field**

**    IF ~SELF.EQ.Control &= NULL AND SELF.EQ.Control.Feq = FIELD()**

**      SELF.TakeAction(SELF.EQ.Control.TakeEvent(EVENT()))**

**      RETURN Level:Benign**

**    END**

**    GET(SELF.EQ,I)**

**  END**

**  ! Not a known field**

**  IF ?{PROP:Type} <;> CREATE:Button OR EVENT() <;> EVENT:Selected ! Wait to post accepted for button**

**    SELF.Repost = EVENT()**

**    SELF.RepostField = FIELD()**

**    SELF.TakeFocusLoss**

**  END**

**  RETURN Level:Benign**

See Also:     EIPManager.TakeFieldEvent, SetAlerts

takeevent_process_edit_in_place_events_querylistvisual_.htm.txt · Last modified: by 127.0.0.1