Search found 216 matches

by Kvaz1r
Tue Aug 04, 2020 6:55 am
Forum: wxWidgets Development (Russian)
Topic: Новые кнопки в заголовок окна
Replies: 4
Views: 94

Re: Новые кнопки в заголовок окна

Здравствуйте. Проще всего - не пытаться расширить стандартный заголовок, а убрать границы (передать 0 для стиля в конструкторе фрейма) и сделать свой "заголовок".

Если хотите расширить стандартный, то под Windows это сделать точно можно, вот пример для WinAPI:
Custom Window Frame Using DWM
by Kvaz1r
Sun Jul 26, 2020 7:12 pm
Forum: C++ Development
Topic: MySql and wxGrid
Replies: 1
Views: 49

Re: MySql and wxGrid

Can you add more details to describing of your task? Maybe you don't need wxGrid at all. See post for the details:
Database / wxSQLite
by Kvaz1r
Sun Jul 26, 2020 6:59 pm
Forum: General Development
Topic: Projects for beginners
Replies: 1
Views: 49

Re: Projects for beginners

Whatever. The main thing you should have interest in it.
If you like 2d games - write simple game like minesweeper and so on.
Maybe you have some stuff that you would like to automatize - at the last end it could be todo list.
by Kvaz1r
Mon Jul 20, 2020 1:26 pm
Forum: C++ Development
Topic: wxThread->Delete() - Exception thrown: read access violation.
Replies: 31
Views: 379

Re: wxThread->Delete() - Exception thrown: read access violation.

That comment is about detach thread, in example above thread is joinable. Btw, I can't reproduce the behaviour if I click buttons rapidly.
by Kvaz1r
Fri Jul 10, 2020 7:35 pm
Forum: General Development
Topic: Using stack and arithmetic tree
Replies: 1
Views: 68

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: 103

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: 6
Views: 258

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: 6
Views: 258

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: 6
Views: 258

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: 157

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: 195

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: 254

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: 687

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: 259

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: 1912

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.