?
Solved

ToolBars and ToolButtons

Posted on 1998-10-14
1
Medium Priority
?
225 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 40 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

Enroll in August's Course of the Month

August's CompTIA IT Fundamentals course includes 19 hours of basic computer principle modules and prepares you for the certification exam. It's free for Premium Members, Team Accounts, and Qualified Experts!

Question has a verified solution.

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

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…
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…
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…
Suggested Courses
Course of the Month9 days, 15 hours left to enroll

762 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