On Oct 3, 2006, at 3:48 PM, [EMAIL PROTECTED] wrote:

I'm doing drag from a listbox that sometimes is displaying a
scrollbar, sometimes not. When it is displaying the scrollbar, I need
to return False from my MouseDown handler, so the scrollbar behaves
normally.

But I can't see a way to determine whether the scrollbar is
showing. I can see some inelegant solutions, but is there something
obvious I'm missing?
Assuming you are talking about he vertical scrollbar:
Determine (or set) row height then just see if you have more rows than would fit in the content area (assume header height is 20 IIRC) Then to see of the click is in teh scroolbar see if X > width - 16 (Or 20 I can't remember for sure) This is making some assumptions but as RB does not provide header height, RowHeight, Scrollbar width.or content area dimensions you need to do that.

Thanks. But this falls under the "inelegant" solution. Anyone know of a more elegant one?
_______________________________________________
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