Indigo Rose Software
  #1  
Old 09-16-2005
Jonas DK's Avatar
Jonas DK Jonas DK is offline
Forum Member
 
Join Date: Jul 2004
Location: Denmark
Posts: 282
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)
Reply With Quote
  #2  
Old 09-19-2005
Desmond's Avatar
Desmond Desmond is offline
Indigo Rose Staff Member
 
Join Date: Jul 2003
Posts: 628
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
__________________
Setup Factory 8.0 comes with over 250 actions so you can create smaller, faster and more intelligent software installers than ever before.

WebHelp Guides: AMS | MSIFACT | SUF | TU | VP
Reply With Quote
  #3  
Old 09-19-2005
Jonas DK's Avatar
Jonas DK Jonas DK is offline
Forum Member
 
Join Date: Jul 2004
Location: Denmark
Posts: 282
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 12:44 PM.
Reply With Quote
  #4  
Old 09-19-2005
Desmond's Avatar
Desmond Desmond is offline
Indigo Rose Staff Member
 
Join Date: Jul 2003
Posts: 628
No, there's a project-wide On Menu event (Project > Actions > On Menu).
__________________
Setup Factory 8.0 comes with over 250 actions so you can create smaller, faster and more intelligent software installers than ever before.

WebHelp Guides: AMS | MSIFACT | SUF | TU | VP
Reply With Quote
  #5  
Old 09-19-2005
Jonas DK's Avatar
Jonas DK Jonas DK is offline
Forum Member
 
Join Date: Jul 2004
Location: Denmark
Posts: 282
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
Reply With Quote
  #6  
Old 09-20-2005
eric_darling's Avatar
eric_darling eric_darling is offline
Indigo Rose Customer
 
Join Date: Jun 2002
Location: Southeast USA
Posts: 1,804
Quote:
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
Reply With Quote
  #7  
Old 09-20-2005
Jonas DK's Avatar
Jonas DK Jonas DK is offline
Forum Member
 
Join Date: Jul 2004
Location: Denmark
Posts: 282
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?
Reply With Quote
  #8  
Old 09-20-2005
yosik's Avatar
yosik yosik is offline
Indigo Rose Customer
 
Join Date: Jun 2002
Location: Israel
Posts: 1,863
Like any other action which cancels a previous one.

Example:
a=1;
a=2;

Yossi
Reply With Quote
  #9  
Old 09-20-2005
Brett's Avatar
Brett Brett is offline
Indigo Rose Staff Member
 
Join Date: Jan 2000
Posts: 2,001
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.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


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


All times are GMT -6. The time now is 08:17 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Copyright © 2000 - 2009 Indigo Rose Corporation. All rights reserved.
Indigo Rose Software