Enhance position and size of checkboxes in printer dialog. Some captions were cut, especially when you call the dialog for the command stats list.

This commit is contained in:
Ansgar Becker
2007-12-14 20:28:41 +00:00
parent 2e859faf5e
commit bb76a60abb
2 changed files with 5 additions and 4 deletions

View File

@ -52,7 +52,7 @@ object printlistForm: TprintlistForm
Caption = 'Print what...'
TabOrder = 2
object chkAllColumns: TCheckBox
Left = 16
Left = 10
Top = 24
Width = 97
Height = 17

View File

@ -107,17 +107,18 @@ begin
chk.Caption := list.Header.Columns[i].Text;
chk.Checked := True;
chk.Enabled := False;
chk.Width := 125;
if chkCount mod 2 = 0 then begin
inc(chkTop);
chk.Left := 16;
chk.Left := 10;
end else
chk.Left := 130;
chk.Left := 140;
chk.Top := chkTop * chkHeight;
chk.Tag := 1;
inc(chkCount);
end;
Height := boxColumns.Top
+ (3 * chkHeight) // "All columns checkbox + space
+ (4 * chkHeight) // "All columns checkbox + space
+ (Height - boxColumns.Top - boxColumns.Height) // Bottom rest
+ (Ceil(chkCount/2) * chkHeight); // Height of generated checkboxes
Screen.Cursor := crDefault;