mirror of
https://github.com/paleotronic/microm8-gui.git
synced 2025-01-15 01:32:45 +00:00
focus check visual
This commit is contained in:
parent
63181240c5
commit
b346d2d76f
@ -2047,10 +2047,6 @@ end;
|
||||
function TGUIForm.SimpleGet(url:string): string;
|
||||
begin
|
||||
result := '0';
|
||||
|
||||
if not MicroM8Process.Active then
|
||||
exit;
|
||||
|
||||
try
|
||||
result := self.httpc.Get(url)
|
||||
except
|
||||
@ -2063,10 +2059,6 @@ end;
|
||||
function TGUIForm.SimpleGetInt(url:string): integer;
|
||||
begin
|
||||
result := 0;
|
||||
|
||||
if not MicroM8Process.Active then
|
||||
exit;
|
||||
|
||||
try
|
||||
result := StrToInt(self.httpc.Get(url))
|
||||
except
|
||||
@ -2078,10 +2070,6 @@ end;
|
||||
|
||||
procedure TGUIForm.SimpleGetStream(url:string; var S: TMemoryStream);
|
||||
begin
|
||||
|
||||
if not MicroM8Process.Active then
|
||||
exit;
|
||||
|
||||
try
|
||||
self.httpc.Get(url, S)
|
||||
except
|
||||
@ -2094,8 +2082,6 @@ end;
|
||||
|
||||
procedure TGUIForm.SimpleFormPost( url: string; body: string; var resp: TStringStream );
|
||||
begin
|
||||
if not MicroM8Process.Active then
|
||||
exit;
|
||||
try
|
||||
self.httpc.SimpleFormPost(url,body,resp)
|
||||
except
|
||||
@ -2312,12 +2298,13 @@ begin
|
||||
if GetTitleOfActiveWindow = 'microM8' then
|
||||
begin
|
||||
|
||||
{$IFNDEF WINDOWS}
|
||||
{$IFDEF WINDOWS}
|
||||
if IsMouseBtnDown then
|
||||
exit;
|
||||
{$ENDIF}
|
||||
|
||||
//Application.Restore;
|
||||
StatusBar1.SimpleText := 'trying to focus';
|
||||
Application.BringToFront;
|
||||
{$IFDEF WINDOWS}
|
||||
SetForegroundWindow(Application.MainForm.Handle);
|
||||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
3
main.pas
3
main.pas
@ -2298,12 +2298,13 @@ begin
|
||||
if GetTitleOfActiveWindow = 'microM8' then
|
||||
begin
|
||||
|
||||
{$IFNDEF WINDOWS}
|
||||
{$IFDEF WINDOWS}
|
||||
if IsMouseBtnDown then
|
||||
exit;
|
||||
{$ENDIF}
|
||||
|
||||
//Application.Restore;
|
||||
StatusBar1.SimpleText := 'trying to focus '+DateTimeToStr(Now);
|
||||
Application.BringToFront;
|
||||
{$IFDEF WINDOWS}
|
||||
SetForegroundWindow(Application.MainForm.Handle);
|
||||
|
Loading…
x
Reference in New Issue
Block a user