Developers,
I could need a bit of educated assistance, please.
I have an app, that was started out by using the WEScript Framework app.
I wanted to add a choice to the app menu of my app, and for the ease we will
call it
MyMenuItem.
I entered the necessary information in the XML file, and modified the MenuProc
function in the app code - so it knows how to handle things, once my new entry
is selected. Everything works just like expected, this far.
Where my knowledge stops, is here. I want to make the new menu entry available,
only under certain conditions. Say for instance, I have a Boolean variable,
named
ConditionMet
and only want to display the entry on the app menu, when this variable is true.
Cook it all down to something like this:
If ConditionMet Then
' Need the code to make the menu entry visible.
Else
' need the code to make the menu entry disappear.
End If 'ConditionMet.
Allright, I know, it may not be all that simple. A couple of years of app
development, has taught me there likely will need to be a few lines extra of
codeing. Smile. Yet, I hope the above explains where my trouble has its nest.
More exactly, which variables (properties and methods), should I make use of -
so as to have the menu entry show up, and disappear. And, in the code, where
would I put the extra lines. As stated, the naked frame of the app, was
designed by WEScript Framework. So, if you happen to know exactly in which Sub
or Function the modification will be needed, I would be saved an hour of
searching through the lines of code. Smile.
Thanks for any ideas and input.