Converting wbrowse to xbrowse

Converting wbrowse to xbrowse

Postby Euclides » Fri Mar 04, 2016 5:35 pm

Hi to all!
I am converting an old system (Fivewin with C**pper) to FWH and decided to use xbrowse instead wbrowse.
(why I am doing this will be posted in a later subject)
Before to diving into doccumentation and source, I have two questions about how 'translate' wbrowse to xbrowse.
1 - oLbx:bRClicked := {|nRow, nCol| MsgInfo("Row:"+str(oLbx:nAt,3)+" Col:"+str(oLbx:nAtCol(nCol),3)) }
2 - oLbx:ShowSizes()
TIA, Euclides
User avatar
Euclides
 
Posts: 154
Joined: Wed Mar 28, 2007 1:19 pm

Re: Converting wbrowse to xbrowse

Postby nageswaragunupudi » Fri Mar 04, 2016 11:05 pm

Code: Select all  Expand view
  oBrw:bRClicked := { || MsgInfo( "Row : " + cValToChar( oBrw:nRowSel ) + " Col : " + cValToChar( oBrw:nColSel ) ) }
 


Code: Select all  Expand view
function XbrShowSizes( oBrw )

   XBrowse( ArrTranspose( { oBrw:cHeaders, oBrw:nWidths } ), nil, nil, { |o| o:cHeaders := { "Header", "Width" } } )

return nil


 
Regards

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
 
Posts: 10313
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: Converting wbrowse to xbrowse

Postby Euclides » Sat Mar 05, 2016 12:49 am

Thanks Nages.
I promise you, that I will learn more about xBrowse soon.
Regards, Euclides
User avatar
Euclides
 
Posts: 154
Joined: Wed Mar 28, 2007 1:19 pm


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 47 guests