Problems :hide() with ReDefine Folder - Antonio Linares

Problems :hide() with ReDefine Folder - Antonio Linares

Postby ericmagaldi » Mon Mar 19, 2007 7:12 pm

Olá Antonio.

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

Code: Select all  Expand view
...
       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
ericmagaldi
 
Posts: 37
Joined: Tue Feb 20, 2007 9:26 am
Location: São Paulo - Brazil

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

Postby Richard Chidiak » Mon Mar 19, 2007 7: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
User avatar
Richard Chidiak
 
Posts: 946
Joined: Thu Oct 06, 2005 7:05 pm
Location: France

Postby ericmagaldi » Mon Mar 19, 2007 7: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
User avatar
ericmagaldi
 
Posts: 37
Joined: Tue Feb 20, 2007 9:26 am
Location: São Paulo - Brazil

Postby Richard Chidiak » Mon Mar 19, 2007 7: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
User avatar
Richard Chidiak
 
Posts: 946
Joined: Thu Oct 06, 2005 7:05 pm
Location: France

Postby Antonio Linares » Mon Mar 19, 2007 8: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
User avatar
Antonio Linares
Site Admin
 
Posts: 41406
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 21 guests