wxMozilla and XRC? Topic is solved

If you are using the main C++ distribution of wxWidgets, Feel free to ask any question related to wxWidgets development here. This means questions regarding to C++ and wxWidgets, not compile problems.
RealityMage
Experienced Solver
Experienced Solver
Posts: 75
Joined: Tue Aug 23, 2005 3:47 am

wxMozilla and XRC?

Post by RealityMage »

Hi, is there a way to use wxMozillaBrowser within an XRC control? I tried using AttachUnknownControl and nothing was shown until I loaded a URL, upon which a new browser window popped up.

Subclassing doesn't work either, as there is no XRC handler for it...
vdell
Ultimate wxWidgets Guru
Ultimate wxWidgets Guru
Posts: 536
Joined: Fri Jan 07, 2005 3:44 pm
Location: Finland

Post by vdell »

How about creating a wxPanel (with XRC) where the browser should be and then loading the wxMozilla window in your C++ code and using the wxPanel as the parent?
Visual C++ 9.0 / Windows XP Pro SP3 / wxWidgets 2.9.0 (SVN) | Colligere