|
|
On Jul 13, 2007, at 5:26 AM, Suja wrote:
> Fl_Button *o;
> o->label("reference image");
> displays reference image as label, But.
>
> char reflabel[10] = "reference image";
> o->label(reflabel);
> doesn't show any label on the button..
You seem to have declared "reflabel" as a local variable, so as soon
as you leave the function, "reflabel" will vanish and Fl_Button will
show whatever junk it finds where "reflabel" once was. Just use
"copy_label()" instead of "label()" and you are done.
----
http://robowerk.com/
[ Direct Link to Message ] | |
|
| |