summaryrefslogtreecommitdiffstats
path: root/win/tkWinDialog.c
Commit message (Collapse)AuthorAgeFilesLines
* remove unused variablesnijtmans2008-12-161-4/+2
|
* Fix some problems running the tests on windows. As Tk tests run in ↵patthoyts2008-12-101-1/+2
| | | | -singleproc 1 we cannot do the script testing without damaging the later native tests.
* Fixed windows build glitches for tip 324patthoyts2008-12-101-3/+3
|
* TIP #324 IMPLEMENTATIONdas2008-12-101-1/+540
|
* Lots of small changes to make code more pretty and C89-like.dkf2008-11-081-3/+2
|
* Add "const" to many internalnijtmans2008-10-171-12/+12
| | | | | | | | const tables, so those will be put by the C-compiler in the TEXT segment in stead of the DATA segment. This makes those table sharable in shared libraries.
* Greatly clean up Tk's handling of the writability of the Tcl result object.dkf2008-10-051-8/+10
|
* Get rid of pre-C89-isms (esp. CONST vs const).dkf2008-04-271-19/+19
|
* Fixed bug #1941740: tk_chooseColor -title was broken in revision 1.40 after ↵patthoyts2008-04-141-2/+4
| | | | some code cleanup. Added tests for this windows dialog to avoid regression.
* * win/tkWinDialog.c (Tk_MessageBoxObjCmd): pass "" instead of NULLhobbs2008-01-311-2/+2
| | | | when -title isn't set. [Bug #1881892]
* merge stable branch onto HEADdgp2007-12-131-1/+1
|
* * win/tkWinButton.c, win/tkWinDialog.c: use SetWindowLongPtr andhobbs2007-12-051-10/+1
| | | | | * win/tkWinScrlbr.c, win/tkWinWm.c: GetWindowLongPtr only. * win/ttkWinMonitor.c:
* * doc/getOpenFile.n: TIP#242 implementation of -typevariable tohobbs2007-10-251-29/+89
| | | | | | | | | * library/tkfbox.tcl: return type of selected file in file dialogs. * library/xmfbox.tcl: [Bug #1156388] * macosx/tkMacOSXDialog.c: * tests/filebox.test: * tests/winDialog.test: * win/tkWinDialog.c:
* Assorted minor cleanups.dkf2007-09-081-5/+5
|
* Fix bug #1692927 (buffer length problems). Added 'testfindwindow' and ↵patthoyts2007-08-011-32/+17
| | | | | | | 'testgetwindowinfo' and extended 'testwinevent' for WM_COMMAND support to enable testing native messagebox dialogs and added a new test file to use these functions.
* Many minute fixes to reduce number of minor warnings from GCC.dkf2007-01-111-2/+2
|
* ANSIficationdkf2005-12-021-46/+31
|
* Error fixes in GetFileNameW and GetFileNameAchengyemao2005-11-111-3/+3
|
* Fix [Bug 1353022]dkf2005-11-101-4/+13
|
* Factor out external-filename-to-internal code; the same pattern occurred a lot!dkf2005-11-101-199/+145
|
* * win/tkWinDialog.c (ChooseDirectoryValidateProc): reset storedhobbs2005-10-051-449/+2
| | | | | path to "" if it doesn't exist and -mustexist is true. [Bug 1309218] Remove old-style dir chooser (no longer used).
* Getting more systematic about styledkf2005-08-101-818/+834
| | | | | Also start removing _ANSI_ARGS_; the core's required ANSI C for a while now Also fix [Bug 1252702]; size_t doesn't mix with Tcl_GetStringFromObj
* Corrected handling of MacOS filetypes in tk_*file dialogsvincentdarley2004-12-201-10/+17
|
* * 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.
* Finish off the TIP#152 implementation with Win implementation, tests & docs.dkf2004-05-241-12/+29
|
* * 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.
* * generic/tk3d.c: All uses of 'panic' (the macro) changeddavygrvy2004-01-131-1/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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:
* * 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.
* * 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).