TXBrowse from resources

Post Reply
User avatar
Ari
Posts: 128
Joined: Fri Feb 03, 2006 4:21 pm
Location: Brazil
Contact:

TXBrowse from resources

Post by Ari »

[ 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
User avatar
wmormar
Posts: 1050
Joined: Fri Oct 07, 2005 10:41 pm
Location: México
Contact:

Re: TXBrowse from resources

Post by wmormar »

Ari wrote:[ 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

Code: Select all

STATIC FUNCTION NewDialog( oWnd )
   local oDlg, oBrw

   DEFINE DIALOG oDlg RESOURCE "TEST" OF oWnd

     oBrw := TXBrowse():New( oDlg )
     oBrw:CreateFromResource( 101 )

   ACTIVATE DIALOG oDlg

RETURN NIL
Si pones oWnd, el TXBrowse se cuelga en le objeto Window, y no podria ser desde recursos, por lo tanto debe de ser oDlg, que es el objeto que contiene el dialogo TEST, donde contiene el recurso 101 TXBrowse
William, Morales
Saludos

méxico.sureste
Post Reply