How to get the active Widget?

From: Mathieu de Naurois (denauroi@polhp1.in2p3.fr)
Date: Mon Sep 07 1998 - 14:42:42 MEST


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



This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:34:37 MET