Problem with TScrollBox in OSX (Lion) lazarus / 31-LCL ---------------------------------------------------------------------- JimKueneman · 2013-03-30 23:34 Can someone help me find where to look to fix this.  I am creating a bunch of components (TSpeedButtons, TImage) on a TScrollBox.  If the ScrollBox has a horizontal scrollbar several things occur: 1) The move over effect is correct but the Mouse Down to click is off (must click below the button) by the height of the scroll bar. 2) The TImages don't draw right (canvas offset problem?) Thanks, Jim ---------------------------------------------------------------------- JimKueneman · 2013-03-30 23:36 Edit:    It is not off by the scrollbar height, it is off by a percentage of how far the vertical scrollbar is scrolled down, but only if the horizontal scrollbar is visible. Jim ---------------------------------------------------------------------- JimKueneman · 2013-04-14 21:13 Is there a better place to post this for a OS specific issue? Jim ---------------------------------------------------------------------- jwdietrich · 2013-04-14 22:15 I cannot reproduce your problem here (Lazarus 1.0.8, Mac OS X 10.5 Leopard, PPC Mac). Maybe that I omitted some setting that you used in your project. Could you perhaps post a link to a short demo project for checking? Which version of Lazarus and FPC did you use? ---------------------------------------------------------------------- JimKueneman · 2013-04-14 23:43 Just so you don't think I am crazy: www.mustangpeak.net/TScrollBox_TSpeedButton_Bug.mpg This was FPC 2.6.0, Lazarus 1.04 Just installed FPC 2.6.2 and Lazarus 1.08 with the same results. JIm ---------------------------------------------------------------------- JimKueneman · 2013-04-15 00:00 Ok easy to reproduce www.mustangpeak.net/LazarusBug.zip TScrollbox does not recognize _anything_ about TSpeedButton. If you only create TSpeedButtons the vertical scrollbar is not shown in the TScrollbox.  Uncomment out the addition of TLabels to force a vertical scrollbar and scroll down.  You can't click on the TSpeedbutton but have to click some pixels below it. Jim ---------------------------------------------------------------------- jwdietrich · 2013-04-15 18:18 You are right, now I can reproduce your problem, although my environment is slightly different from yours (Lazarus 1.0.8, FPC 2.6.2, Mac OS X 10.5 on a PPC-based PowerMac G5). The offset only arises, if the ScrollBox is scrolled down, as you described. I recommend to submit a bug report at http://bugs.freepascal.org. There is a number of issues that have been reported for TScrollBox, but obviously not this one. EDIT: Please also specify the link to your example project from above in order to support the isolation of the bug. ---------------------------------------------------------------------- JimKueneman · 2013-04-16 01:56 Done ID 0024279 Jim ---------------------------------------------------------------------- zeljko · 2013-04-19 12:44 Quote from: JimKueneman on April 15, 2013, 02:00:58 amTScrollbox does not recognize _anything_ about TSpeedButton. If you only create TSpeedButtons the vertical scrollbar is not shown in the TScrollbox.  There's no widgetset which recognizes TSpeedButton since it's TGraphicControl. TSpeedButton does not have ws handle. I've fixed such scenarios on qt,gtk2 and win32 and didn't know that same issue exist for mac (because I'm using qtlcl on mac). ---------------------------------------------------------------------- JimKueneman · 2013-05-02 02:55 How did you fix it? Jim ---------------------------------------------------------------------- zeljko · 2013-05-21 19:02 Quote from: JimKueneman on May 02, 2013, 04:55:53 amHow did you fix it? Jim I've fixed that inside widgetsets .... look at changes at lazarus svn in qt and gtk2 ws about scrollbox, and some recent changes in wincontrol.inc