Solved

Easy UI question about buttons...

Posted on 1997-07-22
3
221 Views
Last Modified: 2013-12-03
I would like to have more than one line of text on a button.
I simply want more height and less width on my buttons,
but I can't figure out how to make the button text wrap down to the second line. EX:

I want :

-------------------
|    Button   |
|        #1     |
-------------------

not:
---------------------------
|    Button  #1     |
---------------------------

Thanks.
0
Comment
Question by:salamander
  • 2
3 Comments
 
LVL 4

Accepted Solution

by:
md041797 earned 50 total points
ID: 1401697
Use BS_MULTILINE.
0
 

Author Comment

by:salamander
ID: 1401698
What about centering the text?
0
 
LVL 4

Expert Comment

by:md041797
ID: 1401699
There is no way to center justify the text, but if you use BS_CENTER style and put '\n' characters in the caption wherever you want to break the line, you will get a centered block on the button that is left justified.
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

For a while now I'v been searching for a circular progress control, much like the one you get when first starting your Silverlight application. I found a couple that were written in WPF and there were a few written in Silverlight, but all appeared o…
Entering time in Microsoft Access can be difficult. An input mask often bothers users more than helping them and won't catch all typing errors. This article shows how to create a textbox for 24-hour time input with full validation politely catching …
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now