On 27.01.2011, at 23:12, Greg Ercolano wrote:

> I keep bumping my head into '@' symbol parsing in unexpected places.
> Is there a global way to disable symbols, like a flag?
> 
> If not I'd like to propose an Fl::option() for this, eg.
> FL_OPTION_DISABLE_AT_SYMBOLS, which would override the value
> of the draw_symbols flags on the text drawing functions
> to disable the feature wholesale.
> 
> I wouldn't expect it to affect '@' parsing in Fl_Browser
> (where @ isn't interpreted as 'symbols', but as font/color selections)

I would not make it an option, because the idea of options is, that they can be 
overridden by the end user. 

You can use this:


void no_symbol_label(const Fl_Label* o, int X, int Y, int W, int H, Fl_Align 
align)
{
  fl_font(o->font, o->size);
  fl_color((Fl_Color)o->color);
  fl_draw(o->value, X, Y, W, H, align, o->image, 0);
}

main() {
  Fl::set_labeltype(FL_NORMAL_LABEL, no_symbol_label, fl_normal_measure);
  ...
}


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

Reply via email to