On Wed, Dec 26, 2012 at 4:24 PM, Wim Dumon <w...@emweb.be> wrote:

> Mohammed,
>
> I don't think I properly understand your question.
>

OK. I will explain. I have a base painted widget and editable painted
widget(interactive drawing).

When I enable the editor widget I dont want event to be gone through
parent's (base widget).

Basically editor and base are both same classes with a small difference.
One may have an editable flag and other may not. So if its editable
determined on calling a isFlag() i want to disable propogation to parent
 and pass it to child

Hope this clears your doubts


> If you have a listener on a parent and a child,and click on the child,
> both parent and child will receive the event. If you want only the child to
> receive the event, you should call EventSignalBase::preventPropagation() on
> the child's event.
>

I want this case, preventPropogation(). Could you eloborate on this?
Is it achieved by using event.preventPropogation();


> If you click on the parent outside of the child, then the parent gets the
> event and the child obviously not.
>
> If you want to pass the event of a parent to a child, then I would expect
> that in the parent's event handler, you call a method of the child widget.

Here, Are you saying to connect parent event to child's method?


> I don't really understand what you mean by 'disable the event of the
> parent'.
>
> Best regards,
> Wim.
>
>
>
> 2012/12/25 Mohammed Rashad <mohammedrasha...@gmail.com>
>
>> Is there any way to disable the event of parent and pass it to child?
>>
>>
>> On Tue, Aug 14, 2012 at 2:11 PM, Wim Dumon <w...@emweb.be> wrote:
>>
>>> Hello Mohammed,
>>>
>>> You will have to do this manually by calling the appropriate method of
>>> the other widget in the event handler of the one that receives the
>>> event.
>>>
>>> BR,
>>> Wim.
>>>
>>> 2012/8/10 Mohammed Rashad <mohammedrasha...@gmail.com>:
>>> > Hello,
>>> >
>>> > I have two widgets drawn on top of each other using positionScheme
>>> absolute
>>> >
>>> > one is like a background and other is an overlay
>>> >
>>> > when I pan either of one i need both to be panned
>>> >
>>> > panning overlay should also pan the background and vice versa
>>> >
>>> > Any solutions?
>>> >
>>> > --
>>> > Regards,
>>> >    Rashad
>>> >
>>> >
>>> >
>>> ------------------------------------------------------------------------------
>>> > Live Security Virtual Conference
>>> > Exclusive live event will cover all the ways today's security and
>>> > threat landscape has changed and how IT managers can respond.
>>> Discussions
>>> > will include endpoint security, mobile security and the latest in
>>> malware
>>> > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
>>> > _______________________________________________
>>> > witty-interest mailing list
>>> > witty-interest@lists.sourceforge.net
>>> > https://lists.sourceforge.net/lists/listinfo/witty-interest
>>> >
>>>
>>>
>>> ------------------------------------------------------------------------------
>>> Live Security Virtual Conference
>>> Exclusive live event will cover all the ways today's security and
>>> threat landscape has changed and how IT managers can respond. Discussions
>>> will include endpoint security, mobile security and the latest in malware
>>> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
>>> _______________________________________________
>>> witty-interest mailing list
>>> witty-interest@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/witty-interest
>>>
>>
>>
>>
>> --
>> Regards,
>>    Rashad
>>
>>
>> ------------------------------------------------------------------------------
>> LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
>> Remotely access PCs and mobile devices and provide instant support
>> Improve your efficiency, and focus on delivering more value-add services
>> Discover what IT Professionals Know. Rescue delivers
>> http://p.sf.net/sfu/logmein_12329d2d
>>
>> _______________________________________________
>> witty-interest mailing list
>> witty-interest@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/witty-interest
>>
>>
>
>
> ------------------------------------------------------------------------------
> LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
> Remotely access PCs and mobile devices and provide instant support
> Improve your efficiency, and focus on delivering more value-add services
> Discover what IT Professionals Know. Rescue delivers
> http://p.sf.net/sfu/logmein_12329d2d
> _______________________________________________
> witty-interest mailing list
> witty-interest@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/witty-interest
>
>


-- 
Regards,
   Rashad
------------------------------------------------------------------------------
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. ON SALE this month only -- learn more at:
http://p.sf.net/sfu/learnmore_122712
_______________________________________________
witty-interest mailing list
witty-interest@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/witty-interest

Reply via email to