Different computers - different screen resolutions

warakurna
Posts: 23
Joined: 2008-07-23
Location: Germany

Hej,

I'm working on two computers. An office PC with a screen of 1280x1024 px and a a notebook with 1366x768 px screen resolution. I also have old Igor files from a former office PC with a screen of 1680x1050 px.

The problem is that the files I saved on the computers have also the saved window positions (command window, tables, plots...) in Igor in it. That means that when I just push windows to the side, save the file and take it home to have a look at the file on my notebook, the window are shifted and sometimes not visible because they are out of scale of the actual screen resolution.
Is there any possbility to scale the files to the screen?

Thanks...


Posts: 497
Joined: 2007-03-01
Location: United States

The Windows->Control->Retrieve All Windows menu item will probably do what you're asking for. It should at least make all the windows visible so you can move them around to your liking.


jjweimer
jjweimer's picture
Posts: 739
Joined: 2007-08-14
Location: United States

warakurna wrote:
....Is there any possbility to scale the files to the screen?

You might also have a look at the Screen Sizer package http://www.igorexchange.com/project/ScreenSizer as a way to do this automatically. For example, with the Screen Sizer package, you would be able to write in the procedure window of your experiment the following:

#include "ScreenSizer"
 
Static Function IgorBeforeQuitHook(refNum,fileName,path,type,creator,kind)
	Variable refNum,kind
	String fileName,path,type,creator
 
	ScreenSizer#SaveAllWindows()
 
	return 0
end
 
Static Function AfterFileOpenHook(refNum,fileName,path,type,creator,kind)
	Variable refNum,kind
	String fileName,path,type,creator
 
	ScreenSizer#Initialize(0,force=1)
	ScreenSizer#RestoreAllWindows()
 
	return 0
end

This should save the current window settings for all windows and then restore them at the new screen resolution. Unlike the Retrieve Windows menu option, this may however resize the windows (except panels).

Should you try this an find any problems, please report back at the Bug Report link for the project.

HTH

--
J. J. Weimer
Chemistry / Chemical & Materials Engineering, UAH


[ last edited January 27, 2010 - 08:56 ]
warakurna
Posts: 23
Joined: 2008-07-23
Location: Germany

Thanks for your replies...

Actually all things do fine things. "Retrieve all windows is the easiest one" which handles most problems. I wonder why I never stumbled upon that!

Jan


Back to top