Using BMP Glyfz With Delphi versions 2 - 7
You can add BMP Glyfz either directly to a control such
as a BitBtn using the Glyph property or indirectly using an
imagelist. Both methods are very easy to use under Delphi.
Adding Directly Via The Glyph
Property
We will use the BitBtn as the example
control where we will add a Glyfz image directly.
Step 1.
Add a BitBtn to your form from the Additional components tab.
Step 2.
Add the glyph using the Glyph property in the Object
Inspector. Click the on ... button and the picture editor will be
displayed. Click Load and select the image you'd like to use. Once
selected click OK to close the picture editor.
That's it, you're done. Easy!

Adding Indirectly Via An ImageList
In this example we will link an ImageList
containing Glyfz images to the standard menu control.
Step 1
Add an ImageList component from the Win32
component tab and set its width and height properties to that of the
images you're going to be adding, in this case 16x16's.
Step 2
To add the images to ImageList double click
on the ImageList control and the following dialog box will be
displayed allowing you to add and delete your images. Clear empties
all the current images, Export exports the image as a BMP. To add
the images click on the Add button and a standard Open dialog will
be displayed allowing you to select the images you want to add.


Step 3
Now we'll add a standard ToolBar control,
again from the Win32 component tab.

We need to tell the menu which ImageList
its going to use by setting it's Images property.

Step 4
To add a button to the menu right click on
the toolbar and select New Button from the context menu.

Set the button's ImageIndex to the required
image. From version 5 of Delphi (I think) a preview of the image is
displayed making it easy to select the correct image earlier
versions didn't support that luxury..

That's it, you're done! Again easy.

|