Opened 5 years ago

Closed 6 months ago

#14818 closed defect (outdated)

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

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 (1)

test_insert_first.py download (3.0 KB) - added by g1itch 5 years ago.
demo code

Download all attachments as: .zip

Change History (2)

Changed 5 years ago by g1itch

demo code

comment:1 Changed 6 months ago by robind

  • Resolution set to outdated
  • Status changed from new to closed

Closing old Phoenix tickets...

If this is still an issue in wxPython 4.0.0a1 then please open a new issue (or PR) at the wxPython-Phoenix project page on Github: https://github.com/wxWidgets/Phoenix

Note: See TracTickets for help on using tickets.