Hello,

Is it possible to send text typed into an Fl_Input box to another box without 
using a callback via an enter button?  The examples I have seen use a button to 
trigger a callback.  I would like to have the user type an answer into an Input 
box and then hit the enter key on the
keyboard. I would then like to send the user input to another box without any 
buttons in the window.  Can this be done? I am guessing the 
when(ENTER_PRESSED...) function might do the trick, but I am not sure how to go 
about this.

If this can work, what functions would be used and could you provide a short 
statement for syntax?

Also, if I am wanting to loop this series of events, how would I go about this 
if the Input box and the other text box are dynamically allocated? Should they 
be destroyed and recreated with each iteration to avoid memory leaks?

I can send my code if that would be helpful.

Please pardon my ignorance and thanks for any suggestions.
Edgar Crockett



_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to