FLTK logo

[fltk.general] Label not visible in Fl_Button

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Library      Forums      Links      Apps     Login 
 All Forums  |  Back to fltk.general  ]
 
Previous Message ]New Message | Reply ]Next Message ]

Label not visible in Fl_Button Suja Jul 12, 2007  
 
Hi,
I need to change label of the Fl_Button while runtime.
So as an initial step I copied label to a char * and send to ->label but it
doesn't display it.
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..

Could someone please direct me what I can do?
I simply want to display name of current reference image without any callback,
the label of which updates with user changing reference image. Is there a better
widget than Fl_Button.
Thanks.
Suja.
Direct Link to Message ]
 
     
Previous Message ]New Message | Reply ]Next Message ]
 
 

Comments are owned by the poster. All other content is copyright 1998-2025 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.