Board index » cppbuilder » Buttons and Multiline captions

Buttons and Multiline captions

Hi,

does anybody know if it is possible to have a button with multiline caption
example:
                                  -------------------------
                                  |         Do                |
                                  |  Setup Machine  |
                                  -------------------------
thanks
Ruggero Bandera

 

Re:Buttons and Multiline captions


See the thread with subject "Buttons" in this group, dated 8-19.
Quote
"essedoppiavu" wrote:
> does anybody know if it is possible to have a button with
> multiline caption
> example:
>                                   -------------------------
>                                   |         Do                |
>                                   |  Setup Machine  |
>                                   -------------------------

Re:Buttons and Multiline captions


I dont think so.  However for the effect that you are looking for, you
might try using a small panel and placing labels on it.  That should do
the trick.

HTH,

Brent

Quote
essedoppiavu wrote:

> Hi,

> does anybody know if it is possible to have a button with multiline caption
> example:
>                                   -------------------------
>                                   |         Do                |
>                                   |  Setup Machine  |
>                                   -------------------------
> thanks
> Ruggero Bandera

Re:Buttons and Multiline captions


Quote
On Thu, 24 Aug 2000 23:56:45 +0200, "essedoppiavu" <acram...@tin.it> wrote:
>Hi,

>does anybody know if it is possible to have a button with multiline caption
>example:
>                                  -------------------------
>                                  |         Do                |
>                                  |  Setup Machine  |
>                                  -------------------------
>thanks
>Ruggero Bandera

Try to put a '\n' as separator between lines when you set (by code, not with
property editor) the Button's Caption property.

    Button1->Caption = "Riga1\nRiga2";

but it seems to work only with TBitBtn(s) or TSpeedButton(s), not with
TButton(s).

Ciao!

Giuliano

Other Threads