Jump to content
Fivewin Brasil

acionar funcao 1o. caracter digitado


filizola

Recommended Posts

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()

Link to comment
Share on other sites

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

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...