Connection Information

To perform the requested action, WordPress needs to access your web server. Please enter your FTP credentials to proceed. If you do not remember your credentials, you should contact your web host.

Connection Type

Processing events sent to the parent of the window – PB Docs 2021 – PowerBuilder Library

Processing events sent to the parent of the window – PB Docs 2021

Processing events sent to the parent of the window

Some Windows messages, such as WM_COMMAND and WM_NOTIFY, are sent
to the parent of an object and not to the object itself. Such messages
cannot be caught in the visual extension’s window procedure. The PBVM
calls the GetEventID method to process these messages, as
follows:

  • If the message is mapped to a PowerBuilder event,
    GetEventID returns the event’s identifier, for example PB_BNCLICKED,
    and the event is fired automatically.

  • If the message is not mapped to an event, GetEventID returns
    the value PB_NULL and the message is discarded.

In the following example, the GetEventID function returns the
identifier PB_BNCLICKED if a WM_COMMAND message with the notification
code BN_CLICKED was sent. It returns the identifier PB_ENCHANGE if a
WM_NOTIFY message was sent. Otherwise, it returns PB_NULL.


Document get from Powerbuilder help
Thank you for watching.
Was this article helpful?
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x