swich panels during runtime

I have already been able to make panels trade places on my form, but if there is a scrollbar and I switch them only the one I am viewing at that time gets positioned properly. How can I determine the forms complete clientheight, including the part not seen and have my panel switch properly?
cscurlockAsked:
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.

intheCommented:
form1.height should give the complete height of form,clientheight is only the ysable part of the form whereas height is all the form..
0
edeyCommented:
what happens if you move the visible one first? This way the form should not resize


GL
Mike
0
cscurlockAuthor Commented:
The height of the form is set to a certain size.  After many panels are placed inside then the scroll bar appears.  I am trying to determine the relative position of the panel after scrolling down.  Any formulas?
0
Cloud Class® Course: Microsoft Exchange Server

The MCTS: Microsoft Exchange Server 2010 certification validates your skills in supporting the maintenance and administration of the Exchange servers in an enterprise environment. Learn everything you need to know with this course.

edeyCommented:
You can check TForm.vScrollBar.position, this will tell you how far the form has scrolled.

GL
Mike
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
cscurlockAuthor Commented:
Thanks for the info.  I made the calculation using the scrollbar position.
0
edeyCommented:
Excellent, Glad to be of service :)

GL
Mike
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.