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 sizbut on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Deny access

Status
Not open for further replies.

jimstarr

Programmer
Feb 6, 2001
975
US
A certain group of users need to be denied access to Page 4 of a certain pageframe. Right now the app accomplishes this by having the page disabled for these users.

The new plan is to leave the page enabled, but (somehow) block access while displaying an explanatory message. Since a Page object doesn't have a When event, I don't see a straightforward way to do this. Any ideas?

Thanks!


Jim
 
Hi jim,

then go Imaginecorps route, put everything on page4 into a container, then you only need to disable and/or set visible=.F. this one thing. You could of course also loop over the objects collection of the page instead of stuffing it's content in a container, and then make everything invisble or readonly or disabled, whatever you need.

Bye, Olaf.
 
Hello Olaf;

Using SETALL() is definately the Best and the easiest way as now controls do not have to be refrenced with the container prefix, but I have found, sometimes, the controls leave "dirty" marks behind. A transparent container does not... I have never been able to figuire out why.
 
Here's one trick I used when using pages. On every page place a shape that covers the entire page with a label stating that the user does not have access to this page. If the user's access is not sufficient for the page bring the shape to front and make visible.


If you can't stand behind your troops, stand in front of them.
Semper Fidelis

Jim
 
Sorry, I must have missed that Stella.


If you can't stand behind your troops, stand in front of them.
Semper Fidelis

Jim
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top