Tags: 123on, child, clipping, clips, default, matlab, mode, offclipping, programming, states, uicontrols, uipanel

UIPanel clipping and child UIControls

On Programmer » Matlab

4,172 words with 3 Comments; publish: Wed, 30 Apr 2008 21:07:00 GMT; (200140.63, « »)

The help for the clipping option for uipanel states ...

---

Clipping {on} | off

Clipping mode. By default, MATLAB clips a uipanel's child axes,

uipanels, and uibuttongroups to the uipanel rectangle. If you set

Clipping to off, the axis, uipanel, or uibuttongroup is displayed

outside the panel rectangle. This property does not affect child

uicontrols which, by default, can display outside the panel rectangle.

----

The help suggests that uicontrols can be clipped outside the panel if

some default option is changed. However I cannot find any way to change

this default behaviour of uicontrols. It would be really nice to be able

to clip the uicontrol at the border of it's parent uipanel.

Does anybody have any idea on this.

Brad Phelan

http://xtargets.com

All Comments

Leave a comment...

  • 3 Comments
    • Brad Phelan wrote:

      > The help for the clipping option for uipanel states ...

      > ---

      > Clipping {on} | off

      > Clipping mode. By default, MATLAB clips a uipanel's child axes,

      > uipanels, and uibuttongroups to the uipanel rectangle. If you set

      > Clipping to off, the axis, uipanel, or uibuttongroup is displayed

      > outside the panel rectangle. This property does not affect child

      > uicontrols which, by default, can display outside the panel rectangle.

      > ----

      > The help suggests that uicontrols can be clipped outside the panel if

      > some default option is changed. However I cannot find any way to change

      > this default behaviour of uicontrols. It would be really nice to be able

      > to clip the uicontrol at the border of it's parent uipanel.

      > Does anybody have any idea on this.

      > Brad Phelan

      > http://xtargets.com

      Ooops.. Found what I was looking for. It is the clipping property of the

      uicontrol itself.

      #1; Wed, 30 Apr 2008 21:09:00 GMT
    • > Ooops.. Found what I was looking for. It is the clipping property of

      the

      > uicontrol itself.

      Too hasty.. I was looking at an old Matlab help page I trawled up on google.

      http://www.utexas.edu/math/Matlab/Manual/uicontrol.html

      Not sure what version of matlab the above doc references but the new

      documentation in R14 says that the 'clipping' property has no effect on

      uicontrols. So I am back to square one. I can't figure out how to clip

      uicontrols with uipanels...

      Brad Phelan

      http://xtargets.com

      #2; Wed, 30 Apr 2008 21:10:00 GMT
    • Brad,

      The doc means to say that the uicontrols, which have heavyweight

      windows, always display on top of lightweight objects. The uipanel is

      lightweight

      in the current implementation to support axes children.

      Rich Ohman

      The Mathworks, Inc.

      "Brad Phelan" <bradphelan.matlab.questionfor.info.xtargets.com> wrote in message

      news:259ACE3B6B0962CE0632A4F6C101AF88.matlab.questionfor.info.in

      .webx.raydaftYaTP...

      > The help for the clipping option for uipanel states ...

      > ---

      > Clipping {on} | off

      > Clipping mode. By default, MATLAB clips a uipanel's child axes,

      > uipanels, and uibuttongroups to the uipanel rectangle. If you set

      > Clipping to off, the axis, uipanel, or uibuttongroup is displayed

      > outside the panel rectangle. This property does not affect child

      > uicontrols which, by default, can display outside the panel rectangle.

      > ----

      > The help suggests that uicontrols can be clipped outside the panel if

      > some default option is changed. However I cannot find any way to change

      > this default behaviour of uicontrols. It would be really nice to be able

      > to clip the uicontrol at the border of it's parent uipanel.

      > Does anybody have any idea on this.

      > Brad Phelan

      > http://xtargets.com

      #3; Wed, 30 Apr 2008 21:11:00 GMT