[wxruby-users] xml.load_panel
Max Salov
lists at ruby-forum.com
Mon Aug 25 10:05:33 EDT 2008
Alex Fenton wrote:
> Hi
>
> You're loading the new panel as a child of 'self' - the Frame, when it
> should be a child of @splitter I think?
>> @splitter.replace_window @dummy_panel, @new_panel
> In my experience you probably want to follow this with
>
> @dummy_panel.destroy
>
> Otherwise you will be left with the old panel hanging around
>
> hth
> alex
Hi,
Thanks for reply.
Sorry for wrong topic subject
In such case
@new_panel = xml.load_panel @splitter,'PANEL'
@splitter.replace_window @dummy_panel, @new_panel
@dummy_panel.destroy
'PANEL' content(one static text) is rendered in upper-left corner of
splitter (left pane), while it supposed to be on the right
Max
--
Posted via http://www.ruby-forum.com/.
More information about the wxruby-users
mailing list