Skip to content
Tcl Source Code History Of Ticket 3570146fffffffff
Login

History Of Ticket 3570146fffffffff

Artifacts Associated With Ticket 3570146fffffffff

  1. Ticket change [98d067f47d] (rid 110677) by jromier on 2012-09-20 15:59:57:

    1. assignee initialized to: "msofer"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      Hello,
      
      Based on Tcl/Tk 8.5.12.
      
      For a personal need, I updated the ttk::notebook.tcl file in order to have a virtual event notification when a right click appends on a notebook tab.
      The new virtual event generated is <<NotebookTabRightClick>> with options/values -x # -y # -data tab_index.
      
      As I did not want to re-compile the wish85.exe, I just modified the notebook.tcl file (instead ttkNotebook.c file).
      The waiting result is OK.
      
      Modification is:
      Add:
        bind TNotebook <ButtonRelease-3>{ ttk::notebook::RightClick %W %x %y }
      
        # RightClick $nb $x $y --
        #ButtonRelease-3 binding for notebook widgets.
        #Activate the tab under the mouse cursor, if any.
        #And send an virtual event
        #
        proc ttk::notebook::RightClick {w x y} {
          set index [$w index @$x,$y]
          if {$index ne ""} {
      ActivateTab $w $index
          }
          event generate $w <<NotebookTabRightClick>> -x $x -y $y -data $index
        }
      End Add.
      
      On a tcl script, you just have to bind this virtual event:
        bind $nbk <<NotebookTabRightClick>> "notebook_right_click $nbk %d %x %y"
      
      The benefit of this modification is to have the way to open a popup menu on the notebook tab on a right-clic, as it's possible in some applications.
      
      So, maybe you would be able to add this feature on a next release.
      
      Thank you and sorry for my english that is often 'frenchy'
      
      Jean Romier
      PLANAR SAS
      France
      
      
    4. foundin initialized to: "TIP Implementation"
    5. is_private initialized to: "0"
    6. priority initialized to: "5 Medium"
    7. resolution initialized to: "None"
    8. status initialized to: "Open"
    9. submitter initialized to: "jromier"
    10. subsystem initialized to: "10. Objects"
    11. title initialized to: "right click on ttk::notebook tab"
    12. type initialized to: "Patch"
  2. Add attachment "notebook.tcl" [f20a94e21c] (rid 109467) by jromier on 2012-09-20 22:59:58.

  3. Ticket change [b93e0df878] (rid 129103) by jromier on 2012-09-20 22:59:58:

    1. icomment:
      
      
      File Added - 453519: notebook.tcl
      
      
      
    2. login: "jromier"
    3. mimetype: "text/plain"
    4. username: "jromier"
  4. Ticket change [f8ea28601e] (rid 91616) by dkf on 2012-09-23 01:17:02:

    1. icomment:
      You should submit this to the Tk project tracker, as it is an alteration to the Tk toolkit and not to the Tcl language itself.
      
      
    2. login: "dkf"
    3. mimetype: "text/plain"
    4. username: "dkf"
  5. Ticket change [845cc96038] (rid 117543) by dkf on 2012-09-23 01:17:03:

    1. closedate changed to: "2012-09-22T18:17:03"
    2. closer changed to: "dkf"
    3. resolution changed to: "Invalid"
    4. status changed to: "Pending"
  6. Ticket change [5b5c3049fd] (rid 258117) by serhiy.storchaka on 2026-10-15 11:29:04:

    1. icomment: "Closing: this belongs to the Tk tracker."
    2. login: "serhiy.storchaka"
    3. mimetype: "text/x-fossil-wiki"
    4. status changed to: "Closed"