Rev 120 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 120 | Rev 133 | ||
---|---|---|---|
Line 4... | Line 4... | ||
4 | // |
4 | // |
5 | // "MIKRO_uic.c" |
5 | // "MIKRO_uic.c" |
6 | // |
6 | // |
7 | // Implementation file for UI build functions |
7 | // Implementation file for UI build functions |
8 | // |
8 | // |
9 | // Date: |
9 | // Date: 10-17-2015 |
10 | // |
10 | // |
11 | //---------------------------------------------------------------------------------------------------- |
11 | //---------------------------------------------------------------------------------------------------- |
12 | //---------------------------------------------------------------------------------------------------- |
12 | //---------------------------------------------------------------------------------------------------- |
13 | 13 | ||
14 | //---------------------------------------------------------------------------------------------------- |
14 | //---------------------------------------------------------------------------------------------------- |
Line 1978... | Line 1978... | ||
1978 | // errChk(SetCtrlAttribute (hPanel, P1_PORT, ATTR_CHECK_RANGE, VAL_NOTIFY)); |
1978 | // errChk(SetCtrlAttribute (hPanel, P1_PORT, ATTR_CHECK_RANGE, VAL_NOTIFY)); |
1979 | // errChk(SetCtrlAttribute (hPanel, P1_PORT, ATTR_PADDING, 0)); |
1979 | // errChk(SetCtrlAttribute (hPanel, P1_PORT, ATTR_PADDING, 0)); |
1980 | // errChk(SetCtrlAttribute (hPanel, P1_PORT, ATTR_SHOW_RADIX, 0)); |
1980 | // errChk(SetCtrlAttribute (hPanel, P1_PORT, ATTR_SHOW_RADIX, 0)); |
1981 | // ****WARNING**** Skipped ATTR_DISABLE_RADIX = False |
1981 | // ****WARNING**** Skipped ATTR_DISABLE_RADIX = False |
1982 | // ****WARNING**** Skipped ATTR_INCDEC_WIDTH = 9 |
1982 | // ****WARNING**** Skipped ATTR_INCDEC_WIDTH = 9 |
1983 | errChk(SetCtrlAttribute (hPanel, P1_PORT, ATTR_DFLT_VALUE, |
1983 | errChk(SetCtrlAttribute (hPanel, P1_PORT, ATTR_DFLT_VALUE, 3)); |
1984 | errChk(DefaultCtrl (hPanel, P1_PORT)); |
1984 | errChk(DefaultCtrl (hPanel, P1_PORT)); |
1985 | // errChk(SetCtrlAttribute (hPanel, P1_PORT, ATTR_SHOW_INCDEC_ARROWS, 1)); |
1985 | // errChk(SetCtrlAttribute (hPanel, P1_PORT, ATTR_SHOW_INCDEC_ARROWS, 1)); |
1986 | // errChk(SetCtrlAttribute (hPanel, P1_PORT, ATTR_NO_EDIT_TEXT, 0)); |
1986 | // errChk(SetCtrlAttribute (hPanel, P1_PORT, ATTR_NO_EDIT_TEXT, 0)); |
1987 | errChk(SetCtrlAttribute (hPanel, P1_PORT, ATTR_WIDTH, 30)); |
1987 | errChk(SetCtrlAttribute (hPanel, P1_PORT, ATTR_WIDTH, 30)); |
1988 | errChk(SetCtrlAttribute (hPanel, P1_PORT, ATTR_LABEL_TOP, 14)); |
1988 | errChk(SetCtrlAttribute (hPanel, P1_PORT, ATTR_LABEL_TOP, 14)); |
Line 2265... | Line 2265... | ||
2265 | if (resAdjustment) |
2265 | if (resAdjustment) |
2266 | { |
2266 | { |
2267 | errChk(GetMonitorFromPanel (hPanel, &monitorId)); |
2267 | errChk(GetMonitorFromPanel (hPanel, &monitorId)); |
2268 | errChk(GetMonitorAttribute (monitorId, ATTR_HEIGHT, &screenHeight)); |
2268 | errChk(GetMonitorAttribute (monitorId, ATTR_HEIGHT, &screenHeight)); |
2269 | errChk(GetMonitorAttribute (monitorId, ATTR_WIDTH, &screenWidth)); |
2269 | errChk(GetMonitorAttribute (monitorId, ATTR_WIDTH, &screenWidth)); |
2270 | SFv = (((float)screenHeight/ |
2270 | SFv = (((float)screenHeight/1040)-1)*0.01*resAdjustment+1; |
2271 | errChk(SetPanelAttribute (hPanel, ATTR_HEIGHT, (int)(387*SFv))); |
2271 | errChk(SetPanelAttribute (hPanel, ATTR_HEIGHT, (int)(387*SFv))); |
2272 | SFh = (((float)screenWidth/1920)-1)*0.01*resAdjustment+1; |
2272 | SFh = (((float)screenWidth/1920)-1)*0.01*resAdjustment+1; |
2273 | errChk(SetPanelAttribute (hPanel, ATTR_WIDTH, (int)(606*SFh))); |
2273 | errChk(SetPanelAttribute (hPanel, ATTR_WIDTH, (int)(606*SFh))); |
2274 | errChk(SetPanelAttribute (hPanel, ATTR_TOP, (int)(28*SFv))); |
2274 | errChk(SetPanelAttribute (hPanel, ATTR_TOP, (int)(28*SFv))); |
2275 | errChk(SetPanelAttribute (hPanel, ATTR_LEFT, (int)(13*SFh))); |
2275 | errChk(SetPanelAttribute (hPanel, ATTR_LEFT, (int)(13*SFh))); |