How can I get my software to adapt to the size of the screen

This forum is for eXpress++ general support.
Post Reply
Message
Author
User avatar
digitsoft
Posts: 451
Joined: Thu Jan 28, 2010 1:33 pm
Location: Republica Dominicana
Contact:

How can I get my software to adapt to the size of the screen

#1 Post by digitsoft »

hello Roger
How can I get my software to adapt to the size of the screen that each PC has?

I'm using this code that I saw xDemo, but it does not look good.


nWidth := AppDeskTop():currentSize()[1]
nHeight := AppDeskTop():currentSize()[2]
nWindowRow := 0

IF nWidth <= 800
nWindowWidth := 640
nWindowHeight := 500
cSayFont := '8.Arial'
cGetFont := '9.Courier New'
nColPixels := 7
nRowPixels := 20
ELSEIF nWidth <= 1024
nWindowWidth := 800
nWindowHeight := 600
cSayFont := '9.Arial'
cGetFont := '10.Courier New'
nColPixels := 8.5
nRowPixels := 24
ELSEIF nWidth <= 1280
nWindowWidth := 1000
nWindowHeight := 800
cSayFont := '10.Arial'
cGetFont := '11.Courier New'
nColPixels := 10
nRowPixels := 28
ELSE
nWindowWidth := 1200
nWindowHeight := 1000
cSayFont := '11.Arial'
cGetFont := '12.Courier New'
nColPixels := 11.5 && 11.5
nRowPixels := 32 && 32
ENDIF

IF nWindowRow+nWindowHeight > AppDeskTop():currentSize()[2]
nWindowRow := AppDeskTop():currentSize()[2]-nWindowHeight
ENDIF
Attachments
Example Using the Code of xDemo
Example Using the Code of xDemo
Ejemplo2.jpg (397.92 KiB) Viewed 9411 times
Original Example Unused Code of xDemo
Original Example Unused Code of xDemo
Ejemplo1.jpg (381.26 KiB) Viewed 9411 times
Nolberto Paulino
Regards

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

Re: How can I get my software to adapt to the size of the sc

#2 Post by rdonnay »

Possibly, a better solution for you is to use the scaling feature of eXpress++.

Look at the samples in \exp20\sample\scale
The eXpress train is coming - and it has more cars.

User avatar
digitsoft
Posts: 451
Joined: Thu Jan 28, 2010 1:33 pm
Location: Republica Dominicana
Contact:

Re: How can I get my software to adapt to the size of the sc

#3 Post by digitsoft »

Thanks Roger
rdonnay wrote:Possibly, a better solution for you is to use the scaling feature of eXpress++.

Look at the samples in \exp20\sample\scale
Nolberto Paulino
Regards

User avatar
Eugene Lutsenko
Posts: 1649
Joined: Sat Feb 04, 2012 2:23 am
Location: Russia, Southern federal district, city of Krasnodar
Contact:

Re: How can I get my software to adapt to the size of the sc

#4 Post by Eugene Lutsenko »

I have the SCALE function.EXE gives error
Attachments
Безымянный.jpg
Безымянный.jpg (34.79 KiB) Viewed 9403 times

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

Re: How can I get my software to adapt to the size of the sc

#5 Post by rdonnay »

That doesn't make any sense.

How old a version of eXpress++ are you using?

DCMXBUTTONS have not been supported in over 10 years.
The eXpress train is coming - and it has more cars.

User avatar
Eugene Lutsenko
Posts: 1649
Joined: Sat Feb 04, 2012 2:23 am
Location: Russia, Southern federal district, city of Krasnodar
Contact:

Re: How can I get my software to adapt to the size of the sc

#6 Post by Eugene Lutsenko »

rdonnay wrote:That doesn't make any sense.

How old a version of eXpress++ are you using?

DCMXBUTTONS have not been supported in over 10 years.
I use since 2012. Bought all and'm using. And now just compiled what I have and run on execution.
What do I have to do to make it work?

Post Reply