Search found 24 matches
- Thu Jun 25, 2020 9:24 am
- Forum: C++ Development
- Topic: wxDC problem when window is minimized on wxMSW
- Replies: 5
- Views: 828
Re: wxDC problem when window is minimized on wxMSW
I am using a wxClientDC (Also tried wxWindowDC) to draw a certain thing on a custom widget in the window. Don't do this. Do all your drawing in a wxPaintEvent handler and onto a wx[Buffered]PaintDC. https://docs.wxwidgets.org/trunk/classwx_paint_event.html But how does it differ if I draw while the...
- Wed Jun 24, 2020 9:38 pm
- Forum: C++ Development
- Topic: wxDC problem when window is minimized on wxMSW
- Replies: 5
- Views: 828
wxDC problem when window is minimized on wxMSW
I am using a wxClientDC (Also tried wxWindowDC) to draw a certain thing on a custom widget in the window. The drawing process needs knowledge of the width and height of its parent (The custom widget) to draw properly. The custom widget is not always on screen, but rather created on demand, and it us...
- Wed Oct 16, 2019 9:27 am
- Forum: C++ Development
- Topic: wxScrolledWindow is slow when scrolling through long text
- Replies: 14
- Views: 2788
Re: wxScrolledWindow is slow when scrolling through long text
@MJaoune: How do you place the controls, do you also use sizers? Do you have a scroll- or mouse event handler that could be responsible for the slow down? There is the wxScrolledWindow which has a vertical wxBoxSizer, this sizer holds a random number of custom wxWindow widgets. Those custom wxWindo...
- Tue Oct 15, 2019 2:57 pm
- Forum: C++ Development
- Topic: wxScrolledWindow is slow when scrolling through long text
- Replies: 14
- Views: 2788
Re: wxScrolledWindow is slow when scrolling through long text
I agree. Can you show the code? Sorry, the code is long and somehow private. What I want to know is, does everything inside wxScrolledWindow keep getting redrawn even while scrolling? Can I set the "refresh rate" of a wxWindow component? The redrawing is done according to the monitor's re...
- Tue Oct 15, 2019 9:06 am
- Forum: C++ Development
- Topic: wxScrolledWindow is slow when scrolling through long text
- Replies: 14
- Views: 2788
Re: wxScrolledWindow is slow when scrolling through long text
How many wxStaticText are there? It could be this unresolved problem: http://trac.wxwidgets.org/ticket/15766 About 10-20, some of them are short texts, some are long... It is also slow on Windows 7, so that ticket might not be related I guess. One case, wxStaticText calc its size to fit the text by...
- Tue Oct 15, 2019 2:17 am
- Forum: C++ Development
- Topic: wxScrolledWindow is slow when scrolling through long text
- Replies: 14
- Views: 2788
Re: wxScrolledWindow is slow when scrolling through long text
But that only happens once, am I right? Or does it keep happening as long as wxScrolledWindow scrolls through text?
So wxStaticText keeps thinking it is being redrawn when it is scrolled through?
- Tue Oct 15, 2019 1:37 am
- Forum: C++ Development
- Topic: wxScrolledWindow is slow when scrolling through long text
- Replies: 14
- Views: 2788
wxScrolledWindow is slow when scrolling through long text
Hi, I have a wxScrolledWindow widget that has a number of wxStaticText widgets with long texts. On Windows (GTK doesn't have this problem), the scrolling would become slow when going through texts that have a somehow big number of lines. How can I make it faster? Is there a way to enable hardware ac...
- Mon Oct 14, 2019 5:29 pm
- Forum: C++ Development
- Topic: How does Layout() exactly work?
- Replies: 1
- Views: 623
How does Layout() exactly work?
If I have a wxScrolledWindow and inside it a wxBoxSizer which might contain (During runtime) a random list of custom widgets (wxWindow) with different heights, then how should the order of Layout() (And probably FitInside()) be when I list those custom widgets? If I call Layout() once in the main to...
- Mon Sep 02, 2019 11:54 am
- Forum: Database Related
- Topic: How to encrypt DB using wxSQLite3?
- Replies: 13
- Views: 24203
Re: How to encrypt DB using wxSQLite3?
Utelle has released a fixed and this problem is now fully solved in wxSQLite3 v4.4.6 and above.
- Sun Sep 01, 2019 1:21 pm
- Forum: Database Related
- Topic: How to encrypt DB using wxSQLite3?
- Replies: 13
- Views: 24203
Re: How to encrypt DB using wxSQLite3?
I have returned to the source code of wxSQLite3 and have found that the ReKey function is the same function with or without the cipher, it doesn't even use the cipher parameter: void wxSQLite3Database::ReKey(const wxSQLite3Cipher& cipher, const wxMemoryBuffer& newKey) { #if WXSQLITE3_HAVE_CO...
- Sun Sep 01, 2019 12:37 pm
- Forum: Database Related
- Topic: How to encrypt DB using wxSQLite3?
- Replies: 13
- Views: 24203
Re: How to encrypt DB using wxSQLite3?
If the application, you use to primarily encrypt the database (using Rekey method), passes a wxSQLite3Cipher object to the Rekey method to select a certain cipher, you need to do that for the other applications that expect an encrypted database, too. That exact opposite is happening! When I provide...
- Sun Sep 01, 2019 11:44 am
- Forum: Database Related
- Topic: How to encrypt DB using wxSQLite3?
- Replies: 13
- Views: 24203
Re: How to encrypt DB using wxSQLite3?
However, I still have the impression that you have a version mixup somehow. For which platforms do you build your applications? 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 cop...
- Sun Sep 01, 2019 10:40 am
- Forum: Database Related
- Topic: How to encrypt DB using wxSQLite3?
- Replies: 13
- Views: 24203
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. With wxSQLite3 ve...
- Sun Sep 01, 2019 9:47 am
- Forum: Database Related
- Topic: How to encrypt DB using wxSQLite3?
- Replies: 13
- Views: 24203
Re: How to encrypt DB using wxSQLite3?
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 connection. A few...
- Sun Sep 01, 2019 1:32 am
- Forum: Database Related
- Topic: How to encrypt DB using wxSQLite3?
- Replies: 13
- Views: 24203
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 ...