Re: How to make TextBox read only but look normal
- Posted by ArthurCrump Jul 06, 2009
- 1368 views
This reply is not concerned with the colours of an EditText box but only with the differences between the two principle methods suggested for setting READONLY.
Disabling the box using setEnable will result in a box which will not receive focus. It is not then possible to read from the box, so it cannot really be described as "Read Only".
sendMessage(EditText3,EM_SETREADONLY,True,0)
as suggested by Thomas results in a box which cannot be altered but which can receive focus. It is possible to select a section of input and read from it, but not to delete any of it or alter it.
The question is: Which behaviour do you want?
As for colours; they may be altered if required, I don't care.