Problems :hide() with ReDefine Folder - Antonio Linares

Post Reply
User avatar
ericmagaldi
Posts: 37
Joined: Tue Feb 20, 2007 9:26 am
Location: São Paulo - Brazil
Contact:

Problems :hide() with ReDefine Folder - Antonio Linares

Post by ericmagaldi »

Olá Antonio.

Como fazer para ocultar uma guia do TFolder ?
Sem precisar eliminar/recarregar.

Code: Select all

...
       Redefine FOLDER oFld ;
                ID 4003     ;
                OF ::oDlgCliente ;
                ITEMS 'Gera&l', '&Pessoa Física', '&Endereços', 'Dados &Fiscais' ;
                DIALOGS 'CDT_CLIENTE_GERAL', 'CDT_CLIENTE_FISICA', 'CDT_CLIENTE_ENDERECO', 'CDT_CLIENTE_FISCAL'

...
    // Isso não funciona
     oFld:aDialogs[2]:Hide()
Obrigado.
virtually,
Éric
xHarbour.org + Borland C + FiveWin (2.8/6.12) + Pelles C + HBMake + ADSCDX
São Paulo - Brasil
http://xBaseSuporte.freeforums.org
User avatar
Richard Chidiak
Posts: 946
Joined: Thu Oct 06, 2005 7:05 pm
Location: France
Contact:

Re: Problems :hide() with ReDefine Folder - Antonio Linares

Post by Richard Chidiak »

Eric

Try something like this

oFld:aEnable[2]:=.F.

Hth

Richard
http://www.cbati.com

Uestudio
Fwh 13.05 Harbour 3.2 MSVC 2013
User avatar
ericmagaldi
Posts: 37
Joined: Tue Feb 20, 2007 9:26 am
Location: São Paulo - Brazil
Contact:

Post by ericmagaldi »

Obrigado Richard

A minha necessidade é ocultar, e não desabilitar.
virtually,
Éric
xHarbour.org + Borland C + FiveWin (2.8/6.12) + Pelles C + HBMake + ADSCDX
São Paulo - Brasil
http://xBaseSuporte.freeforums.org
User avatar
Richard Chidiak
Posts: 946
Joined: Thu Oct 06, 2005 7:05 pm
Location: France
Contact:

Post by Richard Chidiak »

Eric

I understand

I have not found how to hide a folder dialog neither. What i do is the following

local dlib

Redefine FOLDER oFld ;
ID 4003 ;
OF ::oDlgCliente ;
ITEMS 'Gera&l', dlib, '&Endereços', 'Dados &Fiscais' ;
DIALOGS 'CDT_CLIENTE_GERAL', 'CDT_CLIENTE_FISICA', 'CDT_CLIENTE_ENDERECO', 'CDT_CLIENTE_FISCAL'


If
dlib := ....
else
dlib := nil
oFld:aEnable[2]:=.F.
endif

the title is not visible though the "place allocated" for the dialog does not disappear.

HTH

Richard
http://www.cbati.com

Uestudio
Fwh 13.05 Harbour 3.2 MSVC 2013
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

Éric,

The Windows API does not provide a function to hide a tab of the folder.

You may need to rebuild it again without such tab
regards, saludos

Antonio Linares
www.fivetechsoft.com
Post Reply