Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Pageframe Question

Status
Not open for further replies.

fkwong

Programmer
Jul 5, 2002
65
US
I have a pageframe that has five pages. If I want to swap the order of Page5 to Page4 and vice versa. Is that a easy way to do it rather tthen move all the objects?

Thanks in advance.
 
Hi

Assuming you want to drop Page4 and make page5 to page4


1. Select Page4 in the property sheet and
click on the title bar of the forms designer
OR
Right Click over the Page frame..
and select Page4 under edit mode.
2. Press DELETE Key
You will be asked for confirmation.
Say Yes to DELETE that page4
3. Now, Change the name and Caption of Page5 to Page4.

:) ramani :)
(Subramanian.G),FoxAcc, ramani_g@yahoo.com
Merry Christmas & Happy New Year [bigears] [party] [2thumbsup]

 
fkwong

Although you could put in the init of the pageframe :
this.page5.PageOrder=4
this.page4.PageOrder=5

This will work at runtime, but you can also use it a design time. Change the page order to the way you want it.
Mike Gagnon

If you want to get the best response to a question, please check out FAQ184-2483 first.
 
No, actually, I need to swap both pages. Not dropping anything. I have a lot of event procedures under those two pages.

Thanks
 
HI

Moving all the objects is not a problem..
1. Keep the mouse pressed and make a selection of all the objects in a page (under edit mode).. Just one rectangular motion of the mouse keeping it pressed all the time..
All the items get selected..
Right click over one of the selected item.. SELECT CUT..
All the objects go to clip board..

Now create a new temp page.. reach that page under edit mode.. right clcik mouse over that and click on Paste..

Now transfer the same way by cutting and pasting to Page4 from Page5..

Now from the new page to page5..

The only things you have to take care is the events of the Page4 (not those of controls.. since they can be cut & paste.. but only the direct ones like the activate event etc., if any code is put there.)

So this is not a big work in this way. :)
ramani :)
(Subramanian.G),FoxAcc, ramani_g@yahoo.com
Merry Christmas & Happy New Year [bigears] [party] [2thumbsup]

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top