Skip to content
Snippets Groups Projects
Commit 994b5f7c authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Fix the date format selection for wizard mode (cosmetic)

... using WIN_FIXEDHEIGHT mode to limit the list height in wizard mode.

I had a solution using a negative width param value to specify a height limit,
but then I saw this code in ulist():
```
	if(mode&WIN_FIXEDHEIGHT) {
		height=api->list_height;
	}
```

something Deuce added for SyncTERM and I don't think I've ever used before.
It works.
parent 5591b057
No related branches found
No related tags found
1 merge request!455Update branch with changes from master
......@@ -1338,9 +1338,12 @@ int edit_sys_datefmt(int page, int total)
"\n"
"Different date value separators are also supported.\n";
;
if(page)
if(page) {
mode = wiz_help(page, total, uifc.helpbuf);
i=uifc.list(mode,0,00,0,&i,0
mode |= WIN_FIXEDHEIGHT;
uifc.list_height = 7;
}
i=uifc.list(mode, 0, 11, 0,&i,0
,"Date Display Format", opts);
if (i < 0)
return i;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment