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

Using an event name with a PowerBuilder event ID – PB Docs 2019 – PowerBuilder Library

Using an event name with a PowerBuilder event ID – PB Docs 2019

Using an event name with a PowerBuilder event ID

A simpler way to trigger events in a visual extension uses direct
mapping of Windows messages to PowerBuilder events. The following class
description contains the same two events, but in this case they use the
alternative syntax that maps the event name to a PowerBuilder token
name:

Generating event syntax
automatically

Importing the extension generates the Onclick and Ondoubleclick
events with the appropriate arguments automatically, and at runtime, the
PBVM fires the events. You do not need to capture the Windows messages
WM_LBUTTONUP and WM_LBUTTONDBLCLK in the extension.

In the following description, onclick is the event name and
pbm_lbuttonup is the event token name. Notice that the event name is not
followed by empty parentheses as it is when you use the return type and
arguments technique for describing the event:

About the token name

The token name is a string that maps to an internal PowerBuilder
event ID defined in the header file pbevtid.h. The first ID in this file
is PB_NULL. For all other IDs in the file, there is a fixed relationship
between the name that you use in the description and the event ID in
pbevtid.h. The name is the same as the ID with the letter m appended to
the pb prefix. You must use lowercase in the description.

For example, the event ID PB_ACTIVATE in pbevtid.h maps to the
token name pbm_activate. In the description provided with
PBX_GetDescription, you must use the name pbm_activate. If the event
name you provide does not exist, importing the extension generates an
error message. See the pbevtid.h file for a complete list of mapped
IDs.


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