summaryrefslogtreecommitdiffstats
path: root/win/tkWinX.c
Commit message (Collapse)AuthorAgeFilesLines
* Add another few Xlib stubs for Win32. Cherry-picked from ↵jan.nijtmans2016-11-071-4/+1
| | | | [http://www.androwish.org/index.html/info/862eb620a096fddc|AndroWish]. Thanks to Christian Werner.
* Merge core-8-6-branch. More surrogate handling, e.g. in HandleIMEComposition()jan.nijtmans2016-09-271-14/+24
|\
| * Internal code simplification: Store Unicode character in keycode field in ↵jan.nijtmans2016-09-271-9/+6
| | | | | | | | stead of trans_chars. No behavior change, just use a different internal event type.
| * New attempt to fix [720879afe9] - WM_CHAR message handling. Patch from ↵bug_720879afe9_altfvogel2016-09-251-8/+11
| | | | | | | | Christian Werner backported from http://www.androwish.org/index.html/info/a0da5845594cec28
* | Enhanced proposed fix [6c0d7aec67]: unicode text input Windows 8. More ↵jan.nijtmans2016-09-191-7/+6
|\ \ | |/ |/| | | places where Unicode surrogate handling could be improved.
| * More simplificationsjan.nijtmans2016-09-191-7/+6
| |
| * merge core-8-6-branchjan.nijtmans2016-09-081-18/+40
| |\ | |/ |/|
| * Fixed [2945130fff] for the right Control and Alt keys. WONTFIX the case of ↵fvogel2016-09-041-5/+1
| |\ | | | | | | | | | the right Shift key due to Windows plaftorm limitation.
| * \ Fix use of XMaxTransChars in stead of TCL_UTF_MAX in some places. This ↵jan.nijtmans2016-08-311-2/+2
| |\ \ | | | | | | | | | | | | | | | | should prevent possible buffer overflow when TCL_UTF_MAX=6 Micro-optimizations in tkEntry and ttkEntry
* | \ \ merge core-8-6-branchjan.nijtmans2016-09-081-5/+1
|\ \ \ \ | | |_|/ | |/| |
| * | | Fixed [2945130fff] for the right Control and Alt keys. WONTFIX the case of ↵fvogel2016-09-041-5/+1
| |\ \ \ | | |_|/ | |/| | | | | | the right Shift key due to Windows plaftorm limitation.
| | * | Consider the Extended flag for both KeyPress and KeyRelease events coming ↵fvogel2016-08-111-5/+1
| | | | | | | | | | | | | | | | from the extended (keypad) keys. I can't see why implementation of TIP #158 [b8333852a2] considered the extended flag only for KeyPress, and forced clearing it in the state integer for KeyRelease.
* | | | unnecessary macrojan.nijtmans2016-09-011-2/+0
| | | |
* | | | (experiment) don't fill trans_chars any more when send_event == -3. Results ↵jan.nijtmans2016-09-011-60/+4
| | | | | | | | | | | | | | | | in many simplifications while it still should work the same
* | | | don't forget to set the keycode ;-)jan.nijtmans2016-09-011-0/+1
| | | |
* | | | Implement USE_EXTRA_EVENTS=1, which generates additional events for ↵jan.nijtmans2016-08-311-8/+50
|\ \ \ \ | |/ / / | | | | | | | | surrogate pairs when TCL_USF_MAX==3. Since the information in trans_chars is redundant (same as keycode), I don't believe this is better. Test-cases to prove otherwise welcome!
| * | | Fix use of XMaxTransChars in stead of TCL_UTF_MAX in some places. This ↵jan.nijtmans2016-08-311-2/+2
| |/ / | | | | | | | | | | | | should prevent possible buffer overflow when TCL_UTF_MAX=6 Micro-optimizations in tkEntry and ttkEntry
* | | Enhance TkpGetString() to handle Unicode characters, even when TCL_UTF_MAX==3.jan.nijtmans2016-08-301-2/+8
| | |
* | | merge core-8-6-branch. jan.nijtmans2016-08-301-17/+14
|\ \ \ | |/ / | | | Add patch from Christian Werner, and one step closer to working with TCL_UTF_MAX=3
* | | rebase to core-8-6-branch. jan.nijtmans2016-08-291-28/+27
|\ \ \ | |/ / | | | should now work with TCL_UTF_MAX=4 and TCL_UTF_MAX=6 (not yet with TCL_UTF_MAX=3)
* | | Patch [6c0d7aec67] from Christian Werner on upstream Androwish to better ↵fvogel2016-08-231-9/+68
| |/ |/| | | | | handle unicode text input for Windows 8 by dealing with wParam VK_PACKET in WM_KEYDOWN and WM_SYSKEYDOWN events. This was observed on a Windows 8.1 tablet when the on-screen virtual keyboard is used to enter Emojis for example. The changes allow to enter Emojis when Tcl/Tk is built with TCL_UTF_MAX>3.
* | Change Tk_FreeXId() into a macro.jan.nijtmans2016-08-121-24/+0
|/ | | A few end-of-line spacing eliminations.
* Satisfy required position of __stdcall from VC++jan.nijtmans2014-02-041-2/+2
|\
| * Satisfy required position of __stdcall from VC++jan.nijtmans2014-02-041-2/+2
| |
* | Add missing __stdcall (which crashes on win32)jan.nijtmans2014-02-041-1/+2
|\ \ | |/
| * Add missing __stdcall (which crashes on win32)jan.nijtmans2014-02-041-1/+2
| |
* | Fix [http://core.tcl.tk/tcl/info/651e828a52|651e828a52]: Wrong Windows ↵jan.nijtmans2014-02-041-9/+21
|\ \ | |/ | | | | | | version reported for Windows 8.1. Remove some dead code (since Win95/98/ME is no longer supported)
| * Fix [http://core.tcl.tk/tcl/info/651e828a52|651e828a52]: Wrong Windows ↵jan.nijtmans2014-02-041-9/+20
| | | | | | | | version reported for Windows 8.1
* | Some bit of Windows 8.1 compatibility: See ↵jan.nijtmans2013-11-201-6/+6
|\ \ | |/ | | | | [http://msdn.microsoft.com/en-us/library/windows/desktop/dn302074.aspx]
| * Some bit of Windows 8.1 compatibility: See ↵jan.nijtmans2013-11-201-6/+6
| | | | | | | | [http://msdn.microsoft.com/en-us/library/windows/desktop/dn302074.aspx]
* | Working towards adding all the Tcl_SetErrorCode calls that should be there.dkf2012-07-161-5/+4
| | | | | | ** WORK IN PROGRESS **
* | Change XChangeWindowAttributes signature and many others to match Xorg, ↵jan.nijtmans2012-06-081-1/+2
|\ \ | |/ | | | | needed for Cygwin
| * Change XSetDashes signature and many others to match Xorg, needed for Cygwinjan.nijtmans2012-06-051-1/+2
| |\
| | * Change XSetDashes signature and many others to match Xorg, needed for Cygwin. jan.nijtmans2012-06-011-34/+35
| | | | | | | | | Add .PHONY targets, and various quoting issues (Makefile.in)
* | | Remove tclWinProcs, as it is no longer being usedjan.nijtmans2011-10-051-18/+2
| | |
* | | [Bug 3388350] mingw64 compiler warningsjan.nijtmans2011-08-161-6/+6
|\ \ \ | |/ /
| * | [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 Keywordsdgp2011-06-081-2/+0
|\ \ \ | |/ /
| * | 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.