Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

VFP application losing Windows scaling with 4K screen

Status
Not open for further replies.

Gerrit Broekhuis

Programmer
Aug 16, 2004
316
NL
Hi,

I'm using EZTwain for scanning documents for more than 15 years now. In one particular program when processing the line with

Code:
TWAIN_EnableSource(lnImageHandle)

my application that is used with 200% scaling (I use HD resolution on my 4K screen) jumps to 100% scaling and becomes almost unreadable and unusable.
The scanning process is continuing and the scan is created as expected.
The same losing of scaling happens with some of the EZTwain utilities that come with the EZTwain download. When aquiring a scan they get miniaturized.

What can cause my application to lose the Windows scaling?

Regards, Gerrit
 
Just in case anyone gets similar problems. I seem to have "solved" it with a manifest file. At least the scaling is no longer changed when I make a scan with EZTwain.
In this manifest file I set the DpiAwareness to "false".

My application is called "module1.exe" and therefore the manifest file has the name "module1.exe.manifest".
In the manifest file content (see attachment) you have to use the name of the application, see name="module1.exe".

Once you have the manifest file in your source code directory, just recompile your .EXE.

Regards, Gerit

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top