summaryrefslogtreecommitdiffstats
path: root/win
Commit message (Collapse)AuthorAgeFilesLines
* * BACKPORTED FROM 8.4 (HEAD) BRANCH:hobbs2000-08-051-7/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * tests/button.test: * generic/tkButton.c: Added -activeforeground, -activebackground for labels, for the -state option. * doc/label.n: Added -disabledforeground to list of options [Bug: 6053]. * tests/focus.test (focusSetupAlt): removed wm withdraw from proc as it would cause a hang for tkwait visibility * tests/menu.test: * generic/tk3d.c: * generic/tkColor.c: * generic/tkCursor.c: corrected handling of 3DBorder, Cursor and Color objects on multiple screens. [Bug: 5454] * generic/tkCursor.c: Added initialization for nextPtr field of TkCursor, patch from Nijtmans/Howlett. * canvas.test: added test for 5783. * generic/tkCanvPoly.c (DisplayPolygon): added checks for the polygon fillGC not being empty to prevent segfault. [Bug: 5783] * generic/tkImgGIF.c: Applied patch from Jan Nijtmans to fix a problem with the GIF writing code [Bug: 5823]. * generic/tkImgGIF.c: Changed defines for GIF87a/GIF89a to be static char arrays with integer initialization, to address EBCIDIC vs. ASCII encoding issues and to handle compilers that don't deal with "\xAB" syntax for specifying hex values in strings. * generic/tkMenu.c (DeleteMenuCloneEntries): Applied fix from [Bug: 5275], which corrected a segfault-causing indexing problem when deleting entries from torn-off menus. * generic/tkPlace.c (Tk_PlaceCmd): reworked place master/slave table init'n to prevent seg fault when using place on multiple displays. * tests/text.test: Added tests for -regexp -nocase searches with backslash character classes. * tests/text.test: Added tests for searching when text is elided. * generic/tkText.c (TextSearchCmd): Text search did not work properly when -regexp and -nocase were used, in combination with backslash character classes represented by capital letters (ie, \W, \M); altered implementation of -regexp -nocase searches to use new regexp interfaces to fix this problem. [Bug: 5988]. * generic/tkText.c (TextSearchCmd): Text search was not returning the correct index when the search covered (but did not search) elided characters; corrected this by adjusting the match index by the number of elided characters preceeding the start of the match, just as is done with embedded windows, etc. [Bug: 5470]. * generic/tkText.c (TextSearchCmd): Added a test for a NULL segment pointer when doing backwards searches for "" on an empty text widget. [Bug: 6007]. * library/focus.tcl: fixed calling of takeFocus proc [Bug: 5372] * win/tkWinMenu.c (ReconfigureWindowsMenu): Added MF_GRAYED bit for disabled menu entries, to ensure that those which are drawn by the system are shown grayed (such as entries on menubars) [Bug: 4372]. * win/tkWinMenu.c (ReconfigureWindowsMenu): Added code to add the MF_SEPARATOR bit for SEPARATOR_ENTRY menu items. This causes separator entries on the system menu to be drawn correctly [Bug: 5451]. * win/tkWinMenu.c (GetMenuSeparatorGeometry): Tweaked height requested for separator bars to be (linespace - (2*descent)) instead of just (linespace); this makes the separator occupy a more correct amount of vertical space. [Bug: 5303]. FossilOrigin-Name: f1303c4e2eb683e264aa4bf64ba8f88e63d960a4
* * win/Makefile.in (cat32.${OBJEXT}): corrected where to find cat.chobbs2000-08-052-14/+14
| | | | | | | | | given the change in default def'n of TCL_SRC_DIR. * win/tcl.m4: changed references from 8.4 to 8.3 (leftover from a backported file). FossilOrigin-Name: 8f49c58623a490990aa18d7178f190e1cdd3aa25
* Chagned GRAPHICS_LIBS to LIBS_GUI to match changes in makefile/configurewelch2000-07-311-3/+3
| | | FossilOrigin-Name: 79cf847a6f355ee952562809d4f5d96168d0d848
* * win/Makefile.in:mo2000-07-284-549/+752
| | | | | | | | | * win/aclocal.m4: * win/configure.in: * win/tcl.m4: Back port of gcc for windows build system from 8.4. FossilOrigin-Name: af2a5b49036f3420ab7804f515652bcab880fb3f
* * unix/configure.in (TK_PATCH_LEVEL): updated to 8.3.2hobbs2000-07-271-2/+2
| | | | | | | | | * unix/tk.spec: * win/configure.in: * generic/tk.h: * README: FossilOrigin-Name: 7bd233973762ccb473fb055f9d527ff722f077a3
* missing tk icon fixeddavidg2000-07-251-4/+1
| | | FossilOrigin-Name: 5303d60d74d496b9b3d9a1db1138ee89e2bb94f3
* double tk icon reference fixeddavidg2000-07-251-7/+1
| | | FossilOrigin-Name: aa6fa16cd0cc82c3bd3414931ebf709935495051
* missing tk icon fixeddavidg2000-07-251-1/+7
| | | FossilOrigin-Name: 74d33f30ee28a243b8dba5e12e7e4a04ccb02b88
* Generalizing resource files for static builds.welch2000-07-234-127/+158
| | | FossilOrigin-Name: e8632e9dd7aa7ad4d9b47f9939b9af86e7949ae8
* Cleanup of substitutions in tkConfig.shwelch2000-07-113-9/+23
| | | FossilOrigin-Name: 09af977d7ca35655276edfb60ad0e2457e17f8bd
* * win/tkWinWm.c (Tk_WmCmd): changed wm deiconify from using idlehobbs2000-05-161-46/+6
| | | | | | callback to calling restack and focus code immediately. FossilOrigin-Name: b6e29fbba870fcc60af4592631a2acaed52c51cf
* added TK_DONT_DESTROY_WINDOW flag to check in RaiseWinWhenIdle tohobbs2000-05-121-2/+3
| | | | | | prevent timing sensitive crash FossilOrigin-Name: e89c5a9f60b390c5f34c0ba294e073170a36f4f5
* * README:core-8-3-1hobbs2000-04-261-2/+2
| | | | | | | | | * mac/README: * unix/README: * unix/tk.spec: * win/README: Updating URLs to reference dev.scriptics.com FossilOrigin-Name: 93369f5e99fa007528c89991f02235f14a3a5935
* extra careful quotinghobbs2000-04-251-2/+2
| | | FossilOrigin-Name: 280b94c1fb0879d059d501df9178704b54ed2ec5
* winhelp target improvementshobbs2000-04-251-1/+2
| | | FossilOrigin-Name: caa58dc9d101a7215e429f6b2d9902f8431f817c
* * unix/Makefile.in:hobbs2000-04-251-24/+28
| | | | | | * win/Makefile.in: makefile cleanup FossilOrigin-Name: e9e426d70cfe0bc2d2c210bd75e93296dccf1867
* * win/aclocal.m4: made SC_PROG_TCLSH search specifically forhobbs2000-04-212-10/+16
| | | | | | | | tclsh*.exe type files to find an executable. * win/Makefile.in: fixed up cleanup, winhelp, cat32 targets FossilOrigin-Name: 26bcc8a25462d5b9011315f529c5c3088e44a5d6
* * library/choosedir.tcl (::tk::dialog::file::chooseDir::Config):hobbs2000-04-191-23/+23
| | | | | | | | | | | * library/tkfbox.tcl (::tk::dialog::file::Config): removed the extraneous glob on -initialdir after file isdir already returned 1 and moved cd trick into this case as the else already uses [pwd]. [Bug: 5181] * win/winMain.c: moved extern call out of WinMain func FossilOrigin-Name: 363c75beb90525f9a7136a709b82fc3a43a9bf41
* * doc/WinViewable.3:ericm2000-04-191-10/+4
| | | | | | | | | | | | | | | * unix/mkLinks: Removed docs for Tk_IsViewable. * win/tkWinDialog.c: Removed calls to Tk_IsViewable. * generic/tkUtil.c: * generic/tkStubInit.c: * generic/tkDecls.h: * generic/tkCmds.c: * generic/tk.decls: Removed Tk_IsViewable function (it was not actually needed). FossilOrigin-Name: e6573914e2482a3c4a9f0cdfc307d2412ee6c8ee
* * README:hobbs2000-04-191-2/+2
| | | | | | | | | | | | | | | * generic/tk.h: * unix/configure.in: * unix/tk.spec: * win/configure.in: bumped to version 8.3.1 * library/msgbox.tcl (tkMessageBox): changed to use grid in some places, realign icon to anchor nw. * mac/tkMacScale.c: reverted tkMacScale.c to 1.5 equivalent (it was accidentally bumped forward). FossilOrigin-Name: 7eb9e57682eca7b5da89db7c783e152ba154a632
* * win/tkWinPointer.c: Changed Mod2Mask in TkWinGetModifierState toericm2000-04-192-4/+4
| | | | | | | | | | | | | | | | | | ALT_MASK, to fix some event problems [Bugs: 1160, 5088]. * win/tkWinX.c: Changed Mod2Mask in GetState to ALT_MASK, to fix some event problems [Bugs: 1160, 5088]. * generic/tkInt.h: Moved definition of ALT_MASK and META_MASK here so that it would be accessible from other modules than tkBind.c. * generic/tkBind.c: Added code in BindEvent to check for ALT_MASK and META_MASK in the event state field, as this field may not be set up with the correct display modifier mask bits if the XEvent structure was created by [event generate] or by the Windows X emulation. [Bugs: 1160, 5088]. FossilOrigin-Name: c62394546f5315ab8053ba1dc769ee48089d0bfb
* * win/tk.rc:redman2000-04-183-4/+4
| | | | | | | | * win/wish.rc: * win/wish.ico: Modified copyright dates in Windows resource files. Updated the icon for wish.exe. FossilOrigin-Name: 26654e19230f512083806d17c52beefb138bfd4e
* * win/tkWinDialog.c: Added checks for visibility of parent windowericm2000-04-181-5/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | before creating MessageBox and ChooseColor dialogs; this prevents the application from locking when the parent is withdrawn and the message box is created. In these cases, the window will be created without a parent. * unix/mkLinks: Added WinViewable.3. * tests/msgbox.test: Added tests for patch from [Bug: 4997]. * library/msgbox.tcl: * library/dialog.tcl: Applied patch from [Bug: 4997]; detaches dialog window from parent if parent is not viewable. * library/bgerror.tcl: Removed workaround from [Bug: 4370]; this is superceeded by patches to dialog.tcl. * generic/tkCmds.c: Changed WinfoObjCmd to use Tk_IsViewable function to determine visibility of windows instead of inlining the code. * generic/tkStubInit.c: * generic/tkDecls.h: * generic/tk.decls: Added Tk_IsViewable declaration. FossilOrigin-Name: a39bc3c5994e6804227b828aa86f058d123d81d4
* * win/tkWinColor.c (FindSystemColor): correct calculation ofhobbs2000-04-171-14/+15
| | | | | | colors when shifting value. [Bug: 4919] FossilOrigin-Name: 18536763bf4688f2a668b3de1921326b762588bb
* clarified internal commentshobbs2000-04-151-2/+2
| | | FossilOrigin-Name: ba820939c30fc72e198cbf57c19cf21f7291334e
* * win/tkWinWm.c (WmProc): added check in WM_MOUSEACTIVATE so wehobbs2000-04-151-3/+12
| | | | | | | correctly activate native menus when clicking in when we didn't have focus [Bug: 2272] FossilOrigin-Name: f6c1e0a44a4e3eb4302d1c3213495b53a3fcfd68
* * win/tkWinKey.c: Added check for ASCII delete character inericm2000-04-151-2/+22
| | | | | | | KeycodeToKeysym, to fix [Bug: 5090]. See comment in code for more information. FossilOrigin-Name: b1356060f24a0e5a3eb65976da0b79c6efcd1621
* * generic/ks_names.h: Added Scroll_Lock and Sys_Req definitions.ericm2000-04-151-746/+711
| | | | | | | | | * win/tkWinKey.c: Changed implementation of KeycodeToKeysym, et. al., to use a keycode table for lookups; this will result in faster keycode -> keysym translations for non-ASCII keys like Control, Alt, etc. FossilOrigin-Name: 7d64f430145277aeba388b511068d932833593f9
* * win/tkWinKey.c: Added smarts to check whether the left or rightericm2000-04-142-717/+748
| | | | | | | | | | Control, Shift, or Alt key was pressed. [Bug: 870]. * win/tkWin3d.c: * unix/tkUnix3d.c: Tweaked threshhold for using different highlight computation. FossilOrigin-Name: a70c9415ac7b0cf897f2735a36bc009b674f5d25
* * win/tkWinMenu.c: Corrected code that created separator items onericm2000-04-131-88/+83
| | | | | | | | | menus; originally, it requested that the system be responsible for drawing those items, so it would ignore configuration items like the widget background. Now, we draw the separators ourselves (as we do with every other kind of menu item already). [Bug: 1166]. FossilOrigin-Name: d949efca564f7fddfee9f9a2a111ecaa45ae6552
* * win/tkWin3d.c:ericm2000-04-131-24/+64
| | | | | | | | | | * unix/tkUnix3d.c: Applied patch from [RFE: 2501]: adds more sophisticated smarts to TkpGetShadows, so that the highlight of a very bright color is actually distinguishable from the color, and the shadow of a very dark color is similarly distinguishable from the color. FossilOrigin-Name: 3a1cdadbad8781df849e5c1a5673656e8b67226c
* * test/winClipboard.test:hobbs2000-04-125-23/+87
| | | | | | | | | | | | | | * win/tkWinInt.h: * win/tkWinClipboard.c (UpdateClipboard): * win/tkWinX.c (GenerateXEvent): added updatingClipboard tsd and TkWinUpdatingClipboard accessor function to allow us to flag ourselves when we are the ones updating the clipboard. This corrected inability to create our own clipboard types within a Tk application. [Bug: 2338 4318] * win/tkWinTest.c (TestclipboardCmd): improved TestclipboardCmd with better error handling and obj'ification FossilOrigin-Name: 6afe91c34422fd4d580eb8122ad3815c4612f685
* * tests/event.test: Added test for [event generate $widgetericm2000-04-101-7/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | <Alt-z>] [Bug: 4611]. * tests/choosedir.test: Changed "namespace import ::tcltest" to "namespace import -force ::tcltest". * win/tkWinKey.c: * unix/tkUnixKey.c: * mac/tkMacKeyboard.c: Changed InitKeymapInfo to TkpInitKeymapInfo. [Bug: 4611]. * generic/tkStubInit.c: * generic/tkIntDecls.h: Re-gen'd from tkInt.decls. * generic/tkInt.decls: Added TkpInitKeymapInfo to list of function decls. * generic/tkBind.c (HandleEventGenerate): Added code to initialize keymap info if necessary, and to correctly set modifier bits in XEvent structure create to handle [event generate] calls. Previously, the alt/meta bits were not set correctly, so [event generate $widget <Alt-z>] would always fail. [Bug: 4611] FossilOrigin-Name: cd4fc3780f76c12099288725bea9ffac8c1477dd
* * win/makefile.vc (TKTEST_OBJS):hobbs2000-04-082-6/+13
| | | | | | | * win/Makefile.in (TKTEST_OBJS): moved tkWinTest.c from normal objs to TKTEST_OBJS where it belonged. FossilOrigin-Name: 8ffd7815de70af7a0ac162fd0879eb8dc4c42dc4
* * win/tkWinFont.c (GetScreenFont): corrected adjustment againsthobbs2000-04-071-8/+14
| | | | | | LC_FACESIZE limitation for NT. [Bug: 4931] FossilOrigin-Name: 7f44776861dfc41601aae81138b49f1378019ee1
* * win/tkWinDialog.c: added unicode-aware open/save file dialogshobbs2000-03-319-208/+423
| | | | | | | | | | | | | | | | | | | | | | | | | * win/tkWinFont.c (TkpFontPkgInit): move private ref to platformId to TkWinGetPlatformId * win/tkWinMenu.c (SetDefaults): moved private use of versionInfo to TkWinGetPlatformId and removed all code for (versionInfo.dwMajorVersion < 4) (== Win32s) * win/tkWinX.c: * win/tkWin32Dll.c: moved TkWinGetPlatformId to tkWinX.c * win/tkWinInit.c: added TkWinXInit to TkpInit to ensure that its called for static Windows shells. [Bug: 3647] * win/tkWinInt.h: * win/tkWinX.c: * win/tkWinDraw.c (SetUpGraphicsPort): * win/tkWinScrlbr.c (UpdateScrollbar): removed use of tkpIsWin32s * win/tkWinInt.h (TkWinDCState struct): added bkmode value * win/tkWinDraw.c (TkWinGetDrawableDC, et al): added support for properly transparent dashed lines on Windows. [Bug: 4617] FossilOrigin-Name: 4da507a963ef135744aef559227cc6d7a4335951
* * win/tkWinDialog.c: Changed the behavior for thesven2000-03-161-12/+7
| | | | | | | | | | tk_chooseDirectory dialog under Windows. Instead of trying to return the currently selected listbox entry (which didn't work in case the user selected the initial directory anyway), we now return the value shown in the entry. This seems to be in accordance with the expected behavior for this dialog. FossilOrigin-Name: dc3926ef9855139c4e030388f8777fa70576aac0
* * win/tkWinInt.h: change extern to EXTERN for TkWinChildProchobbs2000-03-022-9/+24
| | | | | | | | | | declaration with extra #defs. [Bug: 4240] * tests/color.test: * xlib/xcolors.c (XParseColor FindColor): * win/tkWinColor.c (XAllocColor): Fixed bit fiddling for colors to return "correct" values for color mapping. [Bug: 4282] FossilOrigin-Name: b59fd61c4ab53fc8c05ece8ab91cd06f769ff333
* * win/tkWinWm.c (RaiseWinWhenIdle): Checked for the possibilityhobbs2000-02-261-1/+4
| | | | | | | that the window could be destroyed (can occur with wm deiconify .toplevel; destroy .toplevel). FossilOrigin-Name: e60a421ad77f1d6f1edc40ab21fd480b4be24977
* flipped debug bithobbs2000-02-101-2/+2
| | | FossilOrigin-Name: 4ce0440592897e3dc9b6e38cd53ff08d7f0256be
* * generic/tk.decls:hobbs2000-02-091-18/+376
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * generic/tkBind.c: * generic/tkInt.decls: * generic/tkIntDecls.h: * generic/tkStubInit.c: * mac/tkMacKeyboard.c: * unix/tkUnixKey.c: * win/tkWinKey.c: Fix for keyboard handling of "dead" keys and caps lock from Peter Spjuth. Split functions into platform specific files: Static functions GetKeySym(), SetKeycodeAndState() and InitKeymapInfo() from tkBind.c moved into platform files tkWinKey.c tkUnixKey.c and tkMacKeyboard.c. GetKeySym() and SetKeycodeAndState() renamed to Tkp* and made public (as private functions) in tkInt.decls. Step 2, fixes in tkWinKey.c New static function: KeycodeToKeysym(), based on XKeycodeToKeysym() but with different arguments, and a lot of improvements. TkpGetString() changed to use KeycodeToKeysym() + other fixes. TkpGetKeySym() changed to use KeycodeToKeysym() + other fixes. InitKeymapInfo() changed to use KeycodeToKeysym(). TkpSetKeycodeAndState() rewritten, mostly by copying code from XKeysymToKeycode(). XKeycodeToKeysym() rewritten. Preferably it should be removed. EXPLANATION: The main problem is ToAscii() which has a lot of side effects, and also that XKeycodeToKeysym() is not provided enough input to do a proper job. The changes' main goal is to avoid calling ToAscii() if not necessary, and to provide it with as correct information as possible when called. Also some attempts to clean up what ToAscii() did are done. See the code for details. BUGS FIXED: Typing shifted (and AltGr) dead keys did not work. Keyboard lock lamps did not work on Win98. Events regarding AltGr-keys behaved badly. Example: On a Swedish keyboard, $ is typed with AltGr-4. That keyboard event would get the keysym '4' not 'dollar'. Also, doing [event generete . <Key-dollar>] would send keysym '4'. Translation to ascii in TkpGetString did not handle return and tab correctly. I.e. [event generate . <Key-Return>] gave wrong %A FossilOrigin-Name: d02d3aa39ada2efb32afa0e92f136ec34d8646d6
* * generic/tkDecls.h:hobbs2000-02-082-3/+5
| | | | | | | | | | | | | | | | | | | | | | | * generic/tk.decls: * generic/tk.h: moved new public functions created in dash patch to the stubs interface [Bug: 4062] * generic/tk.h: * doc/CrtImgType.3: * doc/CrtPhImgFmt.3: * generic/tk.h: * generic/tkImgGIF.c: * generic/tkImgPhoto.c: * generic/tkStubImg.c (new file): * generic/tkTest.c: * unix/Makefile.in: * win/Makefile.in: * win/makefile.vc: improved support for moving from the old style image C API to the new obj'ified one with new Tk_InitImageArgs command and stub'ing of image code. See docs for how to make the transition. [Bug: 4060] FossilOrigin-Name: dbe34fe5efcb725442acc347dcb728ad8e30493c
* * win/tkWinFont.c: corrected symbol font use to only work on 8-bithobbs2000-02-082-6/+8
| | | | | | | | | | | characters [Bug: 2406] * README: * unix/configure.in: * win/configure.in: * generic/tk.h (TK_RELEASE_SERIAL): Moved to 8.3.0 patchlevel FossilOrigin-Name: 740a11d2da11146d7908e091b9477fbdd961abd8
* * win/Makefile.in (install-*): reduced verbosity of installhobbs2000-02-015-59/+104
| | | | | | | | | | | | | | * win/tkWinPixmap.c (XGetGeometry): added support for windows in XGetGeometry [Bug: 4069] * win/tkWinFont.c (GetScreenFont): fixed possible mem overrun with long font names [Bug: 4108] * win/tkWinDialog.c: added EnableWindow calls to dialogs to correct for possible loss of control in parent Tk toplevel [Bug: 1212 et al] FossilOrigin-Name: 97a60a4857c1e41eedeefeffdb0f432156ccce64
* fixed transient window madnesshobbs2000-01-271-16/+45
| | | FossilOrigin-Name: a1fc8d65c78433fa5d89f9e22c85c991d1edf7bc
* fixes transient window crash when transient is destroyed while masterhobbs2000-01-271-6/+15
| | | | | | is iconified/withdrawn FossilOrigin-Name: 4903e2f7e7495d48e289f5ef5f4178820efdab1c
* removed deletehandler for transient master so that they willhobbs2000-01-211-1/+3
| | | | | | always trigger children when made visible FossilOrigin-Name: 0a3070379b24c57165a4e203b39f6e0759d5637b
* * win/tkWinWm.c (TkWmProtocolEventProc): cached atom name as thehobbs2000-01-211-33/+24
| | | | | | window could get destroyed during eval [Bug: 2513] FossilOrigin-Name: aa8ee77f09b31f11a5ebba018aee553a33cc9175
* fixed masterPtr reference problemhobbs2000-01-141-2/+2
| | | FossilOrigin-Name: 295b02e79f3fd8c972c54e08f2adc262dbcea691
* * unix/configure.in:core-8-3-b2hobbs2000-01-142-10/+77
| | | | | | | | | * win/configure.in: updated to patchlevel 8.3b2 * win/tkWinWm.c: added visibility event handler to make sure that transient window wrappers would be updated when the master was initially mapped. FossilOrigin-Name: c7f04d692db48c46f037743213476263dcda0d4c