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 24 NOV 2008 01:35:50PM John Bouley wrote:

I am trying to determine if an ET is protected or not by using this code:

Equate WM_User$ to 1024

equate DTM_GETEDITHWND$ to (WM_USER$+171)

ETHandle=get_property( ctrlEntID, "HANDLE" )

ETProtected=SendMessage( etHandle, DTM_GETEDITHWND$, 0, 0 )

debug

No matter what ET is looked at ETProtected is always 0.

Any ideas?

Thanks,

John


At 24 NOV 2008 01:46PM John Bouley wrote:

Never mind.

I found another sample that actually works…

style=iconv( Get_Property( ctrlEntID, "STYLE")3,\00\,"MX" )

ETProtected=( bitAnd( style, DTS_EDIT$) # 0 )

Thanks,

John

View this thread on the Works forum...

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