Bwidget Source Code
File History
Not logged in

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

History of listbox.tcl

2016-03-07
11:57
Make selected ComboBox item visible on first display.    ComboBox used to ask its embedded ListBox to make the selected item visible before it had ever been drawn. We now defer this action until the first redraw [eae238d5a7] file: [19d2893d85] check-in: [36d4ee635f] user: adrianmedranocalvo branch: bwidget, size: 57672
2015-12-08
18:18
8.4 compatibility was broken due to the use of min/max math functions. Ticket [0aef856302] file: [42eaa7d0ca] check-in: [b765b56d04] user: oehhar branch: bwidget, size: 57181
2013-10-14
15:53
ListBox update, border with images and image selection fixed [ff1787af9c] file: [08953e117f] check-in: [67d6d7d3b3] user: oehhar branch: bwidget, size: 57174
2012-04-12
12:46
listbox.tcl ListBox::selection Only redraw if selection changed. Patch by Wolfgang S. Kechel [Bug 3517145] file: [e8414c8b77] check-in: [8d829980cc] user: oehhar branch: bwidget, size: 56570
2011-06-23
09:17
listbox.tcl (listbox::generate_data) fixed last patch by ryotakatsuki [Bug 3324610] file: [a8fec95962] check-in: [b3a9aeca7a] user: oehhar branch: bwidget, size: 56465
08:30
listbox.tcl Fix of Bug 3000293 broke listbox tags. The bindImage subcommand did not report right tag. Patch by ryotakatsuki [Bug 3324610] file: [d0619e7ea3] check-in: [2a71e54fcc] user: oehhar branch: bwidget, size: 56469
08:28
listbox.tcl, tree.tcl (_update_scrollregion) the linewise scrolling did not always scroll up to the end on windows. Report and patch by Wojciech Kocjan, review and modification by Koen Danckaert [Bug 3317772] file: [98013fa2ce] check-in: [ba2aa7db4d] user: oehhar branch: bwidget, size: 55988
2010-05-12
08:28
* listbox.tcl(ListBox::bindText and ListBox::bindImage) Method bindText and bindImage overwrote internal selection bindings [Bug 3000293] reported by Robert Karen. file: [7659408d31] check-in: [834cfffa2b] user: oehhar branch: trunk, size: 57378
08:24
* listbox.tcl(ListBox::see) Method see shifts image out of view. Showed up, by a selection click on a long item with icon [Bug 2999764] reported by Robert Karen. file: [2f4879ccb6] check-in: [17f103959e] user: oehhar branch: trunk, size: 56731
08:22
* listbox.tcl(ListBox::_configureSelectmode) Drag modifies multiple selection [Bug 2995969] reported by Robert Karen. Bound events on ButtonRelease-1 instead Button-1 for multiple selections to avoid bug. * listbox.tcl(ListBox::_drag_and_drop) The default drag and drop routine only handled single drag and drop. It was extended to handle also drag and drop of multiple entries. file: [0fedcc59a4] check-in: [672bf13068] user: oehhar branch: trunk, size: 56641
08:12
* listbox.tcl(ListBox::bindText and ListBox::bindImage) Method bindText and bindImage overwrote internal selection bindings [Bug 3000293] reported by Robert Karen. file: [8dabab55fe] check-in: [dfcc0d0cba] user: oehhar branch: bwidget, size: 56184
08:07
* listbox.tcl(ListBox::_configureSelectmode) Drag modifies multiple selection [Bug 2995969] reported by Robert Karen. Bound events on ButtonRelease-1 instead Button-1 for multiple selections to avoid bug. * listbox.tcl(ListBox::_drag_and_drop) The default drag and drop routine only handled single drag and drop. It was extended to handle also drag and drop of multiple entries. file: [e693c2fd1a] check-in: [fb29756c0e] user: oehhar branch: bwidget, size: 55537
07:59
t * listbox.tcl(ListBox::_configureSelectmode) Drag modifies multiple selection [Bug 2995969] reported by Robert Karen. Bound events on ButtonRelease-1 instead Button-1 for multiple selections to avoid bug. * listbox.tcl(ListBox::_drag_and_drop) The default drag and drop routine only handled single drag and drop. It was extended to handle also drag and drop of multiple entries. file: [06ef7810c4] check-in: [229ceefb36] user: oehhar branch: bwidget, size: 55447
2009-09-06
21:13
theme related mod's done file: [4d1f42d526] check-in: [307eeef2b7] user: oberdorfer branch: trunk, size: 55907
2009-06-30
16:17
* buttonbox.tcl (ButtonBox::_redraw) Bug corrected: -uniform gridding option is used if tcl version >= 8.4 (not 8.3). [Patch 2807147] by Koen Danckaert    * tree.tcl (Tree::_drop_cmd) If there is no node, drop didn't work. [Bug 1042613] reported by Rolf Ade    * Tree.html Bind commands: removed promise that %W would work in future. The underlying widgets should only be manipulated using the node id. [Bug 1224203] by Jasper Taylor, remarks by J. Tang    * Tree.html Bind commands: with -selectfill, the given command is overwritten for the background box. [Bug 1003962] by Torsten Berg    * dropsite.tcl (DropSite::register) Bug fixed: fails on multiple drop targets [Bug 1213123] by T.Neil    * combobox.tcl (ComboBox::_create_popup) Bug fixed: Return key in drop down list when -bwlistbox true [Bug 1205536] patch by Steve Landers    * combobox.tcl (ComboBox::_create_popup, ComboBox::_unmapliste) Mac aqua and x11 fixes, multi screen issue still open. [Bug 1451784] report by Jasper Taylor, fix by Kevin Walzer    * listbox.tcl (ListBox::_multiple_select) Selected item not deselected on control-click [Bug 1029144] reported by Konrad Rosenbaum file: [9edc63859e] check-in: [d4234674be] user: oehhar branch: trunk, size: 54705
2009-06-26
14:46
* listbox.tcl (ListBox::create et al) new feature: listbox option -listbox now read/write [Bug 1501874] reported by Stephen Huntley    * dynhelp.tcl (DynamicHelp::_show_help) fixed issue (as far as possible): Dynamic help baloon was on the main screen, if it touched the border on a windows multi screen configuration. The fix assumes, that all screens have same dimensions and no gaps in- between. This is necessary, because multi-screen configuration paramters may not be interrogated by tk (despite of coordinates out of the screen) [Bug 1499135] reported by Gregor file: [08bcea663a] check-in: [8860bd1e23] user: oehhar branch: trunk, size: 54709
2009-06-10
08:48
Bwidget commited patches for bugs 2762361, 2340320, 1752755 file: [1b61d65f89] check-in: [66d9e2414f] user: oehhar branch: trunk, size: 53256
2008-05-26
07:06
* tree.tcl (Tree::_redraw_selection): do not allow empty * listbox.tcl (ListBox::_redraw_selection): fill color as that creates a transparent item that doesn't return a bbox. This showed up on OS X/Aqua, where the listbox selectforeground defaults to empty. [AS Bug 77186 74923] file: [a87b540148] check-in: [9080f32145] user: hobbs branch: trunk, size: 53175
2007-10-31
18:13
* listbox.tcl: speed up ListBox insertion significantly. [Bug 1472443] file: [e9e0ccbd6d] check-in: [c8a2a977dd] user: hobbs branch: trunk, size: 53095
2006-11-10
20:39
* tree.tcl: fixed error with drag & drop's autoscroll [bug 1408494]    * listbox.tcl: fixed error with drag & drop's autoscroll; fixed error when dropping at the end of the list file: [502d10f9df] check-in: [0893707ee0] user: dev_null42a branch: trunk, size: 52898
2006-03-23
23:32
dynhelp.tcl: if a widget's help balloon is being displayed when that widget is destroyed, also destroy the associated balloon [bug 1448424] listbox.tcl: when deleting an item from the ListBox that has dynamic help text, also remove its entry from the help array [bug 1443461] file: [2d20626ca1] check-in: [02f30c0d81] user: dev_null42a branch: trunk, size: 52777
2004-09-14
23:43
* listbox.tcl: add FocusIn redirector to %W.c, add explicit -takefocus 0 to the frame parent. file: [fe1875c405] check-in: [129bfac202] user: hobbs branch: trunk, size: 52697
2004-05-04
15:57
* listbox.tcl (_keyboard_navigation): make sure you can see the item that you key navigate to. (aas) file: [b716b47059] check-in: [06e4ff58b0] user: hobbs branch: trunk, size: 52607
2004-04-23
17:54
* listbox.tcl (create): don't force -highlightthickness 1 as it prevents the user changing it on creation. (_draw_item): pass more cached info from _redraw_items for speed. (_redraw_selection): correct drawing of selfill for items that extend beyond the width of the window. file: [90c8db3187] check-in: [a9181d9407] user: hobbs branch: trunk, size: 52568
2004-04-22
22:50
(create): Insert $path into the canvas bindings, so that anyone binding directly onto the widget will see their bindings activated when the canvas has focus. Add slightly modified up/down bindings to the canvas, in case it gets the focus (like with -autofocus). file: [e64a898314] check-in: [9a3b6fef63] user: hobbs branch: trunk, size: 52420
21:29
* listbox.tcl: correct eval/after/lists usage. (_redraw_listbox): call _update_select_fill on redraw, otherwise the insert of items causes wonkiness. (_redraw_items): call update idle after changing cursor. file: [eb80e7c24d] check-in: [2cb484bc9e] user: hobbs branch: trunk, size: 51903
2003-10-28
05:03
* combobox.tcl, listbox.tcl: Fixed keyboard navigation in the combobox drop down [Bug 831496].    * listbox.tcl: Added curselection subcommand to mimic Tk listbox behavior.    Added keyboard navigation to the listbox.    * widget.tcl: Added Widget::exists command to return whether a widget is a BWidget (based on whether it exists in the _class array).    Widget::destroy now properly unsets the widget's variable in the _class array. file: [5612a76fbf] check-in: [ccc0a40c43] user: damonc branch: trunk, size: 51735
2003-10-20
21:23
This is a huge commit with a lot of changes. I've tested through it with the demo as well as some of my own software, and everything seems to be working properly. I have no doubt that there will be little inconsistencies discovered through some thorough use.    Please checkout this latest version and give it a spin through your applications and tests. I am available to fix any and every bug that crops up, as I want to see this in really good shape for the next ActiveTcl release (which will follow the next Tcl release shortly).    * arrow.tcl, bitmap.tcl, button.tcl, buttonbox.tcl, color.tcl, * combobox.tcl, dialog.tcl, dragsite.tcl, dropsite.tcl, entry.tcl * font.tcl, label.tcl, labelentry.tcl, labelframe.tcl, listbox.tcl * mainframe.tcl, messagedlg.tcl, notebook.tcl, pagesmgr.tcl * panedw.tcl, passwddlg.tcl, progressbar.tcl, progressdlg.tcl * scrollframe.tcl, scrollview.tcl, scrollw.tcl, separator.tcl * spinbox.tcl, titleframe.tcl, tree.tcl, utils.tcl, widget.tcl * xpm2image.tcl: Revamp again to let core Widget commands handle most of the esoteric work of creating and destroying widgets properly in the BWidget environment.    The command Widget::define defines a class, its filename and a list of classes which it uses. This command handles creating the command to create new widgets, creates a ::use command for the class and calls the ::use command for each class included.    The command Widget::create does the renaming of the widget to $path:cmd and creates the proc to redirect the widget commands.    Widget::destroy now does the rename $path "" that almost all widgets do.    * button.tcl: Added a -state option to configure the state of the entire box at once.    Added new insert and delete subcommands.    Added an after cancel to stop button repeat upon release. [Bug 697022]    * combobox.tcl: Added -bwlistbox, -listboxwidth and -hottrack options. -images option already existed, but now it actually does something.    Added getlistbox, get, icursor, post and unpost subcommands.    * dynhelp.tcl: Added add subcommand to replace the (now) deprecated register command. The new command adds for a lot more flexibility in applying dynamic help.    Help popup now comes up -topmost 1 on Windows if available.    * entry.tcl: Added -disabledbackground option so that the BWidget entry more closely resembles the standard Tk entry. [Bug 638236].    * init.tcl: Moved Widget::traverseTo into widget.tcl.    * label.tcl: Renamed BWLabel class to just Label.    * listbox.tcl: Added a default -dropcmd so that if -dragenabled and -dropenabled are true, drag-and-drop within the same widget is possible without any other options.    Added -autofocus option to specify that clicking within the listbox should draw the focus in order to handle mouse wheel events.    Added -selectfill option for drawing a full selection rectangle around selected items instead of just around the item.    Added getcanvas subcommand. [Bug 436762].    bindImage and bindText now map %W to $path in order to get an accurate path in events. This can probably be fixed better when we have more control over event parameters. [Bug 607745]    Added mouse wheel bindings by default.    Added <<ListboxSelect>> event when selection changes.    * mainframe.tcl: Fixed bug for adding CTRL-F items to a mainframe [Bug 784269]    * messagedlg.tcl: Added -buttonwidth option.    * notebook.tcl: Added dynamic help to tabs.    Added -tabpady option to specify the padding between the text and the tab.    Notebooks now handle multi-line text properly. [Bug 565284]    * scrollview.tcl: Rewritten to use a variable per path instead of a big array.    * tree.tcl: Added -anchor option to nodes to specify the anchor for an image or window when displayed.    Added -crossopenimage, -crosscloseimage, -crossopenbitmap and -crossclosebitmap options to change the open / close cross.    Added mouse wheel bindings by default.    Added toggle subcommand to toggle a single tree node.    Added <<TreeSelect>> event when selection changes.    The characters "& | ^ !" are all converted to | silently in node names. This is to avoid errors because these characters are special to the canvas widget. [Bug 746960]    bindImage and bindText now map %W to $path in order to get an accurate path in events. This can probably be fixed better when we have more control over event parameters. [Bug 607745]    * utils.tcl: Added BWidget::wrongNumArgsString command to return a standard wrong # args error string.    Added BWidget::classes command that returns a list of all classes required by a given class.    Added BWidget::inuse command to determine if a given class is inuse.    Added BWidget::library command to return a body of code that can be saved into a project or other code based on the given classes. When called with a list of classes, all the classes and code necessary to use those classes is returned in a large string which can then be written out to a file.    Added BWidget::write command to write to a given file the current set of classes that are in use.    Added BWidget::bindMouseWheel command to setup default mouse bindings on a given widget.    * widget.tcl: Added a new option type 'Padding' which will accept the standard padding arguments in Tcl 8.4+.    Added Widget::define command to define a new BWidget class.    Added Widget::create command to create a BWidget properly.    Widget::destroy now attempts to delete a widget command created through Widget::create.    Added Widget::options command to return the current options of a given widget in a style that can be used to serialize a widget.    Added Widget::getOption command to get options based on children having the same option.    * wizard.tcl: Added new Wizard widget. file: [7621338a28] check-in: [b363fd16f2] user: damonc branch: trunk, size: 51173
2003-10-17
18:33
* arrow.tcl, bitmap.tcl, button.tcl, buttonbox.tcl, color.tcl, * combobox.tcl, dialog.tcl, dragsite.tcl, dropsite.tcl, entry.tcl * font.tcl, label.tcl, labelentry.tcl, labelframe.tcl, listbox.tcl * mainframe.tcl, messagedlg.tcl, notebook.tcl, pagesmgr.tcl * panedw.tcl, passwddlg.tcl, progressbar.tcl, progressdlg.tcl * scrollframe.tcl, scrollview.tcl, scrollw.tcl, separator.tcl * spinbox.tcl, titleframe.tcl, tree.tcl, utils.tcl, widget.tcl * xpm2image.tcl: major revamp to reduce incorrect use of eval and other list-safetiness evils. Also change !strcomp to streq. file: [32a0f4a1f7] check-in: [ebde8e280e] user: hobbs branch: trunk, size: 47110
2003-08-06
23:37
* listbox.tcl: Correct Listbox selection drawing [Bug #781652] file: [6f273e037d] check-in: [b9e13bfb56] user: hobbs branch: trunk, size: 47198
2003-07-17
20:00
* listbox.tcl (_multiple_select): correct shift-selection when selectmode is multiple. [Bug 653266] Use lsearch -exact instead of default -glob in all uses. Use list with eval for safety. file: [2bff1fa4ab] check-in: [8e2dd9b45a] user: hobbs branch: trunk, size: 47232
2003-06-06
00:50
* listbox.tcl: Liberal use of list where appropriate to make the code safe for space-containing node names. file: [56ab4f1d87] check-in: [ebe3ea42a0] user: damonc branch: trunk, size: 47038
2003-04-16
03:41
* listbox.tcl * tree.tcl: Added a #auto substitution for inserting new items into a tree or listbox.    * BWman/ListBox.html * BWman/Tree.html: Added documentation for #auto substitution. file: [1ab70d3fba] check-in: [106735c26c] user: damonc branch: trunk, size: 46976
2003-03-13
06:59
* listbox.tcl: Added dynamic help support to listbox items.    * tree.tcl: Fixed a little inconsistency in the tree dynamic help. We don't need to save the whole path in the help array, just the node. file: [089a9fa1b3] check-in: [2068922661] user: damonc branch: trunk, size: 46812
2002-09-11
19:33
* listbox.tcl: corrected multiple selectmode bindings. [Patch #483838, Bug #594853] (decoster) file: [db37b56da4] check-in: [37705c89d2] user: hobbs branch: trunk, size: 45500
2002-06-04
22:04
* listbox.tcl: corrected use of 'end' as move index. [Bug #561391] * buttonbox.tcl: * tree.tcl: force frame -padx/-pady to 0 to handle 8.4+ frame padding options. [Bug #545119] file: [9341b97805] check-in: [0149086be5] user: hobbs branch: trunk, size: 45462
2002-01-16
02:19
* listbox.tcl: allowed drop handler to work in empty listbox. [Bug #456883] file: [eb9eb496bc] check-in: [b3b6913380] user: hobbs branch: trunk, size: 45700
2001-12-29
02:06
* BWman/ListBox.html: * listbox.tcl: Added '-selectmode' flag and 2 possible select-modes: single and multiple. [Patch #483838] (decoster) file: [fd11a6872c] check-in: [513fac1226] user: hobbs branch: trunk, size: 45673
01:40
* listbox.tcl: added multipleinsert command to allow faster inserts of multiple items. [Patch #458446] (chevreux) file: [9594f90787] check-in: [37e7e5b746] user: hobbs branch: trunk, size: 43674
2001-06-11
23:57
listbox.tcl: fixed string compare call file: [132d63b5ea] check-in: [12554f70af] user: hobbs branch: trunk, size: 42112
2000-02-26
01:56
* arrow.tcl: * button.tcl: * buttonbox.tcl: * combobox.tcl: * dialog.tcl: * dynhelp.tcl: * entry.tcl: (also fixed validation) * label.tcl: * labelframe.tcl: * listbox.tcl: * mainframe.tcl: * notebook.tcl: * pagesmgr.tcl: * panedw.tcl: * progressbar.tcl: * scrollview.tcl: * scrollw.tcl: * separator.tcl: * spinbox.tcl: * titleframe.tcl: * tree.tcl: Updated to new megawidget architecture.    * widget.tcl: Changed internal architecture. When possible, megawidget options are stored in component widgets instead of in an intermediary array. Also, made use of option database to make megawidget creation more efficient. file: [e527c15c1e] check-in: [fb6cf15d1c] user: ericm branch: trunk, size: 42118
2000-02-11
22:54
* tree.tcl: Integrated changes from Eric Boudaillier: [itemconfigure -open ...] optimized to only call redraw_idle 3 if node has subnodes. _cross_event: itemconfigure -open called before -opencmd/closecmd; no more call to _redraw_idle (handled by other procedures) _over_cmd: allow position {root 0} when tree is empty new [find] command: [find @x,y ?confine?] if confine is "confine" returns the node at window coordinate x,y (x,y must be inside the bbox of the node) else returns the node found on the line (in pixel) pixel y [find line] returns the node on the line $line (in -deltay coords) new [line] command: [line node] returns the line where node is drawn -selectfill option added: if true, selection is draw on full width of tree (instead of just highlighting the bbox of the selected nodes)    * combobox.tcl: Integrated changes from Eric Boudaillier: internal widget restructuring.    * tree.tcl: Added "range" subcommand to selection. Given two nodes, node1 and node2, it will set the selection to the visible nodes between (and including) node1 and node2. If node1 or node2 is not visible, it will find the first visible ancestor of the node and use that as the start/end point instead.    * listbox.tcl: Integrated changes from Eric Boudaillier: _over_cmd: allow position 0 when listbox is empty find command, similar to tree find command.    * spinbox.tcl: Integrated changes from Eric Boudaillier: cosmetic changes.    * color.tcl: Integrated changes from Eric Boudaillier: split widget into two commands: SelectColor::menu and SelectColor::dialog.    * progressbar.tcl: Integrated changes from Eric Boudaillier: added -idle option to prevent call to update in case where task is done in idle (ie, fileevents)    * scrollview.tcl: Integrated changes from Eric Boudaillier: bindings changed.    * scrollw.tcl: Integrated changes from Eric Boudaillier: -managed option: if true, scrollbar are managed during creation, so their size are included in the requested size of the ScrolledWindow. If false, they are not. -sides option: specifies the side of the scrollbar. -size option: specifies size of scrollbar. -ipad option: specifies pad between scrollbar and scrolled widget.    * mainframe.tcl: Integrated changes from Eric Boudaillier: support for function keys in accelerators, support for no modifier in accelerators.    * notebook.tcl: Integrated changes from Eric Boudaillier: -internalborderwidth (-ibd) option specifies pad around pages; -foreground, -background, -activeforeground, -activebackground, -disabledforeground options for each tab. Code cleanup. file: [de3d95bc31] check-in: [651774cb09] user: ericm branch: trunk, size: 42059
1999-08-03
20:20
BWidget 1.2.1 import file: [4613735c4e] check-in: [48bc375a03] user: ericm branch: bwidget-vendor-branch, size: 38897 Added