Author: greg.ercolano
Date: 2012-09-17 15:44:54 -0700 (Mon, 17 Sep 2012)
New Revision: 9682
Log:
Changed example code to make widths[] array static, as per
problems reported in fltk.general thread on or around 09/12/12 ("Subject:
Fl_Browser columns")..
Modified:
branches/branch-1.3/FL/Fl_Browser.H
Modified: branches/branch-1.3/FL/Fl_Browser.H
===================================================================
--- branches/branch-1.3/FL/Fl_Browser.H 2012-09-17 09:16:25 UTC (rev 9681)
+++ branches/branch-1.3/FL/Fl_Browser.H 2012-09-17 22:44:54 UTC (rev 9682)
@@ -257,7 +257,7 @@
Example:
\code
Fl_Browser *b = new Fl_Browser(..);
- int widths[] = { 50, 50, 50, 70, 70, 40, 40, 70, 70, 50, 0 }; // widths for
each column
+ static int widths[] = { 50, 50, 50, 70, 70, 40, 40, 70, 70, 50, 0 }; //
widths for each column
b->column_widths(widths); // assign array to widget
b->column_char('\t'); // use tab as the column character
b->add("USER\tPID\tCPU\tMEM\tVSZ\tRSS\tTTY\tSTAT\tSTART\tTIME\tCOMMAND");
_______________________________________________
fltk-commit mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-commit