I read numerous posts that discuss the use of Send_Message COLSTYLE to set an edittable cell to protected, but is there a way to use Get_Property (or equivalent) to determine if the SELPOS cell IS protected?
Thanks
Greg,
If you look at the sample code for the STYLE property in the Programmer's Reference Guide you'll see an example on how to test for a style setting using the BitAnd operator.
Don,
I looked at the STYLE property as you suggested, but I am still not clear on its application. I have an edit table with 5 columns. The first two columns are not protected, but the last three are.
I am trying to develop a routine to allow users to delete (via a hot-key, e.g., Shift-F4) the contents of the SELPOS cell in an edittable. I want my code to first, find out where the SELPOS is in the edit table, check to see if the cell is protected or not, and then delete or not delete the cell contents accordingly.
From the description of the STYLE property in the Programmer's Reference Manual, it doesn't appear that the STYLE property can return this information.
Any advice on how I should proceed?
Thanks.
I understand how to find out if an edit line is enabled/disabled, but how can I find out if the edit line in read-only or not?
Greg,
You get the COLSTYLE for the column in question, then plug that value into the sample code I was referring you to.
Greg,
Use the same method I suggested for the protected cell, only use the appropriate style for ES_READONLY which appears to be 2048.