summaryrefslogtreecommitdiffstats
path: root/win
Commit message (Collapse)AuthorAgeFilesLines
* * win/tkWin32Dll.c (DllMain): Replace old asm SEHmdejong2005-08-231-104/+92
| | | | | approach with Kenny's new SEH implementation. [Tcl bug 1235544]
* * unix/Makefile.in: Subst BUILD_TCLSH and TCL_EXE.mdejong2005-08-234-46/+59
| | | | | | | | | | | | | | | | | | | * unix/configure: Regen. * unix/configure.in: Update minimum autoconf version to 2.59. Invoke SC_PROG_TCLSH and SC_BUILD_TCLSH. * unix/tcl.m4 (SC_PROG_TCLSH, SC_BUILD_TCLSH): * win/Makefile.in: Subst BUILD_TCLSH and TCL_EXE. * win/configure: Regen. * win/configure.in: Update minimum autoconf version to 2.59. Invoke SC_BUILD_TCLSH. * win/tcl.m4 (SC_PROG_TCLSH, SC_BUILD_TCLSH): Split confused search for tclsh on PATH and build and install locations into two macros. SC_PROG_TCLSH searches just the PATH. SC_BUILD_TCLSH determines the name of the tclsh executable in the Tcl build directory. [Tcl bug 1160114] [Tcl patch 1244153]
* Fix for [Bug 1216006]Joe Mistachkin2005-08-211-2/+2
|
* Getting more systematic about styledkf2005-08-102-1762/+1760
| | | | | 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
* * macosx/tkMacOSXCarbonEvents.c (AppEventHandlerProc): handle carbondas2005-08-091-1/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | events sent directly to application event target via the general TkMacOSXProcessEvent() in the same way as events posted to the event loop. Moved existing app event handlers to tkMacOSXWindowEvent.c. (TkMacOSXInitCarbonEvents): register our application event handler for kEventWindowExpanded events to deal with uncollapsing from the dock. * macosx/tkMacOSXEvent.h: made TkMacOSXProcessEvent() non-static, added * macosx/tkMacOSXEvent.c: new interp field to TkMacOSXEvent struct for use by app event handler. * macosx/tkMacOSXMouseEvent.c (TkMacOSXProcessMouseEvent): retrieve current window, partCode, modifiers and local cursor position from carbon mouse event if possible. Use new static GenerateButtonEvent() taking a MouseEventData struct instead of TkGenerateButtonEvent() to avoid recomputing already known values. Move process activation on MouseDown into BringWindowForward() to allow clicking on window titlebar widgets without activating process. Move code dealing with clicks in window titelbar into separate function HandleWindowTitlebarMouseDown() to avoid code duplication. Avoid repeated calls to TkMacOSXGetXWindow() by storing result in MouseEventData struct. (TkMacOSXButtonKeyState, XQueryPointer): try to get button and modifier state from currently processed carbon event (to avoid unnecessary IPC with the window server), otherwise use modern carbon API to get this info instead of Button() and GetKeys(); only retrieve info caller asks for (via non-NULL ptr passed to XQueryPointer). (ButtonModifiers2State): new static function converting carbon button and modifier state into tk state, allows detection of more than 3 mouse buttons (tk supports up to 5) and of NumLock and Fn modifier keys (NumLock is mapped to Mod3 and Fn to Mod4). * macosx/tkMacOSXWindowEvent.c (TkMacOSXProcessApplicationEvent): handle kEventWindowExpanded event to deal with window uncollapsing from the dock by generating tk Map event, handle kEventAppHidden and kEventAppShown events (moved here from tkMacOSXCarbonEvents.c). * macosx/tkMacOSXSubwindows.c (XUnmapWindow): only hide window when it is not iconified to avoid window flashing on collapse. * macosx/tkMacOSXWm.c: replaced Tk_DoWhenIdle() by Tcl_DoWhenIdle(). (TkMacOSXZoomToplevel): remove call to TrackBox(), now done in HandleWindowTitlebarMouseDown() in tkMacOSXMouseEvent.c. (TkpWmSetState): avoid window flashing on collapse by unmapping after calling CollapseWindow(); only uncollapse window if it is collapsed. * generic/tkInt.decls: changed TkMacOSXZoomToplevel() signature. * generic/tkIntPlatDecls.h: * macosx/tkMacOSXKeyEvent.c (TkMacOSXProcessKeyboardEvent): only call GetMenuItemCommandID() on KeyDown or KeyRepeat events. * macosx/tkMacOSXMenu.c (ReconfigureMacintoshMenu): remove call to obsolete AppendResMenu() API. * macosx/tkMacOSXKeyEvent.c: replaced all direct uses of expensive * macosx/tkMacOSXMenu.c: GetMouse() and TkMacOSXButtonKeyState() * macosx/tkMacOSXMenus.c: APIs by calls to XQueryPointer() * macosx/tkMacOSXMouseEvent.c: * macosx/tkMacOSXScale.c: * macosx/tkMacOSXScrlbr.c: * macosx/tkMacOSXWm.c: * macosx/tkMacOSXDialog.c: replaced use of FrontNonFloatingWindow() * macosx/tkMacOSXKeyEvent.c: by ActiveNonFloatingWindow() as * macosx/tkMacOSXMenu.c: recommended by Carbon docs. * macosx/tkMacOSXMenus.c: * macosx/tkMacOSXSubwindows.c: * macosx/tkMacOSXWm.c: * macosx/tkMacOSXDialog.c: fixed warnings * macosx/tkMacOSXTest.c: * macosx/tkMacOSXCarbonEvents.c: added CVS Id line to file header. * macosx/tkMacOSXDebug.c: * macosx/tkMacOSXDebug.h: * macosx/tkMacOSXEntry.c: * macosx/tkMacOSXEvent.h: * macosx/tkMacOSXKeyEvent.c: * macosx/tkMacOSXMouseEvent.c: * macosx/tkMacOSXWindowEvent.c: * macosx/tkMacOSXWm.h: * macosx/tkMacOSXInt.h: declare macosx internal procs as MODULE_SCOPE. * macosx/tkMacOSXCarbonEvents.c: * macosx/tkMacOSXDraw.c: * macosx/tkMacOSXFont.c: * macosx/tkMacOSXHLEvents.c: * macosx/tkMacOSXInit.c: * macosx/tkMacOSXWindowEvent.c * library/bgerror.tcl: sync with core-8-4-branch changes of 2005-07-28. * macosx/tkMacOSXDraw.c: * macosx/tkMacOSXWm.c: * macosx/tkMacOSXMouseEvent.c: * generic/tkFrame.c: sync with core-8-4-branch changes of 2005-07-27. * generic/tkIntDecls.h: * generic/tkStubInit.c: * generic/tkFrame.c: * win/tkWinDraw.c: * unix/tkUnixDraw.c: * macosx/tkMacOSXDraw.c: * macosx/tkMacOSXInt.h: * macosx/tkMacOSXWm.c: * macosx/tkMacOSXSubwindows.c: * macosx/tkMacOSXButton.c: sync with core-8-4-branch. * macosx/tkMacOSXEntry.c: * macosx/tkMacOSXScale.c: * library/demos/menu.tcl: removed errant '}'.
* * 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]
* autoconfdgp2005-06-071-1/+1
|
* Bumped patchleveldkf2005-06-071-2/+2
|
* * win/tkWinInt.h: added private decls of Tk_GetEmbeddedMenuHWND,hobbs2005-06-011-2/+10
| | | | | Tk_GetMenuHWND, TkWinCleanupContainerList, and TkpWmGetState to that are used across source files.
* * 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
|
* Fixed bug # 1189939chengyemao2005-04-281-3/+3
|
* * macosx/tkMacOSXWm.c (TkWmStackorderToplevelWrapperMap, ↵mdejong2005-04-071-5/+7
| | | | | | | | | | | TkWmStackorderToplevel): * unix/tkUnixWm.c (TkWmStackorderToplevelWrapperMap, TkWmStackorderToplevel): * win/tkWinWm.c (TkWmStackorderToplevelWrapperMap, TkWmStackorderToplevel): Fix panic in wm stackorder when a toplevel is created on another diplay. The code now ignores toplevels that have a display that does not match the display of the parent window. [Bug 1152809]
* * win/tcl.m4, win/configure: do not require cygpath in macros tohobbs2005-03-302-229/+396
| | | | allow msys alone as an alternative.
* * win/makefile.vc: clarify necessary defined vars that can comehobbs2005-03-081-14/+18
| | | | from MSVC or the Platform SDK.
* (WinSetIcon): fix GCLP_ICONSM -> GCLP_HICONSMhobbs2005-03-081-2/+2
|
* 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]
* * doc/wm.n: Add documentation for -fullscreen attribute.mdejong2005-02-171-5/+137
| | | | | | | | | | | * tests/winWm.test: Add -fullscreen to wm attribute usage message. * tests/wm.test: Add -fullscreen to wm attribute usage message. Add -fullscreen attribute test cases for Windows. * win/tkWinWm.c (WmInfo, UpdateWrapper, TkpWmSetFullScreen, WmAttributesCmd, UpdateGeometryInfo): Implement TIP 223 [wm attributes -fullscreen].
* * win/tkWinWm.c (TkWinGetIcon): fix toplevel retrieval forhobbs2005-02-111-10/+11
| | | | determining icon ref (potential crash). [Bug 1105738]
* Modified to handle a wide-character title string of a toplevelchengyemao2005-01-313-6/+13
|
* Flushed idle events before mapping an embedded windowchengyemao2005-01-271-1/+2
|
* 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 change for correct initial embeddedMenuHwndchengyemao2005-01-181-1/+2
|
* Simplified TkpUseWindow; got rid of unnecessary code for saving an embedded ↵chengyemao2005-01-171-53/+50
| | | | window info in a container struct; stopped using a destruction event handler for an embedded window since it has nothing to do
* minor bug fix: should return 0 and indicate handled after processing ↵chengyemao2005-01-171-5/+7
| | | | WM_MENUSELECT message
* Added TK_INFO message for use in an embedded window attachment protocol; ↵chengyemao2005-01-164-54/+112
| | | | 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
* Removed WM_UNINITMENUPOPUP that may cause compiling error in WINVER < 0x0500chengyemao2005-01-132-9/+3
|
* A better way to map an embbedded windowchengyemao2005-01-121-6/+35
|
* Minor bug fix to support embedding/embeddedchengyemao2005-01-122-12/+18
|
* corrected return values and added comments for embedded window messageschengyemao2005-01-101-23/+156
|
* properly handled returned value in wm for embeddedchengyemao2005-01-101-7/+11
|
* Modified to support a container of either a toplevel or a framechengyemao2005-01-091-13/+25
|
* Changed to make platform implementation ready for a toplevel -use option; ↵chengyemao2005-01-093-6/+61
| | | | completed a full toplevel -use option configuration for Windows
* 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 to keep consistent state of an embedded windowchengyemao2005-01-091-1/+6
|
* Implemented TK_STAT message to support {wm state} for embedded windowchengyemao2005-01-074-9/+78
|
* Removed unnecsssary panic from TkpUseWindow and forced redraw container ↵chengyemao2005-01-071-5/+2
| | | | after the embedded detached
* Made the remarks of TkpUseWindow clearer regarding the embedding/embedded ↵chengyemao2005-01-051-6/+10
| | | | attachment protocol
* Modified for separating an embedded menu's window handler from a normal ↵chengyemao2005-01-042-13/+125
| | | | popup menu window's handler; improved an embedded menu display in Windows/XP
* * win/tkWinWm.c (TkWinWmCleanup): clean up layered window class.hobbs2005-01-041-2/+11
| | | | This caused crash in reinit of Tk (as seen in plugin).
* * win/tcl.m4, win/configure: update MSVC CFLAGS_OPT to -O2, removehobbs2004-12-302-13/+28
| | | | | | -Gs (included in -O2) and -GD (outdated). Use "link -lib" instead of "lib" binary and remove -YX for MSVC7 portability. Add -fomit-frame-pointer for gcc OPT compiles. [Bug 1092952, 1091967]
* Modified to support embedded menu widgetchengyemao2004-12-285-35/+120
|
* Bug fix in TkpWinToplevelMove and TkpWinToplevelIsControlledByWmchengyemao2004-12-211-4/+8
|
* implemented overrideredirect for an embedded; corrected incorrect frame ↵chengyemao2004-12-205-28/+124
| | | | upper left x and y of an embedded toplevel
* Corrected handling of MacOS filetypes in tk_*file dialogsvincentdarley2004-12-201-10/+17
|
* featrue implementation of Tk container and embedded including TK_MOVEWINDOW, ↵chengyemao2004-12-205-78/+235
| | | | 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-194-18/+133
|
* Bug fix [222677]chengyemao2004-12-181-25/+24
|