Search found 880 matches

by utelle
Fri Sep 06, 2019 6:19 pm
Forum: wxCode
Topic: wxPdfDc semi transparent brush
Replies: 9
Views: 261

Re: wxPdfDc semi transparent brush

Well, you did not reveal earlier that you were using the wxPdfDC template mode.

Indeed this did not work due to missing references to the required extended graphics state information. This has been fixed in the latest commit on GitHub.
by utelle
Fri Sep 06, 2019 2:29 pm
Forum: wxCode
Topic: wxPdfDc semi transparent brush
Replies: 9
Views: 261

Re: wxPdfDc semi transparent brush

It does not work yet. I saw the alpha value was there in SetupAlpha() in > wxpdfdocd.dll!wxPdfDCImpl::DoDrawRectangle(int x, int y, int width, int height) Zeile 791 C++ wxmsw313ud_core_vc_x64_custom.dll!wxDC::DrawRectangle(int x, int y, int width, int height) Zeile 1170 C++ but it does not show up ...
by utelle
Fri Sep 06, 2019 11:18 am
Forum: wxCode
Topic: wxPdfDc semi transparent brush
Replies: 9
Views: 261

Re: wxPdfDc semi transparent brush

Thank you! It does not work yet. I saw the alpha value was there in SetupAlpha() in > wxpdfdocd.dll!wxPdfDCImpl::DoDrawRectangle(int x, int y, int width, int height) Zeile 791 C++ wxmsw313ud_core_vc_x64_custom.dll!wxDC::DrawRectangle(int x, int y, int width, int height) Zeile 1170 C++ but it does n...
by utelle
Thu Sep 05, 2019 9:01 pm
Forum: wxCode
Topic: wxPdfDc semi transparent brush
Replies: 9
Views: 261

Re: wxPdfDc semi transparent brush

Unfortunately, wxPdfDC currently doesn't support alpha transparency, although the underlying wxPdfDocument class does. It shouldn't be too hard to add this capability. However, it would need testing. In the meantime I have implemented the alpha transparency support for wxPdfDC. Commit a03399b on Gi...
by utelle
Thu Sep 05, 2019 7:40 pm
Forum: wxCode
Topic: wxPdfDc semi transparent brush
Replies: 9
Views: 261

Re: wxPdfDc semi transparent brush

Sorry for the late response. This post simply dropped out of sight too fast, since I don't check the wxForum that often. In urgent cases post to the wxCode subforum, or even better open an issue on GitHub . On screen I paint a rectangle with 10% transparency using dc->SetBrush(wxColour(col.Red(), co...
by utelle
Sun Sep 01, 2019 7:31 pm
Forum: Database Related
Topic: How to encrypt DB using wxSQLite3?
Replies: 13
Views: 370

Re: How to encrypt DB using wxSQLite3?

[...] So this is a glitch in your library, that ReKey() does not use the cipher provided for encryption. This explains why I need to not provide the cipher when using Open() for decryption to work, because encryption didn't make use of it. Ouch ... this is indeed a bug in wxSQLite3. Interestingly i...
by utelle
Sun Sep 01, 2019 12:27 pm
Forum: Database Related
Topic: How to encrypt DB using wxSQLite3?
Replies: 13
Views: 370

Re: How to encrypt DB using wxSQLite3?

Linux using wxGTK 3.0.4 (GTK3), wxSQLite3 4.4.5 (Shared). And Windows 7, wxMSW 3.1.2 (VC9), wxSQLite3 4.4.5 (Static). But the problem exists in the same platform, as I copy the encrypted DB files to another application in the same platform. The problem that is platform dependent is when I do not pr...
by utelle
Sun Sep 01, 2019 11:15 am
Forum: Database Related
Topic: How to encrypt DB using wxSQLite3?
Replies: 13
Views: 370

Re: How to encrypt DB using wxSQLite3?

I'm not sure whether I fully understand what exactly you are doing. If I understand you correctly you call the wxSQLite3 Open method without explicitly passing a wxSQLite3Cipher object, but with giving the encryption key. And that works on some systems, but on others not. Exactly. Well, this strong...
by utelle
Sun Sep 01, 2019 10:35 am
Forum: Database Related
Topic: How to encrypt DB using wxSQLite3?
Replies: 13
Views: 370

Re: How to encrypt DB using wxSQLite3?

How big is the database file? A few hundred megabytes. What do you do with the rekeyed database file? Do you copy it to a different folder for processing by the other application? If the answer is no, how do you know when to rekey/encrypt a plain database file? The encrypting application is only fo...
by utelle
Sun Sep 01, 2019 7:40 am
Forum: Database Related
Topic: How to encrypt DB using wxSQLite3?
Replies: 13
Views: 370

Re: How to encrypt DB using wxSQLite3?

1- Existing. How big is the database file? Encrypting a large database can be a time-consuming operation, and the encrypted database can only be accessed after the rekey operation has completed. While the rekey operation is running, you must not access the database file from any other database conn...
by utelle
Sat Aug 31, 2019 10:33 pm
Forum: Database Related
Topic: How to encrypt DB using wxSQLite3?
Replies: 13
Views: 370

Re: How to encrypt DB using wxSQLite3?

In principle, your code should work. However, from your code snippets several things don't become clear: Are you encrypting an existing database or creating an empty database on which you apply encryption in the first step? Is the first step (applying the Rekey method) part of the same application a...
by utelle
Mon Aug 26, 2019 6:47 am
Forum: Platform Related Issues
Topic: UTF8 characters corrupt on GUI in Windows
Replies: 6
Views: 142

Re: UTF8 characters corrupt on GUI in Windows

Are your sure that VisualStudio use utf8 encoding for file? Well how do I check? The strings look normal in the Visual Studio IDE, also, I haven't created the files in VS, but in another text editor and then added those files to the VS project. Visual Studio usually offers to save a source file as ...
by utelle
Tue Aug 20, 2019 9:59 pm
Forum: Announcements and Discoveries
Topic: ANN: wxSQLite3 4.4.5 released
Replies: 2
Views: 428

Re: ANN: wxSQLite3 4.4.5 released

Why wont you implement wxSQLite3 into wxWidgets officially? Well, the main focus of wxWidgets lies on providing GUI functionality. Therefore the wxWidgets core developers are reluctant to add non-GUI components. In an earlier version of wxWidgets an ODBC component was part of the core library, but ...
by utelle
Thu Aug 08, 2019 7:43 pm
Forum: Announcements and Discoveries
Topic: ANN: wxSQLite3 4.4.5 released
Replies: 2
Views: 428

ANN: wxSQLite3 4.4.5 released

Version 4.4.5 of wxSQLite3 has been released. It supports version 3.29.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 Upgrade to SQLite version 3.29.0 Added SQLite logging support Added build support for VS2019 Added C...
by utelle
Thu Aug 01, 2019 3:27 pm
Forum: wxCode
Topic: draw rotated bitmap with wxGCDC
Replies: 17
Views: 706

Re: draw rotated bitmap with wxGCDC

Unfortunately, the sample file is missing from the post. maybe it works this time, only attached and not placed inline? Yes, it worked. - AFAIK the forum supports only attachments not inline graphics. But like I wrote, I do not need this anymore, rotating the whole wxPdcDocument works great and lea...