--- /dev/null
+ Scilab 5.2 Release_Notes
+ ========================
+
+Known incompatibilities:
+
+- Fonction "figure": when setting the size of the figure using the "Position"
+ property with a matrix such as [x y width height], the values of width and
+ height no more set the window size itself but the size of the virtual graphics
+ window (the part of the figure which contains uicontrols and graphics) as if
+ the user sets the axes_size property of a figure.
<varlistentry>
<term>Position</term>
<listitem>
- <para>allows to control the geometrical aspect of the control.
+ <para>allows to control the geometrical aspect of the figure.
It is a [1,4] real vector [x y width height] where the letters stand for the x
- location of the left bottom corner, the y location of the left bottom
- corner, the width and the height of the uicontrol.
+ location of the top left corner, the y location of the top left corner, the width and the height of the virtual graphics window
+ (the part of the figure which contains uicontrols and graphics).
+ See the <emphasis role="bold">axes_size</emphasis> property description in <link linkend="figure_properties">figure properties</link> help page.
One can also set this property by giving a string where the fields are separated by a "|", ie "x|y|width|height".
</para>
</listitem>
int * returnValues = NULL;
sciPointObj *parent = NULL;
+
+ int status = 0;
if (stackPointer == -1) /* Default values setting */
{
}
else if( sciGetEntityType(sciObj) == SCI_FIGURE ) /* Uicontrol figure */
{
- return (int)(sciInitScreenPosition(sciObj, xInt, yInt) & sciSetWindowDim(sciObj, widthInt, heightInt));
+ /* disable protection since this function will call Java */
+ disableFigureSynchronization(sciObj);
+ status = sciSetDimension(sciObj, widthInt, heightInt) ;
+ enableFigureSynchronization(sciObj);
+ return (int)(sciInitScreenPosition(sciObj, xInt, yInt) & status);
+ //return (int)(sciInitScreenPosition(sciObj, xInt, yInt) & sciSetWindowDim(sciObj, widthInt, heightInt));
}
else /* All other uicontrol styles */
{
#include "SetPropertyStatus.h"
#include "UicontrolStyleToString.h"
#include "HandleManagement.h"
+#include "GraphicSynchronizerInterface.h"
}
#endif /* __SET_UICONTROL_POSITION_HXX__ */