Re: wxEuphoria v0.11 - wxButton on a child window

new topic     » goto parent     » topic index » view thread      » older message » newer message

Jerry Story wrote:
> 
> Win is the main wxPanel.
> 
> When I change 'Win' (the main wxPanel) to 'pnlHtml' (a wxPanel) like this
> 
> btnHtml = create(wxButton,{Win,-1,
> winHtml = create(wxHtmlWindow,{Win,-1,-1,50}) -- This is the main part.
> 
> btnHtml = create(wxButton,{pnlHtml,-1,
> winHtml = create(wxHtmlWindow,{pnlHtml,-1,-1,50}) -- This is the main part.
> 
> then nothing happens.
> 
> Also when I change to 'frmHtml' (a wxFrame) nothing happens.
> 
> btnHtml = create(wxButton,{frmHtml,-1,
> winHtml = create(wxHtmlWindow,{frmHtml,-1,-1,50}) -- This is the main part.
> 
> Child windows and wxPanels and wxFrames confuse me. I usually fiddle with them
> without completely knowing what I'm doing until something works.

For most controls, their parents are the windows in which they appear.  
wxFrames are a little different, since they float on their own.  They don't
necessarily need a parent.  Changing the parents to other than the window
where the controls should appear is likely to give weird results (and 
probably different by platform).

Matt

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu