Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to change window and font sizes for remote desktop?

Status
Not open for further replies.

markftwain

Technical User
Jul 12, 2006
108
Hi

Opinions wanted, please. I have at home a vfp app which I access through my netbook from work using remoteApp. This is an excellent combination. My wife now wishes to do the same, but she will be using her desktop. She has a much larger screen real estate and wishes the forms, fonts, grids, etc., to be larger--but still use the same vfp application. Ideas anybody?

I would best like the client end to simply adjust its size to the desktop without affecting the back-end vfp application. (Java? dotNet?, webpages? ...) If it helps any, I've also created a vpn between my netbook, office, and home to allow access to my printers.

Thank you for your consideration.
 
Now I could be wrong(!) but our clients use Terminal Services to use our app, but it has been designed for a screen size of 800x600 or more, although they get a choice of screen size fot their session. I think VFP picks up TS's screen resolution (this is where I am not sure...).

So in our main program we have put a statement in:

Code:
IF SYSMETRIC(1) < 800
	=MESSAGEBOX( "The application cannot run in this screen resolution.  Please set your resolution to at least 800 x 600.", 0+16+0, "Incorrect Resolution", 0 )  &&  OK = 1
	QUIT
ENDIF

If it works, maybe you could adapt it for your needs?

I like work. It fascinates me. I can sit and look at it for hours...
 
Sorry, should be clearer!!

I mean if what I posted at least detects the working screen resolution, you could code so the forms change to what is required....

...but re-reading your post I guess you just want to 'zoom' into the app without changing anything? That I have no idea...

I like work. It fascinates me. I can sit and look at it for hours...
 
I can think of no way the client can change the application presentation in a remoteApp or terminal services connection, so your suggestion of sysmetric(1) appears to be the best--if not only solution. Unfortunately, I also can think of no simple way vfp can change its presentation as to font and window size after it knows what metric the client is using. I wonder if a seperate 'layer' or possible an invisible 'shape' couldn't be run ontop of the applications presentation that could automatically adjust the fonts, sizes, grids, etc. as appropriate for the final viewing by the client. Kinda like a window on top of a window. Maybe vfp could call dotNet (or something similiar) on the server to provide the final interface for client interaction?

Thank you for your thoughts.
 
If you make a remote desktop connection you're in full control of the remote desktop, not only the application running on it. So you can right click on the remote desktop and change the display resolution etc.

If you don't have resizable forms in your foxpro application that's another thing. The remote desktop itself and the app obviously will only get beigger or smaller on the client screen, when you change the remote desktop resolution, but you can then go into fullscreen mode and the client will run in the same low resolution making everything bigger.

Bye, Olaf.
 
In remoteApp I bypass the desktop, so right-click seems to do nothing. Perhaps combining sysmetric() with a windows api would produce the same effect?

Thanks
 
yep, will try:
DECLARE INTEGER ChangeDisplaySettings IN user32;
STRING @lpDevMode, INTEGER dwflags

This might work. Thanks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top