Menu

#52 win32::GUI textfield get value

open
None
1
2021-03-19
2021-03-19
Kathirvel
No

Dear Sir,

I have put the some string in textfield box, but not show text in print format...

Please help me sir.

Show put string in print statement for button3_Click.

my $textfield = $mainform->AddTextfield(
-name => "Output",
-notify => 1,
-pos => [319,245],
-size => [216,25],
-multiline => 0,
-autohscroll => 0,
-vscroll => 1,
-autovscroll => 0,
-visible => 1,
);

my $button3 = $mainform->AddButton(-name=>'button3', -top=>350, -left=>280, -size=> [100,40], -font => $font1, -text=>"Test");

Regards,
Kathirvel.P

sub button3_Click
{
$text = Win32::GUI::Textfield($textfield);

print "$text\n";
}

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.