Revision history for "ptkftp".
4.31 Aug/2002
4.61 Mon Feb 14, 2005
returns the current value of the "-textvariable" variable. If any arguments are passed, they are passed directly to the listbox->get() function, ie. "0", "end" to return all values of the listbox.
within the text area and the text area is readonly and either empty or does not contain text that matches any of the items in the dropdown list, then the 1st item is activated and highlighted instead of the last one. 4.74 - Fixed so that whenever the "-textvariable" variable is undefined,
then the dropdown list is shown, the 1st item will be activated and highlighted instead of the last one. 4.75 - Remove accidental reference to DBI in test file (fix broken test)
This closes rt.cpan.org bug#50767. 4.8 - Use of a hash for the choices list was broken - hash was reversed
within the insert() function so that fetchhash() returned a hash that was the opposite of what was passed to choices. Renamed fetchhash() function to get_hashref_byname() - still returns the reversed hash, and fetchhash() remains in place for backwards compat. Added new function get_hashref_byvalue() to return the hash back out correctly! Also added new functions: get_index('value') to return the index# (usable by get() function of the list option displayed as 'value'); delete_byvalue('value' [, 'value2'...]) to delete list items by their displayed values; and reference() to return the displayed list value for the given hash key (opposite of dereference()).