0

I'd like to select a created DrawingObject to highlight it and show the handles without the user needing to click it. I am using Halcon 13 and tried using SendMouseDoubleClickEvent() (Docu) but this only seems to be available for the new Halcon Smart Window, which is currently not an option for me as it interacts differently with the Halcon-Procedures. I also tried to use SelectObj() (Docu) but this seems to do something entirely different.

I have:

  • a reference to the HWindowControlWPF
  • the ID of the HWindowControlWPF
  • the ID of the DrawingObject

Any help or hint is appreciated!

Florian H.
  • 89
  • 10

1 Answers1

0

I could not find a proper solution to this problem but I found a hack that achieves the same result:

First, detach all drawing objects apart from the one you want to show as selected via DetachDrawingObjectFromWindow. Then, reattach them via AtachDrawingObjectFromWindow.

This works because the Halcon Window automatically selects the last attached drawing object.

Florian H.
  • 89
  • 10