Discussion:
Make menus invisible instead of disabling them
(too old to reply)
damezumari
2010-06-01 06:55:48 UTC
Permalink
I use vfp sp2 and winxp.

How do I make a menu option invisible for some users and not for
others? I don't want to disable the menu option (using skip for). I
want to make it invisible.

A work-around could be to give different user different menus.
However, that does not work if a user assumes two roles for which
there are different menus. Instead of creating a menu for each
possible role combination I would prefer to test which menu options
should be made invisible in each case.

Regards,

Jan
damezumari
2010-06-01 06:56:49 UTC
Permalink
Post by damezumari
I use vfp sp2 and winxp.
How do I make a menu option invisible for some users and not for
others? I don't want to disable the menu option (using skip for). I
want to make it invisible.
A work-around could be to give different user different menus.
However, that does not work if a user assumes two roles for which
there are different menus. Instead of creating a menu for each
possible role combination I would prefer to test which menu options
should be made invisible in each case.
Regards,
Jan
I use vfp 9 sp2.
ED
2010-06-01 07:07:31 UTC
Permalink
Generate your own programmatically or create separate menus and append (not
replace) them to the existing menus.

Probably the last answer before final shutdown...

ED.
Post by damezumari
I use vfp sp2 and winxp.
How do I make a menu option invisible for some users and not for
others? I don't want to disable the menu option (using skip for). I
want to make it invisible.
A work-around could be to give different user different menus.
However, that does not work if a user assumes two roles for which
there are different menus. Instead of creating a menu for each
possible role combination I would prefer to test which menu options
should be made invisible in each case.
Regards,
Jan
I use vfp 9 sp2.
Bernhard Sander
2010-06-01 10:03:35 UTC
Permalink
Hi Jan,
Post by damezumari
How do I make a menu option invisible for some users and not for
others? I don't want to disable the menu option (using skip for). I
want to make it invisible.
There is nothing to make a menu entry invisible while keeping it in menu.
You only could use the appropriate RELEASE [BAR|PAD|POPUP|MENU] command.

Regards
Bernhard Sander
Jürgen Wondzinski
2010-06-01 12:53:31 UTC
Permalink
Hi damezumari

Take a look at GenMenuX and the provided conditional code-injection driver.
--
wOOdy
Visual FoxPro Evangelist
Microsoft "Most Valuable Professional" 1996 to 2009



"*´¨)
¸.·´¸.·*´¨) ¸.·*¨)
(¸.·´. (¸.·` *
..·`.Visual FoxPro: It's magic !
(¸.·``··*
Dan Freeman
2010-06-01 15:16:19 UTC
Permalink
Post by Jürgen Wondzinski
Hi damezumari
Take a look at GenMenuX and the provided conditional code-injection driver.
I'd look at genmenux as well, but use the *:IF <expr> directive
instead. It will insert code to conditionally release menus that meet
<expr>.

Dan
Jürgen Wondzinski
2010-06-01 19:19:17 UTC
Permalink
Hi Dan,
Post by Dan Freeman
use the *:IF <expr> directive
That's what I meant. Didn't found the correct word though...
--
wOOdy
Visual FoxPro Evangelist
Microsoft "Most Valuable Professional" 1996 to 2009



"*??)
?.·??.·*??) ?.·*?)
(?.·?. (?.·` *
..·`.Visual FoxPro: It's magic !
(?.·``··*
Dan Freeman
2010-06-02 01:18:21 UTC
Permalink
Post by Jürgen Wondzinski
Hi Dan,
Post by Dan Freeman
use the *:IF <expr> directive
That's what I meant. Didn't found the correct word though...
Thanks for this! I was wondering what you knew about that I hadn't
heard about. ;-)

Dan

Continue reading on narkive:
Loading...