Changeset 465 for trunk/NewView/MainForm.pas
- Timestamp:
- Feb 22, 2023, 1:45:24 AM (2 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:ignore
-
old new 1 1 [Ee][Nn][Vv].[Ii][Nn][Cc] 2 *.[Bb][Aa][Kk]
-
- Property svn:ignore
-
trunk/NewView/MainForm.pas
r411 r465 3889 3889 ContentsOutline.SmoothScroll := false; 3890 3890 3891 LogEvent(LogStartup, 'Choosing default font: Trying W arpSans');3891 LogEvent(LogStartup, 'Choosing default font: Trying Window Text setting'); 3892 3892 3893 3893 Font := GetNiceDefaultFont; … … 4386 4386 StatusPanel.Left:= 0; 4387 4387 StatusPanel.Width:= ClientWidth div 2 - 2; 4388 StatusPanel.Height := TextHeight + 2;4388 StatusPanel.Height := TextHeight + Font.InternalLeading + 4; 4389 4389 4390 4390 ProgressPanel.Left:= ClientWidth div 2 + 2; 4391 4391 ProgressPanel.Width:= ClientWidth - ProgressPanel.Left; 4392 ProgressPanel.Height := TextHeight + 2;4392 ProgressPanel.Height := TextHeight + Font.InternalLeading + 4; 4393 4393 4394 4394 Notebook.Bottom := StatusPanel.Height + 3; … … 4965 4965 4966 4966 Procedure TMainForm.NotebookOnSetupShow (Sender: TObject); 4967 Begin 4967 var 4968 btnWidth: integer; 4969 btnHeight: integer; 4970 Begin 4971 btnWidth := Canvas.TextWidth('M') * 8; 4972 btnHeight := trunc( Canvas.TextHeight('M') * 1.5 ); 4973 4974 DeleteNoteButton.Width := btnWidth; 4975 DeleteNoteButton.Height := btnHeight; 4976 GotoNoteButton.Width := btnWidth; 4977 GotoNoteButton.Height := btnHeight; 4978 GotoNoteButton.Left := btnWidth + 10; 4979 AddNoteButton.Width := btnWidth; 4980 AddNoteButton.Height := btnHeight; 4981 AddNoteButton.Bottom := btnHeight + 5; 4982 EditNoteButton.Width := btnWidth; 4983 EditNoteButton.Height := btnHeight; 4984 EditNoteButton.Left := btnWidth + 10; 4985 EditNoteButton.Bottom := btnHeight + 5; 4986 4968 4987 ContentsOutline.xStretch := xsFrame; 4969 4988 ContentsOutline.yStretch := ysFrame; … … 4980 4999 SearchResultsListBox.xStretch := xsFrame; 4981 5000 SearchResultsListBox.yStretch := ysFrame; 5001 5002 NotesListBox.Bottom := 2 * btnHeight + 10; 5003 NotesListBox.Height := Notebook.ClientHeight - NotesListBox.Bottom; 4982 5004 4983 5005 NotesListBox.xStretch := xsFrame;
Note:
See TracChangeset
for help on using the changeset viewer.