summaryrefslogtreecommitdiffstats
path: root/win/tkWinButton.c
Commit message (Collapse)AuthorAgeFilesLines
* More TCHAR -> WCHAR conversionsjan.nijtmans2019-06-111-4/+4
|
* Fix bug [1001070]: make labels use -highlightbackgroundculler2019-04-241-5/+15
|\
| * *Really* don't change the behavior for *buttons, even with they have ↵fvogel2019-03-311-3/+4
| | | | | | | | -default active
| * Restore behavior of checkbuttons and radiobuttons on Windows. They again do ↵fvogel2019-03-311-2/+5
| | | | | | | | not take -highlightbackground into account, in an attempt to follow platform specific conventions. The code now only changes this for labels.
| * Make labels, checkbuttons and radiobuttons honor -highlightbackground and ↵fvogel2019-03-311-5/+11
| | | | | | | | -highlightcolor options on Windows.
* | Merge 8.6jan.nijtmans2019-01-101-1/+1
|\ \ | |/
| *-. Merge 8.6 and all changes from original [bug-9e31fd9449] branchjan.nijtmans2019-01-081-7/+8
| |\ \
| | | * Fix [9e31fd944934e269121fa78ff56b7b86f33e6db6|9e31fd9449]: X11/X.h and ↵jan.nijtmans2019-01-081-1/+1
| | | |\ | | | | | | | | | | | | | | | | | | | | | | | | | Windows.h have conflicting symbols. *** POTENTIAL INCOMPATIBILITY *** on Windows only: gcc/clang/MSVC will generate new warnings in extensions when the "None" symbol is used incorrectly. Those warnings are all fixed in the core, that's what most of this commit is doing.
| | | | * Bring back more original "None" usages, and fix other warnings which ↵jan.nijtmans2019-01-031-7/+8
| | | | | | | | | | | | | | | | | | | | | | | | | gradually slipped in. Wherever possible, pragma's are used in MSVC to silence useless compiler warnings.
| * | | | Fix [9e31fd9449]: X11/X.h and Windows.h have conflicting symbols jan.nijtmans2018-12-201-3/+3
| |\ \ \ \ | | | |_|/ | | |/| | *** POTENTIAL INCOMPATIBILITY *** for Win32 only: On X11 and Mac, "None" can still be used as before
| | * | | Fix [9e31fd944934e269121fa78ff56b7b86f33e6db6|9e31fd9449]: X11/X.h and ↵jan.nijtmans2018-12-201-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | Windows.h have conflicting symbols. Also fix a few newer (harmless) gcc warnings.
* | | | | Merge 8.6jan.nijtmans2019-01-041-4/+5
|\ \ \ \ \ | | |_|/ / | |/| | |
| * | | | Merge 8.5jan.nijtmans2019-01-041-4/+5
| |\ \ \ \ | | |/ / / | |/| | / | | | |/ | | |/|
| | * | Fix a few minor compiler warnings, occurring in later gcc/clang versions.jan.nijtmans2019-01-041-4/+5
| | |/
* | | Eliminate USE_OLD_TAG_SEARCH: It isn't used and tested any more.jan.nijtmans2018-12-081-5/+5
|/ / | | | | Eliminate a ton of unnecessary type casts
* | Fix [9e487e9f158b3aeda2b92ca75deb3abc04e21a61|9e487e9f15]: Fix for ↵jan.nijtmans2014-10-111-13/+21
|\ \ | |/ | | | | tkWinButton to avoid problems in plugin
| * Fix [9e487e9f158b3aeda2b92ca75deb3abc04e21a61|9e487e9f15]: Fix for ↵jan.nijtmans2014-10-111-13/+21
| |\ | | | | | | | | | tkWinButton to avoid problems in plugin
| | * Ticket [9e487e9f15]: Fix for tkWinButton to avoid problems in pluginjan.nijtmans2014-10-011-12/+20
| |/
| * Backport of ::tk::mac::useCompatibilityMetrics handling and scrollbar ↵jan.nijtmans2012-10-231-5/+2
| | | | | | | | metrics handling from trunk
| * [Bug 3388350] mingw64 compiler warningsjan.nijtmans2011-08-131-0/+1
| |\
* | \ Purge RCS Keywordsdgp2011-06-081-2/+0
|\ \ \ | |/ /
| * | Purge RCS Keywords.dgp2011-06-081-2/+0
| |\ \ | | |/
| | * Purge RCS Keywords.dgp2011-06-081-2/+0
| | |
| | * [Bug 2956548] TkpButtonSetDefaults only initializes one button typenijtmans2010-03-121-66/+15
| | | | | | | | | | | | Fix 2 minor gcc warnings in tkWinTest.c
| | * Fix for [Bug 1739613]Joe Mistachkin2009-11-021-2/+40
| | |
| | * (TkpDisplayButton): lint init. [Bug 1618604]hobbs2006-12-191-2/+2
| | |
| | * correct imageYOffset for buttons with just imageshobbs2003-10-101-4/+4
| | |
| | * * generic/tkButton.h: Rewrote the handlinghobbs2003-04-261-31/+42
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * generic/tkButton.c (TkButtonWorldChanged): of compound *buttons * mac/tkMacButton.c (TkpDisplayButton): to correctly display * macosx/tkMacOSXButton.c (TkpDisplayButton): mixture of disabledfg, * unix/tkUnixButton.c (TkpDisplayButton): selectcolor, indicator, * win/tkWinButton.c (TkpDisplayButton): etc. *buttons will now only stipple the image, unless no disabledfg is given, in which case it will stipple the whole button.
| | * * unix/tkUnixButton.c (TkpDisplayButton): Use the normalTextGc whenhobbs2003-04-251-9/+12
| | | | | | | | | | | | | | | | | | * win/tkWinButton.c (TkpDisplayButton): displaying disabled text that have images, as they get a gray50 stipple as well and the disabledGc is not set up correctly for font drawing. [Bug #477740]
| * | [Bug 2956548] TkpButtonSetDefaults only initializes one button typenijtmans2010-03-121-55/+4
| | | | | | | | | | | | | | | Fix various gcc warnings, all backported from Tk 8.6 VC6++ does not have SPI_SETKEYBOARDCUES
| * | Fix for [Bug 1739613]Joe Mistachkin2009-11-021-2/+40
| | |
| * | [Bug 2860827] Backported patch avoiding 3D effects with user-specified ↵patthoyts2009-10-051-9/+13
| | | | | | | | | | | | backgrounds
* | | Remove casts from uses of ckalloc/ckfree/... now that Tcl declares them to bedkf2011-03-121-2/+2
| | | | | | | | | using useful casts internally.
* | | Fix various 64-bit gcc(-4.5.2) warnings: cast from pointer to integer of ↵nijtmans2010-11-291-3/+3
| | | | | | | | | | | | different size
* | | Unnessarary TCL_STORAGE_CLASS re-definitionsnijtmans2010-04-291-5/+5
| | | | | | | | | | | | | | | | | | Make various functions MODULE_SCOPE TCHAR-related fixes, making al those files compile fine when TCHAR != char.
* | | Put all Tk_OptionSpec for buttons and labelsnijtmans2010-02-181-59/+5
| | | | | | | | | | | | | | | | | | in const memory. With some changes to win32 and macosx, preventing direct writes to read-only memory.
* | | Eliminate tkpMenubuttonClassnijtmans2010-01-131-2/+3
| | | | | | | | | | | | | | | make tkpButtonProcs CONST fix gcc warnings: missing initializer
* | | Fix for [Bug 1739613]Joe Mistachkin2009-11-021-2/+40
| | |
* | | [Bug #2860827] avoid 3D effects with user-specified backgroundspatthoyts2009-10-051-9/+13
| | | | | | | | | | | | | | | | | | | | | The default disabled text is embossed on Windows. But this looks poor when a non-default background color is in use. This patch disables the embossed effect for buttons and labels when the background is non- standard.
* | | TIP 337dgp2008-12-091-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * generic/tkBind.c: Updated callers of Tcl_BackgroundError() * generic/tkCanvas.c: to use the new routine * generic/tkEntry.c: Tcl_BackgroundException() as appropriate. * generic/tkImgBmap.c: * generic/tkListbox.c: * generic/tkSelect.c: * generic/tkTextDisp.c: * generic/tkTextWind.c: * macosx/tkMacOSXHLEvents.c: * macosx/tkMacOSXMenu.c: * macosx/tkMacOSXMenus.c: * macosx/tkMacOSXScale.c: * macosx/tkMacOSXWindowEvent.c: * unix/tkUnixScale.c: * unix/tkUnixWm.c: * win/tkWinButton.c: * win/tkWinMenu.c: * win/tkWinScrlbr.c: * win/tkWinWm.c:
* | | Add "const" to many internalnijtmans2008-10-171-2/+2
|/ / | | | | | | | | | | | | | | 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.
* | Add in missing function definitions to support plain MSVC6 and usepatthoyts2007-12-141-3/+3
| | | | | | | | | | INT_PTR rather than LONG_PTR which isn'tr defined in the msvc6 headers.
* | 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:
* | Many minute fixes to reduce number of minor warnings from GCC.dkf2007-01-111-8/+11
| |
* | (TkpDisplayButton): lint init. [Bug 1618604]hobbs2006-12-191-2/+2
| |
* | * win/tkWinButton.c (InitBoxes): Call Tcl_Panic()mdejong2006-12-121-2/+5
| | | | | | | | | | | | | | | | | | | | | | | | if loading of bitmap resources fails. This change generates an error if Tk is unable to find button widget resources instead of silently failing and then drawing widgets incorrectly. win/rc/tk_base.rc: If the user defines BASE_NO_TK_ICON then compile the base resources file without a "tk" icon. This change makes it easier to replace the default tk icon with a custom icon. [Patch 1614362]
* | More fixes (mostly getting rid of excess spaces)dkf2005-12-021-20/+19
| |
* | ANSIficationdkf2005-12-021-406/+462
| |
* | win/tkWinButton.c: Add a 3D highlight to disabled *buttons anda_kovalenko2004-06-161-1/+25
| | | | | | | | labels, the same way as it's now done for disabled menu entries.