EditTable Checkbox (OpenInsight 32-bit)
At 06 FEB 2012 03:11:38PM Bruce Cameron wrote:
Is it possible to dynamically set a checkbox in specific edittable cells?
For example:
If I have 10 rows of data in the edittable, I may only want rows 3, 5, 7 to have a checkbox option in column 4.
Thanks
At 13 FEB 2012 02:33AM Stefano Cavaglieri wrote:
Yes, the following code snippet will do the trick on column 4, row 3:
origColStyle = Send_Message(EditTable, "STYLE_BY_POS", 4, 3)newColStyle = bitor(origColStyle, DTCS_CHECKBOX$)ColStyle = Send_Message(EditTable, "STYLE_BY_POS", 4, 3, newColStyle)For a complete description of all options, please have a look at STYLE_BY_POS message in the OpenInsight help system.
Hope it helps,
Stefano