Excellent
![Smile :-)](./images/smilies/icon_smile.gif)
Very good!
Code: Select all
METHOD Initiate( hDlg ) INLINE Super:Initiate( hDlg ), ::SetColor( ::nClrText, ::nClrPane )
METHOD SetColor( nClrText, nClrPane ) INLINE ;
Super:SetColor( nClrText, nClrPane ), TVSetColor( ::hWnd, nClrText, nClrPane )
Code: Select all
if ! Empty( oWnd:hWnd )
::Create( CTRL_NAME )
oWnd:AddControl( Self )
::SetColor( nClrFore, nClrBack ) // New !
Code: Select all
CLIPPER TVSETCOLOR( PARAMS ) // hWnd, nClrFore, nClrBack
{
TreeView_SetBkColor( ( HWND ) _parnl( 1 ), _parnl( 3 ) );
TreeView_SetTextColor( ( HWND ) _parnl( 1 ), _parnl( 2 ) );
}
Code: Select all
@ 0, 0 TREEVIEW oTree COLOR CLR_WHITE, CLR_GREEN
I don't have knowledge in C.Warning W8019 treeview.c 234: Code has no effect in function TVSETCOLOR
Warning W8019 treeview.c 235: Code has no effect in function TVSETCOLOR