Keeping a TStatusBar at the bottom

I have a TStatusBar at the bottom of my MDIform and I'm having trouble keeping it there!

Above the TStatusBar is a TPanel with its Align property set to alBottom as well. I'm using this TPanel as a Docksite.

Above the TPanel again is a TSplitter.

Now, whenever anything docks onto the TPanel, this arrangement is disturbed. The TStatusBar ends up on top of the TPanel.

How do I stop this from happening?
zicheAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

pritaeasSoftware EngineerCommented:
Can't you set the Panel to alClient? I'm assuming above the splitter is only one other control, with alignment set to alTop.
0
DragonSlayerCommented:
alternatively, have a Panel set to alBottom.

Then, *in* the Panel, create another Panel with Align set to alClient, and a StatusBar with Align set to alBottom.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Wim ten BrinkSelf-employed developerCommented:
Put another panel in the panel. The outside panel has no border or whatever and the inside panel is your drop panel... ;-)
0
Cloud Class® Course: CompTIA Healthcare IT Tech

This course will help prep you to earn the CompTIA Healthcare IT Technician certification showing that you have the knowledge and skills needed to succeed in installing, managing, and troubleshooting IT systems in medical and clinical settings.

Wim ten BrinkSelf-employed developerCommented:
Oh, DragonSlayer already suggested what I suggested. I need to refresh more often... :D
0
zicheAuthor Commented:
It seems I'll have to go with DragonSlayer's suggestion of putting the Splitter and Panel into a 'containment' Panel.

I was trying to avoid this crude approach. I thought there was a more official way of making the aligned controls 'behave themselves', during runtime, without having to 'trick them' into it.

Isn't this some kind of bug?

pritaeas's suggestion of aligning anything to the client area of the main form is out of the question because this is an MDIform and the client area is needed for displaying the Child forms.
0
DragonSlayerCommented:
Why a C grade... :'(
0
Wim ten BrinkSelf-employed developerCommented:
I don't understand the C grade either...
0
DragonSlayerCommented:
Maybe he's asking me to go learn C... *wink*
0
zicheAuthor Commented:
Using a 2nd panel to contain the status bar and the first panel is not the answer I was looking for.
 
I was aware of this trick before, and I posted the question in the hope of finding an alternative solution.

I awarded you the points not because I was happy with your solution but because the other solutions were completely invalid.
0
DragonSlayerCommented:
Well, in your question, you didn't specify that you already have a workable solution, you just asked "How to stop it from happening" *wink*

I would rather you ask the admins to delete this Q if you are not happy with it, than to spoil my grades and getting a C.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Delphi

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.