Select-Event - Strange Behavior

Select-Event - Strange Behavior

C-Hoppen
Advocate Advocate
387 Views
1 Reply
Message 1 of 2

Select-Event - Strange Behavior

C-Hoppen
Advocate
Advocate

Hello!

 

I've been watching for a long time a strange behavior I can not explain.

 

  • I have a Add-In that starts a Win-Form. This form contains a button.
  • When the user clicks the button, a selection is started (Select-Event as shown in the API-Sample).
  • I always use the same code to handle the Select Event.
  • The form is a child of Inventor [IntPtr _temp = SetWindowLong(this.Handle, GWL_HWNDPARENT, oApp.MainFrameHWND);]

After starting the Select Event objects should be prehighlighted when the mouse moves over.

Sometimes it does, sometimes I first have to click in the inventor window to see prehighlighting.

It seems to be an arbitrary behavior.


Is this a known issue?

 

Christoph

0 Likes
Accepted solutions (1)
388 Views
1 Reply
Reply (1)
Message 2 of 2

adam.nagy
Autodesk Support
Autodesk Support
Accepted solution

Hi,

 

Try setting the parent like this instead:

http://adndevblog.typepad.com/manufacturing/2012/06/space-entered-in-a-text-box-of-a-modeless-dialog...

 

That might not solve the issue though, which sounds like the focus stays on your dialog. You could simply try to activate the Inventor main window before starting the selection.

 

Cheers,



Adam Nagy
Autodesk Platform Services
0 Likes