I have created my GUI using wxFormBuilder.
One of elements I’ve created is a panel which contains two labels and a
button - this whole “widget” can be loaded through XRC into a standalone
class (generated using Xrcise).
Now - adding one one is quite easy:
# create a new instance of the template, @content_panel is a
panel on the main window (and has one vertical box sizer)
status = StatusTemplate.new(@content_panel)
status.data= item # my custom method for loading data to the
status.show # show it
However when I try to add it few times (in a loop or just by duplicating
this code) it doesn’t work. Only the most recently added panel can be