[comp.windows.x] Uncooperative Label/form Widget

rsmith@pioneer.arc.nasa.gov (Roger Smith) (12/28/90)

This is my first posting to any newsgroup anywhere, so please forgive me if I violate any conventions.

I am having a mysterious problem with either the label widget or the form widget under X11R4.  I am building an application that contains, among other things, a number of label widgets aligned in horizontal rows and contained within a form widget. The parent of the form widget is a horizontally scrolled viewport widget. On Sun4 architecture, the label widgets all initialize themselves to 17 pixels high, which is the sum of the text height plus 2*XtNinternalHeight; and is correct. However, after a call to X








tRealizeWidget something has changed this height to 16 pixels and these rows therefore do not line up with other rows elsewhere in the application. 

I also tried this same code on a DEC Mips machine and got different, but still incorrect, results.  On the DEC machine the label widgets remain sized correctly (at 17 pixels) after calling XtRealizeWidget, but the form widget that is the parent to these label widgets is now 1 pixel smaller for each row of label widgets and therefore cuts off part of the bottow row of labels.

Does anybody have any suggestions?  Thanks in advance for any help anyone can offer.

ben@hpcvlx.cv.hp.com (Benjamin Ellsworth) (12/29/90)

> I am having a mysterious problem with either the label widget or the 
> form widget under X11R4.  ...

Whose widget set?  XUI, Athena, Motif, Xhp, ... ?  The behaviors can be
markedly different.

> ... Does anybody have any suggestions?...

Yes, please format your message to 80 character lines with linefeeds.

-----------------------------------------------------------------------
Benjamin Ellsworth      | ben@cv.hp.com                | INTERNET
Hewlett-Packard Company | {backbone}!hplabs!hp-pcd!ben | UUCP
1000 N.E. Circle        | (USA) (503) 750-4980         | FAX
Corvallis, OR 97330     | (USA) (503) 757-2000         | VOICE
-----------------------------------------------------------------------
                     All relevant disclaimers apply.
-----------------------------------------------------------------------