1. Win32Lib - Onclick event
Hi,
One more question on Win32Lib. I am trying to capture a mouse left click
on some Label or Disabled Text field. As per Win32Lib doc, the normal
onClick event doesnot work other than for button and checkboxes (I have
tested it doesn't).
I tried to capture onMouse event and track LeftDown, this also doesn't
work. It works perfectly for RightDown but not for LeftDown.
Am I missing something ?
Regards,
Prasanta.
2. Re: Win32Lib - Onclick event
Hi Prasanta,
when you create the label control, add #100 to the flag parameter. This is
the SS_NOTIFY flag and tells Windows to notify the program of mouse events.
eg.
myLabel = create(LText, "A label to test", myWin, 0, 0,200,20,#100)
onClick[myLabel] = routine_id("myLabel_Click")
----- Original Message -----
From: "Prasanta" <chakraborty_prasanta at yahoo.com>
To: "EUforum" <EUforum at topica.com>
Sent: Thursday, August 16, 2001 11:57 AM
Subject: Win32Lib - Onclick event
>
> Hi,
>
> One more question on Win32Lib. I am trying to capture a mouse left click
> on some Label or Disabled Text field. As per Win32Lib doc, the normal
> onClick event doesnot work other than for button and checkboxes (I have
> tested it doesn't).
> I tried to capture onMouse event and track LeftDown, this also doesn't
> work. It works perfectly for RightDown but not for LeftDown.
>
> Am I missing something ?
>
> Regards,
> Prasanta.
>
>
>
>
>