[Scilab-Dev] potential problems with Scilab's uicontrol
Collette yann
yann.collette at scilab.org
Wed Dec 2 16:27:26 CET 2009
Hello,
This is the answer made by Vincent a little while ago.
YC
Vincent COUVERT a écrit :
> Hi Stéphane,
>
> Let's take an example:
> f = figure();
> uicontrol('Parent',f,'Position',[10 10 40 20],'string','test')
>
> This code gives the same result under Scilab 4.1.2, Scilab 5.1.1 and
> Matlab (the reference for uicontrol position is the bottom left corner
> of the figure).
>
> The problem occurs when the user resizes the figure:
> - Matlab: the uicontrol position does not change
> - Scilab 4.1.2: the uicontrol position changes on screen but not in
> its properties (too bad!)
> - Scilab 5.1.1 the uicontrol position changes on screen and in its
> properties
>
> The problem we have since the beginning of uicontrols in Scilab in
> this change of position according to the figure resize. We should
> perhaps consider to change this behavior to be consistent with Matlab
> one but we have first to check if this does not produce other problems.
>
> I just reported a bug
> (http://bugzilla.scilab.org/show_bug.cgi?id=5477) so that we
> investigate the problem.
>
> Vincent
More information about the dev
mailing list