Dear Klaas
  It worked as I desired!
  Thanks a lot for your help and explanation !

Yours
Faithfully
Long
On Wed, 2013-10-09 at 19:48 +0200, klaas.holwerda wrote:
> So i think you need to copy a simple tool, and redfine its OnMouse
> 
> void a2dXXXXTool::OnMouseEvent( wxMouseEvent& event )
> 
>      if ( event.LeftDown() && ! m_busy )
>           test hit, save hit object, and set m_busy
> 
>      else if ( event.LeftDown() && m_busy)
>          reset flag, hit object (m_canvasobject) = NULL
> 
> When you click on an object, remember that one, set a flag ( m_busy for 
> instance is already for that).
> And in OnIdle (of your tool), you can show what you want as anotation.
> If tool is flagged busy, a second Click, does reset the busy flag, and so 
> anotation will go away.
> 
> Do i miss something :-)
> 
> Regards,
> 
> Klaas
> 
> On 10/09/2013 03:07 PM, pang long wrote:
> > Dear Klaas
> >    Let me explain more detail on my objective.
> >    I wish that the annotation is shown after the click, and it does not
> > disappear until the next click. At the same time, the annotation is
> > computed with respect to the clicked information.
> >
> 
> 
> ------------------------------------------------------------------------------
> October Webinars: Code for Performance
> Free Intel webinars can help you accelerate application performance.
> Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
> the latest Intel processors and coprocessors. See abstracts and register >
> http://pubads.g.doubleclick.net/gampad/clk?id=60134071&iu=/4140/ostg.clktrk
> _______________________________________________
> Wxart2d-users_dev mailing list
> Wxart2d-users_dev@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wxart2d-users_dev



------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60134071&iu=/4140/ostg.clktrk
_______________________________________________
Wxart2d-users_dev mailing list
Wxart2d-users_dev@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wxart2d-users_dev

Reply via email to