Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP Team - a little, little, little favor! ;-)
Message
From
26/06/2004 19:42:10
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
General information
Forum:
Visual FoxPro
Category:
Visual FoxPro Beta
Miscellaneous
Thread ID:
00917380
Message ID:
00917639
Views:
10
>Hi Guys,
>
>Thanks for the great work that you have been done in the next VFP version...
>
>Please, add a little enhancement... Add a VISIBLE property to Page object, like columns in VFP8.
>
>Maybe I want to hide some objects to some users, and If I had this option, my life became easier... Today, I have to change Page.Enabled to False, but the page is still there, visible to user. Or REMOVE it... but then I have to ADD again and then I have a "lot" of work to do...
>
>I just want to hide it... It is simple, ins't?

Having .page.visible would be really nice.

As things are now (even in earlier versions of Fox), there are two ways to not show a page: one is to have the page.init return .f., so the page never instantiates. This is maybe too late, because all the objects on it have instantiated already, but if you're using blank pages with code in .activate which will add a container with all the controls to the page, that code will never have executed if the page didn't instantiate.

The other way is doing it even later: pageframe.removeobject("page3"). Not sure it will work if Page3 is defined at the class level; I've tried it with a pageframe I added dynamically (after the form was instantiated) and it worked.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Reply
Map
View

Click here to load this message in the networking platform