I am using CTD6.3. There is an issue is occurring intermittently on WinX with the CTD Application. At times, when the application is opened only approximately 25% of the screen is visible.
I want to know how to identify screen (form/dialog window) size at run time
Thanks in Advance.
- Founder/Site Admin
- Posts: 1137
- Joined: 24 Feb 2017, 09:12
- Location: Gouda, The Netherlands
But here some remarks on form/dialog size and resolution vs DPI and font settings.
When a form/dialog has wrong dimensions on particular systems, it may be due to font settings or DPI settings.
DPI, which is set in Windows 10 scale & layout preferences and called "Change the size of text.." and has a default of 100%.
When increasing DPI, screens get bigger relatively to the monitor dimensions. Text is bigger so forms/dialogs which are designed for lower DPI will be truncated (do not fit the monitor).
The same applies to font size. When the TD application uses a font size System default, the GUI (form/dialog) will increase or decrease in size.
Could be that the system has a large font size which makes the form which was designed in a smaller font size be truncated.
As for checking the current DPI setting programmatically, here a sample:
http://samples.tdcommunity.net/index.ph ... iceDPI.zip
To check the resolution (for any monitor actually used on the system), to check the form/dialog size, all can be found in this sample:
http://samples.tdcommunity.net/index.ph ... nitors.zip
( which is part of this WIKI article -> How to (re)position windows on multi-monitor setups )
Search in the sample code for
But maybe you have a different issue.
Could you post a screenshot showing problem and give the information for screen resolution, font settings for the form/dialog and DPI settings?
(extra question: are the forms/dialogs using font
MS Sans Serif?)
Who is online
Users browsing this forum: [Ccbot] and 0 guests