Board index » cppbuilder » Multi-line button label with word wrap???

Multi-line button label with word wrap???

First, let me say I am new to BCB. I have used Paradox
for years, and bought BCB to be able to continue to use
my Paradox files. I haven't been very happy with Corel's
handling of Paradox. I also want to use my Paradox files in
native mode, not through the VB ISAM drivers.

I find it hard to believe that I can do this in VB but it is
apparently nearly impossible to do in BCB 5. I have
nine buttons that have to fit in a 640x480 window,
as I know most of the users will be using older equipment.
I also need to use fairly large font sizes, as most of
the users are themselves older, and like myself, need
bifocals, etc. I want to have buttons that have two or
three lines of text, such as:

 Create
Service
 Order

In VB, all I need do is turn on word wrap, centering,  and set the font.

How do I do this in BCB without having to buy components. I really
don't want to use MS products, and I would prefer to continue to use
Paradox files. But if I can't get the user interface to work the way it
should without spending more money, I guess I'll have to go to VB and
Access files.

There must be a simple way of doing this. Anyone out there with an
answer?

J. Matthew Good

 

Re:Multi-line button label with word wrap???


Quote
Student wrote:
> I also need to use fairly large font sizes, as most of
> the users are themselves older, and like myself, need
> bifocals, etc. I want to have buttons that have two or
> three lines of text, such as:

Use TBitBtn instead of TButton and assign the caption through code.

void __fastcall TForm1::BitBtn1Click(TObject *Sender)
{
  BitBtn1->Caption = "Wrap\nThis\nText";

Quote
}

You might need to resize the button for the text to fit. ;)

Other Threads