05-09-2019, 08:15 AM
(This post was last modified: 05-09-2019, 09:43 AM by denville.
Edit Reason: Addendum
)
Hi Alexandre...
Whilst I don't have Delphi I was able to incorporate the MainForm.pas from the demo into a clean IW project, replacing the default Form1 with MainForm.pas. The application then compiled without error and the the application ran - and behold, the TreeView behaved perfectly (ie the demo was completely successful). So I then scoured the .pas code to see if I could determine where I was going wrong - but couldn't find anything to help.
Then, in an act of desperation, I deleted the TIWTreeView component from MainForm.pas and replaced it with same dropped from my component pallette. I assigned the two events to those in the original pas and ran the application. This time, the tree view failed to work properly with exactly the same symptoms I have previously described (permanent expansion, unable to collapse, etc.).
I compared the .pas, .dfm, and .hpp files before and after the change and could find nothing of significance, just a few extra properties in my version and some font and colour properties I hadn't copied.
So I am at a loss to understand what is happening here - why is the TIWTreeView fine when in the original .pas, but useless when I replace it (still in the .pas) with the one from the installed components. And if they are different, where on earth is it finding (and know to find) a different component, since it is only identified by (identical) name in the .dfm and .pas files ?
OS: W7/64 : IW 15.0.20 : C++ Builder version XE7 : 32-bit platform.
Denville.
PS I think you asked me to try the three-line minimal test case. Yes, I have tried that exhaustively !
D.
Whilst I don't have Delphi I was able to incorporate the MainForm.pas from the demo into a clean IW project, replacing the default Form1 with MainForm.pas. The application then compiled without error and the the application ran - and behold, the TreeView behaved perfectly (ie the demo was completely successful). So I then scoured the .pas code to see if I could determine where I was going wrong - but couldn't find anything to help.
Then, in an act of desperation, I deleted the TIWTreeView component from MainForm.pas and replaced it with same dropped from my component pallette. I assigned the two events to those in the original pas and ran the application. This time, the tree view failed to work properly with exactly the same symptoms I have previously described (permanent expansion, unable to collapse, etc.).
I compared the .pas, .dfm, and .hpp files before and after the change and could find nothing of significance, just a few extra properties in my version and some font and colour properties I hadn't copied.
So I am at a loss to understand what is happening here - why is the TIWTreeView fine when in the original .pas, but useless when I replace it (still in the .pas) with the one from the installed components. And if they are different, where on earth is it finding (and know to find) a different component, since it is only identified by (identical) name in the .dfm and .pas files ?
OS: W7/64 : IW 15.0.20 : C++ Builder version XE7 : 32-bit platform.
Denville.
PS I think you asked me to try the three-line minimal test case. Yes, I have tried that exhaustively !
D.

