Scrolling Tk Checkboxes

2007-01-17 Thread Jerry Kassebaum
Friends, How do I put a Scrollbar on the following? use Tk; my $mw=new MainWindow; $mw-geometry(200x400+400+10);# Width X height + from left + from top @output=(a, b, c, d, e, f, g, h, i, j, k, l, a, b, c, d, e, f, g, h, i, j, k, l); while($output[$cnt]){

Re: Scrolling Tk Checkboxes

2007-01-17 Thread Lyndon Rickards
Jerry Kassebaum wrote: Friends, How do I put a Scrollbar on the following? use Tk; my $mw=new MainWindow; $mw-geometry(200x400+400+10); # Width X height + from left + from top my $f = $mw-Scrolled(Frame)-pack(qw/-side left -expand yes -fill both/); @output=(a, b, c, d, e,

Checkboxes

2004-01-27 Thread Jim Hill
Hi all The [subscribers] section in the .cfg file of my mailing list manager gives a flag value for each subscriber ... Flags=1414 ... which is linked to a set of gui checkboxes - some, but not all, of which are mutually exclusive. Checking each option in turn and monitoring the .cfg file

RE: Checkboxes

2004-01-27 Thread Messenger, Mark
Code: $bitstring=unpack(b16,$flags); print Bitstring is $bitstring\n; # 100011101100 for 1414 HTH :) -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Jim Hill Sent: Tuesday, January 27, 2004 1:42 PM To: [EMAIL PROTECTED] Subject: Checkboxes

Re: Checkboxes

2004-01-27 Thread $Bill Luebkert
Jim Hill wrote: Hi all The [subscribers] section in the .cfg file of my mailing list manager gives a flag value for each subscriber ... Flags=1414 ... which is linked to a set of gui checkboxes - some, but not all, of which are mutually exclusive. Checking each option in turn

Re: Checkboxes

2004-01-27 Thread Jim Hill
$Bill Luebkert in [EMAIL PROTECTED]: Jim Hill wrote: Flags=1414 Is there a module or a perl algorithm for determining which of the 14 checkboxes are enabled from a Flags= value? I would just use a hash and for loop. eg: I suspected that there might be solution completely outside

Re: Checkboxes

2004-01-27 Thread $Bill Luebkert
Jim Hill wrote: $Bill Luebkert in [EMAIL PROTECTED]: Jim Hill wrote: Flags=1414 Is there a module or a perl algorithm for determining which of the 14 checkboxes are enabled from a Flags= value? I would just use a hash and for loop. eg: I suspected that there might be solution

Re: Checkboxes

2004-01-27 Thread Jonathan D Johnston
[Jim Hill wrote] [...] Flags=1414 ... which is linked to a set of gui checkboxes - some, but not all, of which are mutually exclusive. Checking each option in turn and monitoring the .cfg file results in this table ... 0 no flags set 1 subscriber is suspended 2 receives

Re[2]: Checkboxes

2004-01-27 Thread Sam Schinke
Hello Jim, Tuesday, January 27, 2004, 7:46:33 PM, you wrote: JH $Bill Luebkert in [EMAIL PROTECTED]: Jim Hill wrote: Flags=1414 Is there a module or a perl algorithm for determining which of the 14 checkboxes are enabled from a Flags= value? I would just use a hash and for loop