Solved

ToolBars and ToolButtons

Posted on 1998-10-14
1
186 Views
Last Modified: 2013-12-03
Hi, can anyone quickly describe me how to use ToolButtons ?
They seem to be different from other Buttons...

For Example, let's think, my Application has 5 TButtons.

TB 1 and TB 2 are 'LOAD FILE' and 'SAVE FILE' and
the other 3 are 'BOLD' 'ITALIC' and 'UNDERLINE' (Font)

So, I want to assign a Glyph-BMP to TB 1 and TB 2. I saw i have to use something like a TImageList.
So where is that ImageList (Standard, Additional, Win32 etc.) and how to use it to assign Glyphs to TB1/2

For TB 3, 4 and 5 i just want to single 'char' or string[1]
to show their function "B", "I" and "U"

When i used the Caption-Property, there was nothing to see on the button

thanx, Roger
0
Comment
Question by:omsec
1 Comment
 
LVL 2

Accepted Solution

by:
Thaddy earned 10 total points
ID: 1342883
first: Timagelist is on the win32 page.
How to use it:

compile the resexplorer example.
Open comctl32.dll with it.
resourcenumbers are 120 and 121
Rip the bitmaps , small and large and save then as .bmp's
Now,
Put a Toolbar on the form.
Put a Timagelist on the form.
Connect them by setting the imagelist property from the toolbar to the imagelist.
Load the imagelist with one of your *.bmp file.
Add a button to the Toolbar(Rightclick, add button)
Set the Imageindex property of the Toolbutton to one of the (automatically separated) images in the imagelist. Et... voila.
You'l get the idea once you followed these steps.

0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Chinese chars 2 71
delphi custom sort exception 6 109
Printing problem 2 72
Good resource for accessibility implementation 1 42
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now