I have a little doubt... When I try to check a TVItem, the fivewin gives me the following error:
- Code: Select all Expand view
Application
===========
Path and name: C:\xGenesis\genesis.EXE (32 bits)
Size: 1,409,536 bytes
Time from start: 0 hours 0 mins 42 secs
Error occurred at: 26/08/2008, 11:57:28
Error description: Error BASE/1004 Message not found: TTVITEM:HWND
Stack Calls
===========
Called from: source\rtl\tobject.prg => TTVITEM:ERROR(172)
Called from: source\rtl\tobject.prg => TTVITEM:MSGNOTFOUND(181)
Called from: source\rtl\tobject.prg => TTVITEM:HWND(0)
Called from: .\source\classes\TTreeVie.PRG => (b)TTREEVIEW:TTREEVIEW(0)
Called from: => TTREEVIEW:SETCHECK(0)
I'm using like this: oTree:setCheck( oItem, .T. )
The method setCheck above returns a error for the oItem:hWnd
- Code: Select all Expand view
METHOD SetCheck( oItem, lOnOff ) INLINE ;
If( oItem == nil, oItem := ::GetSelected(), nil ), ;
TVSetCheck( ::hWnd, oItem:hWnd, lOnOff )