[fltk.general] Switch Fl_Secret_Input to Fl_Input

2011-01-07 Thread Brad
I am using Fl_Secret_Input to provide a field where users can type password sentences. I have a Fl_Button named 'View Sentence' that allows users to see (but not edit) the sentence they have typed. When they click 'View Sentence', a fl_message displays the sentence. I would like to toggle the

Re: [fltk.general] Switch Fl_Secret_Input to Fl_Input

2011-01-07 Thread Albrecht Schlosser
On 07.01.2011 18:05, Brad wrote: I am using Fl_Secret_Input to provide a field where users can type password sentences. I have a Fl_Button named 'View Sentence' that allows users to see (but not edit) the sentence they have typed. When they click 'View Sentence', a fl_message displays the

Re: [fltk.general] Switch Fl_Secret_Input to Fl_Input

2011-01-07 Thread Brad
Albrecht Schlosser wrote: Good idea to ask ;-) It's much easier than you thought. Fl_Secret_Input is derived from Fl_Input_, and you can set the type() to change its behavior. Here are the type definitions from the FLTK 1.3 docs (FLTK 1.1 is identical): #define FL_NORMAL_INPUT