OOP – hierarchy & property

About Monkey 2 Forums Monkey 2 Programming Help OOP – hierarchy & property

This topic contains 2 replies, has 2 voices, and was last updated by  degac 2 years, 8 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #3338

    degac
    Participant

    Just a quick question

    mojox has two class/widget FileBrowser that extends TreeView.

    I would access to all the children in the FileBrowser, so considering it is an extended version of TreeView I would use NumChildrends, but I got errors.

    Errors

    value of type ‘mojox.FileBrowser’ has no member called ‘NumChildren’
    value of type ‘mojox.app.View’ has no member called ‘Text’

    What’s wrong?

    #3339

    Mark Sibly
    Keymaster

    The TreeView itself is not a node, but contains a single root node that you get at with the RootNode property:

    #3340

    degac
    Participant

    Damn! I just discovered this right now!!!! Tooo late, thanks anyway!

    (Looking at the source code it start with Class TreeView… and then it has an inner Class Node – I didn’t noticed, so I presumed that the Properties were for TreeView class)

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.