>Hi Cetin
>
>>No wonder, if I were you, I'd hack the vcx:)
>
>Yes, yes I know I am lazy *g*, knowing all the flexibility that VFP allows so I am always tempted to get such stuff done as fast as I can with the least effort. Fox Rocks!
>
>>Actually I kept it short for it was simply a matter of 9 cut&pastes. Normally for a pageframe I'd create 'class' per contained controls and instantiate them on demand. If you had done that way, you wouldn't have a problem with the orders. All you'd do would be to change the instantiated classnames per page (and possibly tab captions). Think of it when you have time.
>
>I am not sure if I can design my form using the designer on a page by page in VFP6. I just checked it out only PageFrame is allowed in the designer.
I didn't mean subclass the page itself but controls in them. ie:
select all controls on page1 and saveasclass page1controls (if you cannot find an uglier name:). Do the same for all pages. Then a page.UIENable code looks like (Tag is set to classname in designtime):
if m.lEnable and type('this.'+this.Tag) = 'U'
this.newobject('pagecontrols',this.Tag,'pageclasslib.vcx')
this.pagecontrols.visible = .t.
endif
Cetin