[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[MiNT] Toolbar width inconsistency (bad rectangle list?)



Hi,

Found another potential issue with toolbars, which seems to have been introduced in 0.999. Previously, the width of the toolbar didn't include the width of the sizer + vertical scroll bar, i.e. the toolbar basically had the same width as the work area.

This has changed. The AES now specifies a width which includes the sizer + vertical scrollbar (this is the width that the AES puts in the toolbar root object). However, the rectangle list for the toolbar is still based on the old implementation.

An example:
The AES specifies the toolbar object size to: 300,20.
The rectangle list only specifies: 278,20.

I can't say exactly where/what this problem is, but something has clearly changed related to the toolbar width (I haven't seen this behavior on 0.998). And it affects my current project.

I've extended and attached the code which reproduced the WM_TOOLBAR issue to also include the stuff I described above.

-- PeP

Attachment: main.c
Description: Binary data

Attachment: makefile
Description: Binary data