summaryrefslogtreecommitdiffstats
path: root/win/tkWinMenu.c
Commit message (Collapse)AuthorAgeFilesLines
* Use the win32 Wide API in some more places. And some simplifications, since ↵jan.nijtmans2017-01-181-24/+22
| | | | we no longer support win95/98/ME
* Fixed bug [1192095] - Toplevel menus return incorrect active index ↵fvogel2016-03-271-1/+11
| | | | (cherrypicked [6efe4d5396])
* Fixed bug [487861ffff] - cascade with -accelerator looks wrong (cherrypicked ↵fvogel2016-03-201-6/+11
| | | | [282635ad52])
* Some bit of Windows 8.1 compatibility: See ↵jan.nijtmans2013-11-201-3/+3
|\ | | | | | | [http://msdn.microsoft.com/en-us/library/windows/desktop/dn302074.aspx]
| * Some bit of Windows 8.1 compatibility: See ↵jan.nijtmans2013-11-201-3/+3
| | | | | | | | [http://msdn.microsoft.com/en-us/library/windows/desktop/dn302074.aspx]
* | Convert all Tcl_SetResult calls to Tcl_SetObjResult calls. jan.nijtmans2013-01-281-1/+1
| | | | | | Convert Tcl_GetStringFromObj to Tcl_GetString when possible.
* | Unbreak windows problems with commit [961ae24a3f] as well.andreask2012-08-301-1/+1
| |
* | merge trunkdkf2012-08-081-72/+63
|\ \
* | | minor improvements to flag handlingdkf2012-07-311-2/+3
| | |
* | | a few more placesdkf2012-07-241-8/+10
|/ /
* | [Bug 3511806] Compiler checks too earlyjan.nijtmans2012-04-021-1/+1
|\ \ | |/ | | (autoconf still to be run!)
| * [Bug 3511806] Compiler checks too earlyjan.nijtmans2012-03-301-1/+1
| |\ | | | | | | (autoconf still to be run!)
* | \ 3235256 - Keep menu entry IDs out of system values. Thanks Colin McDonald.dgp2011-12-221-15/+21
|\ \ \ | |/ /
| * | 3235256 - Keep menu entry IDs out of system values. Thanks Colin McDonald.dgp2011-12-221-15/+21
| |\ \ | | |/
| | * 3235256 - Keep menu entry IDs out of system values. Thanks Colin McDonald.dgp2011-12-221-28/+25
| | |
* | | [Bug 3388350] mingw64 compiler warningsjan.nijtmans2011-08-161-4/+4
|\ \ \ | |/ /
| * | [Bug 3388350] mingw64 compiler warningsjan.nijtmans2011-08-161-4/+4
| | |
| * | [Bug 3388350] mingw64 compiler warningsjan.nijtmans2011-08-161-4/+4
| |\ \ | | |/
| | * [Bug 3388350] mingw64 compiler warningsjan.nijtmans2011-08-161-2/+2
| | |
* | | Purge RCS Keywordsdgp2011-06-081-2/+0
|\ \ \ | |/ /
| * | Purge RCS Keywords.dgp2011-06-081-2/+0
| |\ \ | | |/
| | * Purge RCS Keywords.dgp2011-06-081-2/+0
| | |
* | | [Bug #3239768] tk8.4.19 (and later) WIN32 menu font support.jan.nijtmans2011-03-241-5/+19
|\ \ \ | |/ /
| * | [Bug #3239768] tk8.4.19 (and later) WIN32 menu font support.jan.nijtmans2011-03-241-7/+21
| |\ \ | | |/
| | * [Bug #3239768] tk8.4.19 (and later) WIN32 menu font supportjan.nijtmans2011-03-241-6/+20
| | |
| | * * generic/tkMenuDraw.c (TkPostSubmenu): Fix reposting of submenu inhobbs2009-09-141-4/+21
| | | | | | | | | | | | | | | | | | | | | * win/tkWinMenu.c (TkWinHandleMenuEvent): torn off Windows menu. [Bug 873613] (DrawMenuEntryArrow): Draw Win menu arrow after being torn off. [Bug 873608]
| | * * win/tkWinMenu.c (TkWinHandleMenuEvent): improve handling tohobbs2007-06-091-16/+19
| | | | | | | | | | | | | | | allow for unicode char menu indices and not use CharUpper on Tcl utf strings. [Bug #1734223]
| | * * unix/tkUnixMenu.c (DrawMenuUnderline): bound Tcl_UtfAtIndex usagehobbs2006-11-241-3/+3
| | | | | | | | | | | | * tests/menu.test (menu-36.1): [Bug 1599877]
| | * * win/tkWinMenu.c (TkWinHandleMenuEvent, DrawMenuUnderline):hobbs2006-11-241-41/+48
| | | | | | | | | | | | handle unichar underlining correctly and safely. [Bug 1599877]
| | * * win/tkWinMenu.c (TkpPostMenu): disable menu animation in menushobbs2006-09-211-4/+21
| | | | | | | | | | | | with images to avoid clipping bug. [Bug 1329198]
| | * * win/tkWinMenu.c (FreeID, TkpNewMenu, MenuExitHandler)hobbs2006-04-051-29/+59
| | | | | | | | | | | | | | | | | | (MenuThreadExitHandler, TkpMenuInit, TkpMenuThreadInit): rework Windows menu init/finalization to better respect per-process and per-thread boundaries.
| | * * generic/tkInt.h: Backport of shutdown safety mods from the HEADdavygrvy2004-10-271-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * generic/tkMenu.c: dating from 2003-12-21 * generic/tkUtil.c: * generic/tkWindow.c: * mac/tkMacButton.c: * unix/tkUnixEvent.c: * win/tkWin32Dll.c: * win/tkWinEmbed.c: * win/tkWinMenu.c: * win/tkWinX.c:
| | * * generic/tkInt.decls: Add decl for TkWinGetPlatformTheme.mdejong2004-09-231-49/+142
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It is only defined under Win32. * generic/tkIntPlatDecls.h: Regen. * generic/tkStubInit.c: Regen. * win/tkWinInt.h: Define TK_THEME_WIN_CLASSIC and TK_THEME_WIN_XP. * win/tkWinMenu.c (DrawMenuEntryAccelerator, DrawMenuEntryLabel): Draw a disabled 3D text highlight for the accelerator only with the Win95/98 look. Same goes for the menu entry text. * win/tkWinX.c (TkWinGetPlatformId, TkWinGetPlatformTheme): Automatically detect the Windows theme in use and return either TK_THEME_WIN_CLASSIC or TK_THEME_WIN_XP when the TkWinGetPlatformTheme function is invoked. [Patch 866194] * win/tkWinMenu.c: only provide a submenu handle when the MF_POPUP flag is given, fixing a recently-introduced crash when submenus are disabled. Also better error checking for this sort of situation in the future. * win/tkWinMenu.c (ReconfigureWindowsMenu): Fix drawing of a disabled (TkWinHandleMenuEvent, DrawMenuEntryArrow): cascade menu arrow. Tk was displaying a disabled cascade menu arrow in black instead of gray. This was caused by a bug in the Win32 code for user drawn menu items. The fix is to avoid telling Windows that the menu item is a cascade type and then draw the gray arrow bitmap on our own. [Patch 865842] * win/tkWinMenu.c (DrawWindowsSystemBitmap): Fix a strange Win32 bug where the logical coordinates returned by a call to DPtoLP are wrong the first time a menu is posted. This bug manifested itself by drawing the bitmap in the wrong place in a menu. The fix was to pass the newly created DC instead of the DC from the window. * win/tkWinMenu.c (DrawMenuEntryAccelerator): (DrawMenuEntryLabel): When drawing the label text and accelerator text for a disabled menu entry be sure to draw a 3D highlight. The only exception to this is when a disabled menu entry is highlighted, in that case do not draw a 3D hightlight. * win/tkWinMenu.c (DrawMenuEntryAccelerator, DrawMenuEntryArrow): Move the unused menu arrow drawing code in DrawMenuEntryAccelerator into a new function named DrawMenuEntryArrow. This makes no functional change but it will make it easier to fix things in the future.
| | * * win/tkWinMenu.c, unix/tkUnixMenu.c (DrawMenuEntryLabel): placehobbs2004-05-031-1/+15
| | | | | | | | | | | | | | | images of compound menu entries in indicator space if not a radio of checkbutton. [Bug #756952] (eserte)
| | * * win/tkWinX.c: fix drawing of unicode chars in menuhobbs2004-05-031-3/+4
| | | | | | | | | | | | | | | * win/tkWinInt.h (TkWinProcs): titles. [Bug #904371] (riefenstahl) * win/tkWinMenu.c (ReconfigureWindowsMenu):
| * | [Bug 2956548] TkpButtonSetDefaults only initializes one button typenijtmans2010-03-121-9/+7
| | | | | | | | | | | | | | | Fix various gcc warnings, all backported from Tk 8.6 VC6++ does not have SPI_SETKEYBOARDCUES
| * | Patch 2848897: Support the system keyboard cues setting on Windowspatthoyts2010-01-031-20/+77
| | | | | | | | | | | | Backported this patch from HEAD (kovalenko, thoyts)
| * | Highlight for cascade items in torn-off menus is incorrect on Windows.patthoyts2009-12-271-4/+7
| | | | | | | | | | | | Applied patch from [Bug 2879927].
| * | * generic/tkMenuDraw.c (TkPostSubmenu): Fix reposting of submenu inhobbs2009-09-141-4/+21
| | | | | | | | | | | | | | | | | | | | | * win/tkWinMenu.c (TkWinHandleMenuEvent): torn off Windows menu. [Bug 873613] (DrawMenuEntryArrow): Draw Win menu arrow after being torn off. [Bug 873608]
| * | [Bug 2794778]: backported fix for keyboard transversal of the menus on Windows.patthoyts2009-05-211-4/+5
| | |
| * | [Patch 2507419] fix menu image display issue on windowspatthoyts2009-02-231-29/+56
| | |
* | | Remove casts from uses of ckalloc/ckfree/... now that Tcl declares them to bedkf2011-03-121-5/+5
| | | | | | | | | using useful casts internally.
* | | Revise Tcl_Panic() calls ending with a newline removing the newline, because ↵nijtmans2010-11-191-6/+6
| | | | | | | | | | | | Tcl_Panic() outputs a final newline already
* | | [FRQ 2965056]: Windows build with -DUNICODEnijtmans2010-11-031-12/+6
| | |
* | | [FRQ 2965056]: Windows build with -DUNICODEnijtmans2010-10-111-4/+3
| | |
* | | [FRQ 2965056]: Windows build with -DUNICODEnijtmans2010-10-061-42/+36
| | |
* | | Move definitions of WINVER/_WIN32_WINNT to one place, now that we only ↵nijtmans2010-09-131-3/+1
| | | | | | | | | | | | support Win2000+
* | | Make compilable with -DUNICODE, or mark files with a TODO which are not done ↵nijtmans2010-09-101-1/+7
| | | | | | | | | | | | | | | | | | yet. tkWinPort.h: mingw/cygwin fixes: <tchar.h> should always be included here.
* | | CONSTify TkCopyAndGlobalEval, TkpSetMainMenubar,nijtmans2010-05-101-3/+3
| | | | | | | | | | | | | | | TkpMenuNotifyToplevelCreate, and TkSetWindowMenuBar Bring Tk_CreateBinding doc and signature (param name) in line.
* | | fix more gcc warnings: missing initializernijtmans2010-01-221-3/+1
| | | | | | | | | | | | | | | | | | | | | Eliminate use of __argc and __argv for CYGWIN Make cygwin configuration error into a warning: CYGWIN compilation works although there still are test failures.