|
Returning focus to caller: msg#00223lang.smalltalk.squeak.beginners
I have a Squeak application that has a main window (SystemWindow) and sometimes opens dialog windows to request user input (also SystemWindows). When a dialog is closed, I would like to return keyboard and mouse focus to the caller. I tried returnFocus (model isMorph) ifTrue: [ self currentHand newKeyboardFocus: model. self currentHand newMouseFocus: model.]. but that doesn't work. If several windows are open, it can return to a window other than the caller. BTW - The model is the caller window. What is the recommended way to return focus to a previous window? Thanks.
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: Re: translateFrom:to:table:, David Shaffer |
|---|---|
| Next by Date: | SqueakMap error, itsme213 |
| Previous by Thread: | Can't file in project with SqueakMap code in it, Mike O'Brien |
| Next by Thread: | SqueakMap error, itsme213 |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |