Click here to get back home

get method.

 HomeNewsGroups | Search | About
 comp.lang.perl.modules    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
get method. rajendra 02-24-2007
Posted by rajendra on February 24, 2007, 7:18 am
Please log in for more thread options


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
default.
So can I somehow prevent this default functionality of the "get" method.

With Rgds,
Raj



Posted by Ch Lamprecht on February 24, 2007, 4:48 pm
Please log in for more thread options


rajendra wrote:
> 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
> default.
> So can I somehow prevent this default functionality of the "get" method.

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->
TextBox(text=>$_,canvas=>$c,x=>$x+=70,y=>100)for(Just=>another=>Perl=>Hacker);
Tk::GraphItems->Connector(source=>$i[$_],target=>$i[$_+1])for(0..2);
$c->repeat(30,sub);MainLoop

Similar ThreadsPosted
Which Net::FTP method for this?" November 7, 2005, 1:36 pm
Help on Schwartzian method June 12, 2007, 12:15 pm
help on Schwartzian method June 12, 2007, 12:29 pm
Schwartzian method June 12, 2007, 12:30 pm
Is a hash the best method to do this? December 24, 2007, 1:23 pm
Is there any method/way to use API(Windows or Linux) November 30, 2006, 7:26 am
field method for Win32::IE::Mechanize December 15, 2004, 5:39 pm
Credentials and POST method with IO::Socket::SSL? June 30, 2006, 5:14 pm
Can't locate object method "ymd" via package... August 3, 2007, 6:14 am
Pg.pm Question - Can't locate object method driver October 31, 2004, 9:17 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap