|
@@ -26,7 +26,7 @@ uses
|
|
Generics.Collections, UIStateForm, StdCtrls, ExtCtrls, Menus, Buttons, ComCtrls, CommCtrl,
|
|
Generics.Collections, UIStateForm, StdCtrls, ExtCtrls, Menus, Buttons, ComCtrls, CommCtrl,
|
|
ScintInt, ScintEdit, IDE.ScintStylerInnoSetup, NewTabSet, ModernColors, IDE.IDEScintEdit,
|
|
ScintInt, ScintEdit, IDE.ScintStylerInnoSetup, NewTabSet, ModernColors, IDE.IDEScintEdit,
|
|
Shared.DebugStruct, Shared.CompilerInt.Struct, NewUxTheme, ImageList, ImgList, ToolWin, IDE.HelperFunc,
|
|
Shared.DebugStruct, Shared.CompilerInt.Struct, NewUxTheme, ImageList, ImgList, ToolWin, IDE.HelperFunc,
|
|
- VirtualImageList, BaseImageCollection;
|
|
|
|
|
|
+ VirtualImageList, BaseImageCollection, NewBitBtn;
|
|
|
|
|
|
const
|
|
const
|
|
WM_StartCommandLineCompile = WM_USER + $1000;
|
|
WM_StartCommandLineCompile = WM_USER + $1000;
|
|
@@ -263,7 +263,7 @@ type
|
|
EFindRegEx: TMenuItem;
|
|
EFindRegEx: TMenuItem;
|
|
UpdatePanel: TPanel;
|
|
UpdatePanel: TPanel;
|
|
UpdateLinkLabel: TLinkLabel;
|
|
UpdateLinkLabel: TLinkLabel;
|
|
- UpdatePanelClosePaintBox: TPaintBox;
|
|
|
|
|
|
+ UpdatePanelCloseBitBtn: TNewBitBtn;
|
|
UpdatePanelDonateImage: TImage;
|
|
UpdatePanelDonateImage: TImage;
|
|
procedure FormCloseQuery(Sender: TObject; var CanClose: Boolean);
|
|
procedure FormCloseQuery(Sender: TObject; var CanClose: Boolean);
|
|
procedure FExitClick(Sender: TObject);
|
|
procedure FExitClick(Sender: TObject);
|
|
@@ -389,8 +389,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);
|
|
|
|
|
|
+ procedure UpdatePanelCloseBitBtnPaint(Sender: TObject; Canvas: TCanvas; var ARect: TRect);
|
|
|
|
+ procedure UpdatePanelCloseBitBtnClick(Sender: TObject);
|
|
procedure UpdatePanelDonateImageClick(Sender: TObject);
|
|
procedure UpdatePanelDonateImageClick(Sender: TObject);
|
|
private
|
|
private
|
|
{ Private declarations }
|
|
{ Private declarations }
|
|
@@ -1028,6 +1028,7 @@ begin
|
|
FHiddenFiles := TStringList.Create(dupError, True, True);
|
|
FHiddenFiles := TStringList.Create(dupError, True, True);
|
|
FActiveMemo := FMainMemo;
|
|
FActiveMemo := FMainMemo;
|
|
FActiveMemo.Visible := True;
|
|
FActiveMemo.Visible := True;
|
|
|
|
+ ActiveControl := FActiveMemo;
|
|
FErrorMemo := FMainMemo;
|
|
FErrorMemo := FMainMemo;
|
|
FStepMemo := FMainMemo;
|
|
FStepMemo := FMainMemo;
|
|
UpdateMarginsAndSquigglyAndCaretWidths;
|
|
UpdateMarginsAndSquigglyAndCaretWidths;
|
|
@@ -1321,8 +1322,11 @@ begin
|
|
if ControlToAdd <> nil then
|
|
if ControlToAdd <> nil then
|
|
AddControlToArray(ControlToAdd, Controls, NControls);
|
|
AddControlToArray(ControlToAdd, Controls, NControls);
|
|
end;
|
|
end;
|
|
- if UpdatePanel.Visible and FUpdatePanelMessages[UpdateLinkLabel.Tag].HasLink then
|
|
|
|
- AddControlToArray(UpdateLinkLabel, Controls, NControls);
|
|
|
|
|
|
+ if UpdatePanel.Visible then begin
|
|
|
|
+ if FUpdatePanelMessages[UpdateLinkLabel.Tag].HasLink then
|
|
|
|
+ AddControlToArray(UpdateLinkLabel, Controls, NControls);
|
|
|
|
+ AddControlToArray(UpdatePanelCloseBitBtn, Controls, NControls);
|
|
|
|
+ end;
|
|
|
|
|
|
{ Now move focus to next }
|
|
{ Now move focus to next }
|
|
if NControls > 1 then begin
|
|
if NControls > 1 then begin
|
|
@@ -8021,10 +8025,10 @@ begin
|
|
end else
|
|
end else
|
|
Handled := False;
|
|
Handled := False;
|
|
if Handled then
|
|
if Handled then
|
|
- UpdatePanelClosePaintBoxClick(Sender);
|
|
|
|
|
|
+ UpdatePanelCloseBitBtnClick(Sender);
|
|
end;
|
|
end;
|
|
|
|
|
|
-procedure TMainForm.UpdatePanelClosePaintBoxClick(Sender: TObject);
|
|
|
|
|
|
+procedure TMainForm.UpdatePanelCloseBitBtnClick(Sender: TObject);
|
|
begin
|
|
begin
|
|
var MessageToHideIndex := UpdateLinkLabel.Tag;
|
|
var MessageToHideIndex := UpdateLinkLabel.Tag;
|
|
var Ini := TConfigIniFile.Create;
|
|
var Ini := TConfigIniFile.Create;
|
|
@@ -8042,13 +8046,12 @@ begin
|
|
HDonate.Click;
|
|
HDonate.Click;
|
|
end;
|
|
end;
|
|
|
|
|
|
-procedure TMainForm.UpdatePanelClosePaintBoxPaint(Sender: TObject);
|
|
|
|
|
|
+procedure TMainForm.UpdatePanelCloseBitBtnPaint(Sender: TObject; Canvas: TCanvas; var ARect: TRect);
|
|
const
|
|
const
|
|
MENU_SYSTEMCLOSE = 17;
|
|
MENU_SYSTEMCLOSE = 17;
|
|
MSYSC_NORMAL = 1;
|
|
MSYSC_NORMAL = 1;
|
|
begin
|
|
begin
|
|
- var Canvas := UpdatePanelClosePaintBox.Canvas;
|
|
|
|
- var R := TRect.Create(0, 0, UpdatePanelClosePaintBox.Width, UpdatePanelClosePaintBox.Height);
|
|
|
|
|
|
+ var R := ARect;
|
|
if FMenuThemeData <> 0 then begin
|
|
if FMenuThemeData <> 0 then begin
|
|
var Offset := MulDiv(1, CurrentPPI, 96);
|
|
var Offset := MulDiv(1, CurrentPPI, 96);
|
|
Inc(R.Left, Offset);
|
|
Inc(R.Left, Offset);
|