Search found 1494 matches

by catalin
Wed Apr 17, 2019 12:56 pm
Forum: C++ Development
Topic: How to stop windows from showing program as "not responding"
Replies: 10
Views: 132

Re: How to stop windows from showing program as "not responding"

ValeV wrote:
Wed Apr 17, 2019 12:37 pm
I think the thread can be closed
You can set it to "Solved" by accepting one of the replies (see the 'v'-like button next to each reply).
by catalin
Wed Apr 17, 2019 8:43 am
Forum: C++ Development
Topic: How to stop windows from showing program as "not responding"
Replies: 10
Views: 132

Re: How to stop windows from showing program as "not responding"

That is because you can only do non-GUI work in a secondary thread (no matter what type of threads you use).
https://docs.wxwidgets.org/trunk/overview_thread.html
by catalin
Wed Apr 17, 2019 8:09 am
Forum: C++ Development
Topic: How to stop windows from showing program as "not responding"
Replies: 10
Views: 132

Re: How to stop windows from showing program as "not responding"

It might be slightly more complicated than that, as you probably need to sync with the worker thread when the work has ended, and/or show a progress dialog while the work is being done, possibility to cancel etc - there are some UI "good practices" for such things. But in a few words that should wor...
by catalin
Tue Apr 16, 2019 8:27 am
Forum: C++ Development
Topic: How to stop windows from showing program as "not responding"
Replies: 10
Views: 132

Re: How to stop windows from showing program as "not responding"

can I stop windows from marking program as "not responding"? You definitely can. There are other programs that don't behave like that, right? The best way to stop it is to move the time consuming work into a secondary thread. Anything other than that would be (until proven otherwise) a poor solutio...
by catalin
Thu Apr 11, 2019 2:40 am
Forum: C++ Development
Topic: can i put two wxGrid inside a wxPanel
Replies: 4
Views: 83

Re: can i put two wxGrid inside a wxPanel

Actually, the "healthiest" way to go about ids is to use -1 (wxID_ANY) when creating every widget (-1 means that wxW will assign the next available id to it), and then if you need to store the id, use GetId() to retrieve it (i.e. grid->GetId()).
by catalin
Sun Apr 07, 2019 5:11 am
Forum: C++ Development
Topic: can i put two wxGrid inside a wxPanel
Replies: 4
Views: 83

Re: can i put two wxGrid inside a wxPanel

Yes.
Did you try it before asking?
by catalin
Thu Mar 21, 2019 7:56 pm
Forum: C++ Development
Topic: wxTextCtrl password entry with show&hide password option
Replies: 11
Views: 724

Re: wxTextCtrl password entry with show&hide password option

I have not found a way to check at which index the current control was placed to that I could try to 'insert' it at the desired 'index' FWIW you should be able to achieve this without needing the index, by storing the wxSizerItem* returned by wxSizer::Add(...) and using its AssignWindow() when appr...
by catalin
Thu Mar 21, 2019 2:34 pm
Forum: C++ Development
Topic: wxEVT_BUTTON is not fired
Replies: 21
Views: 184

Re: wxEVT_BUTTON is not fired

by catalin
Thu Mar 21, 2019 10:25 am
Forum: C++ Development
Topic: determine number of cpu cores
Replies: 8
Views: 107

Re: determine number of cpu cores

i am guessing you are also thinking about magnetic drives here? Not only. The access delay on HDDs is one factor; another one is the number of I/O-s per second supported by a certain device, which is actually much higher for SSDs when compared to HDDs but I've seen cases where that limit was reache...
by catalin
Thu Mar 21, 2019 10:00 am
Forum: Announcements and Discoveries
Topic: [GSoD] Google Season of Docs 2019
Replies: 1
Views: 184

[GSoD] Google Season of Docs 2019

This year will be the first edition of yet another Google initiative that wxWidgets could profit from, by improving the contents of the documentation and their organization. Another bold idea referred to [online & freely available] video tutorials. Introduction The official announcement email: We’re...
by catalin
Thu Mar 21, 2019 9:33 am
Forum: C++ Development
Topic: determine number of cpu cores
Replies: 8
Views: 107

Re: determine number of cpu cores

You can probably start with the same number of threads as the number of processors. To allow the computer to still be responsive to user actions you should set thread priority lower than default for at least one of them, but probably better for all of them. Accessing files on the same device from mu...
by catalin
Fri Mar 15, 2019 12:49 pm
Forum: Compiler / Linking / IDE Related
Topic: GCC AVX support
Replies: 1
Views: 66

Re: GCC AVX support

I doubt anybody would be able to answer that question even if using a compiler provided by equation. But a simple Sherlock Holmes set of logical premises like their latest windows release, as of now, is based on gcc 8.2.0; the still open AVX reports already refer to gcc 8.2.1; would imply the conclu...
by catalin
Wed Mar 06, 2019 9:12 am
Forum: Compiler / Linking / IDE Related
Topic: Undefined reference to my_frame::quit(wxCommandEvent&)
Replies: 3
Views: 93

Re: Undefined reference to my_frame::quit(wxCommandEvent&)

That's a c++ issue, not a wxW one: the missing functions should be members of my_frame. i.e. Where is my_frame::quit ?
by catalin
Tue Mar 05, 2019 10:17 am
Forum: Compiler / Linking / IDE Related
Topic: compiling wxWidgets on windows 10 with cygwin
Replies: 3
Views: 192

Re: compiling wxWidgets on windows 10 with cygwin

TwistedSpace wrote:
Tue Mar 05, 2019 10:08 am
you have header issue
No, that is a linker error. It has nothing to do with the headers.
by catalin
Thu Feb 28, 2019 10:54 pm
Forum: C++ Development
Topic: How to size font on a panel with OnSize event
Replies: 4
Views: 97

Re: How to size font on a panel with OnSize event

You showed too little code. What are TestGUI and TestPanel and what exactly should they use *myFont for?
If you do custom painting, do you set the font of the wxDC to the font of the calling window in your paint handler?