Monday, March 19, 2012

CanShrink property

I'm confused about this property. I have a textbox that I want to appear
under certain conditions. If it's not visible, won't it shrink as well if I
set the property? Thanks!Yes.
--
Ravi Mumulla (Microsoft)
SQL Server Reporting Services
This posting is provided "AS IS" with no warranties, and confers no rights.
"Richard Wrench" <rwrench@.icsecurity.com> wrote in message
news:%23zZmUD4YEHA.2344@.TK2MSFTNGP11.phx.gbl...
> I'm confused about this property. I have a textbox that I want to appear
> under certain conditions. If it's not visible, won't it shrink as well if
I
> set the property? Thanks!
>|||But it doesn't - why?
"Ravi Mumulla (Microsoft)" <ravimu@.online.microsoft.com> wrote in message
news:%23lblCxEZEHA.2480@.tk2msftngp13.phx.gbl...
> Yes.
> --
> Ravi Mumulla (Microsoft)
> SQL Server Reporting Services
> This posting is provided "AS IS" with no warranties, and confers no
rights.
> "Richard Wrench" <rwrench@.icsecurity.com> wrote in message
> news:%23zZmUD4YEHA.2344@.TK2MSFTNGP11.phx.gbl...
> > I'm confused about this property. I have a textbox that I want to
appear
> > under certain conditions. If it's not visible, won't it shrink as well
if
> I
> > set the property? Thanks!
> >
> >
>|||To clarify further, if the Hidden property of the textbox is a constant
(say, always true), the textbox won't collapse. On the other hand, if the
Hidden property of the textbox is an expression like following:
=iif(ReportItems!textbox3.Value = "Test", true, false)
then the space occupied by the textbox will be collapsed when the expression
evaluates to true. This is regardless of the CanShrink property.
Note that CanShrink property only applies to height, not width - it
indicates whether the height of a textbox can decrease according to its
content.
--
Ravi Mumulla (Microsoft)
SQL Server Reporting Services
This posting is provided "AS IS" with no warranties, and confers no rights.
"Richard Wrench" <rwrench@.icsecurity.com> wrote in message
news:epVsYkSZEHA.2816@.TK2MSFTNGP11.phx.gbl...
> But it doesn't - why?
> "Ravi Mumulla (Microsoft)" <ravimu@.online.microsoft.com> wrote in message
> news:%23lblCxEZEHA.2480@.tk2msftngp13.phx.gbl...
> > Yes.
> >
> > --
> > Ravi Mumulla (Microsoft)
> > SQL Server Reporting Services
> >
> > This posting is provided "AS IS" with no warranties, and confers no
> rights.
> > "Richard Wrench" <rwrench@.icsecurity.com> wrote in message
> > news:%23zZmUD4YEHA.2344@.TK2MSFTNGP11.phx.gbl...
> > > I'm confused about this property. I have a textbox that I want to
> appear
> > > under certain conditions. If it's not visible, won't it shrink as well
> if
> > I
> > > set the property? Thanks!
> > >
> > >
> >
> >
>

No comments:

Post a Comment