Re: How to make TextBox read only but look normal
- Posted by Dan_M Jul 06, 2009
- 1314 views
AndyDrummond said...
Dan_M said...
but in this method, couldn't app user still PASTE into the text box?
dan
You're probably right. I wasn't thinking that way. I'm not sure how you could intercept this process; maybe w32HChange would be a better one. I'm not sure if it would be called prior to the change being executed. I suppose I shall have to try it myself now! Back later if I have any answers...
Andy
That's why I thought it would be best to just initially make the edit text a "read only", and then use "removeStyle(EditId,ES_READONLY) to allow editing. Only problem (!) is that it doesn't seem to work, though I can't see why not.
dan