Search found 1075 matches

by PB
Sun Feb 19, 2017 9:50 am
Forum: General Development
Topic: Developing fast, lightweight apps for all popular and even legacy platforms
Replies: 15
Views: 601

Re: Developing fast, lightweight apps for all popular and even legacy platforms

Which compiler would you recommend for Windows 95 target? Is it possible with MinGW or TDM-GCC? From http://tdm-gcc.tdragon.net/about It can create 32-bit OR 64-bit binaries, for any version of Windows since Windows 98 . As for MinGW, I have no idea. I believe it also depends on how the code is gen...
by PB
Sun Feb 19, 2017 9:37 am
Forum: Platform Related Issues
Topic: wxDatePickerCtrl problem within an ExtraControl of a wxFileDialog | MingW - MSW platform |wx-3.0.2 / 3.1.0
Replies: 6
Views: 74

Re: wxDatePickerCtrl problem within an ExtraControl of a wxFileDialog | MingW - MSW platform |wx-3.0.2 / 3.1.0

My theory is that the native dialog is already destroyed at that time and with it the extra panel. You are obviously correct, I was being stupid. From wxWidgets point of view, there is no dialog. The native file dialog is displayed with GetOpenFileName() function deep inside wxFileDialog::ShowModal...
by PB
Sat Feb 18, 2017 11:42 pm
Forum: Platform Related Issues
Topic: wxDatePickerCtrl problem within an ExtraControl of a wxFileDialog | MingW - MSW platform |wx-3.0.2 / 3.1.0
Replies: 6
Views: 74

Re: wxDatePickerCtrl problem within an ExtraControl of a wxFileDialog | MingW - MSW platform |wx-3.0.2 / 3.1.0

I looked a bit more into the issue. The problem is in wxDateTime wxDatePickerCtrl::MSWGetControlValue() const { wxDateTime dt; SYSTEMTIME st; if ( DateTime_GetSystemtime(GetHwnd(), &st) == GDT_VALID ) { dt.SetFromMSWSysDate(st); } return dt; } For some reason the DateTime_GetSystemtime() macro r...
by PB
Sat Feb 18, 2017 6:29 am
Forum: C++ Development
Topic: wxWidgets in-build csv loader/writer?
Replies: 7
Views: 88

Re: wxWidgets in-build csv loader/writer?

I thought you would be consuming the CSV files and not producing them?

By the way, the tabulator is somewhat common field delimiter in the files I came across.
by PB
Fri Feb 17, 2017 7:13 pm
Forum: C++ Development
Topic: wxWidgets in-build csv loader/writer?
Replies: 7
Views: 88

Re: wxWidgets in-build csv loader/writer?

Though I think the functions will have problems determining whether a '1' is a string or an integer, maybe such problem is same as the quoting problem PB mentioned. wxSplit always returns strings. I use wxString's ToDouble() function to test if the value is a number or not. This requires some addit...
by PB
Fri Feb 17, 2017 9:07 am
Forum: C++ Development
Topic: wxWidgets in-build csv loader/writer?
Replies: 7
Views: 88

Re: wxWidgets in-build csv loader/writer?

No. But reading a file line by line with wxTextFile and splitting it into parts with wxSplit should be relatively simple. http://docs.wxwidgets.org/trunk/group__group__funcmacro__string.html#ga530ba2b0b90c59bc3d98c0eaf6f7a912 That's what I am usually doing as it suffices for my purposes. But a CSV ...
by PB
Fri Feb 17, 2017 7:00 am
Forum: C++ Development
Topic: OnButtonClick question [SOLVED]
Replies: 8
Views: 78

Re: OnButtonClick question [SOLVED]

There is part of code I didn't understand: switch ( evt.GetId() ) { case ID_CREATE_OWNED_FRAME: (new wxFrame(this, wxID_ANY, "Owned Frame"))->Show(); break; case ID_CREATE_NON_OWNED_FRAME: (new wxFrame(NULL, wxID_ANY, "Non-owned Frame"))->Show(); break; case ID_CREATE_OWNED_DIAL...
by PB
Thu Feb 16, 2017 1:31 pm
Forum: C++ Development
Topic: OnButtonClick question [SOLVED]
Replies: 8
Views: 78

