| 1148 | |
| 1149 | |
| 1150 | ResultType GuiType::ParseMoveParams(int aCoord[4], ResultToken &aResultToken, ExprTokenType *aParam[], int aParamCount) |
| 1151 | { |
| 1152 | ResultType result = OK; |
| 1153 | for (int i = 0; i < 4; ++i) |
| 1154 | { |
| 1155 | aCoord[i] = COORD_UNSPECIFIED; // Set default (also used in case of error). |
| 1156 | if (ParamIndexIsOmitted(i)) |
| 1157 | continue; |
| 1158 | else if (!ParamIndexIsNumeric(i)) |
| 1159 | result = result ? aResultToken.ParamError(i, aParam[i], _T("Number")) : FAIL; // But continue so all of aCoord is initialized. |
| 1160 | else |
| 1161 | aCoord[i] = ParamIndexToInt(i); |
| 1162 | } |
| 1163 | return result; |
| 1164 | } |
| 1165 | |
| 1166 | |
| 1167 | ResultType GuiType::ControlMove(GuiControlType &aControl, int xpos, int ypos, int width, int height) |