User Tools

Site Tools


takeevent_process_the_current_accept_loop_event_filedropcomboclass_.htm
Navigation:  ABC Library Reference > FileDropComboClass > FileDropComboClass Methods >====== TakeEvent (process the current ACCEPT loop event:FileDropComboClass) C6H0009.jpg ====== Previous pageReturn to chapter overviewNext page

TakeEvent, VIRTUAL

blk2blue.jpg

The TakeEvent method processes the current ACCEPT loop event for the FileDropComboClass object.

Implementation:

The WindowManager.TakeEvent method calls the TakeEvent method. On a new item selection, the TakeEvent method calls the TakeNewSelection method.

On EVENT:Accepted for the entry portion of the COMBO, the TakeEvent method calls the GetQueueMatch method to locate the list item nearest to the entered value. If the entered value is not in the lookup file, the TakeEvent method calls the Ask method to add the new value to the lookup file. If the add is successful, TakeEvent calls the ResetQueue method to refill the display queue.

Example:

MyWindowManager.TakeEvent PROCEDURE

Rval BYTE(Level:Benign)

I   USHORT,AUTO

 CODE

!procedure code

LOOP I = 1 TO RECORDS(SELF.Browses)

 GET(SELF.Browses,I)

 SELF.Browses.Browse.TakeEvent

END

LOOP i=1 TO RECORDS(SELF.FileDrops)

 GET(SELF.FileDrops,i)

 ASSERT(~ERRORCODE())

 SELF.FileDrops.FileDrop.TakeEvent

END

RETURN RVal

See Also:     Ask, GetQueueMatch, ResetQueue, TakeNewSelection, WindowManager.TakeEvent

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