I’m looking for a very simple solution, based on ActiveElementsOverlay sample:
Button1 in top left corner of the camera box in Smart Client
After clicking Button1 two new buttons appear: Button2 and Button3 (under Button1)
When I click Button2 or Button3, Button2 and Button 3 disappears.
In general, looking for help with building interface. Of course I’ll add more actions, but just need help with simple sample code that I can use and add new features. I work in c# in visual studio.
I’d really appreciate if someone can send me sample code I can reuse and implement in my solution.
Let’s say, that I’ll create 3 buttons this way - how to make three of them disappear after clicking at least one of them (let’s say that buttons are named b1, b2, b3, when I click on any of them, b1, b2, and b3 disappears).
Hi Bo, this code works really great. Thank you! I was able to implement it into my solution, added 6 more buttons etc.
I’d like to use the same solution for another button on the same project. When I tried to duplicate the code, it started generating errors (inside smart client, not in Visual Studio, it’s hard to debug).
Can you guide me how to transform your solution to work on two or even three different buttons?
So we have two buttons A and B:
When I click on A it displays button A1 & A2, after click they disappear (same as in existing example, no change required)
When I click on B it displays B1, B2, B3 … Bx and behaves same like in #1
So in general, I need to duplicate your functionality. I’d really appreciate your help on that. Thanks!
The task is to be able to reference child buttons from parent buttons and vice versa, and every time you have a button find the references ImageViewerAddOn and Guids for the buttons as ShapesOverlay / FrameworkElements.
This draft is more extensible, but please do not use it, please understand it and implement something better..