Hi
I Have a labelEx where if fill TextEx.Text
As you can see the text is ok, sizing goes ok, but i want to keep my Button after the text.
The height value is not jet known at server time
Eric
One problem still, can't get a Vertical scrollbar for the region of the LabelEx
var
S : TStringList;
begin
S := TStringList.Create;
try
s.CommaText := Value;
Height := 25 + Round(S.Count * 14.6); // calculate a little bit what the size could be
if (Height > 400) then // max size of 400
Height := 400;
IWCGJQLabelQuestionDescription.Height := Height - IWCGJQRegionBottom.Height - 10; // recalculate the height of the Label
IWCGJQLabelQuestionDescription.AutoSize := True; // Now set AutoSize to true
finally
FreeAndNil(s);
end;
IWCGJQLabelQuestionDescription.TextEx.Text :=
StringReplace(Value, ''#$D#$A'', '<BR>', [rfReplaceAll]);