XForms: Label text higher problem solved. Mud on face.

Jeff PIerce (piercej@preferred.com)
Thu, 22 Jul 1999 14:55:41 -0400

# To subscribers of the xforms list from Jeff PIerce <piercej@preferred.com> :

I found at the reason for this, and it is a head up where the sun don't
shine..

The text for the label is the output of a command executed via a popen
call. Then the output from the popen's stream is read using an fgets().
Well fgets() adds a new-line on the end of the string. Well, guess what
I forgot to strip off?
Ya guessed it. So the newline was causing "two" lines to be written to
the label, not one, moving the viewable text up one line.

Dahhhhh.

Original Post:
>I noticed that when I use the text object there is a pecularity. I
>create two text objects aligned horizonally with all atributtes the
>same, font, point size,position.etc. The left one I set the text at
>creation (text set by fdesign) for a set prompt. The right one is set
>from the app (blank at creation). When the text set by the app is set,
>it's text is postioned higher the the other's text. Infact, the upper
>couple of pixels is cutt off.

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