summaryrefslogtreecommitdiffstats
path: root/library/menu.tcl
Commit message (Collapse)AuthorAgeFilesLines
* Add "break" to "bind Menu <KeyPress>" in library/menu.tcl. Fixes bug ↵bug_adc028c8d0kjnash2017-06-131-0/+1
| | | | adc028c8d0.
* Fixed [fa32290898] - Can't dismiss ttk::menubutton menu until mouse has ↵fvogel2016-08-191-0/+4
| | | | hovered over it
* Remove various unnecessary "global tcl_platform" occurrences, which are no ↵jan.nijtmans2015-08-051-9/+2
| | | | | longer used. Add "Fit To Screen Width" menu entry to Windows (and android) console menu. Ported from androwish.
* Fixed bug [1236306fff] - TraverseToMenu error with alt binding to toplevel ↵fvogel2015-07-281-1/+1
|\ | | | | | | destroy
| * Fixed bug [1236306fff] - TraverseToMenu error with alt binding to toplevel ↵fvogel2015-07-281-1/+1
| | | | | | | | destroy
| * Small patch for menubtton demo on OS X; thanks to Marc CullerKevin Walzer2015-04-091-0/+6
| |
* | Small patch for menubtton demo on OS X; thanks to Marc CullerKevin Walzer2015-04-091-0/+6
| |
* | Merged. Ticket [3279221]: Fixed setup of popup menu to preventandreask2014-02-061-0/+1
|\ \ | |/ | | | | immediate disappearance due to an event race.
| * Ticket [3279221]: Fixed setup of popup menu to prevent immediateandreask2014-02-061-0/+1
| | | | | | | | disappearance due to an event race.
* | [Bug 3608074]: Add <<Invoke>> bindings to Button's, Listbox and Menu.jan.nijtmans2013-03-271-0/+7
|\ \ | |/ | | Document <<Invoke>>, <<ThemeChanged>>, <<EnteredChild>> (ttk_pandedwindow only) and <<Increment/Decrement>> (ttk_spinbox only)
| * Add <<Invoke>> bindings to button, listbox and menu, for consistancy with ttk.jan.nijtmans2013-03-201-0/+7
| |
* | Generate -errorcode values to go with errors. Generate messages and postscriptdkf2012-08-271-6/+5
| | | | | | using Tcl_Obj API, not the string result API.
* | 8 new virtual events (doc not updated yet)jan.nijtmans2012-08-091-2/+2
| |
* | [Bug 3555644]: Better use of virtual events.jan.nijtmans2012-08-091-2/+2
|/
* [Bug 3534137]: $tcl_platform(platform) != [tk windowingsystem]jan.nijtmans2012-06-101-1/+1
|\
| * [Bug 3534137]: $tcl_platform(platform) != [tk windowingsystem]jan.nijtmans2012-06-101-1/+1
| |
* | If tk.dll loaded in cygwin, don't use the win32 file dialogsjan.nijtmans2012-05-051-58/+54
|\ \ | |/
| * [Bug 2768586]: Only do menu correction on Windows < Win7jan.nijtmans2012-05-051-73/+85
| |\ | | | | | | If tk.dll loaded in cygwin, don't use the win32 file dialogs
* | \ [Bug 2768586]: Menu posting problem on dual monitorsjan.nijtmans2012-05-041-9/+8
|\ \ \ | |/ /
| * | [Bug 2768586]: Menu posting problem on dual monitorsjan.nijtmans2012-05-041-9/+8
| |/
* | Purge RCS Keywords.dgp2011-06-081-2/+0
|\ \ | |/
| * Purge RCS Keywords.dgp2011-06-081-2/+0
| |
| * Backport from HEAD of Aqua changes from 2007-10-12 to 2007-11-09das2007-11-091-6/+15
| |
| * * library/bgerror.tcl: Updates to use Tcl 8.4 features. [Patch ↵dgp2006-01-251-117/+100
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1237759] * library/button.tcl: * library/choosedir.tcl: * library/clrpick.tcl: * library/comdlg.tcl: * library/console.tcl: * library/dialog.tcl: * library/entry.tcl: * library/focus.tcl: * library/listbox.tcl: * library/menu.tcl: * library/msgbox.tcl: * library/palette.tcl: * library/panedwindow.tcl: * library/safetk.tcl: * library/scale.tcl: * library/scrlbar.tcl: * library/spinbox.tcl: * library/tearoff.tcl: * library/text.tcl: * library/tk.tcl: * library/tkfbox.tcl: * library/xmfbox.tcl:
| * * library/menu.tcl (::tk::PostOverPoint): correct menu post nearhobbs2005-12-011-6/+10
| | | | | | | | bottom of screen on Windows. [Bug 1353416]
| * change tk_popup to have sticky menustmh2005-05-271-2/+5
| |
| * * library/menu.tcl (::tk::MbPost): make menubuttons that posthobbs2004-02-041-2/+11
| | | | | | | | above or below reverse direction when not enough space is available.
* | [Bug # 3306909]: tk_popup placement on Windows Vista can be incorrect.patthoyts2011-06-011-13/+24
| | | | | | | | | | | | | | | | | | When posting menus near the bottom of the screen on Windows versions newer than XP the menu may be placed incorrectly. This is due to code in PostOverPoint that corrects an error in the XP window manager. This fix is no longer required for Vista and Windows7. Reported-by: Harald Oehlmann <oehhar@users.sourceforge.net> Signed-off-by: Pat Thoyts <patthoyts@users.sourceforge.net>
* | [Bug 3294593] fix menu unposting under some conditions.patthoyts2011-04-301-5/+4
| | | | | | | | | | | | | | | | Moving the pointer off a cascaded submenu over the application window and then back to the parent menu window on a non-cascade entry would leave the submenu displayed when it should be unposted. This patch solves this issue. Suggested-by: Schelte Bron <sbron@users.sourceforge.net> Signed-off-by: Pat Thoyts <patthoyts@users.sourceforge.net>
* | [Bug 2949774]: cascade menus should popdown ofter loosing the pointer.patthoyts2011-04-301-5/+12
| | | | | | | | | | | | | | | | | | | | When the pointer moves to another entry from a cascade entry the sub-menu should popdown. This is how other menus on X11 work today. This effect will not be used if the user has configured ClickToFocus to maintain the previous Tk menu effects. (backported from trunk) Signed-off-by: Pat Thoyts <patthoyts@users.sourceforge.net>
* | TIP 360: Make Tk menu activation follow mouse movements.patthoyts2010-01-091-4/+21
| |
* | * library/menu.tcl (::tk::MbPost): fix error thrown in y positiondas2009-04-101-3/+3
| | | | | | | | computation with indicatoron.
* | a final fixtmh2008-09-091-8/+8
| |
* | add global commands for tk_strictMotif variabletmh2008-09-091-4/+4
| |
* | fix typo added to menu.tcltmh2008-08-271-2/+2
| |
* | [bug 1023955 : don't flip cursors on menus to arrow pointer.tmh2008-08-251-7/+15
| |
* | merge stable branch onto HEADdgp2007-12-131-1/+1
| |
* | * macosx/tkMacOSXButton.c: sync formatting, whitespace, copyrightdas2007-11-091-1/+2
| | | | | | | | | | | | | | | | | | | | * macosx/tkMacOSXDialog.c: with core-8-4-branch. * macosx/tkMacOSXMenus.c: * macosx/tkMacOSXWm.c: * xlib/xgc.c * library/bgerror.tcl: * library/console.tcl: * library/menu.tcl:
* | * library/menu.tcl: correct handling of menubutton "active"das2007-11-081-6/+14
| | | | | | | | state on Aqua to match that of buttons.
* | * library/menu.tcl (::tk::MenuUnpost): remove leftover ] fromhobbs2005-10-161-2/+2
| | | | | | | | string equal mods of 2005-07-25. (sowadsky)
* | Apply some of the changes suggested in [Patch 1237759]dkf2005-07-251-121/+109
| |
* | change tk_popup to have sticky menustmh2005-05-271-2/+5
| |
* | * doc/menubutton.n:hobbs2004-02-041-2/+11
| | | | | | | | | | * library/menu.tcl (::tk::MbPost): make menubuttons that post above or below reverse direction when not enough space is available.
* | Windows menu popup location fixvincentdarley2003-06-261-3/+7
|/
* *** macosx-8-4-branch merged into the mainline [tcl patch #602770] ***macosx_8_4_merge_2002_08_31_trunkdas2002-08-311-8/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * generic/tk.decls: * generic/tkInt.decls: added new "aqua" specific entries to the stubs tables. Changed all "unix" entries to "x11" to allow us to distinguish and build both "aqua" on MacOSX and "x11" on MacOSX. * generic/tk.h: added a #ifnded RESOURCE_INCLUDED so that tk.h can be passed to the resource compiler. * generic/tkCmds.c (Tk_TkObjCmd): added [tk windowingsystem] subcommand: returns "x11" when running on X11, "win32" on Windows, "classic" on MacOS9 and "aqua" on MacOSX Aqua (i.e. Carbon) * generic/tkFont.c (TkFontGetFirstTextLayout): new private function returning the first chunk of a Tk_TextLayout, i.e. until the first font change on the first line (or the whole first line if there is no such font change). * generic/tkMain.c: made Tcl_ThreadDataKey static * library/demos/puzzle.tcl: fixed button metrics for aqua * tests/cursor.test: check for presence of arrow cursor instead of heart cursor * xlib/xcolors.c: changed xColors static initialization to more standard C * macosx/Wish.pbproj/jingham.pbxuser (new): * macosx/Wish.pbproj/project.pbxproj (new): project for Apple's ProjectBuilder IDE. * macosx/Makefile (new): simple makefile for building the project from the command line via the ProjectBuilder tool 'pbxbuild'. * macosx/tkMacOSXAppInit.c (new): macosx specific AppInit looking for a AppMain.tcl file in its bundled Resources/Scripts folder. If present, argv[1] is set to that file and the Scripts folder is added to the auto_path. This allows tk apps to embed scripts within their bundle directory structure. * macosx/tkMacOSXInit.c (new): macosx adapted version of tkUnixInit.c: we initialize & cache the Carbon native encoding (e.g. 'macRoman') and try to find the tk script library files inside Tk packaged as a framework. * macosx/tkMacOSXNotify.c (new): new macosx specific merged Carbon/select-based notifier. * macosx/tkMacOSXEvent.c (new): * macosx/tkMacOSXEvent.h (new): * macosx/tkMacOSXKeyEvent.c (new): * macosx/tkMacOSXMouseEvent.c (new): * macosx/tkMacOSXWindowEvent.c (new): new macosx specific event handling functionality. * macosx/tkMacOSX.h (new): * macosx/tkMacOSXBitmap.c (new): * macosx/tkMacOSXButton.c (new): * macosx/tkMacOSXClipboard.c (new): * macosx/tkMacOSXColor.c (new): * macosx/tkMacOSXConfig.c (new): * macosx/tkMacOSXCursor.c (new): * macosx/tkMacOSXDefault.h (new): * macosx/tkMacOSXDialog.c (new): * macosx/tkMacOSXDraw.c (new): * macosx/tkMacOSXEmbed.c (new): * macosx/tkMacOSXFont.c (new): * macosx/tkMacOSXHLEvents.c (new): * macosx/tkMacOSXInt.h (new): * macosx/tkMacOSXKeyboard.c (new): * macosx/tkMacOSXMenu.c (new): * macosx/tkMacOSXMenubutton.c (new): * macosx/tkMacOSXMenus.c (new): * macosx/tkMacOSXPort.h (new): * macosx/tkMacOSXRegion.c (new): * macosx/tkMacOSXScale.c (new): * macosx/tkMacOSXScrlbr.c (new): * macosx/tkMacOSXSubwindows.c (new): * macosx/tkMacOSXTest.c (new): * macosx/tkMacOSXUtil.c (new): * macosx/tkMacOSXUtil.h (new): * macosx/tkMacOSXWm.c (new): * macosx/tkMacOSXWm.h (new): * macosx/tkMacOSXXStubs.c (new): macosx ports of classic mac Tk implementation in tk/mac. * macosx/tkMacOSXSend.c (new): only send to local interp implemented currently. * macosx/tkMacOSXDebug.h (new): * macosx/tkMacOSXDebug.c (new): new macosx specific functions for debugging MacOS events, regions, etc. * macosx/tkAboutDlg.r (new): * macosx/tkMacOSXApplication.r (new): * macosx/tkMacOSXCursors.r (new): * macosx/tkMacOSXLibrary.r (new): * macosx/tkMacOSXMenu.r (new): * macosx/tkMacOSXResource.r (new): * macosx/tkMacOSXXCursors.r (new): * macosx/tclets.r (new): sources for Rez resource compiler. * macosx/Wish.icns (new): Wish application icon. * generic/tk.h: * generic/default.h: * generic/tkBind.c: * generic/tkCmds.c: * generic/tkGrab.c: * generic/tkPointer.c: * generic/tkPort.h: * generic/tkSelect.c: * generic/tkStubLib.c: * generic/tkTest.c: * generic/tkText.c: * generic/tkWindow.c: * unix/tkUnix3d.c: * xlib/xgc.c: * xlib/X11/X.h: * xlib/X11/Xlib.h: * xlib/X11/Xutil.h: added #includes and #ifdefs for macosx * library/bgerror.tcl: * library/button.tcl: * library/console.tcl: * library/dialog.tcl: * library/entry.tcl: * library/listbox.tcl: * library/menu.tcl: * library/msgbox.tcl: * library/scrlbar.tcl: * library/spinbox.tcl: * library/text.tcl: * library/tk.tcl: * library/demos/menu.tcl: * library/demos/menubu.tcl: * library/demos/widget: check [tk windowingsystem] instead of and/or in addition to $tcl_platform(platform). * generic/tkInt.h: * mac/tkMacBitmap.c: * mac/tkMacWm.c: added missing CONSTification * generic/tkIntDecls.h: * generic/tkIntPlatDecls.h: * generic/tkIntXlibDecls.h: * generic/tkPlatDecls.h: * generic/tkStubInit.c: regen
* * library/menu.tcl: corrected menus from being posted offscreenhobbs2002-06-221-36/+48
| | | | on Windows. [Bug #464451] (darley)
* fix for bug report #530212 "Bad Window Path Name in tkMenuFind"jenglish2002-06-111-5/+3
|
* When a menu is torn off, a new "clone" menu is created which is an exactdrh2001-11-271-2/+4
| | | | | | | | copy of the original. The copy even includes the tearoff bar, though the tearoff bar is not displayed. But even though it wasn't displayed, the tearoff bar on the tearoff menu could be visited using keyboard traversal. This change makes it so that the (invisible) tearoff bar of tearoff menus is no longer visited on keyboard traversal.
* * library/menu.tcl: corrected menu traversal code on Unix tohobbs2001-11-161-11/+10
| | | | better handle entering cascades. [Patch #481219]
* Merged changes from feature branch dgp-privates-into-namespace,dgp2001-08-011-237/+237
| | | | | implementing TIP 44. All Tk commands and variables matching tk[A-Z]* are now in the ::tk namespace.