T.R | Title | User | Personal Name | Date | Lines |
---|
253.1 | Create a little file and snap it back | SEAN::DAVIDSON | | Mon Feb 20 1989 14:04 | 17 |
| re: .0
First determine where the DECterm is at on the screen (you should have this
from CHILD) and then create a simple little file like RESET-DECTERM.DAT with
your cooridnates in it:
DECW$TERMINAL.x: 530
DECW$TERMINAL.y: 30
Then when you want to snap it back just do a Customize and then
Use Saved Settings from... and then give it the filename and it should
move it back to where you want it. You can also have it resize the DECterm
if you want.
Sean
|
253.2 | Saving Application Setup Values | MTA::WATSON | | Wed Feb 22 1989 17:49 | 21 |
| But how about a more general and elegant method?
I am trying to do the same thing for an application.
Upon leaving the application I getvalues on the width, heighth,x,y.
I am using popupshells for about 10-20 windows. I would like to
be able to store these values so the application can start up the
way the user left it.
The width and height seem to be accurate but the x, y positions
are not.
How come the session manager does not update the x, y positions?
Should I be using another method?
Thanks.
Jim Watson
|
253.3 | | ATSE::DAVIDSON | | Wed Feb 22 1989 17:56 | 11 |
| re: .-1
I don't think there is any easy way to do this for DECterms. I'm no
X expert but maybe the title is something you could find walking
through all the window id's that are create (like xtree example)
and if you give each DECterm window a unique title you could get the
window id and once you have that you should be able to do just about
anything you want.
Sean
|
253.4 | | AITG::DERAMO | Daniel V. {AITG,ZFC}:: D'Eramo | Wed Feb 22 1989 18:25 | 9 |
| re .2
You might be finding the x and y positions of your widgets within
their shells (or something like that), perhaps gettting x=0, y=0.
You have to go up to the window that is a child of the window manager's
"root" and get it's position to get useful x and y values.
Dan
|