OpenAmiga (482/959)

From:Georg Steger
Date:17 Aug 2000 at 20:00:02
Subject:Re: AMIOPEN: C Example of adding REAL gadgets to a window.

Deryk Robosson wrote:
>
> Douglas McLaughlin wrote:
> >
> > Hi,
> >
> > I would really like to see at least one example program that opens a
> > window with at least something like a button or whatnot that acts on
> > a click. This would be a better example than the current one that
> > does nothing but draw some graphics.
> >
> > Thanks in advance.. :)
>
> See attached. I just managed to get that working tonight based on
> tidbits here and there along with some reading. Wish the C API was
> 100%. :|

BTW: Is there something like IDCMP_REFRESHWINDOW which apps must
handle when hidden areas of a window get uncovered?

Maybe not for gadgets, but what happens if you draw a line in a window,
then obscure this window by moving another window over it and then away
again. Is the line still there.

If the line is still there then this means that the window works
similiar to SMARTREFRESH or SUPERREFRESH windows on the Amiga.

If the line disappears then it would be a SIMPLEREFRESH like window
(hidden areas are not backuped in offscreen bitmaps and apps must
refresh this areas by hand when they get IDCMP_REFRESHWINDOW (~exposure,
paint) messages/events.

Is there any way to specify this window refresht type or are there only
smart refresh windows, or only super refresh windows, or only simple
refresh windows?

Are there child windows? (is there some argument called "parent" or similiar
in OpenWindow (or whatever name it has in Ami) function?)

Most (if not all) Unix GUI engines like QT or GTK depend very much on child
windows.



Georg Steger, Hochlercher 30, I-39030 St. Johann/Ahrntal
EMail: georg.steger@rolmail.net

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