| 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 |
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.R | Title | User | Personal Name | Date | Lines |
|---|---|---|---|---|---|
| 2116.1 | Some answers... | GSRC::WEST | Variables don't, Constants aren't | Thu Jan 25 1990 09:54 | 38 |
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.2 | Thanks | CHOVAX::LIOU | Wed Jan 31 1990 07:53 | 5 | |
Jim,
Thank you very much for your help...
Ray
| |||||