summaryrefslogtreecommitdiffstats
path: root/win/tkWinButton.c
Commit message (Collapse)AuthorAgeFilesLines
* [Bug 2956548] TkpButtonSetDefaults only initializes one button typenijtmans2010-03-121-66/+15
| | | | | | Fix 2 minor gcc warnings in tkWinTest.c FossilOrigin-Name: 42f3252288e1626ad79dc65ef32fced0ad13c7b6
* Fix for [Bug 1739613]mistachkin2009-11-021-2/+40
| | | FossilOrigin-Name: 69f4b2253a37ef276ee3c5992aa302240b2dfb6f
* (TkpDisplayButton): lint init. [Bug 1618604]hobbs2006-12-191-2/+2
| | | FossilOrigin-Name: 3b9264abfda68fb5d7f10ff8acac1a967d3b7220
* correct imageYOffset for buttons with just imageshobbs2003-10-101-4/+4
| | | FossilOrigin-Name: 2f286539371b5828da5aa926c1e464124301aed3
* * 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. FossilOrigin-Name: 6e8bda65b8ba2dd0a752ecffcd03955feadd3093
* * 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] FossilOrigin-Name: 069316b2e3ce03439a944683226db04795d4b188
* correction to r1.19 fix to only incr inset when no image is usedhobbs2002-09-031-5/+7
| | | FossilOrigin-Name: 3cfb6a2490be5db3d9844c5dcbf29a3e0175a50a
* * 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] FossilOrigin-Name: 0c303d23f98178dc5ea7f23cf7a139739184f189
* 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. FossilOrigin-Name: 9abdf011ca88bab450f8f209eef2613da8ec603f
* * 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] FossilOrigin-Name: 4ba93c3151325a3fd36ee294b4f71d0749bf5ab0
* 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. FossilOrigin-Name: 882e41f5ee6e4ceae781257e3442e7882a9cd4d4
* * 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. FossilOrigin-Name: eb1f6c15c2ec7a1c61a0faeeee4eda55fb73b9c6
* * 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). FossilOrigin-Name: 1212ac05ffc669b8894ad1f69c35fabd8fa6438a
* * 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 **** FossilOrigin-Name: a6841ebfc625352fd53069637b75984537242b02
* 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. FossilOrigin-Name: df44e48c3137a98d587cec736ae6ffa531369353
* * 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. FossilOrigin-Name: 5ecc849554894ba1b41dcaac71afd55dbe4c6e9b
* * generic/tkFileFilter.c (AddClause): Cast to match function prototype.mo2000-07-061-10/+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. FossilOrigin-Name: 51f47c0c03aff365cd11fd45c22dc16f8da2f17a
* * doc/SetOptions.3: Added information about TK_OPTION_NULL_OK withericm2000-05-171-15/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | TK_OPTION_RELIEF. * win/tkWinButton.c: Removed bits about TK_RELIEF_LINK. * tests/button.test: Added tests for -overrelief; removed tests for -relief link. * mac/tkMacButton.c: Removed bits about TK_RELIEF_LINK. * generic/tkOldConfig.c: Removed bits about TK_RELIEF_LINK. * generic/tkConfig.c: Removed bits about TK_RELIEF_LINK; added support for TK_OPTION_NULL_OK for TK_OPTION_RELIEF. * library/button.tcl: Added binding support for -overrelief. * generic/tk3d.c (Tk_GetRelief): Added branch for TK_RELIEF_NULL. * generic/tkButton.c: Added -overrelief option; removed Enter/Leave EventProc masks and handlers. * generic/tk.h: Added TK_RELIEF_NULL definition, removed TK_RELIEF_LINK. * mac/tkMacDefault.h (DEF_BUTTON_OVER_RELIEF): * win/tkWinDefault.h (DEF_BUTTON_OVER_RELIEF): * unix/tkUnixDefault.h (DEF_BUTTON_OVER_RELIEF): Added default value for the -overrelief option. FossilOrigin-Name: 107c0be19713ca6aedb57383ae53c62d430c9280
* * unix/tkUnixButton.c (TkpDisplayButton, TkpComputeButtonGeometry):ericm2000-05-131-80/+246
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * mac/tkMacButton.c (TkpDisplayButton, TkpComputeButtonGeometry): * win/tkWinButton.c (TkpDisplayButton, TkpComputeButtonGeometry): Added code for drawing compound buttons. * tests/button.test: Added configuration tests for -repeatdelay, -repeatinterval, -compound. * library/button.tcl: Added support for -repeatedelay, -repeatinterval options. * generic/tkOldConfig.c: Changed handling of link relief so that proper error messages are used. * generic/tkButton.h: Added -compound, -repeatdelay, -repeatinterval options. * generic/tkButton.c: Added event watchers for enter/leave events, for link relief support. * generic/tk3d.c: Changed handling of link relief so that proper error messages are used. * generic/tk.h: Changed values of TK_OPTION_LINK_OK/TK_CONFIG_LINK_OK for link relief support. FossilOrigin-Name: 965b15d89edbe399990f79d5b0592c72ffd00a42
* Added link relief support.ericm2000-05-111-1/+15
| | | FossilOrigin-Name: 27c077f9102cd1e07d9d1dbcc37e14576c8ffca2
* 1999-09-16 Jeff Hobbs <hobbs@scriptics.com>hobbs1999-09-211-1/+9
| | | | | | | | | | | | | | | | | | | | | | | | | * generic/tkFont.c: fixed processing of font options and error returned [Bug: 2075] * win/tkWinWm.c: fixed bug in 'wm deiconify' that raised the wrong toplevel, and changed it to not set focus on overridden toplevels 1999-09-15 Jeff Hobbs <hobbs@scriptics.com> * unix/aclocal.m4: added fix for FreeBSD-[1-2] recognition [Bug: 2070] and fix to AIX-* to get ldAix right [Bug: 2624], fixed AIX version check (readjust from 8-21 fix) and several other config fixes for AIX * mac/tkMacMenubutton.c: * unix/tkUnixMenubu.c: fixed permanently stippled menubutton image * win/tkWinButton.c: fixed possible pointer smash [Bug: 2733] 1999-09-14 Jeff Hobbs <hobbs@scriptics.com> * win/tkWinMenu.c: fix for stack overrun in GetTextFace [Bug: 909] FossilOrigin-Name: 8b23a0f7f176faa57f568a25735ed084b2666a90
* Merged 8-1-0 into mainline.rjohnson1999-04-211-1/+1
| | | FossilOrigin-Name: 0447cf267ea555fcba90be565b63fc310b3d0afb
* fixed Tk comment errorssurles1999-04-161-2/+2
| | | FossilOrigin-Name: 1eb99ab13b42e37ca5c220def4ad02e7f05e5718
* * Merged 8.1 branch into the main trunkstanton1999-04-161-76/+82
| | | FossilOrigin-Name: 1120dc4257448ed1955333e682de48e2940cc741
* Replaced SCCS strings, fixed binary filesstanton1998-09-141-1/+1
| | | FossilOrigin-Name: fb58b663f313796e8ed3115f92d657f0cae1d575
* Initial revisionrjohnson1998-04-011-0/+811
FossilOrigin-Name: 2bf55ca9aa942b581137b9f474da5ad9c1480de4