Re: How to make TextBox read only but look normal
- Posted by Thomas Jul 06, 2009
- 1382 views
AndyDrummond said...
Dan_M said...
Your way, though I guess it works, seems more like using an Elephant gun to shoot a mouse
Dan
<snip>
I'll look forward to seeing if we do find this "proper" way, though .... and seeing if it IS easier!
Andy :)
Hi, Try this code.
integer set, ok set = 0 procedure PushButton4_onClick (integer self, integer event, sequence params) -- http://msdn.microsoft.com/en-us/library/bb761655%28VS.85%29.aspx ok = sendMessage(EditText3, EM_SETREADONLY, set, 0) set = not set end procedure setHandler( PushButton4, w32HClick, routine_id("PushButton4_onClick"))