Solved

Toolbar Troubles

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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

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…
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…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

760 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now