Fórum Aguarda tecla para continuar... #254630
15/10/2004
0
valeu i!!!
Dorivansousa
Curtir tópico
+ 0Posts
15/10/2004
Paulo_amorim
Pode-se colocar no KeyPress um comando Exit;
Assim, quando ele clicar em alguma coisa o Form fechará
Até+
Gostei + 0
15/10/2004
Marcelo Saviski
while GetKeyState(VK_RETURN) >= 0 do ; //Só o ";" mesmo, sem nenhum código
Gostei + 0
15/10/2004
Dorivansousa
Gostei + 0
16/10/2004
Rômulo Barros
... Public byPodeSair : Byte; ... EventoOnKeyPressDoEdit Begin If(Not(Key In [´0´..´9´]))Then Begin Inc(byPodeSair); If((Key = 13)And(Trim((Sender As TEdit).Text) <> ´´))Then Begin Self.Close(); Repeat Application.ProcessMessage(); Until(byPodeSair = 2); End; End; End;
Gostei + 0
Clique aqui para fazer login e interagir na Comunidade :)