Sign in Join

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

Mailing lists / lazarus / 2012-08

Trackbar - how go to mouse click position?

5 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

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

Krzysztof

Hi,

I'm using TTrackBar component. I can change position by moving mouse but how to go to position where mouse is clicked? When I do this, track position is moving only by PageSize value.

Ubuntu 12.04 64bit. GTK2

Regards

Reply by email

Felipe Monteiro de Carvalho
to Krzysztof

The exact behavior of native controls is controlled by the backend library (in this case Gtk), not Lazarus.

You can use a non-native control. Install the package located at lazarus/components/customdrawn and use the control TCDTrackBar and it will go to where you clicked. I think this requires Lazarus 1.1+

Felipe Monteiro de Carvalho

Reply by email