[comp.windows.x] Problem with listWidget.

spencer@heinlein.osc.edu (Stephen N. Spencer) (10/04/89)

I have a question concerning the operation of the listWidget in the HP widget
set.  (this is on a Sun 3/60, Sun OS4.0, XV11R3, awm or hpwm)

I have an application which utilizes the listWidget.  I build the listWidget,
then build a group of staticText widgets as the children of the listWidget
(for a scrolling list of strings).  In the HP Widget manual pages, under the
staticText section, it reads:

	XtNhSpace: 
	    This specifies the number of pixels to maintain between the text
	    and the highlight area to the right and left of the text.

My problem is this:  I am using the XtNelementHighlight option in the list
Widget to set the highlight style to invert, but I can't make the border 
highlight area go away in the children widgets, nor can I make the text be
completely visible, on the left and right, because the staticText widget's 
border highlight area is intruding on the leftmost character.  It seems to
happen the worst with strings which begin with the letter "b", though other
letters which are oriented to the left of their bitmap are similarly 
affected.

My question is this:  how can I make the hSpace parameter work?  I'd like to
be able to see ALL of the character string in the staticText widgets. 

Thank you for your attention.

-=-
Stephen N. Spencer      |"For a successful technology, reality must take
ACCAD, 1224 Kinnear Rd. | precedence over public relations, for Nature
Columbus OH 43212       | cannot be fooled."     - Richard P. Feynman
spencer@heinlein.cgrg.ohio-state.edu OR spencer@cis.ohio-state.edu

spencer@heinlein.osc.edu (Stephen N. Spencer) (10/04/89)

I thought I'd detail a couple of things I am doing with reference to my
list Widget problem:  I am setting highlightThickness to zero in the list 
Widget as well as in the staticText child widgets.

-=-
Stephen N. Spencer      |"For a successful technology, reality must take
ACCAD, 1224 Kinnear Rd. | precedence over public relations, for Nature
Columbus OH 43212       | cannot be fooled."     - Richard P. Feynman
spencer@heinlein.cgrg.ohio-state.edu OR spencer@cis.ohio-state.edu