[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

2399.0. "A question about the decterm windows " by DECSIM::BOGDANOV () Wed Mar 07 1990 16:23

Hi,
	I am developing a program which will change some of DECTERM window 
properties (icon name and window name). The question is:
	how can I get the window ID of a particular decterm window (wich 
provided terminal I/O operations for my interactive process). 

	Now, I am using INPUT FOCUS information for the determination
of decterm window id. But it is not good enough in some cases.

/Serge
T.RTitleUserPersonal
Name
DateLines
2399.1STAR::MFOLEYJammin with Bill and TedWed Mar 07 1990 17:0230
2399.2DECSIM::BOGDANOVWed Mar 07 1990 20:0013
Thank you. 
	I did not know about these escape sequences. Where can I find more
information about other supported ESC?

	It works OK, but it is still interesting how can I find current
decterm window ID using XLIB environment?

Sorry,

	/Serge
	
	
	
2399.3Can't get there from hereDECWIN::FISHERBurns Fisher 381-1466, ZKO3-4/W23Wed Mar 07 1990 20:3512
    You can't.
    
    Well, that's a bit harsh...you found one way via focus.
    
    Another way is to get a list of all possible windows and try to figure
    it out based on characteristics like how many subwindows they have and
    what their size and shape are, etc.
    
    But basically, you can't reliably get the info automatically.
    
    Burns
    
2399.4a hint...GSRC::WESTVariables don't, Constants aren'tThu Mar 08 1990 01:0812
  To expand on what Burns mentioned in .-1 you could use XQueryTree
recursively :^) and for every window check to see if the resource class is
DECW$TERMINAL or if the resource name is decw$terminal.  Note the case, and
I've probably got them backwards :^).  If you find a window with this
particular class or name then it is the top level window of a DECterm
and you can go from there.

  Happy hunting...

					-=> Jim <=-

2399.5DEC_WM_HINTSDECSIM::BOGDANOVThu Mar 08 1990 15:029
Thank you for answers.

	Here are a couple more questions:

	I have found that evry decterm window has DEC_WM_HINTS property.
The second word of data for that property is different for each decterm window.
What kind of property is it? What data does it include?

/Serge
2399.6hope this helps...GSRC::WESTVariables don't, Constants aren'tThu Mar 08 1990 23:1133
RE:                     <<< Note 2399.5 by DECSIM::BOGDANOV >>>
                                 -< DEC_WM_HINTS >-

>>	I have found that evry decterm window has DEC_WM_HINTS property.

    Actually, every window that the window manager is managing will have this
property on the clients top_level window, i.e. every window that has
OverrideRedirect set to FALSE.

>>The second word of data for that property is different for each decterm window.
>>What kind of property is it? What data does it include?

    This property is a 9 element property with each element being 32 bits in
length.  It is not part of the standard X11 window properties.  It is unique
to the DECwindows window manager.  The nine elements are :

	Value_Mask .......... Mask of which the following elements are valid.
	Iconify_Pixmap ...... The pixmap ID for the small icon picture.
	Iconbox_X ........... X position of icon in iconbox (I think...).
	Iconbox_Y ........... Y position of icon in iconbox (ditto).
	Tiled ............... Boolean, indicates if this window is tiled
	Sticky .............. Boolean, indicates if this window is sticky
	No_Iconify_Button ... Boolean.
	No_Lower_Button ..... Boolean.
	No_Resize_Button .... Boolean.

  To me a word is two bytes or 16 bits, depending on how you are looking at the
property data could be an indication of why the second word is different.  I
would think that it would almost always be the *same*.  How are you *looking*
at this property?

					-=> Jim <=-

2399.7Icon_Pixmap IDs will be differentHANNAH::MESSENGERBob MessengerFri Mar 09 1990 13:337
Re: .6

Each DECterm widget creates its own icon pixmap (even though all the icons
look the same), so if "word" means "longword" then each DECterm window will
have a different second word.

				-- Bob
2399.8LONGWORD !!DECSIM::BOGDANOVFri Mar 09 1990 14:455
Sorry, I mean LONGWORD.

Thank you.

	/Sergey
2399.9thanx...GSRC::WESTVariables don't, Constants aren'tSun Mar 11 1990 20:527
RE: .7

  Thanx for the info.  I just thought that all DECterms would use the same
pixmap for the icon...that's what I get for thinking...

					-=> Jim <=-