Solved

ToolBars and ToolButtons

Posted on 1998-10-14
1
208 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

ScreenConnect 6.0 Free Trial

Want empowering updates? You're in the right place! Discover new features in ScreenConnect 6.0, based on partner feedback, to keep you business operating smoothly and optimally (the way it should be). Explore all of the extras and enhancements for yourself!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
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…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

777 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