datagrid problem with arrow btn
lists at mangomultimedia.com
Wed Sep 16 16:07:40 EDT 2009
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
> 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"
> 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
Blue Mango Learning Systems
Developer Resources: http://revolution.bluemangolearning.com
More information about the Use-livecode