Sign in Join

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

Mailing lists / lazarus / 2011-07

TScrollBox.OnMouseUp does not fire correctly on Windows

3 messages · 1 person · –

Reply by email Subscribe to this list Your subscription

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

Torsten Bonde Christiansen

Hi List.

As I'm not 100% sure how mouse events are handled in Lazarus, this may be a dumb question so please bear with me.

It seems as if a TScrollBox does not fire a OnMouseUp event (only in windows) when the mouse down was performed on the control, but mouse up is done elsewhere (eg. outside the current window/form).

The same work fine for TPanel, TGroupBox, etc. Even using a TScrollBox in Linux and doing the same click work fine, so this seems to be isolated to windows only.

I am using:
Lazarus 0.9.31 r31668 FPC 2.4.2 i386-win32-win32/win64

and
Lazarus 0.9.31 r31578M FPC 2.4.2 x86_64-linux-gtk 2

Is this a bug, which I guess it is since the TScrollBox work as I expect it to on Linux with GTK2?

Kind regards,
Torsten Bonde Christiansen.

Our Program who art in Memory, Hello be Thy Name. Thy Operating System come, Thy Commands be done, at the Printer as it is on the Screen. Give us this day our daily Data, and forgive us our I/O Errors as we forgive those whose Logic Circuits are faulty. Lead us not into frustration, and deliver us from Power Surges, for Thine is the Algorithm, the Application, and the Solution, looping forever and ever. Return.

Reply by email

Torsten Bonde Christiansen
to Torsten Bonde Christiansen

Created bugreport:

http://bugs.freepascal.org/view.php?id=19712

Torsten Bonde Christiansen wrote 28 lines
Hi List. As I'm not 100% sure how mouse events are handled in Lazarus, this may be a dumb question so please bear with me. It seems as if a TScrollBox does not fire a OnMouseUp event (only in windows) when the mouse down was performed on the control, but mouse up is done elsewhere (eg. outside the current window/form). The same work fine for TPanel, TGroupBox, etc. Even using a TScrollBox in Linux and doing the same click work fine, so this seems to be isolated to windows only. I am using: Lazarus 0.9.31 r31668 FPC 2.4.2 i386-win32-win32/win64 and Lazarus 0.9.31 r31578M FPC 2.4.2 x86_64-linux-gtk 2 Is this a bug, which I guess it is since the TScrollBox work as I expect it to on Linux with GTK2? Kind regards, Torsten Bonde Christiansen.
Our Program who art in Memory, Hello be Thy Name. Thy Operating System come, Thy Commands be done, at the Printer as it is on the Screen. Give us this day our daily Data, and forgive us our I/O Errors as we forgive those whose Logic Circuits are faulty. Lead us not into frustration, and deliver us from Power Surges, for Thine is the Algorithm, the Application, and the Solution, looping forever and ever. Return.

Reply by email

Torsten Bonde Christiansen
to Torsten Bonde Christiansen

To Lazarus developers.

Please note that I've updated this issue and create a patch and put it on the bug tracker.

Kind regards,
Torsten Bonde Christiansen.

Torsten Bonde Christiansen wrote 34 lines
Created bugreport: http://bugs.freepascal.org/view.php?id=19712 On 2011-07-11 13:32, Torsten Bonde Christiansen wrote: > Hi List. > > As I'm not 100% sure how mouse events are handled in Lazarus, this > may be a dumb question so please bear with me. > > It seems as if a TScrollBox does not fire a OnMouseUp event (only in > windows) when the mouse down was performed on the control, > but mouse up is done elsewhere (eg. outside the current window/form). > > The same work fine for TPanel, TGroupBox, etc. Even using a > TScrollBox in Linux and doing the same click work fine, so this > seems to be isolated to windows only. > > I am using: > Lazarus 0.9.31 r31668 FPC 2.4.2 i386-win32-win32/win64 > > and > Lazarus 0.9.31 r31578M FPC 2.4.2 x86_64-linux-gtk 2 > > > Is this a bug, which I guess it is since the TScrollBox work as I > expect it to on Linux with GTK2? > > Kind regards, > Torsten Bonde Christiansen. > > >
Our Program who art in Memory, Hello be Thy Name. Thy Operating System come, Thy Commands be done, at the Printer as it is on the Screen. Give us this day our daily Data, and forgive us our I/O Errors as we forgive those whose Logic Circuits are faulty. Lead us not into frustration, and deliver us from Power Surges, for Thine is the Algorithm, the Application, and the Solution, looping forever and ever. Return.

Reply by email