Solved

how to get scrollbar  for Tpagecontrol?

Posted on 2008-10-06
5
1,761 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: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say 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

Suggested Solutions

Title # Comments Views Activity
eclipse error 7 112
HTML-Kit Question 5 103
The line on IDE 4 102
difference between sorce folder and folder in eclipise 3 64
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. …
Here is a helpful source code for C++ Builder programmers that allows you to manage and manipulate HTML content from C++ code, while also handling HTML events like onclick, onmouseover, ... Some objects defined and used in this source include: …
The viewer will learn how to use and create keystrokes in Netbeans IDE 8.0 for Windows.
The viewer will learn how to use and create new code templates in NetBeans IDE 8.0 for Windows.

734 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