Jmsilva Posted February 28, 2019 Report Share Posted February 28, 2019 Olá Pessoal, por acaso alguém sabe como mudar a cor da fonte do @Get, quando clausula WHEN for igual a .F., por padrão ela vem cinza claro! Resumo: Mudar a cor da letra para get desabilitado. JMSILVA xHarbour/FWH 17.05 Caraguatatuba/SP Quote Link to comment Share on other sites More sharing options...
ADutheil Posted February 28, 2019 Report Share Posted February 28, 2019 Eu tentaria algo do tipo oGet:lDisColors := .F. oGet:nClrTextDis := CLR_WHITE // Cor texto oGet:nClrPaneDis := CLR_BLUE // Cor fundo Quote Link to comment Share on other sites More sharing options...
Jmsilva Posted February 28, 2019 Author Report Share Posted February 28, 2019 Eu tentaria algo do tipo oGet:lDisColors := .F. oGet:nClrTextDis := CLR_WHITE // Cor texto oGet:nClrPaneDis := CLR_BLUE // Cor fundo @ADutheil, É exatamente o que preciso! Funcionou corretamente! Obrigado! abraço! Quote Link to comment Share on other sites More sharing options...
Jmsilva Posted March 11, 2019 Author Report Share Posted March 11, 2019 Para a classe TMultiGet, tem como fazer algo parecido com dica do @ADutheil para classe TGet? Quote Link to comment Share on other sites More sharing options...
kapiaba Posted March 11, 2019 Report Share Posted March 11, 2019 Acho difícil, mas tente mudar a MGET.PRG: veja a TGET.PRG CLASSDATA lDisColors INIT .T. // Use standard disabled colors CLASSDATA lClrFocus INIT .F. // change GET color when focused CLASSDATA nClrFocus INIT nRGB( 235, 235, 145 ) // color to use when GET is focused and lClrFocus is .T. CLASSDATA lChangeCaret INIT .T. CLASSDATA nClrGrayText INIT 17 // COLOR_GRAYTEXT CLASSDATA lDefaultANSI INIT .f. CLASSDATA bColorBlock Quote Link to comment Share on other sites More sharing options...
aferra Posted March 11, 2019 Report Share Posted March 11, 2019 Use a clausula ReadOnly Quote Link to comment Share on other sites More sharing options...
Jmsilva Posted March 11, 2019 Author Report Share Posted March 11, 2019 Use a clausula ReadOnly Para o que eu quero, não fica legal! já testei! Valeu! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.