> I working on an assignment where i have to design a 
> chatroom..

Homework?
You learn more by doing that yourself...

> it contains, menu for chatroom, buttons for 
> connect, disconnect, clear, exit and submit. obviously it has 
> a output screen (multiline) and a multiline input..
> 
> so far, i managed to design all the basics. however i am 
> having problems in:
> >> activating submit button when connect button is pressed 
> and when the text is inserted in the input.

What's the problem?

        submit_button->activate()

Called from the call-back of the connect button (once the connection is
made, of course) or from the callback of the input widget on
WHEN_CHANGED.

The deactivate once it has been pressed, of course...


> >> another problem is inserting a new line in the input text 
> when the text has reach its maximum size in a sentence. I 
> managed to limit but cannt seem to insert the new line...

What widget are you using for the input?

It should not be that hard for the input widget handle method to track
input chars and force a line wrap.

Most of the text widgets have selectable word wrap modes anyway, it may
be enough simply to enable that for your widget.



SELEX Galileo Ltd
Registered Office: Sigma House, Christopher Martin Road, Basildon, Essex SS14 
3EL
A company registered in England & Wales.  Company no. 02426132
********************************************************************
This email and any attachments are confidential to the intended
recipient and may also be privileged. If you are not the intended
recipient please delete it from your system and notify the sender.
You should not copy it or use it for any purpose nor disclose or
distribute its contents to any other person.
********************************************************************

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

Reply via email to