summaryrefslogtreecommitdiffstats
path: root/win/tkWinMenu.c
Commit message (Collapse)AuthorAgeFilesLines
* * Updated callers of Tcl_Utf* and Tcl_Regexp* APIs to reflect TIP 27dgp2002-01-171-4/+4
| | | | API changes (see Tcl Patch 471509). [Patch 471513]
* Fix the following bug: If you select an entry on a cascade menu (on Win32)drh2002-01-081-1/+13
| | | | | | | then the next time the parent menu is posted, the cascade entry appears active. Also, if you traverse to a disabled menu entry using keystrokes and press ENTER on the disabled entry, then that entry appears active the next time the menu is posted. The same patch fixes both problems.
* Change the behavior of menus on windows to be more consistent with nativedrh2001-11-271-2/+9
| | | | | windows menus. Disabled menu entries show their active background color on mouseover and keyboard traversal.
* implementation of TIP 63 (accepted) -compound option to menu items.macosx_8_4_branchpointtmh2001-10-121-23/+145
|
* minor cast fixes to prevent 64bit warningshobbs2001-09-211-4/+4
|
* * win/tkWinMenu.c (TkWinHandleMenuEvent): corrected reseting ofhobbs2001-04-041-2/+2
| | | | service mode to only occur when it was set. [Bug #220948]
* * win/tkWinMenu.c (DrawWindowsSystemBitmap): Use scratchDCericm2000-08-291-3/+3
| | | | | | | | | | | | for determining the source's logical coordinates. Patch from [Bug: 6134 (Markus Oberhumer)]. * win/tkWinMenu.c (SetDefaults): Compute the indicatorDimensions[] under Windows NT/2000 in the same way as under Windows 95/98. Patch from [Bug: 6134 (Markus Oberhumer)]. * win/tkWinFont.c (GetScreenFont): Added a memset() to pacify memory checkers. Patch from [Bug: 6134 (Markus Oberhumer)].
* * win/tkWinMenu.c (ReconfigureWindowsMenu): Added MF_GRAYED bitericm2000-07-281-2/+2
| | | | | for disabled menu entries, to ensure that those which are drawn by the system are shown grayed (such as entries on menubars) [Bug: 4372].
* * generic/tkFileFilter.c (AddClause): Cast to match function prototype.mo2000-07-061-4/+1
| | | | | | | | | | | | | | | * win/stubs.c (_XInitImageFuncPtrs): Add return value for function. * win/tkWinButton.c (buttonStyles, ButtonBindProc, ComputeStyle): Remove unused declarations. * win/tkWinColor.c (GetColorByName, GetColorByValue): Remove unused function declarations. * win/tkWinDialog.c (TrySetDirectory): Remove unused function declaration. * win/tkWinEmbed.c (TkWinEmbeddedEventProc): Cast to match function prototype. * win/tkWinMenu.c (winMenuMutex, MenuExitProc): Remove unused declaration. * win/tkWinWindow.c (StackWindow): Remove unused declaration. * win/tkWinWm.c (ConfigureEvent): Remove unused declaration. * win/tkWinX.c (winXMutex): Remove unused declaration. * xlib/ximage.c (XCreateBitmapFromData): Cast to match function prototype.
* * win/tkWinMenu.c (ReconfigureWindowsMenu): Added code to add theericm2000-05-161-2/+14
| | | | | MF_SEPARATOR bit for SEPARATOR_ENTRY menu items. This causes separator entries on the system menu to be drawn correctly [Bug: 5451].
* * doc/button.n: Added documentation for link relief.ericm2000-05-101-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * tests/button.test: Added tests for link relief for buttons. * generic/tk.h (TK_CONFIG_LINK_OK): Added definition of TK_RELIEF_LINK, TK_OPTION_LINK_OK and TK_CONFIG_LINK_OK. [RFE: 4348] * generic/tk3d.c: Added support for link relief. [RFE: 4348] * mac/tkMacButton.c (TkpDisplayButton): * unix/tkUnixButton.c (TkpDisplayButton): Added support for link relief. [RFE: 4348] * generic/tkOldConfig.c (Tk_ConfigureWidget): * generic/tkConfig.c (DoObjConfig): Added understanding of link relief, which is allowed only for widgets that have TK_OPTION_LINK_OK or TK_CONFIG_LINK_OK set for the "-relief" option. [RFE: 4348] * generic/tkButton.c: Added TK_OPTION_LINK_OK to "-relief" option for buttons. [RFE: 4348] * win/tkWinWm.c (EX_TRANSIENT_STYLE): Removed WS_EX_TOOLWINDOW style bit, so that transient windows have full-size titlebars (like the tk_getOpenFile dialog). * win/tkWinMenu.c (GetMenuSeparatorGeometry): Tweaked height requested for separator bars to be (linespace - (2*descent)) instead of just (linespace); this makes the separator occupy a more correct amount of vertical space. [Bug: 5303].
* * win/tkWinMenu.c: Corrected code that created separator items onericm2000-04-131-88/+83
| | | | | | | menus; originally, it requested that the system be responsible for drawing those items, so it would ignore configuration items like the widget background. Now, we draw the separators ourselves (as we do with every other kind of menu item already). [Bug: 1166].
* * win/tkWinDialog.c: added unicode-aware open/save file dialogshobbs2000-03-311-71/+25
| | | | | | | | | | | | | | | | | | | | | | | * win/tkWinFont.c (TkpFontPkgInit): move private ref to platformId to TkWinGetPlatformId * win/tkWinMenu.c (SetDefaults): moved private use of versionInfo to TkWinGetPlatformId and removed all code for (versionInfo.dwMajorVersion < 4) (== Win32s) * win/tkWinX.c: * win/tkWin32Dll.c: moved TkWinGetPlatformId to tkWinX.c * win/tkWinInit.c: added TkWinXInit to TkpInit to ensure that its called for static Windows shells. [Bug: 3647] * win/tkWinInt.h: * win/tkWinX.c: * win/tkWinDraw.c (SetUpGraphicsPort): * win/tkWinScrlbr.c (UpdateScrollbar): removed use of tkpIsWin32s * win/tkWinInt.h (TkWinDCState struct): added bkmode value * win/tkWinDraw.c (TkWinGetDrawableDC, et al): added support for properly transparent dashed lines on Windows. [Bug: 4617]
* 1999-09-14 Jeff Hobbs <hobbs@scriptics.com>hobbs1999-09-151-2/+2
| | | | * win/tkWinMenu.c: fix for stack overrun in GetTextFace [Bug: 909]
* * Merged 8.1 branch into the main trunkstanton1999-04-161-335/+478
|
* * win/tkWinMenu.c (TkpDestroyMenu): Changed so modalMenuPtr isstanton1999-02-041-1/+5
| | | | cleared when it is being destroyed.
* Replaced SCCS strings, fixed binary filesstanton1998-09-141-1/+1
|
* fixed bug in menus where bgerrors were not generated during menu callbacksstanton1998-08-041-118/+164
| | | | | fixed memory leak in menu code fixed Alt-key handling
* Initial revisionrjohnson1998-04-011-0/+2646