[Tcl-bugs] [Tk] (bll) tkt (New): tabs: numeric justification is not working

Previous Topic Next Topic
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

[Tcl-bugs] [Tk] (bll) tkt (New): tabs: numeric justification is not working

Automated mail by fx, on behalf of [hidden email]

Ticket Change [195653b5264d4db915b8a3d98ae7c653b223b169]
  [tabs: numeric justification is not working]
  By      bll
  For     Tk
  On      2017-07-04T22:18:23.679
  Details https://core.tcl.tk/tk/tinfo?name=195653b5264d4db915b8a3d98ae7c653b223b169
  Ticket  https://core.tcl.tk/tk/tktview/8b1cc43f740e54b1148e332fde8f6566b40a1f78

Changed Fields
  assignee:   nobody
  closer:     nobody
  comment:    From the test script, it can be seen in the 'c' and 'e' characters
              that  right,center,left are working.

              Numeric is not aligned to the decimal point.

              package require Tk

              set fixedFont {"Courier New" -12}

              frame .f -width 100 -height 20  pack .f -side left  text .t -font
              $fixedFont -width 60 -height 10  pack .t -expand 1 -fill both

              .t delete 1.0 end  .t tag configure x -tabs [list 30 left 60 right 90
              left 120 right 140 left]  .t tag configure z -tabs [list 30 numeric 60
              numeric 90 numeric 120 numeric 140 left]  .t tag configure c -tabs
              [list 30 center 60 center 90 center 120 center 140 left]  .t tag
              configure y -tabs [list 30 60 90 120 140]  .t insert 1.0 "a\ b\ c\ d\
              e\ mixed\ "  .t insert 2.0 "1.5\ 1.4\ 1.3\ 1.2\ 1.1\ numeric\ "  .t
              insert 3.0 "a\ b\ c\ d\ e\ center\ "  .t insert 4.0 "a\ b\ c\ d\ e\
              left\ "  .t tag add x 1.0 2.0  .t tag add z 2.0 3.0  .t tag add c 3.0
              4.0  .t tag add y 4.0 end
  foundin:    revised_text
  is_private: 0
  login:      bll
  priority:   5 Medium
  resolution: None
  severity:   Minor
  status:     Open
  submitter:  bll
  subsystem:  18. [text]
  title:      tabs: numeric justification is not working
  type:       Bug

See Tcl/Tk development @ http://core.tcl.tk/

Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
Tcl-Bugs mailing list
[hidden email]