Solved

ToolBars and ToolButtons

Posted on 1998-10-14
1
221 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
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…
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…

733 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