Term2x Screen location

  • 1
  • 2
  • Page 1 of 2
nwrightson
Benutzer
Avatar
Gender:
Location: Newcastle
Age: 62
Homepage: nweha.homeserver.c…
Posts: 362
Registered: 08 / 2003
Subject:

Term2x Screen location

 · 
Posted: 16.12.2010 - 00:48  ·  #1
Hi,

Where is the location where the Dual Terminal dekstop co-ordinates is stored?
At work I use it on a second monitor but when at hmoe I dont have this secoond monitor attached. The problem is that the application runs up and tries to put itself onto the second monitor that doesn't exist. So I can't get to it, to drag back to the primary monitor.

Neil.
Gunter
Administrator
Avatar
Gender:
Location: Frankfurt Main / Germany
Posts: 1697
Registered: 02 / 2003
Subject:

Re: Term2x Screen location

 · 
Posted: 16.12.2010 - 01:23  ·  #2
Hi Neil,

I assume in Term2x.ini as usual.
At least this file contains PosX / PosY

Gunter
nwrightson
Benutzer
Avatar
Gender:
Location: Newcastle
Age: 62
Homepage: nweha.homeserver.c…
Posts: 362
Registered: 08 / 2003
Subject:

Re: Term2x Screen location

 · 
Posted: 16.12.2010 - 01:30  ·  #3
Of course :'(
I was looking in the registrey etc.

Now seeing the contents of the ini file, I can also see that it keeps the information of the parameters used for this project. Smart :D
Now if only it was smart enough not to go to screen co-ordinates that do not exist.
If they dont exist then display on the main screen instead.

Thanks,

Neil.
Gunter
Administrator
Avatar
Gender:
Location: Frankfurt Main / Germany
Posts: 1697
Registered: 02 / 2003
Subject:

Re: Term2x Screen location

 · 
Posted: 16.12.2010 - 02:04  ·  #4
the registry contains only the license informations.

If you delete the Term2x.ini it starts with default values and
creates a new one.
btw:
you find the location of Term2x in the ped32.ini, section [Tools].
So it is possible to use a different term2x.ini at home!

Gunter
nwrightson
Benutzer
Avatar
Gender:
Location: Newcastle
Age: 62
Homepage: nweha.homeserver.c…
Posts: 362
Registered: 08 / 2003
Subject:

Re: Term2x Screen location

 · 
Posted: 16.12.2010 - 03:24  ·  #5
Hi Gunter,
But as I mentioned in my second post, after looking at the ini file, I saw that it gave me extra functionality that I was not aware of.
Thus, I do not want to delete every time. And editing the ini every time I change screen swaps is possible but....painful.

Just a suggestion to make your application even more of a joy to use.

Neil.
Merlin
Administrator
Avatar
Gender:
Age: 24
Posts: 1373
Registered: 03 / 2005
Subject:

Re: Term2x Screen location

 · 
Posted: 16.12.2010 - 11:32  ·  #6
Hi Neil.

Do you use Delphi? (or indeed any other PC compiler). These are standard INI files so writing a small routine to swap the paramaters would be really easy.

Regards

Merlin.
rh
Administrator
Avatar
Gender:
Location: Germany
Age: 24
Homepage: e-lab.de
Posts: 5558
Registered: 03 / 2002
Subject:

Re: Term2x Screen location

 · 
Posted: 16.12.2010 - 11:48  ·  #7
Hello Neil,

you say that the program should check the x/y coordinates for validity...
I don't have any idea to do this. I think every coordinate is valid, also these which are completely outside of the current screen.

rolf
nwrightson
Benutzer
Avatar
Gender:
Location: Newcastle
Age: 62
Homepage: nweha.homeserver.c…
Posts: 362
Registered: 08 / 2003
Subject:

Re: Term2x Screen location

 · 
Posted: 16.12.2010 - 12:15  ·  #8
Hi Rolf,

I'm sure there is windows API call that reports the size of the active desktop. One of our in house programmers uses this for this style of operation.

As an example How To Determine the Size of the Desktop Area

This is a handy thing to apply to any EXE.

Neil.
  • 1
  • 2
  • Page 1 of 2
Selected quotes for multi-quoting:   0

Registered users in this topic

Currently no registered users in this section

The statistic shows who was online during the last 5 minutes. Updated every 90 seconds.
MySQL Queries: 15 · Cache Hits: 14   132   146 · Page-Gen-Time: 0.041723s · Memory Usage: 2 MB · GZIP: on · Viewport: SMXL-HiDPI