Hi

Im currently trying to do a simple implementation of a program which allows the 
user to enter multiple lines of text and push a button that submits then 
displays the submitted text into the output box and clears the input text. The 
next time it should output to the next line. Both input and output box needs to 
have a vertical scroll bar.

Im currently stuck here are my initial and current attempts.

Initially I used Fl_Multiline_Input and Fl_Multiline_Output and then I made 2 
scroll bars using Fl_Scrollbar with a Fl_button to communicate between the two. 
This was soon to be known as mistake as a better look at the specification 
Fl_Multiline cant be combined with scrollbar.

At the currently stage I can only do without scroll bar and type text in the 
input box display in the output box and clear the input box after its 
displayed. However on the next cycle it just over writes the previous text 
rather then going to the next stack.

The goal is to make this kinda like a msn window where you type some text it 
will output to the display box and keep stacking up and have a scroll bar on 
the side for both input and output.

Could someone kindly point me into the right direction or give an simple 
example of this kinda idea of multiple lines of input click send then display 
to a output which could be stacked up?

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

Reply via email to