Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change

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: (4)
As of 2015-11-28 18:37 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 (743 votes), past polls