Opened 4 years ago

#14818 new defect

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: Blocking:
Patch: no


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 (1) download (3.0 KB) - added by g1itch 4 years ago.
demo code

Download all attachments as: .zip

Change History (1)

Changed 4 years ago by g1itch

demo code

Note: See TracTickets for help on using tickets.