Volk65 Posted January 15, 2020 Share Posted January 15, 2020 Создал кнопку TSpeedButton, width=19 height=18 Изображение 12х12 px (16x16 эффект тот же) отображается с отступами и не по центру. Как сделать изображение по центру кнопки? Quote Link to comment Share on other sites More sharing options...
Sherzod Posted January 15, 2020 Share Posted January 15, 2020 Есть тестовый случай, только с одной кнопкой? Quote Link to comment Share on other sites More sharing options...
Volk65 Posted January 15, 2020 Author Share Posted January 15, 2020 Сейчас напишу. Quote Link to comment Share on other sites More sharing options...
Volk65 Posted January 15, 2020 Author Share Posted January 15, 2020 пример Test7.rar Quote Link to comment Share on other sites More sharing options...
Sherzod Posted January 16, 2020 Share Posted January 16, 2020 9 hours ago, Volk65 said: пример Test7.rar Может, как-то так? SpeedButton.ClientEvents.ExtEvents -> function afterrender(sender, eOpts) { sender.getEl().select('.x-btn-icon').setStyle('min-height', '12px'); } 1 Quote Link to comment Share on other sites More sharing options...
Volk65 Posted January 16, 2020 Author Share Posted January 16, 2020 Спасибо. Всё получилось. Quote Link to comment Share on other sites More sharing options...
eduardosuruagy Posted January 4 Share Posted January 4 I'm putting a fontawesome on a SpeedButton, when clicking on the button I do this: UniSpeedButton3.Caption := '<i class="fas fa-cross" style="color:red"></i>'; but the image is not centered. Is there a way to leave it in the center? My button has a height of 32 and a width of 32 Quote Link to comment Share on other sites More sharing options...
Sherzod Posted January 4 Share Posted January 4 4 minutes ago, eduardosuruagy said: but the image is not centered Hello, I couldn't reproduce. Quote Link to comment Share on other sites More sharing options...
eduardosuruagy Posted January 4 Share Posted January 4 12 minutes ago, Sherzod said: Olá, Não consegui reproduzir. Project1.rar Quote Link to comment Share on other sites More sharing options...
Sherzod Posted January 4 Share Posted January 4 Ok, I will try to check later today. 1 Quote Link to comment Share on other sites More sharing options...
Sherzod Posted January 4 Share Posted January 4 1 hour ago, eduardosuruagy said: Project1.rar 80.56 kB · 0 downloads Ok, you are using "triton.modified". Solution: Quote Link to comment Share on other sites More sharing options...
eduardosuruagy Posted January 4 Share Posted January 4 Thank you very much, it worked 1 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.