I have a data grid that displays text lines that can be toggled as wrapped lines and non-wrapped lines.
I'm using this script:
Code: Select all
on mouseUp --toggle dontWrap t/f
lock screen
put not the dgProp["fixed row height"] of grp "DataGrid 1" into tNewSetting
set the dgProp["fixed row height"] of grp "DataGrid 1" to tNewSetting --toggle t/f fixed line height
set the dontWrap of fld "Label" of grp "Row Template 0001" of grp "dgList" of grp "dgListMask" of grp "DataGrid 1" to tNewSetting
set the dgVScroll of grp "DataGrid 1" to "0" --top
send "RefreshList" to grp "DataGrid 1" --update changes
end mouseUp
When testing (see the attached stack) click first on the button "Insert Data". Then test the wrapping.
Also another strange behavior is that when you click on the button 'Insert Data' while the lines are in Wrapping on view, then they all collapse to non-wrapped view but not fully, then click on 'Wrap o/x' button and they will contract sort of little more and then again after clicking on Wrap button they will expand.
Is all this due to wrong code or simply a bug in LC?
(using LC Community 6.5.2 on Win 7 Home Premium, 64bit, Intel i3, with 4 GB Ram)
keram