F
Felicity
Hello,
I have a dilema relating to Menu Items. On a Main Form I
have a single Main Menu object that has many MenuItems
associated with it. In some cases extra menu items are
added and some removed if the Main Form is opened from a
particular area of the sytem. When this occurs the Index
property of the Menu Items changes. I also set the text
of the Menu Items depending on some custom settings chosen
by the user. This means that for some Menu Items, the
text can be anything.
My problem is that at some point during the load of the
form, I need to set some of the menu items as enabled or
disabled depending on the security settings of the user,
which are held in a table in my database. However, I
cannot reference the Menu Item in code as it does not
appear to have a "name" property and the only other two
properties that I could use, "index" and "text", are
continually changing. Does anyone know a way that I can
reference the Menu Items in code?
Please help me !!!
Thanks in advance,
Felicity
I have a dilema relating to Menu Items. On a Main Form I
have a single Main Menu object that has many MenuItems
associated with it. In some cases extra menu items are
added and some removed if the Main Form is opened from a
particular area of the sytem. When this occurs the Index
property of the Menu Items changes. I also set the text
of the Menu Items depending on some custom settings chosen
by the user. This means that for some Menu Items, the
text can be anything.
My problem is that at some point during the load of the
form, I need to set some of the menu items as enabled or
disabled depending on the security settings of the user,
which are held in a table in my database. However, I
cannot reference the Menu Item in code as it does not
appear to have a "name" property and the only other two
properties that I could use, "index" and "text", are
continually changing. Does anyone know a way that I can
reference the Menu Items in code?
Please help me !!!
Thanks in advance,
Felicity