Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Listbox loses selection

0 views
Skip to first unread message

Sven Bauhan

unread,
Nov 4, 1999, 3:00:00 AM11/4/99
to
Hello,

my program uses a listbox to select one element. First I used
radiobuttons but then the selective items should be changeable by a
configuration file.

When a test run gets started, the selection of the listbox is
transferred to the program kernel using $listbox curselection. But after
some focus changes on other entries the selection in the listbox gets
lost, so that curselection returns an empty string, which occurs an
error.

How can I prevent the listbox from loosing its selection?

Thanks,
Sven

--
Dipl.-Ing. Sven Bauhan
Technische Universitaet Hamburg-Harburg
Tel.: +49-40-42878-2165
Fax.: +49-40-42878-2281

Bob Techentin

unread,
Nov 4, 1999, 3:00:00 AM11/4/99
to
Sven Bauhan wrote:
>
> Hello,
>
> my program uses a listbox to select one element. First I used
> radiobuttons but then the selective items should be changeable by a
> configuration file.
>
> When a test run gets started, the selection of the listbox is
> transferred to the program kernel using $listbox curselection. But after
> some focus changes on other entries the selection in the listbox gets
> lost, so that curselection returns an empty string, which occurs an
> error.
>
> How can I prevent the listbox from loosing its selection?
>

You might try -exportselection 0, which would tell the listbox to keep
its selection private.

--
Bob Techentin techenti...@mayo.edu
Mayo Foundation (507) 284-2702
Rochester MN, 55905 USA http://www.mayo.edu/sppdg/sppdg_home_page.html

0 new messages