focus

Dear All,

How can I trace back which widget had focus.
i.e Cursor was on a text widget, and I pressed a button.

I would like, when I press that button for instance, that the button
callback sends the result to any of the text widgets that had focus.

Thanks a lot.


,
(o o)
---------------------------oOO–(_)–OOo-----------------------------


| Edgar Dieperink | Home : +41-(0)21-828.20.11 |
| Rue du Fort 22 | Facsimile : +41-(0)21-828.20.19 |
| CH-1188 Gimel | Office : +41-(0)22-995.00.51 |
| Switzerland | e-mail : dieperie@iprolink.ch |
| | http : www.up-all-night.ch/~dieperie/ |

Use a Pt_GOT_FOCUS callback for the text widgets, and store the widget that
last had the focus in there, in a variable.
In the button click callback, use this variable.
Markus


“Edgar Dieperink” <dieperie@iprolink.ch> wrote in message
news:3B263A52.C286B14D@iprolink.ch

Dear All,

How can I trace back which widget had focus.
i.e Cursor was on a text widget, and I pressed a button.

I would like, when I press that button for instance, that the button
callback sends the result to any of the text widgets that had focus.

Thanks a lot.


,
(o o)
---------------------------oOO–(_)–OOo-----------------------------


| Edgar Dieperink | Home : +41-(0)21-828.20.11 |
| Rue du Fort 22 | Facsimile : +41-(0)21-828.20.19 |
| CH-1188 Gimel | Office : +41-(0)22-995.00.51 |
| Switzerland | e-mail : > dieperie@iprolink.ch > |
| | http : > www.up-all-night.ch/~dieperie/ > |