Detect any activity of a window?

Detect any activity of a window?

Postby Horizon » Wed Dec 14, 2022 1:40 pm

Hi,

I have a buttonbar and panel in a window. I use webview in panel. I can use eval class with webview.

I wonder Can I detect any manuel activity in this panel to reset timeout time.

Thanks.
Regards,

Hakan ONEMLI

Harbour & MSVC 2022 & FWH 23.04
Horizon
 
Posts: 1322
Joined: Fri May 23, 2008 1:33 pm

Re: Detect any activity of a window?

Postby leandro » Wed Dec 14, 2022 2:11 pm

Saludos
LEANDRO AREVALO
Bogotá (Colombia)
https://hymlyma.com
https://hymplus.com/
leandroalfonso111@gmail.com
leandroalfonso111@hotmail.com

[ Embarcadero C++ 7.60 for Win32 ] [ FiveWin 23.07 ] [ xHarbour 1.3.0 Intl. (SimpLex) (Build 20230914) ]
User avatar
leandro
 
Posts: 1676
Joined: Wed Oct 26, 2005 2:49 pm
Location: Colombia

Re: Detect any activity of a window?

Postby Horizon » Wed Dec 14, 2022 2:42 pm

Thank you very much for your answer.

But, I have more than once windows in my application. I just want to detect only one window. Not all my application.
Regards,

Hakan ONEMLI

Harbour & MSVC 2022 & FWH 23.04
Horizon
 
Posts: 1322
Joined: Fri May 23, 2008 1:33 pm

Re: Detect any activity of a window?

Postby Antonio Linares » Wed Dec 14, 2022 2:57 pm

Dear Hakan,

You could use oWindow:bMMoved to check if the mouse was moved over the window
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42122
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Detect any activity of a window?

Postby karinha » Wed Dec 14, 2022 3:10 pm

Buen día. Puedes usar la función indicada por Leandro, solo modifícala para que "suelte" la ventana o diálogo. En lugar de usar QUIT, use RETURN NIL, o "mate" todo el sistema y reinícielo con .BAT. Tu imaginación es el limite. Prueba y mira con tus propios ojos por favor.

Good Morning. You can use the function indicated by Leandro, just modify it so that it "drops" the window or dialog. Instead of using QUIT, use a RETURN NIL, or "kill" the whole system and restart it with a .BAT. Your imagination is the limit. Test and see with your own eyes please.

Si no sabe cómo reiniciar el sistema con un .BAT, hágamelo saber y le haré una DEMO, ¿de acuerdo?

If you don't know how to restart the system with a .BAT, please let me know and I'll make a DEMO for you, ok?

Regards, saludos.
João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341
User avatar
karinha
 
Posts: 7835
Joined: Tue Dec 20, 2005 7:36 pm
Location: São Paulo - Brasil


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 99 guests