User Tools

Site Tools


takenotify_a_virtual_to_process_event_notify_.htm
Navigation:  ABC Library Reference > WindowManager > WindowManager Methods >====== TakeNotify (a virtual to process EVENT:Notify) C6H0009.jpg ====== Previous pageReturn to chapter overviewNext page

TakeNotify ( notifycode, thread, parameter ),VIRTUAL, PROC

blk2blue.jpg

notifycode an UNSIGNED variable that receives a notify code value passed by the sender with a NOTIFY statement.
thread an optional SIGNED variable that receives the number of the sender's thread parameter.
parameter a LONG variable that receives the parameter passed by the sender with a NOTIFY statement.

TakeNotify is a virtual method used to process valid EVENT:Notify events for the window's controls and returns a Level:Benign value by default. This method is called if EVENT:Notify is received by the window, and the NOTIFICATION function (and subsequently this method) returns TRUE if the parameter values match the values from the NOTIFY function that posted the event.

Implementation:

TakeNotify is called by the TakeWindowEvent method if a valid notification is detected.

Return Data Type:     BYTE

Example:

WindowManager.TakeWindowEvent      PROCEDURE

RVal BYTE(Level:Benign)

NotifyCode      UNSIGNED

NotifyThread    SIGNED

NotifyParameter LONG

 CODE

 CASE EVENT()

 OF EVENT:Notify

   IF NOTIFICATION(NotifyCode,NotifyThread,NotifyParameter)

     RVal = SELF.TakeNotify(NotifyCode,NotifyThread,NotifyParameter)

   END

 END

See Also:     NOTIFICATION, NOTIFY

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