| View previous topic :: View next topic |
| Author |
Message |
Kenneth R. Lewis Guest
|
Posted: Wed Jul 30, 2003 2:38 pm Post subject: WM_CONTEXTMENU |
|
|
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
|
Posted: Wed Jul 30, 2003 3:08 pm Post subject: Re: WM_CONTEXTMENU |
|
|
"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
|
Posted: Wed Jul 30, 2003 5:24 pm Post subject: Re: WM_CONTEXTMENU |
|
|
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
|
Posted: Wed Jul 30, 2003 6:01 pm Post subject: Re: WM_CONTEXTMENU |
|
|
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 |
|
 |
|