Little Arrows in Datagrid
Posted: Tue Jul 18, 2017 11:32 pm
Hi all,
So something interesting is happening that forces LC to complete shut down!
I have a data grid form with little arrows (a form of scrollbar). I'm new to little arrows but discovered the message that is sent when the "increase" and "decrease" arrows are clicked. So, not knowing how that handler would trigger in a datagrid, I added this code to the group:
and discovered that it worked! I figured that it would be better to put the code somewhere else, but for the purposes of experimentation, I wanted to see the limits of what I could do in the script of the group itself. So I updated the handler to read:
The fillin of the behavior script reads:
The interesting thing is, when I click the little arrows of one of the data grid lines, LC attempts to draw the grid... And then tries to draw it again... And when it gets to the bottom line, LC crashes (no error message) and closes itself.
Any idea why?
Also, what is the proper place to put scrollbarLineDec and scrollbarLineInc in order to update the text of a different object in the same line? or is there a better way to do this?
So something interesting is happening that forces LC to complete shut down!
I have a data grid form with little arrows (a form of scrollbar). I'm new to little arrows but discovered the message that is sent when the "increase" and "decrease" arrows are clicked. So, not knowing how that handler would trigger in a datagrid, I added this code to the group:
Code: Select all
on scrollbarLineDec
answer the long name of me
end scrollbarLineDec
Code: Select all
on scrollbarLineDec
put the dgHilitedLines of me into tLine
put the dgText of me into tData
set the itemdel to tab
put item 2 of line tLine of tData into x
put x into item 2 of line tLine of tData
set the dgText of me to tData
end scrollbarLineDec
Code: Select all
set the text of field "Text" of me to pDataArray["label 1"]
set the text of field "Score" of me to pDataArray["label 2"]
Any idea why?
Also, what is the proper place to put scrollbarLineDec and scrollbarLineInc in order to update the text of a different object in the same line? or is there a better way to do this?