How to get the active Widget?

Mathieu de Naurois (denauroi@polhp1.in2p3.fr)
Mon, 7 Sep 1998 14:42:42 +0200 (METDST)


Hello ROOTers

Is it possible to get a pointer to the Widget that has the focus in a
dialog window? I wanted to implement a mechanism to forbid a TGTextEntry
to loose the focus if the entry is not valid. I catch the message
HandleFocusChange and return false if the entry is not valid, but the
window manager still changes the focus.

Thank you.

---------------------------------------------------

Mathieu de Naurois
LPNHE Ecole Polytechnique
denauroi@polhp1.in2p3.fr