Hi Klaas,

thank you once again. The line of code:

hitEvent.m_xyRelToChildren = true;

perfectly did the trick.

With best regards
Glaz



Klaas Holwerda wrote:
> Klaas Holwerda wrote:
>> Klaas Holwerda wrote:
>>> Glaz wrote:
>>>> Hi again,
> 
> It is like this it looks like, i am still wondering why:
> 
> 
>      double xw = GetCanvasView()->GetDrawer2D()->DeviceToWorldX( m_mouse_x );
>      double yw = GetCanvasView()->GetDrawer2D()->DeviceToWorldY( m_mouse_y );
>      a2dCanvasObject *a2dCanObj = GetCanvasView()->IsHitWorld( xw, yw );
> 
>      a2dIterC ic( GetCanvasView() );
> 
>      // The mouse is moving.
>      if( event.Moving() )
>      {
>          // The mouse is over an object.
>          if( a2dCanObj )
>          {
>              a2dHitEvent hitEvent = a2dHitEvent( xw, yw, false );
>              hitEvent.m_xyRelToChildren = true;
>              a2dCanvasObject *handle = a2dCanObj->ChildIsHitWorld( ic, 
> hitEvent );
>              if( handle )
>              {
>                  wxString nn = handle->GetName();
>                  wxLogDebug( wxT( "Do name = %s" ), nn.c_str() );
>              }
>          }
>      }
> 
> 
> 
> 
> 

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Wxart2d-users_dev mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wxart2d-users_dev

Reply via email to