Window 3.1g3 :
- semplificazioni e sistemazioni varie per esecuzione manuale.
This commit is contained in:
+18
-4
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user