Articles   Members Online:
-Article/Tip Search
-News Group Search over 21 Million news group articles.
-Delphi/Pascal
-CBuilder/C++
-C#Builder/C#
-JBuilder/Java
-Kylix
Member Area
-Home
-Account Center
-Top 10 NEW!!
-Submit Article/Tip
-Forums Upgraded!!
-My Articles
-Edit Information
-Login/Logout
-Become a Member
-Why sign up!
-Newsletter
-Chat Online!
-Indexes NEW!!
Employment
-Build your resume
-Find a job
-Post a job
-Resume Search
Contacts
-Contacts
-Feedbacks
-Link to us
-Privacy/Disclaimer
Embarcadero
Visit Embarcadero
Embarcadero Community
JEDI
Links
Buttons with wrapped text - use a TBitBtn Turn on/off line numbers in source code. Switch to Orginial background IDE or DSP color Comment or reply to this aritlce/tip for discussion. Bookmark this article to my favorite article(s). Print this article
24-Aug-02
Category
VCL-General
Language
Delphi All Versions
Views
40
User Rating
No Votes
# Votes
0
Replies
0
Publisher:
DSP, Administrator
Reference URL:
DKB
			Buttons with wrapped text - use a TBitBtn 

Buttons with wrapped text - use a TBitBtn

Answer:

Besides using a TButton with an embedded TLabel, you can simply use a TBitBtn to 
display wrapped text. This can be achieved by either of the following ways:

Select 'view form as text' (Alt-F12) and change the TBitBtn caption to Caption = 
'wrapped'#10'here'#10'and there' then 'view as form' again. Caution: a few mistypes 
and have strange consequences here: DO NOT change names or cut and paste new 
objects, modify only those already created

In startup code (.FormCreate()) set caption to 'Hello' + #10 + 'World';

If you copy a LF(#10) to clipboard you can paste (shift-insert) it into the TBitBtn caption to get the multi line text at design time CR doesn't work for this nor does alt-013 or alt-010 :-( this at least allows captioning.

			
Vote: How useful do you find this Article/Tip?
Bad Excellent
1 2 3 4 5 6 7 8 9 10

 

Advertisement
Share this page
Advertisement
Download from Google

Copyright © Mendozi Enterprises LLC