Re: load_panel_subclass help

Fabio

proxy
class: that’s the reason i used ‘load_panel_subclass’

Use Ruby Modules instead of Classes to encapsulate the behaviour of
the inner windows, such as your Panel. After the layout has been loaded
from XRC, retrieve the panel, and use something like

panel.extend(MyPanelBehaviours)

To add the logic to it. If needed, you can use Module.extended to do
initialize-
like work in setting up the Panel.

By the way, XRCise will do this automatically for you, if you name your
inner windows.

hth
alex