realbasic-nug
[Top] [All Lists]

Re: Auto Resizing ListBox ColumnWidths and grids?

To: REALbasic NUG <realbasic-nug at lists dot realsoftware dot com>
Subject: Re: Auto Resizing ListBox ColumnWidths and grids?
From: Norman Palardy <palardyn at shaw dot ca>
Date: Mon, 31 May 2004 11:43:12 -0600
Delivered-to: realbasic-nug at lists dot realsoftware dot com
List-help: <mailto:realbasic-nug-request@lists.realsoftware.com?subject=help>
List-id: REALbasic NUG <realbasic-nug.lists.realsoftware.com>
List-post: <mailto:realbasic-nug@lists.realsoftware.com>
References: <BCE0173D dot 1353%sean at rulessoftware dot com> <p06100500bce0b117576a at [10 dot 0 dot 1 dot 12]> <5C5893EE-B307-11D8-A65D-000A95983FBE at ljug dot com> <p06100500bce0eb0ced19 at [10 dot 0 dot 1 dot 2]> <8D6B1E6C-B30D-11D8-A65D-000A95983FBE at ljug dot com> <p06100500bce10d24eaa0 at [10 dot 0 dot 1 dot 2]> <40BB5DE9 dot 2050705 at ljug dot com> <40BB5E7B dot 4030809 at ljug dot com>

On May 31, 2004, at 10:34 AM, Will Leshner wrote:

Will Leshner wrote:

Peter De Berdt wrote:
I would do it the Valentina way then:

MyCursor.CurrentPosition=x

In the DataGrid you have a RequestRow event that has a parameter that you can use as the position of the cursor.
I'm not sure if I will use the same "property" name, but that's basically the way it would work. Internally I track the current row. All I'd have to do is have that call set the internal row (with some bounds checking to make sure you don't try to go someplace you can't).

Ah, well, perhaps it isn't as easy as I'd hoped. It suddenly occurs to me that the way the RB database API works, I don't believe I can just add calls to RecordSet. We aren't dealing with a subclass of RecordSet, unfortunately. I'll have to think about this a bit.

You could always sign on to the feature request that asks for a "MoveTo" api in the recordset ...

http://support.realsoftware.com/feedback/viewreport.php? reportid=vwtzxcni

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

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

<Prev in Thread] Current Thread [Next in Thread>