Navigation: ABC Library Reference > WindowManager > WindowManager Methods >====== TakeNotify (a virtual to process EVENT:Notify) ====== | |
TakeNotify ( notifycode, thread, parameter ),VIRTUAL, PROC
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