Results 1 to 6 of 6
  1. #1
    sgerber
    Guest

    Building menus programmatically

    In a word: "How?"

    Or, if the scope of that question is a little too wide -- does anyone know of a good reference on the subject?

    And what the heck, as long as I'm asking the big ones -- anybody happen to know the True Meaning of Existence?

  2. #2
    Gold Lounger
    Join Date
    Dec 2000
    Location
    Hollywood (sorta), California, USA
    Posts
    2,759
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Building menus programmaticall

    I can answer the second one, but then I'll have to give back the Humility Medal I won. Are you looking for some deep material for your next comic?

    I've done some work with programmatically (at design time) creating toolbars, and will need the menu work too later. If you think you might benefit from some code that creates "custom" Standard, Formatting and Custom toolbars, then ask and I'll post what I have.

    I will say this, I don't like modifying the user's toolbars, menus etc directly (those stored in Normal.dot with corresponding entries in the registry). I will do so with a template app -- the global template toobars will "supercede" or take precidence over whatever Normal displays. So when the global template is removed, the user's normal toolbars are intact just the way they left them.
    Kevin <IMG SRC=http://www.wopr.com/w3tuserpics/Kevin_sig.gif alt="Keep the change, ya filthy animal...">
    <img src=/w3timages/blackline.gif width=33% height=2><img src=/w3timages/redline.gif width=33% height=2><img src=/w3timages/blackline.gif width=33% height=2>

  3. #3
    Plutonium Lounger
    Join Date
    Dec 2000
    Location
    Sacramento, California, USA
    Posts
    16,775
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: Building menus programmaticall

    That's assuming we're talking about Word, Kevin. If the question is about Excel, Power Point, Access, VB, etc., we need more specifics.
    Charlotte

  4. #4
    sgerber
    Guest

    Re: Building menus programmaticall

    >> I will say this, I don't like modifying the user's toolbars, menus etc directly (those stored in Normal.dot with corresponding entries in the registry). I will do so with a template app -- the global template toobars will "supercede" or take precidence over whatever Normal displays. So when the global template is removed, the user's normal toolbars are intact just the way they left them. <<

    That's similar to what I want to do. I want to add an additional menu to the main menu bar, but only when my template is loaded.

    The thing is, I need to disable (or not display) some of the menu options until the user has performed a certain action on the file. Up to now, I've been using an App event for that purpose, but I've found that that approach has some shortcomings. Specifically, it doesn't always "fire" correctly if a macro is interrupted (or cancelled) by the user.

  5. #5
    Gold Lounger
    Join Date
    Dec 2000
    Location
    Hollywood (sorta), California, USA
    Posts
    2,759
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Building menus programmaticall

    Well, we're in this together because that's the next move for me too. I'm going to take the functionality of 1 toolbar button that launches an app UI (main page previously posted) and "confine" it all to a menu of sub menus.

    I wasn't going to start that effort for a while, so hopefully others will chime in.
    Kevin <IMG SRC=http://www.wopr.com/w3tuserpics/Kevin_sig.gif alt="Keep the change, ya filthy animal...">
    <img src=/w3timages/blackline.gif width=33% height=2><img src=/w3timages/redline.gif width=33% height=2><img src=/w3timages/blackline.gif width=33% height=2>

  6. #6
    Lounger
    Join Date
    May 2001
    Location
    the Netherlands
    Posts
    30
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Building menus programmaticall

    See Gary Frieder's recommendation <A target="_blank" HREF=http://www.wopr.com/cgi-bin/w3t/showflat.pl?Cat=&Board=vb&Number=10819&page=8&view =expanded&sb=6#Post10819>here </A>.

    Ingrid

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •