[wxruby-users] load_panel_subclass help
Alex Fenton
alex at pressure.to
Tue Sep 16 08:28:01 EDT 2008
Fabio Petrucci wrote:
> i'm having several problems using 'load_panel_subclass' function.
>
> The way i suppose to use it is in main_frame.rb on attached file but i
> get an arror.
>
> could somebody tell me how to use it?
You don't need to use load_panel_subclass here at all - calling it is an
error. The 'CONTATTI' panel is already part of the overall layout of the
frame and so is loaded anyway when the whole frame is loaded.
load_panel_subclass is only used for when you have a top-level panel
(ie, no parent) defined in your XRC file, and want to load that panel as
the child of an arbitrary window.
hth
alex
More information about the wxruby-users
mailing list