简体   繁体   中英

How To Use An Image As A Button In Delphi

As the title implies, I am trying to figure out how to use an image as a button in my delphi app. 目前按钮如下所示

I would like the buttons to look more like this more or less.

在此输入图像描述

Are there any resources or tutorials that anyone could recommend on which component I would use for this and how to go about using it properly?/

you can made it without external component with TSpeedButton

active flat property .

and use in glyph bitmap...

your bitmap must with alpha channel...

for example : http://0777.ir/img/alpha.bmp

this bitmap have alpha channel...

you can see the channels in adobe photoshop.

Use a Delph TSpeedButton as already mentioned. To answer your question about stock images, there are some free image sets you might find appropriate here: http://www.freedownloadmanager.org/download/delphi-16x16-speed-button-icon-bmp-1599703.html . I have not tried them. One of these might be what you need to get started. Yes, there are other places to get the resources... google 16 x 16 Glyphs or icons or images. There used to be several free tools to design your own icons..one comes to mind Icon Edit ( http://www.bouffler.freeserve.co.uk/icon_edit.htm ), if you google, look for a shareware tool by the same name with a version number. And there are numerous commercial products.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM