1. wxEuphoria: how make html window occupy only a PORTION of main window?

How can I make an html window such that it only occupies a PORTION of a main window?

I've tried putting positioning values into the create parameters sequence for the html window, and I also tried putting the html window into a "split" window, but nothing worked.

Dan

new topic     » topic index » view message » categorize

2. Re: wxEuphoria: how make html window occupy only a PORTION of main window?

DanM said...

How can I make an html window such that it only occupies a PORTION of a main window?

You'll want to use Sizers to arrange and align your controls.

  • Sizers take care of resizing and repositioning controls within a window whenever the window is resized. Sizers may be nested within each other to create complex relationships between the controls in a window.
DanM said...

I've tried putting positioning values into the create parameters sequence for the html window, and I also tried putting the html window into a "split" window, but nothing worked.

See my other post for details on why this didn't work.

Here a working example:

include wxeud.e 
without warning 
 
constant main = create( wxFrame, {0, -1, "HTML Window"} ) 
constant split = create( wxSplitterWindow, {main, new_id(), -1, -1, -1, -1, wxSP_FULLSASH} ) 
constant left = create( wxWindow, {split, new_id(), -1, -1, -1, -1, wxSUNKEN_BORDER} ) 
constant html = create( wxHtmlWindow, {split, new_id(), -1, -1, -1, -1, wxSUNKEN_BORDER} ) 
 
split_window( split, left, html, wxVERTICAL, 120 ) 
 
wxMain( main ) 

-Greg

new topic     » goto parent     » topic index » view message » categorize

3. Re: wxEuphoria: how make html window occupy only a PORTION of main window?

thanks for the example, it worked fine.

dan

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu