A
A
Artyom2017-05-29 17:04:03
Delphi
Artyom, 2017-05-29 17:04:03

How to make a transition to a new form by clicking on a tree node?

How to make it so that when you click on a node in the main tree, a new form opens, which will already have its own tree?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Andrew, 2017-05-29
@OLS

Create class "Form with tree".
When you click on a tree node, programmatically create a new instance of the "Tree Form" class, passing in the constructor information about the position, node, or whatever you need.

K
kalapanga, 2017-05-30
@kalapanga

Andrey gave you a clear answer to the question. If you do not understand something, then tell yourself - what exactly. Here is an example path for you. First you need to clarify what kind of tree you have on the form - the TTreeView component or something else? Or maybe you have a picture with a baobab there! Second, do you know that components have events (OnClick in particular) that can be assigned handlers, do you know how to use them? Third, do you know how to call another from one form? Fourth, you need to pass some information to your opening form, the methods may be different, do you know at least some?
All actions are elementary. If there are any difficulties, then specify what you were able to implement, and with what exactly the problems arose and what.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question