Date: Thu, 28 Mar 2024 22:57:19 -0700 (PDT) Message-ID: <1566944212.395.1711691839772@wiki.srpcs.com> Subject: Exported From Confluence MIME-Version: 1.0 Content-Type: multipart/related; boundary="----=_Part_394_717511717.1711691839771" ------=_Part_394_717511717.1711691839771 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Location: file:///C:/exported.html
Allows you to enable, disable, or modify event processing for the specif= ied control. In addition, it supports the qualifying of any Windows message= .
To request that a certain Windows message be sent to the WINMSG event.
To request that OLE messages be sentfo to the OLE event.
All controls
eventspecifier =3D= Send_Message(controlID, "QUALIFY_EVENT", eventname, eventprocessing)
request =3D Send_M= essage(CtrlEntID, "QUALIFY_EVENT", uMsg, bRequest)
Parameters are as follows.
Parameter | Description | ||||||
---|---|---|---|---|---|---|---|
ControlID | Same information as contained in the ctrlEntID v= ariable, from an event handler. The structure is Parent.Object, where Paren= t is the window identifier, and Object is the name of the control, and wher= e Parent and Object are delimited by a period. | ||||||
Eventname | Name of the event. | ||||||
eventprocessing | Pass 1 to allow event processing, or 0 to pre= vent it.
|
||||||
CtrlEntID | The qualified name of the window or control. | ||||||
Umsg | The ID of the Windows message; this can be passe= d as a decimal (eg., 123) or a hexidecimal (eg., "0x123"). | ||||||
Brequest | Pass true to request the message or false to rev= oke the request for the message. |
The Qualifier passed to Re-enable (or modify) the event processing is co= mposed of the number of parameters and the key to the SYSREPOS= EVENTEXES table, separated by an asterisk. For example, the Q= ualifier for the CLICK event (which takes only the two standard parameters,= CtrlEntID and CtrlClassID) for the "OK" button on a SYSPROG application wi= ndow named "MY_MSG" has the following format:
"2*SYSPROG*CLICK*M= Y_MSG.OK"
The current event specifier.
EVENTQUALIFIER property= a>, WINMSG event, OLE event
/* this example di= sables the click event for the "OK" button; note that the return value is i= n for form "1": @fm: Qualifier, which is the format that is passed to QUALI= FY_EVENT to re-enable the event. */ Qualifier =3D Send_Message(@window: ".OK", "QUALIFY_EVENT", "CLICK", 0) =20 * re-enable the click event for the "OK" button Send_Message (@window: ".OK", "QUALIFY_EVENT", "CLICK", Qualifier) /* this example changes the click event for the "OK" button to call the win= dow's OMNIEVENT instead. */ Qualifier =3D 1: @fm: 2: "*": @appid<1>: "*OMNIEVENT*": @WINDOW= : "." Send_Message(@window: ".OK", "QUALIFY_EVENT", "CLICK", Qualifier) =20 * The following code will QUALIFY the Right mouse click on editlines and ed= ittables * Qualify the Right Mouse click in an Edit table retval =3D Send_Message(@window:'.TABLE_1', 'QUALIFY_EVENT', '0x7b', 1) * Qualify the Right Mouse click in an Edit line retval =3D Send_Message(@window: ".EDITLINE_1', 'QUALIFY_EVENT', '0x206',1) * Handle the WINMSG Event for an Edit table if message =3D 123 then *** Your process end * Handle the WINMSG Event for an Edit line if message =3D 516 then *** Your process end