Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!decwrl!ucbvax!HPWARF.HP.COM!jollyc From: jollyc@HPWARF.HP.COM (Jolly Chen) Newsgroups: comp.windows.x.motif Subject: how do I determine the width of a XmText widget? Message-ID: <9008161545.AA12056@hpwarf.HP.COM> Date: 16 Aug 90 15:45:47 GMT Sender: daemon@ucbvax.BERKELEY.EDU Distribution: inet Organization: The Internet Lines: 22 How do I determine the current width of a XmText widget in terms of character spaces? For example, if my XmText widget is inside a form and the form is resized, I want to know how many characters are actually being displayed. The XmNcolumns resource is only the initial width, right? Also, how can I can determine what is currently displayed in the text widget? Note that this is different from the value inside the text widget because of scrolling (even in single_line_edit mode) or resizing. For example, if I have a 100 character string in my text widget and only 10 characters are visible at a time, how do I find out which 10 are being displayed? I even looked at some of the fields in the internal XmText structures but I didn't find the appropriate ones. - Jolly Chen Jolly Chen Clinical Information Systems Hewlett-Packard Waltham, MA jollyc@hpwarf.hp.com