Solved

enable/disable popups in treeview in runtime

Posted on 2000-05-15
3
334 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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

776 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