Page 1 of 1

newbie: About box?

Posted: Fri Jun 08, 2007 4:24 am
by kpeters
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

Re: newbie: About box?

Posted: Fri Jun 08, 2007 8:04 am
by Mark Smith
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

Posted: Fri Jun 08, 2007 6:43 pm
by kpeters
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

Posted: Sat Jun 09, 2007 8:39 am
by Mark Smith
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

Posted: Sat Jun 09, 2007 10:07 pm
by kpeters
Thanks again - that's exactly what I was looking for!

Kai