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 03 AUG 1999 09:12:15AM Barry Stevens wrote:

DoubleClick is showing as an event in my EditBox, but does'nt kick in (also it is not showing any parameters and not id docs for doubleclick event) so asume it is not supposed to be there.

So, how do I force a double click event.

Assuming that I should use send_message 'qualify_event', what is the code for doubleclick (also what is it for mouseover and rightclick).

How do i subsequently test for the mouse code in WinMsg, in case say I have a number of mouse qualify_events.

Barry

PS Is there a list of the mouse codes anywhere, in the format that can be used as is in qualify_event.


At 03 AUG 1999 10:30AM Stephen Revelation wrote:

Barry,

I couldn't get the DOUBLECLICK event to work either so I decided to force it as you said and it works like a charm. The Knowledge Base article that describes the whole process can be found here. If you don't have access to a C compiler, here are some of the mouse API codes from the window.h file:

/ Mouse input support ***/

HWND WINAPI SetCapture(HWND);

void WINAPI ReleaseCapture(void);

HWND WINAPI GetCapture(void);

BOOL WINAPI SwapMouseButton(BOOL);

/* Mouse input messages */

#define WM_MOUSEMOVE 0x0200

#define WM_LBUTTONDOWN 0x0201

#define WM_LBUTTONUP 0x0202

#define WM_LBUTTONDBLCLK 0x0203

#define WM_RBUTTONDOWN 0x0204

#define WM_RBUTTONUP 0x0205

#define WM_RBUTTONDBLCLK 0x0206

#define WM_MBUTTONDOWN 0x0207

#define WM_MBUTTONUP 0x0208

#define WM_MBUTTONDBLCLK 0x0209

On the CREATE event of the form the following script:

<code>
  Declare Function Send_Message
  Equ True$ TO 1
  rv=Send_Message(@WINDOW: '.BUTTON_1', 'QUALIFY_EVENT','0x204', True$)
  rv=Send_Message(@WINDOW, 'QUALIFY_EVENT', '0x203', True$)

</code>

Which the EditBox picked up upon the WINMSG event using this script:

<code>
  Declare Function Set_Property
  rv=Set_Property ( @WINDOW:'.EDITBOX_1', 'TEXT', 'Caught it on the window!')
  RETURN 0

</code>

Regards,

Stephen


At 03 AUG 1999 06:44PM Barry Stevens wrote:

  • third_party_content/community/commentary/forums_nonworks/1d89da16ea4585dc852567c2004888ab.txt
  • Last modified: 2024/01/04 21:00
  • by 127.0.0.1