Kirix Support Forums

Problem when in AUI floating pane on Linux

Please post all general questions, comments, bug reports, and any other wxWebConnect feedback here.

Problem when in AUI floating pane on Linux

Postby ngpaton on Wed Sep 02, 2009 11:03 am

Hi,

If you change the testapp code to have:

Code: Select all
    m_mgr.AddPane(m_browser, wxAuiPaneInfo().
                  Name(wxT("Browser")).
                  Show().PinButton(true));


instead of in MyFrame::MyFrame():

Code: Select all
    m_mgr.AddPane(m_browser, wxAuiPaneInfo().
                  Name(wxT("Browser")).
                  CenterPane().Show());


Then start the application and unpin the webcontrol pane from the main window. If you now try to browse a new window appears with the web page in it and the floating pane is not correctly redrawn. The new window is of the correct size but it looks like the control has become disconnected from the floating pane.

This doesn't happen in a Windows build.

Cheers

Nigel
ngpaton
Registered User
 
Posts: 11
Joined: Wed Aug 19, 2009 4:42 am

Re: Problem when in AUI floating pane on Linux

Postby ngpaton on Wed Sep 02, 2009 12:01 pm

Hi,

Looks like something going wrong in the Reparent handling (specific to GTK).

In the app that I see this problem in I have got around this by implementing a Reparent function that calls the base class Reparent, then replaces (wxSizer::Replace) the wxWebControl with a new one and then deletes the old one.

This then works although you loose where you were when browsing. But it looks better than before.

Cheers

Nigel
ngpaton
Registered User
 
Posts: 11
Joined: Wed Aug 19, 2009 4:42 am

Return to wxWebConnect Questions, Thoughts & Feedback