83
86
static void init_acia_dialog(HWND hwnd)
97
SetWindowText(hwnd, intl_translate_text_new(IDS_ACIA_CAPTION));
98
temp_hwnd = GetDlgItem(hwnd, IDC_ACIA_ENABLE);
99
SetWindowText(temp_hwnd, intl_translate_text_new(IDS_ACIA_ENABLE));
100
temp_hwnd = GetDlgItem(hwnd, IDC_ACIA_DEVICE_LABEL);
101
SetWindowText(temp_hwnd, intl_translate_text_new(IDS_ACIA_DEVICE));
102
temp_hwnd = GetDlgItem(hwnd, IDC_ACIA_LOCATION_LABEL);
103
SetWindowText(temp_hwnd, intl_translate_text_new(IDS_ACIA_LOCATION));
104
temp_hwnd = GetDlgItem(hwnd, IDC_ACIA_INTERRUPT_LABEL);
105
SetWindowText(temp_hwnd, intl_translate_text_new(IDS_ACIA_INTERRUPT));
106
temp_hwnd = GetDlgItem(hwnd, IDOK);
107
SetWindowText(temp_hwnd, intl_translate_text_new(IDS_OK));
108
temp_hwnd = GetDlgItem(hwnd, IDCANCEL);
109
SetWindowText(temp_hwnd, intl_translate_text_new(IDS_CANCEL));
111
GetClientRect(hwnd, &rect);
113
temp_hwnd = GetDlgItem(hwnd, IDC_ACIA_ENABLE);
114
GetClientRect(temp_hwnd, &child_rect);
115
MapWindowPoints(temp_hwnd, hwnd, (POINT*)&child_rect, 2);
116
uilib_get_general_window_extents(temp_hwnd, &xsize, &ysize);
118
MoveWindow(temp_hwnd, child_rect.left, child_rect.top, xsize, child_rect.bottom - child_rect.top, TRUE);
119
min_width = child_rect.left + xsize + 10;
121
temp_hwnd = GetDlgItem(hwnd, IDC_ACIA_DEVICE_LABEL);
122
GetClientRect(temp_hwnd, &child_rect);
123
MapWindowPoints(temp_hwnd, hwnd, (POINT*)&child_rect, 2);
124
uilib_get_general_window_extents(temp_hwnd, &xsize, &ysize);
125
MoveWindow(temp_hwnd, child_rect.left, child_rect.top, xsize, child_rect.bottom - child_rect.top, TRUE);
126
xpos = child_rect.left + xsize + 10;
128
temp_hwnd = GetDlgItem(hwnd, IDC_ACIA_LOCATION_LABEL);
129
GetClientRect(temp_hwnd, &child_rect);
130
MapWindowPoints(temp_hwnd, hwnd, (POINT*)&child_rect, 2);
131
uilib_get_general_window_extents(temp_hwnd, &xsize, &ysize);
132
MoveWindow(temp_hwnd, child_rect.left, child_rect.top, xsize, child_rect.bottom - child_rect.top, TRUE);
133
if (xpos < child_rect.left + xsize + 10) {
134
xpos = child_rect.left + xsize + 10;
137
temp_hwnd = GetDlgItem(hwnd, IDC_ACIA_INTERRUPT_LABEL);
138
GetClientRect(temp_hwnd, &child_rect);
139
MapWindowPoints(temp_hwnd, hwnd, (POINT*)&child_rect, 2);
140
uilib_get_general_window_extents(temp_hwnd, &xsize, &ysize);
141
MoveWindow(temp_hwnd, child_rect.left, child_rect.top, xsize, child_rect.bottom - child_rect.top, TRUE);
142
if (xpos < child_rect.left + xsize + 10) {
143
xpos = child_rect.left + xsize + 10;
146
temp_hwnd = GetDlgItem(hwnd, IDC_ACIA_DEVICE);
147
GetClientRect(temp_hwnd, &child_rect);
148
MapWindowPoints(temp_hwnd, hwnd, (POINT*)&child_rect, 2);
149
MoveWindow(temp_hwnd, xpos, child_rect.top, child_rect.right - child_rect.left, child_rect.bottom - child_rect.top, TRUE);
150
if (min_width < xpos + child_rect.right - child_rect.left) {
151
min_width = xpos + child_rect.right - child_rect.left;
154
temp_hwnd = GetDlgItem(hwnd, IDC_ACIA_LOCATION);
155
GetClientRect(temp_hwnd, &child_rect);
156
MapWindowPoints(temp_hwnd, hwnd, (POINT*)&child_rect, 2);
157
MoveWindow(temp_hwnd, xpos, child_rect.top, child_rect.right - child_rect.left, child_rect.bottom - child_rect.top, TRUE);
158
if (min_width < xpos + child_rect.right - child_rect.left) {
159
min_width = xpos + child_rect.right - child_rect.left;
162
temp_hwnd = GetDlgItem(hwnd, IDC_ACIA_INTERRUPT);
163
GetClientRect(temp_hwnd, &child_rect);
164
MapWindowPoints(temp_hwnd, hwnd, (POINT*)&child_rect, 2);
165
MoveWindow(temp_hwnd, xpos, child_rect.top, child_rect.right - child_rect.left, child_rect.bottom - child_rect.top, TRUE);
166
if (min_width < xpos + child_rect.right - child_rect.left) {
167
min_width = xpos + child_rect.right - child_rect.left;
170
GetWindowRect(hwnd, &rect);
171
MoveWindow(hwnd, rect.left, rect.top, min_width + 20, rect.bottom - rect.top, TRUE);
89
173
if (support_enable != 0) {
90
174
resources_get_value("Acia1Enable", (void *)&res_value);