Dear Antonio and friends,
It's possible to create a new "get" object at bottom of xBrowse? With the width of it?
But in runtime!!
::oBrwGet := TGet():new( 0, 0,{ | u | If(PCount()==0,::uBrwGet,::uBrwGet:= u ) }, ::oWnd,0,0,"@!",,,,,.F.,,.F.,,.F.,,,,,.F.,.f.,.T.,,.F.,,,,)
::oBrwGet:Move( ::nBottom, ::nLeft, ::nWidth, ::nHeight, .T. )
Application
===========
Path and name: C:\apps\test.EXE (32 bits)
Size: 1,949,696 bytes
Time from start: 0 hours 0 mins 37 secs
Error occurred at: 22/12/2008, 14:20:06
Error description: Error FiveWin/1 Non defined Id: No: 104
Stack Calls
===========
Called from: .\source\classes\CONTROL.PRG => TCONTROL:INITIATE(0)
Called from: C:\RepositorioLocal\extras\tget.prg => TGET:INITIATE(563)
Called from: => __OBJSENDMSG(0)
Called from: .\source\function\HARBOUR.PRG => OSEND(0)
Called from: .\source\function\HARBOUR.PRG => ASEND(0)
Called from: C:\RepositorioLocal\extras\dialog.prg => TDIALOG:INITIATE(702)
Called from: C:\RepositorioLocal\extras\dialog.prg => TDIALOG:HANDLEEVENT(954)
Called from: => DIALOGBOX(0)
Called from: C:\RepositorioLocal\extras\dialog.prg => TDIALOG:ACTIVATE(273)
oLbx := TXBrowse():New( oDlgBackup )
oLbx:CreateFromResource( 100 )
oLbx:SetArray( AZIP,.T.)
oLbx:SetRDD(.F.,.T.) //--> Estilo da barra de seleçao.
//-- Estilo --------------------------------//
oLbx:lUpdate:= .T.
oLbx:nMarqueeStyle := MARQSTYLE_HIGHLROW
oLbx:nColDividerStyle := LINESTYLE_LIGHTGRAY
oLbx:nRowDividerStyle := LINESTYLE_LIGHTGRAY
oLbx:nHeaderLines := 01 //-----------> Linhas do Cabecalho.
oLbx:lAllowColSwapping := .F. //-----------> Trocar Colunas
oLbx:lAllowRowSizing := .F. //-----------> Nao move as Linhas
oLbx:lFooter := .T. //-----------> Rodapé
--->>> oLbx:nFooterLines := 01 //-----------> Linhas do Rodapé.<<<---
//-- Colunas -------------------------------//
*1*Caminho
oCol:= oLbx:aCols[1]
oCol:bStrData := { || CAMINHO }
oCol:cHeader := "Caminho"
oCol:nWidth := 390
--->>> oCol:cFooter := cNumeroArquivos <<<---
*2*Tamanho
oCol:= oLbx:aCols[2]
oCol:bStrData := { || TAMANHO }
oCol:cHeader := "Tamanho"
oCol:nWidth := 90
oCol:cFooter := cTamanhoTotal
*3*Status
oCol:= oLbx:aCols[3]
oCol:bStrData := {|| CampoStatus("NOME") }
oCol:cHeader := "Status"
oCol:nWidth := 70
//-- Edição rápida através do browse
oCol:nEditType := EDIT_GET_LISTBOX
oCol:aEditListTxt := if(nRadBackup = 1, aStatusInc, aStatusExt)
oCol:bOnPostEdit := {|o,x| AlterarStatusGrid(x,oLbx:nRolSel()) }
oCol:aEditListBound := if(nRadBackup = 1, {"A","I","O","R"}, {"E","I"})
*4*FromZip
oCol:= oLbx:aCols[4]
oCol:Hide()
//-- Alinhamento ---------------------------//
oLbx:aCols[1]:nDataStrAlign := AL_LEFT
oLbx:aCols[2]:nDataStrAlign := AL_RIGHT
oLbx:aCols[3]:nDataStrAlign := AL_CENTER
//-- Eventos -------------------------------//
oLbx:bLDblClick:= { || AlterarStatusOnClick(oLbx:nRolSel()) }
//-- Atualiza o Rodapé
oLbx:aCols[2]:cFooter := cTamanhoTotal
James Bott wrote:Julio,
If your browse is on a dialog why not just place the GET there using Workshop?
If the browse is filling a window then I think the best way would be to subclass the browse to add the GET.
Regards,
James
::oBrwGet := TGet():new( 0, 0,{ | u | If(PCount()==0,::uBrwGet,::uBrwGet:= u ) }, ::oWnd,0,0,"@!",,,,,.F.,,.F.,,.F.,,,,,.F.,.f.,.T.,,.F.,,,,)
::oBrwGet:Move( ::nBottom, ::nLeft, ::nWidth, ::nHeight, .T. )
James Bott wrote:Julio,
I don't understand your code. Is this inside a subclass of the browse? If so, can we see the entire subclass? Better yet, can we see a small example showing the problem?
If it is not in a subclass, then you cannot use a var like ::uBrwGet.
Regards,
James
Return to FiveWin for Harbour/xHarbour
Users browsing this forum: Google [Bot] and 74 guests