summaryrefslogtreecommitdiffstats
path: root/generic/tkListbox.c
Commit message (Collapse)AuthorAgeFilesLines
* * generic/tkCanvas.c: allow -selectforeground option to be None; adddas2007-04-291-4/+16
| | | | | | | | | | | | | | | | | | * generic/tkCanvText.c: fallback to fgColor when selFgColor is None * generic/tkEntry.c: (new default on aqua to match native L&F). * generic/tkListbox.c: * generic/tkText.c: * generic/tkCanvas.c: add support for bypassing all of Tk's double * generic/tkEntry.c: buffered drawing into intermediate pixmaps * generic/tkFrame.c: (via TK_NO_DOUBLE_BUFFERING #define), it is * generic/tkListbox.c: unnecessary & wasteful on aqua where all * generic/tkPanedWindow.c: drawing is already double-buffered by the * generic/tkTextDisp.c: window server. (Use of this on other * unix/tkUnixScale.c: platforms would only require implementation of TkpClipDrawableToRect()). FossilOrigin-Name: e28d001869d11668fedf18232365561b08014860
* * generic/tkListbox.c (ConfigureListboxItem): ListboxWorldChangedhobbs2006-12-041-5/+10
| | | | | | not needed - just call EventuallyRedrawRange. [Bug 1608046] (rezic) FossilOrigin-Name: 297e33dd77cb08eeee39a697138c6117a3883941
* * tests/entry.test (entry-22.1):hobbs2006-05-291-24/+22
| | | | | | | | | * tests/listbox.test (listbox-6.15): * generic/tkListbox.c (ListboxInsertSubCmd, ListboxDeleteSubCmd): Ignore Tcl_SetVar2Ex failure of listVarName, similar to entry widget handling. [Bug 1424513] FossilOrigin-Name: 18780b1c4f4abdbd9ed9662513ee984e64ad568b
* silence compiler warningdgp2004-06-081-3/+2
| | | FossilOrigin-Name: 0b65a3422621f6cc2599b73bcbdced42f6cc3f25
* * generic/tkListbox.c (ListboxDeleteSubCmd, ListboxListVarProc):hobbs2003-11-111-3/+4
| | | | | | free itemconfig data when removing it from table. [Bug #836483] FossilOrigin-Name: 5281eb542eff290211b6088f9400954ee8621d45
* * generic/tkListbox.c (ListboxSelectionSubCmd):hobbs2003-02-251-11/+15
| | | | | | | * tests/listbox.test: Allow 'selection includes' to respond when disabled (but only 'includes'). [Bug #632514] FossilOrigin-Name: f0aec0e5cc6ba507c5bfe0875f52ac13f087ede1
* 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) FossilOrigin-Name: 5603f01aa35a127f83db9bb68f3b1ff9e5bb64de
* * 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. FossilOrigin-Name: f7610a440895223b661d0ff989b5780b7af3db6a
* * Updates to handle change in type of part2 argument ofdgp2002-03-201-3/+3
| | | | | | Tcl_VarTraceProc typedef. [TIP 27] [Patch 532644]. FossilOrigin-Name: 1b7558e26e98541cbcbea49ec8f2eb586a6ec2ea
* * tests/listbox.test:hobbs2002-02-261-80/+100
| | | | | | | * generic/tkListbox.c: corrected error handling when setting to an invalid listvar value. [Bug #503613] FossilOrigin-Name: fdb66fb6c125e582842391ac32486ff4f19351f0
* * generic/tkListbox.c (ChangeListboxOffset): improved trackinghobbs2002-01-181-1/+5
| | | | | | when scrolling on x axis with entry/text. [Bug #225025] (voskuil) FossilOrigin-Name: 591d7475b45d284f89cd293607ff9035a62f58fd
* * 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] FossilOrigin-Name: 85e5c7aa1baa3bd2b7bdb971f3cf83f4f5573723
* * 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] FossilOrigin-Name: eb203000eca11b77c0a57bb772c4ffef94889710
* * 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. FossilOrigin-Name: 3991a01b3cdeede781f85772fe2dd2e2f00237f4
* * 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. FossilOrigin-Name: 484b8a6cf3a4d5698be30780bbd1a6094c1394a8
* 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. FossilOrigin-Name: df44e48c3137a98d587cec736ae6ffa531369353
* * 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". FossilOrigin-Name: d57bc1ec6968e5b45206a4934294428217008261
* * 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. FossilOrigin-Name: a19d0bbf22658890f96264d9fea43a2494dfb897
* * 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. FossilOrigin-Name: a54ba26b730bb5bda6191ecada040674892e29e7
* * 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] FossilOrigin-Name: e8800736ff27a98524329521784065d25721ff92
* * generic/tkListbox.c: fixed 'get' of listbox to return a stringhobbs1999-11-291-3/+10
| | | | | | when only one item is requested. FossilOrigin-Name: 20823baef099634203eab241b8254176de5bcd1f
* * 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. FossilOrigin-Name: 81be7b942d8f0551a240b0c61612819b5258c260
* Additions to update vertical scrollbar info for listboxes when listvar changes.ericm1999-11-241-1/+5
| | | FossilOrigin-Name: 4a5e66a5c23b0c7145266e7686000b000451ac75
* * 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 FossilOrigin-Name: 017386d45f83dce3583efada3dfbc9519df1322e
* * 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) FossilOrigin-Name: 0387f3d8ed87ad9eb1dffdd755e72d6688f565ef
* * tests/listbox.test: Updated tests for new error messages.ericm1999-11-181-3/+5
| | | | | | * generic/tkListbox.c: Improved error messages for bad -listvar's. FossilOrigin-Name: 016895b51cbfd533f23afcdec043aa6f25f031e1
* * 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) FossilOrigin-Name: a8241d6f0daec92b0050bf0d6f8aa538d7b41265
* * 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. FossilOrigin-Name: 822a6b857404dd479d8288224b3f842ff0c1606e
* * 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. FossilOrigin-Name: 6682e76dab340e8018cb9e36b07167409fd028bb
* * 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. FossilOrigin-Name: 11da26206de1c6f862b367eb77ba315aea909b56
* 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. FossilOrigin-Name: 9bb078186f93162afcdcd453066e44b705aa8186
* * Merged 8.1 branch into the main trunkstanton1999-04-161-21/+39
| | | FossilOrigin-Name: 1120dc4257448ed1955333e682de48e2940cc741
* Replaced SCCS strings, fixed binary filesstanton1998-09-141-1/+1
| | | FossilOrigin-Name: fb58b663f313796e8ed3115f92d657f0cae1d575
* Initial revisionrjohnson1998-04-011-0/+2335
FossilOrigin-Name: 2bf55ca9aa942b581137b9f474da5ad9c1480de4