Search found 2473 matches

by PB
Tue Aug 11, 2020 5:52 pm
Forum: C++ Development
Topic: using TimeSpan to avoid Timer?
Replies: 8
Views: 101

Re: using TimeSpan to avoid Timer?

i thought you've suggested a simple timer to for a pop-up message!? But the link you've send, describes a new thread in a seperate class i'm confused You showed a rather confusing example code not matching a wxWidgets usage pattern. Hence, I provided an example showing how to send messages from a w...
by PB
Tue Aug 11, 2020 4:37 pm
Forum: C++ Development
Topic: using TimeSpan to avoid Timer?
Replies: 8
Views: 101

Re: using TimeSpan to avoid Timer?

Tried to do that. But i get an error unfortunately If you are really doing it like that, ie., doing all this from main(), you cannot. In order to use wxWidgets classes, you need to initialize wxWidgets. In order to process wxWidgets events, you need to have a message loop initialized and running. F...
by PB
Tue Aug 11, 2020 12:21 pm
Forum: C++ Development
Topic: using TimeSpan to avoid Timer?
Replies: 8
Views: 101

Re: using TimeSpan to avoid Timer?

asiaimbiss9 wrote:
Tue Aug 11, 2020 12:13 pm
ok, so i shouldn't use TimeSpan functionalities here?
Well, you could but as I wrote above I believe it is not the best solution and would prefer using a timer myself.
by PB
Tue Aug 11, 2020 11:54 am
Forum: C++ Development
Topic: using TimeSpan to avoid Timer?
Replies: 8
Views: 101

Re: using TimeSpan to avoid Timer?

I would just send the main thread (to application or whichever window will show the dialog) a message to do that (using a one-shot timer), seems much simpler then testing whether the time is right who knows how many times inside a loop...
by PB
Fri Aug 07, 2020 4:35 pm
Forum: Platform Related Issues
Topic: [OS Windows] > LoadLibrary failed with error 127
Replies: 14
Views: 213

Re: [OS Windows] > LoadLibrary failed with error 127

I compile my project with the following define: DEFINES=/D "WIN32W /D "__WXMWS__" /D "WXUSINGDLL" /D "_WINDOWS" /D "_UNICODE" The first two defines are incorrect; however, I am not sure it matters here. The wxWidgets are compiled with options: ... So UNICODE is set to 0 there as well? The way you b...
by PB
Fri Aug 07, 2020 6:31 am
Forum: C++ Development
Topic: Creating a window of w,h does not create a window of w,h
Replies: 1
Views: 56

Re: Creating a window of w,h does not create a window of w,h

I have no idea about Linux or constant ratios, the following applies to frames on Win10...

Please see here for possible explanation and here for an attempt at wxWidgets workaround code.
by PB
Thu Aug 06, 2020 6:09 pm
Forum: C++ Development
Topic: assertion on notebook resizing in splitter
Replies: 7
Views: 137

Re: assertion on notebook resizing in splitter

The bitmap assert on MSW was introduced in 2015, so it has been there since 3.1.0: https://github.com/wxWidgets/wxWidgets/commit/3d2d8fc4ab9e5b1623b5839a59a909fdafe30a09 Is there a minimal correct compilable code that can reproduce the issue with the splitter? I do not really understand what is in t...
by PB
Wed Aug 05, 2020 7:52 am
Forum: Compiler / Linking / IDE Related
Topic: wx with codeblocks, error in linking...
Replies: 2
Views: 53

Re: wx with codeblocks, error in linking...

I do not think that using wx-config together with Code::Blocks is very common. If you have spent weeks on it, I would try another tutorial. If you are on Windows, see here viewtopic.php?f=19&t=47233
by PB
Tue Aug 04, 2020 5:11 pm
Forum: C++ Development
Topic: wx, main() and global scope
Replies: 6
Views: 126

Re: wx, main() and global scope

Or you do not need an actual pointer and can use a singleton-returning function, initialized upon the first call of the function.

The concept is employed e.g. with wxStandardPaths or wxPlatformInfo, which have a single instance of the class, returned by a static Get() method.
by PB
Tue Aug 04, 2020 4:53 pm
Forum: C++ Development
Topic: wxListCtrl & OnGetItemColumnAttr() & the selected row
Replies: 4
Views: 96

Re: wxListCtrl & OnGetItemColumnAttr() & the selected row

What platform?

Using the code from here on MSW, the custom text colour in the Value column seems to stick, regardless of item selection.

I think that the selection rectangle is drawn over the items in all columns and hence the item background is ignored.
by PB
Mon Aug 03, 2020 10:45 am
Forum: C++ Development
Topic: check box in grid column
Replies: 12
Views: 223

Re: check box in grid column

BTW, I have noticed there have been recent changes in wxGridCellBoolEditor https://github.com/wxWidgets/wxWidgets/commit/5a0723223dfac29998f323252fd1b286f902d7be Normally wxGridCellEditor shows some UI control allowing the user to edit the cell, but starting with wxWidgets 3.1.4 it's also possible t...
by PB
Tue Jul 28, 2020 8:39 pm
Forum: General Development
Topic: Why there is no compiled WxWidgets version?
Replies: 39
Views: 5035

Re: Why there is no compiled WxWidgets version?

I have no idea what build system are you talking about, gtafan. Normally one would use a batch file, such as ones here https://github.com/PBfordev/wxpbguide/tree/master/bats/build Nevertheless, here is a fast, correct command to build wxWidgets in the same configuration you had mingw32-make -f makef...
by PB
Mon Jul 27, 2020 1:56 pm
Forum: General Development
Topic: Why there is no compiled WxWidgets version?
Replies: 39
Views: 5035

Re: Why there is no compiled WxWidgets version?

I know you said SHARED=0 is unnecesary, but want to be shure that after wasting more then half an hour I get a static build and no useles dlls. Well, if I wanted to know what a build option means, I would check the official documentation instead of waiting half an hour for the build to finish and t...
by PB
Mon Jul 27, 2020 12:17 pm
Forum: General Development
Topic: Why there is no compiled WxWidgets version?
Replies: 39
Views: 5035

Re: Why there is no compiled WxWidgets version?

I have very little knowledge of GCC but I have built many wxWidgets versions in different configurations using different flavors of MinGW, with GCC versions ranging from 5 to 10 so I do know a bit about wxWidgets build options. The command line I posted before certainly works. The comandline that wo...
by PB
Sun Jul 26, 2020 12:09 pm
Forum: C++ Development
Topic: prevent user from entering non ISO-8859-1 characters
Replies: 4
Views: 123

Re: prevent user from entering non ISO-8859-1 characters

I looked into the docs and the validation sample and found it quite complicated to list every single valid character from ISO-8859-1 by hand and then use the include list with a wxValidator. IMHO that should be part of a future wxWidgets release? Let's hope not. This is IMO a very uncommon task. In...