Hi,
I have a problem recreating a standard Windows behaviour for drop-down
lists: User can type in an entry, as long as those letters match the
beginning of a list entry, the list entry is highlighted. When a letter is
entered that doesn't match anymore, nothing in the list is selected, i.e. it
is a "free entry". I tried this code:
$spedselect=$spedframe->JComboBox(-validate=>"key",-validatecommand=>\&Valid
ateSped,-relief=>"sunken",-popuprelief=>"groove",-mode=>"editable",-choices=
>\@speditionen,-textvariable=>\$sped)->pack(-side=>"right");
sub ValidateSped {
$spedselect->showPopup();
$spedselect->setSelected("$sped",-mode=>"ignorecase");
}
but got a problem: The sub is not called after entering the first key, but
only after the next. What can happen there then is, that you can enter a
letter that doesn't match, and because of that you can't even backspace that
letter.
Another problem is, that it should let me enter letters, even if they don't
match, thus doing the free entry. Currently the entry stops if the validate
fails...
Any solution to this?
Lars
-++**==--++**==--++**==--++**==--++**==--++**==--++**==
This message was posted through the Stanford campus mailing list
server. If you wish to unsubscribe from this mailing list, send the
message body of "unsubscribe ptk" to majordomo@xxxxxxxxxxxxxxxxxx
|