datagrid problem with arrow btn

Yves COPPE yvescoppe at skynet.be
Wed Sep 16 16:31:54 EDT 2009


Le 16-sept.-09 à 22:07, Trevor DeVore a écrit :

> On Sep 16, 2009, at 4:00 PM, Yves COPPE wrote:
>
>> I want to close or open all the arrows at once
>> so my script is
>>
>> dgmouseDown
>>  if pmouseBtnNum is "1" then
>>     if the short name of the target is "arrow" then
>>      if the optionKey is "down" then
>>      put the dgData of group "DataGrid historique" into theData
>>      repeat for each key tkey in theData
>>         put "false" into theData[tKey]["expanded"]
>>     end repeat
>>     set the dgData of of group "DataGrid historique" to theData
>>     send "ResetList" to group "DataGrid historique"
>>  else
>>  ...
>>
>> it doesn't work !
>>
>> what is wrong ?
>
> It probably because you are trying to redraw the data grid from  
> inside an event that was sent to a data grid control. The engine  
> doesn't like it when you try to delete a control that is processing  
> an event.
>
> What Sorts of Things Should I Not Do In Order To Avoid Needless  
> Suffering?: <http://revolution.screenstepslive.com/spaces/revolution/manuals/datagrid/lessons/3093-What-Sorts-of-Things-Should-I-Not-Do-In-Order-To-Avoid-Needless-Suffering- 
> >
>
>


Re,

So, there is no solution ?????

Thanks for your quick reply

Greetings.

Yves COPPE
yvescoppe at skynet.be




More information about the use-livecode mailing list