Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problems with display = 150%
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Desktop
Divers
Thread ID:
01603285
Message ID:
01603635
Vues:
115
>>Hi Christian.
>>
>>>Thanks, but I could not succeed making it work with the new files. I use ReportBehavior 90 and the result is the same as before. Maybe I am doing something different?
>>>
>>>In the meantime I found out that there is a setting in the display settings where you can set a custom text size and check "Use Windows XP style DPI scaling", which will then also work with the VFP reports.
>>
>>You mentioned that the VFP preview form works but not your own preview container. First, make sure the listener is using the corrected _FRXCursor.vcx; perhaps add a SET STEP ON in the CreateBandCursor method of FRXCursor. There could be several reasons why it's using a different, unchanged copy.
>>
>>Doug
>
>
>The problem is in Windows Vista/7/8 where GetDeviceCaps() return 96 for LOGPIXELSX if display=150%
>Are two ways:
>- Check "Disable display scaling on high DPI settings" in exe shortcut properties on Compatibility page
>- call at start application API function SetProcessDPIAware()
>
>DECLARE INTEGER SetProcessDPIAware  in WIN32API 
>?SetProcessDPIAware()
>
Thank you, the setting in the shortcut was the best solution.

When using SetProcessDPIAware the menu was acting strange, although it did work well with the report. The menu pads where displaying in a large font, and the menu bars where using small fonts, with the result that spaces where created, so it became almost impossible to click on a menu bar. Apart from the issue with the menu everything else looked good, including the report preview.
Christian Isberner
Software Consultant
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform