Virtual screen

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

Re: Virtual screen

#21 Post by unixkd »

Hi Roger

Thanks for your response

I would like you to give us a sample function that utilise your above code because I do not know where to insert this in my application

Joe

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

Re: Virtual screen

#22 Post by Eugene Lutsenko »

I form in memory without displaying on the screen an image of any dimension, up to 4K in X and y. then I scale it to the real resolution of the screen and then display it on the screen. Search: "My original image, my image scaled": http://lc.kubagro.ru/__AIDOS-X.txt

User avatar
unixkd
Posts: 565
Joined: Thu Feb 11, 2010 1:39 pm

Re: Virtual screen

#23 Post by unixkd »

This requires that you know the size of the Dialog Window (oDlg:currentSize())
Hi Roger I developed my application resolution 1600 X 900 screen but need to deploy it on client computers with resolution 1280 X 768 :

1. Where should I insert the 1280 x 768 resolution in your suggested code (oDlg:currentSize) ?

2. Will I need to place this code in every DCGETOPTION ... of my application dialogs ?

Thanks

Joe

Wolfgang Ciriack
Posts: 478
Joined: Wed Jan 27, 2010 10:25 pm
Location: Berlin Germany

Re: Virtual screen

#24 Post by Wolfgang Ciriack »

You can put an DCGET OPTIONS ..... with all the needed values at the beginning of your program and then a
dc_getoptdefault(GetOptions). Then these values are the default for all dialogs.
_______________________
Best Regards
Wolfgang

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

Re: Virtual screen

#25 Post by rdonnay »

All this will do is SCALE the objects and the fonts.

If you wrote everything for 1600 x 900, then it would need to scale down, not up.

This means that fonts could get smaller.
The eXpress train is coming - and it has more cars.

User avatar
unixkd
Posts: 565
Joined: Thu Feb 11, 2010 1:39 pm

Re: Virtual screen

#26 Post by unixkd »

Hi Roger

I appreciate your responses.

You and express++ has a tradition that has kept us far apart from other support communities and that is providing ready-to-compile and run samples. EXPRESS++ have tones of samples in Xdemo.exe and sample folders. They are all ready-to-compile and run. That was my request on this topic. Something like:

PROC Main()
Local GetList[0]

------

-----

DCGETOPTION SCALE aScale ....

DCREAD GUI .....

Return

That way you would solve my request completely - except if not possible.

That was what I thought you promised earlier.

Thanks.

Joe

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

Re: Virtual screen

#27 Post by rdonnay »

I have been consumed for the past 2 weeks due to the fact that I am the president of our Navy association and just got back from our 2-year reunion. I will be finding much more time now for support in November and December as I get back into my work.
The eXpress train is coming - and it has more cars.

Post Reply