TreeView problem

User avatar
RenOmaS
Posts: 205
Joined: Fri Oct 07, 2005 5:07 pm

Post by RenOmaS »

Code: Select all

METHOD ReDefine( nId, oWnd, nClrFore, nClrBack, lDesign, cMsg ) CLASS TTreeView

......
   //ROS
   ::nClrText := nClrFore
   ::nClrPane := nClrBack
   //
   ::Register( .....

......
salu2 ;)
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

RenOmaS,

Yes, it was as simple as those missing lines, thanks! :-)
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Ugo
Posts: 283
Joined: Sat Oct 15, 2005 6:40 am
Location: Turin, Italy

Post by Ugo »

RenOmaS wrote: ......
//ROS
::nClrText := nClrFore
::nClrPane := nClrBack
//
::Register( .....
......
RenOmaS,
thanks a lot! :D
This redefine method work perfectly with 701.

Code: Select all

//----------------------------------------------------------------------------//

METHOD ReDefine( nId, oWnd, nClrFore, nClrBack, lDesign, cMsg ) CLASS TTreeView

   DEFAULT oWnd     := GetWndDefault(),;
           nClrFore := GetSysColor( COLOR_WINDOWTEXT ),;  // UGO
           nClrBack := GetSysColor( COLOR_WINDOW ),;       // UGO
           lDesign  := .f.

   ::nClrText := nClrFore       // ROS
   ::nClrPane := nClrBack     // ROS
   ::nId     = nId
   ::oWnd    = oWnd
   ::aItems  = {}

   ::Register( nOR( CS_VREDRAW, CS_HREDRAW, TVS_HASBUTTONS, TVS_HASLINES, TVS_LINESATROOT ) )

   oWnd:DefControl( Self )

return Self
Ciao, best regards,
Ugo
Post Reply