FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin para Harbour/xHarbour problemas con dialog desde recursos y treeview
Posts: 1956
Joined: Fri Oct 07, 2005 07:08 PM

problemas con dialog desde recursos y treeview

Posted: Tue Jul 26, 2011 02:13 PM
hola.

tengo un dialogo en un recurso, y no defino el objeto treeview.
desde mi codigo pongo esto:

Code (fw): Select all Collapse
function main()

   local oDlg, oTree

   DEFINE DIALOG oDlg  resource "DLGPERMISOS"

   oTree = TTreeView():New( 0, 0, oDlg,,,,,200,200,,.t.)
   ACTIVATE dialog oDlg CENTERED ON INIT arbol( oTree )

  return nil
...


y al ejecutar la aplicacion me dice:
Error description: Error FiveWin/1 Non defined Id: No: 101


Ahora si saco "resource "dlgpermisos"" el programa funciona.

¿que estoy haciendo mal?

gracias
FWH 21.02
Harbour 3.2.0dev (r2104281802)
Copyright (c) 1999-2021, https://harbour.github.io/
Posts: 592
Joined: Tue Mar 14, 2006 11:34 PM

Re: problemas con dialog desde recursos y treeview

Posted: Fri Jul 29, 2011 01:19 PM

Goos,

oTree = TTreeView():ReDefine( 101, oDlg,CLR_BLACK,CLR_WHITE,.f.,'Tree' )

Give it a try....

Saludos

FWH 10.6 + xHarbour + Borland 582
Posts: 1956
Joined: Fri Oct 07, 2005 07:08 PM

Re: problemas con dialog desde recursos y treeview

Posted: Mon Aug 01, 2011 10:17 AM

gracias!

FWH 21.02
Harbour 3.2.0dev (r2104281802)
Copyright (c) 1999-2021, https://harbour.github.io/

Continue the discussion