[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Need someone to test uipanel for me
From: |
Lukas Reichlin |
Subject: |
Re: Need someone to test uipanel for me |
Date: |
Tue, 27 Sep 2011 13:50:25 +0200 |
On 27.09.2011, at 13:45, Michael Goffioul wrote:
> Thanks. So unless I'm mistaken, it means:
> 1) (0,0) takes border width into account, as does the width
> 2) the panel height does not take the complete border width into account
>
> Finally, could you just try to switch the button units to normalized. That is:
>
> h = uipanel('position', [0, 0, 0.5, 0.5], 'title', 'PANEL', 'borderwidth',
> 10);
> hb = uicontrol(h, 'string', 'OK', 'units', 'normalized', 'position',
> [0, 0, 0.25, 0.25]);
> ha = axes('parent', h, 'position', [0, 0, 1, 1], 'color', 'w',
> 'xgrid', 'on', 'ygrid', 'on');
>
> Michael.
Regards
Lukas