Solved

how to get scrollbar  for Tpagecontrol?

Posted on 2008-10-06
5
1,755 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 37

Accepted Solution

by:
Geert Gruwez earned 500 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: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

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

In our object-oriented world the class is a minimal unit, a brick for constructing our applications. It is an abstraction and we know well how to use it. In well-designed software we are not usually interested in knowing how objects look in memory. …
Programmer's Notepad is, one of the best free text editing tools available, simply because the developers appear to have second-guessed every weird problem or issue a programmer is likely to run into. One of these problems is selecting and deleti…
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
THe viewer will learn how to use NetBeans IDE 8.0 for Windows to perform CRUD operations on a MySql database.

756 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