Hi Everybody :)
I'm having a little bit of trouble trying to add some single quotes to a database. I realize you have to escape them or add two single qoutes.
What I'm want to do is have a callback function which is activated when I paste data into the Fl_Text_Editor. The data is then automatically amended via a callback to correct all single quotes ' into two single quotes ' ' .
While the Fl_Text_Editor does have a callback function it does not call the callback when I change data in it or paste data into the text editor. This is probably because it's the Fl_Text_Buffer I should be focussing on. Unfortunately the Fl_Text_Buffer does not have a callback mechanism so I can't do what I want to do (as I tried with the Fl_Text_Editor).
Would anyone know how I can trigger a callback to be called when I paste data into or edit data in a Fl_Text_Editor?
Thanks