Search found 179 matches

by rocrail
Sun May 26, 2019 7:47 am
Forum: Platform Related Issues
Topic: Toolbar Icons and DPI Aware 3.1.x
Replies: 13
Views: 522

Re: Toolbar Icons and DPI Aware 3.1.x

The complete manifest: <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <assembly xmlns='urn:schemas-microsoft-com:asm.v1' manifestVersion='1.0' xmlns:asmv3='urn:schemas-microsoft-com:asm.v3'> <asmv3:application> <asmv3:windowsSettings> <dpiAware xmlns="http://schemas.microsoft.com/SMI/2005/W...
by rocrail
Sun May 26, 2019 6:52 am
Forum: Platform Related Issues
Topic: Toolbar Icons and DPI Aware 3.1.x
Replies: 13
Views: 522

Re: Toolbar Icons and DPI Aware 3.1.x

The

Code: Select all

wxSystemOptions::SetOption("msw.remap", 2);
did not help either.
by rocrail
Sun May 26, 2019 6:37 am
Forum: Platform Related Issues
Topic: Toolbar Icons and DPI Aware 3.1.x
Replies: 13
Views: 522

Re: Toolbar Icons and DPI Aware 3.1.x

That did not help; No improvement...
It seems that 3.1.x cannot handle transparency in the toolbar icons.
Any tips?

I also will try
wxSystemOptions::SetOption("msw.remap", 2);
by rocrail
Sun May 26, 2019 5:35 am
Forum: Platform Related Issues
Topic: Toolbar Icons and DPI Aware 3.1.x
Replies: 13
Views: 522

Re: Toolbar Icons and DPI Aware 3.1.x

I will give this note a try: wxMSW note: Note that under wxMSW toolbar paints tools to reflect system-wide colours. If you use more than 16 colours in your tool bitmaps, you may wish to suppress this behaviour, otherwise system colours in your bitmaps will inadvertently be mapped to system colours. ...
by rocrail
Sun May 26, 2019 5:02 am
Forum: Platform Related Issues
Topic: Toolbar Icons and DPI Aware 3.1.x
Replies: 13
Views: 522

Re: Toolbar Icons and DPI Aware 3.1.x

The scaling is 100% of the screenshot. And the monitor is not high DPI: 1280x800. Win10-64.
The icons are PNG: 24x24.
The Icon, routes, attached looks OK in the menu but not in the toolbar.
by rocrail
Sat May 25, 2019 3:54 pm
Forum: Platform Related Issues
Topic: Toolbar Icons and DPI Aware 3.1.x
Replies: 13
Views: 522

Toolbar Icons and DPI Aware 3.1.x

Hi,

the toolbar icons are not OK after switching from 3.0.x to 3.1.x.
The same icons appear to be OK in the menu as you can see on the screen shot.

How to solve this?#
winaware-icons.png
by rocrail
Sat May 25, 2019 12:34 pm
Forum: Platform Related Issues
Topic: Add manifest to set DPI Aware with wxWidgets 3.1.x
Replies: 4
Views: 229

Re: 3.1+ doesn't make the SetDPIProcessAware() call anymore

Indeed this will do the trick.
Thank you very much. :D

Maybe its a good idea to document this in the Wiki and/or API documentation.
by rocrail
Sat May 25, 2019 12:30 pm
Forum: Platform Related Issues
Topic: Add manifest to set DPI Aware with wxWidgets 3.1.x
Replies: 4
Views: 229

Re: 3.1+ doesn't make the SetDPIProcessAware() call anymore

OK, I will try this and report back.
by rocrail
Sat May 25, 2019 11:42 am
Forum: Platform Related Issues
Topic: Add manifest to set DPI Aware with wxWidgets 3.1.x
Replies: 4
Views: 229

Re: 3.1+ doesn't make the SetDPIProcessAware() call anymore

This is how I embedded the manifest in the rocview application:

rocview.rc:

Code: Select all

#include "wx/msw/wx.rc"
wxDEFAULT_FRAME ICON "xpm/rocrail.ico"
wxMANIFEST_ID 25 "rocview.manifest"
by rocrail
Sat May 25, 2019 11:41 am
Forum: C++ Development
Topic: EVT_TREE_STATE_IMAGE_CLICK() and the second monitor
Replies: 27
Views: 783

Re: EVT_TREE_STATE_IMAGE_CLICK() and the second monitor

Can you please move the postings to the new thread
viewtopic.php?f=1&t=45915
because this thread is flagged as solved.
by rocrail
Sat May 25, 2019 11:39 am
Forum: Platform Related Issues
Topic: Add manifest to set DPI Aware with wxWidgets 3.1.x
Replies: 4
Views: 229

Add manifest to set DPI Aware with wxWidgets 3.1.x

Hi, I open a new Topic for this. Already I posted this issue here https://forums.wxwidgets.org/viewtopic.php?f=1&t=45840 But this thread is solved. The problem is how to set DPIProcessAware with wxWidgets 3.1.x because this call is no longer in the wxEntry of wxWidgets. I tried to include an extra r...
by rocrail
Sat May 25, 2019 10:14 am
Forum: C++ Development
Topic: EVT_TREE_STATE_IMAGE_CLICK() and the second monitor
Replies: 27
Views: 783

Re: EVT_TREE_STATE_IMAGE_CLICK() and the second monitor

How can I call SetDPIProcessAware() in my wxWidgets App?
In the App constructor?

Code: Select all

RocGui::RocGui():wxApp() {
  wxSetEnv(wxT("UBUNTU_MENUPROXY"), wxT("0"));
#ifdef windows
  SetDPIProcessAware();
#endif
}

by rocrail
Sat May 25, 2019 9:50 am
Forum: C++ Development
Topic: EVT_TREE_STATE_IMAGE_CLICK() and the second monitor
Replies: 27
Views: 783

Re: EVT_TREE_STATE_IMAGE_CLICK() and the second monitor

It seems to be a break between 3.0 and 3.1 https://docs.wxwidgets.org/3.0/group__group__funcmacro__appinitterm.html#ga6b923aa6dc04b811e0112a55b291e569 void wxMSWDisableSettingHighDPIAware ( ) Prevents wxWidgets from setting HighDPI awareness mode. wxEntry calls SetDPIProcessAware() early during init...
by rocrail
Sat May 25, 2019 9:36 am
Forum: C++ Development
Topic: EVT_TREE_STATE_IMAGE_CLICK() and the second monitor
Replies: 27
Views: 783

Re: EVT_TREE_STATE_IMAGE_CLICK() and the second monitor

It does not help.
wxWidgets 3.0 is aware and 3.1 is unaware... :(
I cannot go back to 3.0...
by rocrail
Sat May 25, 2019 8:24 am
Forum: C++ Development
Topic: EVT_TREE_STATE_IMAGE_CLICK() and the second monitor
Replies: 27
Views: 783

Re: EVT_TREE_STATE_IMAGE_CLICK() and the second monitor

I need a way to prevent Windows to scale my application which looks ugly and is not wanted. Is there a way in wxWidgets to prevent this instead of in a manifest? With the 3.0 branch it was not scaled, so it has definitively something todo with 3.1. GDI Scaling I already removed. The build process wi...