{
result r = E_SUCCESS;
- SysTryReturnResult(NID_UI_CTRL, (rowIndex >= 0 && columnIndex >= 0 && rowIndex < __rowCount && columnIndex < __columnCount), E_INVALID_ARG, "Invalid argument(s) is used. Invalid row or column index.");
+ SysTryReturnResult(NID_UI_CTRL, (rowIndex >= 0 && columnIndex >= 0 && rowIndex < __rowCount && columnIndex < __columnCount), E_OUT_OF_RANGE, "rowIndex(%d) or columnIndex(%d) is out of range.", rowIndex, columnIndex);
SysTryReturnResult(NID_UI_CTRL, (HasChild(rowIndex, columnIndex) == false), E_INVALID_OPERATION, "The control instance is already added in this index.");
//Can't add in merged cells
Control*
_GroupContainer::GetControlAt(int rowIndex, int columnIndex)
{
- SysTryReturn(NID_UI_CTRL, (rowIndex >= 0 && columnIndex >= 0 && rowIndex < __rowCount && columnIndex < __columnCount), null, E_INVALID_ARG, "[E_INVALID_ARG] Invalid argument(s) is used. Invalid row or column index.");
+ SysTryReturn(NID_UI_CTRL, (rowIndex >= 0 && columnIndex >= 0 && rowIndex < __rowCount && columnIndex < __columnCount), null, E_OUT_OF_RANGE, "rowIndex(%d) or columnIndex(%d) is out of range.", rowIndex, columnIndex);
result r = E_SUCCESS;
SysTryReturn(NID_UI_CTRL, (HasChild(rowIndex, columnIndex)), null, E_INVALID_OPERATION, "Control does not exist in the specified cell.");
result
_GroupContainer::RemoveControlAt(int rowIndex, int columnIndex)
{
- SysTryReturnResult(NID_UI_CTRL, (rowIndex >= 0 && columnIndex >= 0 && rowIndex < __rowCount && columnIndex < __columnCount), E_INVALID_ARG, "Invalid argument(s) is used. Invalid row or column index.");
+ SysTryReturnResult(NID_UI_CTRL, (rowIndex >= 0 && columnIndex >= 0 && rowIndex < __rowCount && columnIndex < __columnCount), E_OUT_OF_RANGE, "rowIndex(%d) or columnIndex(%d) is out of range.", rowIndex, columnIndex);
result r = E_SUCCESS;
{
result r = E_SUCCESS;
- SysTryReturnResult(NID_UI_CTRL, (columnIndex >= 0 && columnIndex < __columnCount), E_INVALID_ARG, "Invalid argument(s) is used. Column index should be non negative and less than total column count.");
+ SysTryReturnResult(NID_UI_CTRL, (columnIndex >= 0 && columnIndex < __columnCount), E_OUT_OF_RANGE, "columnIndex(%d) is out of range.", columnIndex);
SysTryReturnResult(NID_UI_CTRL, width >= 0, E_INVALID_ARG, "Invalid argument(s) is used. Column width should be non negative.");
int row = -1;
float
_GroupContainer::GetColumnWidth(int columnIndex)
{
- SysTryReturnResult(NID_UI_CTRL, (columnIndex >= 0 && columnIndex < __columnCount), E_INVALID_ARG, "Invalid argument(s) is used. Column index should be non negative and less than total column count.");
+ SysTryReturnResult(NID_UI_CTRL, (columnIndex >= 0 && columnIndex < __columnCount), E_OUT_OF_RANGE, "columnIndex(%d) is out of range.", columnIndex);
return __pCellsArray[0][columnIndex].cellBounds.width;
}
{
result r = E_SUCCESS;
- SysTryReturnResult(NID_UI_CTRL, (rowIndex >= 0 && rowIndex < __rowCount), E_INVALID_ARG, "Invalid argument(s) is used. Row index should be non negative and less then total row count.");
+ SysTryReturnResult(NID_UI_CTRL, (rowIndex >= 0 && rowIndex < __rowCount), E_OUT_OF_RANGE, "rowIndex(%d) is out of range.", rowIndex);
SysTryReturnResult(NID_UI_CTRL, height >= 0, E_INVALID_ARG, "Invalid argument(s) is used. Row height should be non negative.");
int row = -1;
float
_GroupContainer::GetRowHeight(int rowIndex)
{
- SysTryReturnResult(NID_UI_CTRL, (rowIndex >= 0 && rowIndex < __rowCount), E_INVALID_ARG, "Invalid argument(s) is used. Row index should be non negative and less than total row count.");
+ SysTryReturnResult(NID_UI_CTRL, (rowIndex >= 0 && rowIndex < __rowCount), E_OUT_OF_RANGE, "rowIndex(%d) is out of range.", rowIndex);
return __pCellsArray[rowIndex][0].cellBounds.height;
}
int rowEndIndex = rowStartIndex + rowCount;
int columnEndIndex = columnStartIndex + columnCount;
- SysTryReturnResult(NID_UI_CTRL, (rowStartIndex >= 0 && rowStartIndex < __rowCount && rowEndIndex >= 0 && rowEndIndex < __rowCount), E_INVALID_ARG, "Invalid argument(s) is used. Invalid row start or end index.");
- SysTryReturnResult(NID_UI_CTRL, (columnStartIndex >= 0 && columnStartIndex < __columnCount && columnEndIndex >= 0 && columnEndIndex < __columnCount), E_INVALID_ARG, "Invalid argument(s) is used. Invalid column start or end index.");
+ SysTryReturnResult(NID_UI_CTRL, (rowStartIndex >= 0 && rowStartIndex < __rowCount && rowEndIndex >= 0 && rowEndIndex < __rowCount), E_OUT_OF_RANGE, "rowStartIndex(%d) or rowCount(%d) is out of range.", rowStartIndex, rowCount);
+ SysTryReturnResult(NID_UI_CTRL, (columnStartIndex >= 0 && columnStartIndex < __columnCount && columnEndIndex >= 0 && columnEndIndex < __columnCount), E_OUT_OF_RANGE, "columnStartIndex(%d) or columnCount(%d) is out of range.", columnStartIndex, columnCount);
//If same combination of cells, return success
if (__pCellsArray[rowStartIndex][columnStartIndex].isParent)
{
result r = E_SUCCESS;
- SysTryReturnResult(NID_UI_CTRL, (rowIndex >= 0 && columnIndex >= 0 && rowIndex < __rowCount && columnIndex < __columnCount), E_INVALID_ARG, "Invalid argument(s) is used. Invalid row or column index.");
+ SysTryReturnResult(NID_UI_CTRL, (rowIndex >= 0 && columnIndex >= 0 && rowIndex < __rowCount && columnIndex < __columnCount), E_OUT_OF_RANGE, "rowIndex(%d) or columnIndex(%d) is out of range.", rowIndex, columnIndex);
if (__pCellsArray[rowIndex][columnIndex].parentCell.row == rowIndex &&
__pCellsArray[rowIndex][columnIndex].parentCell.column == columnIndex)
{
result r = E_SUCCESS;
- SysTryReturnResult(NID_UI_CTRL, (rowIndex >= 0 && columnIndex >= 0 && rowIndex < __rowCount && columnIndex < __columnCount), E_INVALID_ARG, "Invalid argument(s) is used. Invalid row or column index.");
+ SysTryReturnResult(NID_UI_CTRL, (rowIndex >= 0 && columnIndex >= 0 && rowIndex < __rowCount && columnIndex < __columnCount), E_OUT_OF_RANGE, "rowIndex(%d) or columnIndex(%d) is out of range.", rowIndex, columnIndex);
SysTryReturnResult(NID_UI_CTRL, (leftMargin >= 0.0f && rightMargin >= 0.0f && topMargin >= 0.0f && bottomMargin >= 0.0f), E_INVALID_ARG, "Invalid argument(s) is used. Invalid margin value.");
ClearLastResult();
FloatRectangle rect(0.0f, 0.0f, -1.0f, -1.0f);
- SysTryReturn(NID_UI_CTRL, (rowIndex >= 0 && columnIndex >=0 && rowIndex < __rowCount && columnIndex < __columnCount), rect, E_INVALID_ARG, "[E_INVALID_ARG] Invalid argument(s) is used. Invalid row or column index.");
+ SysTryReturn(NID_UI_CTRL, (rowIndex >= 0 && columnIndex >=0 && rowIndex < __rowCount && columnIndex < __columnCount), rect, E_OUT_OF_RANGE, "rowIndex(%d) or columnIndex(%d) is out of range.", rowIndex, columnIndex);
rect.x = __pCellsArray[rowIndex][columnIndex].cellBounds.x;
rect.width = __pCellsArray[rowIndex][columnIndex].cellBounds.width;
int rowEndIndex = -1;
int columnEndIndex = -1;
- SysTryReturnResult(NID_UI_CTRL, (rowIndex >= 0 && rowIndex < __rowCount), E_INVALID_ARG, "Invalid argument(s) is used. Invalid row start index.");
- SysTryReturnResult(NID_UI_CTRL, (columnIndex >= 0 && columnIndex < __columnCount), E_INVALID_ARG, "Invalid argument(s) is used. Invalid column start index.");
+ SysTryReturnResult(NID_UI_CTRL, (rowIndex >= 0 && columnIndex >=0 && rowIndex < __rowCount && columnIndex < __columnCount), E_OUT_OF_RANGE, "rowIndex(%d) or columnIndex(%d) is out of range.", rowIndex, columnIndex);
if (__pCellsArray[rowIndex][columnIndex].isParent)
{
result
_GroupContainer::SetColumnStretchable(int columnIndex, bool stretchable)
{
- SysTryReturnResult(NID_UI_CTRL, (columnIndex >= 0 && columnIndex < __columnCount), E_INVALID_ARG, "Invalid argument(s) is used. Column index should be non negative and less than total column count.");
+ SysTryReturnResult(NID_UI_CTRL, (columnIndex >= 0 && columnIndex < __columnCount), E_OUT_OF_RANGE, "columnIndex(%d) is out of range.", columnIndex);
if (stretchable)
{
bool
_GroupContainer::IsColumnStretchable(int columnIndex)
{
- SysTryReturnResult(NID_UI_CTRL, (columnIndex >= 0 && columnIndex < __columnCount), E_INVALID_ARG, "Invalid argument(s) is used. Column index should be non negative and less than total column count.");
+ SysTryReturnResult(NID_UI_CTRL, (columnIndex >= 0 && columnIndex < __columnCount), E_OUT_OF_RANGE, "columnIndex(%d) is out of range.", columnIndex);
return __pStretchableColumnIndex[columnIndex];
}
result
_GroupContainer::SetRowStretchable(int rowIndex, bool stretchable)
{
- SysTryReturnResult(NID_UI_CTRL, (rowIndex >= 0 && rowIndex < __rowCount), E_INVALID_ARG, "Invalid argument(s) is used. Row index should be non negative and less than total row count.");
+ SysTryReturnResult(NID_UI_CTRL, (rowIndex >= 0 && rowIndex < __rowCount), E_OUT_OF_RANGE, "rowIndex(%d) is out of range.", rowIndex);
if (stretchable)
{
bool
_GroupContainer::IsRowStretchable(int rowIndex)
{
- SysTryReturnResult(NID_UI_CTRL, (rowIndex >= 0 && rowIndex < __rowCount), E_INVALID_ARG, "Invalid argument(s) is used. Row index should be non negative and less than total row count.");
+ SysTryReturnResult(NID_UI_CTRL, (rowIndex >= 0 && rowIndex < __rowCount), E_OUT_OF_RANGE, "rowIndex(%d) is out of range.", rowIndex);
return __pStretchableRowIndex[rowIndex];
}
{
result r = E_SUCCESS;
- SysTryReturnResult(NID_UI_CTRL, (rowIndex >= 0 && columnIndex >= 0 && rowIndex < __rowCount && columnIndex < __columnCount), E_INVALID_ARG, "Invalid argument(s) is used. Invalid row or column index.");
+ SysTryReturnResult(NID_UI_CTRL, (rowIndex >= 0 && columnIndex >= 0 && rowIndex < __rowCount && columnIndex < __columnCount), E_OUT_OF_RANGE, "rowIndex(%d) or columnIndex(%d) is out of range.", rowIndex, columnIndex);
if (__pCellsArray[rowIndex][columnIndex].isResizeEnabled == true)
{
if (!pControl)
{
- SysLogException(NID_UI, E_SYSTEM, "[E_SYSTEM] A system error has occurred. Failed to get control at specified index.");
+ SysLogException(NID_UI, E_OPERATION_FAILED, "[E_OPERATION_FAILED] Failed to get control at specified index.");
}
return pControl;