FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour activate a function
Posts: 7317
Joined: Thu Oct 18, 2012 07:17 PM
activate a function
Posted: Tue Apr 12, 2016 10:20 PM

I Have a big folder

@ 3, 4 FOLDEREX oFld PIXEL TRANSPARENT ;
ITEMS "&Cassa","Doc.","Clienti","Articoli","Utilità","Uscita";
SIZE 300,200 ;
TAB HEIGHT 120 ROUND 5 ;
BITMAPS aBitmaps

is it possible only when the user click on a tab call a function

sample if the user click on 3th tab it must call Clienti( oDlg,oFld,oBtnCust)

i ask this because I mean to open a dbf clienti only when the final user click on a specific tab of the folder and close this dbf when click on another tab

Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)

I use : FiveWin for Harbour March-April 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
Posts: 2064
Joined: Fri Jan 06, 2006 09:28 PM
Re: activate a function
Posted: Wed Apr 13, 2016 02:11 AM
Yo lo hago con ON CHANGE, y lo condiciono asi

Code (fw): Select all Collapse
   REDEFINE FOLDEREX oFldx ID 401 oF oDlg ;
      PROMPT "Datos 1", "Datos 2", "Datos 3" ;
      DIALOGS "pestaña1", "pestaña2", "pestaña3" ;
ON CHANGE ( IIF( oFldx:nOption == 3, tu_funcion(), ) )


saludos... :-)
Dios no está muerto...



Gracias a mi Dios ante todo!
Posts: 7317
Joined: Thu Oct 18, 2012 07:17 PM
Re: activate a function
Posted: Wed Apr 13, 2016 07:56 AM

ooppss
sorry, it was not for me...
yesterday some on email ask me this buty I not had time to think about and I inserted the message on forum....

Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)

I use : FiveWin for Harbour March-April 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
Posts: 2064
Joined: Fri Jan 06, 2006 09:28 PM
Re: activate a function
Posted: Wed Apr 13, 2016 03:59 PM
Silvio.Falconi wrote:ooppss
sorry, it was not for me...
yesterday some on email ask me this buty I not had time to think about and I inserted the message on forum....


Buen dia, no entendi tu respuesta, igual alli esta una solucion a lo que quieres hacer, para ti o para alguien mas del foro, saludos... :-)
Dios no está muerto...



Gracias a mi Dios ante todo!

Continue the discussion