Re: FileQuit Menu Item

Paul Young <[email protected]> Sat, 14 Apr 2018 13:52:26 -0400
Newsgroups gmane.comp.lang.realbasic.user
Message-ID <[email protected]>
Yes, I understand that but if I choose the Super of this FileQuit menuitem to be QuitMenuItem, then Quit is not displayed when I run the app.  The upper menuitems are displayed with their shortcuts but Quit is not displayed.

  

If I choose the super of FileQuit to be MenuItem, then I see this:

  

I could change Quit to           Quit              Command-Q
but this would certainly not be standard.

Paul Young



> On Apr 14, 2018, at 12:24 PM, Jim Wagner <[email protected]> wrote:
> 
> Hello, Paul -
> 
> In all of the apps I have created, Quit has always been an automatic member of the File menu and it has always, automatically, had a Command-Q shortcut.
> 
> If you select Main Menubar, in the project object list (left edge of window), Select the File item, then the Quit item and open the inspector, you should see the various attributes such as shortcuts.
> 
> Jim
> 
> James Wagner
> Oregon Research Electronics
> http://www.orelectronics.net <http://www.orelectronics.net/>
> 
> 
> 
> 
>> On Apr 14, 2018, at 8:52 AM, Paul Young <[email protected] <mailto:[email protected]>> wrote:
>> 
>> Hi Jim,
>> 
>> Thanks for answering.
>> 
>> I don’t think I understand.
>> 
>> I can add Quit as a menu item (File Quit Edit …) and add under that Quit menu item QuitQuitNow but I can’t add the Shortcut Command-Q.  I want the User to see that he can use Command-Q to quit the app.
>> 
>> Paul Young
>> 
>>> On Apr 14, 2018, at 11:30 AM, Jim Wagner <[email protected] <mailto:[email protected]>> wrote:
>>> 
>>> You may have to add your own Quit menu handler.
>>> 
>>> In some apps, I found that I needed to add a quit command to the CancelQuit event. If I did not, it would crash as you describe.
>>> 
>>> Jim
>>> 
>>> James Wagner
>>> Oregon Research Electronics
>>> http://www.orelectronics.net <http://www.orelectronics.net/>
>>> 
>>> 
>>> 
>>> 
>>>> On Apr 14, 2018, at 8:26 AM, Paul Young <[email protected] <mailto:[email protected]>> wrote:
>>>> 
>>>> I am using Xojo 2017 Release 3 for Mac to compile for 64 bits.
>>>> 
>>>> Using the Red Close button on Window1 results in an exception thrown about one out of twenty times when compiling for 64 bits.  I have disabled the Red Close button and plan to use the Command-Q shortcut to quit the app.
>>>> 
>>>> Problem:  I have FileQuit at the bottom of MenuBar1 menu items and Command-Q does close the app but I do not see Quit under the File menu item when the app is running in the IDE or when compiled.  I do see the other File menu items.
>>>> 
>>>> Why is this?
>>>> 
>>>> Paul Young
>>> 
>> 
>