Skip to content
Tcl Source Code History Of Ticket 699642ffffffffff
Login

History Of Ticket 699642ffffffffff

Artifacts Associated With Ticket 699642ffffffffff

  1. Ticket change [b104f5852a] (rid 98077) by brianpass on 2003-03-07 21:39:35:

    1. assignee initialized to: "nobody"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      There's a discrepancy between the text widget 
      behaviour documented in
      the man pages and the Tk 8.4.1 implementation.  The 
      man page
      description of the bindings has :
      
      .IP [2]
      Double-clicking with mouse button 1 selects the word 
      under the mouse
      and positions the insertion cursor at the beginning of 
      the word.
      Dragging after a double click will stroke out a selection 
      consisting
      of whole words.
      .IP [3]
      Triple-clicking with mouse button 1 selects the line 
      under the mouse
      and positions the insertion cursor at the beginning of 
      the line.
      Dragging after a triple click will stroke out a selection 
      consisting
      of whole lines.
      
      However, text.tcl has :
      
      bind Text <Double-1> {
          set tk::Priv(selectMode) word
          tk::TextSelectTo %W %x %y
          catch {%W mark set insert sel.last}
      }
      
      bind Text <Triple-1> {
          set tk::Priv(selectMode) line
          tk::TextSelectTo %W %x %y
          catch {%W mark set insert sel.last}
      }
      
      For reasons we are all only too familiar with the 
      observed behaviour
      conforms with the code rather than the 
      documentation, and so the
      insert cursor is positioned at the end of the word or at 
      the
      beginning of the next line for double and triple clicks 
      respectively.
      
      Is anyone aware of any reasons why this cannot simply 
      be rectified
      with:
      
      bind Text <Double-1> {
          set tk::Priv(selectMode) word
          tk::TextSelectTo %W %x %y
          catch {%W mark set insert sel.first}
      }
      
      bind Text <Triple-1> {
          set tk::Priv(selectMode) line
          tk::TextSelectTo %W %x %y
          catch {%W mark set insert sel.first}
      }
      
      
      Regards,
      Brian Passingham, Passingham Software Ltd
      
      
    4. foundin initialized to: "None"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "brianpass"
    9. subsystem initialized to: "None"
    10. title initialized to:
      Tk 8.4.1 - bug in text widget multi-click behaviour
      
    11. type initialized to: "Bug"
  2. Ticket change [e9e615924d] (rid 104887) by hobbs on 2003-05-11 07:12:30:

    1. assignee changed to: "mdejong"
    2. icomment:
      Logged In: YES 
      user_id=72656
      
      Mo was the one to actually set the behavior last on 2002-02-
      14.  Note that this bug should have been created against Tk, 
      not Tcl.
      
      
    3. login: "hobbs"
    4. mimetype: "text/plain"
    5. priority changed to: "6"
    6. username: "hobbs"
  3. Ticket change [a43268bf90] (rid 110172) by dgp on 2003-11-13 08:43:03:

    1. foundin changed to: "obsolete: 8.4.1"
  4. Ticket change [060c39187d] (rid 89150) by vincentdarley on 2003-11-13 21:44:44:

    1. closedate changed to: "2003-11-13T14:44:44"
    2. closer changed to: "vincentdarley"
    3. foundin changed to: "obsolete: 8.5a0"
    4. icomment:
      Logged In: YES 
      user_id=32170
      
      Fixed.
      
      
      
    5. login: "vincentdarley"
    6. mimetype: "text/plain"
    7. resolution changed to: "Fixed"
    8. status changed to: "Closed"
    9. username: "vincentdarley"