Page 3 of 3

Re: Virtual screen

Posted: Fri Oct 11, 2019 3:32 am
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

Re: Virtual screen

Posted: Fri Oct 11, 2019 11:48 am
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

Re: Virtual screen

Posted: Sun Oct 13, 2019 3:46 pm
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

Re: Virtual screen

Posted: Mon Oct 14, 2019 5:35 am
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.

Re: Virtual screen

Posted: Mon Oct 14, 2019 9:41 am
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.

Re: Virtual screen

Posted: Mon Oct 14, 2019 2:54 pm
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

Re: Virtual screen

Posted: Tue Oct 29, 2019 10:18 am
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.