Search found 1013 matches

by utelle
Tue Aug 25, 2020 11:55 am
Forum: C++ Development
Topic: changing a wxLocale object also changes wxFileDialog language
Replies: 4
Views: 297

Re: changing a wxLocale object also changes wxFileDialog language

what part of my code has this global effect to change the wxFileDialog language? I thought I only change my documentationLocale? Calling wxLocale method Init has global side effects - as is stated in the wx documentation : The call of this function has several global side effects which you should u...
by utelle
Mon Aug 17, 2020 5:13 pm
Forum: Compiler / Linking / IDE Related
Topic: Does anyone successfully working with VLD and wxWidgets?
Replies: 12
Views: 812

Re: Does anyone successfully working with VLD and wxWidgets?

However, to my surprise I didn't get full report: [...] I was hoping to get a backtrace to the places where the allocation happens, but I don't see it unfortunately. All I see is - " (TID 1180):". I had similar issues with VLD, which went away after recompiling VLD with the latest version of Visual...
by utelle
Mon Aug 17, 2020 5:01 pm
Forum: Compiler / Linking / IDE Related
Topic: Does anyone successfully working with VLD and wxWidgets?
Replies: 12
Views: 812

Re: Does anyone successfully working with VLD and wxWidgets?

vld.h must be included in every source file where you want to detect memory leaks. AFAIK this is not correct. The header file vld.h has to be included in at least one source file of each compilation unit (executable or DLL), for which leak detection is desired. Including it in more than one source ...
by utelle
Sun Aug 16, 2020 9:52 pm
Forum: Announcements and Discoveries
Topic: ANN: wxSQLite3 4.6.0 released
Replies: 0
Views: 1256

ANN: wxSQLite3 4.6.0 released

Version 4.6.0 of wxSQLite3 has been released. It supports version 3.33.0 of SQLite . This version is compatible with wxWidgets 2.8.12, wxWidgets 3.0.x, and wxWidgets 3.1.x. What's new in this release Replace wxSQLite3 encryption extension by SQLite3 Multiple Ciphers encryption extension (support for...
by utelle
Tue Jul 21, 2020 6:42 pm
Forum: wxCode
Topic: wxPDFDocument: bitmaps on consecutive pages
Replies: 15
Views: 2541

Re: wxPDFDocument: bitmaps on consecutive pages

I adjusted the wxPdfDC implementation to use a global bitmap image counter. This avoids name clashes for bitmap images drawn to wxPdfDC. Thus, you can use your approach with creating a new wxPdfDC instance for each page. Please use the latest wxPdfDocument master.
by utelle
Tue Jul 21, 2020 12:11 pm
Forum: wxCode
Topic: wxPDFDocument: bitmaps on consecutive pages
Replies: 15
Views: 2541

Re: wxPDFDocument: bitmaps on consecutive pages

The approach with a single wxPdfDC should work for you. Do I not have to set the page size in the wxPdfDC ctor?! wxPdfDC(&pdfDcmt, pageSzMM.x, pageSzMM.y); In principle, you are right, of course. However, internally the sizes (width, height) set by the ctor do not matter under most circumstances. O...
by utelle
Tue Jul 21, 2020 9:32 am
Forum: wxCode
Topic: wxPDFDocument: bitmaps on consecutive pages
Replies: 15
Views: 2541

Re: wxPDFDocument: bitmaps on consecutive pages

[...] could you please show the code used to transfer the bitmaps to the wxPdfDC instance? sure, it is just a really simple dc->DrawBitmap(*getBitmap(false), pos, true); As expected ... but it doesn't explain, why you have 2 bitmaps in the PDF, of which only one is actually referenced. This can't b...
by utelle
Tue Jul 21, 2020 8:27 am
Forum: wxCode
Topic: wxPDFDocument: bitmaps on consecutive pages
Replies: 15
Views: 2541

Re: wxPDFDocument: bitmaps on consecutive pages

Are the bitmap images added through wxDC/wxPdfDC code? The first one is drawn directly on the wxPdfDC and the second one is first drawn on a wxMemoryDC and then the bitmap is copied to wxPdcDC. The problem is the same when I switch the page sequence. Looking at the uncompressed PDF file I see that ...
by utelle
Mon Jul 20, 2020 5:15 pm
Forum: wxCode
Topic: wxPDFDocument: bitmaps on consecutive pages
Replies: 15
Views: 2541

Re: wxPDFDocument: bitmaps on consecutive pages

but the template data are only saved once to the PDF. That seems to be the cause of my problem. I don't think so. If you have different templates, the data of each are saved to PDF, of course. In your case, in the PDF document you provided, there are 2 templates. Each template references a bitmap i...
by utelle
Mon Jul 20, 2020 2:02 pm
Forum: wxCode
Topic: wxPDFDocument: bitmaps on consecutive pages
Replies: 15
Views: 2541

Re: wxPDFDocument: bitmaps on consecutive pages

is there a documentation about when to use templates at all? Unfortunately, no. However, from the template sample it should get clear that using a template makes sense, if you want for example to use the same (complex) element over and over again in the same PDF. Instead of creating the same elemen...
by utelle
Sun Jul 19, 2020 3:54 pm
Forum: wxCode
Topic: wxPDFDocument: bitmaps on consecutive pages
Replies: 15
Views: 2541

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. Again, without code there is only wild guessing what might be wrong ... Yes, I use the template feature (not sure why though). is there an example of how to use it ...
by utelle
Sun Jul 19, 2020 3:15 pm
Forum: wxCode
Topic: wxPDFDocument: bitmaps on consecutive pages
Replies: 15
Views: 2541

Re: wxPDFDocument: bitmaps on consecutive pages

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.goog...
by utelle
Tue Jul 14, 2020 11:07 pm
Forum: wxCode
Topic: wxPdfDocument: Plotting a Rotated Rectangle
Replies: 20
Views: 2277

Re: wxPdfDocument: Plotting a Rotated Rectangle

In wxWidgets, we're using the wxAffineMatrix2D class to display a rotated rectangle. Below is a small sample of the code we use. This code works great on a panel but when we use the wxPdfDC class, the rectangle disappears. Is this the correct way to display a rotated rectangle in this library or is...
by utelle
Fri Jul 03, 2020 5:35 pm
Forum: Database Related
Topic: Problems building wxWidgets 3.0.5 and sqlite 3.31 (amalgamation)
Replies: 25
Views: 4502

Re: Problems building wxWidgets 3.0.5 and sqlite 3.31 (amalgamation)

I didn't know whether you{r team} did the development or you just acquire some license from official SQLite dev team. The official SQLite encryption extension is a commercial product, to which I don't have access. Of course, I didn't reinvent the wheel, that is, most crypto algorithms used to imple...
by utelle
Fri Jul 03, 2020 3:09 pm
Forum: Database Related
Topic: Problems building wxWidgets 3.0.5 and sqlite 3.31 (amalgamation)
Replies: 25
Views: 4502

Re: Problems building wxWidgets 3.0.5 and sqlite 3.31 (amalgamation)

In addition to what Ulrich already said - SQLite is free of charge, but there are extensions which are cost money. If you go with wxSQLite some of those extensions are included in there. Among other extensions (like additional math functions) wxSQLite3 includes a SQLite encryption extension which i...