Re: wxEuphoria - wxHtmlWindow vs Vista
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.
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.
-- [.....]
procedure closeHtmlESC(atom this, atom event_type, atom id, atom event)
-- code here
-- closes winHtml on ESC, SPACE, or mouse click
end procedure
set_event_handler(winHtml,-1,wxEVT_CHAR, routine_id("closeHtmlESC"))
set_event_handler(winHtml,-1,wxEVT_LEFT_UP, routine_id("closeHtmlESC"))
-- Keys work correctly on both Vista and Ubuntu.
-- ESC and SPACE make winHtml go away, both Ubuntu and Vista.
-- Mouse click works correctly on Ubuntu but not on Vista.
-- On Vista, on mouse click, winHtml doesn't go away
-- and the Win widget or a part of it that is under the mouse click
-- becomes visible thru winHtml.
-- And the keys quit making winHtml go away.
|
Not Categorized, Please Help
|
|