Search found 31 matches

by Stepan Hrbek
Sun Dec 29, 2019 3:41 pm
Forum: Platform Related Issues
Topic: HiDPI in Win10 and "fix apps so they're not blurry"
Replies: 21
Views: 1153

Re: HiDPI in Win10 and "fix apps so they're not blurry"

Both is with 200% scaling.
Code is fresh from git today (38cec22d4c5ff591964dc1d36f62189a3d238eec)
It does not look trivial anymore, so I created ticket https://trac.wxwidgets.org/ticket/18642
by Stepan Hrbek
Sun Dec 29, 2019 3:17 pm
Forum: Platform Related Issues
Topic: HiDPI in Win10 and "fix apps so they're not blurry"
Replies: 21
Views: 1153

Re: HiDPI in Win10 and "fix apps so they're not blurry"

First image shows AUI sample with default win10 settings, scaling of text in top right pane is wrong.
[attachment=0]wx2.png[/attachment]

Second image shows good scaling when Win10 "fix apps" is checked.
[attachment=1]wx1.png[/attachment]
by Stepan Hrbek
Sun Dec 29, 2019 2:16 pm
Forum: Platform Related Issues
Topic: HiDPI in Win10 and "fix apps so they're not blurry"
Replies: 21
Views: 1153

Re: HiDPI in Win10 and "fix apps so they're not blurry"

"Let Windows try to fix apps so they're not blurry" is Win10 checkbox, it's in Settings / Display / Advanced scaling settings. If I don't check it, there is no blur, but only about 50% of GUI elements are scaled properly (e.g. text in wxPropertyGrid is scaled, text in wxTreeCtrl is unscaled). If I c...
by Stepan Hrbek
Sun Dec 29, 2019 12:56 pm
Forum: Platform Related Issues
Topic: HiDPI in Win10 and "fix apps so they're not blurry"
Replies: 21
Views: 1153

Re: HiDPI in Win10 and "fix apps so they're not blurry"

App also needs to declare DPI awareness in manifest, I did that.
by Stepan Hrbek
Sun Dec 29, 2019 12:39 pm
Forum: Platform Related Issues
Topic: HiDPI in Win10 and "fix apps so they're not blurry"
Replies: 21
Views: 1153

HiDPI in Win10 and "fix apps so they're not blurry"

Hello, I have no previous experience with HiDPI support, so when I tested HiDPI with wxWidgets, I had no idea what specific actions I need to take. Fortunately it works nearly out of the box. After rebuilding wxWidgets from git head and rebuilding my dialogs with the most recent version of wxFormBui...
by Stepan Hrbek
Wed Mar 18, 2015 11:40 am
Forum: General Development
Topic: Detect button press in the middle of long EVT_PAINT
Replies: 4
Views: 1376

Re: Detect button press in the middle of long EVT_PAINT

I did not notice wxGetKeyState() when I was looking for it, thanks.

I call wxGetMouseState/wxGetKeyState in 50ms intervals, it catches nearly all events i need.
I hope it's safe to do so from background thread, so far it works great.
by Stepan Hrbek
Mon Mar 16, 2015 6:13 am
Forum: General Development
Topic: Detect button press in the middle of long EVT_PAINT
Replies: 4
Views: 1376

Re: Detect button press in the middle of long EVT_PAINT

I have several rendering modes, mostly realtime, but when user selects the most slow one, returning back to fast one (opening drop-down list and selecting it) was awfully slow, it's fixed now, thanks. I have to wxGetMouseState often and when I detect button down, stop rendering for a moment, so that...
by Stepan Hrbek
Sun Mar 15, 2015 12:38 pm
Forum: General Development
Topic: Detect button press in the middle of long EVT_PAINT
Replies: 4
Views: 1376

Detect button press in the middle of long EVT_PAINT

Hello, I'd like to make wxWidgets based GUI around wxGLCanvas responsive, even when wxGLCanvas takes 10 seconds to handle EVT_PAINT. I can't move rendering to background thread, but I can abort it, if I know that user is trying to interact with GUI. Can I detect button press (keyboard or mouse) in t...
by Stepan Hrbek
Tue Feb 25, 2014 6:19 pm
Forum: C++ Development
Topic: rendering rich text into OpenGL canvas
Replies: 3
Views: 2237

Re: rendering rich text into OpenGL canvas

I did not yet start testing, I'm just gathering crazy ideas... 1. move control (wxRichTextCtrl, wxWebView or something) over canvas... i think this won't render properly 2. somehow capture screenshot of control, put it into opengl texture... this will have lots of problems with scaling, text size sh...
by Stepan Hrbek
Tue Feb 25, 2014 6:13 pm
Forum: C++ Development
Topic: rendering rich text into OpenGL canvas
Replies: 3
Views: 2237

rendering rich text into OpenGL canvas

Hello, I use plain wxTextCtrl for text entry and then, later render the text into OpenGL viewport using one of many lowlevel font rendring libraries. I see that there are more advanced text entry controls, with sizes, fonts, colors, images etc. I'd like to use one, but then is it possible to somehow...
by Stepan Hrbek
Fri Aug 02, 2013 1:29 pm
Forum: C++ Development
Topic: implementing undo with wxPG_ATTR_SPINCTRL_MOTIONSPIN
Replies: 2
Views: 734

Re: implementing undo with wxPG_ATTR_SPINCTRL_MOTIONSPIN

Thanks.

I tried to merge undo steps from events that arrived less than 0.5sec apart (and from the same wxPGProperty).
It merges also quick series of individual clicks into single undo step, and it might break when main viewport fps drops below 2, but so far it looks ok.

Stepan
by Stepan Hrbek
Tue Jul 30, 2013 5:42 pm
Forum: C++ Development
Topic: implementing undo with wxPG_ATTR_SPINCTRL_MOTIONSPIN
Replies: 2
Views: 734

implementing undo with wxPG_ATTR_SPINCTRL_MOTIONSPIN

Hello, I'm implementing undo in a program with wxPropertyGrid and wxFloatProperty with "SpinCtrl" editor and wxPG_ATTR_SPINCTRL_MOTIONSPIN attribute. I have a handler function assigned with EVT_PG_CHANGED, it gets called each time the float value changes, so it is easy to create undo step here. But ...
by Stepan Hrbek
Wed Jul 18, 2012 1:53 pm
Forum: C++ Development
Topic: control for displaying set of small images
Replies: 2
Views: 902

control for displaying set of small images

Hello, I'd like to display set of small images in resizable window, with automatic layout similar to what <image ...><image ...><image ...> looks like in web browser. Ideally, each image should have text description, like ikons on desktop. Let's say there are 10 images. If window is large enough for...