| 194 | | FORM_INIT(ID, EventIDShow, NULL, NULL, NULL, nFormFlgShowHelp); |
| 195 | | |
| 196 | | SetupInputFormToUseFontSet(formID, rect, rectInp, LANG(STR_ID_PROMPT)); |
| 197 | | |
| 198 | | FORM_ADD_INPUT2(ID, ID, rect, rectInp, LANG(STR_ID_PROMPT) , 10, 0, 0, NULL, id, 0, NULL, LANG(STR_ID_HELP)); |
| 199 | | #else |
| 200 | | FORM_INIT(ID, EventIDShow, NULL, NULL, NULL, nFormFlgShowHelp); |
| 201 | | FORM_ADD_INPUT(ID, ID, INPUT_ID_X, INPUT_ID_Y, LANG(STR_ID_PROMPT) , 10, 0, 0, NULL, id, 0, NULL, LANG(STR_ID_HELP)); |
| 202 | | #endif |
| 203 | | FORM_SHOW(ID); |
| 204 | | FORM_RUN(ID); |
| 205 | | FORM_HIDE(ID); |
| 206 | | } |
| 207 | | |
| | 194 | FORM_INIT(Setup, EventPresetScreenShow, NULL, NULL, NULL, nFormFlgShowHelp); |
| | 195 | |
| | 196 | SetupInputFormToUseFontSet(formSetup, rect, rectInp, "Total Violation: "); |
| | 197 | |
| | 198 | FORM_ADD_INPUT2(Setup, Thresh, rect, rectInp, "On Threshold: ", 6, 0, 999999, NULL, &g_setup.onThresh, FORM_FLOAT, NULL, "Enter the on threshold"); |
| | 199 | AdvanceInputRects(rect, rectInp); |
| | 200 | FORM_ADD_INPUT2(Setup, ViolTot, rect, rectInp, "Total Violation: ", 6, 0, 999999, NULL, &g_setup.violWt[0], FORM_FLOAT, NULL, "Enter violation weight for total"); |
| | 201 | AdvanceInputRects(rect, rectInp); |
| | 202 | FORM_ADD_INPUT2(Setup, Viol1, rect, rectInp, "P1 Violation: ", 6, 0, 999999, NULL, &g_setup.violWt[1], FORM_FLOAT, NULL, "Violation weight for P1"); |
| | 203 | #else |
| | 204 | FORM_INIT(Setup, EventPresetScreenShow, NULL, NULL, NULL, nFormFlgShowHelp); |
| | 205 | FORM_ADD_INPUT(Setup, Thresh, 0, FONT_HEIGHT * 2, "On Threshold: ", 6, 0, 999999, NULL, &g_setup.onThresh, FORM_FLOAT, NULL, "Enter the on threshold"); |
| | 206 | FORM_ADD_INPUT(Setup, ViolTot, 0, FONT_HEIGHT * 4, "Total violation: ", 6, 0, 999999, NULL, &g_setup.violWt[0], FORM_FLOAT, NULL, "Enter violation weight for total"); |
| | 207 | FORM_ADD_INPUT(Setup, Viol1, 0, FONT_HEIGHT * 6, "P1 Violation: ", 6, 0, 999999, NULL, &g_setup.violWt[1], FORM_FLOAT, NULL, "Violation weight for P1"); |
| | 208 | #endif |
| | 209 | FORM_SHOW(Setup); |
| | 210 | |
| | 211 | int n = FORM_RUN(Setup); |
| | 212 | |
| | 213 | if (n != FORM_RESULT_ESC) |
| | 214 | { |
| | 215 | SaveSetup(); |
| | 216 | } |
| | 217 | |
| | 218 | FORM_HIDE(Setup); |
| | 219 | } |