[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference bulova::decw_jan-89_to_nov-90

Title:DECWINDOWS 26-JAN-89 to 29-NOV-90
Notice:See 1639.0 for VMS V5.3 kit; 2043.0 for 5.4 IFT kit
Moderator:STAR::VATNE
Created:Mon Oct 30 1989
Last Modified:Mon Dec 31 1990
Last Successful Update:Fri Jun 06 1997
Number of topics:3726
Total number of notes:19516

825.0. "Underlining text?" by 29067::K_TICE (Ada...Keeping the world safe for bureaucracy!) Tue May 23 1989 17:14

    Is there a way to underline text in a simple text widget?
    
    Thanks!
    Ken

T.RTitleUserPersonal
Name
DateLines
825.1ORPHAN::WINALSKIPaul S. WinalskiWed May 24 1989 02:116
Using global select cut/paste on SText widgets seems to give me lots of
unwanted underlining of text in random places.  I wish there were a way to
get rid of that bug.

--PSW

825.2Still there from BL8 (V1!)DECWIN::KLEINWed May 24 1989 10:578
>>Using global select cut/paste on SText widgets seems to give me lots of
>>unwanted underlining of text in random places.  I wish there were a way to
>>get rid of that bug.

Me too.

-steve-

825.3But I _WANT_ to underline text!29067::K_TICEAda...Keeping the world safe for bureaucracy!Thu May 25 1989 10:574
    Yes, but can I underline certain text ON PURPOSE?
    
    Ken

825.4BIG::SCHOTTFri Jun 30 1989 12:496
Do you want to underline text or select it?  It seems to me that in some
applications, dragging mb1 to select some text from within a text widget
causes it to either be blackened or underlined.  This visually indicates
what letters/words are selected.  Try using DwtSTextSetSelection to underline
a portion of the text.

825.5Nope, NOT select text, but...CSC32::K_TICEAda...Keeping the world safe for bureaucracy!Thu Jul 06 1989 10:4919
    Thanks for the reply!
    
    No, I do not want to select text, I merely want to visually highlight
    certain portions of text such that it has no other affect.
    
    I am beginning to suspect that this is not possible in a simple text
    widget since changing the font in an SText widget cahnges the font for
    the _entire_ widget!
    
    OK, so it does not have to be an SText widget.   How do I underline at
    all???  How do they do underlining in a DECterm, for example???
    
    
    ...still confused!
    
    
    Ken
    CSC/CS

825.6In DECterm it's just a lineHANNAH::MESSENGERBob MessengerTue Jul 11 1989 02:3811
Re: .5

>    How do they do underlining in a DECterm, for example???
    
With XDrawLine.  The y position for the line has to be offset by the
character's ascent (poosibly plus a pixel or two).  Of course DECterm is
writing to its own window; to do it the same way you'd have to write your
own widget or use the window widget.

				-- Bob