Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

enable/disable popups in treeview in runtime

Posted on 2000-05-15
3
Medium Priority
?
341 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 10

Accepted Solution

by:
Lischke earned 200 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

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Question has a verified solution.

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

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…
Suggested Courses

715 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