i have a hlist with multiple colums in it. i am able to select all the rows in it expect for the 1st row . i tried selecting the second row and then tried to select the first row with keyboard then i was able to select it but when i click it with the mouse it doesnt allow me to do it .
i tried a sample hlist program from perltk.org it worked fine but when i use it in my program it doesnt work .
can anyone help me with this
here is my code
my $helix_result_list=$helix_lf->Scrolled('HList',
-scrollbars => 'oe',
-width => 50,
-height => 20,
-header => 1,
-columns => 5,
-selectbackground=>'green',
-command =>\&change_hlist_bg
)->pack(-expand=>1, -fill=>'both', -padx=>2, -pady=>2);
$helix_result_list->headerCreate( 0, -text => 'Chain');
$helix_result_list->headerCreate( 1, -text => 'Ssqno');
$helix_result_list->headerCreate( 2, -text => 'Esqno');
$helix_result_list->headerCreate( 3, -text => 'Class');
$helix_result_list->headerCreate( 4, -text => 'Sequence');
$helix_result_list->add($main::helix_result_count);
printf "$main::helix_result_count\n";
$helix_result_list->itemCreate($main::helix_result_count,0,-text=>
+$chainid);
$helix_result_list->itemCreate($main::helix_result_count,1,-text=>
+$value1);
$helix_result_list->itemCreate($main::helix_result_count,2,-text=>
+$value2);
$helix_result_list->itemCreate($main::helix_result_count,3,-text=>
+$class);
$helix_result_list->itemCreate($main::helix_result_count,4,-text=>
+sprintf("%s",substr($main::seqres{$chainid},$value1,$value2-$value1+1
+)));
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.