Jump to content
Registration disabled at the moment Read more... ×
Ian Branch

Caption alignment in a TButtonGroup??

Recommended Posts

Hi Team,

Is there a way to align the button captions in a TButtonGroup to the center of the button?

 

Regards & TIA,

Ian

Share this post


Link to post
13 hours ago, Ian Branch said:

Hi Team,

Is there a way to align the button captions in a TButtonGroup to the center of the button?

 

Regards & TIA,

Ian

The "buttons" in such a group are of class TGrpButtonItem and that class does not seem to offer a way to adjust the alignment. But the TButtonGroup itself has a number of events you can handle to draw the buttons yourself, like OnDrawButton. Better study the source to see how the buttons are drawn by default to see how you can modify that.

Share this post


Link to post

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×