Page 1 of 1

Folder enable

Posted: Wed Sep 19, 2018 11:33 am
by Silvio.Falconi
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 ?

Re: Folder enable

Posted: Wed Sep 19, 2018 1:59 pm
by ukoenig
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

Re: Folder enable

Posted: Wed Sep 19, 2018 2:40 pm
by Massimo Linossi
...

Re: Folder enable

Posted: Wed Sep 19, 2018 3:03 pm
by Silvio.Falconi
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 ?

Re: Folder enable

Posted: Wed Sep 19, 2018 3:09 pm
by Enrico Maria Giordano

Code: Select all | Expand

oFld:aEnable = { nScelta = 1, nScelta = 2, nScelta = 3 }


EMG

Re: Folder enable

Posted: Wed Sep 19, 2018 3:32 pm
by Silvio.Falconi
thanks enrico