At 3:18 PM -0700 9/23/06, Chad Bullock wrote:
The listbox.listcount property is incorrect when a column from the listbox
is hidden (0 pixels). When looping through the CellBackgroundPaint event,
column 2 (for example) doesn't ever fire, and an additional bug is that it
keeps looping way past the actual listcount - which counts a column's data
as an additional row's data...not sure what's happening.

If so, here's the report and sample project:
http://www.realsoftware.com/feedback/viewreport.php?reportid=fpzhtfnf

Listcount is 3 in your sample project and it seems to work fine.

I suspect you're missing the act that CellBackgroundPaint fires for all VISIBLE cells in the listbox, regardless of whether the cell contains data. This lets you draw background colors or pictures in the entire listbox, even without filling it with data.

In your sample, the CellBackground event fires for the 14 rows in column 0, and none in column 1 since it's invisible. This all seems right to me.

Regards,
Joe Huber
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to