Page 1 of 1
Screen Resolution Adjustment
Posted: Wed Dec 28, 2016 7:38 am
by unixkd
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
Re: Screen Resolution Adjustment
Posted: Wed Dec 28, 2016 9:19 am
by sdenjupol148
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
Re: Screen Resolution Adjustment
Posted: Tue Jan 03, 2017 5:49 am
by skiman
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.
Re: Screen Resolution Adjustment
Posted: Tue Jan 03, 2017 8:10 am
by rdonnay
This error appears each time.
What is the error?
Can you give me a sample program so I can fix it?
Re: Screen Resolution Adjustment
Posted: Tue Jan 03, 2017 11:43 am
by sdenjupol148
Hi Chris,
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
Posted: Wed Jan 04, 2017 1:01 am
by skiman
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.
Re: Screen Resolution Adjustment
Posted: Wed Jan 04, 2017 8:08 am
by rdonnay
I posted this problem in 2015.
I must have missed that thread. Sorry.
I will look at your sample today.
Re: Screen Resolution Adjustment
Posted: Thu Jan 05, 2017 8:53 am
by skiman
Hi Roger,
NO, you didn't missed that thread. You even had a solution for it.
Re: Screen Resolution Adjustment
Posted: Fri Jan 06, 2017 10:32 am
by rdonnay
NO, you didn't missed that thread. You even had a solution for it.
I'm confused. If I had a solution then why do you still have errors?