Gary Becks
Gary Becks

Reputation: 885

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.Currently the buttons look like below

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

enter image description here

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?/

Upvotes: 1

Views: 15709

Answers (2)

SteveJG
SteveJG

Reputation: 256

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.

Upvotes: 1

A1Gard
A1Gard

Reputation: 4168

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.

Upvotes: 2

Related Questions