Ecere SDK/eC Forums
https://ecere.org/community/
Print view

I have an eC/ecere question
https://ecere.org/community/viewtopic.php?f=1&t=455
Page 1 of 1
Author:  amigojapan [ Wed Aug 24, 2022 2:54 am ]
Post subject:  I have an eC/ecere question

hi, I want to call a function every time a key is released inside an edit box.
any idea of how this can be done?
example code welcome!



thanks in advanced,
amigojapan
Author:  amigojapan [ Wed Aug 24, 2022 3:14 am ]
Post subject:  Re: I have an eC/ecere question

I can answer my own question now!

after double clicking the edit box, the following method appeared, and it worked as wanted!

Code: Select all

      bool NotifyModified(EditBox editBox)
      {
         printf("notify modified called!");
         return true;
      }
inside the edit box scope that is... just double click the edit box and it will appear!
Author:  jerome [ Wed Aug 24, 2022 4:46 am ]
Post subject:  Re: I have an eC/ecere question

There is also NotifyUpdate and NotifyKeyDown which might or might not be what you want depending on the situation.

NotifyModified is only called once after the EditBox loses the focus following a modification.
All times are UTC-05:00 Page 1 of 1