Solved

Toolbar Troubles

Posted on 2000-04-17
3
208 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
  • 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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone 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

Suggested Solutions

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

837 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