Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2013-01

TApplicationProperties Event - Click Message ?

5 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Daniel Gaspary

Hi,

Testing the OnUserInput Event I have found that a "Click" or "Button Pressed" message is not being sent to this event.

The Mouse Down, Up, Double Click and even the Quad Click messages are received.

Should I report this on Bug Tracker ??

To perform the tests:

procedure TForm1.ApplicationProperties1UserInput(Sender: TObject; Msg:
Cardinal);
begin
     if msg = LM_MOUSEMOVE
     then
         exit;
     WriteLn(GetMessageName(msg));
end;

Reply by email

Mattias Gaertner
to Daniel Gaspary
Show quoted text 9 lines
Hi, Testing the OnUserInput Event I have found that a "Click" or "Button Pressed" message is not being sent to this event. The Mouse Down, Up, Double Click and even the Quad Click messages are received. Should I report this on Bug Tracker ??

No.
Click is an artificial event derived from Mouse Down+Up.

Show quoted text 11 lines
To perform the tests: procedure TForm1.ApplicationProperties1UserInput(Sender: TObject; Msg: Cardinal); begin if msg = LM_MOUSEMOVE then exit; WriteLn(GetMessageName(msg)); end;

Mattias

Reply by email

Daniel Gaspary
to Mattias Gaertner
Mattias Gaertner wrote 15 lines
On Mon, 28 Jan 2013 10:42:45 -0200 Daniel Gaspary wrote: > Hi, > > Testing the OnUserInput Event I have found that a "Click" or > "Button Pressed" message is not being sent to this event. > > The Mouse Down, Up, Double Click and even the Quad Click messages > are received. > > Should I report this on Bug Tracker ?? No. Click is an artificial event derived from Mouse Down+Up.

Ok, but, what about Triple and quad Clicks? These msgs are sent to this event.

LM_LBUTTONTRIPLECLK

Reply by email

Mattias Gaertner
to Daniel Gaspary
Show quoted text 21 lines
On Mon, Jan 28, 2013 at 10:56 AM, Mattias Gaertner wrote: > On Mon, 28 Jan 2013 10:42:45 -0200 > Daniel Gaspary wrote: > >> Hi, >> >> Testing the OnUserInput Event I have found that a "Click" or >> "Button Pressed" message is not being sent to this event. >> >> The Mouse Down, Up, Double Click and even the Quad Click messages >> are received. >> >> Should I report this on Bug Tracker ?? > > No. > Click is an artificial event derived from Mouse Down+Up. Ok, but, what about Triple and quad Clicks? These msgs are sent to this event. LM_LBUTTONTRIPLECLK

The definition of a multi click is in the Widgetset. So for the LCL a LM_LBUTTONTRIPLECLK is an external (=not originating in the LCL) message of category user input.

Mattias

Reply by email

Daniel Gaspary
to Mattias Gaertner
Mattias Gaertner wrote
The definition of a multi click is in the Widgetset. So for the LCL a LM_LBUTTONTRIPLECLK is an external (=not originating in the LCL) message of category user input.

Ok, thank you Mattias.

Reply by email