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
How can I get my software to adapt to the size of the screen
How can I get my software to adapt to the size of the screen
- Attachments
-
- Example Using the Code of xDemo
- Ejemplo2.jpg (397.92 KiB) Viewed 10238 times
-
- Original Example Unused Code of xDemo
- Ejemplo1.jpg (381.26 KiB) Viewed 10238 times
Nolberto Paulino
Regards
Regards
Re: How can I get my software to adapt to the size of the sc
Possibly, a better solution for you is to use the scaling feature of eXpress++.
Look at the samples in \exp20\sample\scale
Look at the samples in \exp20\sample\scale
The eXpress train is coming - and it has more cars.
Re: How can I get my software to adapt to the size of the sc
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
Regards
- 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
I have the SCALE function.EXE gives error
- Attachments
-
- Безымянный.jpg (34.79 KiB) Viewed 10230 times
Re: How can I get my software to adapt to the size of the sc
That doesn't make any sense.
How old a version of eXpress++ are you using?
DCMXBUTTONS have not been supported in over 10 years.
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.
- 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
I use since 2012. Bought all and'm using. And now just compiled what I have and run on execution.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.
What do I have to do to make it work?