Jump to content
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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×