Possible window.class bug

This forum is for general developer support questions.
Post Reply
Steady
Posts: 25
Joined: Tue Aug 30, 2011 4:23 am
Location: Melbourne, Australia
Contact:

Possible window.class bug

Post 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.
User avatar
trixie
Posts: 411
Joined: Thu Jun 30, 2011 3:54 pm
Location: Czech Republic

Re: Possible window.class bug

Post 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.
The Rear Window blog

AmigaOne X5000 @ 2GHz / 4GB RAM / Radeon RX 560 / ESI Juli@ / AmigaOS 4.1 Final Edition
SAM440ep-flex @ 667MHz / 1GB RAM / Radeon 9250 / AmigaOS 4.1 Final Edition
User avatar
Rigo
AmigaOS Core Developer
AmigaOS Core Developer
Posts: 363
Joined: Mon Jan 17, 2011 9:42 pm

Re: Possible window.class bug

Post 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
User avatar
trixie
Posts: 411
Joined: Thu Jun 30, 2011 3:54 pm
Location: Czech Republic

Re: Possible window.class bug

Post 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.
The Rear Window blog

AmigaOne X5000 @ 2GHz / 4GB RAM / Radeon RX 560 / ESI Juli@ / AmigaOS 4.1 Final Edition
SAM440ep-flex @ 667MHz / 1GB RAM / Radeon 9250 / AmigaOS 4.1 Final Edition
Steady
Posts: 25
Joined: Tue Aug 30, 2011 4:23 am
Location: Melbourne, Australia
Contact:

Re: Possible window.class bug

Post 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!
Post Reply