Re: ANN: listbox 0.0.1 (alpha)

From: Mark G. Saye (markgsaye_at_yahoo.com)
Date: 03/11/04


Date: Thu, 11 Mar 2004 09:41:23 -0800

Roy Terry wrote:
>
> "Mark G. Saye" wrote:
>
>>listbox package for Tcl/Tk
>>
>>Features
>>
>> - Creates own namespace as child of calling namespace.
>> - Exports single command listbox::listbox.
>> - Creates all commands and variables in own namespace (does not
>> pollute global namespace).
>> - TIP 55 compliance for packaging and metadata.
>
> This is all bookkeeping.
> Can you tell us about the features that add
> value and might motivate developers to
> try the package? Or at least make same available for
> a few web-clicks?

You're right, of course. I had intended a better description for a later
version, but seeing as you've asked ;-} here's a quick summary. I'll add
these into the README file. There's also the main documentation online at:

http://www.speakeasy.org/~msaye/tk/listbox/
http://www.speakeasy.org/~msaye/tk/listbox/doc/en/listbox.html
http://www.speakeasy.org/~msaye/tk/listbox/doc/en/listbox.txt

Feature Summary
---------------

<Control-a> selects all listbox items

<Shift-KeyPress-Up> and <Shift-KeyPress-Down> move selected items up/down.

<Return> generates a <<ListboxActivate>> event.

<Double-1> generates a <<ListboxActivate>> event.

Clicking inside the listbox, but outside of any listbox items, clears
the selection.

You can sort the listbox while maintaining the selection and active item.

There is a chronological selection, so you can see which order items
were selected (i.e. when you get a <<ListboxSelect>> event, you can get
the last index from the selection to find out which item was actually
selected/deselected.

You can export the listbox selection without the selection being cleared
when making a selection in another widget (see http://wiki.tcl.tk/9597)

You can replace listbox items with a specified string (either all
selected items, or by specifying indices).

You can remove/delete listbox items (either all selected items, or by
specifying indices).

You can set the listbox's maximum height.

The package does *not* modify Listbox class bindings, so will not affect
standard listboxes. It creates the new bindtag eListbox (for extended
listbox), which imports all Listbox bindings, and thus overrides some of
them.

-- 
Mark G. Saye
markgsaye @ yahoo.com


Relevant Pages

  • Re: Last Selection from MultiSelect Listbox
    ... What you can do is track the listbox selection in an array by modifying an array every time the listbox is changed. ... Dim idx As Integer, i As Integer ...
    (microsoft.public.excel.programming)
  • Re: Select range & copy
    ... I changed the range name of the ListBox stuff to mRefList ... "tvac" wrote: ... > Private Sub ListBox1_Click ... >> The first 2 columns have common data regardless of the selection. ...
    (microsoft.public.excel.programming)
  • Re: List of values
    ... I have to assume that the listbox is set to ... single-selection listbox. ... Private Sub ButtonOK_Click ... have shown is only the code to load the data into the listbox and display ...
    (microsoft.public.word.vba.general)
  • Re: Creating a Drop down list where can pick more than one choice
    ... do both tasks (make the listbox visible, and write the selected items into ... <MS ACCESS MVP> ... "Ken Snell MVP" wrote: ... Or do you want each selection to appear in the ...
    (microsoft.public.access.forms)
  • Re: List boxes in Microfocus Dialog System/Net Express?
    ... listbox is question is called a "Selection Box" in Dialog System and ... Dialog System's listbox rows start at 1. ... It wont necessarily be apparent from the demo project titles ... None of the examples I've found show how to accomplish what I'm trying ...
    (comp.lang.cobol)