Recent

Author Topic: BCButton improvement  (Read 2715 times)

mtournay

  • Jr. Member
  • **
  • Posts: 63
BCButton improvement
« on: August 18, 2017, 10:42:13 pm »
Hello Lainz

I would like to have your opinion about two things about the BCbuttons :

1. integrate them into the tabstop cycle, so users can use keyboard like with regular buttons
2. Add a 'glyphPosition' property to place either the glyphs in the buttons (basically in my case all align them left for most of the buttons, or centered on top for some).

I can try to handle point 2, but for point 1, I have no idea where to start.

Regards,

edit :

haha big lol http://forum.lazarus.freepascal.org/index.php/topic,32049.0.html

nevermind  :-[

« Last Edit: August 18, 2017, 11:12:44 pm by mtournay »
laz 2.06 32b - fpc 3.04 32b - win10 64b

lainz

  • Hero Member
  • *****
  • Posts: 4463
    • https://lainz.github.io/
Re: BCButton improvement
« Reply #1 on: August 18, 2017, 11:15:42 pm »
Hello Lainz

I would like to have your opinion about two things about the BCbuttons :

1. integrate them into the tabstop cycle, so users can use keyboard like with regular buttons
2. Add a 'glyphPosition' property to place either the glyphs in the buttons (basically in my case all align them left for most of the buttons, or centered on top for some).

I can try to handle point 2, but for point 1, I have no idea where to start.

Regards,

1. For that is bcbuttonfocus. But you need to handle the drawing of the focus border on the button drawing events.

2. Try to implement that and maybe then do a pull request. You need a GitHub account for that.

mtournay

  • Jr. Member
  • **
  • Posts: 63
Re: BCButton improvement
« Reply #2 on: August 19, 2017, 09:58:30 pm »
1. For that is bcbuttonfocus. But you need to handle the drawing of the focus border on the button drawing events.
OK I missed that one.... is the focus ability the only difference with TBCButton ?

2. Try to implement that and maybe then do a pull request. You need a GitHub account for that.

OK I'll start monday and then make the pull request on github (just after updating to laz 1.8RC4 ! )
laz 2.06 32b - fpc 3.04 32b - win10 64b

lainz

  • Hero Member
  • *****
  • Posts: 4463
    • https://lainz.github.io/
Re: BCButton improvement
« Reply #3 on: August 19, 2017, 11:38:08 pm »
1. For that is bcbuttonfocus. But you need to handle the drawing of the focus border on the button drawing events.
OK I missed that one.... is the focus ability the only difference with TBCButton ?

2. Try to implement that and maybe then do a pull request. You need a GitHub account for that.

OK I'll start monday and then make the pull request on github (just after updating to laz 1.8RC4 ! )

It doesn't handle transparency. I try to keep both with equal features. So try to make the changes for both so they are compatible and easy to switch.

 

TinyPortal © 2005-2018