Question regarding selection and window refresh


I'm using OCC into a wxWidgets environment.

I've added a wxToolBar into a wxCanvas which contains the v3dViewer.

The toolbar gets shown correctly, also on resize events it gets resized thanks to obvious code additions I've made for this purpose.

However, when an AIS_InteractiveObject gets highlighted, the toolbar disappears, probably because the highlighting causes a redrawing which involves the whole canvas.

The toolbar is showed again for example on the next canvas resize event.

Is there a function I can override to modify the highlighting event behaviour, in order to keep the toolbar visible?

Fabio Napodano's picture

the wxToolBar was not set as wxCanvas' toolbar