summaryrefslogtreecommitdiffstats
path: root/win
Commit message (Collapse)AuthorAgeFilesLines
* Error fixes in GetFileNameW and GetFileNameAchengyemao2005-11-111-3/+3
|
* Fixes of other issues raised in [Bug 1353022]dkf2005-11-101-5/+7
|
* Fix [Bug 1353022]dkf2005-11-101-4/+13
|
* Factor out external-filename-to-internal code; the same pattern occurred a lot!dkf2005-11-101-199/+145
|
* Permit building al debug builds as well as release buildspatthoyts2005-10-141-14/+79
|
* * win/tkWinSend.c: Avoid using tcl internal headers and fix topatthoyts2005-10-143-17/+14
| | | | | * win/tkWinSendCom.h: correctly link on all types of build (was * win/tkWinSendCom.c: broken in static,msvcrt builds).
* tip256 implementationvincentdarley2005-10-101-1/+2
|
* * win/tkWinDialog.c (ChooseDirectoryValidateProc): reset storedhobbs2005-10-051-449/+2
| | | | | path to "" if it doesn't exist and -mustexist is true. [Bug 1309218] Remove old-style dir chooser (no longer used).
* Fixed bug #1311734chengyemao2005-10-051-4/+4
|
* temp patch to restore HEAD builddgp2005-09-301-1/+2
|
* * unix/tkUnixPort.h: Disabled inclusion of the private Tcl headerdgp2005-09-281-1/+6
| | | | | | | | | | * win/tkWinPort.h: file tclInt.h. Tk ought to have a tiny and shrinking number of calls of private Tcl routines. Each Tk source file doing this should follow the convention in the macosx port and have its own #include "tclInt.h". * generic/tkEvent.c: Disabled calls to private Tcl routine TclInExit(). See comment in TkCreateExitHandler() for full rationale.
* * win/winMain.c (WishPanic): Replaced TCL_VARARGS* macros withdgp2005-09-131-5/+4
| | | | direct use of stdarg.h conventions.
* Fixed bug# 1283635chengyemao2005-09-111-5/+5
|
* Fixed bug# 1283635chengyemao2005-09-111-3/+4
|
* * 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)