Image: http://gora.7zsfx.info/test/before.PNG
I think dialog should be resized to keep more lines (at least 4-5) or maybe even auto-resize should be implemented in order to set label/dialog height according to text length. It may be done easilly sinse Delphi already supports auto-resizing for labels:
Manually (we have own code that resizes dialog and moves controls):
Code: Select all
with CheckMsgBox do begin
W_InfoText.AutoSize := False;
W_InfoText.Caption := MessageText;
W_InfoText.Width := 345;
W_InfoText.AutoSize := True;
CheckBox1.Top := W_InfoText.Top + W_InfoText.Height + 21;
Button1.Top := CheckBox1.Top + 18;
Button2.Top := CheckBox1.Top + 18;
Height := CheckBox1.Top + 69;
ShowModal;
end;
Code: Select all
with CheckMsgBox do begin
W_InfoText.AutoSize := False;
W_InfoText.Caption := MessageText;
W_InfoText.Width := 345;
W_InfoText.AutoSize := True;
Height := W_InfoText.Top + W_InfoText.Height + 90;
ShowModal;
end;