Re: OnButtonClick question [SOLVED]

I have a question regarding the event.getID() method: I noticed you were using "title" variable as ID comparison, is the title can serve as unique ID of the frame/dialog/other gui objects? I did not use "title variable", I do not even know what it is. I used enum variables (ID_C...
by PB
Thu Feb 16, 2017 10:21 am
Forum: Platform Related Issues
Topic: wxDatePickerCtrl problem within an ExtraControl of a wxFileDialog | MingW - MSW platform |wx-3.0.2 / 3.1.0
Replies: 6
Views: 74

Re: wxDatePickerCtrl problem within an ExtraControl of a wxFileDialog | MingW - MSW platform |wx-3.0.2 / 3.1.0

I have tried the minimal possible sample on Windows 7 with wxWidgets GIT master head, see below and I get ..\..\src\common\datetime.cpp(625): assert ""month < MONTHS_IN_YEAR"" failed in wxDateTime::GetNumberOfDays(): invalid month I have no time to look into it any further atm, p...
by PB
Thu Feb 16, 2017 6:35 am
Forum: C++ Development
Topic: OnButtonClick question [SOLVED]
Replies: 8
Views: 78

Re: OnButtonClick question [SOLVED]

To obtain the control (or menu etc.) ID, call wxEvent::GetId(), see e.g. the code example in my post here
https://forums.wxwidgets.org/viewtopic.php?f=1&t=43091#p175163
by PB
Wed Feb 15, 2017 6:35 am
Forum: C++ Development
Topic: DeletePendingObjects repeatly deletes wxFrame object [SOLVED]
Replies: 9
Views: 80

Re: DeletePendingObjects repeatly deletes wxFrame object [SOLVED]

MagickPanda wrote:I am using a global wxFrame variable to store an instance of MyFrame class(

How and when do you construct that wxFrame instance? Is the lifetime of its variable longer than that of the wxApp instance?
by PB
Mon Feb 13, 2017 4:54 pm
Forum: C++ Development
Topic: Capturing call-stack wx
Replies: 12
Views: 86

Re: Capturing call-stack wx

Adding to oneeyeman....

Sorry for asking the obvious, but did you look into these classes: http://docs.wxwidgets.org/3.1/group__group__class__debugging.html. The use of the classes is demonstrated in the debugrpt sample.
by PB
Sun Feb 12, 2017 8:56 pm
Forum: Compiler / Linking / IDE Related
Topic: Missing moolib_fontmap.o
Replies: 5
Views: 53

Re: Missing moolib_fontmap.o

I do not know what was on IRC but AFAICS there is nothing related in the recent commits. As I understand it, the issue is not easy to fix, all makefiles would have to be changed (probably requires modification to the bakefile generator) to work around the command line length limit.
by PB
Sun Feb 12, 2017 8:17 pm
Forum: Compiler / Linking / IDE Related
Topic: Missing moolib_fontmap.o
Replies: 5
Views: 53

Re: Missing moolib_fontmap.o

I do agree it is a known problem - a randomly missing letter in the file name (it should be mo n olib_fontmap.obj) but I do not think that it was fixed. The root of the issue is a MS Windows limitation and one can find many posts here on the forum regarding the issue, mimosa himself posted the same ...
by PB
Sat Feb 11, 2017 8:56 pm
Forum: Platform Related Issues
Topic: Compiling wxwidgets under Win 10
Replies: 5
Views: 70

Re: Compiling wxwidgets under Win 10

Mhm, you seem to have run into the "missing characters in file names" bug (related to the MS Windows limits ), the file name should be coredll_collheaderct r lg.o No idea why it happens for some people, does not happen for me. By the way, have you checked this FAQ: https://wiki.wxwidgets.o...

Go to advanced search