Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw

Re: How to clear the buffer: Win32::GUI

by rpnoble419 (Pilgrim)
on Aug 11, 2012 at 10:21 UTC ( #986887=note: print w/ replies, xml ) Need Help??

in reply to How to clear the buffer: Win32::GUI

What are you trying to reset? if you are trying to reset input fields (ie: text box, list box, etc.) and you use the hide function to close/hide the sub window, then your window is still there with all of the data you input. You should create a function to reset the window to the default state when you execute any of the following events: Deactivate(), Hide() or Terminate() event. See onTerminate below.

$Main = Win32::GUI::Window->new( -name => 'Main', -title => $appname, -pos => [10,10], -menu => $MainMenu, -maxsize => [500, 660], -onTerminate => \&Exit_Click, -onMinimize => \&DoHideMe_Click, -onTimer => sub{TimedOperation_Timer()}, -size => [500,650], );

Comment on Re: How to clear the buffer: Win32::GUI
Download Code
Replies are listed 'Best First'.
Re^2: How to clear the buffer: Win32::GUI
by Udhay (Initiate) on Aug 11, 2012 at 11:57 UTC


    Thanks, for your response. I want to reset all input fields and window should return to its original state, without holding any input resources.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://986887]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (21)
As of 2015-11-30 21:08 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (783 votes), past polls