Jump to content

toolbar


MSMK

Recommended Posts

Добрый день. Столкнулся с проблемой отображения текста на кнопке. Имею UniToolButton со свойством Style = tbsDropDown, при этом текст в свойстве Caption не отображается на кнопке

Screenshot_4.png

Screenshot_5.png

Link to comment
Share on other sites

1 hour ago, =GGG= said:

Добрый день. Столкнулся с проблемой отображения текста на кнопке. Имею UniToolButton со свойством Style = tbsDropDown, при этом текст в свойстве Caption не отображается на кнопке

Screenshot_4.png

Screenshot_5.png

расходимся) вопрос закрыт. Нужно свойство ShowCaptions выставить у uniToolBar 😀

Screenshot_6.png

Link to comment
Share on other sites

Да,

 

Но Вам также может понадобиться такой подход:

Uses ExtPascalUtils;

procedure TMainForm.UniFormCreate(Sender: TObject);
begin
  with UniToolButton5 do
    ClientEvents.ExtEvents.Values['afterrender'] := 'function afterrender(sender, eOpts){sender.setText('+ StrToJS(Caption) +')}';
  
end;

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...