On Monday, November 24, 2003, at 09:21 PM, R. Hillen wrote:


Hello Thierry,

Hello Richard,



thank you for your mails, which were a great help for me.

You're welcome


You are right; shutdownrequest works also from the icon in the dock; there was another error so I misinterpreted, what I saw:

I have a handler in my substack

on shutdownrequest
answer "Finish?" with "no" or "yes"
if it is "No" then exit to top
save this stack
close this stack
end shutdownrequest

If I quit from the dock (or the "quit"-Menu) and answer No", nothing happend, what is ok.
If I quit again I get no question and the stack finishes at once.
At this time I don�t see, why.



Have you try this ?
- put the handler in the main stack script, not in a substack
- if you open another stack file (e.g. by using the command go stack "anotherstack.rev" ), put the "shutdownRequest" handler in both stacks.


Thanx for your help again.


Hope it helps.


Richard.



Thierry.




Message: 3
Date: Mon, 24 Nov 2003 15:37:25 +0100
From: Thierry Arbellot <[EMAIL PROTECTED]>
Subject: Re: Quit from the OSX-dock
To: How to use Revolution <[EMAIL PROTECTED]>
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain; charset=US-ASCII; format=flowed

(I tried shutdownrequest, but it failed)

Strange, It does work in my standalone. (MacOS X 10.2.8, Rev 2.1) I can request to quit from the dock and receive the shutdownrequest message. Actually, what happens in your standalone ? does it quit or not ?

I know, there is a problem if you use several stack files, you must
check the shutdownrequest message in each stack !

Regards.

Thierry.



Message: 6
Date: Mon, 24 Nov 2003 00:11:36 +0100
From: Thierry Arbellot <[EMAIL PROTECTED]>
Subject: Re: About from the OSX-Menu
To: How to use Revolution <[EMAIL PROTECTED]>
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain; charset=US-ASCII; format=flowed

A menupick in the "help" menu does work fine in my app.

script is :

--The following menuPick handler was generated by the Menu Builder.
on menuPick pWhich
   switch pWhich
   case "Help"
--Insert script for Help menu item here
     break
   case "About"
--Insert script for About menu item here
     break
   end switch
end menuPick

Hope it helps.
Regards.

Thierry.

On Sunday, November 23, 2003, at 11:47 PM, R. Hillen wrote:

RunRev-Standalones all have a File-Menu with "About".

Somebody knows, how to intercept choosing the About-Menu?

(I tried menupick, but it failed.)

Thanx in advance

Richard Hillen

_______________________________________________
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution



_______________________________________________ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution

Reply via email to