- Code: Select all Expand view
STATIC FUNCTION NewDialog( oWnd )
local oDlg, oBrw, oCol
oBrw := TXBrowse():New( oWnd )
DEFINE DIALOG oDlg FROM 0,0 TO 45,128 TITLE "Customer browse "
oBrw:CreateFromCode()
ACTIVATE DIALOG oDlg
RETURN NIL
STATIC FUNCTION NewDialog( oWnd )
local oDlg, oBrw, oCol
oBrw := TXBrowse():New( oWnd )
DEFINE DIALOG oDlg FROM 0,0 TO 45,128 TITLE "Customer browse "
oBrw:CreateFromCode()
ACTIVATE DIALOG oDlg
RETURN NIL
STATIC FUNCTION NewDialog( oWnd )
local oDlg, oBrw, oCol
DEFINE DIALOG oDlg FROM 0,0 TO 45,128 TITLE "Customer browse "
ACTIVATE DIALOG oDlg ;
ON INIT oBrw := BuildBrowse( oDlg )
RETURN NIL
function BuildBrowse( oWnd )
local oBrw := TXBrowse():New( oWnd )
oBrw:CreateFromCode()
return oBrw
STATIC FUNCTION NewDialog( oWnd )
local oDlg, oBrw, oCol
DEFINE DIALOG oDlg FROM 0,0 TO 45,128 TITLE "Customer browse "
ACTIVATE DIALOG oDlg ;
ON INIT oBrw := BuildBrowse( oDlg )
RETURN NIL
function BuildBrowse( oDlg )
local oBrw := TXBrowse():New( oDlg )
oBrw:CreateFromCode()
oDlg:oClient:=oBrw
return oBrw
STATIC FUNCTION NewDialog( oWnd )
local oDlg, oBrw, oCol
DEFINE DIALOG oDlg FROM 0,0 TO 45,128 TITLE "Customer browse "
ACTIVATE DIALOG oDlg ;
ON INIT oBrw := BuildBrowse( oDlg )
RETURN NIL
function BuildBrowse( oDlg )
local oBrw := TXBrowse():New( oDlg )
oBrw:CreateFromCode()
oDlg:oClient:=oBrw
oDlg:ReSize()
@ 17, 1 BUTTON "&New" OF oDlg SIZE 40, 12 //ACTION Editcust( oLbx, .t. )
@ 17, 8 BUTTON "&Modify" OF oDlg SIZE 40, 12 //ACTION Editcust( oLbx, .f. )
@ 17, 15 BUTTON "&Delete" OF oDlg SIZE 40, 12 //ACTION Delrecord( oLbx )
@ 17, 22 BUTTON "&Search" OF oDlg SIZE 40, 12 //ACTION SeekCust( oLbx )
@ 17, 29 BUTTON "&Print" OF oDlg
//ACTION oLbx:Report( "Customers Report", .t. ) ; // .t. --> wants preview
//SIZE 40, 12
@ 17, 36 BUTTON "&Exit" OF oDlg //ACTION oDlg:End() SIZE 40, 12
@ 18, 1 BUTTON "&Order" OF oDlg //ACTION ordercust(oLbx) SIZE 40, 12
@ 18, 8 BUTTON "&Filter" OF oDlg //ACTION filtercust(oLbx) SIZE 40, 12
@ 18, 15 BUTTON "&Unfilter" OF oDlg //ACTION Nonfiltercust(oLbx) SIZE 40, 12
return oBrw
Return to FiveWin for Harbour/xHarbour
Users browsing this forum: No registered users and 57 guests