Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
TIWTreeView - please help
#5
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.
Reply


Messages In This Thread
TIWTreeView - please help - by denville - 04-24-2019, 05:12 PM
RE: TIWTreeView - please help - by denville - 04-27-2019, 05:01 PM
RE: TIWTreeView - please help - by denville - 05-09-2019, 08:15 AM
RE: TIWTreeView - please help - by denville - 05-11-2019, 01:00 PM
RE: TIWTreeView - please help - by denville - 06-08-2019, 10:32 AM
RE: TIWTreeView - please help - by denville - 06-10-2019, 12:13 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)