Anyway to hide oBar when using Xbrowser? Or is there anyway to hide most buttons of oBar?
TIA
Xbrowser - how to not display oBar?
Xbrowser - how to not display oBar?
FWH 11.08/FWH 19.12
BCC5.82/BCC7.3
xHarbour/Harbour
BCC5.82/BCC7.3
xHarbour/Harbour
- FranciscoA
- Posts: 2159
- Joined: Fri Jul 18, 2008 1:24 am
- Location: Chinandega, Nicaragua, C.A.
Re: Xbrowser - how to not display oBar?
//Ocultar botones del XBROWSER
Saludos.
Code: Select all | Expand
XBROWSER cAlias TITLE cTit ;
COLUMNS "Td", "Fechemis", "NumDoc", "CodiCont", "Nombre", "Debe", "Haber", "Concepto", "Benefi", "Import" ;
SHOW SLNUM ;
SETUP ( oBrw:nHeadStrAligns := AL_CENTER ,;
oBrw:lFooter := .t. ,;
oBrw:Debe:nFooterType := AGGR_TOTAL, oBrw:Debe:cEditPicture := "@Z 99,999,999,999.99" ,;
oBrw:Haber:nFooterType := AGGR_TOTAL, oBrw:Haber:cEditPicture := "@Z 99,999,999,999.99" ,;
oBrw:MakeTotals() ,;
oBrw:bPrint := {|| MiraImpr(cTit) } ,;
oBrw:oWnd:bInit := { |oDlg| oDlg:aControls[ 5 ]:Hide() ,; // Btn Agr
oDlg:aControls[ 6 ]:Hide() ,; // Btn Mod
oDlg:aControls[ 7 ]:Hide() } ) // Btn Bor
Francisco J. Alegría P.
Chinandega, Nicaragua.
Fwxh-MySql-TMySql
Chinandega, Nicaragua.
Fwxh-MySql-TMySql
- FranciscoA
- Posts: 2159
- Joined: Fri Jul 18, 2008 1:24 am
- Location: Chinandega, Nicaragua, C.A.
Re: Xbrowser - how to not display oBar?
Ocultar todos los botones:
Code: Select all | Expand
oBrw:oWnd:bInit := { |oDlg| AEval( oDlg:aControls, { |o| If( o:ClassName() == "TBTNBMP", o:Hide, nil ) } ) } )
Francisco J. Alegría P.
Chinandega, Nicaragua.
Fwxh-MySql-TMySql
Chinandega, Nicaragua.
Fwxh-MySql-TMySql
Re: Xbrowser - how to not display oBar?
Thank you very much Francisco
FWH 11.08/FWH 19.12
BCC5.82/BCC7.3
xHarbour/Harbour
BCC5.82/BCC7.3
xHarbour/Harbour