summaryrefslogtreecommitdiffstats
path: root/generic/tkButton.c
Commit message (Collapse)AuthorAgeFilesLines
* * generic/tkButton.c (TkButtonWorldChanged): added GCFont handlinghobbs2002-08-081-1/+4
| | | | | | | to the disabledGc of buttons when compound != none. The drawing appears to be incorrect across platforms still. [Bug #477740] FossilOrigin-Name: 24bf8f8092f7910d45b3f02ae021a543c0cb9145
* Applied companion patch for Tcl Patch 585105,dgp2002-08-051-7/+7
| | | | | | | | | | | | | | | | | | | | | | | updating Tk to use Tcl 8.4's fully CONST-ified interface, and fully CONSTifying Tk at the same time. This patch includes purging Tk of its last direct access to interp->result. [Bug 589853] The substantial changes include copying event sequence strings into Tcl_DStrings in tkBind.c, and copying [text] indices into Tcl_DStrings because parsing them involved overwriting them. If this causes performance trouble, that can be resolved by further converting them to Tcl_Obj's. The #defines USE_NON_CONST and USE_COMPAT_CONST have the same effect for Tk as they do for Tcl. (They actually change tcl.h) FossilOrigin-Name: 5603f01aa35a127f83db9bb68f3b1ff9e5bb64de
* Initial implementation of TIP #82: added the -offrelief option todrh2002-06-171-1/+5
| | | | | | | checkbutton and radiobutton to allow those widgets to have a MS-Office look and feel. FossilOrigin-Name: 882e41f5ee6e4ceae781257e3442e7882a9cd4d4
* When creating a radiobutton with -value "" it was not drawn properlypspjuth2002-05-261-1/+11
| | | | | | if the -variable was created by the radiobutton. [Bug #548765] FossilOrigin-Name: 43f195e282d0c2f80354413944f3ffaab6c33d5f
* * Updates to handle change in type of part2 argument ofdgp2002-03-201-5/+5
| | | | | | Tcl_VarTraceProc typedef. [TIP 27] [Patch 532644]. FossilOrigin-Name: 1b7558e26e98541cbcbea49ec8f2eb586a6ec2ea
* * Updates to handle change in type of tablePtrdgp2002-01-171-2/+2
| | | | | | | argument of Tcl_GetIndexFromObj(Struct) from (char **) to (CONST char **). [TIP 27] [Patch 504705] FossilOrigin-Name: 85e5c7aa1baa3bd2b7bdb971f3cf83f4f5573723
* * generic/tkButton.c (ButtonTextVarProc): guard against beinghobbs2001-12-281-2/+6
| | | | | | called while the *button/label is being deleted. [Bug #490051] FossilOrigin-Name: 47772f0dc4a3b5ec55ee991d14c11890897e0d18
* * tests/config.test: added config-14.1 to test namespace importhobbs2001-08-291-20/+18
| | | | | | | | | | | | | | | | evaluation of widgets. * generic/tkButton.c (ButtonCreate): * generic/tkFrame.c (CreateFrame): * generic/tkMenubutton.c (Tk_MenubuttonObjCmd): * generic/tkPlace.c (Tk_PlaceObjCmd): * generic/tkScale.c (Tk_ScaleObjCmd): * generic/tkMessage.c (Tk_MessageObjCmd): * generic/tkEntry.c (Tk_EntryObjCmd, Tk_SpinboxObjCmd): * generic/tkSquare.c (SquareObjCmd): redid the handling of optionTables in widgets to allow them to be imported into other namespaces. [Bug #456632] FossilOrigin-Name: eb203000eca11b77c0a57bb772c4ffef94889710
* Overall change: Implemented TIP 5, which exportsericm2000-11-221-2/+2
| | | | | | | | | | | 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
* * generic/tkButton.c (ConfigureButton): Added tests for -compoundericm2000-10-011-3/+7
| | | | | | | | option, so that when there is a textvariable and an image, and -compound is not none, the button will display both the textvariable and the image. FossilOrigin-Name: 2b3abd7d4c67641d3c2128ea5316adc32611f51f
* * generic/tkButton.c (ButtonTextVarProc): reversed change below,hobbs2000-08-231-8/+3
| | | | | | it was not correct. FossilOrigin-Name: 8fa5fc2eedbf4ae9e6cda42ef0c72bd46c03bc4a
* * generic/tkButton.c (ButtonTextVarProc): changed order ofhobbs2000-08-231-3/+8
| | | | | | incr/decr of new value object, in case they are equal. FossilOrigin-Name: 9a2fe096ec40f2dae1d649333474e08c8b6543e8
* * doc/radiobutton.n: Added documentation for -overrelief option.ericm2000-05-251-1/+13
| | | | | | | | | | | | | | | | | | | * doc/checkbutton.n: Added documentation for -overrelief option. * doc/label.n: Added documentation for -state option. * generic/tkButton.c: Added -overrelief option for checkbuttons, and radiobuttons. * library/button.tcl (tkButtonDown, macintosh version): Added protection against querying the -repeatdelay option from a widget that doesn't support it (ie, checkbuttons, radiobuttons, etc). Other platforms use a different binding script for checkbuttons and radiobuttons, so they don't have this issue. (tkCheckRadioEnter, windows version): Added code to handle -overrelief for check/radiobuttons on windows. FossilOrigin-Name: bb4f9a3fce8768d2d0368928ffb3757799d390cc
* * doc/SetOptions.3: Added information about TK_OPTION_NULL_OK withericm2000-05-171-9/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-2/+35
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* * doc/button.n: Added documentation for link relief.ericm2000-05-101-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * tests/button.test: Added tests for link relief for buttons. * generic/tk.h (TK_CONFIG_LINK_OK): Added definition of TK_RELIEF_LINK, TK_OPTION_LINK_OK and TK_CONFIG_LINK_OK. [RFE: 4348] * generic/tk3d.c: Added support for link relief. [RFE: 4348] * mac/tkMacButton.c (TkpDisplayButton): * unix/tkUnixButton.c (TkpDisplayButton): Added support for link relief. [RFE: 4348] * generic/tkOldConfig.c (Tk_ConfigureWidget): * generic/tkConfig.c (DoObjConfig): Added understanding of link relief, which is allowed only for widgets that have TK_OPTION_LINK_OK or TK_CONFIG_LINK_OK set for the "-relief" option. [RFE: 4348] * generic/tkButton.c: Added TK_OPTION_LINK_OK to "-relief" option for buttons. [RFE: 4348] * win/tkWinWm.c (EX_TRANSIENT_STYLE): Removed WS_EX_TOOLWINDOW style bit, so that transient windows have full-size titlebars (like the tk_getOpenFile dialog). * win/tkWinMenu.c (GetMenuSeparatorGeometry): Tweaked height requested for separator bars to be (linespace - (2*descent)) instead of just (linespace); this makes the separator occupy a more correct amount of vertical space. [Bug: 5303]. FossilOrigin-Name: 4194a8ac77bf8dfeaa5e9522117ac35c829e9897
* * tests/button.test:ericm2000-03-081-21/+30
| | | | | | * generic/tkButton.c: Added -disabledforeground/-state to labels. FossilOrigin-Name: fc902c50d43d551e77a2f1d4896059e1f5423f97
* * Merged 8.1 branch into the main trunkstanton1999-04-161-573/+912
| | | FossilOrigin-Name: 1120dc4257448ed1955333e682de48e2940cc741
* Replaced SCCS strings, fixed binary filesstanton1998-09-141-1/+1
| | | FossilOrigin-Name: fb58b663f313796e8ed3115f92d657f0cae1d575
* Initial revisionrjohnson1998-04-011-0/+1347
FossilOrigin-Name: 2bf55ca9aa942b581137b9f474da5ad9c1480de4