FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour assign an action to normal folder class
Posts: 7317
Joined: Thu Oct 18, 2012 07:17 PM
assign an action to normal folder class
Posted: Fri Jan 07, 2022 07:57 AM
I have seen that the Folderex class has a baction method so it seems easy to assign an action when the user selects a specified tab.

Code (fw): Select all Collapse
 @0,0 FOLDEREX oFolder PROMPTS aFolder 
...

 oFolder:bAction := { || IF(oFolder:nOption=3 .or. oFolder:nOption=6 ,;
                         (oDlg:nHeight:=400,oDlg:Move( aPt[ 1 ] , aPt[ 2 ] )),;
                         (oDlg:nHeight:=680,oDlg:Move( aPt[ 1 ] , aPt[ 2 ] )) ) }



Is it possible to do the same thing with the normal Foder ( nofolderex) ?
I saw that the SetOption () method exists, but then I can't get it to work when the user presses a specified folder 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: 4840
Joined: Fri Nov 18, 2005 04:52 PM
Re: assign an action to normal folder class
Posted: Wed Jan 12, 2022 04:51 PM

Silvio,

Why not just used folders?

See fldxbrw.prg in the \samples folder for an example.

You can open all the databases at the start of the program, then you just click on the folder you want.

James

FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10
Posts: 7317
Joined: Thu Oct 18, 2012 07:17 PM
Re: assign an action to normal folder class
Posted: Wed Jan 12, 2022 06:05 PM

because I must make a dialog of configuration without databases and I need to have a normal folder because I not wish use folderex class

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: 6755
Joined: Wed Feb 15, 2012 08:25 PM
Re: assign an action to normal folder class
Posted: Thu Jan 13, 2022 12:48 PM
Try with bChange DATA ( parameters: nOption, nOldOption )
Code (fw): Select all Collapse
   oFld:bChange := { | nOpt, nOldOpt | ..... }
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