CLIM mail archive

[Prev][Next][Index][Thread]

Re: TAB inside draw-text



    Date: Mon, 8 Nov 1993 10:09 EST
    From: Jeff Morrill <jmorrill@BBN.COM>

      Date: Mon, 8 Nov 93 9:27:54 EST
      From: chyde@BBN.COM
  
      I'm drawing some text that has #\TABs in it. but, they don't show up
      on screen, their width is zero. is there a special extra control one
      has to provide to get this to have some width?
  
    Both TAB and RETURN don't seem to be processed correctly.
    They both seem to be treated the same as #\space.

    If you use FORMAT to generate the string in the first place,
    then you might be able to use ~T to work around it.

If you are using DRAW-TEXT[*] (as opposed to WRITE-STRING), it does
not handle tabs and newlines.  Handling tabs and newlines requires
maintaining cursor state, and DRAW-TEXT[*] does not maintain any such
cursor state.

This was true as far back as CLIM 1.0.

(Actually, this was true as far back as (SEND WINDOW :DRAW-STRING ...)
in Symbolics system 98, circa 1982.  Maybe earlier.)

Follow-Ups: References:

Main Index | Thread Index