summaryrefslogtreecommitdiffstats
path: root/generic/tkListbox.c
Commit message (Collapse)AuthorAgeFilesLines
* ANSIfy and reduce casting of NULL to promote readabilitydkf2005-11-171-55/+58
|
* Lots of ANSIfying of function decls.dkf2005-11-171-10/+12
| | | | Also a few spots where code has been cleaned up more completely.
* Whitespace/style improvementsdkf2005-09-081-1007/+1103
|
* * generic/tkListbox.c (ListboxDeleteSubCmd, ListboxListVarProc):hobbs2003-11-111-3/+4
| | | | free itemconfig data when removing it from table. [Bug #836483]
* Removed unused variable [Bug 664783]dkf2003-08-271-3/+2
|
* * generic/tkListbox.c (ListboxSelectionSubCmd):hobbs2003-02-251-11/+15
| | | | | * tests/listbox.test: Allow 'selection includes' to respond when disabled (but only 'includes'). [Bug #632514]
* Applied companion patch for Tcl Patch 585105,dgp2002-08-051-4/+4
| | | | | | | | | | | | | | | | | | | | | 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)
* * doc/listbox.n:hobbs2002-06-211-28/+108
| | | | | | | | * generic/tkListbox.c (DisplayListbox): * mac/tkMacDefault.h: TIP #94 implementation adding -activestyle * tests/listbox.test: option to the listbox. This adds the ability * unix/tkUnixDefault.h: to have listboxes look native on Windows, and * win/tkWinDefault.h: "nicer" elsewhere using the 'dotbox' style.
* * Updates to handle change in type of part2 argument ofdgp2002-03-201-3/+3
| | | | Tcl_VarTraceProc typedef. [TIP 27] [Patch 532644].
* * tests/listbox.test:hobbs2002-02-261-80/+100
| | | | | * generic/tkListbox.c: corrected error handling when setting to an invalid listvar value. [Bug #503613]
* * generic/tkListbox.c (ChangeListboxOffset): improved trackinghobbs2002-01-181-1/+5
| | | | when scrolling on x axis with entry/text. [Bug #225025] (voskuil)
* * Updates to handle change in type of tablePtrdgp2002-01-171-5/+5
| | | | | argument of Tcl_GetIndexFromObj(Struct) from (char **) to (CONST char **). [TIP 27] [Patch 504705]
* * tests/config.test: added config-14.1 to test namespace importhobbs2001-08-291-59/+20
| | | | | | | | | | | | | | 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]
* * generic/tkEntry.c: corrected missing Tcl_Release that causedhobbs2001-07-031-6/+20
| | | | | | font not freed complaints when trying valid cleanup calls. * generic/tkListbox.c: made use of Tcl_Preserve/Tcl_Release to prevent FMR errors in Display functions.
* * tests/listbox.test: added test listbox-27.1, delete duringhobbs2001-04-031-14/+17
| | | | | | | scrollbar update * generic/tkListbox.c (DestroyListbox, ListboxEventProc): corrected listbox to make proper use of Tcl_EventuallyFree and protect against unusual listbox deletion.
* Overall change: Implemented TIP 5, which exportsericm2000-11-221-6/+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.
* * doc/label.n: Added -disabledforeground to list of options [Bug: 6053].ericm2000-07-281-4/+3
| | | | | * generic/tkListbox.c: Changed resource class for disabledforeground to "DisabledForeground".
* * mac/tkMacDefault.h:ericm2000-07-281-93/+183
| | | | | | | | | | | | | | | | | * unix/tkUnixDefault.h: Added default values for listbox disabledforeground and state. * win/tkWinDefault.h: Changed default listbox background color to white and listbox selection borderwidth to 0, in keeping with the "Microsoft Windows User Experience"; added default values for listbox disabledforeground and listbox state. * doc/listbox.n: Added documentation for -state option. * generic/tkListbox.c: Added support for -state to listbox. [RFE: 6052]. * tests/listbox.test: Tests for listbox disabled state.
* * generic/tkListbox.c (DestroyListbox): fixed crash inhobbs2000-03-021-21/+19
| | | | | | | | | | | | | | DestroyListbox due to null tkwin. [Bug: 4207] * tests/entry.test: added test suite for entry validation * doc/entry.n: improved docs discussing caveats and gotchas when mixing textvar with widget validation * generic/tkEntry.c (EntryValidateChange): improved handling of validation with relation to -textvariable. Previously, it would turn off whenever the textvar was set. Now it will it will turn off only when the textvar is set and validation returns 0. Added %V (type of validation occuring) to %-subs to help work with trickier validation.
* * generic/tkInt.h: moved new TkDisplay useInputMethods structurehobbs2000-01-211-9/+9
| | | | | | | | | | | | | | | | | | element to end to not disturb position of previous elements in the structure (as compared to Tk <=8.2). * generic/tkCanvLine.c (LineCoords): fixed segfault when too few coords were passed to a line with certain options set (it should always have thrown an error anyway). [Bug: 4042] * tests/text.test: * generic/tkText.c: fixed missing " in error case and missing 'dump' in subcommand listing [Bug: 4036] * generic/tkListbox.c: adjusted use of basic string concatenation in (non-K&R behavior) [Bug: 4027] Swapped bg/fg class for -select(bg|fg) for listbox and their items [Bug: 4039]
* * generic/tkListbox.c: fixed 'get' of listbox to return a stringhobbs1999-11-291-3/+10
| | | | when only one item is requested.
* * tests/listbox.test: Added a test to check that the topIndex isericm1999-11-241-1/+7
| | | | | | | update when items are removed from the listvar variable. * generic/tkListbox.c: Added a check the updates the topIndex when items are removed from the listvar variable.
* Additions to update vertical scrollbar info for listboxes when listvar changes.ericm1999-11-241-1/+5
|
* * generic/tk.h:hobbs1999-11-231-5/+8
| | | | | | | * generic/tkConfig.c: added support for TK_OPTION_DONT_SET_DEFAULT as equiv for TK_CONFIG_DONT_SET_DEFAULT * generic/tkListbox.c: added TK_OPTION_DONT_SET_DEFAULT to the item specs
* * tests/listbox.test: Added tests for itemcget and itemconfigure.ericm1999-11-191-82/+478
| | | | | | | | * doc/listbox.n: Added documentation for -listvar option and for itemconfigure and itemcget commands. * generic/tkListbox.c: Added support for itemconfigure/itemcget listbox subcommands (addresses rfe #936)
* * tests/listbox.test: Updated tests for new error messages.ericm1999-11-181-3/+5
| | | | * generic/tkListbox.c: Improved error messages for bad -listvar's.
* * tests/listbox.test: Added tests for bad -listvar's.ericm1999-11-181-14/+31
| | | | | * generic/tkListbox.c: Added handlers for bad -listvar's (ie, bad lists)
* * tests/listbox.test: Added tests for ListboxUpdateHScrollbar.ericm1999-11-171-3/+3
| | | | | * generic/tkListbox.c: Changed some old static buffers to base size on TCL_DOUBLLE_SPACE instead of (completely) hardcoding the size.
* * tests/listbox.test: New tests for -listvar functionality, and anericm1999-11-171-29/+29
| | | | | | odd extra case that wasn't covered before. * generic/tkListbox.c: Tests exposed some bugs, now fixed.
* * generic/tkWindow.c: Changed "listbox" mapping from old-school toericm1999-11-171-862/+1356
| | | | | | | | | | | new-school objectified command. * generic/tkListbox.c: Objectified listbox; added support for -listvar option. Converted internal structure to use a Tcl list object to store the data. * generic/tkInt.h: Changed reference to Tk_ListboxCmd to Tk_ListboxObjCmd.
* New Function: TkpDrawHighlightBorder. Use this in place of ↵jingham1999-08-101-5/+8
| | | | Tk_DrawFocusHighlight. The latter did not work on the Mac, since you need to know both foreground & background color when you draw the active focus ring.
* * Merged 8.1 branch into the main trunkstanton1999-04-161-21/+39
|
* Replaced SCCS strings, fixed binary filesstanton1998-09-141-1/+1
|
* Initial revisionrjohnson1998-04-011-0/+2335