summaryrefslogtreecommitdiffstats
path: root/win/tkWinInit.c
Commit message (Collapse)AuthorAgeFilesLines
* Replace all instances of Tcl_WinTCharToUtf()/Tcl_WinUtfToTChar() with ↵jan.nijtmans2020-03-241-7/+8
| | | | | Tcl_UniCharToUtfDString()/Tcl_UtfToUniCharDString(), if possible (only for -DTCL_UTF_MAX=3, which is the default and only supported option) Backported, as far as possible, from 8.7. This helps moving away from Tcl_WinTCharToUtf()/Tcl_WinUtfToTChar(), even though it only becomes deprecated in 8.7.
* Add type-casts to many usage of Tcl_WinTCharToUtf(), so Tk compiles without ↵jan.nijtmans2019-09-241-1/+1
| | | | warnings when omitting -DUNICODE.
* *A() to *W() Win32 API changes, actually the same because Tk is already ↵jan.nijtmans2019-09-191-8/+2
| | | | compiled in UNICODE mode.
* TCHAR -> WCHAR conversions, since our TCHAR is actually WCHAR when compiling ↵jan.nijtmans2019-09-161-6/+6
| | | | everything in UNICODE mode on Windows.
* Don't use wcslen() in combination with Tcl_WinTCharToUtf(): Using -1 has the ↵jan.nijtmans2019-06-201-1/+1
| | | | same effect already (it even was wrong in tkWinTest.c's previous commit, forgot to multiply with sizeof(WCHAR)).
* Bugfix in tkWinClipboard: Failed to determine fname length in loop.jan.nijtmans2019-03-221-1/+1
|
* On Windows, use Tcl_WinTCharToUtf() in stead of Tcl_NewUnicodeObj(), since ↵jan.nijtmans2017-05-051-1/+6
| | | | | | Tcl_WinTCharToUtf() works correctly when TCL_UTF_MAX==6 while Tcl_NewUnicodeObj() doesn't. All changes taken over from androwish. Thanks to Christian Werner! And ... on the go ... fixed a few memory leaks correctly detected by Christian.
* Implemented more options for new tk_get{Open,Save} file dialogsashok2014-09-131-0/+51
| | | | Renamed Win32ErrorObj to TkWin32ErrorObj and moved it from tkWinSend.c to be generally available.
* Some more fixes for Cygwin32/64 in win32 GUI mode. jan.nijtmans2013-06-131-0/+14
|\ | | | | | | Now that this is fully working, eliminate all usage of WISH_BUILD_LIB_SPEC: TK_BUILD_LIB_SPEC can be used everywhere in stead. Remove some old carbon-leftovers from configure/make (see [3607215]).
| * Some more fixes for Cygwin32/64 in win32 GUI mode. jan.nijtmans2013-06-131-0/+14
| | | | | | | | Now that this is fully working, eliminate all usage of WISH_BUILD_LIB_SPEC: TK_BUILD_LIB_SPEC can be used everywhere in stead. Add tk.pc
* | Replace various functions calls, for functions which are small wrappers ↵jan.nijtmans2013-01-141-1/+1
| | | | | | | | around other functions, to call the wrapped function directly.
* | Purge RCS Keywordsdgp2011-06-081-2/+0
|\ \ | |/
| * Purge RCS Keywords.dgp2011-06-081-2/+0
| |\
| | * Purge RCS Keywords.dgp2011-06-081-2/+0
| | |
| * | re-wrote TkpDisplayWarning such that it does not use an Tcl API calls any ↵nijtmans2010-11-241-15/+9
| | | | | | | | | | | | | | | | | | | | | more, so it works even with an ill-initialized Tcl Teach WishPanic how to thread UTF-8 in it's messagebox. Both of those changes backported from Tcl 8.6. No change in functionality.
* | | Remove casts from uses of ckalloc/ckfree/... now that Tcl declares them to bedkf2011-03-121-1/+1
| | | | | | | | | using useful casts internally.
* | | refactor isatty() function for Windowsnijtmans2010-12-171-10/+21
| | | | | | | | | | | | Let TkpDisplayWarning() send the message directly to the debugger, if available, otherwise do as before
* | | re-write TkpDisplayWarning not to use any Tcl functions any more. This ↵nijtmans2010-11-241-15/+9
| | | | | | | | | | | | allows TkpDisplayWarning to be used as panic proc on Windows
* | | Eliminate tkpMenubuttonClassnijtmans2010-01-131-2/+2
| | | | | | | | | | | | | | | make tkpButtonProcs CONST fix gcc warnings: missing initializer
* | | Get rid of pre-C89-isms (esp. CONST vs const).dkf2008-04-271-4/+4
|/ /
* | merge stable branch onto HEADdgp2007-12-131-1/+1
| |
* | * generic/tkWindow.c (Initialize): Moved common Tk initializationdgp2007-09-061-8/+2
| | | | | | | | | | | | | | | | | | | | | | * generic/tkInitScript.h (removed): script out of tkInitScript.h * macosx/tkMacOSXInit.c: and multiple TkpInit() routines and * unix/Makefile.in: into the common Initialize() routine in * unix/tkUnixInit.c: generic code. Also removed constraint on * win/tkWinInit.c: ability to define a custom [tkInit] before calling Tk_Init(). Until now the custom [tkInit] had to be a proc. Now it can be any command. Removal of tkInitScript.h also fixes [Bug 1656283].
* | ANSIficationdkf2005-12-021-22/+32
|/
* * win/tkWinInit.c (TkpDisplayWarning): truncate MessageBox stringhobbs2003-02-181-1/+10
| | | | | to 1024 chars to prevent possible oversized window errors. May be necessary in other MB uses (ie Tcl_AppInit). [Tcl Bug #608559]
* * generic/tkInt.decls: add TkWinSetHINSTANCE declhobbs2002-12-081-5/+4
| | | | | | | | | | * generic/tkIntPlatDecls.h: regen * generic/tkStubInit.c: regen * win/tkWinInit.c (TkpInit): While init and cleanup aren't correct * win/tkWinX.c (TkWinXInit): in DllMain, we had to specify the * win/tkWin32Dll.c (DllMain): true HINSTANCE or the resources of a dynamic Tk weren't being loaded correctly. Created a new function TkWinSetHINSTANCE for this purpose.
* * win/tkWinInt.h: declaration for TkWinGetUnicodeEncodinghobbs2002-04-121-2/+2
| | | | | | | * win/tkWinDialog.c (GetFileNameW): use TkWinGetUnicodeEncoding * win/tkWinInit.c (TkpDisplayWarning): use TkWinGetUnicodeEncoding * win/tkWinFont.c: use TkWinGetUnicodeEncoding instead of static unicodeEncoding.
* * win/tkWinInit.c (TkpGetAppName): TIP 27 fixup. The code now doesandreas_kupries2002-01-291-4/+6
| | | | | not write into the CONST path returned by "argv0" and Tcl_SplitPath anymore.
* * Updated callers of Tcl_SplitList and Tcl_Merge.dgp2002-01-251-4/+4
| | | | | | | | | * Updated callers of Tcl_GetStringResult. Rewrote PrintScrollFractions to ScrollFractions to stop scribbling directly on interp->result. * Updated callers of Tcl_GetVar, Tcl_GetVar2 * Updated callers of Tcl_SplitPath, Tcl_JoinPath, and Tcl_TranslateFileName.
* win/tkWinInit.c (TkpDisplayWarning): added Tcl_DStringFreeshobbs2001-12-281-1/+3
|
* * win/tkWinInit.c (TkpDisplayWarning): Use MessageBoxW in case thehobbs2001-12-281-2/+9
| | | | error displayed has unicode chars. [Bug #485986]
* * win/tkWinDialog.c: added unicode-aware open/save file dialogshobbs2000-03-311-1/+7
| | | | | | | | | | | | | | | | | | | | | | | * 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]
* * Merged 8.1 branch into the main trunkstanton1999-04-161-2/+2
|
* Replaced SCCS strings, fixed binary filesstanton1998-09-141-1/+1
|
* Initial revisionrjohnson1998-04-011-0/+121