wait and repos on memory show/hide

This commit is contained in:
April Ayres-Griffiths 2019-04-14 12:24:12 +10:00
parent e787ba54cf
commit 5c52a1d6e6
8 changed files with 46 additions and 7 deletions

View File

@ -1,7 +1,7 @@
object GUIForm: TGUIForm
Left = 2111
Left = 228
Height = 668
Top = 138
Top = 132
Width = 1014
AlphaBlendValue = 128
Caption = 'microM8 GUI'
@ -10569,4 +10569,11 @@ object GUIForm: TGUIForm
OnClick = miPRFIIplusClick
end
end
object WaitRepos: TTimer
Enabled = False
Interval = 50
OnTimer = WaitReposTimer
left = 238
top = 223
end
end

View File

@ -202,6 +202,7 @@ type
sidecarPanel: TPanel;
FSTimer: TTimer;
tbVolDown: TToolButton;
WaitRepos: TTimer;
ToolButton1: TToolButton;
ToolButton10: TToolButton;
tbJoystickAxisSwitch: TToolButton;
@ -530,6 +531,7 @@ type
function IsMouseBtnDown(const AMouseBtn: TMouseBtnType): Boolean;
function IsMouseBtnDown: Boolean;
function IsMicroM8Active: boolean;
procedure WaitReposTimer(Sender: TObject);
private
lx, ly, lw, lh: integer;
lastShowTime: TDateTime;
@ -629,6 +631,13 @@ begin
result := GetTitleOfActiveWindow = 'microM8';
end;
procedure TGUIForm.WaitReposTimer(Sender: TObject);
begin
WaitRepos.Enabled := false;
lx:=-1;
ReposWindow;
end;
procedure TGUIForm.AppActivate(Sender: TObject);
begin
guiActive := true;
@ -1194,7 +1203,7 @@ end;
procedure TGUIForm.miMemoryEditClick(Sender: TObject);
begin
pnlMemory.Visible := (not pnlMemory.Visible);
ReposWindow;
WaitRepos.Enabled := true;
end;
procedure TGUIForm.miMMHelpClick(Sender: TObject);

View File

@ -1,7 +1,7 @@
object GUIForm: TGUIForm
Left = 2111
Left = 228
Height = 668
Top = 138
Top = 132
Width = 1014
AlphaBlendValue = 128
Caption = 'microM8 GUI'
@ -10569,4 +10569,11 @@ object GUIForm: TGUIForm
OnClick = miPRFIIplusClick
end
end
object WaitRepos: TTimer
Enabled = False
Interval = 50
OnTimer = WaitReposTimer
left = 238
top = 223
end
end

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -10569,4 +10569,11 @@ object GUIForm: TGUIForm
OnClick = miPRFIIplusClick
end
end
object WaitRepos: TTimer
Enabled = False
Interval = 50
OnTimer = WaitReposTimer
left = 238
top = 223
end
end

View File

@ -202,6 +202,7 @@ type
sidecarPanel: TPanel;
FSTimer: TTimer;
tbVolDown: TToolButton;
WaitRepos: TTimer;
ToolButton1: TToolButton;
ToolButton10: TToolButton;
tbJoystickAxisSwitch: TToolButton;
@ -530,6 +531,7 @@ type
function IsMouseBtnDown(const AMouseBtn: TMouseBtnType): Boolean;
function IsMouseBtnDown: Boolean;
function IsMicroM8Active: boolean;
procedure WaitReposTimer(Sender: TObject);
private
lx, ly, lw, lh: integer;
lastShowTime: TDateTime;
@ -629,6 +631,13 @@ begin
result := GetTitleOfActiveWindow = 'microM8';
end;
procedure TGUIForm.WaitReposTimer(Sender: TObject);
begin
WaitRepos.Enabled := false;
lx:=-1;
ReposWindow;
end;
procedure TGUIForm.AppActivate(Sender: TObject);
begin
guiActive := true;
@ -1194,7 +1203,7 @@ end;
procedure TGUIForm.miMemoryEditClick(Sender: TObject);
begin
pnlMemory.Visible := (not pnlMemory.Visible);
ReposWindow;
WaitRepos.Enabled := true;
end;
procedure TGUIForm.miMMHelpClick(Sender: TObject);
@ -2415,7 +2424,7 @@ end;
procedure TGUIForm.btnHideClick(Sender: TObject);
begin
pnlMemory.Visible := false;
ReposWindow;
WaitRepos.Enabled := true;
end;
procedure TGUIForm.btnReadClick(Sender: TObject);