Sign in Join

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

Mailing lists / lazarus / 2016-02

Mouse multi click rewritten

3 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

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

Ondrej Pokorny

Today I rewrote multiple click handling of the LCL. The reason for it was that every widgetset used its own code and logic and thus they behaved differently and also the maintainance was hard. Now the logic is in one function for every widget in Controls.pp CheckMouseButtonDownUp.

I updated the following WS to use the unified code: win32, qt, gtk2. I will also update (or at least try to) update Carbon and Cocoa. For now, they use their own code/logic and behave slightly different from other WS.

It was quite a big change and nobody is perfect so please if you find any regressions regarding the mouse (popup menu not showing, not receiving mouse messages or receiving double mouse messages etc.), report them.

Ondrej

Reply by email

Péter Gábor
to Ondrej Pokorny

Hello!

I'm on Linux / GTK2 and today I found that since r51723 the popup menu of Form designer does not appear on right click.

2016-02-27 07:41 keltez?ssel, Ondrej Pokorny ?rta:

Show quoted text 5 lines
Today I rewrote multiple click handling of the LCL.> It was quite a big change and nobody is perfect so please if you find any regressions regarding the mouse (popup menu not showing, not receiving mouse messages or receiving double mouse messages etc.), report them.
P?ter G?bor

Reply by email

Ondrej Pokorny
to Péter Gábor
P?ter G?bor wrote
I'm on Linux / GTK2 and today I found that since r51723 the popup menu of Form designer does not appear on right click.

Thanks for reporting. I have overseen that Gtk2 indexes the mouse buttons in a different way ((l, m, r, x) instead of (l, r, m, x)). So every right click became middle click and vice versa :) Fixed in r51750, please test.

Ondrej

Reply by email