| 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 <=-
|