Como fazer inkey(0.3) em lib GUI ?

Projeto [x]Harbour - Compilador de código aberto compatível com o Clipper.

Moderador: Moderadores

Avatar do usuário
JoséQuintas
Administrador
Administrador
Mensagens: 20267
Registrado em: 26 Fev 2007 11:59
Localização: São Paulo-SP

Como fazer inkey(0.3) em lib GUI ?

Mensagem por JoséQuintas »

Não tinha pensado nisso.
Se inkey() é dependente de GT, como se faz isso em GUI ?

Por exemplo, muitíssimo importante:

Código: Selecionar todos

FUNCTION RecLock()

   DO WHILE ! RLock()
      Inkey(0.3)
   ENDDO

   RETURN RLock()
José M. C. Quintas
Harbour 3.2, mingw, gtwvg mt, fivewin 25.04, multithread, dbfcdx, MySQL, ADOClass, PDFClass, SefazClass, (hwgui mt), (hmg3), (hmg extended), (oohg), PNotepad, ASP, stored procedure, stored function, Linux (Flagship/harbour 3.2)
"The world is full of kings and queens, who blind our eyes and steal our dreams Its Heaven and Hell"

https://github.com/JoseQuintas/
Avatar do usuário
JoséQuintas
Administrador
Administrador
Mensagens: 20267
Registrado em: 26 Fev 2007 11:59
Localização: São Paulo-SP

Como fazer inkey(0.3) em lib GUI ?

Mensagem por JoséQuintas »

Ok, parece que hb_IdleSleep(0.3) faz isso.
Ainda não testei, afinal, primeiro precisa uma lib gui.
José M. C. Quintas
Harbour 3.2, mingw, gtwvg mt, fivewin 25.04, multithread, dbfcdx, MySQL, ADOClass, PDFClass, SefazClass, (hwgui mt), (hmg3), (hmg extended), (oohg), PNotepad, ASP, stored procedure, stored function, Linux (Flagship/harbour 3.2)
"The world is full of kings and queens, who blind our eyes and steal our dreams Its Heaven and Hell"

https://github.com/JoseQuintas/
Kapiaba
Colaborador
Colaborador
Mensagens: 1908
Registrado em: 07 Dez 2012 16:14
Localização: São Paulo
Contato:

Como fazer inkey(0.3) em lib GUI ?

Mensagem por Kapiaba »

Bom dia. Em FiveWin, é:

Código: Selecionar todos

   SysWait( .5 )
Regards, saludos.
alxsts
Colaborador
Colaborador
Mensagens: 3092
Registrado em: 12 Ago 2008 15:50
Localização: São Paulo-SP-Brasil

Como fazer inkey(0.3) em lib GUI ?

Mensagem por alxsts »

Olá!
Millisec()
Harbour implementation

Time delay in milliseconds

Syntax
Millisec(<nDelay>) → cNull

Arguments
nDelay Designates the number of milliseconds the function waits. You can specify values between 1 and 65535.

Returns
The Millisec() function always returns a null string.

Description
This function allows you to designate a time delay in milliseconds.

Examples

Pause for different time delays:

Código: Selecionar todos

Millisec(1)                 // 1 millisecond time delay
Millisec(100)               // 0.1 seconds
Millisec(1000)              // 1 second
Run 3.2Run 3.4
[]´s
Alexandre Santos (AlxSts)
Responder