Folder enable

Folder enable

Postby Silvio.Falconi » 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 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: 7076
Joined: Thu Oct 18, 2012 7:17 pm

Re: Folder enable

Postby ukoenig » Wed Sep 19, 2018 1: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 :D
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.
User avatar
ukoenig
 
Posts: 4043
Joined: Wed Dec 19, 2007 6:40 pm
Location: Germany

Re: Folder enable

Postby Massimo Linossi » Wed Sep 19, 2018 2:40 pm

...
Last edited by Massimo Linossi on Wed Sep 19, 2018 5:44 pm, edited 1 time in total.
User avatar
Massimo Linossi
 
Posts: 500
Joined: Mon Oct 17, 2005 10:38 am
Location: Italy

Re: Folder enable

Postby Silvio.Falconi » Wed Sep 19, 2018 3: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 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: 7076
Joined: Thu Oct 18, 2012 7:17 pm

Re: Folder enable

Postby Enrico Maria Giordano » Wed Sep 19, 2018 3:09 pm

Code: Select all  Expand view  RUN
oFld:aEnable = { nScelta = 1, nScelta = 2, nScelta = 3 }


EMG
User avatar
Enrico Maria Giordano
 
Posts: 8719
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: Folder enable

Postby Silvio.Falconi » Wed Sep 19, 2018 3:32 pm

thanks enrico
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: 7076
Joined: Thu Oct 18, 2012 7:17 pm


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot], JoséQuintas and 55 guests