Screen Resolution Adjustment

This forum is for eXpress++ general support.
Post Reply
Message
Author
User avatar
unixkd
Posts: 579
Joined: Thu Feb 11, 2010 1:39 pm

Screen Resolution Adjustment

#1 Post 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

User avatar
sdenjupol148
Posts: 151
Joined: Thu Jan 28, 2010 10:27 am
Location: NYC

Re: Screen Resolution Adjustment

#2 Post 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

skiman
Posts: 1199
Joined: Thu Jan 28, 2010 1:22 am
Location: Sijsele, Belgium
Contact:

Re: Screen Resolution Adjustment

#3 Post 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.
Best regards,

Chris.
www.aboservice.be

User avatar
rdonnay
Site Admin
Posts: 4813
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

Re: Screen Resolution Adjustment

#4 Post by rdonnay »

This error appears each time.
What is the error?

Can you give me a sample program so I can fix it?
The eXpress train is coming - and it has more cars.

User avatar
sdenjupol148
Posts: 151
Joined: Thu Jan 28, 2010 10:27 am
Location: NYC

Re: Screen Resolution Adjustment

#5 Post 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

skiman
Posts: 1199
Joined: Thu Jan 28, 2010 1:22 am
Location: Sijsele, Belgium
Contact:

Re: Screen Resolution Adjustment

#6 Post 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.
Best regards,

Chris.
www.aboservice.be

User avatar
rdonnay
Site Admin
Posts: 4813
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

Re: Screen Resolution Adjustment

#7 Post by rdonnay »

I posted this problem in 2015.
I must have missed that thread. Sorry. :oops:
I will look at your sample today.
The eXpress train is coming - and it has more cars.

skiman
Posts: 1199
Joined: Thu Jan 28, 2010 1:22 am
Location: Sijsele, Belgium
Contact:

Re: Screen Resolution Adjustment

#8 Post by skiman »

Hi Roger,

NO, you didn't missed that thread. You even had a solution for it.
Best regards,

Chris.
www.aboservice.be

User avatar
rdonnay
Site Admin
Posts: 4813
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

Re: Screen Resolution Adjustment

#9 Post 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?
The eXpress train is coming - and it has more cars.

Post Reply