For Programmers: Free Programming Magazines  


Home > Archive > Smalltalk > October 2004 > [VW7] Newbie question: resetting a widget's focus









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author [VW7] Newbie question: resetting a widget's focus
John Trinder

2004-10-21, 8:57 pm

Hi,

I have a main window with some action buttons and a sub-canvas that
consists of a text editor and a list box. The application model for
the sub-canvas responds to the #losingFocus event for the text editor
via the method, #exit.

My quandary is this:

In the #exit method I have a conditional, following which, if true,
the focus is to be returned to the edit box otherwise focus is given
to a parent window button.

I just can not see a way of returning focus to the edit box in the
sub-canvas. I've tried just about everything but to no avail. Can
anyone help me?

Regards, John Trinder
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com