Solved

Toolbar Troubles

Posted on 2000-04-17
3
211 Views
Last Modified: 2010-04-04
I need help!

I've created a toolbar for my application.  It looks good. All the images are as they should be.  It functions Great.  It hides and shows.

Here's the problem.  When the form is resized to be smaller than its content the scrollbars appear (that's normal I know).  But when you scroll down, my toolbar goes byebye.  I want it to be always on top.

I have had such trouble with this scrollbar issue.  I want to master them so I can add a statusbar as well, but I won't even go into all that.  I've tryed adding a panel and placing the content within it, with no success.

I need real answers.

Thank you
0
Comment
Question by:fibdev
[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
  • 2
3 Comments
 
LVL 2

Expert Comment

by:isstorr
ID: 2723035
What version of Delphi ru using? Using D3 and the TToolbar/TImageList I have not encountered this problem..

I have encountered a couple of others..
1) If you place a TLabel inside your toolbar, it will change the bar's ButtonHeight to the label height.. :/ Setting ButtonHeight at runtime solves this.
2) If your imagelist is on another form (I generally put mine in a DataModule) the bitmaps within occasionally go black! Restarting Delphi WITHOUT saving fixes it.
0
 
LVL 2

Accepted Solution

by:
isstorr earned 25 total points
ID: 2723084
The above is only useful if you have nothing else on the form ;>

This should do it :-

Set the Form's VertScrollBar.Visible property to False

Set your Toolbar's Align to Top (should be by default)

Add a TScrollBox to the form & give it Align Client. (It also looks better if the BorderStyle is bsNone IMHO).

Place your controls within the TScrollBox.

The scrollbox will scroll as the form's resized but the toolbar will always sit above it at the top.
0
 
LVL 3

Author Comment

by:fibdev
ID: 2723186
Thank you so much!

You have just saved this application.  I wish I had more points to give becuase this is worth so much to me.  Thank you again.
0

Featured Post

Technology Partners: 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

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…
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …

688 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