1. How to set size and pos of wxrichtext control ?
- Posted by vmars Jul 03, 2009
- 1010 views
- Last edited Jul 04, 2009
Greetings; Adding a wxrichtext control: I can't find the right keywords to set the Position and Dimensions of the control. I searched google and wxeu docs, this forum etc..
Thanks! ...V
2. Re: How to set size and pos of wxrichtext control ?
- Posted by mattlewis (admin) Jul 04, 2009
- 1071 views
Greetings; Adding a wxrichtext control: I can't find the right keywords to set the Position and Dimensions of the control. I searched google and wxeu docs, this forum etc..
You can do this when you create the control, or use set_size() and move() after you've created it.
Matt
3. Re: How to set size and pos of wxrichtext control ?
- Posted by vmars Jul 04, 2009
- 1011 views
Thanks Matt, great help!
At file:///C:/Euphoria/wxEuphoria/wxWidgets-2.8.9/wxWidgets-2.8.10-HTML-zip/docs/mshtml/wx/wx_wxrichtextctrl.html#wxrichtextctrlcreate
I found 'wxRichTextCtrl::Create' bool Create(wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& value = wxEmptyString, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxRE_MULTILINE, const wxValidator& validator = wxDefaultValidator, const wxString& name = wxTextCtrlNameStr)
and At file:///C:/Euphoria/wxEuphoria/Docs.3.1/WXSCROLLEDWINDOW.html
I found 'Creation Parameters' atom parent integer id [= -1] integer x [= -1] integer y [= -1] integer cx [= -1] integer cy [= -1] atom style [= wxHSCROL+wxVSCROLL] wxHSCROLL wxVSCROLL
Evidently, '-1' means 'default value'. How/where can I find out what are these default values?. Thanks! ...V
4. Re: How to set size and pos of wxrichtext control ?
- Posted by vmars Jul 05, 2009
- 997 views
Evidently, '-1' means 'default value'. How/where can I find out what are these default values?. Thanks! ...V
Evidently, '-1' means 'default value'.
How/where can I find out what are these default values?.
Thanks! ...V
5. Re: How to set size and pos of wxrichtext control ?
- Posted by mattlewis (admin) Jul 05, 2009
- 1003 views
Evidently, '-1' means 'default value'. How/where can I find out what are these default values?. Thanks! ...V
Evidently, '-1' means 'default value'.
How/where can I find out what are these default values?.
Thanks! ...V
Probably the only way is to either experiment or look at the wxWidgets source code. If you're interested in something specific, I'd say to make it explicit. If you're just going to let a sizer deal with the size, then just use the default, since the starting size doesn't really matter.
Matt
6. Re: How to set size and pos of wxrichtext control ?
- Posted by euphoric (admin) Jul 05, 2009
- 1000 views
- Last edited Jul 06, 2009
Evidently, '-1' means 'default value'. How/where can I find out what are these default values?. Thanks! ...V
I don't think it means a particular value. I think it means, "Let wxEuphoria determine the size." or "Let the sizers determine the size." or maybe "Make it fit."
7. Re: How to set size and pos of wxrichtext control ?
- Posted by vmars Jul 05, 2009
- 982 views
- Last edited Jul 06, 2009
Ugh! C and C code, oh HORRORS.
I am wondering if someone has already written a pgm where
when the cursor is over a control,
all available info for that control is displayed.
Is Euphoria able to do that sort of snooping into other pgms thing?
Or would I have to make a Form with all controls known to man
and then do the same type of displaying in the same pgm?
Thanks! ...V
8. Re: How to set size and pos of wxrichtext control ?
- Posted by ghaberek (admin) Jul 06, 2009
- 935 views
I don't think it means a particular value. I think it means, "Let wxEuphoria determine the size." or "Let the sizers determine the size." or maybe "Make it fit."
This is correct. And you should be using sizers as often as possible. And by often, I mean always.
-Greg