On Jul 31, 2008, at 8:16 PM, Brian wrote:
I posted this question yesterday, but I never saw it come to the
list, so
I am "re-asking"...
I have a number of edit fields in my application, all of which I would
like the user to be able to right click on and see the basic edit menu
options.
I understand how to do this, but as it stands right now I need to
write a
snippet of code on every edit fields MouseClick event to handle this.
I'm curious if there is a "better" way to handle this as a default
behavior in my app. I don't know much about custom controls, but it
sounded like that may be an option??
Or perhaps there is already a solution to this, as it seems like
possibly
a fairly standard request?
I think that the standard way would be to define a subclass of
EditField in which you implement the ConstructContextualMenu and
ContextualMenuAction event handlers. This subclass would then appear
in Window editors -- choose "Project Controls" from that little
PopupMenu above the control list -- and you're there.
Charles Yeomans
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>
|