I am trying to use the word-wrap facility of the text display widget in a program.
The following anonymous enum is defined in Fl_Text_Display.H : enum { WRAP_NONE, WRAP_AT_COLUMN, WRAP_AT_PIXEL, WRAP_AT_BOUNDS } and is meant to be used for specifying the wrap-type, which is the first argument to the member function: void Fl_Text_Display::wrap_mode (int wrap,int wrapMargin) However, while using the enum as follows: some_txt_display->wrap_mode (WRAP_AT_BOUNDS, 0); the compiler emits an error. It is necessary to use : some_txt_display->wrap_mode (3, 0); to make it work. which is Not A Good Thing if something else gets added to the enum list in a future FLTK version and changes the value of WRAP_AT_BOUNDS. How do I use WRAP_AT_BOUNDS without problems in this code? Apologies in advance if this is not the correct forum for this query. Thank you and regards K. Patel _______________________________________________ fltk-dev mailing list fltk-dev@easysw.com http://lists.easysw.com/mailman/listinfo/fltk-dev