[comp.sys.atari.st] Menus and ACC

larserio@IFI.UIO.NO (LarsErikOsterud) (11/08/90)

How can I use a standard GEM-mnu line from an ACC
The ACC's own menu line and drop down menues appear, but if you select any
menu item you will get the GEM-desktop function (i.e. save desktop) instead. 
How do I "suspend" the GEM-menu while using a menu within a ACC (or in a
GEM-program loaded with pexec inside an ACC). P ????

 Lars-Erik  /  ABK-BBS +47 2132659  /   ____ ______ ________________________
  Osterud  /  larserio@ifi.uio.no  /   /___    /            The norwegian ST
__________/ ______________________/   ____/   /   Klubben,  user association

uace0@menudo.uh.edu (Michael B. Vederman) (11/09/90)

Unfotunately, DAs can not have menu bars.  At least not without some serious
trickery.

DAs are not in the message queue for receiving menu messages.  GEM doesn't even
give them a second thought for receiving messages from menus.

Best solutionis to install you own mouse handler and monitor x & y mouse coords
and simulate a working menu bar.  Of course, you must restore the old menubar
after you are done.

- mike

-- 
------------------------------------------------------------------------------
Double Click Me | Double Click Software | P.O. Box 741206 | Houston, Tx, 77274
------------------------------------------------------------------------------
Voice: (713)977-6520 | DC DESKTOP | DC FORMATTER | DC UTILITIES | and others

rosenkra@convex.com (William Rosencranz) (11/10/90)

i have done this sort of thing before, albeit with apps not DAs. however, i
ran into a problem with detecting mouse clicks in the top 19 pixels of the
screen (i.e. menubar area). it is not tricky at all, and should be 100% legal
to thro up a narrow dialog box at the top and simulate the panes with another
dialog. tim oren's tutorials will help here.

i have also tried to fool GEM into thinking that the menubar was actually
not at the top, but in some arbitrary location on the screen with limited
success. it would be nice if GEM would allow the location of the menubar
and its shape to be user specified...

i have developed a menuing system for generating arbitrary "ladder" menus
with overlapping sub menus, ala workstations (sun, X, etc). one of these
days i will post it (or sell it :-)...

-bill
rosenkra%c1yankee@convex.com
--
Bill Rosenkranz            |UUCP: {uunet,texsun}!convex!c1yankee!rosenkra
Convex Computer Corp.      |ARPA: rosenkra%c1yankee@convex.com