Scroll Line Into View in a Datagrid
Jerry Jensen
jhj at jhj.com
Thu Sep 25 15:21:13 EDT 2014
Ray - have you tried out Bernd's modTableField? It does quite a lot of what a datagrid table does for you, and its a lot simpler.
.Jerry
On Sep 25, 2014, at 8:41 AM, Ray <ray at linkit.com> wrote:
> Pete - I wanted to get back with you since you were so kind to respond and shed some light on things.
>
> I've discovered [once again] that Livecode data grids are really complicated, convoluted things. I had set the behavior of the grid in question to a button whose script was a slightly altered version of the default button. This in turn broke the ability to scroll, either from a script or manually. Why? Who knows?
>
> I'm rebuilding the grid now from scratch and I'll come up with a work-around other than setting the grid's behavior.
>
> Thanks for your help!
>
> Ray Horsley
> LinkIt! Software
>
> On 9/25/2014 1:21 AM, Peter Haworth wrote:
>> Datagrids come in 2 flavors, table and form. So you have a datagrid table
>> not an LC basic table control.
>>
>> I asked about a form because of your comment about multiple lines. Normally
>> a datagrid table has one line per row with a return character marking the
>> end of a line. If you're trying to put multiple lines in a single
>> datagrid row, I don't think you can do that.
>>
>> Pete
>> lcSQL Software
>> On Sep 24, 2014 7:32 PM, "Ray" <ray at linkit.com> wrote:
>>
>>> Pete,
>>>
>>> Now wait a minute. I've sometimes gotten a bit confused with Livecode's
>>> terms. When l look at it in the properties palette it's a "group" with a
>>> "style" of "Table" which I can change to "Form" (but I don't).
>>>
>>> But when I created it I dragged over a "Data Grid" as oposed to a "Basic
>>> Table Field" or a "Scrolling Field" for example.
>>>
>>> So what is it?
>>>
>>> On 9/24/2014 10:49 PM, Peter Haworth wrote:
>>>
>>>> Hi Ray,
>>>> So this is a datagrid form, not a table? Have to admit I'm not that
>>>> familiar with dg forms so not sure what else to suggest, sorry.
>>>>
>>>> Pete
>>>> lcSQL Software <http://www.lcsql.com>
>>>> Home of lcStackBrowser <http://www.lcsql.com/lcstackbrowser.html> and
>>>> SQLiteAdmin <http://www.lcsql.com/sqliteadmin.html>
>>>>
>>>> On Wed, Sep 24, 2014 at 5:51 PM, Ray <ray at linkit.com> wrote:
>>>>
>>>> Pete,
>>>>> Thanks for the response. I've checked the it variable and I'm getting
>>>>> "handled" returned, which I assume is good. Regarding the line number,
>>>>> I've definitely got over 20 lines of data in the grid. I do only have one
>>>>> line of data for the first two columns with about 23 lines of data in the
>>>>> third. Do you think that could be the problem?
>>>>>
>>>>> Ray Horsley
>>>>> LinkIt! Software
>>>>>
>>>>> On 9/24/2014 9:21 PM, Peter Haworth wrote:
>>>>>
>>>>> Syntax looks good. Couple of things you've probably already checked -
>>>>>> what's in the "it" variable after dispatch (should be "handled"), and
>>>>>> are
>>>>>> you sure 20 is a valid line number.
>>>>>>
>>>>>> Pete
>>>>>> lcSQL Software <http://www.lcsql.com>
>>>>>> Home of lcStackBrowser <http://www.lcsql.com/lcstackbrowser.html> and
>>>>>> SQLiteAdmin <http://www.lcsql.com/sqliteadmin.html>
>>>>>>
>>>>>>
>>>>>> On Wed, Sep 24, 2014 at 4:29 PM, Ray <ray at linkit.com> wrote:
>>>>>>
>>>>>> Has anybody had any luck with scrollLineIntoView?
>>>>>>
>>>>>>> I'm trying all kinds of variations in syntax of:
>>>>>>>
>>>>>>> dispatch "scrollLineIntoView" to group "MyGroup" with 20
>>>>>>>
>>>>>>> but with no results and nothing in 'the result'
>>>>>>>
>>>>>>> Is there something else I need to to do prepare for this?
>>>>>>>
>>>>>>> ____________________________________________________________
>>>>>>>
>>>>>>> Note: I'm not sure if this got posted earlier. I can never get that
>>>>>>> "receive your own posts" subscription option to work so please excuse
>>>>>>> me
>>>>>>> if
>>>>>>> this was already posted.
>>>>>>>
>>>>>>> _______________________________________________
>>>>>>> use-livecode mailing list
>>>>>>> use-livecode at lists.runrev.com
>>>>>>> Please visit this url to subscribe, unsubscribe and manage your
>>>>>>> subscription preferences:
>>>>>>> http://lists.runrev.com/mailman/listinfo/use-livecode
>>>>>>>
>>>>>>> _______________________________________________
>>>>>>>
>>>>>> use-livecode mailing list
>>>>>> use-livecode at lists.runrev.com
>>>>>> Please visit this url to subscribe, unsubscribe and manage your
>>>>>> subscription preferences:
>>>>>> http://lists.runrev.com/mailman/listinfo/use-livecode
>>>>>>
>>>>>>
>>>>> _______________________________________________
>>>>> use-livecode mailing list
>>>>> use-livecode at lists.runrev.com
>>>>> Please visit this url to subscribe, unsubscribe and manage your
>>>>> subscription preferences:
>>>>> http://lists.runrev.com/mailman/listinfo/use-livecode
>>>>>
>>>>> _______________________________________________
>>>> use-livecode mailing list
>>>> use-livecode at lists.runrev.com
>>>> Please visit this url to subscribe, unsubscribe and manage your
>>>> subscription preferences:
>>>> http://lists.runrev.com/mailman/listinfo/use-livecode
>>>>
>>>
>>> _______________________________________________
>>> use-livecode mailing list
>>> use-livecode at lists.runrev.com
>>> Please visit this url to subscribe, unsubscribe and manage your
>>> subscription preferences:
>>> http://lists.runrev.com/mailman/listinfo/use-livecode
>>>
>> _______________________________________________
>> use-livecode mailing list
>> use-livecode at lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
>
>
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
More information about the use-livecode
mailing list