[comp.sys.atari.st] Programming events question...

opielask@clutx.clarkson.edu (AAron,,,) (04/07/90)

A friend of mine and I are writing a very simple drawing program
with Mark Williams C.

Our problems aren't in implementing the drawing tools (well, at least
not yet...) at this point.  The difficulties we are having are because
we want the menu bar on the screen, and available for use while the
user is using the drawing 'tools' on the rest of the screen.

So, we are using evnt_multi to detect events...

We want an active menu bar, with a blank screen, and be able to detect
menu bar events, as well as detecting EITHER mouse buttons.
We have fumbled our ways though this using the Mark Williams C
example programs on disk and in the book, and gotten these things to
work, but they FREQUENTLY conflict with each other!! For example,
to access the 'drawing tools box' the user clicks the right mouse button,
and it pops up on the screen.  Well, if the mouse is in the menu bar with
a menu pulled down, and you press the right mouse button, the tools box
pops up on the screen.  Or how about this... When drawing below the
menu bar, and you enter it, strange things happen, like messing up the
bar itself, or worse, it looses track of whether the mouse is on or it is
off, losing it completely.

Obviously we are doing it wrong...
  How do we set up evnt_multi (or do we even use it?) to detect either
mouse buttons, stop checking for other things when we are in the
menu bar, and continue checking after we decide we didn't want to invoke
the menu bar in the first place?

Any insights into our problem would be greatly appreciated!!

AAron nAAs
opielask@clutx.clarkson.edu     or     naas17@snypotba.bitnet
(Oh, did I mention that this assignment was due a month ago?)