Link to home
Start Free TrialLog in
Avatar of frog
frog

asked on

"Expert" experts - Scaling issues

I want my Delphi 1 application to scale from VGA to SVGA so everything fills the screen and looks the same, but it is not as simple as I thought. Some components need different scaling approaches for the 4 combinations of 800x , 1Kx, large & small fonts, I only use the system font and even that isn't consistent; it becomes a real 'can of worms'. Alternatives seem to be :-
- Write a version for each display mode. It's a huge application and has lots of line draw etc so there will be heaps of work to do this 'simple' task.
- Use a product like 'AnyView' but I believe it won't work on some display cards, especially on notebooks.
- Have the application change and restore the display mode.
This was easy under DOS but can it be done without restarting Windows and will it allow switching between applications. I'm fairly sure it won't.
- It will run mainly under Windows 95 which still seems not to be able to change resolution without restarting.
 
For 50 points I would like an 'expert' opinion on this issue, not some simplistic reply that says nothing. The concept of scaling seems to be a major fault with the Windows environment, is there a workable solution?
Something that actually works is worth much more than 50 points of course.
Avatar of javiertb
javiertb

There are lots of articles and help files where you'll be able to find how to design a form resolution independient. One of these is Lloyd's Delphi Notes (www.borland.com/techsupport/delphi/download_files/ldelphi.zip), and another is one of those TI's available at Borland as well.
They're very usefull and it's stated everything you should do in order to make your application showing correctly at any screen resolution.
Avatar of frog

ASKER

I can't access anything in \delphi at the borland site.
Is the URL given still current?

I downloaded this file yesterday. It is definately current !

Have you used GetSystemMetrics to get the resolution and draw according to that?

Did you use a scalable truetype font ?

I think this was well answered by javiertb, You owe him some points here. The document he quoted even has example source in it !

PS:
You do not have to reject an answer for a reason like this ! Rather try to solve the problem by commenting in stead of rejecting.
ASKER CERTIFIED SOLUTION
Avatar of javiertb
javiertb

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial