TXBrowse from resources
Posted: Wed Jul 19, 2006 5:20 pm
[ testxbrw.prg ]
STATIC FUNCTION NewDialog( oWnd )
local oDlg, oBrw
DEFINE DIALOG oDlg RESOURCE "TEST" OF oWnd
oBrw := TXBrowse():New( oWnd ) // <<---- porque oWnd ?
// o certo deveria ser oDlg ?
oBrw:CreateFromResource( 101 )
ACTIVATE DIALOG oDlg
RETURN NIL
STATIC FUNCTION NewDialog( oWnd )
local oDlg, oBrw
DEFINE DIALOG oDlg RESOURCE "TEST" OF oWnd
oBrw := TXBrowse():New( oWnd ) // <<---- porque oWnd ?
// o certo deveria ser oDlg ?
oBrw:CreateFromResource( 101 )
ACTIVATE DIALOG oDlg
RETURN NIL