FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Detect any activity of a window?
Posts: 1387
Joined: Fri May 23, 2008 01:33 PM
Detect any activity of a window?
Posted: Wed Dec 14, 2022 01: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.06
Posts: 1816
Joined: Wed Oct 26, 2005 02:49 PM
Re: Detect any activity of a window?
Posted: Wed Dec 14, 2022 02:11 PM
Saludos
LEANDRO AREVALO
Bogotá (Colombia)
https://hymlyma.com
https://hymplus.com/
leandroalfonso111@gmail.com
leandroalfonso111@hotmail.com

[ Turbo Incremental Link64 6.98 Embarcadero 7.70 ] [ FiveWin 25.01 ] [ xHarbour 64 bits) ]
Posts: 1387
Joined: Fri May 23, 2008 01:33 PM
Re: Detect any activity of a window?
Posted: Wed Dec 14, 2022 02: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.06
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Detect any activity of a window?
Posted: Wed Dec 14, 2022 02: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
Posts: 8515
Joined: Tue Dec 20, 2005 07:36 PM
Re: Detect any activity of a window?
Posted: Wed Dec 14, 2022 03: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

Continue the discussion