Search found 474 matches

by doublemax@work
Tue Mar 26, 2024 11:48 am
Forum: C++ Development
Topic: wxWidgets inside console DLL
Replies: 3
Views: 3887

Re: wxWidgets inside console DLL

If you intend to convert SVGs to PNGs, wxSvgDocument is the wrong class. The only way to access wxWidgets' SVG renderer is through wxBitmapBundle. https://docs.wxwidgets.org/trunk/classw ... undle.html
by doublemax@work
Mon Mar 25, 2024 7:34 am
Forum: General Development
Topic: App is crashing when resetting ultimatelistctrl items multiple times
Replies: 1
Views: 3703

Re: App is crashing when resetting ultimatelistctrl items multiple times

In general, wxPython related questions are better discussed at https://discuss.wxpython.org/

Are there any secondary threads involved? If not, why the CallAfter calls?

If everything is single-threaded, i can't spot any mistake. Is it not possible to get a call stack in wxPython?
by doublemax@work
Tue Mar 19, 2024 8:12 am
Forum: C++ Development
Topic: Suggestion to display list of images and text in twitter clone
Replies: 10
Views: 4835

Re: Suggestion to display list of images and text in twitter clone

TBH, i think using web technologies would be the best for this kind of task. Yes, I am using web technologies ( a websockets library), that loads some JSON. I meant for the actual GUI, like HTML/CSS + React/Vue/Svelte/etc. but I get missing JPEG symbols (link errors), do you happen to know the name...
by doublemax@work
Tue Mar 19, 2024 7:39 am
Forum: C++ Development
Topic: Suggestion to display list of images and text in twitter clone
Replies: 10
Views: 4835

Re: Suggestion to display list of images and text in twitter clone

TBH, i think using web technologies would be the best for this kind of task. or just display a list of wxPanel, each main wxPanel having wxPanel children for an image panel, a text panel, etc If you want to do it with wxWidgets and standard controls, this is what i'd do. But you will probably be lim...
by doublemax@work
Mon Mar 18, 2024 3:44 pm
Forum: C++ Development
Topic: wxGrid object's ref count assertion failed in multi-threading
Replies: 31
Views: 9348

Re: wxGrid object's ref count assertion failed in multi-threading

I'm afraid i don't know how to help any further from here.
by doublemax@work
Mon Mar 18, 2024 9:38 am
Forum: General Development
Topic: General way for console read text file in various Encodings
Replies: 8
Views: 4299

Re: General way for console read text file in various Encodings

I think wxConvAuto only checks for UTF encodings. For other multibyte encodings that can fail, you'd have to check them yourself until you find one that works. E.g. read the whole file in a buffer, then try to decode it using "gb2312". If the returned string is not empty, the encoding was ...
by doublemax@work
Mon Mar 18, 2024 8:13 am
Forum: General Development
Topic: General way for console read text file in various Encodings
Replies: 8
Views: 4299

Re: General way for console read text file in various Encodings

Is the code you posted the same you're actually using?

Can you post the file you use for testing?
by doublemax@work
Wed Mar 13, 2024 7:29 am
Forum: C++ Development
Topic: Remove an entry/page from wxHtmlHelpController
Replies: 2
Views: 3904

Re: Remove an entry/page from wxHtmlHelpController

Looking through the api of the related classes, i don't think there is a way to do that.
by doublemax@work
Tue Mar 12, 2024 9:51 am
Forum: C++ Development
Topic: Making win10 Magnifier with wxWidgets: is it feasible?
Replies: 5
Views: 4052

Re: Making win10 Magnifier with wxWidgets: is it feasible?

Parduz wrote: Tue Mar 12, 2024 9:32 am what hit me is the WDA_EXCLUDEFROMCAPTURE flag for the SetWindowDisplayAffinity function.

Does wxWidgets implement it in some way?
No, but as you can get the HWND with wxWindow::GetHandle(), you can just call it directly if you only need a Windows solution.
by doublemax@work
Tue Mar 05, 2024 10:21 am
Forum: C++ Development
Topic: Partial background color
Replies: 14
Views: 9511

Re: Partial background color

That doesn't help, because i don't know what type mcUserAnswer1 is, and how the text is displayed.
by doublemax@work
Tue Mar 05, 2024 8:30 am
Forum: C++ Development
Topic: Partial background color
Replies: 14
Views: 9511

Re: Partial background color

Is the content custom painted, or are these two different controls? If it's custom painted, note that there is a dedicated call to set the text background color: https://docs.wxwidgets.org/trunk/classw ... 1bb022766b
by doublemax@work
Mon Mar 04, 2024 3:30 pm
Forum: C++ Development
Topic: wxGrid object's ref count assertion failed in multi-threading
Replies: 31
Views: 9348

Re: wxGrid object's ref count assertion failed in multi-threading

ONEEYEMAN, please settle down, no need to scream.
by doublemax@work
Mon Mar 04, 2024 2:57 pm
Forum: C++ Development
Topic: wxGrid object's ref count assertion failed in multi-threading
Replies: 31
Views: 9348

Re: wxGrid object's ref count assertion failed in multi-threading

The official point of view is: You shouldn't do any of the things you listed. Otherwise you must know what you're doing, and if it works on one platform, there is no guarantee that it also works on another. In most cases it requires knowledge about the internal implementation of each class you'll be...
by doublemax@work
Mon Mar 04, 2024 12:08 pm
Forum: C++ Development
Topic: wxGrid object's ref count assertion failed in multi-threading
Replies: 31
Views: 9348

Re: wxGrid object's ref count assertion failed in multi-threading

This is especially important for reference-counted objects. Thank you! And where can I learn which objects exactly are reference-counted? If I know this, I know what to look for in my code. For example: could wxGetColourFromUser return a reference counted object? Potentially anything that derives f...
by doublemax@work
Mon Mar 04, 2024 12:02 pm
Forum: C++ Development
Topic: How to make the clicks on the top transparent window passing through to the below window?
Replies: 6
Views: 3955

Re: How to make the clicks on the top transparent window passing through to the below window?

Raphy wrote: Mon Mar 04, 2024 11:59 am How to make the clicks pass through the top transparent window and reach the below window?
I don't think that's possible. And if it was, you couldn't use the slider in the transparent window any longer.