activate a function

activate a function

Postby Silvio.Falconi » 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 November 2023 - January 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
User avatar
Silvio.Falconi
 
Posts: 7056
Joined: Thu Oct 18, 2012 7:17 pm

Re: activate a function

Postby joseluisysturiz » Wed Apr 13, 2016 2:11 am

Yo lo hago con ON CHANGE, y lo condiciono asi

Code: Select all  Expand view

   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... :shock:
Dios no está muerto...

Gracias a mi Dios ante todo!
User avatar
joseluisysturiz
 
Posts: 2064
Joined: Fri Jan 06, 2006 9:28 pm
Location: Guatire - Caracas - Venezuela

Re: activate a function

Postby Silvio.Falconi » Wed Apr 13, 2016 7: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 November 2023 - January 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
User avatar
Silvio.Falconi
 
Posts: 7056
Joined: Thu Oct 18, 2012 7:17 pm

Re: activate a function

Postby joseluisysturiz » Wed Apr 13, 2016 3: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... :shock:
Dios no está muerto...

Gracias a mi Dios ante todo!
User avatar
joseluisysturiz
 
Posts: 2064
Joined: Fri Jan 06, 2006 9:28 pm
Location: Guatire - Caracas - Venezuela


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 82 guests