| Quintiq file version 2.0 | 
| #parent: #root | 
| StaticMethod ValidateInput ( | 
|   output String feedback_o, | 
|   String fontname, | 
|   Number fontsize, | 
|   Number gridpointdistance, | 
|   Real relativespsize, | 
|   Real relativeunitheight, | 
|   Real relativeunitwidth, | 
|   Real relativeproductheight, | 
|   Real relativeproductwidth, | 
|   Number offsetx, | 
|   Number offsety | 
| ) declarative remote as Boolean | 
| { | 
|   Description: 'Validate input of the edit drawing properties dialog' | 
|   TextBody: | 
|   [* | 
|     feedback_o := ''; | 
|     // FontName | 
|     if( fontname = '' ) | 
|     { | 
|       feedback_o := Translations::MP_SupplyChainView_ValidateInput_FontNameEmpty(); | 
|     } | 
|     // FontSize | 
|     else if( fontsize < 0 ) | 
|     { | 
|       feedback_o := Translations::MP_SupplyChainView_ValidateInput_IsNegativeFontSize(); | 
|     } | 
|     // GridPointDistamce | 
|     else if( gridpointdistance < 0 ) | 
|     { | 
|       feedback_o := Translations::MP_SupplyChainView_ValidateInput_IsNegativeGridPointDistance(); | 
|     } | 
|     // RelativeStockingPintSize | 
|     else if( relativespsize < 0 ) | 
|     { | 
|       feedback_o := Translations::MP_SupplyChainView_ValidateInput_IsNegativeRelativeStockingPointSize(); | 
|     } | 
|     // RelativeUnitHeight | 
|     else if( relativeunitheight < 0 ) | 
|     { | 
|       feedback_o := Translations::MP_SupplyChainView_ValidateInput_IsNegativeRelativeUnitHeight(); | 
|     } | 
|     // RelativeUnitWidth | 
|     else if( relativeunitwidth < 0 ) | 
|     { | 
|       feedback_o := Translations::MP_SupplyChainView_ValidateInput_IsNegativeRelativeUnitWidth(); | 
|     } | 
|     // RelativeProductHeight | 
|     else if( relativeproductheight < 0 ) | 
|     { | 
|       feedback_o := Translations::MP_SupplyChainView_ValidateInput_IsNegativeRelativeProductHeight(); | 
|     } | 
|     // RelativeProductWidth | 
|     else if( relativeproductwidth < 0 ) | 
|     { | 
|       feedback_o := Translations::MP_SupplyChainView_ValidateInput_IsNegativeRelativeProductWidth(); | 
|     } | 
|     // OffsetX | 
|     else if( offsetx < 0 ) | 
|     { | 
|       feedback_o := Translations::MP_SupplyChainView_ValidateInput_IsNegativeOffsetX(); | 
|     } | 
|     // OffsetY | 
|     else if( offsety < 0 ) | 
|     { | 
|       feedback_o := Translations::MP_SupplyChainView_ValidateInput_IsNegativeOffsetY(); | 
|     } | 
|     return feedback_o = ''; | 
|   *] | 
| } |