TreeView.Control

dzt

Active Member
Licensed User
Hi,

TreeView.Control running code inside the IDE references to the TreeView Control as it should do.

But when compiling the same code and running it from the executable. TreeView.Control is NULL (for an empty TreeView), or references to the last added node.

To reproduce the bug try to change parent to a TreeView using FormLib.

Thanks for your time
 

agraham

Expert
Licensed User
Hi dzt

Are you trying to do what I was just pondering about? That is to hook the base controls of B4PPC objects exposed by their Control property.:)

If so - great, if not then please think about it.:sign0188:
 

Erel

Administrator
Staff member
Licensed User
This is a bug in the TreeView library (it will also appear in other controls libraries).
The use of the reserved keyword Control confuses the parser.
I will soon create a new library: ControlLib that will include all the controls libraries and will fix this problem too.
Thank you for finding and reporting it.
 

dzt

Active Member
Licensed User
Hi dzt

Are you trying to do what I was just pondering about? That is to hook the base controls of B4PPC objects exposed by their Control property.:)

If so - great, if not then please think about it.:sign0188:
Hi agraham,

I was trying to do exactly this.


@Erel

Thanks,

No hurry
 
Top