testing out tweaks to logon form to maintain focus and z order

removed batch script call to kill MES.exe on LOGON form create event
This commit is contained in:
Infineon\StieberD 2025-05-09 14:44:35 -07:00
parent 5c18f7ccd2
commit 770a1de95b
2 changed files with 1362 additions and 216 deletions

File diff suppressed because it is too large Load Diff

View File

@ -44,7 +44,7 @@ Declare subroutine SRP_EditTable_Manager, SRP_Show_Window, Logging_Services, ob
Declare subroutine Database_Services, End_Window, ShowWindow, SRP_Run_Command, Placedialog
Declare function SRP_EditTable_Manager, Database_Services, Security_Services, Logging_Services, Environment_Services
Declare function GetPrivateProfileString, WritePrivateProfileString, GetPrivateProfileSection, SRP_Get_FileVersion
Declare function Datetime, Rti_Getnetworkusername
Declare function Datetime
LogPath = Environment_Services('GetApplicationRootPath') : '\LogFiles\Version'
LogDate = Oconv(Date(), 'D4/')
@ -81,11 +81,6 @@ Return EventFlow else EVENT_CONTINUE$
Event WINDOW.CREATE(CreateParam)
// Stopgap solution to kill SRP App launcher splash screen if it fails to close.
WindowsUser = Rti_Getnetworkusername()
KillCommand = 'taskkill /f /fi "USERNAME EQ ' : WindowsUser : '" /im MES.exe'
SRP_Run_Command(KillCommand, '', '', '')
GoSub Setup_OLE_Controls
Set_Property(@Window : '.PUB_CLOSE', 'NEXT', @Window : '.EDL_USERNAME')
@ -156,6 +151,7 @@ Event WINDOW.CREATE(CreateParam)
PlaceDialog(-2, -2)
Set_Property(@Window, 'VISIBLE', 1)
Set_Property(@Window:'.EDL_USERNAME', 'FOCUS', True$)
end event
@ -265,4 +261,3 @@ Setup_OLE_Controls:
return