"About" menu on mac

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
bidgeeman
Posts: 495
Joined: Wed Feb 21, 2007 7:58 am

"About" menu on mac

Post by bidgeeman » Thu Sep 24, 2009 1:56 am

Hi.
I sent a small app standalone build from my windows Rev to a friend to try on his Mac. He said something about the "About" menu contained nothing. I told him I did not have an "About" button on the interface and he said it was not on the interface it was on the menu of the OS interface.

Does anyone know what he was referring to or how to get the "About" to read something?

Many thanks.
Bidge

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

Post by Mark » Thu Sep 24, 2009 8:40 am

Hi Bidge,

He is referring to the About menu item in the application menu. The application menu has the name of your standalone and can be found between the Apple menu and the File menu.

This menu item is created automatically by the operating system. The only way to deal with it is to create a menu and disable the About menu item in the Help menu. Sounds weird, probably, but you just need to do it to understand.

Best,

Mark
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

bn
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 4172
Joined: Sun Jan 07, 2007 9:12 pm

Post by bn » Thu Sep 24, 2009 8:43 am

Hi Bidgeeman,

in the menubuilder when you put something into the Help menu -> about (this is automatically created) then on a mac it will be automatically appear under the Apple menu, the same goes for Edit menu -> preferences.

put something like

Code: Select all

on menuPick pWhich
   switch pWhich
      case "Help"
         answer "no help from anywhere"
         break
      case "About"
         answer "proudly presented by Bidgeeman productions"
         break
   end switch
end menuPick
into the script of the Help button.
regards
Bernd

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

Post by Mark » Thu Sep 24, 2009 8:57 am

Hi Bernd,

The problem here is that the About menu item is also created if the user hasn't created any menus at all. Apparently, OP doesn't want to have any menus and therefore I would suggest to disable the About menu item.

Best,

Mark
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

bidgeeman
Posts: 495
Joined: Wed Feb 21, 2007 7:58 am

Post by bidgeeman » Thu Sep 24, 2009 10:24 am

Hi Mark and Bernd.
Thank you so much for the help guys you are both fantastic for this forum!

I decided to leave a help menu and an about menu. After seeing it work with bernds script it looks quite handy.

Mark I was reading a thread somewhere about how to disable the about menu but I could'nt get it to work with my limited programming skills.

Also found this command. When placed in the stack script does it disable the Mac menu in an exe?

Code: Select all

hide menubar
Cheers
Bidge

Post Reply