Re: wxEuphoria - wxHtmlWindow vs Vista
Jerry Story wrote:
>
> Matt Lewis wrote:
> >
> > Jerry Story wrote:
> > >
> > > On Vista, how do you make a wxHtmlWindow in such a way that when you click
> > >
> > > on it the widgets on the window under it don't come up? On Ubuntu there is
> > > no problem.
> >
> > I don't know. Could you post a minimal sample that displays the behavior?
> > And a better description of the expected and observed results. I'm not sure
> > what you mean by "the widgets on the window under it don't come up."
> >
> > Matt
>
> Here are the relevant code fragments with comments added.
>
> }}}
<eucode>
> constant
> frmHtml = create(wxFrame,{Win,-1,"DMAK - documentation"}),
> pnlHtml = create(wxPanel,{frmHtml}),
> boxHtml = create(wxBoxSizer,{wxVERTICAL}),
> winHtml = create(wxHtmlWindow,{Win})
>
> set_sizer(pnlHtml,boxHtml)
> set_size(winHtml,win_width,win_height)
> add_window_to_sizer(boxHtml,winHtml,1,wxGROW,0)
>
> -- Win is the main wxPanel. It has a bunch of widgets on it.
> -- winHtml is on top of Win, same dimensions and position.
> -- Win is completely covered by winHtml.
> -- So far winHtml looks good on both Ubuntu and Vista.
> </eucode>
{{{
I think that the problem is that the parent-child relationships are
incorrect. winHtml is parented to Win, but it's put into the sizer for
pnlHtml, which is the panel for a different frame.
In any case, this code doesn't run. If fixing the parent-child relationship
(or maybe putting it into a different sizer) don't help, then please
refactor this into a working, minimal program that displays the problem
behavior, and I'll take another look at it.
Matt
|
Not Categorized, Please Help
|
|