get method.

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View

Hello All,

I am using my "$frm=$lb2->get('active')" statement to get the active element
in the listbox $lb2. I observed that when there is no active element in the
listbox $lb2, the "get" method takes element at the first index as active by
So can I somehow prevent this default functionality of the "get" method.

With Rgds,

Re: get method.

rajendra wrote:
Quoted text here. Click to load it

If you are referring to Tk::Listbox you might want to use method 'curselection'
instead ('active' does not mean selected).

HTH, Christoph

use Tk;use Tk::GraphItems;$c=tkinit->Canvas->pack;push@i,Tk::GraphItems->

Site Timeline