Click to See Complete Forum and Search --> : Text alignment in buttons
M_Bex
August 13th, 2004, 04:13 AM
Hi,
I have a toolbar with BTNS_DROPDOWN buttons.
But how can I change the alignment for the text in the buttons ???
Thanks!
Bond
August 13th, 2004, 08:12 AM
How are they aligned now? And where to you want them to be?
By default, a toolbar button's text appears below the icon. If you specify the TBSTYLE_LIST style, the text appears on the right side.
If you want complete control over where the text appears, you can always custom draw the items.
M_Bex
August 13th, 2004, 09:20 AM
I specified the TBSTYLE_LIST and the TB_FLAT style.
The buttons are aligned to the left and I would like to have a center alignment like in a normal menu item.
I attach a screenshot to demonstrate how it looks like actually.
kirants
August 13th, 2004, 12:02 PM
Hm.. doesn't look like there is a style to specify how you want the text aligned. At least I couldn't.
What you could try is to add a few leading spaces so the text appears to be shifted..
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.