Search found 4193 matches

by PB
Tue Feb 27, 2024 6:28 pm
Forum: Platform Related Issues
Topic: Windows Scaling 300%
Replies: 53
Views: 1622

Re: Windows Scaling 300%

rocrail wrote: Tue Feb 27, 2024 6:21 pm why is this problem only with Windows?
I thought the High DPI guide I referred you to explains this, does it not (i.e., automatic scaling present on macOS but not Windows)? But I have zero experience with non-Windows OSes...
by PB
Tue Feb 27, 2024 6:20 pm
Forum: Compiler / Linking / IDE Related
Topic: codeblocks/wxsmith setup difficulties...
Replies: 17
Views: 582

Re: codeblocks/wxsmith setup difficulties...

You can ignore my guide, that is Windows only. Disclaimer: I am not using wxSmith or Linux, my knowledge about the two is virtually nil, so this may be the case of blind leading the blind Firstly, I think you are better off asking in the Code::Blocks forum. Secondly, I don't think wxSmith requires w...
by PB
Tue Feb 27, 2024 6:00 pm
Forum: Platform Related Issues
Topic: Windows Scaling 300%
Replies: 53
Views: 1622

Re: Windows Scaling 300%

(I suppose that the same behaviour is observed when running actual Windows and not under the VM...) The manifest is not Per Monitor V2 aware, see how that should look e.g. here: https://github.com/wxWidgets/wxWidgets/blob/master/include/wx/msw/wx_dpi_aware_pmv2.manifest I am also surprised that the ...
by PB
Sun Feb 25, 2024 6:11 pm
Forum: Compiler / Linking / IDE Related
Topic: Debug vs. Release
Replies: 3
Views: 1835

Re: Debug vs. Release

There may be smaller difference between Debug and Release builds than one thinks(e.g, some of it can be configured runtime), in particular when not using MSVC. I would recommend reading the Debugging Overview, which may provide some useful insights: https://docs.wxwidgets.org/trunk/overview_debuggin...
by PB
Sun Feb 25, 2024 3:51 pm
Forum: C++ Development
Topic: Get system's text scale factor on Windows 11
Replies: 4
Views: 263

Re: Get system's text scale factor on Windows 11

Search the docs of the classes you are interested in (e.g., wxWindow or wxDC) for methods having "Scale" in it. You may also want to read the High DPI Overview and/or handle wEVT_DPI_CHANGED. You should also ensure that your application has a manifest claiming support for Per Monitor DPI V...
by PB
Thu Feb 22, 2024 7:39 pm
Forum: C++ Development
Topic: wxFrame Hide() is ignored
Replies: 7
Views: 281

Re: wxFrame Hide() is ignored

I assume this is different than this https://github.com/wxWidgets/wxWidgets/issues/23997#issuecomment-1779774296 i.e,. no minimizing and hiding before, and happens always and only on Windows 10? I would try to create a minimal compilable reproducible example, IME, doing just this often exposes the b...
by PB
Thu Feb 22, 2024 7:08 pm
Forum: Compiler / Linking / IDE Related
Topic: wxWidgets-3.2.4 non-backwards compatibility with 3.2.2.1
Replies: 2
Views: 249

Re: wxWidgets-3.2.4 non-backwards compatibility with 3.2.2.1

Based on the DLL names: I assume DLLs of both wxWidgets versions are from the official binaries, i.e., not self-built? I also assume that Dependencies could not tell you which imports were actually missing? EDIT I admit I am not sure how backwards compatibility is supposed to work: Does it mean that...
by PB
Thu Feb 22, 2024 9:20 am
Forum: C++ Development
Topic: How to rotate a png image without fill the uncovered pixels black or other mask colour?
Replies: 14
Views: 1313

Re: How to rotate a png image without fill the uncovered pixels black or other mask colour?

I told and showed you that you must call wxDC::DrawBitmap() with useMask argument set to true. You still don't do it, using its default false value:
kipade wrote: Thu Feb 22, 2024 8:58 am

Code: Select all

    dc.DrawBitmap(img, 0, 0);
What do I miss here?
by PB
Thu Feb 22, 2024 6:44 am
Forum: C++ Development
Topic: How to rotate a png image without fill the uncovered pixels black or other mask colour?
Replies: 14
Views: 1313

Re: How to rotate a png image without fill the uncovered pixels black or other mask colour?

If you are drawing the bitmap with wxDC::DrawBitmap(), do you use true for useMask (you must when the bitmap has transparency)? It works for me when using wxPaintDC on Windows: wx-draw-transparent-rotated.png #include <wx/wx.h> class MyFrame : public wxFrame { public: MyFrame(wxWindow* parent = null...
by PB
Wed Feb 21, 2024 11:23 am
Forum: C++ Development
Topic: How to rotate a png image without fill the uncovered pixels black or other mask colour?
Replies: 14
Views: 1313

Re: How to rotate a png image without fill the uncovered pixels black or other mask colour?

Sorry, I still don't really understand what are you trying to say and what is the actual issue. Are you just asking why wxImage::HasAlpha() returns false before rotating the picture with mask and true after? If so, it is because the alpha channel for wxImage was not created when it was loaded: The P...
by PB
Wed Feb 21, 2024 8:25 am
Forum: C++ Development
Topic: How to rotate a png image without fill the uncovered pixels black or other mask colour?
Replies: 14
Views: 1313

Re: How to rotate a png image without fill the uncovered pixels black or other mask colour?

The image seems to have an alpha channel but are any of its pixels actually translucent/transparent? I see the wide gap around the red rectangle as white, not transparent? Using the code from my previous post on it still leaves the new pixels in the rotated image transparent. b rotated.png What exac...
by PB
Tue Feb 20, 2024 6:19 pm
Forum: C++ Development
Topic: Unmanaged toplevel focus
Replies: 15
Views: 466

Re: Unmanaged toplevel focus

Michael Thomas Greer wrote: Tue Feb 20, 2024 11:45 am Are you really suggesting I not use a nice library to code a GUI application?
I was basically asking why you want to use a multiplatform GUI library when you stated that "My final program is actually just targeting X11, since it won’t be using any standard GUI elements".
by PB
Tue Feb 20, 2024 3:49 pm
Forum: C++ Development
Topic: communicator
Replies: 9
Views: 383

Re: communicator

Patryk, IMO, the only one rude here is you. Personal attacks aside, what about using "please" when asking for help and "thank you" when another user donated you their time and effort, even if you do not appreciate it. Back to the topic (my last post in your thread, no more litter...
by PB
Tue Feb 20, 2024 9:18 am
Forum: C++ Development
Topic: communicator
Replies: 9
Views: 383

Re: communicator

Maybe instead of guessing, check your ideas yourself before you post on the forum? Maybe you should stop being rude and attempting to order people around? Your posts are already difficult to understand (i.e., what is the problem and you want to achieve), do you really think your rudeness helps you?...
by PB
Tue Feb 20, 2024 7:52 am
Forum: C++ Development
Topic: Unmanaged toplevel focus
Replies: 15
Views: 466

Re: Unmanaged toplevel focus

Michael Thomas Greer wrote: Tue Feb 20, 2024 3:23 am (My final program is actually just targeting X11, since it won’t be using any standard GUI elements
Is wxWidgets a good fit for your program then?