Hi all,
How can I make my application adapt to different screen resolutions e.g.
1366 X 768
1600 X 900
1280 X 720
ETC.
Thanks.
Joe
Screen Resolution Adjustment
- sdenjupol148
- Posts: 151
- Joined: Thu Jan 28, 2010 10:27 am
- Location: NYC
Re: Screen Resolution Adjustment
Hi Joe,
Include
RESIZE RESIZEDEFAULT DCGUI_RESIZE_AUTORESIZE_SCALEFONT
as one of your clauses in your DCGETOPTIONS statements and you'll be able to scale to different resolutions using your mouse to resize your windows.
There is also a RESTOREDEFAULTSBUTTON clause to reset your dialogs to original settings
Good luck
Bobby
Include
RESIZE RESIZEDEFAULT DCGUI_RESIZE_AUTORESIZE_SCALEFONT
as one of your clauses in your DCGETOPTIONS statements and you'll be able to scale to different resolutions using your mouse to resize your windows.
There is also a RESTOREDEFAULTSBUTTON clause to reset your dialogs to original settings
Good luck
Bobby
Re: Screen Resolution Adjustment
Hi Bobby,
I was wondering why I didn't use your suggestion. Now I remember what the problem was I had with this standard getoptions behaviour.
RESIZE RESIZEDEFAULT DCGUI_RESIZE_AUTORESIZE_SCALEFONT
When I add this to my code, and I move a dialog which contains a browse, to my second monitor with another resolution then an error appears. This error appears each time.
I was wondering why I didn't use your suggestion. Now I remember what the problem was I had with this standard getoptions behaviour.
RESIZE RESIZEDEFAULT DCGUI_RESIZE_AUTORESIZE_SCALEFONT
When I add this to my code, and I move a dialog which contains a browse, to my second monitor with another resolution then an error appears. This error appears each time.
Re: Screen Resolution Adjustment
What is the error?This error appears each time.
Can you give me a sample program so I can fix it?
The eXpress train is coming - and it has more cars.
- sdenjupol148
- Posts: 151
- Joined: Thu Jan 28, 2010 10:27 am
- Location: NYC
Re: Screen Resolution Adjustment
Hi Chris,
I have never seen this error nor was I aware of it.
I'm sure Roger will have a fix.
Bobby
I have never seen this error nor was I aware of it.
I'm sure Roger will have a fix.
Bobby
Re: Screen Resolution Adjustment
Hi,
I posted this problem in 2015.
http://bb.donnay-software.com/donnay/vi ... 490&p=8260
There is a sample which shows the problem.
I posted this problem in 2015.
http://bb.donnay-software.com/donnay/vi ... 490&p=8260
There is a sample which shows the problem.
Re: Screen Resolution Adjustment
I must have missed that thread. Sorry.I posted this problem in 2015.

I will look at your sample today.
The eXpress train is coming - and it has more cars.
Re: Screen Resolution Adjustment
Hi Roger,
NO, you didn't missed that thread. You even had a solution for it.
NO, you didn't missed that thread. You even had a solution for it.
Re: Screen Resolution Adjustment
I'm confused. If I had a solution then why do you still have errors?NO, you didn't missed that thread. You even had a solution for it.
The eXpress train is coming - and it has more cars.