{
LabelControlList[i].setPosition(new Point(nXTCPos, nYTCPos));
if (icurArrangement != FormWizard.SOCOLUMNARLEFT)
{
nTCWidth = LabelControlList[i].getPreferredWidth(FieldColumns[i].getFieldTitle());
LabelControlList[i].setSize(new Size(nTCWidth, nTCHeight));
}
else
{
nTCWidth = LabelControlList[i].getSize().Width;
}
}
else
{
Point aPoint = new Point(nXTCPos, nYTCPos);
Size aSize = new Size(nTCWidth, nTCHeight);
final String sFieldName = FieldColumns[i].getFieldName();
this.LabelControlList[i] = new Control(oFormHandler, xFormName, FormHandler.SOLABEL, sFieldName, aPoint, aSize);
if (bIsVeryFirstRun)
{
if (icurArrangement == FormWizard.SOCOLUMNARTOP)
{
nYDBPos = nYTCPos + nTCHeight;
}
}
String sTitle = FieldColumns[i].getFieldTitle();
nTCWidth = LabelControlList[i].getPreferredWidth(sTitle);
}
Control curLabelControl = LabelControlList[i];
if (icurArrangement == FormWizard.SOCOLUMNARLEFT)
{
// Note This If Sequence must be called before retrieving the outer Points
if (bIsFirstRun)
{
nMaxTCWidth = nTCWidth;
bIsFirstRun = false;
}
else if (nTCWidth > nMaxTCWidth)
{
nMaxTCWidth = nTCWidth;
}
}
checkOuterPoints(nXTCPos, nTCWidth, nYTCPos, nTCHeight, false);
if ((icurArrangement == FormWizard.SOCOLUMNARTOP) || (icurArrangement == FormWizard.SOTOPJUSTIFIED))
{
nXDBPos = nXTCPos;
nYDBPos = nYTCPos + nTCHeight;
curLabelControl.xPropertySet.setPropertyValue("Align", new Short((short) com.sun.star.awt.TextAlign.LEFT));
}
else
{
curLabelControl.xPropertySet.setPropertyValue("Align", new Short((short) _iAlign));
}
if (!bControlsareCreated)
{
curLabelControl.setSize(new Size(nTCWidth, nTCHeight));
}
// if (CurHelpText != ""){
// oModel.HelpText = CurHelptext;
// }
}