Ticket #14818 (new defect)

Opened 7 months ago

In UltimateListCtrl row inserted at the top overlaps previous one

Reported by: g1itch Owned by:
Priority: normal Milestone:
Component: AGW Version:
Keywords: UltimateListCtrl Cc:
Blocked By: Patch: no
Blocking:

Description

In some cases row inserted at the top of UltimateListCtrl (InsertStringItem(0, "some text")) overlaps previous rows while in wx.ListCtrl this does not happen.

Case 1
ULC.ULC_HAS_VARIABLE_ROW_HEIGHT not present in agwStyle. All inserted rows placed in a single location.
Case 2
If parent of UltimateListCtrl is wx.Panel, all rows inserted before frame Show() overlap until frame resized or next row inserted.
Case 3
If inserted row have controls (SetItemWindow() used), row height is sufficient for text but not for control, again until frame resized or next row inserted.

I'll attach example code which have one button for each case and button for inserting new item.

Attachments

test_insert_first.py download (3.0 KB) - added by g1itch 7 months ago.
demo code

Change History

Changed 7 months ago by g1itch

demo code

Note: See TracTickets for help on using tickets.