Recent

Author Topic: Scrollbars themed like in LazPaint  (Read 3467 times)

lainz

  • Hero Member
  • *****
  • Posts: 4741
  • Web, Desktop & Android developer
    • https://lainz.github.io/
Scrollbars themed like in LazPaint
« on: June 29, 2015, 09:55:22 pm »
Hi,

I see that LazPaint has a listbox or shellview with scrollbars themed, this will be nice to have something like that in BGRA-Controls.

Any idea how we can add this to BGRA-Controls?

Also, a suggestion for this control in LazPaint will be to add support of scrolling with the middle mouse button. Everything else looks perfect.

circular

  • Hero Member
  • *****
  • Posts: 4467
    • Personal webpage
Re: Scrollbars themed like in LazPaint
« Reply #1 on: June 29, 2015, 10:56:57 pm »
Those scrollbars relies on the unit UVolatileScrollbar. It contains the class TVolatileScrollBar. It is not a control, but can be drawn on a BGRABitmap. It is designed to be easily freed and reallocated on the fly. The instance only need to be kept while scrolling.

For now, the size of the scrollbar is a kind of constant, but one could do a version that would be more customizable.
Conscience is the debugger of the mind

lainz

  • Hero Member
  • *****
  • Posts: 4741
  • Web, Desktop & Android developer
    • https://lainz.github.io/
Re: Scrollbars themed like in LazPaint
« Reply #2 on: June 30, 2015, 12:55:34 am »
Thanks. I'll take a look.

So I think that already I can use that as is. Since it comes with lazpaint there is no need to copy that to bgracontrols. I think?
« Last Edit: June 30, 2015, 01:04:31 am by 007 »

circular

  • Hero Member
  • *****
  • Posts: 4467
    • Personal webpage
Re: Scrollbars themed like in LazPaint
« Reply #3 on: June 30, 2015, 08:29:06 pm »
Would be a bit confusing to copy it to bgracontrols. Maybe by renaming it. Anyway there are some changes that would be necessary I suppose to make it more customizable.
Conscience is the debugger of the mind

lainz

  • Hero Member
  • *****
  • Posts: 4741
  • Web, Desktop & Android developer
    • https://lainz.github.io/
Re: Scrollbars themed like in LazPaint
« Reply #4 on: July 02, 2015, 02:51:38 pm »
Alright, If I find time I'll take a look. Thanks for all the info.

 

TinyPortal © 2005-2018