Search found 216 matches

by Kvaz1r
Mon Feb 17, 2020 7:29 am
Forum: C++ Development
Topic: processing of custom events
Replies: 27
Views: 2616

Re: processing of custom events

Fixed in the latest development version: https://github.com/wxWidgets/wxWidgets/commit/08db475a7f97948940f98a6b7ea2129a663a202b Good, now the behaviour is consistent. who can explain - why to use wxCommandEvent, instead of regular wxThreadEvent, for inter-thread communication? I don't think that us...
by Kvaz1r
Fri Feb 14, 2020 8:13 am
Forum: C++ Development
Topic: wxThread / newbie
Replies: 19
Views: 771

Re: wxThread / newbie

This structure seems to be simelar to the multithreading-structure (one main-script calling several independent sub-scripts to be started at one 'entry-point'). The question is, how to implement it... If several of your tasks will be appear after running of first task - you need worker pool. Unfort...
by Kvaz1r
Thu Feb 13, 2020 2:29 pm
Forum: C++ Development
Topic: processing of custom events
Replies: 27
Views: 2616

Re: processing of custom events

On top of that, there is this code in wxEvtHandler::QueueEvent: // 3) Inform the system that new pending events are somewhere, // and that these should be processed in idle time. wxWakeUpIdle(); We'd have to argue that the system is not idle (= not processing this thread event), because it constant...
by Kvaz1r
Thu Feb 13, 2020 11:24 am
Forum: C++ Development
Topic: processing of custom events
Replies: 27
Views: 2616

Re: processing of custom events

I'm not really sure that the behaviour is bug , rather opposite. QueueEvent is just put event in queue and there isn't any guarantee that ThreadEvent will been selected before idle event because thread event is not a windowing event. But it can worked if you manually try to switch control to pending...
by Kvaz1r
Sat Feb 08, 2020 6:13 pm
Forum: C++ Development
Topic: Error in remove empty dirs
Replies: 3
Views: 252

Re: Error in remove empty dirs

Are you sure that the path is really exist? How reproduce the behaviour?

Btw, there is annoying bug - wxFileName(directory without final separator).Rmdir(flags) removes the parent directory
so be careful with it.
by Kvaz1r
Tue Feb 04, 2020 8:39 am
Forum: C++ Development
Topic: Intersection of two lists of files
Replies: 6
Views: 391

Re: Intersection of two lists of files

std::list<file> out; std::set_intersection(left.begin(), left.end(), right.begin(), right.end(),std::inserter(out,out.begin())); I think that i have wrong in bool < operator, suppose that two files have the same size and different names. Yes I would compare sizes at first and names after, without j...
by Kvaz1r
Sun Feb 02, 2020 1:53 pm
Forum: C++ Development
Topic: wxLogWindow frozen
Replies: 3
Views: 210

Re: wxLogWindow frozen

Second line don't right at all. Example of using wxLogWindow you can see in listing of Propgrid sample.

If something really don't works - provide minimal example of code for reproducing the behaviour.
by Kvaz1r
Tue Jan 21, 2020 7:38 am
Forum: C++ Development
Topic: Events are not processed
Replies: 6
Views: 338

Re: Events are not processed

But it's normal is in't? Selected and focused are independent states.
by Kvaz1r
Sun Jan 19, 2020 8:19 pm
Forum: Compiler / Linking / IDE Related
Topic: MSVC succedded, but not gcc/clang
Replies: 5
Views: 372

Re: MSVC succedded, but not gcc/clang

Ah, right, I overlooked the question, sorry. SO gave such topic - https://stackoverflow.com/questions/2024895/how-should-i-handle-cast-from-void-to-int-loses-precision-when-compiling But I've not sure that it's the right way to get item row because ID used to get window id and not item row. Maybe It...
by Kvaz1r
Sun Jan 19, 2020 7:03 pm
Forum: Compiler / Linking / IDE Related
Topic: MSVC succedded, but not gcc/clang
Replies: 5
Views: 372

Re: MSVC succedded, but not gcc/clang

That's right. GetID returns pointer to void so in C++ you should explicitly cast it to your type. Example as usual you can see in dataview sample.
by Kvaz1r
Sun Jan 19, 2020 6:55 pm
Forum: C++ Development
Topic: How to know if a wxFrame is beeing closed by a user
Replies: 11
Views: 646

Re: How to know if a wxFrame is beeing closed by a user

Method Close according to the documentation just generates wxCloseEvent event so I don't think that it's possible. But for your own application you can disable close button and provide menu item "Quit". In such case you can separate when user press menu item and when was generate wxCloseEvent. Btw, ...
by Kvaz1r
Sun Jan 19, 2020 9:24 am
Forum: Compiler / Linking / IDE Related
Topic: MSVC succedded, but not gcc/clang
Replies: 5
Views: 372

Re: MSVC succedded, but not gcc/clang

And what's written in the compiler error?
by Kvaz1r
Mon Jan 13, 2020 4:46 pm
Forum: C++ Development
Topic: Calculate the space needed
Replies: 4
Views: 291

Re: Calculate the space needed

First of all you should use monospace font and after that just find length of "SELECT " for second line and "FROM " for forth line. Am I understood you correct?
by Kvaz1r
Fri Jan 10, 2020 5:33 pm
Forum: Compiler / Linking / IDE Related
Topic: good and simple to use IDE for wxWidgets based applications?
Replies: 29
Views: 1776

Re: good and simple to use IDE for wxWidgets based applications?

Even doing everithing manually is still simpler then using that external sh*t. Well, it seems here yet another person who not understand what does mean word simple is. Written code manually couldn't been simplier than just pressing buttons in application until what do you see will be good enough. A...
by Kvaz1r
Fri Jan 10, 2020 3:48 pm
Forum: Compiler / Linking / IDE Related
Topic: good and simple to use IDE for wxWidgets based applications?
Replies: 29
Views: 1776

Re: good and simple to use IDE for wxWidgets based applications?

gtafan wrote:
Mon Jan 06, 2020 1:05 pm
Also since a graphical GUI designer is the most important part, VS is defenetlly of no use for me.
You always can use external RAD tool, for example wxFormBuilder - https://github.com/wxFormBuilder/wxFormBuilder with any IDE.