Solved

ToolBars and ToolButtons

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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

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…
Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
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…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…

691 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