Browse Source

etcpmon: widen debug level labels by 30% and shift radio buttons right

etcp-inflight-fix
Evgeny 4 months ago
parent
commit
3a2b427287
  1. 10
      tools/etcpmon/etcpmon_gui.c

10
tools/etcpmon/etcpmon_gui.c

@ -734,7 +734,7 @@ static void CreateControls(struct etcpmon_app* app) {
int dy = 485; int dy = 485;
app->hDebugGroupBox = CreateWindowExA(0, "BUTTON", "Debug Levels", app->hDebugGroupBox = CreateWindowExA(0, "BUTTON", "Debug Levels",
WS_CHILD | WS_VISIBLE | BS_GROUPBOX, WS_CHILD | WS_VISIBLE | BS_GROUPBOX,
1005, dy, 220, 545, hWnd, (HMENU)IDC_STATIC, hInst, NULL); 1005, dy, 240, 545, hWnd, (HMENU)IDC_STATIC, hInst, NULL);
dy += 20; dy += 20;
const char* header_texts[6] = { const char* header_texts[6] = {
"N\r\nO\r\nN\r\nE", "E\r\nR\r\nR\r\nO\r\nR", "W\r\nA\r\nR\r\nN", "N\r\nO\r\nN\r\nE", "E\r\nR\r\nR\r\nO\r\nR", "W\r\nA\r\nR\r\nN",
@ -752,7 +752,7 @@ static void CreateControls(struct etcpmon_app* app) {
CreateWindowExA(0, "STATIC", "Global:", WS_CHILD | WS_VISIBLE, CreateWindowExA(0, "STATIC", "Global:", WS_CHILD | WS_VISIBLE,
1015, dy + 2, 55, 20, hWnd, (HMENU)IDC_STATIC, hInst, NULL); 1015, dy + 2, 55, 20, hWnd, (HMENU)IDC_STATIC, hInst, NULL);
for (int l = 0; l < 6; l++) { for (int l = 0; l < 6; l++) {
int lx = 1080 + l * 22; int lx = 1100 + l * 22;
DWORD style = WS_CHILD | WS_VISIBLE | BS_AUTORADIOBUTTON; DWORD style = WS_CHILD | WS_VISIBLE | BS_AUTORADIOBUTTON;
if (l == 0) style |= WS_GROUP; if (l == 0) style |= WS_GROUP;
app->hDebugGlobalRadio[l] = CreateWindowExA(0, "BUTTON", "", app->hDebugGlobalRadio[l] = CreateWindowExA(0, "BUTTON", "",
@ -761,7 +761,7 @@ static void CreateControls(struct etcpmon_app* app) {
dy += 22; dy += 22;
for (int l = 0; l < 6; l++) { for (int l = 0; l < 6; l++) {
int lx = 1080 + l * 22; int lx = 1100 + l * 22;
app->hDebugHeaderEdit[l] = CreateWindowExA(WS_EX_CLIENTEDGE, "EDIT", header_texts[l], app->hDebugHeaderEdit[l] = CreateWindowExA(WS_EX_CLIENTEDGE, "EDIT", header_texts[l],
WS_CHILD | WS_VISIBLE | ES_READONLY | ES_CENTER | ES_MULTILINE, WS_CHILD | WS_VISIBLE | ES_READONLY | ES_CENTER | ES_MULTILINE,
lx, dy, 22, 60, hWnd, (HMENU)(UINT_PTR)(IDC_DEBUG_HEADER_BASE + l), hInst, NULL); lx, dy, 22, 60, hWnd, (HMENU)(UINT_PTR)(IDC_DEBUG_HEADER_BASE + l), hInst, NULL);
@ -771,9 +771,9 @@ static void CreateControls(struct etcpmon_app* app) {
for (int r = 0; r < ncat; r++) { for (int r = 0; r < ncat; r++) {
app->hDebugCatLabel[r] = CreateWindowExA(0, "STATIC", cat_names[r], app->hDebugCatLabel[r] = CreateWindowExA(0, "STATIC", cat_names[r],
WS_CHILD | WS_VISIBLE | SS_LEFT | SS_CENTERIMAGE, WS_CHILD | WS_VISIBLE | SS_LEFT | SS_CENTERIMAGE,
1015, dy + 1, 60, 16, hWnd, (HMENU)(UINT_PTR)(IDC_DEBUG_NAME_BASE + r), hInst, NULL); 1015, dy + 1, 80, 16, hWnd, (HMENU)(UINT_PTR)(IDC_DEBUG_NAME_BASE + r), hInst, NULL);
for (int l = 0; l < 6; l++) { for (int l = 0; l < 6; l++) {
int lx = 1080 + l * 22; int lx = 1100 + l * 22;
DWORD style = WS_CHILD | WS_VISIBLE | BS_AUTORADIOBUTTON; DWORD style = WS_CHILD | WS_VISIBLE | BS_AUTORADIOBUTTON;
if (l == 0) style |= WS_GROUP; if (l == 0) style |= WS_GROUP;
app->hDebugCatRadio[r][l] = CreateWindowExA(0, "BUTTON", "", app->hDebugCatRadio[r][l] = CreateWindowExA(0, "BUTTON", "",

Loading…
Cancel
Save