Search found 449 matches

by mael15
Sun Jul 19, 2020 3:19 pm
Forum: wxCode
Topic: wxPDFDocument: bitmaps on consecutive pages
Replies: 15
Views: 1289

Re: wxPDFDocument: bitmaps on consecutive pages

thanx, I know it is hard without the code, it just is so fragmented that hours of trying to create a minimal version did not work out. Yes, I use the template feature (not sure why though). is there an example of how to use it correctly?
by mael15
Sun Jul 19, 2020 11:13 am
Forum: wxCode
Topic: wxPDFDocument: bitmaps on consecutive pages
Replies: 15
Views: 1289

wxPDFDocument: bitmaps on consecutive pages

Hi, I have a weird problem: two bitmaps are supposed to be copied on two consecutive pages, like this: twoPages.jpg but what actually happens is that the second bitmap uses the pixels of the first one. position and dimensions are correct, just not the data. this is the resulting pdf: https://drive.g...
by mael15
Thu Jul 16, 2020 5:45 pm
Forum: C++ Development
Topic: writing/reading uft-8 from special chars to a file
Replies: 3
Views: 237

Re: writing/reading uft-8 from special chars to a file

That was really helpful, thanx! I made some simple tests and it took some time but works now. I use libxml2 but had some old unnecessarily complicated details to clean up. It is surprisingly complicated how strings are converted and how to save, read and reverse it.
by mael15
Tue Jul 14, 2020 8:45 am
Forum: C++ Development
Topic: writing/reading uft-8 from special chars to a file
Replies: 3
Views: 237

writing/reading uft-8 from special chars to a file

I am struggling to write a string containing special chars in UTF-8 to a file and read it back correctly. Problems start when the utf-8 string supposedly has the length of 8 but in the file 12 bytes are written. wxString testStr(wxT("abcdêü")); wxString utf8Str = testStr.ToUTF8(); wxFile uft8File; w...
by mael15
Fri Jul 03, 2020 12:17 pm
Forum: C++ Development
Topic: wxSpinCtrlDouble not wrapping correctly?
Replies: 6
Views: 408

Re: wxSpinCtrlDouble not wrapping correctly?

thank you! so I guess there is no easy fix?
by mael15
Mon Jun 29, 2020 11:03 am
Forum: C++ Development
Topic: wxSpinCtrlDouble not wrapping correctly?
Replies: 6
Views: 408

wxSpinCtrlDouble not wrapping correctly?

Hi, I have this simple wxSpinCtrlDouble: wxSpinCtrlDouble* rotSpin = new wxSpinCtrlDouble(this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxSize(80, -1), wxSP_WRAP, 0.0, 359.9, 0, 0.1); rotSpin->SetDigits(1); When wrapping downwards using the arrow buttons on wxMSW: 0.2, 0.1, 0.0. 359.9, 359.8 eve...
by mael15
Sun Jun 28, 2020 11:17 am
Forum: C++ Development
Topic: cannot catch key event in wxSpinCtrlDouble
Replies: 2
Views: 179

Re: cannot catch key event in wxSpinCtrlDouble

works perfectly, thanx! =D>
by mael15
Sun Jun 28, 2020 10:51 am
Forum: C++ Development
Topic: cannot catch key event in wxSpinCtrlDouble
Replies: 2
Views: 179

cannot catch key event in wxSpinCtrlDouble

I need to catch the Escape key and assign a specific action in a wxSpinCtrlDouble. Strangly, what works in a wxSpinCtrl does not in a wxSpinCtrlDouble: class escTest : public wxSpinCtrl/*Double*/ { public: escTest(wxWindow *par) : wxSpinCtrl/*Double*/(par, wxID_ANY){ Bind(wxEVT_KEY_DOWN, wxKeyEventH...
by mael15
Thu Jun 18, 2020 5:08 pm
Forum: C++ Development
Topic: how to remove the file to trash?
Replies: 12
Views: 2640

Re: how to remove the file to trash?

ONEEYEMAN wrote:
Thu Jun 18, 2020 4:58 pm
Hi,
The pull request PB referenced takes care of all 3 major platforms.
Give it a shot and see what happens.

Thank you.
thanx, I only need it for windows but hope it will be part of the next regular release. Very important function imho. I copy and pasted the msw part.
by mael15
Thu Jun 18, 2020 2:16 pm
Forum: C++ Development
Topic: how to remove the file to trash?
Replies: 12
Views: 2640

Re: how to remove the file to trash?

perfect, thanx!
by mael15
Thu Jun 18, 2020 11:31 am
Forum: C++ Development
Topic: how to remove the file to trash?
Replies: 12
Views: 2640

Re: how to remove the file to trash?

Is this still the same on Windows 10?
by mael15
Fri Apr 24, 2020 8:49 am
Forum: C++ Development
Topic: double buffering makes spin button disappear
Replies: 2
Views: 230

Re: double buffering makes spin button disappear

Maybe is it related to this unsolved bug https://trac.wxwidgets.org/ticket/18231#comment:3 Are you doing anything in the spin event handler? That is probably it. I am not doing anything in the spin event handler, I was just trying to fresh the wxSpinCtrl to make the arrow appear again, but it doesn...
by mael15
Fri Apr 24, 2020 7:04 am
Forum: C++ Development
Topic: double buffering makes spin button disappear
Replies: 2
Views: 230

double buffering makes spin button disappear

Hello everyone, I have a little visual problem. As you can see in this minimal example, when one clicks the upper button on a wxSpinCtrl, the lower button under the cursor disappears and stays gone if one moves the mouse to the right afterwards. This is because I use SetDoubleBuffered(true) to avoid...
by mael15
Tue Apr 21, 2020 9:04 am
Forum: C++ Development
Topic: wxPanel on another panel, repaint using a lot CPU
Replies: 14
Views: 760

Re: wxPanel on another panel, repaint using a lot CPU

Regarding the CPU utilization: I believe that on modern CPUs just the percentage can be deceiving, as the CPU underclocks when not fully utilized. For example, my desktop AMD CPU underclocks to < 2 GHz from its default 3.4. The current speed can be seen on the Performance tab of the Task Manager. T...
by mael15
Tue Apr 21, 2020 6:18 am
Forum: C++ Development
Topic: wxPanel on another panel, repaint using a lot CPU
Replies: 14
Views: 760

Re: wxPanel on another panel, repaint using a lot CPU

Hmm, the CPU load on my system is around 1-2%, no matter how fast i move the mouse. From your posts i would have expected something much worse ;) Hmmmmmmm, when I maximize the frame on a full hd display and move the mouse around it goes up to 8-9% on my i7 3.5GHz 16GB ram system. At least when not ...