?
Solved

Toolbar Troubles

Posted on 2000-04-17
3
Medium Priority
?
213 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 100 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: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

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

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…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …
Suggested Courses
Course of the Month10 days, 6 hours left to enroll

765 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