Folder - Enable/disable

Post Reply
User avatar
SAOliveira
Posts: 17
Joined: Sat Nov 05, 2011 8:56 am

Folder - Enable/disable

Post by SAOliveira »

it´s possible leave some tabs enable and other disable.
Image
SAOliveira
Lins/SP - Brasil
User avatar
Rick Lipkin
Posts: 2397
Joined: Fri Oct 07, 2005 1:50 pm
Location: Columbia, South Carolina USA

Re: Folder - Enable/disable

Post by Rick Lipkin »

SAOliveira

This code should work .. notice also I have colored the folder Grey to visually give the disabled look with aColorDis.

Rick Lipkin

Code: Select all

aColorDis := { { 1, nRGB( 190, 190, 190), nRGB( 211, 211, 211 ) } }

oFld:DisableTab( 2 )
oFld:aGradDis := aColorDis

oFld:DisableTab( 3 )
oFld:aGradDis := aColorDis
 
User avatar
Richard Chidiak
Posts: 946
Joined: Thu Oct 06, 2005 7:05 pm
Location: France
Contact:

Re: Folder - Enable/disable

Post by Richard Chidiak »

You can also write it this way

oFld:aEnable[2]:=.F. // this will disable tab 2

Richard
http://www.cbati.com

Uestudio
Fwh 13.05 Harbour 3.2 MSVC 2013
User avatar
joseluisysturiz
Posts: 2024
Joined: Fri Jan 06, 2006 9:28 pm
Location: Guatire - Caracas - Venezuela
Contact:

Re: Folder - Enable/disable

Post by joseluisysturiz »

Try, oFolder:aEnable[.t., .t., .f., .t., .f.], saludos... :shock:
Dios no está muerto...

Gracias a mi Dios ante todo!
User avatar
SAOliveira
Posts: 17
Joined: Sat Nov 05, 2011 8:56 am

Re: Folder - Enable/disable (solved)

Post by SAOliveira »

Richard Chidiak, Rick Lipkin

Tank´s
SAOliveira
Lins/SP - Brasil
Post Reply