TreeView problem

Postby RenOmaS » Tue Mar 13, 2007 11:18 am

Code: Select all  Expand view
METHOD ReDefine( nId, oWnd, nClrFore, nClrBack, lDesign, cMsg ) CLASS TTreeView

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

......


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

Postby Antonio Linares » Wed Mar 14, 2007 7:47 am

RenOmaS,

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

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42080
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby Ugo » Wed Mar 14, 2007 7:52 am

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


RenOmaS,
thanks a lot! :D
This redefine method work perfectly with 701.

Code: Select all  Expand view
//----------------------------------------------------------------------------//

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
User avatar
Ugo
 
Posts: 283
Joined: Sat Oct 15, 2005 6:40 am
Location: Turin, Italy

Previous

Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 102 guests