Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 9 of 9
  1. #1
    Join Date
    Jul 2004
    Location
    Denmark
    Posts
    336

    Huh? The new Menu functions?

    I think it cool that you can now very easily add menus to your project...

    but in the help section under the "How do I..."

    I really miss a bit on these menues.

    I can create the menu
    I (if I got it right) figured out that you have to call til application.getmenu()
    to have the menu indexed into a table.

    But I cant find any actions that will let me assign a value to thise indexed numbers

    for eksample if I have en menu item called "Files" and under that a submenu item called "exit"

    When I create the menu i give the "files" menu the ID 1 and the "exit" ID 2
    When indexed into the table the "files" menu get index -1 (to indicate no funktionallety) and the exit then gets indexed as 2

    but what then? I can call the index number from the table but how do i asign a "when clicked" action to it?

    Or have I completely missed the point and are at this time way off course????


    help....

    Jonas DK
    . o O (I love the new and improved AMS60)

  2. #2
    Join Date
    Jul 2003
    Posts
    712
    Hello,

    You have to use the On Menu event in your application to catch the menu id's:
    Code:
    if e_ID == 1 then
    	-- Menu ID was 1
    elseif e_ID == 200 then
    	-- Menu ID was 200
    end

  3. #3
    Join Date
    Jul 2004
    Location
    Denmark
    Posts
    336
    Quote Originally Posted by Desmond
    Hello,

    You have to use the On Menu event in your application to catch the menu id's:
    Code:
    if e_ID == 1 then
    	-- Menu ID was 1
    elseif e_ID == 200 then
    	-- Menu ID was 200
    end

    And I have to set this on every page??

    But then what is the application "on Menu" tab in the project menu then?
    Last edited by Jonas DK; 09-19-2005 at 11:44 AM.

  4. #4
    Join Date
    Jul 2003
    Posts
    712
    No, there's a project-wide On Menu event (Project > Actions > On Menu).

  5. #5
    Join Date
    Jul 2004
    Location
    Denmark
    Posts
    336
    Quote Originally Posted by Desmond
    No, there's a project-wide On Menu event (Project > Actions > On Menu).
    But then what is the Page On Menu tab for??

    Jonas DK

  6. #6
    Join Date
    Jun 2002
    Location
    Southeast USA
    Posts
    1,804
    But then what is the Page On Menu tab for??
    For doing something specific on a menu event for just that page.
    Eric Darling
    eThree Media
    http://www.ethreemedia.com

  7. #7
    Join Date
    Jul 2004
    Location
    Denmark
    Posts
    336
    Quote Originally Posted by eric_darling
    For doing something specific on a menu event for just that page.

    So does this mean that the Page On.menu events overrule the global on.menu events?

  8. #8
    Join Date
    Jun 2002
    Location
    Israel
    Posts
    1,843
    Like any other action which cancels a previous one.

    Example:
    a=1;
    a=2;

    Yossi

  9. #9
    Join Date
    Jan 2000
    Posts
    2,002
    Quote Originally Posted by Jonas DK
    So does this mean that the Page On.menu events overrule the global on.menu events?
    Actually the Project's "On Menu" gets called first and then the page's "On Menu" gets called. They both get called with the exact same parameters. As mentioned, it is done this way so that you can catch "global" menu commands on the project's "On Menu" event (i.e. "Exit", "Help", or whatever) and catch page-specific ones on each page.

Similar Threads

  1. TUTORIAL: Showing and Hiding Objects in AutoPlay Menu Studio 3.0
    By Support in forum AutoPlay Menu Studio 3.0
    Replies: 0
    Last Post: 10-10-2002, 02:39 PM
  2. FAQ: AutoPlay Menu Studio 3.0 Frequently Asked Questions
    By Support in forum AutoPlay Menu Studio 3.0
    Replies: 0
    Last Post: 10-10-2002, 01:15 PM
  3. Have a file execute then go to the menu upon startup...?
    By Dog in forum AutoPlay Menu Studio 3.0
    Replies: 2
    Last Post: 05-10-2000, 02:56 PM
  4. Press Release: AutoPlay Menu Studio 2.0
    By Ted in forum Announcements & News
    Replies: 0
    Last Post: 01-31-2000, 10:10 AM

Posting Permissions

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