Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Toolbar Troubles

Posted on 2000-04-17
3
Medium Priority
?
215 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: 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

Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
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…
Please read the paragraph below before following the instructions in the video — there are important caveats in the paragraph that I did not mention in the video. If your PaperPort 12 or PaperPort 14 is failing to start, or crashing, or hanging, …
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …
Suggested Courses

636 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