ActiveElementsOverlay sample code - new buttons - interface reset

I’m in the process of building plugin that displays additional buttons in Smart Client (on camera box, next to zoom controls).

I need a sample code (probably one line of the code) that I can use in “on click” event, so if any of my new button is clicked, interface resets to the same state as it is on start of Smart Client.

The reason is that I want to “cleanup” my interface after click (interface opens multiple buttons, depending on functionality).

Thanks!

I am very sorry for my very late reply. We must have overlooked this question.

Please explore the Active Element Overlay plugin sample. https://doc.developer.milestonesys.com/html/index.html?base=samples/activeelementsoverlay_sample.html&tree=tree_1.html