Menu bar help

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • Miles360x
    Forum Member
    • Jul 2008
    • 2

    Menu bar help

    ok...
    i made a menu bar on a program and i was wondering how do you make it so its active so when you click it, it runs a program!

    Here is a image:


    so how do you make it so when i click thta it runs a program

    HELP FAST!!!!!!!!
  • mwreyf1
    Indigo Rose Customer
    • Aug 2004
    • 417

    #2
    Post your code and I'm sure someone will take a look at it.

    It may not be "FAST" but who knows...

    Comment

    • Imagine Programming
      Indigo Rose Customer
      • Apr 2007
      • 4252

      #3
      Hahaha, fast... every menu item as an ID, wich is specified in the Menu-settings dialog where you have set all the names... then go to the On Menu event of the app... so not the page's On Menu...

      there you type (for example when Exit's ID is 6)
      Code:
      if(e_ID==6)then
          Application.Exit(0);
      end
      There you go...
      Bas Groothedde
      Imagine Programming :: Blog

      AMS8 Plugins
      IMXLH Compiler

      Comment

      • Miles360x
        Forum Member
        • Jul 2008
        • 2

        #4
        Originally posted by C B programming and webdesign View Post
        Hahaha, fast... every menu item as an ID, wich is specified in the Menu-settings dialog where you have set all the names... then go to the On Menu event of the app... so not the page's On Menu...

        there you type (for example when Exit's ID is 6)
        Code:
        if(e_ID==6)then
            Application.Exit(0);
        end
        There you go...
        Sorry but i neeed something for detailed

        Comment

        • Imagine Programming
          Indigo Rose Customer
          • Apr 2007
          • 4252

          #5
          That's not detailed enough? mkay instead of Application.Exit, use File.Run?:P
          Bas Groothedde
          Imagine Programming :: Blog

          AMS8 Plugins
          IMXLH Compiler

          Comment

          • ShadowUK
            No longer a forum member
            • Oct 2007
            • 1322

            #6
            Post your project, Then we can help.

            Comment

            • Imagine Programming
              Indigo Rose Customer
              • Apr 2007
              • 4252

              #7
              Originally posted by ShadowUK View Post
              Post your project, Then we can help.
              You understand it:P :yes
              Bas Groothedde
              Imagine Programming :: Blog

              AMS8 Plugins
              IMXLH Compiler

              Comment

              • DavidVR
                Forum Member
                • Jan 2008
                • 35

                #8
                Man the menu you want to make is too easy the only thing you have to do is:

                First: Make the menu context, you will have someting like this
                >Menu ID 01
                >Minimize ID 0101
                >Close ID 0102
                >Options ID 02
                >Open ID 0201
                >Run File ID 0203
                each word has a menu ID but all have to have a different ID
                You can put an ID choosing one of the words and click on properties then you put (if you want) a different ID after that you have to go to "project action" then you have 4 options

                On startup/On Shutdown/On Size/"On Menu" <-- Choose this

                And Write this script

                if (e_ID == 0102) then
                Application.Exit(0);
                elseif (e_ID == 0101) then
                Application.Minimize();
                end
                and thats all

                also you can find it in ams guide only write "Menu Bar" and you will have an example (step by step)

                Comment

                Working...
                X