Ben Stott schrieb:
>> Can you make a very minimal hack of your code (i.e. missing out the
> Yeah, that's what i was going to do :P
> /* --------- CODE ---------
> ...
> void TargetWindow::buttonCallBack(){
>    int idx;
>    if (!(this->inbox->isLegal())) {
>       alert("You need to make sure all the boxes contain text!");
>    } else {
>       this->inbox->setTarget();
>       // continue with the non-GUI stuff
>         this->outputDisplay->buffer()->remove(0, INT_MAX);
>       for (idx = 0; idx < numValidWords; idx++){
>                 char text[15];
>                 sprintf(text, "%s\n", validWords[idx]);
>                 this->outputDisplay->append(text);
>         }
>         this->outputDisplay->clear();

what is that clear() good for?
buffer()->remove() already removed all content.
calling clear() on a Group detroys all children!
http://www.fltk.org/doc-2.0/html/classfltk_1_1Group.html#ae18ea1b059afe782eb054409d152d33

>     }
> }
> 
> ---------/CODE------*/
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to