> And so again, i get stuck with the same problem as i had. But 
> when using your code exactly as you've written it, there's no 
> problem and it acts like it's supposed to.

OK - there must be something odd in your enclosing window then, I
guess...?

> I've changed my modify function to include
>     this->textBrowser->clear();
>     this->textBrowser->redraw();

Wouldn't bother calling redraw on the browser at this point...

>     for (i = 0; i < numValidWords; i++){
>                 char text[15];
>                 // print to the text array the new word + a newline
>                 sprintf(text, "%s\n", validWords[i]);
>                 this->textBrowser->add(text);
>     }

Might conside calling redraw on the parent "this" here though...

> as it's last set of instructions, and the constructor for my 
> window has nothing more than "textBrowser = new Browser(150, 
> 130, 470, 120, "Valid words:");"
> 
> It doesnt seem to be honouring the clear() instruction. Which 
> is as strange as all can be.
> The Browser is in a subclassed Window, and it's a private 
> member of the class. The class calls the constructor of the 
> Browser as a method of the classes constructor.
> I just cant see what's going wrong here.

I think we need to take a look at how you are constructing your
window... Are we sure, for example, that the browser widget is actually
a child of the enclosing window (as far as fltk's rendering is
concerned) ?

Can you show us you're your subclassed window and it's consructor?




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