Problem with TTreeview, TNodeInfo and Rebuild Library
I want to add a property called Text2 (string[255]) on TNode. First, I opened
the ComCtrls.pas, and found the following block:
PNodeInfo = ^TNodeInfo;
TNodeInfo = packed record
ImageIndex: Integer;
SelectedIndex: Integer;
StateIndex: Integer;
OverlayIndex: Integer;
Data: Pointer;
Count: Integer;
Text: string[255];
end;
Then,I added one line in the block. It looks like:
PNodeInfo = ^TNodeInfo;
TNodeInfo = packed record
ImageIndex: Integer;
SelectedIndex: Integer;
StateIndex: Integer;
OverlayIndex: Integer;
Data: Pointer;
Count: Integer;
Text: string[255];
Text2: string[255]; {I added this line}
{ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^}
end;
However, when trying to rebuild the library. I got an error message said: 'Unit ZVCL
was compiled with a different version of ComCtrls.' It seems to me that ZVCL.pas
uses ComCtrls. The problem is I couldn't find the source code of ZVCL, and couldn't
recompile it.
My question are:
* Where can I find the ZCVL.pas?
* Are there other ways (or even better ways) to what I want?
Thanks in advance for your help.
--
FANG LUO, Ph.D.
Petroleum Engineer
New Mexico Bureau of Mines and Mineral Resources, 801 Leroy Place, Socorro, NM 87801-4796
Office: (505) 835-5627; Fax: (505) 835-6333; E-mail: fa...@nmt.edu