?
Solved

how to get scrollbar  for Tpagecontrol?

Posted on 2008-10-06
5
Medium Priority
?
1,788 Views
Last Modified: 2013-11-23
Hi experts,

 I am coding with delphi 7(pascal), How can I get scrollbar for pagecontrol?. ie I need scroll bar for each Ttabsheet controls within  this pagecontrol?
0
Comment
Question by:inampudi1
[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
5 Comments
 
LVL 14

Expert Comment

by:SteveBay
ID: 22649045
Have you tried placing a TScrollBox on each TabSheet?
0
 
LVL 3

Expert Comment

by:big_one01
ID: 22650920
Hi.
First define a variable VertScrollbar in your code as:
   VerticalScrollBar: TScrollbar;

The put following code somewhere so that it runs before your pagecontrol appears:

VerticalScrollBar:=TScrollbar.Create( your tabsheet );
VerticalScrollBar.Kind:=sbVertical;
VerticalScrollBar.Align:=alLeft;
(your tabsheet).InsertControl(VerticalScrollBar);

Same for the Horizontal scroll bar, changing  the Kind property to sbHorizontal
You  should handle the movement of the bar using OnScroll and OnChange.
0
 

Author Comment

by:inampudi1
ID: 22658367
I have already place scrollbar, but thing is that on the tab sheet I am adding panels dynamically , after adding I should able to scroll the  TTabsheet . how can  I correlate ?
0
 
LVL 38

Accepted Solution

by:
Geert Gruwez earned 2000 total points
ID: 22958396
put a scrollbox on each tabsheet and place your panels in this scrollbox
you only need to set the range of the scrollbox scrollbars
0
 

Author Comment

by:inampudi1
ID: 23244677
Hi
I put the scrollbar now it is working.

0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

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

Update (December 2011): Since this article was published, the things have changed for good for Android native developers. The Sequoyah Project (http://www.eclipse.org/sequoyah/) automates most of the tasks discussed in this article. You can even fin…
How to install Selenium IDE and loops for quick automated testing. Get Selenium IDE from http://seleniumhq.org Go to that link and select download selenium in the right hand column That will then direct you to their download page. From that p…
The viewer will learn how to use and create keystrokes in Netbeans IDE 8.0 for Windows.
The viewer will learn how to synchronize PHP projects with a remote server in NetBeans IDE 8.0 for Windows.
Suggested Courses

770 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