30
30
/*------------------------------------------------------------------------*/
31
31
int set_grid_position_property(void* _pvCtx, char* pobjUID, size_t stackPointer, int valueType, int nbRow, int nbCol )
36
if ( !isParameterStringMatrix( valueType ) )
38
Scierror(999, _("Wrong type for '%s' property: String expected.\n"), "grid_position");
39
return SET_PROPERTY_ERROR ;
42
if ( isStringParamEqual( stackPointer, "foreground" ) )
46
else if ( isStringParamEqual( stackPointer, "background" ) )
52
Scierror(999, _("Wrong value for '%s' property: %s or %s expected.\n"), "grid_position", "foreground", "background");
53
return SET_PROPERTY_ERROR ;
56
status = setGraphicObjectProperty(pobjUID, __GO_GRID_POSITION__, &position, jni_int, 1);
60
return SET_PROPERTY_SUCCEED;
64
Scierror(999, _("'%s' property does not exist for this handle.\n"),"grid_position") ;
65
return SET_PROPERTY_ERROR;
36
if ( !( valueType == sci_strings ) )
38
Scierror(999, _("Wrong type for '%s' property: String expected.\n"), "grid_position");
39
return SET_PROPERTY_ERROR ;
42
if ( isStringParamEqual( stackPointer, "foreground" ) )
46
else if ( isStringParamEqual( stackPointer, "background" ) )
52
Scierror(999, _("Wrong value for '%s' property: %s or %s expected.\n"), "grid_position", "foreground", "background");
53
return SET_PROPERTY_ERROR ;
56
status = setGraphicObjectProperty(pobjUID, __GO_GRID_POSITION__, &position, jni_int, 1);
60
return SET_PROPERTY_SUCCEED;
64
Scierror(999, _("'%s' property does not exist for this handle.\n"), "grid_position") ;
65
return SET_PROPERTY_ERROR;
69
69
/*------------------------------------------------------------------------*/