Solved

enable/disable popups in treeview in runtime

Posted on 2000-05-15
3
333 Views
Last Modified: 2010-04-04
Hello!

I use Delphi 3.0.

I have a problem with treeviews.
I have linked a menu to the
treeview that has a option to
delete the selected node.
Thats menu command has [DEL]
as shortkey.
The problem is when the user is
editing the text in a node
and hits [DEL] to delete a letter.
My program now deletes the node
rather than one letter in the node's
text. How can I distinguish these separate
events?
I thought I could use OnEditing to disable
the popupmenu, but in what event can i reset
that event to show the popup?

thanks in advance,
Alexander
0
Comment
Question by:dr_gonzo
  • 2
3 Comments
 
LVL 10

Accepted Solution

by:
Lischke earned 50 total points
ID: 2810850
Should be OnEdited.

Ciao, Mike
0
 

Author Comment

by:dr_gonzo
ID: 2813888
hmm forget the hole problem..
someone else had put a
hook for VK_DELETE as well
as having the shortcut.
I was only disabling the shortcut
popup-menu.

no problem at all.
But Mike's answer is correct if that would have been the problem so the score's all yours...

\Alexander
0
 
LVL 10

Expert Comment

by:Lischke
ID: 2813967
Alex, thank you then for the points. You don't need to donate points for an answer which has no use for you (unless perhaps I would have spent enormous time for answering it :-)).

Well, count on me for your next questions...

Ciao, Mike
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.
Need to grow your business through quality cloud solutions? With everything required to build a cloud platform and solution, you may feel like the distance between you and the cloud is quite long. Help is here. Spend some time learning about the Con…

947 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now