TXBrowse from resources

TXBrowse from resources

Postby Ari » 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
User avatar
Ari
 
Posts: 234
Joined: Fri Feb 03, 2006 4:21 pm
Location: São Paulo, SP - Brazil

Re: TXBrowse from resources

Postby wmormar » Wed Jul 19, 2006 8:47 pm

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


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 103 guests