Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

TtoolButton

TadeKTadeK Member Posts: 4
Hi,

I have TToolbar with TToolButtons.

I don't know how to assign some text to the toolbutton?

ToolButton1->Caption = "text"; doesn't work.

Comments

  • LundinLundin Member Posts: 3,711
    I believe the nature of tool buttons is "buttons without text as a compliment to the program menu", as opposed to TButton which is a button with text. You'll have to put the text in a bitmap icon.
  • TadeKTadeK Member Posts: 4
    : I believe the nature of tool buttons is "buttons without text as a
    : compliment to the program menu", as opposed to TButton which is a
    : button with text. You'll have to put the text in a bitmap icon.


    Yes it's possible, I figured it out. The following property of ToolBar must be set:

    ToolBar1->ShowCaptions=true;

    then

    ToolButton1->Caption="1";
    ToolButton2->Caption="2";
    ...
  • luckyboyluckyboy Member Posts: 105

    : ToolBar1->ShowCaptions=true;

    nice trick
Sign In or Register to comment.