"About..." Menu Option

Deploying to Mac OS? Ask Mac OS specific questions here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
andres
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 68
Joined: Thu Jan 04, 2007 2:24 am

"About..." Menu Option

Post by andres » Wed Jan 17, 2007 7:06 am

Hello

Is there any simple way to handle the MenuPick of the "About..." menu option on Mac OS X stand alones?

Revolution creates that default option but I haven't found the way to handle it without creating a new menu with the MenuBuilder.

Thanks
Andres

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Post by Mark » Wed Jan 17, 2007 11:58 am

No, I don't think there is a way to do this. Maybe a feature request...?
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

RRobert
Posts: 151
Joined: Sat Feb 28, 2009 8:20 pm

Post by RRobert » Wed Apr 22, 2009 5:34 am

In order to make the About... option in the default standalone menu work on a Mac, you'll have to create at least a minimal menu. The easiest way to do this is to open Tools > Menu Builder. Create a new menu and give it a name, say "myMenu". Then delete the File and Edit menus. In the remaining "Help" menu, delete the first item, "Help", leaving only a "-" and the "About" item on the next line. Then close the Menu Builder. Hide the new group. In the group script create a menuPick handler like this:

on menuPick what
switch what
case "About"
-- display the about box here
break
end switch
end menuPick

In an openStack or preOpenStack handler make this group the menubar
group:

on openstack
set the menubar of this stack to "myMenu"
end openstack

Now when you create a standalone from the stack the about menu will function. You don't have to worry about the Quit option because the OS handles that.

Others may have different ideas about how to do this, but this will work.

Devin Asay

Revolution User Mailing List

Post Reply