Solved

Easy UI question about buttons...

Posted on 1997-07-22
3
225 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This article shows a few slightly more advanced techniques for Windows 7 gadget programming, including how to save and restore user settings for your gadget and how to populate the "details" panel that is displayed in the Windows 7 gadget gallery.  …
This article describes how to add a user-defined command button to the Windows 7 Explorer toolbar.  In the previous article (http://www.experts-exchange.com/A_2172.html), we saw how to put the Delete button back there where it belongs.  "Delete" is …
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…

749 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