[comp.windows.x] Questions about xview toolkit

ho@arisia.Xerox.COM (Gilbert Ho) (10/12/90)

Hi, netlanders!

I am writing X application using xview toolkits. I am using X11R4 and running the program 
on Sun4/Sparc under SunOS4.1. The window manager I am using is olwm.

Here is part of the window tree structure.

                                  base_frame
                                      |
                    --------------------------------------------
                   |                                           |
                frame                                       base_panel
                  |  \--\                                      |
                panel    \----------------\          ----------------------------
                  |                        \         |        |           |      |
 -------------------------------           |   filepath     filename ... setup  print
 |     |         |             |           |                             button button
job   from ... printers printer_features   |                          
               button       button         |
                                           |
                                           |
                                 complex_printer_frame
                                           |      \ ---------------------
                                 complex_printer_panel                   \
                                           |                               \
                       ----------------------------------------------       |
                       |        |         |            |             |      | 
                       Ok     Cancel   job_type  Imaging/Finishing  ....    |
                     button   button                 button                 |
                                                                            |
                                                       ______________________
                                                       |
                                                   imaging_frame

Each of the button defined in the window tree has a callback procedure associated with it.


The first problem I have is that when a child window is obscured by other windows and 
the child window is closed while it is partially covered by other window, the 
following open of the child window will be covered by those windows that are 
originally above it. It is not opened on the top of the window tree. I am using XV_SHOW 
attribute in the callback routine to have the window shown to the user. However, 
the previous state of the screen seems to be remembered. Here is an example, if I 
close the window of imaging_frame while is partially behind complex_printer_frame window,
when Imaging/Finishing button is clicked, imaging_frame's window will be opened behind 
complex_print_frame window. The callback procedure of Imaging/Finishing button sets
FRAME_CMD_PUSHPIN_IN and XV_SHOW of imaging_frame to true; however, this doesn't 
seem to do the trick.  Is there another attribute that I should use instead or 
this is olwm's problem? The reason that I am suspecting this is an olwm problem
is becuase if I take the same executable to run under twm, it works fine.

Another problem I have is related to iconification. When the root window (base_frame)
is iconified, not all the children windows that are opened will be closed, only part
of them. Using the window tree above, if base_frame, frame, complex_printer_frame 
and imaging_frame are opened, the iconification action will only close base_frame, 
and frame windows only not complex_printer_frame and imaging_frame windows.

Any suggestion and idea will be welcome. I am not sure am I doing something wrong
or not.

Please send your reply back to slu.osbunorth@Xerox.COM

Thanks a lot for your help.

Susan