Callback and TextCtrl.SetValue()

Hi,

I would like to know if there is a way to avoid the call to the callback
method connected to the wxEVT_COMMAND_TEXT_UPDATED event, when I use the
SetValue() method on a TextCtrl ? I only want the callback activated when I
enter text in the control within the GUI...

Thank's,

···

--
   Frederic

   http://linux.gbiloba.org

Frederic wrote:

Hi,

I would like to know if there is a way to avoid the call to the callback method connected to the wxEVT_COMMAND_TEXT_UPDATED event, when I use the SetValue() method on a TextCtrl ? I only want the callback activated when I enter text in the control within the GUI...

You can use IsModified(). It return true only when a control was modified by the user.

···

--
They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety.
                                 Benjamin Franklin (1706-1790)