Jump to content

Маленькая кнопка с картинкой по центру


Recommended Posts

Создал кнопку TSpeedButton,  width=19 height=18

Изображение 12х12 px (16x16 эффект тот же) отображается с отступами и не по центру. Как сделать изображение по центру кнопки?



Link to comment
Share on other sites

  • 3 years later...

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


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.

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...