I’m trying to use the same OfxButton in two different OfxPanel to avoid creating a 2nd OfxButton, it technically works but there are graphical errors and my button does not appear in one of my Panel unless I move it.
I understand that I can just initialize a different OfxButton, do the setup the same way as the first and use the same listener, just curious if there’s way around that.
First button is set that way:
button_undo.setup("Undo"); button_undo.addListener(this, &Application::button_pressed_undo); group_utilCanvas.add(&button_undo);
Then down below where I am setting up the 2nd Panel I have
Here’s what it looks like, this is the first button that is being added: