Never mind, I found it right after I sent this.  In case you're 
interested, it's the logically named 'SetFocus', and it works on all 
controls.  (I thought it only worked on actual windows, but decided 
to give it a whirl while I waited for an answer, and lo and behold, 
it works on controls as well.)

> I looked for this on both archives (old one at http-tech and new one
> at SourceForge) and found nothing.  How can I give the focus back to a
> control?  I want focus to return to a textfield after pressing a
> button.   Specifically, the subroutine called by clicking the button
> should select some text, but even if I call $TextFieldName->Select as
> the last thing in the subroutine, the focus remains on the button.  If
> I click in the textfield, I lose the selection because the cursor
> jumps to wherever I clicked.
> 
> _______________________________________________
> Perl-Win32-GUI-Users mailing list
> Perl-Win32-GUI-Users@lists.sourceforge.net
> http://lists.sourceforge.net/lists/listinfo/perl-win32-gui-users
> 



Reply via email to