1. wxEuphoria: how make html window occupy only a PORTION of main window?
- Posted by DanM Dec 14, 2008
- 901 views
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
2. Re: wxEuphoria: how make html window occupy only a PORTION of main window?
- Posted by ghaberek (admin) Dec 15, 2008
- 973 views
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
3. Re: wxEuphoria: how make html window occupy only a PORTION of main window?
- Posted by DanM Dec 16, 2008
- 944 views
thanks for the example, it worked fine.
dan