Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.clipper.visual-objects > #10958 > unrolled thread
| Started by | D.J.W. van Kooten <vankooten@removethis.ic2.com> |
|---|---|
| First post | 2017-09-08 13:32 +0200 |
| Last post | 2017-11-03 15:42 -0700 |
| Articles | 12 — 4 participants |
Back to article view | Back to comp.lang.clipper.visual-objects
4K displays, Sven's toolbar & bBrowsers/Listview headers D.J.W. van Kooten <vankooten@removethis.ic2.com> - 2017-09-08 13:32 +0200
Re: 4K displays, Sven's toolbar & bBrowsers/Listview headers "Karl-Heinz" <invalid@invalid.invalid> - 2017-09-08 19:23 +0200
Re: 4K displays, Sven's toolbar & bBrowsers/Listview headers D.J.W. van Kooten <vankooten@removethis.ic2.com> - 2017-09-11 13:43 +0200
Re: 4K displays, Sven's toolbar & bBrowsers/Listview headers D.J.W. van Kooten <vankooten@removethis.ic2.com> - 2017-09-15 12:42 +0200
Re: 4K displays, Sven's toolbar & bBrowsers/Listview headers dlzc <dlzc1@cox.net> - 2017-09-15 11:53 -0700
Re: 4K displays, Sven's toolbar & bBrowsers/Listview headers D.J.W. van Kooten <vankooten@removethis.ic2.com> - 2017-09-20 20:58 +0200
Re: 4K displays, Sven's toolbar & bBrowsers/Listview headers dlzc <dlzc1@cox.net> - 2017-09-21 08:22 -0700
Re: 4K displays, Sven's toolbar & bBrowsers/Listview headers "Karl-Heinz" <invalid@invalid.invalid> - 2017-09-21 19:20 +0200
Re: 4K displays, Sven's toolbar & bBrowsers/Listview headers D.J.W. van Kooten <vankooten@removethis.ic2.com> - 2017-10-29 14:59 +0100
Re: 4K displays, Sven's toolbar & bBrowsers/Listview headers Sherlock <sherlock@sherlock.com.au> - 2017-11-02 03:22 -0700
Re: 4K displays, Sven's toolbar & bBrowsers/Listview headers D.J.W. van Kooten <vankooten@removethis.ic2.com> - 2017-11-03 15:31 +0100
Re: 4K displays, Sven's toolbar & bBrowsers/Listview headers Sherlock <sherlock@sherlock.com.au> - 2017-11-03 15:42 -0700
| From | D.J.W. van Kooten <vankooten@removethis.ic2.com> |
|---|---|
| Date | 2017-09-08 13:32 +0200 |
| Subject | 4K displays, Sven's toolbar & bBrowsers/Listview headers |
| Message-ID | <03o4rc1r5v7s9jmgc05dgslguahatuj4vt@4ax.com> |
I recently bought a 4K / Ultrad HD monitor and today I was asked to look at some screen of a laptop, I think it was not the 3200 x 2160 (in Windows standard resolutions) but a bit less but still well above 1K (1920x1024), like 3000 x something. Anyhow, since I use the new monitor I have 2 issues: 1 I use Sven's toolbar with large icons. This toolbar now sometimes appears in about 80% of the height, smaller icons as usual and without the text under the icons. Strange thing is that I can start the using very same program/directory/monitor but as another user it shows correctly. Literally at the same time. It is not the settings we use (I don't even have a setting separating icons and text); when I copy the settingfile to myself it still opens incorrectly. But the next day it looks good again, and the day after it may not. 2 Also on a tool we use (DBViewer) still based on the "good" old VO databrowser, on opening it shows the program full screen but only 51 rows of data. Ctrl End (GoBottom) and back with Ctrl Home show everything again. On the laptop of my client I saw that on of our 2 programs headers of bBrowers and Listviews were shown 50% and some screens look as if all controls on it were pressed downward, with controls overlapping. On another program, which even contained our e-mail client with 100% the same code, everything looked good. The user displayed on 225%; after I brought this back to 150% the program was small but readable without overlapping controls. She however prefers the 225% where, as said, one main program shows large and correctly and the other doesn't while both are from the same development machine in the same Cavo 2.8 SP4 although from 2 different repositories. I just can't figure out what causes the difference. What in the program influences how it handles different resolutions? Has any of you seen similar problems connected with >1K screens and if so, how did you solve those? Dick I recently bought a 4K / Ultrad HD monitor and today I was asked to look at some screen of a laptop, I think it was not the 3200 x 2160 (in Windows standard resolutions) but a bit less but still well above 1K (1920x1024), like 3000 x something. Anyhow, since I use the new monitor I have 2 issues: 1 I use Sven's toolbar with large icons. This toolbar now sometimes appears in about 80% of the height, smaller icons as usual and without the text under the icons. Strange thing is that I can start the using very same program/directory/monitor but as another user it shows correctly. Literally at the same time. It is not the settings we use (I don't even have a setting separating icons and text); when I copy the settingfile to myself it still opens incorrectly. But the next day it looks good again, and the day after it may not. 2 Also on a tool we use (DBViewer) still based on the "good" old VO databrowser, on opening it shows the program full screen but only 51 rows of data. Ctrl End (GoBottom) and back with Ctrl Home show everything again. On the laptop of my client I saw that on of our 2 programs headers of bBrowers and Listviews were shown 50% and some screens look as if all controls on it were pressed downward, with controls overlapping. On another program, which even contained our e-mail client with 100% the same code, everything looked good. The user displayed on 225%; after I brought this back to 150% the program was small but readable without overlapping controls. She however prefers the 225% where, as said, one main program shows large and correctly and the other doesn't while both are from the same development machine in the same Cavo 2.8 SP4 although from 2 different repositories. I just can't figure out what causes the difference. What in the program influences how it handles different resolutions? Has any of you seen similar problems connected with >1K screens and if so, how did you solve those? Dick
[toc] | [next] | [standalone]
| From | "Karl-Heinz" <invalid@invalid.invalid> |
|---|---|
| Date | 2017-09-08 19:23 +0200 |
| Message-ID | <f1g28gFfke9U1@mid.individual.net> |
| In reply to | #10958 |
Hi Dick, > I recently bought a 4K / Ultrad HD monitor i don´t have such a monitor, but have you searched for soemthing like "windows high dpi problems" ? which OS are you running ? What happens when you change the default app settings -> Tabpage "compatibilty" -> "High DPI scaling behaviour" ? regards Karl-Heinz
[toc] | [prev] | [next] | [standalone]
| From | D.J.W. van Kooten <vankooten@removethis.ic2.com> |
|---|---|
| Date | 2017-09-11 13:43 +0200 |
| Message-ID | <1gtcrc13sn0k1t0ooj3cv957mp8p51i1bk@4ax.com> |
| In reply to | #10961 |
Replying on message of Fri, 8 Sep 2017 19:23:59 +0200 from Karl-Heinz: Hello Karl-Heinz > >which OS are you running ? What happens when you change the default app >settings -> Tabpage "compatibilty" -> "High DPI scaling behaviour" ? > I have Windows 10 Creators Update. The strange errors with Sven's toolbar may as well be caused by the Creator's Update. It's an absolute random situation. Each morning it's a surprise: do I see the toolbar with text or not. This morning I had none. I set the system to show 200%, restarted my application and still the toolbar was without text. What seems to happen is this: the toolbar remains the same (small) size (with no room for text), also headers of bBrowser and listviews seem smaller compared to the rest of the screen. The text is showing bigger with a higher percentage. I will check a few of the pages I found about this subject and see if the source versions of SEUIXP or bBrowser give me a clue about how the sizing of these objects is done. Most frustrating point is that it seems random. Dick
[toc] | [prev] | [next] | [standalone]
| From | D.J.W. van Kooten <vankooten@removethis.ic2.com> |
|---|---|
| Date | 2017-09-15 12:42 +0200 |
| Message-ID | <eabnrcdn9c41jfnbnqv9gsporlsnp2i1h6@4ax.com> |
| In reply to | #10958 |
Replying on message of Fri, 08 Sep 2017 13:32:49 +0200 from D.J.W. van Kooten: I have found what caused it. But I have no idea why. I use a Vulcan DLL with several function. Among these is a WPF screen with reminders. If there are no reminders, it is not displayed and the toolbar shows normal size + text, and some other screens show correct as well (I suspect because of owner alignment used in a bBrowser in the lower half of the screen to maximize). If it is displayed, all kind of things go wrong afterwards on 4K monitors. The higher the scaling % in W10, the worse it looks. This does not make any sense to me. Dick
[toc] | [prev] | [next] | [standalone]
| From | dlzc <dlzc1@cox.net> |
|---|---|
| Date | 2017-09-15 11:53 -0700 |
| Message-ID | <a59e7c19-9684-4a24-ad35-83234ee30e2e@googlegroups.com> |
| In reply to | #10987 |
Dear D.J.W. van Kooten: On Friday, September 15, 2017 at 3:42:21 AM UTC-7, D.J.W. van Kooten wrote: > Replying on message of Fri, 08 Sep 2017 13:32:49 +0200 from D.J.W. van > Kooten: > > > I have found what caused it. But I have no idea why. > > I use a Vulcan DLL with several function. Among these > is a WPF screen with reminders. If there are no > reminders, it is not displayed and the toolbar shows > normal size + text, and some other screens show correct > as well (I suspect because of owner alignment used in > a bBrowser in the lower half of the screen to maximize). > > If it is displayed, all kind of things go wrong > afterwards on 4K monitors. The higher the scaling > % in W10, the worse it looks. > > This does not make any sense to me. Consider that the "WPF screen with reminders" has changed values that Sven's routines and other library functions (as you cite) use to decide to use. So it seems like you need to either incapsulate the "WPF screen with reminders" so they map to their own private memory variables, and can trash away; or you can find out what variable(s) are tweaked, and correct them after a call to "WPF screen with reminders". David A. Smith
[toc] | [prev] | [next] | [standalone]
| From | D.J.W. van Kooten <vankooten@removethis.ic2.com> |
|---|---|
| Date | 2017-09-20 20:58 +0200 |
| Message-ID | <rce5scl1a98502ro724rte7f5cdtrovo75@4ax.com> |
| In reply to | #10989 |
Replying on message of Fri, 15 Sep 2017 11:53:49 -0700 (PDT) from dlzc: Hello David, >Consider that the "WPF screen with reminders" has changed values that Sven's routines and other library functions (as you cite) use to decide to use. > >So it seems like you need to either incapsulate the "WPF screen with reminders" so they map to their own private memory variables, and can trash away; or you can find out what variable(s) are tweaked, and correct them after a call to "WPF screen with reminders". > THe WPF program is a "display only" program so it can never influence any variable in my program. Not sure how I can incapsulate a Vulcan (is going to be X#) made WPF screen however. I did find some more info about the subject. My findings are here: https://www.xsharp.info/forum/public-vo-vn/402-4k-display-problems-in-vo#2738 Dick
[toc] | [prev] | [next] | [standalone]
| From | dlzc <dlzc1@cox.net> |
|---|---|
| Date | 2017-09-21 08:22 -0700 |
| Message-ID | <44177fcd-3dc8-4374-923e-83a3931ed6fd@googlegroups.com> |
| In reply to | #11000 |
Dear D.J.W. van Kooten: On Wednesday, September 20, 2017 at 11:58:03 AM UTC-7, D.J.W. van Kooten wrote: > Replying on message of Fri, 15 Sep 2017 11:53:49 -0700 (PDT) from > dlzc: > > Hello David, > > > Consider that the "WPF screen with reminders" has > > changed values that Sven's routines and other > > library functions (as you cite) use to decide to use. > > > > So it seems like you need to either incapsulate the > > "WPF screen with reminders" so they map to their own > > private memory variables, and can trash away; or you > > can find out what variable(s) are tweaked, and > > correct them after a call to "WPF screen with reminders". > > THe WPF program is a "display only" program so it > can never influence any variable in my program. What mechanism is used to make the call? What settings are changed by the calling mechanism, which can be in your control? You KNOW settings are being changed, and not restored. It may be by Windoze, it may be by the display only program, which expects Windoze to do the cleanup for whatever resolution / code page / other changes it may have made. > Not sure how I can incapsulate a Vulcan (is going > to be X#) made WPF screen however. What setups do you perform to make your program look right? Can you make that a subroutine, and call after returns from WPF? Can you call WPF via invoking a new call to CMD.exe, a new console window? Or create a new child window, then call WPF, and on return kill the window? David A. Smith
[toc] | [prev] | [next] | [standalone]
| From | "Karl-Heinz" <invalid@invalid.invalid> |
|---|---|
| Date | 2017-09-21 19:20 +0200 |
| Message-ID | <f2iap8Fb0l2U1@mid.individual.net> |
| In reply to | #11000 |
Hi Dick, > I did find some more info about the subject. My findings are here: > > https://www.xsharp.info/forum/public-vo-vn/402-4k-display-problems-in-vo#2738 > here you find a aef that does a lot of resizing. Within a resizeable Window sits a OA_WIDTH_HEIGHT aligned customcontrol. Within the CC a bitmap is drawn in stretched mode. Would be interesting to know how the app looks on your 4K-monitor. BTW. The Pushbutton [Push 2] has the owner alignment OA_X http://www.rauscher-software.de/downloads/sizingtest.zip The access to the bitmap included is hardcoded ( "D:\test\somewhere.bmp") . And before you ask: No, the Bitmap doesn´t show neither my private nor my business tower <g> regards Karl-Heinz
[toc] | [prev] | [next] | [standalone]
| From | D.J.W. van Kooten <vankooten@removethis.ic2.com> |
|---|---|
| Date | 2017-10-29 14:59 +0100 |
| Message-ID | <mcnbvcp4eaj5oam620b8biuic105t7vkd9@4ax.com> |
| In reply to | #10958 |
Replying on message of Fri, 08 Sep 2017 13:32:49 +0200 from D.J.W. van Kooten: For future readers, this is the status of the 2 issues: 1've removed the WPF program and redesigned it again in VO. It looks a bit less fancy but it displays way faster because Windows doesn't have to compile the IL first. I think this time better invested than trying to find the cause. 2 The DBViewer issue I found and solved. As I didn't program most of it myself it wasn't directly clear to me that code was responsible for it. The init of the databrowser says: SELF:iBufferGranularity:=52 Before my 4K monitor I never showed more than 52 lines on a browser screen. Setting it to a larger value completely solved the issue. Dick
[toc] | [prev] | [next] | [standalone]
| From | Sherlock <sherlock@sherlock.com.au> |
|---|---|
| Date | 2017-11-02 03:22 -0700 |
| Message-ID | <828fc73e-1c4d-43e6-9172-dadfd604b078@googlegroups.com> |
| In reply to | #11103 |
Dick SELF:iBufferGranularity:=52 Good to know.. waiting on 38: LG ultra wide. Not sure what issues I will run into. Phil
[toc] | [prev] | [next] | [standalone]
| From | D.J.W. van Kooten <vankooten@removethis.ic2.com> |
|---|---|
| Date | 2017-11-03 15:31 +0100 |
| Message-ID | <c3vovcdq4tn4u6t37tqganga9bmq1vqvba@4ax.com> |
| In reply to | #11122 |
Replying on message of Thu, 2 Nov 2017 03:22:29 -0700 (PDT) from Sherlock: Hello Phil, >Good to know.. waiting on 38: LG ultra wide. >Not sure what issues I will run into. > We've got LG too. One tip more is to go to Programs, compatibility and vary the DPI settings. This is one of the (few) things which is getting better with newer W10 releases. Some programs look better with one of these settings. I use Agent as newsreader and it doesn't respond to anything. With 4K and only 125% magnification, letters here are just a few milimeter. Fortunately I can read small letters very well. Of course I can set my magnification much higher but it would spoil part of the fun of a 4K monitor. Dick
[toc] | [prev] | [next] | [standalone]
| From | Sherlock <sherlock@sherlock.com.au> |
|---|---|
| Date | 2017-11-03 15:42 -0700 |
| Message-ID | <52b2ba05-787b-452e-836a-e4f70968f904@googlegroups.com> |
| In reply to | #11125 |
Hello Dick, snip[ We've got LG too. One tip more is to go to Programs, compatibility and vary the DPI settings. ] OK.. will try. Damn thing has not arrived yet. snip[ With 4K and only 125% magnification, letters here are just a few milimeter.] One reason I did not get 4K Phil
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.clipper.visual-objects
csiph-web