Search found 287 matches
- Sun Jan 17, 2021 12:18 pm
- Forum: C++ Development
- Topic: Heron alghoritm on class
- Replies: 12
- Views: 129
Re: Heron alghoritm on class
Why do you even want to write everything in OOP-style? "If you have a hammer, this does not mean that everything around is a nail."
- Sat Jan 16, 2021 9:52 am
- Forum: C++ Development
- Topic: how to solve an unknown problem
- Replies: 13
- Views: 273
Re: how to solve an unknown problem
Your question was how to use wxStyledTextCtrl on different pages of wxAuiNotebook, I was not going to write full editor 

- Fri Jan 15, 2021 10:42 pm
- Forum: C++ Development
- Topic: how to solve an unknown problem
- Replies: 13
- Views: 273
Re: how to solve an unknown problem
you can help me how I can create several page and that the page must contain wxStyledTextCtrl Just add different wxStyledTextCtrl to each page of wxAuiNotebook. Here quick and dirty example(I use sizer for each Panel because wxFormBuilder force using them and as illustration that you can put more t...
- Thu Jan 07, 2021 4:52 pm
- Forum: C++ Development
- Topic: main() start two main() threads, one for a C++ backend and a seconf for the wxWidgets GUI
- Replies: 4
- Views: 115
Re: main() start two main() threads, one for a C++ backend and a seconf for the wxWidgets GUI
Can you describe what do you want in terms of tasks not of tools? wxWidgets itself is a C++ library, don't need to separate it from C++.
- Tue Jan 05, 2021 6:53 pm
- Forum: C++ Development
- Topic: Resize wxGrid cells to auto contain values
- Replies: 3
- Views: 105
Re: Resize wxGrid cells to auto contain values
What about:
?
Code: Select all
gridTable->AutoSize();
this->Layout();
- Tue Jan 05, 2021 1:24 pm
- Forum: C++ Development
- Topic: Long text only displays last part in wxTextCtrl
- Replies: 14
- Views: 243
Re: Long text only displays last part in wxTextCtrl
Now I see, thanks. It's related to something new, because in 3.1.3 works as expected.
- Tue Jan 05, 2021 10:47 am
- Forum: C++ Development
- Topic: Save values from SpinCtrl, wxChoice to wxString
- Replies: 2
- Views: 68
Re: Save values from SpinCtrl, wxChoice to wxString
When you want to combine several values in one string most flexible way is to use format method.
So
So
Code: Select all
wxString str = wxString::Format("%d %s", SpinCtrl2 -> GetValue(), Choice1 -> GetStringSelection());
- Tue Jan 05, 2021 9:14 am
- Forum: C++ Development
- Topic: Long text only displays last part in wxTextCtrl
- Replies: 14
- Views: 243
Re: Long text only displays last part in wxTextCtrl
After calling Layout before setting the value of the text ctrl in the dialog's ctor, the problem is the same essentially, only more but not all letters are shown. There is definitely something that I not understand - I can't reproduce behaviour with your minimal code if add Layout in the most botto...
- Mon Jan 04, 2021 9:18 pm
- Forum: C++ Development
- Topic: Get variable value from wxFrame to wxDialog
- Replies: 6
- Views: 118
Re: Get variable value from wxFrame to wxDialog
How i can do this? Maybe it would be easier with example: #include <wx/wx.h> class MyDialog : public wxDialog { public: MyDialog(wxWindow* parent, const wxString& label) : wxDialog(parent, wxID_ANY, "") { wxBoxSizer* topSizer; topSizer = new wxBoxSizer(wxVERTICAL); m_staticText = new wxStaticText(t...
- Mon Jan 04, 2021 6:40 pm
- Forum: C++ Development
- Topic: Get variable value from wxFrame to wxDialog
- Replies: 6
- Views: 118
Re: Get variable value from wxFrame to wxDialog
You was asking the same question not so long ago - Passing a variable value from wxframe to wxdialog
If something unclear it would much better ask for clarification than create new topic again
If something unclear it would much better ask for clarification than create new topic again

- Mon Jan 04, 2021 5:49 pm
- Forum: C++ Development
- Topic: wxLogTextCtrl send too many logs to the wxTextCtrl, does wxTextCtrl have a row number limit
- Replies: 15
- Views: 256
Re: wxLogTextCtrl send too many logs to the wxTextCtrl, does wxTextCtrl have a row number limit
Do you mean that "m_queue" only store the lengths of each msg? No, queue should store messages itself, (I specified if messages are not too long and amount of it is limited). This concept known as UI data binding(data changes -> UI changes). Unfortunately wxWidgets hasn't support for it. You can in...
- Mon Jan 04, 2021 2:21 pm
- Forum: C++ Development
- Topic: wxLogTextCtrl send too many logs to the wxTextCtrl, does wxTextCtrl have a row number limit
- Replies: 15
- Views: 256
Re: wxLogTextCtrl send too many logs to the wxTextCtrl, does wxTextCtrl have a row number limit
FWIW, wxTextCtrl with wxTE_RICH2 flag on Win10 seems to handle 1,000,000 lines mostly fine. The only issue seems to be manual resizing by mouse, probably caused by the long time the control takes to redraw? Cool, glad to know - on Win10 works for me too(tested on 500,000), I had issue only under ol...
- Mon Jan 04, 2021 1:31 pm
- Forum: C++ Development
- Topic: Long text only displays last part in wxTextCtrl
- Replies: 14
- Views: 243
Re: Long text only displays last part in wxTextCtrl
Just do what doublemax said earlier - add Layout() after changing of widgets state:
Code: Select all
__tc_test->SetValue(wxT("123456789abcdefghijklmnopqrstuvwxyz"));
this->Layout();
- Sun Jan 03, 2021 3:34 pm
- Forum: Compiler / Linking / IDE Related
- Topic: Complex Calculator
- Replies: 7
- Views: 235
Re: Complex Calculator
Try clear and rebuild project or provide real code. In code above except already mentioned compile error only undefined variables
Code: Select all
real1, im1, ...
- Sun Jan 03, 2021 2:06 pm
- Forum: Compiler / Linking / IDE Related
- Topic: Complex Calculator
- Replies: 7
- Views: 235
Re: Complex Calculator
Also line 4 in Complex.cpp:
typo - type and name without space in between
Code: Select all
Complex Calculating::Add(struct Complex num1,struct Complexnum2) {
Code: Select all
Complex Calculating::Add(struct Complex num1,struct Complex num2) {