About from the OSX-Menu

Thierry Arbellot thierry.arbellot at wanadoo.fr
Mon Nov 24 15:52:20 EST 2003


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 <thierry.arbellot at wanadoo.fr>
> Subject: Re: Quit from the OSX-dock
> To: How to use Revolution <use-revolution at lists.runrev.com>
> Message-ID: <B86EA96A-1E8B-11D8-BA26-000A27E40768 at wanadoo.fr>
> 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 <thierry.arbellot at laposte.net>
> Subject: Re: About from the OSX-Menu
> To: How to use Revolution <use-revolution at lists.runrev.com>
> Message-ID: <6318D096-1E0A-11D8-8CE8-000A27E40768 at laposte.net>
> 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
>> use-revolution at lists.runrev.com
>> http://lists.runrev.com/mailman/listinfo/use-revolution
>>
>



More information about the use-livecode mailing list