Diese Seite mit anderen teilen ...

Informationen zum Thema:
Forum:
WinDev Forum
Beiträge im Thema:
8
Erster Beitrag:
vor 4 Jahren, 10 Monaten
Letzter Beitrag:
vor 4 Jahren, 10 Monaten
Beteiligte Autoren:
Al, GuenterP, Ola, Paulo Oliveira, Jose Antonio Garrido

[WD16] Change screen font size as a window grows

Startbeitrag von Al am 05.12.2012 02:41

Hello All

When a user makes a screen larger, is there also a way to make the text used on the screen grow proportionately ? I design most of my screen to run in 1024 x 768 but a number of clients are running 1920 x 1080 and they complain that when the windows expand to that size, the text is still small and hard to read, especially in tables.

Regards
Al

Antworten:

Hi Al,

I have struggled with that too. No easy way to do it in Windev.

Maybe the simpliest way is to lower the display resolution of the monitor. This is usually OK, unless you are doing for instance some page layout work where all the resolution really is needed...

For some discussion on this problem, see:
http://27130.foren.mysnip.de/read.php?27131,30250,31262#msg-31262

Best regards
Ola

von Ola - am 05.12.2012 11:33
Hi Al,

I received some similar requests too.
Of course, customers love to have everything there, automatically and free of charge. OK.

There is a simple remedy. Customers can change the font size of Windows! Using medium or big font size makes things dramatically different! Only thing you have to do is to check / change each window and menue in order to allow for larger fontsize. But this doesn't change the software basically, it just needs some tweaking to get a good result. I did with my WD 5.5 software and it works fine.

Kind regards,
Guenter

von GuenterP - am 05.12.2012 15:59
Hi Al.

I did it once, and used .ineheight property of the table, and fontsize property of each of his columns.

The code executed whenever the window got resized.

Regards.
José Antonio Garrido.

von Jose Antonio Garrido - am 05.12.2012 16:00
I did it in one old POS app (version XII) but i can't find the code anymore.
Just by memory it was something like Jose solution.

As far as i can remember it was made when the WM_SIZE event fires (not sure about the constant) and using the values of SysScreenResolution, ..InitialHeight, ..InitialWidth and EnumSubElement to set the value of the ..FontSize property of the controls

von Paulo Oliveira - am 05.12.2012 16:48
Hi Guenter,

Using Windows' medium or big font size may work with a WD app adjusted accordingly, but it may not work with all the other programs that the user may have. So there maybe difficulties; part of the window may no longer be visible, buttons moved outside the screen etc.

Best regards
Ola

von Ola - am 05.12.2012 16:54
Hello All

Thanks for the suggestions. Changing the screen res is not an option because, as Ola mentionsed it then changes for other software and for me to change hundreds of windows is also not going to happen.
The only solution I see is for PCSoft to enable this to happen, but the amount of work that would entail may be too great. Perhaps an adaption of their existing zoom option that is offered in the analysis would do the job. MS do it with Word and Excel but they have many more programming resources than PCSoft.

Regards
Al

von Al - am 05.12.2012 20:25
Quote
Ola
Hi Guenter,

Using Windows' medium or big font size may work with a WD app adjusted accordingly, but it may not work with all the other programs that the user may have. So there maybe difficulties; part of the window may no longer be visible, buttons moved outside the screen etc.

Best regards
Ola


Hi Ola,
at least the main M$ applications do work just fine with a medium / large fontsize in Windows. Of course, each other application is to be tested thorougly before usage. Most of our customers do not use their PCs for any other application than ours .. an easy exercise.

The alternative would be horrible! Some years ago, I tried to do the resizing .. this is no viable choice, because big text would exceed the available field sizes etc. The only alternative is to re-make / re-test *all* windows of the application using a certain, fixed bigger font size. It's fine as long as there are only a couple controls on a window, but the usual crowded approach .. no way. You will need to add Tabs, split single windows into two or more, re-arrange menues .. in fact, after rework the thing will be a brand new application. Customers who know the app with the small font sizes will be surprised when seeing the new one with the big fonts. And hey, what's the benefit for all the work done?? Two customers more? This doesn't pay for all the work!

My solution was to to make all applications - from the beginning - with Arial / font size 9pt / bold. Whoever is still unhappy with this can use a different Windows font. That's it.

Kind regards, Guenter

von GuenterP - am 06.12.2012 06:18
Zur Information:
MySnip.de hat keinen Einfluss auf die Inhalte der Beiträge. Bitte kontaktieren Sie den Administrator des Forums bei Problemen oder Löschforderungen über die Kontaktseite.
Falls die Kontaktaufnahme mit dem Administrator des Forums fehlschlägt, kontaktieren Sie uns bitte über die in unserem Impressum angegebenen Daten.