MSMK Posted August 28, 2023 Share Posted August 28, 2023 Добрый день. Столкнулся с проблемой отображения текста на кнопке. Имею UniToolButton со свойством Style = tbsDropDown, при этом текст в свойстве Caption не отображается на кнопке Quote Link to comment Share on other sites More sharing options...
MSMK Posted August 28, 2023 Author Share Posted August 28, 2023 1 hour ago, =GGG= said: Добрый день. Столкнулся с проблемой отображения текста на кнопке. Имею UniToolButton со свойством Style = tbsDropDown, при этом текст в свойстве Caption не отображается на кнопке расходимся) вопрос закрыт. Нужно свойство ShowCaptions выставить у uniToolBar 😀 Quote Link to comment Share on other sites More sharing options...
Sherzod Posted August 28, 2023 Share Posted August 28, 2023 Да, Но Вам также может понадобиться такой подход: Uses ExtPascalUtils; procedure TMainForm.UniFormCreate(Sender: TObject); begin with UniToolButton5 do ClientEvents.ExtEvents.Values['afterrender'] := 'function afterrender(sender, eOpts){sender.setText('+ StrToJS(Caption) +')}'; end; Quote Link to comment Share on other sites More sharing options...
MSMK Posted August 28, 2023 Author Share Posted August 28, 2023 я напоролся на то, что теперь у кнопок где не нужно отображать текст, он растягивает кнопку))) Quote Link to comment Share on other sites More sharing options...
Sherzod Posted August 28, 2023 Share Posted August 28, 2023 1 minute ago, =GGG= said: я напоролся на то, что теперь у кнопок где не нужно отображать текст, он растягивает кнопку))) ... Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.