[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

2116.0. ""Help"" by CHOVAX::LIOU () Tue Jan 23 1990 18:50

    A customer using Ada v2.0 and VMS v5.2 in a DECwindow environment
    has the following questions:
    
    Using only Xlib (no toolkit please):
    
    1. How do we create a window that is a child of the root_window
    and the window will have NO title bar?
    
    2. How do we create a window with a title bar that has icon blacked
    out? (ie. cannot iconify that window) Also, is there a way to prevent
    restack and resize from being allowed?  Eg., in the work in progress
    display of File Session you can move work in progress window around
    but cannot iconify or resize?
    
    3.What is the purpose of using the Owner_Grab_Button event being
    set upon creation of a window and when should it be used.
    
    
    
    Thanks a lot for any help provided.
    
    
    
    
    Ray.
T.RTitleUserPersonal
Name
DateLines
2116.1Some answers...GSRC::WESTVariables don't, Constants aren'tThu Jan 25 1990 09:5438
RE:                       <<< Note 2116.0 by CHOVAX::LIOU >>>
                                    -< "Help" >-

>>    1. How do we create a window that is a child of the root_window
>>    and the window will have NO title bar?

  This is done with the OverrideRedirect attribute.  Check out the file in
  DECW$EXAMPLES named XLIBINTRO.ADA.  In the structure XSWDA you want to
  set the element SWDA_OVERRIDE_REDIRECT to the value of 1, and then set the
  element CW_OVERRIDE_REDIRECT in the structure ATTR_MASK to TRUE.  This will
  do what you want.  Note however that in doing this tells the window manager
  to leave your window alone.
    
>>    2. How do we create a window with a title bar that has icon blacked
>>    out? (ie. cannot iconify that window) Also, is there a way to prevent
>>    restack and resize from being allowed?  Eg., in the work in progress
>>    display of File Session you can move work in progress window around
>>    but cannot iconify or resize?

  You can do this by using the property DEC_WM_HINTS.  Unfortunately this
  structure is not defined in either of the two Ada packages, but is easily
  defined.  All the info on this structure is in the file
	DECW$INCLUDE:DECWMHINTS.H

  Once you've defined this structure you can use XChangeWindowProperties to
  set which *buttons* that you want on or off.

    
>>    3.What is the purpose of using the Owner_Grab_Button event being
>>    set upon creation of a window and when should it be used.

  Not sure on this one...never have *directly* used it.
    
    
  Hope this helps...

					-=> Jim <=-

2116.2ThanksCHOVAX::LIOUWed Jan 31 1990 07:535
    Jim,
    
       Thank you very much for your help...
    
    Ray