Window 3.1g3 :

- semplificazioni e sistemazioni varie per esecuzione manuale.
This commit is contained in:
Dario Sassi
2026-07-27 20:01:09 +02:00
parent 685b363859
commit 2978b800ae
5 changed files with 70 additions and 40 deletions
+18 -4
View File
@@ -28,12 +28,25 @@ local sOpenFilePath = ''
-- verifico se lanciato file in batch per test
if WINDOW and WINDOW.FILE then
sOpenFilePath = WINDOW.FILE
-- oppure in interattivo
else
-- altrimenti apro dialogo di scelta file
local sOpenDirPath = 'C:\\EgtData\\EgtWindowMaker\\Projects\\*.jwd'
sOpenFilePath = EgtFileDialog( true, sOpenDirPath, "Window Project Files (*.jwd)|*.jwd||")
if not sOpenFilePath then
-- se voglio aprire ultima finestra generata
if EgtGetKeyPressed( GEN_VK.SHIFT) then
local sLastWinPath = EgtGetStringFromIni( 'Window', 'LastWin', '', EgtGetIniFile())
if not EgtExistsFile( sLastWinPath) then
EgtOutBox( 'Non esiste Finestra corrente', 'Crea Serramento - Window', 'INFO', 'OK')
return
end
EgtOpenFile( sLastWinPath)
EgtZoom( SCE_ZM.ALL)
return
-- altrimenti apro dialogo di scelta file JWD
else
local sOpenDirPath = 'C:\\EgtData\\EgtWindowMaker\\Projects\\*.jwd'
sOpenFilePath = EgtFileDialog( true, sOpenDirPath, "Window Project Files (*.jwd)|*.jwd||")
if not sOpenFilePath then
return
end
end
end
@@ -66,4 +79,5 @@ if WINDOW and WINDOW.TEST == 1 then
else
EgtSaveFile()
EgtZoom( SCE_ZM.ALL)
EgtWriteStringToIni( 'Window', 'LastWin', sFilePath, EgtGetIniFile())
end