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

Re: Win32:GUI ::Textfield Clear()

by Anonymous Monk
on Nov 21, 2011 at 15:29 UTC ( #939230=note: print w/ replies, xml ) Need Help??

in reply to Win32:GUI ::Textfield Clear()

Lets see

samples/ 46- " > &Delete" => { -name => "Delete", 47: -onClick => sub { my $self = shift; + $self->Edit->Clear(); 0; } 48- },

Right, notepad won't delete text unless you select text.

You need  ->SelectAll;

This would have been easier/faster to answer if your code was runnable. Short, Self Contained, Correct Examples make for effective questions

Comment on Re: Win32:GUI ::Textfield Clear()
Select or Download Code
Replies are listed 'Best First'.
Re^2: Win32:GUI ::Textfield Clear()
by hennesse (Sexton) on Nov 21, 2011 at 16:09 UTC

    Thank you! Thank you!


Log In?

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (14)
As of 2016-02-08 21:26 GMT
Find Nodes?
    Voting Booth?

    How many photographs, souvenirs, artworks, trophies or other decorative objects are displayed in your home?

    Results (285 votes), past polls