Le 4 oct. 06 à 00:34 Matin, Phil M a écrit:
On Oct 3, 2006, at 3:16 PM, Guyren Howe wrote:
Sadly not. ColumnFromXY indicates I clicked in a column, even when
I clicked in the scrollbar.
OK, then you need to manually determine the size of each Column and
determine if the X is outside of the Cell bounds. You can access
the Column class properties which include ActualWidth. This would
actually be a lot tougher if you also have a Horizontal Scrollbar
for the listbox.
Another shortcut is that you can find out if the Scrollbar is
visible when the ScrollPosition is greater than 0. Just realize
that it can be 0 with the scrollbar visible.
Oh... another trick is to get the ListCount compared to the height
of the listbox... it is not an exact science, but you can estimate
it by multiplying the DefaultRowHeight value to ListCount and
comparing it with ListBox.Height. In order for this to work, you
*have* to change the default DefaultRowHeight from -1 to your
particular value. Personally I always set this because I don't
like the way the default rows look so small.
Or my suggestion, also.
_______________________________________________
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>