rasto8 píše:Nieje nejaky zapis pre kombinaciu UKONCIT, USPAT a ZRUSIT? Dakujem.
@rasto: citoval jsem tvůj dotaz z vlákna Primo_zipy a triky sem, jelikož vlánu Tipy a Triky není diskusní, ale "poznatkové".
zkus v souboru start.lua
zápis
sc_Exit = function()
if MODEL.lua.show_minimize() then
MODEL.screen.msgbox.new.setup(3)
MODEL.screen.msgbox.new.set_line(1, m_i18n("Are you sure you want to exit the program?"))
MODEL.screen.msgbox.new.setup_button(1, "sc_DoExit", m_i18n("Exit"), L"", "ico_Exit_mid-indialog.bmp#3")
MODEL.screen.msgbox.new.setup_button(2, "sc_DoMinimize", m_i18n("Minimize"), L"", "ico_minimize.bmp#3")
MODEL.screen.msgbox.new.setup_button(3, "sc_CancelExit", m_i18n("Cancel"), L"", "ico_cancel_mid.bmp#3")
MODEL.screen.msgbox.create_new()
změnit na
a pak dej vědětsc_Exit = function()
if MODEL.lua.show_minimize() then
MODEL.screen.msgbox.new.setup(3)
MODEL.screen.msgbox.new.set_line(1, m_i18n("Are you sure you want to exit the program?"))
MODEL.screen.msgbox.new.setup_button(1, "sc_DoExit", m_i18n("Exit"), L"", "ico_Exit_mid-indialog.bmp#3")
MODEL.screen.msgbox.new.setup_button(2, "sc_DoSuspend", m_i18n("Suspend"), L"", "ico_Exit_mid-indialog.bmp#3")
MODEL.screen.msgbox.new.setup_button(3, "sc_CancelExit", m_i18n("Cancel"), L"", "ico_cancel_mid.bmp#3")
MODEL.screen.msgbox.create_new()

v sys.txt by pro toto řešení UKONCIT, USPAT a ZRUSIT měl i nadále stačit zápis show_exit=1 a měl by tam zůstat i show_minimize=1 jen místo minimalizace bude funkce uspat