mirror of
https://github.com/paleotronic/microm8-gui.git
synced 2024-11-25 17:42:21 +00:00
wait and repos on memory show/hide
This commit is contained in:
parent
e787ba54cf
commit
5c52a1d6e6
@ -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
|
||||
|
@ -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);
|
||||
|
@ -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.
7
main.lfm
7
main.lfm
@ -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
|
||||
|
13
main.pas
13
main.pas
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user