Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Koen Piller
  Where is Koen Piller?
 Santpoort-Zuid
 Netherlands
 Koen Piller
 To: Dan Baker
  Where is Dan Baker?
 Effort of the Poconos
 Pennsylvania - United States
 Dan Baker
 Tags
Subject: RE: EXMPL: Remove all Objects from PageFrame
Thread ID: 347216 Message ID: 365261 # Views: 40 # Ratings: 1
Version: Visual FoxPro 9 Category: Classes and Objects
Date: Sunday, December 23, 2012 11:58:42 AM         
   


> >
> >Say, Dan, I can't think of an application in which I would want to do this.
> >Why are you doing it?
> >
> >Tony
>
> Hi Tony,
>
> It's any place where you want to totally refresh the page with new controls.
>
> So I had one application where I was moving objects around using drag and drop here and it was expedient to erase everything before writing everything fresh, especially since you are moving the positions of controls around depending on the new order of display.
>
> A new application involves creating data entry containers where the controls change. I guess Anders came up with the simplest approach which is put everything in a container, remove that and rebuild the container.
>
> Dan B.

Dan,

If you select/activate the page in the propertysheet and press Ctrl+A all items on that page are selected and can be remopved by pressing Del Key.
Better yet to base your page on your own class myPage without any objects. Create a subclass of this page on which you instantiate all kind of objects. Now if you want to 'start all over' just create a new subclass based on your own myPage.

Regards,

Koen

ENTIRE THREAD

EXMPL: Remove all Objects from PageFrame Posted by Dan Baker @ 6/16/2012 4:09:53 AM
RE: EXMPL: Remove all Objects from PageFrame Posted by Samir H. @ 6/16/2012 5:06:08 AM
RE: EXMPL: Remove all Objects from PageFrame Posted by Dan Baker @ 6/16/2012 8:36:34 AM
RE: EXMPL: Remove all Objects from PageFrame Posted by Anders Altberg @ 6/16/2012 3:51:39 PM
RE: EXMPL: Remove all Objects from PageFrame Posted by Dan Baker @ 6/16/2012 10:47:07 PM
RE: EXMPL: Remove all Objects from PageFrame Posted by David Mustakim @ 6/17/2012 12:14:01 AM
RE: EXMPL: Remove all Objects from PageFrame Posted by Dan Baker @ 6/18/2012 2:39:42 PM
RE: EXMPL: Remove all Objects from PageFrame Posted by Anders Altberg @ 6/20/2012 8:40:33 PM
RE: EXMPL: Remove all Objects from PageFrame Posted by Dan Baker @ 12/21/2012 11:30:23 PM
RE: EXMPL: Remove all Objects from PageFrame Posted by David Mustakim @ 12/22/2012 5:04:31 AM
RE: EXMPL: Remove all Objects from PageFrame Posted by Anders Altberg @ 12/22/2012 1:18:08 PM
RE: EXMPL: Remove all Objects from PageFrame Posted by Tore Bleken @ 12/22/2012 9:44:44 AM
RE: EXMPL: Remove all Objects from PageFrame Posted by Dan Baker @ 12/22/2012 2:13:25 PM
RE: EXMPL: Remove all Objects from PageFrame Posted by Tore Bleken @ 12/22/2012 6:00:10 PM
RE: EXMPL: Remove all Objects from PageFrame Posted by Tony Vignone @ 12/22/2012 6:22:18 PM
RE: EXMPL: Remove all Objects from PageFrame Posted by Dan Baker @ 12/22/2012 6:37:31 PM
RE: EXMPL: Remove all Objects from PageFrame Posted by Koen Piller @ 12/23/2012 11:58:42 AM
RE: EXMPL: Remove all Objects from PageFrame Posted by Dan Baker @ 12/23/2012 7:55:40 PM
RE: EXMPL: Remove all Objects from PageFrame Posted by James Frye @ 12/23/2012 2:35:43 AM
RE: EXMPL: Remove all Objects from PageFrame Posted by Dan Baker @ 12/23/2012 3:38:54 AM
RE: EXMPL: Remove all Objects from PageFrame Posted by Rahul Moudgill @ 12/23/2012 6:47:03 AM
RE: EXMPL: Remove all Objects from PageFrame Posted by Dan Baker @ 1/12/2013 2:56:38 AM
RE: EXMPL: Remove all Objects from PageFrame Posted by David Mustakim @ 1/12/2013 3:40:31 AM
RE: EXMPL: Remove all Objects from PageFrame Posted by Dan Baker @ 1/12/2013 8:24:01 AM
RE: EXMPL: Remove all Objects from PageFrame Posted by David Mustakim @ 1/12/2013 5:48:43 PM
RE: EXMPL: Remove all Objects from PageFrame Posted by tushar @ 1/12/2013 9:08:15 AM