Is there any way to deal with the different screen resolutions and scale that are common across today’s variety of Windows monitors and laptop screens.
We are having issues with the size and placement of different fields and text (prompts and entry/display fields) which seems to size appropriately at one resolution and scale but fall apart when a different resolution or scale is applied (regardless of any resizing methods we apply).
If we could be aware of which resolution and scale at runtime then we could scale our text accordingly.
Is there anything available that would provide and application-wide solution or a the very least a command we could use to get the monitor resolution and scale?
We have used the standard resize template. Maybe we should to try to reduce some controls in the screen and make it smaller if we could not find a way. Thanks for your help.
My suggestion is to always design with smallest screen in mind. I used to go with 1024x768, now I mostly start with 1366x768 / 100% scaling. Then resizers usually do their job.
If you have users with multiple devices with different resolution, I found it helpful to include the screen resolution in the INI filename for saving the window resize info. That way, if the user opens with a small screen, they won’t be using the resize settings that were saved on a large screen.
Thanks I have downloaded and installed the dpiAwareFix.tpl. I have added it to Global extensions but I could not add it to the procedure extensions. Should we just add it to the Global Extensions only?
I have installed NeoFontResizer template as well but I could find it when I try to add it to the Global Extensions. We are using Clarion 11.
Dpiaware goes to global and that’s it. When you compile the app, it will be actually aware of dpi scaling and act accordingly.
Neofont resizer needs to be added globally, then local eytension in the frame. Then you can add it to any other window procedure as local extension but you also first have to add window resizing extension from cw (the original extension that comes with cw).
Could you tell me what parameters I should pass to this function to get the resolution? Should I use my screen as the handle? The index is a number. Where could I find the number for the index?