I try to include a TreeView inside a dialog that included in a 32bits Dll. The problem i faced is when ctivate the dialog i get an empty TreeView window. The treeview declared as "SysTreeView32" in the dialog as the manual says.
- Code: Select all Expand view
#include "FiveWin.ch"
STATIC TEstDlg,Tree
PROCEDURE MAIN()
LOCAL ImageList
LOCAL Brance1,Brance2,Brance3
SET RESOURCES TO "TEST32.DLL" // Here is the TreeView Dialog
DEFINE DIALOG TestDlg RESOURCE "TEST"
ImageList := TImageList():New()
ImageList:Add( TBitmap():Define( "DISCOUNT",,TestDlg))
ImageList:Add( TBitMap():Define( "MONEY",,TestDlg))
ImageList:Add( TBitMap():Define( "TACK",,TestDlg))
ImageList:Add( TBitMap():Define( "TACKED",,TestDlg))
Tree = TTreeView():Redefine (4001,TestDlg)
WITH OBJECT Tree
:SetImageList( ImageList)
Brance1:= :Add( "THIS IS THE FIRST",0)
Brance1:Add("This is an Item inside the 1st Brance",0)
Brance2:= :Add( "THIS IS THE SECOND",1)
Branc3:= :Add( "This is the THIRD",2)
END WITH
ACTIVATE DIALOG TestDlg CENTERED
This code as a result gives the dialog with 2 buttons and an empty TreeView window.
Any help would be appreciate.
Thanks In Advance
Dionisis