How to add vertical scroll bar to Tabs on a PageControl?

IT79637
IT79637 used Ask the Experts™
on
Hi,
I'm using D7 Ent. on a WinXP Pro SP3 box.

I'm adding TImage contros at run time to Tabs on PageControl1. I can add 1, 10, 50, ??? TIimage on a single Tab.   I need to add a vertical scroll bar to each tab, when the rows of Image1 fall below the bottom of the form.

My form layout is simple:
Form1
  Panel1
     Buttons...
     Labels...
     Edit...
  Panel2
     ScrollBox1
        PageControl1
            Tab1 - create dynamically.
               Image1, Image1,...Image80 - create dynamically.
            Tab2- create dynamically.
                  Image81, Image81,...Image190  - create dynamically.
            etc...

I do the following in the program:
1.  Create the tabs and add a caption.
2.  Add Image1 control multiple times on each of the tabs.

I tried adding ScrollBox1 as shown above, but that did not work?

How do I add a Scroll Bar to Tabs on PageControl1?

Thanks.

Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Freelancer
Top Expert 2010
Commented:
I think you have to add scroll box to each tab:

Form1
  Panel1
     Buttons...
     Labels...
     Edit...
  Panel2
      PageControl1
          Tab1 - create dynamically.
              ScrollBox1 Created dinamically
                 Image1, Image1,...Image80 - create dynamically.
           Tab2- create dynamically.
               ScrollBox2 Created dinamically
                  Image81, Image81,...Image190  - create dynamically.
            etc...

So you have to

1.  Create the tabs and add a caption.
2. Create a ScrollBox for eac tab
3.  Add Image1 control multiple times on each of the tabs.

Cheers
Commented:
Look this example

TTabSheet-scrollbar.zip

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial