- static const int widthsFor2Fields[2] = { 200, -1 };
- widths = widthsFor2Fields;
+ NULL, // 1 field: default
+ widthsFor2Fields, // 2 fields: 1 fixed, 1 var
+ widthsFor3Fields, // 3 fields: 3 var
+ widthsFor4Fields, // 4 fields: 3 fixed, 2 vars
+ NULL // 5 fields: default (all have same width)
+ };
+
+ const int * const widths = widthsAll[nFields - 1];
+ sb->SetFieldsCount(nFields, widths);
+
+ wxString s;
+ for ( long n = 0; n < nFields; n++ )
+ {
+ if ( widths )
+ {
+ if ( widths[n] > 0 )
+ s.Printf(_T("fixed (%d)"), widths[n]);
+ else
+ s.Printf(_T("variable (*%d)"), -widths[n]);
+ }
+ else
+ {
+ s = _T("default");
+ }
+
+ SetStatusText(s, n);