summaryrefslogtreecommitdiffstats
path: root/win
Commit message (Collapse)AuthorAgeFilesLines
* * 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
* * win/tkWinScrlbr.c: added check for valid hwnd in ModalLoopProchobbs2000-01-131-10/+12
| | | | | | to avoid crash when building statically FossilOrigin-Name: 5f3e690021d3afded504ae9ff30d98c409028617
* * unix/tkUnixWm.c: fixed possible X error being raised [Bug: 3377]hobbs2000-01-121-51/+151
| | | | | | | | | | * win/tkWinWm.c: wm deiconify in zoom state [Bug: 2077], fixed possible flashing of unmapped toplevel in deiconify [Bug: 3338] and fixed mapping of transient window [Bug: 572] Also, for all wm's, extended 'wm state' command to allow setting of the state, and added official support of 'zoomed' state on Win. FossilOrigin-Name: 7b90c5d67202ebdffc3b1373824607e536f635a0
* * win/tkWinImage.c: added static declaration to functionhobbs2000-01-061-3/+3
| | | FossilOrigin-Name: d765d110402145e53ba218ee992ab8ac72d3c41a
* * win/configure.in:hobbs1999-12-212-14/+14
| | | | | | | * win/aclocal.m4: * README: updated for patch level 8.3b1 FossilOrigin-Name: 3f8fd1559167a4ce14dcbd63e93cfbd127e8e604
* Removed tcl.hpj from list of output files.wart1999-12-161-2/+2
| | | FossilOrigin-Name: e532354d9626778fe6e5287d56cc23b68a334fb5
* * win/tkWinCursor.c: added support for Windows cursors tohobbs1999-12-163-6/+46
| | | | | | | | | | | | TkGetCursorByName (.ani, .cur) using -cursor @<filename> (Ascher) [Bug: 1350] * win/tkWinWm.c: fixed 'wm deiconify' to update position of the toplevel if event is waiting before mapping. (Mao) [Bug: 3687] This removes the need for 'update idle' before 'wm deiconify' on Windows. FossilOrigin-Name: e7aa2a517ac9d86186daa5274230776997172f85
* * win/tkWinDraw.c:hobbs1999-12-142-40/+131
| | | | | | | * win/tkWinPointer.c: added support for pointer warping and platform specific support for dash patch items FossilOrigin-Name: 182e9eb9199a03d0b4a6634ebe00d9871ecbadb2
* Fixed "doc" target so that it copies man.macros from Tclwart1999-12-131-3/+3
| | | FossilOrigin-Name: 312768a83a8e43e06d0d6fab46911ca97e4c955d
* * win/makefile.vc: removed 16bit stuff, simplified makefile.hobbs1999-12-091-82/+45
| | | FossilOrigin-Name: fd4f9e17e78e40d5ff9cfda6181dd8f3a7057679
* Added support for building Windows winhelp files.wart1999-12-073-4/+77
| | | FossilOrigin-Name: 7780fdd167defaf17c8261cfaa606417cbd377f9
* * generic/tkMain.c :redman1999-12-021-9/+50
| | | | | | | | | * unix/tkAppInit.c: * win/winMain.c: Added added hooks into the main() code for supporting TclPro and other "big" shells more easily without requiring a copy of the main() code. FossilOrigin-Name: b63cb594110edc0757028e2f29b0b026628982fa
* Replaced references to mkinstalldirs with mkdir -pwart1999-11-231-5/+4
| | | FossilOrigin-Name: 85419951cd822cfa0a7d1602947bcf81e2b4532d
* Removed bogus dependency on "installdirs"wart1999-11-231-2/+2
| | | FossilOrigin-Name: 5474205071f5af40effbc2a0adcd33b8b391c550
* * win/tkWinInt.h: removed TkFontAttributes typedef (washobbs1999-11-193-8/+8
| | | | | | | | | | redundant with tkFont.h). * win/tkWinPort.h: put #ifndef __GNUC__ around redefinition of str[n]casecmp, as cygwin uses the originals. * win/tkWinX.c: changed GetCurrentTime to GetTickCount (the former is deprecated). [Bug: 2053] FossilOrigin-Name: 9817763038db6ca12771e36e2114bdb5b71fd3ca
* Use mkdir -p to create the install directories (like Tcl already does)wart1999-11-181-6/+7
| | | FossilOrigin-Name: 8cfa27a82e2ccb65fba46b85c97b5749d8b16c0e
* * tests/listbox.test: Fixed tests to comply with new objectifiedericm1999-11-171-1/+2
| | | | | | | | | | error messages. No -listvar specific tests yet. * win/tkWinDefault.h: * unix/tkUnixDefault.h: * mac/tkMacDefault.h: Added default value for -listvar option. FossilOrigin-Name: ca26a18f317d56513dbd0b49b8a82c1c112668a1
* * win/winMain.c: corrected winMain to not do a DebugBreak whenhobbs1999-11-101-2/+6
| | | | | | returning an error message from the top level FossilOrigin-Name: 573f3d0c33b3530b217d41afa5aa1b55af4df38c
* * win/tkWinKey.c: fixed XKeysymToKeycode to handle mapping ofhobbs1999-10-301-10/+13
| | | | | | symbolic keysyms (Left, Home, ...) with event generate FossilOrigin-Name: 1a19e736c078e6010a7f3613c9b8841d569ffee3
* * makefile.vc: changed 'c:/program files' to c:/progra~1hobbs1999-10-292-8/+6
| | | FossilOrigin-Name: 64b1cc54ed0f91d4e5eb1574f953ec7824f674f8
* 1999-09-24 Jeff Hobbs <hobbs@scriptics.com>hobbs1999-10-013-10/+10
| | | | | | | | | | | | | | | * */README: * win/makefile.vc: * */configure.in: * generic/tk.h: * library/tk.tcl: up'd to 8.3a1 * unix/Makefile.in: changed 'mkdir' to 'mkdir -p' * library/dialog.tcl: changed {Times 18} to {Times 12} for dialog font. FossilOrigin-Name: 0d267eb835a566c144fae8e05ddbbc61f8451f1c
* 1999-09-16 Jeff Hobbs <hobbs@scriptics.com>hobbs1999-09-213-7/+18
| | | | | | | | | | | | | | | | | | | | | | | | | * generic/tkFont.c: fixed processing of font options and error returned [Bug: 2075] * win/tkWinWm.c: fixed bug in 'wm deiconify' that raised the wrong toplevel, and changed it to not set focus on overridden toplevels 1999-09-15 Jeff Hobbs <hobbs@scriptics.com> * unix/aclocal.m4: added fix for FreeBSD-[1-2] recognition [Bug: 2070] and fix to AIX-* to get ldAix right [Bug: 2624], fixed AIX version check (readjust from 8-21 fix) and several other config fixes for AIX * mac/tkMacMenubutton.c: * unix/tkUnixMenubu.c: fixed permanently stippled menubutton image * win/tkWinButton.c: fixed possible pointer smash [Bug: 2733] 1999-09-14 Jeff Hobbs <hobbs@scriptics.com> * win/tkWinMenu.c: fix for stack overrun in GetTextFace [Bug: 909] FossilOrigin-Name: 8b23a0f7f176faa57f568a25735ed084b2666a90
* added DEMOPROGSstanton1999-09-181-1/+3
| | | FossilOrigin-Name: 9e45d573ac1f12a08cae1a21ce29ddf295265d5d
* 1999-09-14 Jeff Hobbs <hobbs@scriptics.com>hobbs1999-09-151-2/+2
| | | | | | * win/tkWinMenu.c: fix for stack overrun in GetTextFace [Bug: 909] FossilOrigin-Name: 11691dc388f86271349dd713e89eef4780c93b3f
* Made sure that the tkConfig.sh file is always installed.wart1999-09-102-4/+6
| | | | | | | configure now substitutes XINCLUDES in tkConfig.sh. Needed for Tk extensions like Itk. FossilOrigin-Name: 80e6cb780519b75e9d47cfe0c038c6a5958ece1f
* * win/tkWinDraw.c:hobbs1999-09-021-10/+9
| | | | | | | | | * unix/tkUnixDraw.c: fixed header style for TkpDrawHighlightBorder * generic/tkCanvas.c: fixed GC error (bg <> fg) in tkCanvas.c (from code added to support TkpDrawHighlightBorder) [Bug: 2676] * unix/aclocal.m4: added -bnoentry to the AIX-* flags FossilOrigin-Name: 3cf8a372fcc82ce1adb12643187e3a468bbd894b
* Added "make doc" target that copies the man.macros file from Tcl.wart1999-08-261-2/+5
| | | FossilOrigin-Name: f1364e76b9c4732ee8eadfdf81128f9e7f3b1f48
* Change version numbers to 8.2.0redman1999-08-101-2/+2
| | | FossilOrigin-Name: 732af4c744482f60d74133cc0710e842be88bf0c
* 1999-08-10 Jeff Hobbs <hobbs@scriptics.com>core-8-2-b3-basehobbs1999-08-101-1/+7
| | | | | | | | * win/tkWinWm.c: changed "wm deiconify" on Windows to raise and force the focus on the deiconified window (behavioral change from 8.1 to comply better with Windows style) [Bug: 1609] FossilOrigin-Name: 34dd58bbd57e44100a9a45f4cf5f0e20b8492d33