Artifacts Associated With Ticket 3570478fffffffffffffffffffffffffffffffff
Ticket change [ff7737b6af] (rid 108759) by jromier on 2012-09-21 11:54:38:
- assignee initialized to: "msofer"
- cmimetype initialized to: "text/plain"
- 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 - foundin initialized to: "TIP Implementation"
- is_private initialized to: "0"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "jromier"
- subsystem initialized to: "10. Objects"
- title initialized to: "right click on ttk::notebook tab"
- type initialized to: "Patch"
Ticket change [f1edb1a5e7] (rid 109443) by jromier on 2012-09-21 18:54:43:
- icomment:
File Added - 453557: notebook.tcl
- login: "jromier"
- mimetype: "text/plain"
- username: "jromier"
- icomment:
Add attachment "notebook.tcl" [406ac1eb59] (rid 121623) by jromier on 2012-09-21 18:54:43.
Ticket change [704da959c1] (rid 100450) by dkf on 2012-09-23 01:14:49:
- closedate changed to: "2012-09-22T18:14:49"
- closer changed to: "dkf"
- icomment:
allow_comments - 1 Dupe of 3570146
- login: "dkf"
- mimetype: "text/plain"
- resolution changed to: "Duplicate"
- status changed to: "Closed"
- username: "dkf"