Recent

Author Topic: GTK2 Trackbar AutoSized Height for TickStyle := tsNone  (Read 3168 times)

ChrisR

  • Full Member
  • ***
  • Posts: 247
GTK2 Trackbar AutoSized Height for TickStyle := tsNone
« on: October 14, 2018, 02:38:53 pm »
The anchoring tools in Lazarus make it easy to use high DPI displays, and generally work really well. However, one challenge I have is that the TTrackBar always assumes that its height will include tickmarks/labels. Therefore, autosized trackbars get spaced very far apart.

I am not sure if this is a bug per se: the trackbars are being auto-sized to a size that would be appropriate with TickStyle = tsAuto, but do not look correct if the bars are set to TickStyle = tsNone. With QT5 and Cocoa, I can override this behavior (as shown in the demos).

Does anyone know how to get GTK2 trackbars height to be correctly set/constrained for TickStyle = tsNone?

ChrisR

  • Full Member
  • ***
  • Posts: 247
Re: GTK2 Trackbar AutoSized Height for TickStyle := tsNone
« Reply #1 on: October 14, 2018, 05:35:10 pm »
I have submitted a bug report with a patch https://bugs.freepascal.org/view.php?id=34418

 

TinyPortal © 2005-2018