FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Event handling
Posts: 1392
Joined: Mon May 14, 2007 09:49 AM
Event handling
Posted: Tue Oct 06, 2020 12:14 PM

Hi,

A POUP window opens in my program. If I click outside of this window, it will be hidden. I need to perform some actions while hiding this POPUP window. How can I help you do this ?

Posts: 6755
Joined: Wed Feb 15, 2012 08:25 PM
Re: Event handling
Posted: Tue Oct 06, 2020 12:20 PM
Try with

oWindow:bLostFocus := { || ...... }
Cristobal Navarro

Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noción del tiempo

El secreto de la felicidad no está en hacer lo que te gusta, sino en que te guste lo que haces
Posts: 1392
Joined: Mon May 14, 2007 09:49 AM
Re: Event handling
Posted: Tue Oct 06, 2020 12:38 PM

Does not work. This is NOWAIT window

Posts: 1392
Joined: Mon May 14, 2007 09:49 AM
Re: Event handling
Posted: Tue Oct 06, 2020 01:01 PM

This works via bNcActivate

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Event handling
Posted: Tue Oct 06, 2020 03:16 PM

very good!

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 6755
Joined: Wed Feb 15, 2012 08:25 PM
Re: Event handling
Posted: Tue Oct 06, 2020 04:57 PM

Can you give an example in your window control? Thank you

Cristobal Navarro

Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noción del tiempo

El secreto de la felicidad no está en hacer lo que te gusta, sino en que te guste lo que haces
Posts: 1392
Joined: Mon May 14, 2007 09:49 AM
Re: Event handling
Posted: Wed Oct 07, 2020 05:50 AM
Something like this:

Code (fw): Select all Collapse
 DEFINE DIALOG oWin  PIXEL  STYLE nOR(WS_POPUP) BRUSH oBru  TRANSPARENT
  ACTIVATE DIALOG oWin ON INIT Win_Ini() 

procedure Win_Ini
  DEFINE DIALOG oDlg  PIXEL   STYLE nOR(WS_POPUP) OF oWin
  ACTIVATE DIALOG oDlg NOWAIT

  oDlg:bNcActivate = { | lOnOff | iif( lOnOff, , MyFunction())}
return
Posts: 6755
Joined: Wed Feb 15, 2012 08:25 PM
Re: Event handling
Posted: Wed Oct 07, 2020 09:38 AM

Ok, but this not is a windows, is a dialog
Thanks

Cristobal Navarro

Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noción del tiempo

El secreto de la felicidad no está en hacer lo que te gusta, sino en que te guste lo que haces

Continue the discussion