1.as soon as i run this script
a window opens
But the cursor is not on the name block
Question- Can it be possible that as soon as the window opens the
cursor should be present in the name block.

again
2. suppose once i typed a name,it will show up with hellow then the
$name.
but in the same window if I again give some other name in the name
block,
the hellow $ name is coming next to the previous test messege in the
text area.
Question
Each time I give a input and then enter button push me the only text
present there should be hellow and the recent name entered.
Can it be possible to do that.

Add the line:
$ent->focus();
right before MainLoop;
> again
> 2. suppose once i typed a name,it will show up with hellow then the
> $name.
> but in the same window if I again give some other name in the name
> block,
> the hellow $ name is coming next to the previous test messege in the
> text area.
> Question
> Each time I give a input and then enter button push me the only text
> present there should be hellow and the recent name entered.
> Can it be possible to do that.

See 'perldoc Tk::focus'
>
> again
> 2. suppose once i typed a name,it will show up with hellow then the
> $name.
> but in the same window if I again give some other name in the name
> block,
> the hellow $ name is coming next to the previous test messege in the
> text area.

Well, that is what you told it to do.
> Question
> Each time I give a input and then enter button push me the only text
> present there should be hellow and the recent name entered.
> Can it be possible to do that.
>

Then you have to delete what was already there before inserting a new
string. Look for the delete function in 'perldoc Tk::Text'.

HTH

--
Brian Raven

That which hits the fan tends to get flung in all directions.
-- Larry Wall in <>

Share This Page

Welcome to The Coding Forums!

Welcome to the Coding Forums, the place to chat about anything related to programming and coding languages.

Please join our friendly community by clicking the button below - it only takes a few seconds and is totally free. You'll be able to ask questions about coding or chat with the community and help others.
Sign up now!