1. Home
  2. Computing & Technology
  3. Delphi Programming
Zarko Gajic
Zarko's Delphi Programming Blog

By Zarko Gajic, About.com Guide to Delphi Programming

Use an Icon for a Glyph on a TBitBtn Delphi control with the help of TImageList

Friday November 6, 2009

in Delphi TIPS ::
The TBitBtn Delphi control is a button control that can include a bitmap on its face.

The Glyph property specifies the bitmap that appears on the bitmap button.

By design, the Glyph property can only display BMP (Windows Bitmap) images.

Read the full article to learn how to Use an Icon for a Glyph on a TBitBtn Delphi control with the help of TImageList

Related : Download FREE Icons and Glyphs | How to Convert a Bitmap to a Cursor | How to exchange Bitmap images between two TImageList components

Comments
November 6, 2009 at 11:54 am
(1) Fritz says:

Hello Zarko!

Ok, by this trick at runtime you can assign the icons th the glyph property of SpeedButtons. This is clear.
But I guess your picture showing the buttons and the ImageList component is a ScreenShot at design time. So how did you achieve getting the icons shown already at designtime as the glyphs of the SpeedButtons?

Rgards,

Fritz

November 6, 2009 at 12:58 pm
(2) Zarko Gajic says:

@Fritz: I cheated with the screen shot (edited it) :) This is a “run-time” screen shot with TImageList icon added.

Leave a Comment

Line and paragraph breaks are automatic. Some HTML allowed: <a href="" title="">, <b>, <i>, <strike>

Explore Delphi Programming
About.com Special Features

Holiday Central

What to eat, where to go, fun things to do and how to save money on the perfect gifts. More >

Family Tech Center

Stay connected and entertained with reviews on tips on the latest HDTVs, cellphones and more. More >

  1. Home
  2. Computing & Technology
  3. Delphi Programming

©2009 About.com, a part of The New York Times Company.

All rights reserved.