Created
July 19, 2021 11:07
-
-
Save tablacus/cf01f7c9fba248c39ec658d89379fe06 to your computer and use it in GitHub Desktop.
Load layout overwrite
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const commdlg = api.CreateObject("CommonDialog"); | |
commdlg.InitDir = BuildPath(te.Data.DataFolder, "layout"); | |
commdlg.Filter = MakeCommDlgFilter("*.xml"); | |
commdlg.Flags = OFN_FILEMUSTEXIST; | |
if (commdlg.ShowOpen()) { | |
te.Data.LayoutPath = commdlg.FileName; | |
LoadXml(commdlg.FileName); | |
} | |
return S_OK; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://gist.github.com/tablacus/20a7320080a66d7cbbbb6ea47f5d96f0