Xojo Developer Conference
25/27th April 2018 in Denver.
MBS Xojo Conference
6/7th September 2018 in Munich, Germany.

Re: Getting ListBox Cell Left and Top (Real Studio network user group Mailinglist archive)

Back to the thread list
Previous thread: lpoptions and X.5
Next thread: Re: Combo box TextFont/TextSize does nothing


Re: Getting ListBox Cell Left and Top   -   Joe Strout
   Getting ListBox Cell Left and Top   -   Rubber Chicken Software Co.
    lpoptions and X.5   -   arael

Re: Getting ListBox Cell Left and Top
Date: 06.08.09 15:41 (Thu, 06 Aug 2009 08:41:22 -0600)
From: Joe Strout
Rubber Chicken Software Co. wrote:

> Perhaps I'm missing something. I know I can get the top by
> (DefaultRowHeight * row). But how do you get the Left side?

Add up the actual column widths (Column(i).WidthActual), and subtract
the ScrollPositionX.

Best,
- Joe

Getting ListBox Cell Left and Top
Date: 06.08.09 06:41 (Thu, 06 Aug 2009 00:41:39 -0500)
From: Rubber Chicken Software Co.
How has anyone gotten the left/top coordinate of a ListBox cell?

Perhaps I'm missing something. I know I can get the top by
(DefaultRowHeight * row). But how do you get the Left side?

Since in my instance I know I can get X, so I can hack by working
backwards with ColumnFromXY() and waiting for the column number to
change. Even if I didn't have X, I could still get the left side that
way, but this seems awfully hacky.

How do you get the left/top coordinate of a ListBox cell?

* * * * * * * * * * * * * * * * * * * * * * * * * * *
| Garth Hjelte |
| Customer Service Representative, President |
| Chicken Systems, Inc, Rubber Chicken Software Co. |
| 714 5th Street SE |
| Willmar, MN 56201 USA |
| |
| 800-8-PRO-EPS Toll Free Order Line (US Only) |
| 320-235-9798 Tech Support, Sampler Questions |
| International Line |
| 360-838-7689 Fax |
| Product Sales: <email address removed> |
| Product Support: <email address removed> |
| Sampler Q+A: <email address removed> |
| Web Page: www.chickensys.com |
* * * * * * * * * * * * * * * * * * * * * * * * * * *

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

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>