summaryrefslogtreecommitdiffstats
path: root/win
Commit message (Collapse)AuthorAgeFilesLines
* * generic/tk3d.c: All uses of 'panic' (the macro) changeddavygrvy2004-01-1312-44/+56
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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: FossilOrigin-Name: a08e5aacfc9f6c5a344c2d05454773dac90710c2
* * win/rules.vc: Sync'd to Tcl, respects the CHECKS=nodepdavygrvy2004-01-131-1/+20
| | | | | | commandline macro and was used to verify the Tcl_Panic change above. FossilOrigin-Name: c2f1f53cff48d368dd5560a3203a46f9774dee3c
* * win/lamp.bmp (deleted):davygrvy2004-01-131-0/+0
| | | | | | * win/rc/lamp.bmp (new): Moved. FossilOrigin-Name: 7805bf708dff77ce0ac1b18d89843e6c12e2684e
* * win/rc/tk.rc:davygrvy2004-01-134-24/+19
| | | | | | | | | * win/rc/tk_base.rc: * win/rc/wish.rc: * win/makefile.vc: Refreshed how the resource files are built. Should be a bit easier for people linking with a static Tk library. FossilOrigin-Name: c6f4259e52de6fea22f973c0f298e6b82ff66243
* disabled submenu fixvincentdarley2004-01-071-12/+23
| | | FossilOrigin-Name: 92d72bb69049d4f985404d35534473a70af5ed82
* * win/tkWinMenu.c (ReconfigureWindowsMenu,mdejong2003-12-281-26/+43
| | | | | | | | | | | | | | | TkWinHandleMenuEvent, DrawMenuEntryArrow): Fix drawing of a disabled 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] FossilOrigin-Name: 015437e4806870781b62f5451194a1ccb97c1e67
* * win/tkWinMenu.c (DrawWindowsSystemBitmap):mdejong2003-12-281-2/+2
| | | | | | | | | | | | 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. FossilOrigin-Name: 0cdd74788f06323730295a2c4460eded99f1c812
* * win/tkWinMenu.c (DrawMenuEntryAccelerator,mdejong2003-12-261-2/+14
| | | | | | | | | | | 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. FossilOrigin-Name: 61e90b11eb87d5673eb9cb52087bfe7cd8a30d5b
* * win/tkWinMenu.c (DrawMenuEntryAccelerator,mdejong2003-12-261-13/+59
| | | | | | | | | | 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. FossilOrigin-Name: 87a93b9ac8857ceb4e057cced915293f137d9fd7
* * win/tkWin32Dll.c (DllMain): Add HAVE_NO_SEHmdejong2003-12-261-1/+71
| | | | | | | | blocks in place of __try and __except statements to support gcc builds. This is needed after David's changes on 2003-12-21. [Tcl patch 858493] FossilOrigin-Name: 0dbb3702b2d3d15020957d29507582eb450d128e
* prevent static buffer overflow (Doh!)davygrvy2003-12-231-4/+4
| | | FossilOrigin-Name: a4ae45744cbd88c1ccb193791995d033216d0bdd
* fixed static buffer overflowdavygrvy2003-12-231-2/+2
| | | FossilOrigin-Name: cbce1d740396dddb90541e5ee6af97925c5387c5
* Uses new features of nmakehlp to get the version strings from header filesdavygrvy2003-12-231-7/+13
| | | | | | without the use of hardcoded values. FossilOrigin-Name: fbcf6d9fc27f54a9ef6c5fced538c14079df1ef8
* sync'd to Tcl.davygrvy2003-12-232-14/+108
| | | FossilOrigin-Name: a9e4d8c1be92f32387515b208be94fc4ffd96392
* * generic/tkEvent.c: Added three new functions: TkCreateExitHandler,davygrvy2003-12-215-13/+42
| | | | | | | | | | | | | | | | | | | * 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] FossilOrigin-Name: e12249878fe2fa70e532f6629a899a96c165e3e3
* * (Tk_MeasureChars): Fix bugs shown by the test suitecc_benny2003-12-181-18/+29
| | | | | | [#861777]. Clarify comment on TK_AT_LEAST_ONE. FossilOrigin-Name: da9f8261a9c0b63438dcb4563096653a19b27387
* * win/rc/wish.exe.manifest: It seems that Windows XP insists on apatthoyts2003-12-161-1/+1
| | | | | | | strict format for the version value. 8.5.a0 or 8.5.0 results in an unloadable executable -- must be 4 numbers. FossilOrigin-Name: da4912869684077dfec2839bf67fad262b61f18f
* * win/tkWinSend.c: Removed some misleading comments (bug #846134)patthoyts2003-12-161-10/+22
| | | | | | and disabled the send package until bug #858822 is resolved. FossilOrigin-Name: 897f91e41b3fc35babf33a9244b141b8a7ac4e43
* Check for TK_ALREADY_DEAD to avoid handling of dead windows.a_kovalenko2003-12-161-2/+2
| | | FossilOrigin-Name: 200e3e6f15efb49b3acca1d05461917c7a3675cb
* opps.. paren typodavygrvy2003-12-161-3/+3
| | | FossilOrigin-Name: 9197855613ccefdf9960531afa7f14bfde57e1cb
* * win/tkWinWm.c (UpdateGeometryInfo) : wmPtr->wrapper mightdavygrvy2003-12-161-2/+3
| | | | | | | be NULL. No exception is thrown, but it isn't correct to ignore. discovered with NuMega's BoundsChecker. FossilOrigin-Name: ead4de9add9a2ba8900e01432495c4cc17086215
* (ReconfigureWindowsMenu) : Only redraw the menubar when a menubardavygrvy2003-12-161-2/+6
| | | | | | | exists. Although the invalid handle doesn't cause an exception, it was discovered with NuMega's BoundsChecker and flagged as a problem. FossilOrigin-Name: 2aee3bc7679cd143c7ae8ccf84506bddfa7e0fcb
* updated version stringdavygrvy2003-12-131-1/+1
| | | FossilOrigin-Name: 62eedf4420ded7d96dae34f8eb3d2ef09b095172
* (TkWinXInit): Don't restric InitCommonControlsEx. It's valid on all platformsdavygrvy2003-12-131-10/+9
| | | | | | | | given IE 3.0+ is installed. As tkWinX.c does set #define _WIN32_IE 0x0300, I guess we can accept IE3 as the lowest denominator and use version 4.71 features of Comctl32.dll FossilOrigin-Name: a30fcbda31e62cd3f4f409f10e4711178f363f63
* (TkWinEmbeddedEventProc) : for loop dereferences containerPtr but can'tdavygrvy2003-12-131-5/+7
| | | | | | | get to the if (containerPtr == NULL) test due to the unhandled read memory exception for when it really is NULL. FossilOrigin-Name: 998bb6de957ef8ad1431d5b0e66af9a4523cb080
* fixed bad commit from before. my mistake. This is 1.16 now.davygrvy2003-12-121-4/+45
| | | FossilOrigin-Name: 230fc8e6e275c51e7554e184c6dfb800194aac9e
* Reverted to 1.15 for two reasons. 1) problem is best addressed in Tcl'sdavygrvy2003-12-121-45/+4
| | | | | | | DllMain() and 2) needs a MinGW custom assembly implimentation as it doesn't understand SEH syntax. FossilOrigin-Name: ed497699c491ef753f6da6fc9605863cc87a5fa7
* * (Tk_MeasureChars): Initialize size.cx in case of errors.cc_benny2003-12-101-2/+5
| | | | | | | Initialize lastsize (fixes bug with wrong *lenghtPtr results in case no chars fit at all). FossilOrigin-Name: 5179de5790c28412b7456708a5b67fd998c74bb9
* fix to memory leaks and reading of freed memoryvincentdarley2003-12-091-18/+20
| | | FossilOrigin-Name: 44167e843701469c7aad866fac58a5fbb929998f
* * (Tk_MeasureChars): Fix indentation. Fix memory leak. Fixcc_benny2003-12-051-40/+32
| | | | | | handling of TK_WHOLE_WORDS. FossilOrigin-Name: 1363550c3c772e92ca590b90887f4128e4ebad68
* font measurement fixvincentdarley2003-12-041-121/+130
| | | FossilOrigin-Name: 8d4352805895fcb58e1d0ac77235b2a971083fa7
* winSend cleanup and bug fix -- these files need better documentationvincentdarley2003-11-202-107/+88
| | | FossilOrigin-Name: ea139e1e50b60de89fe8f69012d42b14466bff2b
* * win/makefile.vc: Restored consistency of pkgIndex.tcl filedgp2003-11-171-7/+3
| | | | | | | | | with that generated by Makefile. Let's discuss whether there's really need for a change, and if so, let's make it consistently in all Makefiles. FossilOrigin-Name: 3e23e347aa82a8ff70fb88a4ccaa8fa0efe2a2e5
* Fixes pkgIndex.tcl generation so a symbols build is loaded when Tcl is symbolsdavygrvy2003-11-161-3/+7
| | | FossilOrigin-Name: a49bd3f8e0e6b5765ece8ae1b16c9ea040cafd5e
* * win/configure:hobbs2003-11-112-2/+2
| | | | | | * win/tcl.m4: add necessary ole libs to VC LIBS_GUI line. FossilOrigin-Name: 887466425a620f9fae85e60c42d247e610a21dfe
* * win/tkWinDraw.c (XFillRectangles): correctly handle thehobbs2003-11-111-6/+25
| | | | | | | XGCValues.function parameter when filling rectangles. [Bug #820278] [Patch #820282] FossilOrigin-Name: 2234c1eff980154a64adf46745a6289c632903ff
* * win/configure:hobbs2003-11-112-19/+35
| | | | | | | | * win/configure.in: define TK_LIB_FLAG, TK_LIB_SPEC, TK_BUILD_LIB_SPEC, TK_STUB_LIB_SPEC, TK_STUB_LIB_PATH, and TK_BUILD_STUB_LIB_PATH for tkConfig.sh [Bug #826614] FossilOrigin-Name: 6c31ad71e667bc0c11e08a04f11f57050b3f84f6
* Fixed an error in returning the name actually registered for 'send'.patthoyts2003-11-081-4/+5
| | | FossilOrigin-Name: 38b166e0dc9d8f2c88b2d690b51abe1c033fe2ba
* TIP 155 implementationvincentdarley2003-10-311-1/+2
| | | FossilOrigin-Name: e58248ce5f8b5af24ae723c3108610d0d5272db7
* compound menu entriesvincentdarley2003-10-311-5/+23
| | | FossilOrigin-Name: 4da4811a86636477023a0d053648098407054be8
* * win/tkWinImage.c (XGetImageZPixmap): add separate 16bpphobbs2003-10-281-1/+28
| | | | | | | XGetImage code to correctly handle 16bpp requests. This appears to never have worked correctly. FossilOrigin-Name: d792c849c9791f0e7527e97b0ff6864a6859e918
* * win/makefile.vc: Applied patches from tcl bug #801467 frompatthoyts2003-10-142-6/+48
| | | | | | * win/winMain.c: Joe Mistachkin FossilOrigin-Name: 61f443b1d6f0094d96611654658cf411d833e91b
* correct imageYOffset for buttons with just imageshobbs2003-10-101-4/+4
| | | FossilOrigin-Name: c9fbf9635bfafc5b56634666901dea80b62f000a
* * win/tcl.m4: Add TIP #150 items to the TEA makefiles.patthoyts2003-10-085-67/+79
| | | | | | | | | | * win/configure: * win/Makefile.in: * win/tkWinSend.c: Clean up some warnings from gcc -Wall. * win/tkWinSendCom.c: FossilOrigin-Name: 34f9ee5a119c768702a1ab36c15e9a018580f3c7
* * win/configure:hobbs2003-10-062-50/+2
| | | | | | | | * win/tcl.m4: removed incorrect checks for existence of optimization. TCL_CFG_OPTIMIZED is now defined whenever the user does not build with --enable-symbols. FossilOrigin-Name: 9d21ce3bc796de067940eb398e4bab58e32d58a5
* * win/makefile.vc: Implementation of TIP #150, "Providepatthoyts2003-09-264-5/+1363
| | | | | | | | * win/tkWinSend.c: 'send' command for Windows" * win/tkWinSendCom.h: * win/tkWinSendCom.c: FossilOrigin-Name: 0ac88e3771844bf1cbca4a2f9343139667dd4d43
* Don't do a string compare on the $(DBGX) variable, use the $(DEBUG)davygrvy2003-08-251-7/+11
| | | | | | | boolean directly. Also, don't try to regen the stubs table if $(TCLSH) doesn't exist. FossilOrigin-Name: 7aaec0c30ef41179143c65b4361ee46968126257
* * win/tkWin3d.c: Applied Tk patch 791273 from Jeremy Collins whichpatthoyts2003-08-201-5/+5
| | | | | | improves the 3d lines for sunken widgets under windows. FossilOrigin-Name: 7ff4c11a856db8dd863645dc3655b92aa0b631ff
* * win/configure: Regen.mdejong2003-08-182-0/+99
| | | | | | | * win/tcl.m4: Update from Tcl to fix Tcl bug 781109. FossilOrigin-Name: 603145231b36a4affd6012cb74744c2e238653d4
* * win/tkWinDialog.c: Applied patch from bug #611615 which fixes apatthoyts2003-07-281-1/+52
| | | | | | | problem with double clicks in file dialogs falling through to the window underneath in win32. FossilOrigin-Name: 82e8c7922a5424b3bae9a04d53f06557990ad8e8