Re: How to make TextBox read only but look normal

new topic     » goto parent     » topic index » view thread      » older message » newer message

If you use setEnable(), then you have to adjust the background color afterwards...

setWindowBackColor( ctrl, getSysColor(COLOR_WINDOW) )

You could wrap it into one whole function...

global procedure setEnable2( integer edit, integer state )
 
    setEnable( edit, state ) 
    setWindowBackColor( edit, getSysColor(COLOR_WINDOW) ) 
 
end procedure 

-Greg

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu