- mySafari = new wxWebKitControl(this, ID_WEBKIT, _T("http://www.wxwidgets.org"), wxDefaultPosition, wxSize(200, 200));
+ // Testing wxWebKitCtrl inside a panel
+#if 1
+ wxPanel* panel = new wxPanel(this, wxID_ANY);
+
+ wxBoxSizer* boxSizer = new wxBoxSizer(wxVERTICAL);
+ panel->SetSizer(boxSizer);
+
+ mySafari = new wxWebKitCtrl(panel, ID_WEBKIT, wxT("http://www.wxwidgets.org"), wxDefaultPosition, wxSize(200, 200));
+
+ boxSizer->Add(mySafari, 1, wxEXPAND);
+
+ wxBoxSizer* frameSizer = new wxBoxSizer(wxVERTICAL);
+ SetSizer(frameSizer);
+ frameSizer->Add(panel, 1, wxEXPAND);
+#else
+ mySafari = new wxWebKitCtrl(this, ID_WEBKIT, wxT("http://www.wxwidgets.org"), wxDefaultPosition, wxSize(200, 200));
+#endif