OpenAmiga (550/959)

From:Jesse McClusky
Date:23 Aug 2000 at 00:01:18
Subject:Re: AMIOPEN: DI_MIN, DI_MAX, DI_CLOSE

> From: "Deryk Robosson" <deryk@iitowns.com>
> Patrick Roberts wrote:
> >
> > Has anyone been successful figuring out if an EV_QUIT event is the min,
max,
> > or close button in a C program. They each pass back a different target
but is
> > there a way to get the target ID for the window elements?
>
> hrmm..hit a brick wall on this one as well. I slapped in the
> FDI_MIN|MAX gang into an app I'm working on and clicking on either
> coughs up an EV_QUIT here as well.

The easiest way to tell that I've found is to check the EVD_DATA field.
Yes, the EVD_DATALEN is zero. That just means EVD_DATA isn't
a pointer. EVD_DATA appears to be ==0 for close button, == 1 for
minimize, and == 2 for maximize.

Jesse

Subscribe/Unsubscribe: open-request@amiga.com
Amiga FAQ: http://www.amiga.com/faq.html