summaryrefslogtreecommitdiffstats
path: root/win/tkWinButton.c
Commit message (Collapse)AuthorAgeFilesLines
* 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 pluginbug_9e487e9f15jan.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.
* | * doc/checkbutton.n: TIP#110 implementationhobbs2004-02-181-3/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * doc/radiobutton.n: Tristate Checkbutton and Radiobuttons * generic/tkButton.c: * generic/tkButton.h: * library/demos/check.tcl: * library/demos/radio.tcl: * macosx/tkMacOSXButton.c: * macosx/tkMacOSXDefault.h: * tests/button.test: * unix/tkUnixButton.c: * unix/tkUnixDefault.h: * win/tkWinButton.c: * win/tkWinDefault.h:
* | * generic/tk3d.c: All uses of 'panic' (the macro) changeddavygrvy2004-01-131-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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:
* | 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]
* correction to r1.19 fix to only incr inset when no image is usedhobbs2002-09-031-5/+7
|
* * tests/button.test: added button-14.1hobbs2002-09-021-61/+79
| | | | | | | * win/tkWinButton.c (TkpComputeButtonGeometry): correct Win button sizing to be equal for one-line buttons with -height of 0 or 1, as well as -height 0 buttons with empty text and no image, which should be the same as single-line text buttons. [Bug #565485]
* Fix for bug #582457: make radio and checkbuttons work like Windows whenmacosx_8_4_premerge_2002_08_31_trunkmacosx_8_4_merge_2002_08_30_trunkdrh2002-08-281-4/+31
| | | | -relief is sunken, -offrelief is flat, and -overrelief is raised.
* * win/tkWinButton.c (TkpDisplayButton): corrected display of focushobbs2002-07-241-9/+10
| | | | | ring around the actual text when the button is a compound button. [Bug #583691]
* Initial implementation of TIP #82: added the -offrelief option todrh2002-06-171-2/+2
| | | | | checkbutton and radiobutton to allow those widgets to have a MS-Office look and feel.
* * win/tkWinButton.c (TkpDisplayButton):hobbs2002-04-051-1/+5
| | | | | | * generic/tkTextMark.c (TkTextInsertDisplayProc): * generic/tkCanvText.c (DisplayCanvText): * generic/tkEntry.c (DisplayEntry): added Tk_SetCaretPos calls.
* * test/winButton.test:hobbs2001-12-291-99/+131
| | | | | | * win/tkWinButton.c: added updated patch #463234 which returns the default sizing behavior (not so native), but enables native L&F with negative sizing (-11 for example).
* * win/tkWinButton.c (TkpComputeButtonGeometry): corrected thehobbs2001-11-171-87/+227
| | | | | | | default size of Windows buttons to conform to the Windows style. This changes the default size of buttons on Windows. [Patch #463234] (nelson) **** POTENTIAL VISUAL INCOMPATABILITY ****
* Overall change: Implemented TIP 5, which exportsericm2000-11-221-5/+5
| | | | | | | | | TkClassProcs/TkSetClassProcs as Tk_ClassProcs/Tk_SetClassProcs, adding a size field to Tk_ClassProcs to allow for future expansion, and renaming the geometryProc to worldChangedProc, which is more in keeping with the actual use of the callback. See ChangeLog for details.
* * win/tkWinButton.c:hobbs2000-11-031-1/+10
| | | | | | | * 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.