Sign up on the Revelation Software website to have access to the most current content, and to be able to ask questions and get answers from the Revelation community

At 02 SEP 1998 01:33:21AM Greg James, ISIS, Inc. wrote:

A past issue of the S/ENL describes how SEND_MESSAGE (using the QUALIFY_EVENT) and WINMSG (of the control of interest) can be used to catch windows messages. Specifically, a right mouse click (aka 0x7b) is discussed.

Are TABs and ESCAPEs also considered windows messages? How could a TAB or ESCAPE be caught in order to execute a 'control specific' script in the WINMSG event of a control?

Thanks.


At 02 SEP 1998 09:44AM Carl Pates wrote:

Greg,

You can use the same method (QUALIFY_EVENT) but you'll probably need to catch the WM_KEYDOWN message and check to see which key has been pressed.

eg.

In the CREATE event…

Equ WM_KEYDOWN$ To 256

RetVal=Send_Message( CtrlName, "QUALIFY_EVENT", WM_KEYDOWN$, TRUE$ )

Then in the WINMSG event…

Begin Case

 Case Message=WM_KEYDOWN$
      Begin Case
         Case wParam=9            ; * // VK_TAB
  • ** Some processing
         Case wParam=27           ; * // VK_ESCAPE
      End Case

End Case

etc etc…

[email protected]

Sprezzatura Ltd

World Leaders in all things RevSoft

www.sprezzatura.com_zz.jpg

View this thread on the forum...

  • third_party_content/community/commentary/forums_nonworks/123c7286e7ccda8985256673001e84ff.txt
  • Last modified: 2023/12/28 07:40
  • by 127.0.0.1