filizola Posted May 2, 2004 Report Share Posted May 2, 2004 olá amigos, quando inicio um dialog tenho quatro botoes: GRAVAR(no on init do dialog ele é BTNGRAVAR:DISABLE) EDITAR LISTAR SAIR o get pára no primeiro campo, quero que quando eu digitar o primeiro caracter uma funcao seja ativada para que possa fazer o seguinte, BTNGRAVAR:ENABLE(),BTNEDITAR:DISABLE(),BTNLISTAR:DISABLE() Quote Link to comment Share on other sites More sharing options...
rubensma Posted May 2, 2004 Report Share Posted May 2, 2004 Ola, Vc pode usar a clausula ON CHANGE p/executar a função exemplo c/ Workshop the best: REDEFINE GET oGet1 VAR cGet1 ID 101 OF oDlg ; ON CHANGE ( suafuncao() , oGet1:setfocus() ) Faça a função p/ajustar os botoes como quer. Não esqueça de voltar o foco p/o get em uso. Uso assim e funciona, se alguem souber diferente, por favor.. Abraços, Rubens Quote Link to comment Share on other sites More sharing options...
filizola Posted May 2, 2004 Author Report Share Posted May 2, 2004 rubens tentei utilizar assim porem quando digito a primeira letra do get o program executa a funcao mas nao me retorna a letro digitada, aà tenho que digitá-la novamente. Quote Link to comment Share on other sites More sharing options...
filizola Posted May 2, 2004 Author Report Share Posted May 2, 2004 valeu rubens, fazendo da forma que vc disse funcionou perfeitamente, obrigado. 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.