I have an eC/ecere question

General help with the eC language.
Post Reply
amigojapan
Posts: 7
Joined: Fri Jul 29, 2022 7:43 am

I have an eC/ecere question

Post by amigojapan »

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
amigojapan
Posts: 7
Joined: Fri Jul 29, 2022 7:43 am

Re: I have an eC/ecere question

Post by amigojapan »

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!
jerome
Site Admin
Posts: 608
Joined: Sat Jan 16, 2010 11:16 pm

Re: I have an eC/ecere question

Post by jerome »

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.
Post Reply