Solved

enable/disable popups in treeview in runtime

Posted on 2000-05-15
3
332 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
Comment Utility
Should be OnEdited.

Ciao, Mike
0
 

Author Comment

by:dr_gonzo
Comment Utility
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
Comment Utility
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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

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…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

743 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

17 Experts available now in Live!

Get 1:1 Help Now