summaryrefslogtreecommitdiffstats
path: root/win
Commit message (Collapse)AuthorAgeFilesLines
...
* extra careful quotinghobbs2000-04-251-2/+2
|
* winhelp target improvementshobbs2000-04-251-1/+2
|
* * unix/Makefile.in:hobbs2000-04-251-24/+28
| | | | * win/Makefile.in: makefile cleanup
* * 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
* * 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
* * 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).
* * 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).
* * 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].
* * 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.
* * 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.
* * win/tkWinColor.c (FindSystemColor): correct calculation ofhobbs2000-04-171-14/+15
| | | | colors when shifting value. [Bug: 4919]
* clarified internal commentshobbs2000-04-151-2/+2
|
* * 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]
* * 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.
* * 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.
* * 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.
* * 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].
* * 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.
* * 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
* * 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]
* * 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.
* * win/tkWinFont.c (GetScreenFont): corrected adjustment againsthobbs2000-04-071-8/+14
| | | | LC_FACESIZE limitation for NT. [Bug: 4931]
* * 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]
* * 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.
* * 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]
* * 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).
* flipped debug bithobbs2000-02-101-2/+2
|
* * 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
* * 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]
* * 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
* * 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]
* fixed transient window madnesshobbs2000-01-271-16/+45
|
* fixes transient window crash when transient is destroyed while masterhobbs2000-01-271-6/+15
| | | | is iconified/withdrawn
* removed deletehandler for transient master so that they willhobbs2000-01-211-1/+3
| | | | always trigger children when made visible
* * win/tkWinWm.c (TkWmProtocolEventProc): cached atom name as thehobbs2000-01-211-33/+24
| | | | window could get destroyed during eval [Bug: 2513]
* fixed masterPtr reference problemhobbs2000-01-141-2/+2
|
* * 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.
* * win/tkWinScrlbr.c: added check for valid hwnd in ModalLoopProchobbs2000-01-131-10/+12
| | | | to avoid crash when building statically
* * 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.
* * win/tkWinImage.c: added static declaration to functionhobbs2000-01-061-3/+3
|
* * win/configure.in:hobbs1999-12-212-14/+14
| | | | | * win/aclocal.m4: * README: updated for patch level 8.3b1
* Removed tcl.hpj from list of output files.wart1999-12-161-2/+2
|
* * 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.
* * win/tkWinDraw.c:hobbs1999-12-142-40/+131
| | | | | * win/tkWinPointer.c: added support for pointer warping and platform specific support for dash patch items
* Fixed "doc" target so that it copies man.macros from Tclwart1999-12-131-3/+3
|
* * win/makefile.vc: removed 16bit stuff, simplified makefile.hobbs1999-12-091-82/+45
|
* Added support for building Windows winhelp files.wart1999-12-073-4/+77
|
* * 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.
* Replaced references to mkinstalldirs with mkdir -pwart1999-11-231-5/+4
|
* Removed bogus dependency on "installdirs"wart1999-11-231-2/+2
|