[futurebasic] Re: [FB] Menus and OSX

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : October 2002 : Group Archive : Group : All Groups

From: Craig Hoyt <aztech4mac@...>
Date: Mon, 7 Oct 2002 20:26:58 -0700
Thanks Robert... I've always built my menus as resources since way back in
the ZBasic days. I've found this to the easiest way for me. I killed my
resource menus and built them as in your example and it works as you
described. It's kind of confusing as you'd think it would work both ways.
BTW my resource menus had a 'Command+Q' item so it seems it is how FB
builds the app makes the difference.

I have two other questions that you or someone else on the List might be
able to answer.

How do I stop that damn spinning wheel cursor in OSX. Staz says to limit
loops to less than 30 ticks but I've not been able to do this in some
circumstances. It's even more irritating when you use HIDECURSOR and it
seems to override this.

I need to build an odd shape region. Building from joining primitive shapes
is impossible. I found the toolbox command FN BitMapToRegion (RgnH&,
BitMap&). I've tinkered with this but have not been successful. A search
using BBEdit only found one instance in the headers. I have a PICT handle
of the same shape the region needs to be. How do I do this?

TIA all,
Craig

>If you give your Quit item the command-Q equivalent, as you should, in
>OS X the item is removed from your file menu.
>
>local fn DoMenu
>dim as short  menuNum, menuItem
>menuNum  = menu( 0 )
>menuItem = menu( 1 )
>if menuNum == 1 and menuItem == 3 then end
>end fn
>
>menu 1, 0, 1, "File"
>menu 1, 1, 1, "New"
>menu 1, 2, 0, "-"
>menu 1, 3, 1, "Quit/Q"
>
>on menu fn DoMenu
>do
>HandleEvents
>until 0
>
>
>Robert P.

======================================================================
Aztech Professional On-Site Service

* Craig Hoyt
* Phone: 818-773-0864   Fax: 818-773-0675
* E-mail: craig@...
* Web: http://www.aztech4mac.com

Macintosh Technology Solutions Since 1984
=======================================================================