Search found 10535 matches

by doublemax
Sun Feb 19, 2017 8:47 am
Forum: General Development
Topic: Developing fast, lightweight apps for all popular and even legacy platforms
Replies: 8
Views: 527

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

After some Googling i guess that MinGW should work after setting the Windows version #defines correctly:
https://blogs.msdn.microsoft.com/oldnew ... /?p=27283/

I haven't tried it though.
by doublemax
Sun Feb 19, 2017 12: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: 61

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

I traced through that too, and in think that GetHwnd() returns an invalid handle when it reaches that code. wxFileDialog is a wrapper around the native dialog. My theory is that the native dialog is already destroyed at that time and with it the extra panel. So from Windows point of view that window...
by doublemax
Sat Feb 18, 2017 9:34 pm
Forum: C++ Development
Topic: BoxSizer Problem Stretch X and Y
Replies: 2
Views: 31

Re: BoxSizer Problem Stretch X and Y

Because of all the control pointers i can't test it easily, so for a start, replace these wxALIGN_CENTER with wxEXPAND

Code: Select all

   frame_sizer->Add(sizer_left, 4, wxALIGN_CENTER);
   frame_sizer->Add(sizer_right, 1, wxALIGN_CENTER );
by doublemax
Sat Feb 18, 2017 12:02 pm
Forum: C++ Development
Topic: How to force wxLogDebug to debugview in Release mode [SOLVED]
Replies: 2
Views: 27

Re: How to force wxLogDebug to debugview in Release mode [SOLVED]

I think the easiest way would be to just enable compiler optimizations in debug mode, then the code should run at "normal" speed.

Under Windows, you could also call OutputDebugString directly.
https://msdn.microsoft.com/en-us/librar ... 85%29.aspx
by doublemax
Fri Feb 17, 2017 10:14 pm
Forum: C++ Development
Topic: EVT_SIZE for parent Frame breaks two child controls
Replies: 2
Views: 25

Re: EVT_SIZE for parent Frame breaks two child controls

You didn't show the most important part, the size event handler itself. But i guess you forgot to call event.Skip() inside it, which is necessary so that the default layout handling gets executed.
by doublemax
Fri Feb 17, 2017 1:44 pm
Forum: C++ Development
Topic: Multilingual application
Replies: 2
Views: 30

Re: Multilingual application

Are your text literals wrapped in the _() macro?

Other than that, there really is not much that can go wrong.

Also, check the "official" wxWidgets page on that topic:
http://docs.wxwidgets.org/trunk/overview_i18n.html
by doublemax
Fri Feb 17, 2017 11:43 am
Forum: C++ Development
Topic: Performance issue while drawing
Replies: 7
Views: 61

Re: Performance issue while drawing

I don't know the exact number of polygon but i have something like 200 000 points and it can easily increase. That's a lot. Without hardware accelerated drawing you won't get even near real-time display. Is the drawing static or do the polygons change all the time? Are they all on screen at once? I...
by doublemax
Fri Feb 17, 2017 8:59 am
Forum: C++ Development
Topic: wxWidgets in-build csv loader/writer?
Replies: 7
Views: 80

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__ ... eaf6f7a912
by doublemax
Thu Feb 16, 2017 5:46 pm
Forum: C++ Development
Topic: wxFileConfig complete example for save and load settings [SOLVED]
Replies: 6
Views: 46

Re: wxFileConfig complete example for save and load settings [SOLVED]

wxStandardPaths::Get().GetExecutablePath() returns the full path including the executable name itself. You need to cut that part from the path first. However, it's possible that you don't have write access to that directory. So for saving data, you should use another directory as base, e.g. GetUserC...
by doublemax
Thu Feb 16, 2017 5:04 pm
Forum: C++ Development
Topic: wxFileConfig complete example for save and load settings [SOLVED]
Replies: 6
Views: 46

Re: wxFileConfig complete example for save and load settings [SOLVED]

Code: Select all

ConfigINI->SetPath("/fsettings");
In the INI-file it's just "settings" (without the leading "f")
by doublemax
Thu Feb 16, 2017 4:03 pm
Forum: C++ Development
Topic: how much socket buffer used?
Replies: 9
Views: 64

Re: how much socket buffer used?

Is it actually fatal that the sending device says its send buffer is full? Or is it just a hint that it could send faster? Do you do anything time consuming on the receiving end? If you can't process the data fast enough, all you can do is create a buffer as big as possible and hope that it's big en...
by doublemax
Thu Feb 16, 2017 3:40 pm
Forum: C++ Development
Topic: how much socket buffer used?
Replies: 9
Views: 64

Re: how much socket buffer used?

AFAIK there is no way to get this information. But i'm still not sure why you actually need it. In every data transmission, one of the two partners (sender/receiver) will be slower than the other. But the protocol should handle that, so that e.g. the sender stops sending until the receiver can recei...
by doublemax
Thu Feb 16, 2017 11:36 am
Forum: C++ Development
Topic: Call an event function from the code. For ex. OnButton1Click
Replies: 2
Views: 24

Re: Call an event function from the code. For ex. OnButton1Click

You shouldn't do that. If you have code that you want to call from an event handler, but also from other methods, put it into a separate method. void MyFrame::Foo( ) { // do the actual work here } void MyFrame::OnButtonClick( wxCommandEvent &event ) { Foo(); } void MyFrame::SomeOtherFunction( ) ...
by doublemax
Thu Feb 16, 2017 11:33 am
Forum: C++ Development
Topic: Performance issue while drawing
Replies: 7
Views: 61

Re: Performance issue while drawing

How many polygons are we talking about? Drawing polygons is just relatively slow, especially with wxGraphicsContext, because it uses anti-aliasing. If you don't need that or speed is more important, you could try to switch to "normal" wxDC drawing. Isn't Direct2D only for windows ? Because...
by doublemax
Thu Feb 16, 2017 9:47 am
Forum: C++ Development
Topic: Performance issue while drawing
Replies: 7
Views: 61

Re: Performance issue while drawing

It's possible that drawing polygons is not hardware accelerated, so drawing many of them could be slow. If you're using the latest wxWidgets development version from GIT, you could try the Direct2D implementation for wxGraphicsContext which should be much faster. Are you also drawing bitmaps in the ...

Go to advanced search