Re: toolbars

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Eric wrote:
> 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.


--
I don't check the Email account attached
to this message. Send instead to...
RBrandt at Hunter dot com


.



Relevant Pages

  • Re: Customizing the toolbar Icon
    ... Beware of the CopyPicture method if you are using it to build a toolbar on ... I want to create a custom icon by right-clicking on ... '' Delete any pre-existing CommandBar that uses our name ... Dim AFE_button As CommandBarButton ...
    (microsoft.public.excel.programming)
  • Re: creating custom tool bar for office application
    ... We are creating a custom commandbar for office 2003 -word, outlook, excel ... This commandbar will have 3 buttons and 3 dropdown. ... we have to create a new instance of toolbar when a document is opened. ... MsoBarPosition.msoBarTop, oMissing, true); ...
    (microsoft.public.office.developer.com.add_ins)
  • How to install macros and menus in 2007
    ... Let's say I've created macros in 2007. ... I've created "Custom menu" in the QAT, ... Customizations of older Word version built in Word menus and toolbars ... a slightly modified menu or toolbar name, for example File, as File97) ...
    (microsoft.public.word.newusers)
  • RE: Add-ins tab not displayed when "Show all windows in taskbar" i
    ... documents, only the first one displays a toolbar (in 2007, no Add-Ins tab ... Dim myToolbar As CommandBar ... Dim myButton As CommandBarButton ...
    (microsoft.public.office.developer.vba)
  • Re: Disappearing Commandbar buttons
    ... commandbars behave very oddly at times (there's a dynamic toolbar created at startup and sometimes (95%) I can copy & paste the button faces from the template toolbar and sometimes I can't for no obvious reason at all... ... bar) were created by Customizing the toolbar in Word itself and so should have been in the Normal template context, and I've just inspected the commandbar controls and they all seem to belong to Normal... ... Worth pointing out that when they both disappear from the commandbar controls collection, at least one is still visible on the command bar itself ...
    (microsoft.public.word.vba.general)