Fórum Tab / Enter e ShellExecute na CLX. #157191
01/05/2003
0
:wink:
Olá amigos,
Gostaria de saber como substituo a tecla Tab pelo Enter e uso o comando ShellExecute na CLX.
Desde já agradeço.
Olá amigos,
Gostaria de saber como substituo a tecla Tab pelo Enter e uso o comando ShellExecute na CLX.
Desde já agradeço.
Pheletrons
Curtir tópico
+ 0
Responder
Posts
01/05/2003
Henry
Brother, veja la:
Utilize o evento onkeydown do componente e insira o seguinte comando:
if Key = VK_RETURN then Perform(Wm_NextDlgCtl,0,0);
este comando testa a tecla pressionada, se ela for um enter, manda o foco para o componente posterior.
Utilize o evento onkeydown do componente e insira o seguinte comando:
if Key = VK_RETURN then Perform(Wm_NextDlgCtl,0,0);
este comando testa a tecla pressionada, se ela for um enter, manda o foco para o componente posterior.
Responder
Gostei + 0
02/05/2003
Fbsouza
pheletrons,
Tenta isso ai
No evento Onkeypress coloque este código
Henry,
O seu código não irá funcionar pois o Perform não existe na CLX.
Tenta isso ai
No evento Onkeypress coloque este código
if key=#13 then SelectNext(Sender as tWidgetControl, True, True);
Henry,
O seu código não irá funcionar pois o Perform não existe na CLX.
Responder
Gostei + 0
Clique aqui para fazer login e interagir na Comunidade :)