Hi,

How to catch a child control mouse events in the parent
object. For example if I have a container and a text box
placed on it, How I can catch the mouse right click event
in the container before it goes to the edit box.

Thanks

Re: Catch child control mouse events by Anders

Anders
Wed Dec 31 05:43:56 CST 2003

Hi Arafat
In VFP8 you could set up a link from the TextBox.RightClick or MouseDown
event to a custom method in the the container, using the BINDEVENT()
function. TRhe RightClick only occurs when the mouse button is released over
the object.
-Anders

"Arafat El-Sayed" <aea@aria.com.eg> wrote in message
news:089a01c3cf87$02b88e90$a101280a@phx.gbl...
> Hi,
>
> How to catch a child control mouse events in the parent
> object. For example if I have a container and a text box
> placed on it, How I can catch the mouse right click event
> in the container before it goes to the edit box.
>
> Thanks


Re: Catch child control mouse events by Trey

Trey
Wed Dec 31 22:12:42 CST 2003

You could set up your superclasses to bubble up the containership, then only
object-specific right-click's need to be coded otherwise. e.g.

** in any superclass RightClick
If Type("this.parent")=="O" ;
And PEMStatus(this.parent, "RightClick", 5)
this.parent.RightClick()
EndIf





"Arafat El-Sayed" <aea@aria.com.eg> wrote in message
news:089a01c3cf87$02b88e90$a101280a@phx.gbl...
> Hi,
>
> How to catch a child control mouse events in the parent
> object. For example if I have a container and a text box
> placed on it, How I can catch the mouse right click event
> in the container before it goes to the edit box.
>
> Thanks