Lazarus

Miscellaneous => Suggestions => LCL => Topic started by: lainz on May 04, 2015, 08:17:00 pm

Title: Add OnPaint and OnDrawItem to TToolBar
Post by: lainz on May 04, 2015, 08:17:00 pm
Hi, please test this new feature I'm adding to TToolBar

It allow to customize the TToolBar with
- OnPaint event: change the background of the TToolBar
- OnDrawItem event: change the style of the TToolButton

Attached:
- Patch for lazarus trunc
- Screenshot
- Demo

Share your comments.
Title: Re: Add OnPaint and OnDrawItem to TToolBar
Post by: circular on May 05, 2015, 01:17:35 am
I can't seem to be able to apply the patch. I guess it is because I have Lazarus 1.0.10.

I looked at the code and it makes sense to me.
Title: Re: Add OnPaint and OnDrawItem to TToolBar
Post by: lainz on May 05, 2015, 08:22:10 pm
Now in bugtracker
http://bugs.freepascal.org/view.php?id=28029

Hopefully they want to add it.
Title: Re: Add OnPaint and OnDrawItem to TToolBar
Post by: circular on May 06, 2015, 02:31:10 am
It seems it was added.   :)
Title: Re: Add OnPaint and OnDrawItem to TToolBar
Post by: lainz on May 06, 2015, 03:20:09 am
It seems it was added.   :)

Yes! Feel free to use it to theme LazPaint  :)
Title: Re: Add OnPaint and OnDrawItem to TToolBar
Post by: circular on May 06, 2015, 11:39:58 am
Yes. That will be in Lazarus 1.6?
Title: Re: Add OnPaint and OnDrawItem to TToolBar
Post by: lainz on May 06, 2015, 06:20:59 pm
Yes. That will be in Lazarus 1.6?
im not sure. there is also a fixes branch or something like that.

I've added it to the wiki, hopefully it works this way:
http://wiki.lazarus.freepascal.org/Lazarus_1.4_fixes_branch#Submitted_by_others
TinyPortal © 2005-2018