|
@@ -253,6 +253,7 @@ type
|
|
EFindRegEx: TMenuItem;
|
|
EFindRegEx: TMenuItem;
|
|
UpdatePanel: TPanel;
|
|
UpdatePanel: TPanel;
|
|
UpdateLinkLabel: TLinkLabel;
|
|
UpdateLinkLabel: TLinkLabel;
|
|
|
|
+ UpdatePanelClosePaintBox: TPaintBox;
|
|
procedure FormCloseQuery(Sender: TObject; var CanClose: Boolean);
|
|
procedure FormCloseQuery(Sender: TObject; var CanClose: Boolean);
|
|
procedure FExitClick(Sender: TObject);
|
|
procedure FExitClick(Sender: TObject);
|
|
procedure FOpenMainFileClick(Sender: TObject);
|
|
procedure FOpenMainFileClick(Sender: TObject);
|
|
@@ -377,6 +378,8 @@ type
|
|
procedure EFindRegExClick(Sender: TObject);
|
|
procedure EFindRegExClick(Sender: TObject);
|
|
procedure UpdateLinkLabelLinkClick(Sender: TObject; const Link: string;
|
|
procedure UpdateLinkLabelLinkClick(Sender: TObject; const Link: string;
|
|
LinkType: TSysLinkType);
|
|
LinkType: TSysLinkType);
|
|
|
|
+ procedure UpdatePanelClosePaintBoxPaint(Sender: TObject);
|
|
|
|
+ procedure UpdatePanelClosePaintBoxClick(Sender: TObject);
|
|
private
|
|
private
|
|
{ Private declarations }
|
|
{ Private declarations }
|
|
FMemos: TList<TIDEScintEdit>; { FMemos[0] is the main memo and FMemos[1] the preprocessor output memo - also see MemosTabSet comment above }
|
|
FMemos: TList<TIDEScintEdit>; { FMemos[0] is the main memo and FMemos[1] the preprocessor output memo - also see MemosTabSet comment above }
|
|
@@ -5768,6 +5771,34 @@ var
|
|
PrevCompilerFileIndex: Integer;
|
|
PrevCompilerFileIndex: Integer;
|
|
PrevMemo: TIDEScintFileEdit;
|
|
PrevMemo: TIDEScintFileEdit;
|
|
|
|
|
|
|
|
+procedure TMainForm.UpdatePanelClosePaintBoxClick(Sender: TObject);
|
|
|
|
+begin
|
|
|
|
+ UpdatePanel.Visible := False;
|
|
|
|
+ UpdateBevel1Visibility;
|
|
|
|
+end;
|
|
|
|
+
|
|
|
|
+procedure TMainForm.UpdatePanelClosePaintBoxPaint(Sender: TObject);
|
|
|
|
+const
|
|
|
|
+ MENU_SYSTEMCLOSE = 17;
|
|
|
|
+ MSYSC_NORMAL = 1;
|
|
|
|
+begin
|
|
|
|
+ var Canvas := UpdatePanelClosePaintBox.Canvas;
|
|
|
|
+ var R := TRect.Create(0, 0, UpdatePanelClosePaintBox.Width, UpdatePanelClosePaintBox.Height);
|
|
|
|
+ if FMenuThemeData <> 0 then begin
|
|
|
|
+ var Offset := MulDiv(1, CurrentPPI, 96);
|
|
|
|
+ Inc(R.Left, Offset);
|
|
|
|
+ Inc(R.Top, Offset);
|
|
|
|
+ DrawThemeBackground(FMenuThemeData, Canvas.Handle, MENU_SYSTEMCLOSE, MSYSC_NORMAL, R, nil);
|
|
|
|
+ end else begin
|
|
|
|
+ InflateRect(R, -MulDiv(3, CurrentPPI, 96), -MulDiv(6, CurrentPPI, 96));
|
|
|
|
+ Canvas.Pen.Color := Canvas.Font.Color;
|
|
|
|
+ Canvas.MoveTo(R.Left, R.Top);
|
|
|
|
+ Canvas.LineTo(R.Right, R.Bottom);
|
|
|
|
+ Canvas.MoveTo(R.Left, R.Bottom-1);
|
|
|
|
+ Canvas.LineTo(R.Right, R.Top-1);
|
|
|
|
+ end;
|
|
|
|
+end;
|
|
|
|
+
|
|
procedure TMainForm.ParseDebugInfo(DebugInfo: Pointer);
|
|
procedure TMainForm.ParseDebugInfo(DebugInfo: Pointer);
|
|
|
|
|
|
function GetMemoFromCompilerFileIndex(const CompilerFileIndex: Integer): TIDEScintFileEdit;
|
|
function GetMemoFromCompilerFileIndex(const CompilerFileIndex: Integer): TIDEScintFileEdit;
|
|
@@ -7471,8 +7502,11 @@ end;
|
|
procedure TMainForm.UpdateLinkLabelLinkClick(Sender: TObject;
|
|
procedure TMainForm.UpdateLinkLabelLinkClick(Sender: TObject;
|
|
const Link: string; LinkType: TSysLinkType);
|
|
const Link: string; LinkType: TSysLinkType);
|
|
begin
|
|
begin
|
|
- if (LinkType = sltID) and (Link = 'whatsnew') then
|
|
|
|
- HWhatsNew.Click;
|
|
|
|
|
|
+ if (LinkType = sltID) and (Link = 'whatsnew') then begin
|
|
|
|
+ HWhatsNew.Click;
|
|
|
|
+ UpdatePanel.Visible := False;
|
|
|
|
+ UpdateBevel1Visibility;
|
|
|
|
+ end;
|
|
end;
|
|
end;
|
|
|
|
|
|
procedure TMainForm.UpdateAllMemoLineMarkers(const AMemo: TIDEScintFileEdit);
|
|
procedure TMainForm.UpdateAllMemoLineMarkers(const AMemo: TIDEScintFileEdit);
|