FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Problems :hide() with ReDefine Folder - Antonio Linares
Posts: 37
Joined: Tue Feb 20, 2007 09:26 AM

Problems :hide() with ReDefine Folder - Antonio Linares

Posted: Mon Mar 19, 2007 07:12 PM
Olá Antonio.

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

...
       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
Posts: 946
Joined: Thu Oct 06, 2005 07:05 PM

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

Posted: Mon Mar 19, 2007 07:39 PM

Eric

Try something like this

oFld:aEnable[2]:=.F.

Hth

Richard

http://www.cbati.com

Uestudio
Fwh 13.05 Harbour 3.2 MSVC 2013
Posts: 37
Joined: Tue Feb 20, 2007 09:26 AM

Problems :hide() with ReDefine Folder - Antonio Linares

Posted: Mon Mar 19, 2007 07:43 PM

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
Posts: 946
Joined: Thu Oct 06, 2005 07:05 PM

Problems :hide() with ReDefine Folder - Antonio Linares

Posted: Mon Mar 19, 2007 07:57 PM

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
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM

Problems :hide() with ReDefine Folder - Antonio Linares

Posted: Mon Mar 19, 2007 08:18 PM

É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

Continue the discussion