Link to home
Start Free TrialLog in
Avatar of deceptionx
deceptionx

asked on

treeview naviagtion

im trying to make a program that allows you to navigate throuh by clicking a node on a treeview. I just need an example code of clicking a node and giving it an event.
ASKER CERTIFIED SOLUTION
Avatar of emadat
emadat
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Avatar of kretzschmar
kretzschmar
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of nafeelm
nafeelm


your question is still not clear to me!

could you explain it in detail please ?

Avatar of deceptionx

ASKER

jsut give me a simple way to click an item in a treeview and give it an event. its as simple as that.
>simple use the onChange-Event of the TTreeView

;-)

could you just explain me your logic, as if what you want to do using the TTreeView component ?

do u want to assign an event to the TTreeView component or its TreeNodes or the individual TreeNode!

yes thats it, and could you possably give me an of the coding of for the OnChange-Event...
example of the coding << what i meant to say...
a sample

procedure TForm1.TreeView1Change(Sender: TObject; Node: TTreeNode);
begin
  //do your action here based on the Node parameter
  showmessage('It was Navigated to '+Node.Text);
end;

meikl ;-)

i think 'kretzschmar' above sample example should be of help to you!
I am using delphi 7 that procedure doesnt work... :-/
deceptionx:
This old question needs to be finalized -- accept an answer, split points, or get a refund.  For information on your options, please click here-> http:/help/closing.jsp#1 
EXPERTS:
Post your closing recommendations!  No comment means you don't care.