[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference bulova::decw_jan-89_to_nov-90

Title:DECWINDOWS 26-JAN-89 to 29-NOV-90
Notice:See 1639.0 for VMS V5.3 kit; 2043.0 for 5.4 IFT kit
Moderator:STAR::VATNE
Created:Mon Oct 30 1989
Last Modified:Mon Dec 31 1990
Last Successful Update:Fri Jun 06 1997
Number of topics:3726
Total number of notes:19516

3145.0. "controlling terminal windows?" by SNOC02::ZAMBOTTIW (It only works after you ask!) Mon Jul 30 1990 00:11

    Hello all,
    
    I have some developers who have a graphics application that they are
    porting to the decstation.  The package consists of two windows a
    graphics win and a text entry win.
    
    The graphics window is created by the application using simple X (no
    UIL here boys) and the text window is simply the dxterm window that
    started the application.
    
    What the developers would like to do is have the application control
    the size and positioning of the dxterm window that initiated the
    application.  I have seen this done with other X applications does
    anyone know how this is done?
    
    Also I would like the application window to be stuck (or attached) to
    the dxterm window so that when the term window is moved the application
    window will also move along with the term window.  Sound tough?
    
    Any responses will be appreciated.
    
    Walter Zambotti
T.RTitleUserPersonal
Name
DateLines
3145.1HANNAH::MESSENGERBob MessengerMon Jul 30 1990 12:0229
Re: .0

>    What the developers would like to do is have the application control
>    the size and positioning of the dxterm window that initiated the
>    application.

The application can change the size of the window in character cells by
sending the Set Lines Per Page and Set Columns Per Page escape sequences.
It's more difficult to change the window size in pixels or to move the
wnidow, though, becaues DECterm doesn't support the escape sequences (e.g.
VWS-style OSC sequences) to do that.

If you poke around in this conference or in HANNAH::DECW$DISK:[PUBLIC]DECTERM
you should be able to find a program that will let you determine the DECterm
window's window ID.  The programs I've seen have been written VMS, but
you should be able to port them to ULTRIX.  In order to find the right
window ID you'll probably have to know the window's title, so the application
might want to change the title using the OSC sequence:

	ESC ] 21 ; title ESC \

	ESC ] 2L ; iconname ESC \

(the spaces are for readability and shouldn't be sent to DECterm).

One you know the window ID you can change the window's size and position
using XConfigureWindow, XMoveWindow, XResizeWindow, or XMoveResizeWindow.

				-- Bob