home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / lang / tcl / 1830 < prev    next >
Encoding:
Text File  |  1992-11-14  |  1.8 KB  |  50 lines

  1. Newsgroups: comp.lang.tcl
  2. Path: sparky!uunet!europa.asd.contel.com!emory!wupost!cs.utexas.edu!convex!news.utdallas.edu!corpgate!crchh327!tdoan
  3. From: tdoan@bnr.ca (Tuan Doan)
  4. Subject: Correction for previous post
  5. Message-ID: <1992Nov14.034920.27921@bnr.ca>
  6. Keywords: String, Format, List, Insert, TCL/TK
  7. Sender: news@bnr.ca (News on crchh327)
  8. Nntp-Posting-Host: crchh404
  9. Organization: Bell-Northern Research, Richardson, Tx.
  10. Date: Sat, 14 Nov 1992 03:49:20 GMT
  11. Lines: 37
  12.  
  13. Hello,
  14.  
  15.    Please note that the previous posted question
  16.  
  17. >    I am having trouble formatting string inside an entry widget.  Consider the
  18. > following:
  19. >    set info [format "%10s %8s" "$uid" "$pid"]
  20. >
  21. > the statement:  puts stdout $info                     does it correctly
  22. > the statement:  .lv1.list insert end "$info"          centered $uid and $pid
  23. > Is there a way to handle format string correctly inside an entry widget?
  24.  
  25. should be corrected to refer to 'list' NOT 'entry' widget.  That is,
  26.  
  27.    I am having trouble formatting string inside a list widget.  Consider the
  28. following:
  29.  
  30.    set info [format "%10s %8s" "$uid" "$pid"]
  31.  
  32. the statement:  puts stdout $info                     does it correctly
  33. the statement:  .lv1.list insert end "$info"          centered $uid and $pid
  34.  
  35. Is there a way to handle format string correctly inside a list widget?
  36.  
  37. Too many night shifts.  :-)
  38.  
  39. Regards,
  40.  
  41.  __  __/  /   /   __  /    |   /    Tuan T. Doan
  42.     /    /   /   /   /   / |  /     Advance Signalling Design
  43.    /    /   /   __  /   /  | /      2201 Lakeside Blvd.  P.O. Box 833871
  44. __/  ______/ __/ __/ __/  __/       Richardson, TX 75083-3871
  45.                                     Phone: 6-444-4575/214-684-4575
  46. Internet:  tdoan@bnr.ca             Fax:   6-444-3716/214-684-3716
  47.       or   tdoan@x400gate.bnr.ca    
  48.