Table of Contents
FAQ 5
How do I change other parameters, not just content?
changing the text format requires forcing rendering for that cell. since the text is only rendered once and cached, you would need to delete the property with the cached image from the cell in order to force a new rendering. this is currently not supported through a public call, however, the workaround would be to change the settings of that cell and call mSetCellContent. You can use the same text content, but since the script doesn't cross check the old content, it will render the text again with the new settings. Note, that this is only necessary if you change the text or the text settings of the cell. which requires new rendering. changing only colors, borders or spacing doesn't require a new text rendering and can be done via refresh cell.
here's an example to change the fontsize of a text:
spr = 7 -- first get the cell: -- either by index: c = sendSprite(spr, #mGetCellByIndex, [2,2], "ModalDialog") -- or by name c = sendSprite(spr, #mGetCellByName, "myCell_2_2", "ModalDialog") -- now change the fontsize c.myFontsize = 18 -- and now refresh sendSprite(spr, #mSetCellContent, c.row, c.column, c.myContent, void, void, "TableName")
