On Sat, 29 Sep 2007, Greg Ercolano wrote:

>> If I try to set a label like so, the label contents look garbled:
>> this->tracknum->label(labeltext);

>       Sounds like your char array is going out of scope
>       Either make sure your char declaration doesn't go out of scope,
>       or try instead:
> this->tracknum->copy_label(labeltext);

Ah, I had mistakenly assumed that ->label would already make a copy for 
exactly that reason. I wasn't aware that a copy_label method existed, glad 
it was something trivial.

Best,
Marc

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

Reply via email to