Submitted by machnone on Thu, 10/04/2001 - 06:07.
Here is my question
Is there a way to tell if a clipping arrow is displayed in an XrtTable cell?
I need to know this because I have a fixed width column, but if the text is too long for the cell, when the user clicks in that row I want to expand it out. I can expand it just fine, I just can`t tell if the text is longer than the cell width?
I thought maybe I could get the width of the text in pixels, and wrote
xm_addr = CELL_VALUE(cells, 0, 0);
XtVaGetValues (w, XmNfontList, &font_list, NULL);
width = XmStringWidth (font_list, xm_addr);
But I keep getting a zero width. And, I can`t figure out how to get the width of the column in pixels. Its widht is set using XmNxrtTblCharWidthContext.
Any suggestions?