Code: Select all
oXbrw := TXBrowse():new():CreateFromResource( 11 )
I am wondering how one would just add specified fields? Can you provide an example? Do you have to delete all the default fields first, then add only the ones you want?
James
Code: Select all
oXbrw := TXBrowse():new():CreateFromResource( 11 )
Sorry, I'm not familiar with TXBrowse. However, you can find many samples in your FWH samples directory.James Bott wrote:Enrico,
All my xbrowses are made with code so I have no experience with creating one from a resource. I note that the above line creates a browse with all fields in the database.Code: Select all
oXbrw := TXBrowse():new():CreateFromResource( 11 )
I am wondering how one would just add specified fields? Can you provide an example? Do you have to delete all the default fields first, then add only the ones you want?
James
Code: Select all
REDEFINE LISTBOX oLbx FIELDS bscust->custno, bscust->company, bscust->city, bscust->phone ;
HEADER "Custno", "Company", "City", "Phone" ;
FONT oFontList ;
ON DBLCLICK (oDlg1:end(), mExit := .T. ) ;
ID 1003 OF oDlg1 UPDATE
Code: Select all
oBrw:nMarqueeStyle := MARQSTYLE_HIGHLROW
oBrw:lRecordSelector := .f.
oBrw:nStretchCol := STRETCHCOL_LAST
oBrw:nRowDividerStyle := LINESTYLE_LIGHTGRAY
I suggest to use the resource editor of PellesC, it´s free and very good.I guess I need to switch to a different resource editor that will use native .rc file.