summaryrefslogtreecommitdiffstats
path: root/win/tkWinX.c
Commit message (Collapse)AuthorAgeFilesLines
* [Bug 3388350] mingw64 compiler warningsjan.nijtmans2011-08-161-6/+6
|\
| * [Bug 3388350] mingw64 compiler warningsjan.nijtmans2011-08-161-1/+1
| |
| * [Bug 3388350] mingw64 compiler warningsjan.nijtmans2011-08-131-2/+2
| |
* | Purge RCS Keywords.dgp2011-06-081-2/+0
|\ \ | |/
| * Purge RCS Keywords.dgp2011-06-081-2/+0
| |
| * SEH-emulation for AMD64jan.nijtmans2011-03-111-1/+1
| | | | | | | | | | mingw-w64 does not accept _WIN32_IE < 0x0501 Merged --cherrypick from core-8-5-branch (2010-12-13, f4ecadb40d) remove conflicting definition of timezone struct
| * * win/tkWinInt.h: remove CS_CLASSDC (not recommended for any apps now)hobbs2007-12-051-15/+1
| | | | | | | | | | | | | | * win/tkWinX.c: and simplify WNDCLASS to one style. * win/tkWinWm.c: Reduce wrapper update for exStyle to toolwindow change only and set WS_EX_LAYERED as sticky (once set on a window, do not remove it) to reduce alpha transition flicker.
| * * win/tkWinKey.c: Add WM_UNICHAR window message support (used byhobbs2006-08-301-1/+43
| | | | | | | | * win/tkWinX.c: virtual keyboard apps). [Bug 1518677] (petasis)
| * * win/tkWinX.c (TkWinXInit): init default keyboard charsethobbs2006-04-051-8/+21
| | | | | | | | correctly. [Bug 1374119] (pajas)
| * * win/tkWinX.c (GenerateXEvent): correct %A translation onhobbs2005-02-281-8/+11
| | | | | | | | MouseWheel [Bug 1118340]
| * * generic/tkInt.h: Backport of shutdown safety mods from the HEADdavygrvy2004-10-271-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | * 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:
| * * win/tkWinInt.h (TkWinDisplayChanged): added declhobbs2004-09-231-68/+106
| | | | | | | | | | | | | | | | * win/tkWinX.c (TkWinDisplayChanged, TkpOpenDisplay): Correctly * win/tkWinWm.c (InvalidateSubTreeDepth, WmProc): handle color and screen resolution changes. Tested for 16/24/32 bpp changes on XP. May need more fixes for 8bpp switch, use of special colormaps, or other special palette handling cases. [Bug 223689]
| * * generic/tkInt.decls: Add decl for TkWinGetPlatformTheme.mdejong2004-09-231-1/+56
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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/tkWinX.c: fix drawing of unicode chars in menuhobbs2004-05-031-1/+5
| | | | | | | | | | * win/tkWinInt.h (TkWinProcs): titles. [Bug #904371] (riefenstahl) * win/tkWinMenu.c (ReconfigureWindowsMenu):
| * * generic/tkClipboard.c: Move TkClipCleanup from tkClipboard.chobbs2004-05-031-1/+49
| | | | | | | | | | | | | | | | | | * mac/tkMacXStubs.c: to being implemented in a platform * macosx/tkMacOSXXStubs.c: specific manner. The cleanup order was * unix/tkUnixEvent.c: bad at least on Windows, where we * win/tkWinX.c: reset/cleared display info that was still needed for the clipboard to render. [Bug #939389, #822002, #732662]
* | Cross-compile support for Win and UNIX (backported)nijtmans2010-12-131-2/+2
| |
* | * win/tkWinX.c (HandleIMEComposition): [Bug 2992129]: Ensure that alldkf2010-05-201-1/+5
| | | | | | | | | | places that generate key events zero them out first; Tk relies on that being true for the generic parts of the fix for Bug 1924761.
* | [Bug 2956548] TkpButtonSetDefaults only initializes one button typenijtmans2010-03-121-12/+11
| | | | | | | | | | Fix various gcc warnings, all backported from Tk 8.6 VC6++ does not have SPI_SETKEYBOARDCUES
* | Fix [Bug 1373712] and [Bug 1924761].dkf2010-01-021-1/+2
| |
* | merge stable branch onto HEADdgp2007-12-131-1/+1
| |
* | * win/tkWinInt.h: remove CS_CLASSDC (not recommended for any apps now)hobbs2007-12-051-15/+1
| | | | | | | | | | | | | | * win/tkWinX.c: and simplify WNDCLASS to one style. * win/tkWinWm.c: Reduce wrapper update for exStyle to toolwindow change only and set WS_EX_LAYERED as sticky (once set on a window, do not remove it) to reduce alpha transition flicker.
* | Many minute fixes to reduce number of minor warnings from GCC.dkf2007-01-111-11/+13
| |
* | * win/tkWinKey.c: Add WM_UNICHAR window message support (used byhobbs2006-08-301-1/+43
| | | | | | | | * win/tkWinX.c: virtual keyboard apps). [Bug 1518677] (petasis)
* | * win/tkWinX.c (TkWinXInit): init default keyboard charsethobbs2006-04-051-2/+15
| | | | | | | | correctly. [Bug 1374119] (pajas)
* | More fixes (mostly getting rid of excess spaces)dkf2005-12-021-221/+235
| |
* | Fix problems in last commitdkf2005-12-021-3/+3
| |
* | ANSIficationdkf2005-12-021-556/+573
| |
* | Fix for [Bug 1216006]Joe Mistachkin2005-08-211-2/+2
| |
* | * win/tkWinX.c: Define _WIN32_WINNT with NT SP 3 datamdejong2005-07-231-3/+3
| | | | | | | | | | | | | | to fix compiler error because SendInput was not defined. The new msys_mingw7 release is now needed to compile the HEAD with mingw gcc. [Bug 1210712]
* | * win/tkWinX.c (Tk_ResetUserInactiveTime): cast to squelchhobbs2005-06-011-8/+8
| | | | | | | | compiler warning.
* | Partial implementation of TIP#245; thanks Reinhard!dkf2005-05-271-1/+95
| |
* | correct xany -> xkey typo from 2005-02-28 commithobbs2005-03-041-2/+2
| |
* | * win/tkWinX.c (GenerateXEvent): correct %A translation onhobbs2005-02-281-6/+9
| | | | | | | | MouseWheel [Bug 1118340]
* | Modified to handle a wide-character title string of a toplevelchengyemao2005-01-311-1/+3
| |
* | Added TK_INFO message for use in an embedded window attachment protocol; ↵chengyemao2005-01-161-1/+2
| | | | | | | | modified TkpUseWindow to allow to attach to a legacy container with a warning; modified some return values of messages from an embedded window to differentiate a case of unprocessed
* | Implemented TK_STAT message to support {wm state} for embedded windowchengyemao2005-01-071-1/+2
| |
* | Modified to support embedded menu widgetchengyemao2004-12-281-1/+2
| |
* | implemented overrideredirect for an embedded; corrected incorrect frame ↵chengyemao2004-12-201-1/+2
| | | | | | | | upper left x and y of an embedded toplevel
* | featrue implementation of Tk container and embedded including TK_MOVEWINDOW, ↵chengyemao2004-12-201-2/+2
| | | | | | | | TK_ICONIFY, TK_DEICONIFY, TK_WITHDRAW; replaced TK_TITLE with TK_GETFRAMEWID for setting container's title across process boundary; bug fix in wm overrideredirect for TK_EMBEDDED window
* | Bug fix and feature implementation of embedded/embedding Tkchengyemao2004-12-191-1/+7
| |
* | bug fix (842945,831627)chengyemao2004-12-171-1/+2
| |
* | * win/tkWinX.c: Signature for tkWinXCleanup needed to bedavygrvy2004-10-271-5/+5
| | | | | | | | | | | | | | * generic/tkInt.decls: changed so it matches the Tcl_ExitProc * generic/tkIntPlatDecls.h: typedef to avoid a bad-style cast. * win/makefile.vc: Force TCL_LIBRARY envar when calling tclsh
* | * win/tkWinX.c: Added declaration for advapi32 now that this filepatthoyts2004-09-241-1/+2
| | | | | | | | uses the Reg* functions (req'd for nmake build system).
* | * win/tkWinInt.h (TkWinDisplayChanged): added declhobbs2004-09-231-68/+106
| | | | | | | | | | | | | | | | * win/tkWinX.c (TkWinDisplayChanged, TkpOpenDisplay): Correctly * win/tkWinWm.c (InvalidateSubTreeDepth, WmProc): handle color and screen resolution changes. Tested for 16/24/32 bpp changes on XP. May need more fixes for 8bpp switch, use of special colormaps, or other special palette handling cases. [Bug 223689]
* | * generic/tkInt.decls: Add decl for TkWinGetPlatformTheme.mdejong2004-09-211-1/+56
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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]
* | TIP#158 implementation; keypad keys on Win are now distinguishable.dkf2004-07-051-1/+8
| |
* | * win/tkWinX.c: fix drawing of unicode chars in menuhobbs2004-05-031-1/+5
| | | | | | | | | | * win/tkWinInt.h (TkWinProcs): titles. [Bug #904371] (riefenstahl) * win/tkWinMenu.c (ReconfigureWindowsMenu):
* | * generic/tkClipboard.c: Move TkClipCleanup from tkClipboard.chobbs2004-05-031-16/+49
| | | | | | | | | | | | | | | | * macosx/tkMacOSXXStubs.c: to being implemented in a platform * unix/tkUnixEvent.c: specific manner. The cleanup order was * win/tkWinX.c: bad at least on Windows, where we reset/cleared display info that was still needed for the clipboard to render. [Bug #939389, #822002, #732662]
* | * generic/tk3d.c: All uses of 'panic' (the macro) changeddavygrvy2004-01-131-3/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * generic/tkBind.c: to 'Tcl_Panic' (the function). The #define * generic/tkBitmap.c: of panic in tcl.h clearly states it is * generic/tkCanvArc.c: deprecated in the comments. * generic/tkCanvBmap.c: [Tcl Patch 865264] * generic/tkCanvImg.c: * generic/tkCanvLine.c: * generic/tkCanvPoly.c: * generic/tkCanvText.c: * generic/tkCanvWind.c: * generic/tkColor.c: * generic/tkConfig.c: * generic/tkCursor.c: * generic/tkError.c: * generic/tkEvent.c: * generic/tkFocus.c: * generic/tkFont.c: * generic/tkFrame.c: * generic/tkGC.c: * generic/tkGrid.c: * generic/tkImgBmap.c: * generic/tkImgPhoto.c: * generic/tkImgUtil.c: * generic/tkMenu.c: * generic/tkObj.c: * generic/tkPack.c: * generic/tkPlace.c: * generic/tkRectOval.c: * generic/tkSelect.c: * generic/tkText.c: * generic/tkTextBTree.c: * generic/tkTextDisp.c: * generic/tkTextImage.c: * generic/tkTextIndex.c: * generic/tkTextMark.c: * generic/tkTextWind.c: * generic/tkVisual.c: * generic/tkWindow.c: * mac/tkMacAppInit.c: * mac/tkMacAppearanceStubs.c: * mac/tkMacButton.c: * mac/tkMacDraw.c: * mac/tkMacEmbed.c: * mac/tkMacFont.c: * mac/tkMacInit.c: * mac/tkMacMenus.c: * mac/tkMacPort.h: * mac/tkMacSubwindows.c: * mac/tkMacWm.c: * mac/tkMacXStubs.c: * macosx/tkMacOSXEmbed.c: * macosx/tkMacOSXFont.c: * macosx/tkMacOSXMenus.c: * macosx/tkMacOSXNotify.c: * macosx/tkMacOSXPort.h: * macosx/tkMacOSXSubwindows.c: * macosx/tkMacOSXWm.c: * macosx/tkMacOSXXStubs.c: * unix/tkUnix3d.c: * unix/tkUnixColor.c: * unix/tkUnixEmbed.c: * unix/tkUnixEvent.c: * unix/tkUnixFocus.c: * unix/tkUnixFont.c: * unix/tkUnixSelect.c: * unix/tkUnixSend.c: * unix/tkUnixWm.c: * win/tkWin3d.c: * win/tkWinButton.c: * win/tkWinColor.c: * win/tkWinDialog.c: * win/tkWinDraw.c: * win/tkWinEmbed.c: * win/tkWinFont.c: * win/tkWinPixmap.c: * win/tkWinPointer.c: * win/tkWinScrlbr.c: * win/tkWinWm.c: * win/tkWinX.c:
* | * generic/tkEvent.c: Added three new functions: TkCreateExitHandler,davygrvy2003-12-211-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * generic/tkInt.h: TkDeleteExitHandler, and TkFinalize. This adds * generic/tkMenu.c: an insertion point so Tk's exit handlers can be * generic/tkWindow.c: called on their own from tk85.dll's DllMain * mac/tkMacButton.c: for DLL_PROCESS_DETACH. These are private to * unix/tkUnixEvent.c: the binary and not exported. It is possible * win/tkWin32Dll.c: the Windows OS can unload Tk _prior_ to Tcl * win/tkWinEmbed.c: under some conditions such as ExitProcess(). * win/tkWinMenu.c: This avoids a dangling pointer problem when Tcl * win/tkWinX.c: does Tcl_Finalize after Tk has been unloaded. * win/winMain.c: DllMain's DLL_PROCESS_DETACH now protected with SEH as DeleteWindowsExitProc is causing an exception of its own under some teardown conditions. AT&T assembly syntax has not been added for MinGW yet. [Tcl Patch 858493]