Re: How to make TextBox read only but look normal

new topic     » goto parent     » topic index » view thread      » older message » newer message
AndyDrummond said...
Dan_M said...

Your way, though I guess it works, seems more like using an Elephant gun to shoot a mouse smile

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")) 
 
new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu