#include "fivewin.ch"
#include "xbrowse.ch"
function Main()
local oDlg, oBrw, aData
USE CUSTOMER NEW ALIAS CUST SHARED
aData := FW_DbfToArray()
CLOSE CUST
DEFINE DIALOG oDlg SIZE 600,200 PIXEL TITLE FWVERSION
@ 10,10 XBROWSE oBrw SIZE -10,-10 PIXEL OF oDlg ;
DATASOURCE aData AUTOCOLS ;
CELL LINES NOBORDER AUTOSORT
WITH OBJECT oBrw
:l2007 := .f.
:bClrHeader := { || { CLR_HRED, CLR_YELLOW } }
:nRecSelColor := nRGB( 231, 242, 255 )
:CreateFromCode()
END
ACTIVATE DIALOG oDlg CENTERED
return nil
#include "fivewin.ch"
#include "xbrowse.ch"
function Main
local oDlg, oBrw
local aData := MakeArray()
DEFINE DIALOG oDlg SIZE 600,200 PIXEL TITLE FWVERSION
@ 0,0 XBROWSE oBrw ;
COLUMNS 5, 4, 2, 7, 9, 10 ;
HEADERS "State", "City", "Last", "HireDate", "Age", "Salary" ;
OF oDlg ARRAY aData ;
AUTOSORT FOOTERS FASTEDIT LINES CELL
WITH OBJECT oBrw
*
* edit value in other column
*
WITH OBJECT oBrw:Salary
:nFooterType := AGGR_TOTAL
END
:bClrHeader := {|| { CLR_WHITE, CLR_BLUE }}
:MakeTotals()
:CreateFromCode()
END
ACTIVATE DIALOG oDlg CENTERED
return nil
static function MakeArray()
local aData
USE CUSTOMER NEW ALIAS CUST SHARED
aData := FW_DbfToArray()
CLOSE CUST
return aData
Return to FiveWin for Harbour/xHarbour
Users browsing this forum: No registered users and 108 guests