On RB2006R1 OSX 10.4.5 if you have a listbox with set column widths that don't fill the listbox, if you select a row with data then the selection highlight extends into the extra space at the end...

Well Ok I can see that being useful... But Horizontal gridlines are not extended into that area (could be viewed as inconsistent..) but the REAL problem is that you can not use CellBackgroundPaint EITHER to color the backgroundat the end of the row... which makes alternating rows look weird ...

And in my case another bigger issue... I'm writing a listbox where I can select select EITHER rows, columns or a cell and be able drag them and drag reorder columns as well as rows... so i have to handle all highlighting/dehighlighting myself in CellBackgroundPaint

Since i don't want to have to do everything I can not set listindex immediately to -1 to get rid of the unwanted default highlight...

In such a case should gridline be drawn and cellbackgroundpaint be called on last "psuedoColumn"?

The behavior of gridlines and cellbackgroundpaint for nonexistent rows would suggest suggest yes...

BTW Listbox.RowFromXY(x,y) on nonexistent rows returns -1
Listbox.ColumnFromXY(x,y) on that last nonexistent psudeocolumn returns a column index of ColumnCount ... one more column than exists.

BtW I'm not sure if setting the last column to fill the listbox is not foolprof as i have to support Horizontal scrolling and column resizing...

- karen


_______________________________________________
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