newbie: About box?

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
kpeters
Posts: 112
Joined: Wed Mar 21, 2007 9:32 pm

newbie: About box?

Post by kpeters » Fri Jun 08, 2007 4:24 am

Being new to both Revolution and OS X programming: How does one create an About window?

I just created my first standalone for OS X and while there is an About menu item, clicking on it does nothing...

Thanks for any pointers,
Kai

Mark Smith
Posts: 179
Joined: Sat Apr 08, 2006 11:08 pm
Contact:

Re: newbie: About box?

Post by Mark Smith » Fri Jun 08, 2007 8:04 am

Just create a substack from your mainstack, put whatever you want (images, copyright meassages, or whatever), and put
go stack "whateverYouCalledYourAboutStack" in the "about menu"

Many such "about" windows have their decorations set to empty, so if you do that, put a handler in the "about" stack's script to close it:

on mouseup
close me
end mouseup

Best,

Mark

kpeters
Posts: 112
Joined: Wed Mar 21, 2007 9:32 pm

Post by kpeters » Fri Jun 08, 2007 6:43 pm

I should have been more specific:

I see the two menu controls on the Rev controls palette and then there is the MenuBuilder (the latter creating Windows like menus that sit within the application's window) - both do not seem to be able to give me access to the System menu in the caption bar. That's where I see an empty About menu entry on my standalones....

Kai

Mark Smith
Posts: 179
Joined: Sat Apr 08, 2006 11:08 pm
Contact:

Post by Mark Smith » Sat Jun 09, 2007 8:39 am

Kai, in the menubuilder, when you click the "new menu" button, you should see a"set as menu bar on mac" check box become available.

There is an excellent introduction to menu-making in Rev at

http://downloads.runrev.com/section/scr ... rences.php


Best,

Mark

kpeters
Posts: 112
Joined: Wed Mar 21, 2007 9:32 pm

Post by kpeters » Sat Jun 09, 2007 10:07 pm

Thanks again - that's exactly what I was looking for!

Kai

Post Reply