gilbrodrigues Posted June 5, 2012 Report Share Posted June 5, 2012 Bom dia e obrigado a TODOS. bom, nao estou conseguindo alterar o modo de um botao: na linha que tem obotao:disabled() causa erro Warning BASE/1004 Message not found: HBUTTONEX:DISABLED HwGUI 2.17 xHarbour build 1.2.1 Intl. (SimpLex) (Rev. 6633) Editado por - gilbrodrigues on 07/06/2012 10:32:59 Quote Link to comment Share on other sites More sharing options...
gilbrodrigues Posted June 5, 2012 Author Report Share Posted June 5, 2012 Bom dia e obrigado a TODOS. bom, nao estou conseguindo alterar o modo de um botao: na linha que tem obotao:disabled() causa erro Warning BASE/1004 Message not found: HBUTTONEX:DISABLED HwGUI 2.17 xHarbour build 1.2.1 Intl. (SimpLex) (Rev. 6633) Editado por - gilbrodrigues on 07/06/2012 10:32:59 Quote Link to comment Share on other sites More sharing options...
kapiaba Posted June 5, 2012 Report Share Posted June 5, 2012 Mostre o codigo. João Santos - São Paulo. joao@pleno.com.br Fone: (11) 3106-2832 / 5150-7341 - TIM https://www.facebook.com/kapiaba FWH 2.7 - xHARBOUR WorkShop.Exe Quote Link to comment Share on other sites More sharing options...
gilbrodrigues Posted June 5, 2012 Author Report Share Posted June 5, 2012 Aqui se o login ou usuario estiverem em branco um botao sera desabilitado e nao estara disponivel ********************************************* FUNCTION Acessa1(cLogin,cSenha,botao) // botao é passado por referencia (@botao) IF EMPTY(cLogin) .OR. EMPTY(cSenha) msginfo("Identificação de acesso invalida !","Aviso") botao:disabled() oDlg:refresh() ENDIF RETURN NIL Editado por - gilbrodrigues on 05/06/2012 12:26:59 Quote Link to comment Share on other sites More sharing options...
kapiaba Posted June 5, 2012 Report Share Posted June 5, 2012 Mostre linha do botao que dispara para: FUNCTION Acessa1(cLogin,cSenha,botao) botao:disabled() botao:refresh() oDlg:refresh() //?? oDlg é STATIC?? nao está vindo por referencia. abs João Santos - São Paulo. joao@pleno.com.br Fone: (11) 3106-2832 / 5150-7341 - TIM https://www.facebook.com/kapiaba FWH 2.7 - xHARBOUR WorkShop.Exe Quote Link to comment Share on other sites More sharing options...
gilbrodrigues Posted June 5, 2012 Author Report Share Posted June 5, 2012 @ 156,151 BUTTONEX oButtonex1 CAPTION "OK" SIZE 98,46 ; STYLE BS_CENTER +WS_TABSTOP ; ON CLICK {|| Acessa1(cLogin,cSenha,@oButtonex1) } SIM, a variavel do form esta como STATIC Quote Link to comment Share on other sites More sharing options...
kapiaba Posted June 5, 2012 Report Share Posted June 5, 2012 @ 156,151 BUTTONEX oButtonex1 CAPTION "OK" SIZE 98,46 ; STYLE BS_CENTER +WS_TABSTOP ; ON CLICK {|| Acessa1( cLogin, cSenha, oButtonex1 ) } ou ACTION( Acessa1( cLogin, cSenha, oButtonex1 ) ) oButtonex1 -> É LOCAL?? FUNCTION Acessa1( cLogin, cSenha, oButtonex1 ) oButtonex1:Disable() // errei, postei disabled() oButtonex1:Refresh() Não precisa refrescar o DIALOGO, refresque o botao. João Santos - São Paulo. joao@pleno.com.br Fone: (11) 3106-2832 / 5150-7341 - TIM https://www.facebook.com/kapiaba FWH 2.7 - xHARBOUR WorkShop.Exe Editado por - kapiaba on 05/06/2012 13:10:40 Editado por - kapiaba on 05/06/2012 14:43:31 Quote Link to comment Share on other sites More sharing options...
Erciley Junior Posted June 5, 2012 Report Share Posted June 5, 2012 Man, não é Disabled, e sim Disable() e não precisa fazer Refresh após o Disable(), acho que já é feito internamente *------------- EDIT *------------- ops, não eh button, então pode ser disabled mesmo, mas teste aà sem o D ^^ Erciley Junior (FWH8.01 + SQLLIB 1.9d + xHB 1.10 + xDev 0.65 + @SAY) NÃO ABANDONE O POST, QUEREMOS SABER SE SUA DÚVIDA/PROBLEMA TEVE SOLUÇÃO Editado por - eco_fw on 05/06/2012 14:09:45 Quote Link to comment Share on other sites More sharing options...
gilmer Posted June 6, 2012 Report Share Posted June 6, 2012 Qual versão do fivewin você tem!? e-mail: gilmer@fivewin.com.br msn: fivewinbrasil@hotmail.com Quote Link to comment Share on other sites More sharing options...
gilbrodrigues Posted June 7, 2012 Author Report Share Posted June 7, 2012 eco_fw, FUNCIONOU DISABLE() e nao DISABLED() HwGUI 2.17 xHarbour build 1.2.1 Intl. (SimpLex) (Rev. 6633) Quote Link to comment Share on other sites More sharing options...
sygecom Posted June 7, 2012 Report Share Posted June 7, 2012 Gilberto, Post suas duvidas sobre Hwgui em: http://www.pctoledo.com.br/forum/viewforum.php?f=46 Leonardo Machado Alvorada-RS Hwgui + x[H]arbour leonardodemachado@hotmail.com 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.