monkMAC has asked for the wisdom of the Perl Monks concerning the following question:
Should work, right? Wrong. The DialogBox shows OK/Cancel Buttons but no entries. There are a couple of these, plus the appropriate adding trigger buttons to the main GUI that work fine....Any help is appreciated.##################################### # what this does: Dialog Box that writes a hashed financial +goal (float $num, string $desc) into a .dat file GF # # important variables defined: TextEntry $numNewGoal marked +by Label $tag, TextBox $descNewGoal. ##################################### my $addGoalButn=$features->Button(-text=>'Add Goal', -command= +>sub { $n_prompt=$main->DialogBox(-title=>"Add a \$ value and expl +anation", -buttons=>["OK","Cancel"]), $tag=$n_prompt->add(Label, -text=>"\$"), $numNewGoal=$n_prompt->add(Entry), $descNewGoal=$n_prompt->add(Text, -height=>'5', -width=>'3 +0'), $n_prompt->Show(), $num=$numNewGoal->get(), $desc=$descNewGoal->get("1.0", "end"), #paid upgrade option: rewrite below for Excel/SQL connectivity open(GF, "+<$file_goals") || warn("Your file is empty."), print GF join('\n', $num, $desc), close(GF) });
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: DialogBox needs Entry, Text
by chromatic (Archbishop) on Aug 11, 2002 at 21:53 UTC | |
|
Re: DialogBox needs Entry, Text
by graff (Chancellor) on Aug 11, 2002 at 23:21 UTC |