}\r
}\r
\r
-char *p\r
+char *\r
EndMatch(char *s1, char *s2)\r
{\r
char *p, *q;\r
LayoutOptions(k, k+groupSize, buf, cps->option); // flush the group\r
boxList[groups++] = layout; // group end in odd entries\r
k = n = k + groupSize;\r
+#if 0\r
} else {\r
// try to recognize "two-column groups" based on option suffix\r
int j = 1;\r
while((p = EndMatch(cps->option[k].name, EndMatch(cps->option[k+2*j].name)) &&\r
- (q = EndMatch(cps->option[k+1].name, EndMatch(cps->option[k+2*j+1].name)) ) j++\r
+ (q = EndMatch(cps->option[k+1].name, EndMatch(cps->option[k+2*j+1].name)) ) j++;\r
+#endif\r
} else k += groupSize; // small groups are grouped with the solitary options\r
}\r
if(n != k) LayoutOptions(n, k, "", cps->option); // flush remaining solitary options\r
AddControl(x+95, y-1, 50, 500, 0x0085, CBS_AUTOHSCROLL | CBS_DROPDOWN | WS_VISIBLE | WS_CHILD | WS_TABSTOP, i+1);\r
break;\r
case Button:\r
- AddControl(x, y, 40, 15, 0x0080, BS_PUSHBUTTON | WS_VISIBLE | WS_CHILD, i);\r
+ case SaveButton:\r
+ AddControl(x-2, y, 65, 13, 0x0080, BS_PUSHBUTTON | WS_VISIBLE | WS_CHILD, i);\r
break;\r
}\r
\r