Recent

Author Topic: CDScrollbar is totally broken  (Read 5795 times)

AlexTP

  • Hero Member
  • *****
  • Posts: 2707
    • UVviewsoft
CDScrollbar is totally broken
« on: May 28, 2014, 08:37:31 pm »
I create new form, place CDScrollbar (horiz.), and set its props: PageSize=10, DrawStyle=default.
I use Win7 x64.
I added units to uses:

Code: [Select]
uses
  Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs,
  customdrawncontrols,
  customdrawn_android,
  customdrawn_common,
  customdrawn_winxp;


now i see totally broken scrollbar behaviour. See attached video (UVScreenCamera player needed for uvf file).

-Thumb not dragged OK, its position is not synced with mouse
-Holding mouse on "left" arrow doesn't scroll thumb to minimum
-Clicking on area righter than thumb doesn't scroll at all (must scroll by pagesize)
-Other bugs


« Last Edit: May 28, 2014, 09:08:53 pm by Alex22 »

zeljko

  • Hero Member
  • *****
  • Posts: 1921
    • http://wiki.lazarus.freepascal.org/User:Zeljan
Re: LCL bug: CDScrollbar is totally broken
« Reply #1 on: May 28, 2014, 09:04:24 pm »
It's not LCL bug but customdrawn control bug. Feel free to improve it.

AlexTP

  • Hero Member
  • *****
  • Posts: 2707
    • UVviewsoft
Re: CDScrollbar is totally broken
« Reply #2 on: May 28, 2014, 09:10:17 pm »
Can author of CDScrollbar confirm bugs? will he fix them?

zeljko

  • Hero Member
  • *****
  • Posts: 1921
    • http://wiki.lazarus.freepascal.org/User:Zeljan
Re: CDScrollbar is totally broken
« Reply #3 on: May 28, 2014, 09:32:47 pm »

AlexTP

  • Hero Member
  • *****
  • Posts: 2707
    • UVviewsoft
-
« Reply #4 on: May 28, 2014, 10:47:47 pm »
I don't know how to send him PM. or mail.

Maybe make my own scrollbar is better??
 

howardpc

  • Hero Member
  • *****
  • Posts: 4144
Re: CDScrollbar is totally broken
« Reply #5 on: May 28, 2014, 11:09:53 pm »
Click on My Messages (4th from right in the title bar menu at the top of this page), and then click on New Message in the menu bar at the left of the Lazarus >> Forum >> Personal Messages >> Inbox page that you have navigated to. You'll need to remember his user name (Sekelsenmat) to identify the recipient correctly.
« Last Edit: May 28, 2014, 11:11:38 pm by howardpc »

AlexTP

  • Hero Member
  • *****
  • Posts: 2707
    • UVviewsoft
-
« Reply #6 on: May 28, 2014, 11:31:05 pm »
Thank. I may write to user later.
Is more correct scrollbar exist (owner-drawn or themed)?? For Win/Linux?

this CDScrollbar has very poor code.

Mike.Cornflake

  • Hero Member
  • *****
  • Posts: 1271
Re: CDScrollbar is totally broken
« Reply #7 on: May 29, 2014, 12:04:51 am »
I use the standard TScrollbar (Available on the very first component tab in Lazarus) - I've had no problems.
Lazarus Trunk/FPC latest fixes on Windows 11
  I'm getting old and stale.  Slowly getting used to git, I'll get there...

AlexTP

  • Hero Member
  • *****
  • Posts: 2707
    • UVviewsoft
Re: CDScrollbar is totally broken
« Reply #8 on: May 29, 2014, 12:39:22 am »
Mike, I''m about owner drawn. Not standart. I need to paint. Ok-- this bar is very very bad. I see it in source code

AlexTP

  • Hero Member
  • *****
  • Posts: 2707
    • UVviewsoft
Re: CDScrollbar is totally broken
« Reply #9 on: May 29, 2014, 04:18:14 am »
I won't use this scrollbar anymore. I ll write my own "flat scrollbar". Better if LCL owner removes this bad component

Leledumbo

  • Hero Member
  • *****
  • Posts: 8836
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: CDScrollbar is totally broken
« Reply #10 on: May 29, 2014, 05:29:30 am »
I won't use this scrollbar anymore. I ll write my own "flat scrollbar". Better if LCL owner removes this bad component
Custom Drawn widgetset is far from complete, the author has made it to a point it's useful as a proof of concept and left it for others to improve and complete it. So please don't be that rude.

 

TinyPortal © 2005-2018