Eric said:
Where can I go to learn more about toolbars on my applications? I
distribute Access2K mde's with a custom toolbar for my users to run
with A2K Runtime. Some users have the toolbar showing and some don't.
I'm thinking there must be a dll or similar file missing on the
culprit PC's. Reinstalling the runtime doesn't seem to fix the
problem.
Here's one thing that can happen. If you don't have the properties of the
CommandBar really locked down a user might manage to get it undocked and
then close it. The runtime environment then provides no mechanism to
re-display it so they are stuck.
Customizations for CommandBars (hide/show, position, where-docked, etc.),
are stored in the Windows registry so even if you send them a new file after
this happens the bar still won't appear. You can clear these entries from
the registry and *then* give them a replacement file to restore them. You
can add code that runs at startup to display the bar and also to dock it
where you want it. That should also clear it up. The registry entries to
delete would be...
HKEY_CURRENT_USER
Software
Microsoft
Office
(Office version number)
Access
Settings
CommandBars
ACBNameOfCommandBar
Note that deleting the registry entry does not delete the CommandBar. Only
any changes that the user has made to it.
A further complicaton if you have a custom CommandBar that you are defining
as the application's main menu. Access requires that the application's main
menu be docked otherwise it doesn't display. So if the user manages to
undock the menu it will not appear the next time they open the app even if
they didn't actually close/hide it.