Join The Works program to have access to the most current content, and to be able to ask questions and get answers from Revelation staff and the Revelation community

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

View this thread on the Works forum...

  • third_party_content/community/commentary/forums_works/b8ec063300048641187b24e00.txt
  • Last modified: 2023/12/30 11:57
  • by 127.0.0.1