Drawing a circle on top of an ActiveX control

Hi,
I am using an ActiveX control made by IDS to view the output of a microscope camera called the 'uEye'. This allows me to see the video stream from the microscope camera. I have made a GUI using GUIDE and everything is working okay.
As an additional feature, I would like to draw a circle on top of the ActiveX control so that I can keep track of where my laser is pointing in the microscope. I have tried using the 'annotation(ellipse)' function in Matlab, but it always draws the circle behind the ActiveX control.
Does anyone know a way to force the ActiveX control to be in the background, and the circle in the foreground?

 Respuesta aceptada

Kevin
Kevin el 21 de Abr. de 2015

0 votos

Trying 'uistack' did not solve my problem. This is because the ActiveX control cannot be manipulated with 'uistack'. Only 'uicontrol' elements can.
However, I was able to place a button on top of the ActiveX control that serves the purpose of marking my laser spot by creating the button after the ActiveX control in the 'OpeningFcn'. Due to the draw order of components that have the same parent, the ActiveX control is drawn first, then the button on top. The key is making the GUI the parent of both the ActiveX control and button.
Thanks, Kevin

1 comentario

Tudith langer
Tudith langer el 19 de En. de 2017
Dear Kevin, this method for placing a button on top of the activex control seems to be working but how do I implement this if I have to bring an axes on top of an activex control and not a button. Thanks Tudith

Iniciar sesión para comentar.

Más respuestas (1)

Geoff Hayes
Geoff Hayes el 19 de Abr. de 2015

0 votos

Kevin - try using uistack which may be able to use to push your ActiveX control to the bottom of the visual stacking order (or bring the circle to the top).

Preguntada:

el 18 de Abr. de 2015

Comentada:

el 19 de En. de 2017

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by