summaryrefslogtreecommitdiffstats
path: root/win/tkWinMenu.c
Commit message (Collapse)AuthorAgeFilesLines
...
* | | [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.
* | | Patch 2848897: Support the system keyboard cues setting on Windowspatthoyts2010-01-031-20/+77
| | | | | | | | | | | | | | | | | | | | | | | | | | | This patch by Anton Kovalenko adds support for the Windows system-wide UI setting that prevents accelerators being underlined unless the Alt key is pressed. Modified to support the system keyboard cues flag and to handle dynamic changes to the system parameters by the user.
* | | Highlight for cascade items in torn-off menus is incorrect on Windows.patthoyts2009-12-271-3/+5
| | | | | | | | | | | | 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]
* | | eliminate various gcc and msvc compiler warningsnijtmans2009-08-021-7/+5
| | |
* | | [Bug 2794778]: Calls to CallWindowProc can lead to other functionspatthoyts2009-05-211-4/+5
| | | | | | | | | | | | | | | overwriting the event strucure. Therefore preserve a local copy of the XKeyEvent while looping over the key events.
* | | Eliminate a few compiler warnings on mingwnijtmans2009-03-251-4/+4
| | | | | | | | | | | | spacing
* | | update comment to reflect realitypatthoyts2009-03-011-2/+3
| | |
* | | [Patch 2507419] fixes the image drawing bug on windows menus.patthoyts2009-02-231-29/+56
| | |
* | | - eliminate some unnessary type castsnijtmans2009-01-281-12/+12
| | | | | | | | | | | | | | | - some internal const decorations - spacing
* | | TIP 337dgp2008-12-091-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * generic/tkBind.c: Updated callers of Tcl_BackgroundError() * generic/tkCanvas.c: to use the new routine * generic/tkEntry.c: Tcl_BackgroundException() as appropriate. * generic/tkImgBmap.c: * generic/tkListbox.c: * generic/tkSelect.c: * generic/tkTextDisp.c: * generic/tkTextWind.c: * macosx/tkMacOSXHLEvents.c: * macosx/tkMacOSXMenu.c: * macosx/tkMacOSXMenus.c: * macosx/tkMacOSXScale.c: * macosx/tkMacOSXWindowEvent.c: * unix/tkUnixScale.c: * unix/tkUnixWm.c: * win/tkWinButton.c: * win/tkWinMenu.c: * win/tkWinScrlbr.c: * win/tkWinWm.c:
* | | Lots of small changes to make code more pretty and C89-like.dkf2008-11-081-2/+2
| | |
* | | Add "const" to many internalnijtmans2008-10-171-3/+3
|/ / | | | | | | | | | | | | | | const tables, so those will be put by the C-compiler in the TEXT segment in stead of the DATA segment. This makes those table sharable in shared libraries.
* | merge stable branch onto HEADdgp2007-12-131-1/+1
| |
* | Assorted minor cleanups.dkf2007-09-081-39/+39
| |
* | * win/tkWinMenu.c (TkWinHandleMenuEvent): improve handling tohobbs2007-06-091-16/+15
| | | | | | | | | | allow for unicode char menu indices and not use CharUpper on Tcl utf strings. [Bug #1734223]
* | Slight simplificationdkf2007-05-051-3/+4
| |
* | Reduce the number of warningsdkf2007-02-231-40/+33
| |
* | Less of that K&R or wrongly indented function header style!dkf2007-02-221-133/+130
| |
* | More warning squelching (mostly uninit variable warnings)dkf2007-01-121-20/+19
| |
* | Many minute fixes to reduce number of minor warnings from GCC.dkf2007-01-111-16/+17
| |
* | * 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-24/+34
| | | | | | | | handle unichar underlining correctly and safely. [Bug 1599877]
* | * win/tkWinMenu.c (TkpPostMenu): disable menu animation in menushobbs2006-09-211-2/+19
| | | | | | | | with images to avoid clipping bug. [Bug 1329198]
* | * win/tkWinMenu.c (TkWinMenuKeyObjCmd): get eventPtr after we knowhobbs2006-05-251-3/+3
| | | | | | | | the window is still alive. [AS bug 45987] [Bug 1236306]
* | * generic/tkMenu.c (TkSetWindowMenuBar): remove extra TkMenuInithobbs2006-04-051-70/+104
| | | | | | | | | | | | | | | | | | | | call that caused finalization panic. [Bug 1456851] * win/tkWinMenu.c (FreeID, TkpNewMenu, MenuExitHandler) (MenuThreadExitHandler, TkpMenuInit, TkpMenuThreadInit): rework Windows menu init/finalization to better respect per-process and per-thread boundaries. [Bug 1456851] (TkWinMenuKeyObjCmd): Do not error when unknown window is passed in. [Bug 1236306]
* | Fixes of other issues raised in [Bug 1353022]dkf2005-11-101-5/+7
| |
* | Getting more systematic about styledkf2005-08-101-944/+926
| | | | | | | | | | Also start removing _ANSI_ARGS_; the core's required ANSI C for a while now Also fix [Bug 1252702]; size_t doesn't mix with Tcl_GetStringFromObj
* | Fixed bug # 1189939chengyemao2005-04-281-3/+3
| |
* | Fixed a bug by adding code the check menu index in selection. This bug ↵chengyemao2005-01-181-4/+5
| | | | | | | | caused an access violation in an embedded menu testing when the mouse clicked the last pull-down menu entry
* | minor bug fix: should return 0 and indicate handled after processing ↵chengyemao2005-01-171-5/+7
| | | | | | | | WM_MENUSELECT message
* | Removed WM_UNINITMENUPOPUP that may cause compiling error in WINVER < 0x0500chengyemao2005-01-131-7/+2
| |
* | bug fix [637653]chengyemao2005-01-091-3/+3
| |
* | Bug fix in ReconfigureWindowsMenu. The bug caused a wrong geometry of a ↵chengyemao2005-01-091-9/+1
| | | | | | | | toplevel when created with a menu (bug# 1098625)
* | Modified for separating an embedded menu's window handler from a normal ↵chengyemao2005-01-041-5/+119
| | | | | | | | popup menu window's handler; improved an embedded menu display in Windows/XP
* | Modified to support embedded menu widgetchengyemao2004-12-281-1/+31
| |
* | * generic/tkInt.decls: Add decl for TkWinGetPlatformTheme.mdejong2004-09-211-25/+32
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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]
* | Make sure user_data is NULL everywhere it isn't set. [Bug 1021812]dkf2004-09-031-1/+2
| |
* | * macosx/tkMacOSXWm.c: Made use of Tcl_WrongNumArgs in a fewdgp2004-08-251-4/+2
| | | | | | | | * win/tkWinMenu.c: appropriate spots.
* | * win/tkWinMenu.c, unix/tkUnixMenu.c (DrawMenuEntryLabel): placehobbs2004-05-031-16/+12
| | | | | | | | | | 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):
* | disabled submenu fixvincentdarley2004-01-071-12/+23
| |
* | * win/tkWinMenu.c (ReconfigureWindowsMenu,mdejong2003-12-281-26/+43
| | | | | | | | | | | | | | | | | | | | | | | | | | TkWinHandleMenuEvent, DrawMenuEntryArrow): Fix drawing of a disabled 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):mdejong2003-12-281-2/+2
| | | | | | | | | | | | | | | | | | | | 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,mdejong2003-12-261-2/+14
| | | | | | | | | | | | | | | | | | 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,mdejong2003-12-261-13/+59
| | | | | | | | | | | | | | | | 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.