home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!dtix!darwin.sura.net!gatech!usenet.ins.cwru.edu!agate!ucbvax!iis.UUCP!glen
- From: glen@iis.UUCP
- Newsgroups: comp.windows.x.motif
- Subject: Re: Help: Text in Scrolled Window
- Message-ID: <9301052345.AA24802@rigel>
- Date: 5 Jan 93 23:45:16 GMT
- Sender: daemon@ucbvax.BERKELEY.EDU
- Distribution: inet
- Organization: The Internet
- Lines: 24
-
-
- >
- > I have a Text widget in a Scrolled Window widget, which is configured to
- > scroll vertically automatically (and thus is not simply a ScrolledText widget).
- > This widget is used for output only, with messages being periodically appended
- > to the end of the text. I would like the scrolled window to constantly show the
- > position of the current end of the text, but cannot find any way of doing it
- > without changing the operation of the Scrolled Window to manual (which would make
- > a lot more work).
- > Any ideas would be greatly appreciated,
- > Jeffrey Wood
- >
-
- The following works for me:
-
- XmTextInsert (mensDataLCD, mensDataPos, messageBuf);
- mensDataPos = XmTextGetLastPosition (mensDataLCD);
- XtVaSetValues (mensDataLCD,
- XmNcursorPosition, mensDataPos,
- NULL);
- XmTextShowPosition (mensDataLCD,
- mensDataPos);
-
- Good Luck !
-