James Bott wrote:Try to redefine it and see if it errors out; use a new error codeblock to trap the error and recover.
James
Antonio Linares wrote:Julio,
You can create the dialog without redefining any control from it:
DEFINE DIALOG oDlg RESOURCE "test"
ACTIVATE DIALOG oDlg ON INIT MsgInfo( GetDlgItem( oDlg:hWnd, nID ) )
if you get a zero, then such ID is not defined.
FUNCTION getObjById( oDlg, nId )
LOCAL nLin := 0
DEFAULT oDlg := if( getWndDefault() == NIL, getWnd(), getWndDefault() ), ;
nId := 0
IF !empty( nId )
FOR nLin := 1 TO len( oDlg:aControls )
IF ( ( oDlg:aControls[nLin] ):nId == nId )
RETURN( oDlg:aControls[nLin] )
ENDIF
NEXT
ENDIF
RETURN( NIL )
Return to FiveWin for Harbour/xHarbour
Users browsing this forum: No registered users and 74 guests