Re: Q: About popups & cascade menus

Worawut Wisutmethangoon (wisutmet@cae.wisc.edu)
Thu, 09 Jan 1997 11:57:39 -0600

To subscribers of the xforms list from Worawut Wisutmethangoon <wisutmet@cae.wisc.edu> :

Dr. T.C. Zhao wrote:
>
> From: Worawut Wisutmethangoon <wisutmet@cae.wisc.edu>
> > Unfortunately, the solutions do not work. Running the pup
> >demo with -visual Default (or -visual PsuedoColor) still gives the
> >BadMatch error when the button "menu" is pushed.
> > Again, this happens on HP-UX machines,
>
> Can someone confirm this on HP machines ?
>
> > root window
> > Depth: 8
> > Visual Class: PseudoColor
> > Colormap: 0x26 (installed)
> >pupwin
> > Depth: 8
> > Visual Class: PseudoColor
> > Colormap: 0x5800007 (installed)
>
> Seems pup is using a private colormap. Try -shared and see
> what happens. Are you sure pup did not say something like
> Failed to share colors - using private colormap ?

I just had a chance to try the pup demo with -shared.
However, it produced the same results.
The following are the output from xwininfo when running
with -shared.

Worawut W.

/*************************************************************/
xwininfo: Please select the window about which you
would like information by clicking the
mouse in that window.

xwininfo: Window id: 0x28 (the root window) (has no name)

Absolute upper-left X: 0
Absolute upper-left Y: 0
Relative upper-left X: 0
Relative upper-left Y: 0
Width: 1280
Height: 1024
Depth: 8
Visual Class: PseudoColor
Border width: 0
Class: InputOutput
Colormap: 0x26 (installed)
Bit Gravity State: ForgetGravity
Window Gravity State: NorthWestGravity
Backing Store State: NotUseful
Save Under State: no
Map State: IsViewable
Override Redirect State: no
Corners: +0+0 -0+0 -0-0 +0-0
-geometry 1280x1024+0+0

xwininfo: Please select the window about which you
would like information by clicking the
mouse in that window.

xwininfo: Window id: 0x4c00039 "PupDemo"

Absolute upper-left X: 892
Absolute upper-left Y: 451
Relative upper-left X: 0
Relative upper-left Y: 0
Width: 260
Height: 210
Depth: 8
Visual Class: PseudoColor
Border width: 0
Class: InputOutput
Colormap: 0x4c00007 (installed)
Bit Gravity State: ForgetGravity
Window Gravity State: NorthWestGravity
Backing Store State: WhenMapped
Save Under State: yes
Map State: IsViewable
Override Redirect State: no
Corners: +892+451 -128+451 -128-363 +892-363
-geometry 260x210+881+418