Enabling a feature in runtime

R

Raj

Dear all,

I would like to enable a control in run time. Under Tools -> Startup-> Allow
Default Shortcut Menus. I would like to enaable this feature only in some
particular event. For example, i dont want this menu to be enabled in the
form view, but to be enabled in the print preview while viewing reports. Can
i do this? ANy help highly appreciated.

Thanks.
Raj.
 
R

Rick Brandt

Raj said:
Dear all,

I would like to enable a control in run time. Under Tools ->
Startup-> Allow Default Shortcut Menus. I would like to enaable this
feature only in some particular event. For example, i dont want this
menu to be enabled in the form view, but to be enabled in the print
preview while viewing reports. Can i do this? ANy help highly
appreciated.

Thanks.
Raj.

I'm not positive, but I think that setting is only evaluated when the app is
first loaded so changing the property won't have any effect until the *next*
time you open the file.

You can certainly create you own shortcut menu replacements and have all the
control over them that you want.
 
G

George Nicholson

One approach: Create your own "Custom Print Preview" shortcut menu (simply
copy the built-in one), then add that menu to the "Shortcut menu bar"
property of each report.

If you are using Runtime, changing Tools>Startup>AllowDefaultShortcutMenus
won't do you any good anyhow. Runtime won't display built-in menus/toolbars
(including shortcut menus). The developer has to supply whatever menus they
want users to have.

AFAIK, setting the AllowDefaultShortcutMenus startup option to true only
applies to apps run with Access Retail. It is always off for Access
Runtime.

HTH,
 
Top