String Display length

This forum is read only. No new submissions are accepted.

Questions about motif? Contact us

3 posts / 0 new
Last post
String Display length

Submitted by Anonymous on Thu, 09/12/2002 - 14:33. Developers
I though I knew this!

I want to know the (rough) display string length of a line of text I intend putting into a SelectionDisplay widget so
I can suitably adjust the box width etc. Is there something like XmtLayoutConvertSizeToPixels that does not require
Layout class widgets?

Thanks in anticipation.

ICS_support

See XmStringWidth() and similar functions. But then you need to know how the widget displays that text to know how big the widget is.

Anonymous

Thanks dbl, I remembered it this morning in my sleep!!!

Now using it + height to make the presentation more tidy.