Search found 212 matches

by Kvaz1r
Fri Jul 10, 2020 7:35 pm
Forum: General Development
Topic: Using stack and arithmetic tree
Replies: 1
Views: 30

Re: Using stack and arithmetic tree

Yes you can use tree to create calculator. There are tons of article about creating and evaluating expression tree.
Or you can use some library and not to do all work by yourself.
by Kvaz1r
Mon Jun 29, 2020 2:25 pm
Forum: C++ Development
Topic: How to find specific usage of function.
Replies: 2
Views: 76

Re: How to find specific usage of function.

You can see details of the implementation in source code. Just use search for Github repo - https://github.com/wxWidgets/wxWidgets As for examples - see samples directory. Edit: mode it's file access mode for C-style I/O so for details use cppreference fopen wxWidgets just provide useful wrapper (bu...
by Kvaz1r
Sat Jun 27, 2020 12:03 pm
Forum: C++ Development
Topic: Using std::thread to call function at timed intervals?
Replies: 5
Views: 158

Re: Using std::thread to call function at timed intervals?

The execution of the current thread is stopped until at least rel_time has passed from now. Other threads continue their execution. The bold part means that any other threads are not affected by calling sleep for current one. why cant I just somehow hand back execution to the main wxthread while st...
by Kvaz1r
Sat Jun 27, 2020 10:17 am
Forum: C++ Development
Topic: Using std::thread to call function at timed intervals?
Replies: 5
Views: 158

Re: Using std::thread to call function at timed intervals?

Yes, but putting std::thread to sleep ...should then pass control back to the master/UI thread right? No, not at all. Sleep just block execution of the thread. ...but, lets say the Model function checks a file to see if it has been updated, if so then reloads the file data into a vector ...the cont...
by Kvaz1r
Sat Jun 27, 2020 6:24 am
Forum: C++ Development
Topic: Using std::thread to call function at timed intervals?
Replies: 5
Views: 158

Re: Using std::thread to call function at timed intervals?

join is blocks current thread and waiting for finishing of runned thread.
What does your Model function do? How it's related to UI part and how it's depend on it? (i.e. it possible to call the function again before previous calling was done,...)
by Kvaz1r
Sat May 23, 2020 9:35 pm
Forum: C++ Development
Topic: Grid Basic doubt with constructor
Replies: 1
Views: 133

Re: Grid Basic doubt with constructor

When you doubt - just look in the sample. It's inner enum so using '::' is right.

Code: Select all

wxGrid::wxGridSelectRows
by Kvaz1r
Thu May 21, 2020 9:18 pm
Forum: C++ Development
Topic: shared ptr error
Replies: 3
Views: 168

Re: shared ptr error

If the behaviour can be reproduce with the sample I would raise an issue in issue tracker of the chart library.
by Kvaz1r
Sun May 17, 2020 9:38 pm
Forum: C++ Development
Topic: Seperating wxAuiToolBar object into a seperate view and control class
Replies: 4
Views: 229

Re: Seperating wxAuiToolBar object into a seperate view and control class

There is topic for MVC in wxWidgets discussion, maybe it will be helpful for you.
by Kvaz1r
Mon May 11, 2020 7:02 am
Forum: General Development
Topic: Why does wxWidgets Documentation need to be so confusing?
Replies: 10
Views: 618

Re: Why does wxWidgets Documentation need to be so confusing?

I believe it's important to show it I was looking for a way to erase the wxchoice control and to my surprise there is no explanation on how to do this in the wxWidgets documentation! https://docs.wxwidgets.org/trunk/classwx_choice.html There is documentation for Clear in section Public member funct...
by Kvaz1r
Wed May 06, 2020 12:21 pm
Forum: C++ Development
Topic: How can i display numbers in wxWidgets?
Replies: 5
Views: 232

Re: How can i display numbers in wxWidgets?

It would be much better if you provide full reproducible sample. But I already see how you 2 times assign value to one member: here: button = new wxButton(this, 101, "Start", wxPoint(10, 10), wxSize(150, 50)); and here: button = new wxButton(this, 102, "Stop", wxPoint(0, 0), wxSize(150, 50)); Two bu...
by Kvaz1r
Tue May 05, 2020 12:49 pm
Forum: General Forum Issues
Topic: Error "The submitted form was invalid"
Replies: 12
Views: 1405

Re: Error "The submitted form was invalid"

Also noticed the behaviour several week ago. Didn't report because it took only for couple of hours and never happen again.
by Kvaz1r
Fri May 01, 2020 1:12 pm
Forum: C++ Development
Topic: wxGrid Difficulties
Replies: 4
Views: 184

Re: wxGrid Difficulties

You can use GetSelectedCells right now and will can use GetSelectedBlocks after 3.1.4 release.
by Kvaz1r
Wed Apr 29, 2020 3:57 pm
Forum: wxWidgets Development (Russian)
Topic: wxXmlNode и delete
Replies: 1
Views: 285

Re: wxXmlNode и delete

Да
by Kvaz1r
Mon Apr 27, 2020 8:58 pm
Forum: C++ Development
Topic: How to pass file name list as a function parameter!?
Replies: 8
Views: 289

Re: How to pass file name list as a function parameter!?

I mean something more straightforward:

Code: Select all

	wxArrayString  arrStrFileNames;
	arrStrFileNames.assign(vStrFileNames.begin(), vStrFileNames.end());//from std::vector<>

	std::vector<wxString> vec(arrStrFileNames.begin(), arrStrFileNames.end());//from wxArrayString
by Kvaz1r
Mon Apr 27, 2020 8:02 pm
Forum: C++ Development
Topic: How to pass file name list as a function parameter!?
Replies: 8
Views: 289

Re: How to pass file name list as a function parameter!?

Both class provide iterators so you can use them to create another container.