.
D 2012-09-21T07:23:33
J assignee msofer
J cmimetype text/plain
J comment Hello,\n\nBased\son\sTcl/Tk\s8.5.12.\n\nFor\sa\spersonal\sneed,\sI\supdated\sthe\sttk::notebook.tcl\sfile\sin\sorder\sto\shave\sa\svirtual\sevent\snotification\swhen\sa\sright\sclick\sappends\son\sa\snotebook\stab.\nThe\snew\svirtual\sevent\sgenerated\sis\s<<NotebookTabRightClick>>\swith\soptions/values\s-x\s#\s-y\s#\s-data\stab_index.\n\nAs\sI\sdid\snot\swant\sto\sre-compile\sthe\swish85.exe,\sI\sjust\smodified\sthe\snotebook.tcl\sfile\s(instead\sttkNotebook.c\sfile).\nThe\swaiting\sresult\sis\sOK.\n\nModification\sis:\nAdd:\n\s\sbind\sTNotebook\s<ButtonRelease-3>{\sttk::notebook::RightClick\s%W\s%x\s%y\s}\n\n\s\s#\sRightClick\s$nb\s$x\s$y\s--\n\s\s#ButtonRelease-3\sbinding\sfor\snotebook\swidgets.\n\s\s#Activate\sthe\stab\sunder\sthe\smouse\scursor,\sif\sany.\n\s\s#And\ssend\san\svirtual\sevent\n\s\s#\n\s\sproc\sttk::notebook::RightClick\s{w\sx\sy}\s{\n\s\s\s\sset\sindex\s[$w\sindex\s@$x,$y]\n\s\s\s\sif\s{$index\sne\s""}\s{\nActivateTab\s$w\s$index\n\s\s\s\s}\n\s\s\s\sevent\sgenerate\s$w\s<<NotebookTabRightClick>>\s-x\s$x\s-y\s$y\s-data\s$index\n\s\s}\nEnd\sAdd.\n\nOn\sa\stcl\sscript,\syou\sjust\shave\sto\sbind\sthis\svirtual\sevent:\n\s\sbind\s$nbk\s<<NotebookTabRightClick>>\s"notebook_right_click\s$nbk\s%d\s%x\s%y"\n\nThe\sbenefit\sof\sthis\smodification\sis\sto\shave\sthe\sway\sto\sopen\sa\spopup\smenu\son\sthe\snotebook\stab\son\sa\sright-clic,\sas\sit's\spossible\sin\ssome\sapplications.\n\nSo,\smaybe\syou\swould\sbe\sable\sto\sadd\sthis\sfeature\son\sa\snext\srelease.\n\nThank\syou\sand\ssorry\sfor\smy\senglish\sthat\sis\soften\s'frenchy'\n\nJean\sRomier\nPLANAR\sSAS\nFrance\n
J foundin TIP\sImplementation
J is_private 0
J priority 5\sMedium
J resolution None
J status Open
J submitter jromier
J subsystem 10.\sObjects
J title right\sclick\son\sttk::notebook\stab
J type Patch
K 3570367fffffffffffffffffffffffffffffffff
U jromier
Z 03980a6c8dec7a097dc174789f336f0c