TreeView.Control

Discussion in 'Bug Reports' started by dzt, Aug 29, 2007.

  1. dzt

    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
     
  2. agraham

    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:
     
  3. Erel

    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.
     
  4. dzt

    dzt Active Member Licensed User

    Hi agraham,

    I was trying to do exactly this.


    @Erel

    Thanks,

    No hurry
     
Loading...