ordering pages on tab control

R

rocco

Hello,
despite I have carefully indexed all the pages in one tabcontrol, the third
row shows up in the middle of the pages rows instead of being the last row
(the one on the top of all other rows).
Any hhint?

Thanks,
Rocco
 
M

missinglinq via AccessMonster.com

Rocco, I think what Damon is trying to say is that your explanation of your
problem is not very clear! If you're trying to say that the order of your
tabbed pages is not what you want it to be, remmember that the index starts
with 0 (zero) not 1. Hence the first page on the left has an index of 0, the
second page an index of 1 and so forth. The easiest way to set the page order,
however, is to right click to select any one of the tabbed pages, then click
on Page Order. Now you can easily select one of the pages, then use the "Move
Up" or "Move Down" tabs to change position of the pages.
 
R

rocco

not really. The tab control has 15 pages, indexed from 0 to 14; the thing is
that if I look at the tab order of the pages by right-cliking one page and
choosing "page order" I see they are arranged in the right flow
0..1..2..3..4..5..6..7..8..9..10..11..12..13..14.
But if I look at the control has it shows up in the form, I will assume the
order should be
0..1..2..3..4..10..11..12..13..14..5..6..7..8..9
which is *quite* strange. Doesn't it?

Rocco
 
R

rocco

Damon,
thanks for your reply but...
if you really want to help, try saying something useful.
And if you have nothing to say, please just don't say.

Maybe I haven't well explained what's my problem is (maybe beacause english
is not my language) but I really don't think it is so hard to understand what
it is. I'm preatty sure is something stupid for you. But it is not for me.
And I'm not saying I will fall in desperate depression if I don't solve it;
I will live a wonderful life anyway. I'm just trying to learn something.
And - have to say - I'm not totally new in programming, so I can assure you
that my question is real.
I totally understand it may sound a stupid question to you, and in this case
I truly apologize for the time you have wasted.

Thanks.
Rocco
 
D

Damon Heron

I AM trying to understand what you mean. You said that you assumed the
order to be 1,2,3,4,10,11,12,13, etc.
In English when "you assume" that means that is what you expected to happen.
In fact, if that is what really happened, then check the properties for the
tabctrl, it should start with 0 for page index and then set the page index
for each page to 0 thru 14. If that does not correct the problem, I would
re-design the form again, adding the pages sequentially.

Damon
 
R

rocco

Good point man.
Really good.
So I'll try to tell it better:

The control has 15 pages.
5 pages on each rows.
Indexes start at 0 and end at 14.

think at the 15th page. It should show up as the last page on the right on
the top row.
Is this right?
Look..
If I open the form, I assume (see? I learned something new) the tab control
should show something like:

11TH_PAGE | 12TH_PAGE | 13TH_PAGE | 14TH_PAGE | 15TH_PAGE |
6TH_PAGE | 7TH_PAGE | 8TH_PAGE | 9TH_PAGE | 10TH_PAGE |
1ST_ PAGE | 2ND_PAGE | 3RD_PAGE | 4TH_PAGE | 5TH_PAGE |

what I get instead is:

6TH_PAGE | 7TH_PAGE | 8TH_PAGE | 9TH_PAGE | 10TH_PAGE |
11TH_PAGE | 12TH_PAGE | 13TH_PAGE | 14TH_PAGE | 15TH_PAGE |
1ST_ PAGE | 2ND_PAGE | 3RD_PAGE | 4TH_PAGE | 5TH_PAGE |

And please, please trust me: indexes are fine.

Thanks & sorry

Rocco
 
D

Damon Heron

Now I understand. You have the tabctl set to multiple rows. Sorry, I
missed that.

In the forms' Load event, enter:
me.6th_page.setfocus
me.1st_page.setfocus

That will put them in the right order. When you click on any particular
page, that row will come to the front and the previous row will go back one
row, so the order will get scrambled again....

Damon
 
Top