Skip to content
Tcl Source Code History Of Ticket 504166ffffffffffffffffffffffffffffffffff
Login

History Of Ticket 504166ffffffffffffffffffffffffffffffffff

Artifacts Associated With Ticket 504166ffffffffffffffffffffffffffffffffff

  1. Ticket change [e006b64e1c] (rid 115118) by dhighley on 2002-01-16 02:32:15:

    1. assignee initialized to: "melissachawla"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      May be submitting this under the wrong project, but
      Sourceforge does not allow searching for less than 3
      character names, darn!
      
      Anyway, this is a TK 8.3.4 make test failure on a Solaris  
      8 platform. TK was build with gcc 3.0.3 32bit. Test
      that fails is event.test.
      
      event.test
      
      ==== event-click-drag-1.2  click and drag in an entry
      widget, this
                                  tests tkEntryMouseSelect in
      entry.tcl  FAILED
      ==== Contents of test case:
      
          destroy .t
          set t [toplevel .t]
          set e [entry $t.e]
          pack $e
          tkwait visibility $e
          focus -force $e
          _keypress_string $e "A Tcl/Tk selection test!"
          set anchor 6
          set selend 18
      
          set result [list [$e get]]
      
          # Get the x,y coords of the second T in "Tcl/Tk"
          foreach {anchor_x anchor_y} [_text_ind_to_x_y $e
      $anchor] break
      
          # Click down to set the insert cursor position
          event generate $e <Enter>
          event generate $e <ButtonPress-1> -x $anchor_x -y
      $anchor_y
      
          # Save the position of the insert cursor
          lappend result [$e index insert]
      
          # Now drag until selend is highlighted, then click up
      
          set current $anchor
          while {$current <= $selend} {
              foreach {current_x current_y} [_text_ind_to_x_y
      $e $current] break
              event generate $e <B1-Motion> -x $current_x -y
      $current_y
              incr current
              _pause 50
          }
      
          event generate $e <ButtonRelease-1> -x $current_x
      -y $current_y
          _pause 200
      
          # Save the position of the insert cursor
          lappend result [$e index insert]
      
          # Save the highlighted text
          lappend result [selection get]
      
          # Now click and click and drag to the left, over
      "Tcl/Tk selection"
      
          event generate $e <ButtonPress-1> -x $current_x -y
      $current_y
      
          while {$current >= ($anchor - 4)} {
              foreach {current_x current_y} [_text_ind_to_x_y
      $e $current] break
              event generate $e <B1-Motion> -x $current_x -y
      $current_y
              incr current -1
              _pause 50
          }
      
          event generate $e <ButtonRelease-1> -x $current_x
      -y $current_y
          _pause 200
      
          # Save the position of the insert cursor
          lappend result [$e index insert]
      
          # Save the highlighted text
          lappend result [selection get]
      
      
      ---- Result was:
      {A Tcl/Tk selection test!} 6 18 {Tk selection} 4 {l/Tk
      selection}
      ---- Result should have been:
      {A Tcl/Tk selection test!} 6 18 {Tk selection} 2
      {Tcl/Tk selection}
      ==== event-click-drag-1.2 FAILED
      
      David Highley
      
      
    4. foundin initialized to: "obsolete: 8.3.4"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "dhighley"
    9. subsystem initialized to: "34. tcltest Package"
    10. title initialized to: "TK Test Failure"
    11. type initialized to: "Bug"
  2. Ticket change [c4cae9b06c] (rid 111895) by hobbs on 2002-03-23 06:06:31:

    1. assignee changed to: "dgp"
  3. Ticket change [9b8e21cfde] (rid 111147) by dgp on 2002-03-25 03:03:24:

    1. closedate changed to: "2002-03-24T20:03:24"
    2. closer changed to: "dgp"
    3. icomment:
      Logged In: YES 
      user_id=80530
      
      This is a duplicate of Tk Bug 413735 in the
      tktoolkit project.  It is fixed in the latest sources.
      
      
    4. login: "dgp"
    5. mimetype: "text/plain"
    6. resolution changed to: "Duplicate"
    7. status changed to: "Closed"
    8. subsystem changed to: "None"
    9. username: "dgp"