Search found 202 matches

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: 550

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: 550

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: 1233

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: 550

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: 1233

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: 1233

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: 1233

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: 1233

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...
by rocrail
Sat May 25, 2019 5:47 am
Forum: Platform Related Issues
Topic: Exclude Context Menus from DPI Awareness
Replies: 5
Views: 1708

Re: Exclude Context Menus from DPI Awareness

Hi Natu,

the wx.rc does include the manifest.wx file.
Would it not be better to modify the
⁨include/⁨wx⁩/⁨msw/manifest.wx
file?
Or How can I include my own project dependent manifest?

Any help is very appreciated.
by rocrail
Sat May 25, 2019 5:26 am
Forum: C++ Development
Topic: EVT_TREE_STATE_IMAGE_CLICK() and the second monitor
Replies: 27
Views: 1233

Re: EVT_TREE_STATE_IMAGE_CLICK() and the second monitor

Something like this? <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <assembly manifestVersion="1.0" xmlns="urn:schemas-microsoft-com:asm.v1" xmlns:asmv3="urn:schemas-microsoft-com:asm.v3"> <assemblyIdentity type="win32" name="MyApplication" version="1.0.0.0" processorArchitecture="amd64"/> ...
by rocrail
Sat May 25, 2019 5:09 am
Forum: C++ Development
Topic: EVT_TREE_STATE_IMAGE_CLICK() and the second monitor
Replies: 27
Views: 1233

Re: EVT_TREE_STATE_IMAGE_CLICK() and the second monitor

wxWidgets has a wx.manifest in the source tree which is included by wx.rc.
Which lines must I add or change?
by rocrail
Fri May 24, 2019 8:10 pm
Forum: C++ Development
Topic: EVT_TREE_STATE_IMAGE_CLICK() and the second monitor
Replies: 27
Views: 1233

Re: EVT_TREE_STATE_IMAGE_CLICK() and the second monitor

doublemax wrote:
Thu May 02, 2019 6:07 pm
Is your app marked as "DPI aware" through the manifest?
how to? In which part of the wxWidgets Application?
by rocrail
Fri May 24, 2019 1:41 pm
Forum: Compiler / Linking / IDE Related
Topic: Ubuntu can't link wxStyledTextCtrl
Replies: 15
Views: 957

Re: Ubuntu can't link wxStyledTextCtrl

Success.
With 3.1.x the extra library is included with the wx-config --libs call.
Works for both Win32 and Win64.

Thanks for all your tips.
by rocrail
Fri May 24, 2019 9:19 am
Forum: Compiler / Linking / IDE Related
Topic: Ubuntu can't link wxStyledTextCtrl
Replies: 15
Views: 957

Re: Ubuntu can't link wxStyledTextCtrl

I switch for win32/64 to the master branch 3.1.3.
Without changing anything in the build process the scintilla library is included automatically.
BTW: Both win32 and win64 are cross compiled on an RPi with Raspbian and mingw.
by rocrail
Thu May 23, 2019 2:09 pm
Forum: Compiler / Linking / IDE Related
Topic: Ubuntu can't link wxStyledTextCtrl
Replies: 15
Views: 957

Re: Ubuntu can't link wxStyledTextCtrl

New Pagodi wrote:
Thu May 23, 2019 2:05 pm
When linking statically, you also need to include the scintilla library (wxscintilla-3.0-x86_64-w64-mingw32.a based on the picture you posted above).
Yes, that did work.
I will try the master branch...