summaryrefslogtreecommitdiffstats
path: root/win/tkWinDialog.c
Commit message (Collapse)AuthorAgeFilesLines
* * win/tkWinDialog.c (ChooseDirectoryValidateProc): reset storedhobbs2005-10-051-1/+3
| | | | path to "" if it doesn't exist and -mustexist is true. [Bug 1309218]
* * win/tkWinDialog.c (EatSpuriousMessageBugFix): Fix a problem withhobbs2004-08-201-2/+50
| | | | | double clicks in file dialogs falling through to the window underneath in win32. [Patch #611615]
* * win/tkWinDialog.c (Tk_MessageBoxObjCmd): Inherit the icon fromhobbs2004-08-201-1/+48
| | | | | * win/tkWinInt.h: the -parent window for * win/tkWinWm.c (TkWinGetIcon): the MessageBox.
* * win/tkWinDialog.c (ChooseDirectoryValidateProc): create a pidlhobbs2004-02-131-7/+40
| | | | | for -initialdir if we have a UNC path because BFFM_SETSELECTION doesn't support UNC paths in strings.
* * win/tkWinDialog.c: doubled the TK_MULTI_MAX_PATH value to ~10K.hobbs2003-07-181-3/+3
| | | | | This is a short-term solution until the -multiple option is extended. [Bug 641261]
* * win/tkWinDialog.c (Tk_ChooseDirectoryObjCmd,mdejong2003-01-141-5/+4
| | | | | | | | ChooseDirectoryValidateProc, Tk_MessageBoxObjCmd): Remove unused tsdPtr variable. Use TEXT macro instead of _T macro since _T does not work under Cygwin. Declare flags as UINT to avoid compiler warning when compiling with mingw.
* compilation, link fixesvincentdarley2002-08-141-1/+16
|
* * win/tkWinDialog.c: enabled use of the updated native Windowshobbs2002-08-081-7/+3
| | | | | directory browser (tk_chooseDirectory). This does require shell32.dll v4.71 or greater. [Patch #468139]
* * win/tkWinDialog.c (Tk_ChooseDirectoryObjCmd): initializehobbs2002-07-111-4/+9
| | | | | utfTitle to NULL, add a few more notes about limitations of possible new Tk_ChooseDirectoryObjCmd function.
* * win/tkWinInt.h: declaration for TkWinGetUnicodeEncodinghobbs2002-04-121-3/+3
| | | | | | | * win/tkWinDialog.c (GetFileNameW): use TkWinGetUnicodeEncoding * win/tkWinInit.c (TkpDisplayWarning): use TkWinGetUnicodeEncoding * win/tkWinFont.c: use TkWinGetUnicodeEncoding instead of static unicodeEncoding.
* * modified some callers of Tcl routines thatdgp2002-02-081-3/+2
| | | | were restored to return (char *) pointing into Tcl_DStrings.
* * Overloked Tcl_GetIndexFromObj callersdgp2002-01-181-11/+11
|
* * win/tkWinDialog.c (Tk_MessageBoxObjCmd): use MessageBoxW forhobbs2001-12-281-7/+434
| | | | | | | | proper display of unicode errors. Added patch which uses new OLE based directory chooser. This still has some issues, so is disabled by default. [Patch #468139] (ColorDlgHookProc) Corrected ability to use unicode chars in tk_chooseColor -title.
* minor cast changes to support Win64hobbs2001-10-011-24/+6
|
* * win/tkWinDialog.c (ChooseDirectoryHookProc): work-around for MShobbs2001-08-281-24/+22
| | | | | bug that caused crashing in tk_chooseDirectory on Win95. [Bug #224936] (baker)
* win/tkWinDialog.c (GetFileNameA): initialize multi to 0.hobbs2001-04-041-2/+2
|
* * win/tkWinDialog.c (GetFileNameA): added support for -multiple tohobbs2001-03-301-38/+162
| | | | | | ascii-based tk_getOpenFile (Win9*). (haneef) [Patch #403047] (GetFileNameW): increased number of files that could be returned by tk_getOpenFile -multiple. [Patch #412042]
* * win/tkWinButton.c:hobbs2000-11-031-6/+57
| | | | | | | * win/tkWinDialog.c: * win/tkWinScrlbr.c: * win/tkWinWm.c: fixed up code for Win64 support. This mostly remains in _WIN64 #ifdef's, until updated compilers are standard.
* * tests/winDialog.test: Corrected expected results for bad optionericm2000-11-021-108/+38
| | | | | | | | | tests (5.2, 5.5) to include -multiple option. * win/tkWinDialog.c: Removed CommDlgExtendedError() checks for color and choosedir dialogs, and removed all except the explicit invalid filename checks for the file dialogs.
* * win/tkWinDialog.c (GetFileNameW, GetFileNameA,hobbs2000-11-021-5/+61
| | | | | | Tk_ChooseDirectoryObjCmd): created work-around for change in NT5.0/98 that caused no initialdir setting to open the browser up in the user's documents dir.
* * win/tkWinDialog.c: Added branch for 0 return fromericm2000-11-021-8/+56
| | | | | | | | CommDlgExtendedError() switches; this was formerly treated as an error, but it actually is not, since it just means the user hit cancel or closed the dialog. (GetFileNameW): Added better smarts such that -multiple is not considered a valid option for tk_getSaveFile.
* * win/tkWinDialog.c (GetFileNameW, GetFileNameA,ericm2000-10-191-10/+122
| | | | | | | Tk_ChooseColorObjCmd, Tk_ChooseDirectoryObjCmd): Added error checking for the return value from the common dialog functions, so that the commands will not silently fail if the common dialog returns an error. [Bug: 6369].
* * generic/tkFileFilter.c (AddClause): Cast to match function prototype.mo2000-07-061-2/+1
| | | | | | | | | | | | | | | * win/stubs.c (_XInitImageFuncPtrs): Add return value for function. * win/tkWinButton.c (buttonStyles, ButtonBindProc, ComputeStyle): Remove unused declarations. * win/tkWinColor.c (GetColorByName, GetColorByValue): Remove unused function declarations. * win/tkWinDialog.c (TrySetDirectory): Remove unused function declaration. * win/tkWinEmbed.c (TkWinEmbeddedEventProc): Cast to match function prototype. * win/tkWinMenu.c (winMenuMutex, MenuExitProc): Remove unused declaration. * win/tkWinWindow.c (StackWindow): Remove unused declaration. * win/tkWinWm.c (ConfigureEvent): Remove unused declaration. * win/tkWinX.c (winXMutex): Remove unused declaration. * xlib/ximage.c (XCreateBitmapFromData): Cast to match function prototype.
* Removed unused variable declaration.ericm2000-06-151-2/+1
|
* reverted to 1.26 revision to fix bad 1.27 checkinericm2000-06-151-19/+103
|
* * 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).
* * 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/tkWinDialog.c: added unicode-aware open/save file dialogshobbs2000-03-311-18/+328
| | | | | | | | | | | | | | | | | | | | | | | * 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/Makefile.in (install-*): reduced verbosity of installhobbs2000-02-011-9/+42
| | | | | | | | | | | | * 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]
* Merged 8-1-0 into mainline.rjohnson1999-04-211-1/+1
|
* fixed Tk comment errorssurles1999-04-161-2/+2
|
* * Merged 8.1 branch into the main trunkstanton1999-04-161-605/+986
|
* Replaced SCCS strings, fixed binary filesstanton1998-09-141-1/+1
|
* Initial revisionrjohnson1998-04-011-0/+1050