Application menu and Form menu

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • abouddan
    New Member
    • Feb 2007
    • 42

    Application menu and Form menu

    Hi all

    My request has two faces:

    1- I need to create my own menu in my project that runs when the application is start. But I want that menu to starts manuly, I mean by runnig codes so I can manage that menu. The reason of that is to prevent or to allow specific users to use one or more menu options.
    ex: User1 can see : File, Edit and Help
    User2 can see: File, Edit, view, tools and Help

    2- How can I create my own Menu In the main Form. So not an application menu it's a form menu.

    if there is anything not clear please ask.
    thanks
  • ADezii
    Recognized Expert Expert
    • Apr 2006
    • 8834

    #2
    Originally posted by abouddan
    Hi all

    My request has two faces:

    1- I need to create my own menu in my project that runs when the application is start. But I want that menu to starts manuly, I mean by runnig codes so I can manage that menu. The reason of that is to prevent or to allow specific users to use one or more menu options.
    ex: User1 can see : File, Edit and Help
    User2 can see: File, Edit, view, tools and Help

    2- How can I create my own Menu In the main Form. So not an application menu it's a form menu.

    if there is anything not clear please ask.
    thanks
    1. View ==> Toolbars ==> Customize ==> Toolbar Name ==> Properties ==> Menu Bar
    2. Add items as so desired
    3. Form ==> Properties ==> Menu Bar = New Menu Bar Name

    Comment

    • Denburt
      Recognized Expert Top Contributor
      • Mar 2007
      • 1356

      #3
      Once you have your menu's created you can view this thread and it should help with the rest of your coding. If you have any questions let us know.

      Enable and Disable option in Toolbar or Menu to certain user.

      Comment

      • abouddan
        New Member
        • Feb 2007
        • 42

        #4
        Thanks For the support

        I did What ADezzi said, I maid the menu and I added the items needed and from the form properties/others/menu I added the new menu. But I think there something more, when runnig the form the menu appears all alone not as a part of the form. I want that menu to be attached to this form and nothing else.

        Comment

        • ADezii
          Recognized Expert Expert
          • Apr 2006
          • 8834

          #5
          Originally posted by abouddan
          Thanks For the support

          I did What ADezzi said, I maid the menu and I added the items needed and from the form properties/others/menu I added the new menu. But I think there something more, when runnig the form the menu appears all alone not as a part of the form. I want that menu to be attached to this form and nothing else.
          Position the Toolbar where you want it, then:
          View ==> Toolbars ==> Customize ==> Select Toolbar ==> Properties ==> Set Docking Options to Can't Change

          Comment

          • abouddan
            New Member
            • Feb 2007
            • 42

            #6
            Originally posted by ADezii
            Position the Toolbar where you want it, then:
            View ==> Toolbars ==> Customize ==> Select Toolbar ==> Properties ==> Set Docking Options to Can't Change


            Didn't work. Same result

            Comment

            • abouddan
              New Member
              • Feb 2007
              • 42

              #7
              Any Help?

              I tried those solutions to create a menu in the form, nothing worked.

              Comment

              • ADezii
                Recognized Expert Expert
                • Apr 2006
                • 8834

                #8
                Originally posted by abouddan
                Any Help?

                I tried those solutions to create a menu in the form, nothing worked.
                To attach a Menu Bar to a specific Form:
                1. Forms
                2. Your Form
                3. Design
                4. Properties
                5. Other
                6. Menu Bar = <your menu bar name>

                Comment

                Working...