BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

WM_CONTEXTMENU

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi VCL Components Using
View previous topic :: View next topic  
Author Message
Kenneth R. Lewis
Guest





PostPosted: Wed Jul 30, 2003 2:38 pm    Post subject: WM_CONTEXTMENU Reply with quote



Hello all,

I am trying to get a handle to the menu for the context menu of a TEdit so
that I may be able to add additional menu items. How can I get a handle to
that menu? Anyone?

Thanks,

Kenneth Lewis


Back to top
Kurt Barthelmess
Guest





PostPosted: Wed Jul 30, 2003 3:08 pm    Post subject: Re: WM_CONTEXTMENU Reply with quote



"Kenneth R. Lewis" <kenneth_lewis (AT) intuit (DOT) com> wrote:

Quote:
I am trying to get a handle to the menu for the context menu of a TEdit so
that I may be able to add additional menu items. How can I get a handle to
that menu? Anyone?

Might be easier to just put your own PopupMenu in place for that
control. Then you have full control, but can pass on the default items
to the control.

Good luck.

Kurt


Back to top
Yorai Aminov (TeamB)
Guest





PostPosted: Wed Jul 30, 2003 5:24 pm    Post subject: Re: WM_CONTEXTMENU Reply with quote



On Wed, 30 Jul 2003 09:38:03 -0500, "Kenneth R. Lewis"
<kenneth_lewis (AT) intuit (DOT) com> wrote:

Quote:
I am trying to get a handle to the menu for the context menu of a TEdit so
that I may be able to add additional menu items. How can I get a handle to
that menu? Anyone?

You can't. Windows does not expose the default context menu for edit
controls. As Kurt suggests, the easiest way is to use a standard
TPopupMenu.

---
Yorai Aminov (TeamB)
http://develop.shorterpath.com/yorai
(TeamB cannot answer questions received via email.)


Back to top
Peter Below (TeamB)
Guest





PostPosted: Wed Jul 30, 2003 6:01 pm    Post subject: Re: WM_CONTEXTMENU Reply with quote

In article <3f27d849$1 (AT) newsgroups (DOT) borland.com>, Kenneth R. Lewis wrote:
Quote:
I am trying to get a handle to the menu for the context menu of a TEdit so
that I may be able to add additional menu items. How can I get a handle to
that menu? Anyone?

Many have tried and noone has succeeded yet. Cannot be done, as far as i
know. You have to replace the menu with your own.


--
Peter Below (TeamB)
Use the newsgroup archives :
http://www.mers.com/searchsite.html
http://www.tamaracka.com/search.htm
http://groups.google.com
http://www.prolix.be




Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi VCL Components Using All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.