Problem: 1394106
Title: (TCluster -DimState) Can not dim two-level depth subview in TCluster
Received: Oct 4 1996 1:20PM
The new enhancement of TCluster class has been implemented that dims subviews of
the TCluster view. But it only dims one-level depth subview, and can not dim
subviews of subviews. I think it's a general problem in view hierarchy for enable
and disable too. The solution may be that we change
method "IsDimmed" to check dim situation dynamiclly. If the superview, or
superview of superview is dim, the subview should be dim too. And we should not
change subview's fDimmed state when we set superview's dim state. It looks:
Boolean TControl::IsDimmed()
{
Boolean dimResult = fDimmed;
while (!dimResult && fSuperView)
{
dimResult = fSuperView->fDimmed;
}
return dimResult;
}
also need change the draw mechanics. if dimmed, a dim adorner will be drwn.
I believe another solution to this enhancement is in the new code to recursively
dim subviews of a TCluster.