Re: XForms: Linux alpha glibc ?

Steve Lamont (spl@szechuan.ucsd.edu)
Tue, 22 Sep 98 12:34:48 PDT

# To subscribers of the xforms list from spl@szechuan.ucsd.edu (Steve Lamont) :

> I have a small vertical window (x 1000 pixel y 200) where inside I
> have a quite long vertical menu that is bigger (x 200 y 400) than
> the window Everything works on Linux (the menu window opens and is
> in part outside the form) but on some architectures (or perhaps
> graphics card?) the menu is clipper on the boundary of the form.

This may be because the default Visual of your display's server is
different than the Visual which XForms chooses. By default, XForms
will pick the "best" Visual, meaning it will choose TrueColor over
PseudoColor, etc. If the Visuals differ, XForms does some strange
things when it has to draw menus.

You can determine what your default Visual is by running the
`xdpyinfo' command from the console of the machine in question. You
will see something like:

name of display: alex:0.0
version number: 11.0
vendor string: X Consortium
vendor release number: 6300
maximum request size: 4194300 bytes
motion buffer size: 256
bitmap unit, bit order, padding: 32, MSBFirst, 32
image byte order: MSBFirst
number of supported pixmap formats: 2
[...]
default screen number: 0
number of screens: 1

screen #0:
dimensions: 1152x900 pixels (325x254 millimeters)
resolution: 90x90 dots per inch
depths (2): 1, 8
root window id: 0x2b
depth of root window: 8 planes
number of colormaps: minimum 1, maximum 1
default colormap: 0x21
default number of colormap cells: 256
preallocated pixels: black 1, white 0
options: backing-store YES, save-unders YES
largest cursor: 32x32
current input event mask: 0xd0001d
KeyPressMask ButtonPressMask
ButtonReleaseMask
EnterWindowMask SubstructureRedirectMask
PropertyChangeMask
ColormapChangeMask
number of visuals: 6
default visual id: 0x22
visual:
visual id: 0x22
class: PseudoColor
depth: 8 planes
available colormap entries: 256
red, green, blue masks: 0x0, 0x0, 0x0
significant bits in color specification: 8 bits
[...]

So, on my server (alex), the default visual id is 0x22 and 0x22 is a
PseudoColor Visual. Some machines, like SGIs, will have many Visuals
(most of which seem to be the same).

You can force XForms to use the default visual with the -visual flag:

your_app -visual Default ... other options ...

or by setting a resource as discussed in Appendix C of the manual.

spl
_________________________________________________
To unsubscribe, send the message "unsubscribe" to
xforms-request@bob.usuf2.usuhs.mil or see
http://bob.usuf2.usuhs.mil/mailserv/xforms.html
XForms Home Page: http://bragg.phys.uwm.edu/xforms
List Archive: http://bob.usuf2.usuhs.mil/mailserv/list-archives/