FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Folder enable
Posts: 7318
Joined: Thu Oct 18, 2012 07:17 PM

Folder enable

Posted: Wed Sep 19, 2018 11:33 AM

I have a folder I I wish show only one folder and enable the others
but I not Know the nOption selected
sample :

function Configurazione(nscelta)

....

@ 2.3, 2 FOLDER oFld PIXEL ADJUST ;
ITEMS "&Dati della scuola","Parametri Generali",;
"Calcolo","Orario delle lezioni","Ore per giorno","Assenze";
SIZE 235,190

oFld:nOption:=nscelta

there is a method to enable the others or I made Case endcase ?

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: 4043
Joined: Wed Dec 19, 2007 06:40 PM

Re: Folder enable

Posted: Wed Sep 19, 2018 01:59 PM
Silvio,

I wish show only one folder and enable the others


I think You mean folderpages
You can use any of these options :

DisableTab( nOption )
EnableTab( nOption )

or
HideTab( nOption )
ShowTab( nOption )


it works with TFoldex

regards
Uwe :-)
Since 1995 ( the first release of FW 1.9 )

i work with FW.

If you have any questions about special functions, maybe i can help.
Posts: 512
Joined: Mon Oct 17, 2005 10:38 AM

Re: Folder enable

Posted: Wed Sep 19, 2018 02:40 PM

...

Posts: 7318
Joined: Thu Oct 18, 2012 07:17 PM

Re: Folder enable

Posted: Wed Sep 19, 2018 03:03 PM
Massimo Linossi wrote:oFld:aEnable := {.T.,.T.,.F.}


clap clap ....I Know it ...

I mean another argument

I not Know the nOption value and the user select it from a menu

when I open the folder I must show only that tab and block the others

I must make type
case nscelta = 1
oFld:aEnable := {.T.,.f.,.F.}
case nscelta = 2
oFld:aEnable := {.F.,.t.,.F.}

or exist another method ?
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: 9022
Joined: Thu Oct 06, 2005 08:17 PM

Re: Folder enable

Posted: Wed Sep 19, 2018 03:09 PM
Code (fw): Select all Collapse
oFld:aEnable = { nScelta = 1, nScelta = 2, nScelta = 3 }


EMG
Posts: 7318
Joined: Thu Oct 18, 2012 07:17 PM

Re: Folder enable

Posted: Wed Sep 19, 2018 03:32 PM

thanks enrico

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

Continue the discussion