Page 1 of 1

Possible window.class bug

Posted: Sun Aug 19, 2012 6:18 am
by Steady
Hi all,

I just want to report what I believe to be a bug. First, system details:

microA1 (256MB RAM), no extra boards
AmigaOS 4.1 update 5
window.class v53.48
intuition.library v53.35

When creating a reaction window with WA_GimmeZeroZero and iconification set up, the iconification gadget is rendered relative to the gimmezerozero co-ordinates rather than in the border area. That is, the iconification gadget is rendered in the user area just below where it should be.

Sample window code:

Code: Select all

		windowObj = NewObject(WindowClass, NULL,
							  WA_CloseGadget,       TRUE,
							  WA_DepthGadget,       TRUE,
							  WA_SizeGadget,        TRUE,
							  WA_SizeBRight,        TRUE,
							  WA_DragBar,           TRUE,
								WA_GimmeZeroZero,     TRUE,
							  WA_AutoAdjust,        TRUE,
							  WA_Width,             320,
							  WA_Height,            200,
							  WA_Zoom,              &zoomBox,
        						  WA_PubScreenName,     NULL,
							  WINDOW_Position,      WPOS_TOPLEFT,
							  WINDOW_IconifyGadget, TRUE,
							  TAG_DONE);
Hopefully this can be fixed. In the meantime I will go the non-lazy way and avoid GZZ :)

Cheers,
Jason.

Re: Possible window.class bug

Posted: Thu Aug 23, 2012 9:55 am
by trixie
I can confirm this: setting WA_GimmeZeroZero, TRUE screws up the rendering of the Iconify Gadget as well as of the new PopUp gadget. Neither of the two is correctly rendered in the window bar.

Re: Possible window.class bug

Posted: Sun Aug 26, 2012 6:53 pm
by Rigo
Actually, both the popup and iconify gadgets suffered from this problem, and the iconify gadget must have had this bug since the old classact days. Anyway, it's fixed in the latest window.class.

Thanks for the report.

Simon

Re: Possible window.class bug

Posted: Mon Aug 27, 2012 8:17 am
by trixie
Thanks for the fix!

I have just tested on my emulated OS3.1 system with ClassAct installed, and I can confirm it is a very old bug as Simon says.

Re: Possible window.class bug

Posted: Mon Aug 27, 2012 12:10 pm
by Steady
Great. Thanks for the fix Rigo.

I guess no-one ever really used the two together. It isn't all that necessary I suppose. I was rendering in the space.gadget and was protecting things with my own region, then got curious about using GZZ windows instead since I was rendering bottom-right.

Still, nice to flush out issues and get 'em fixed.

Cheers!