Skip to content

Instantly share code, notes, and snippets.

@tablacus
Created July 19, 2021 11:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tablacus/cf01f7c9fba248c39ec658d89379fe06 to your computer and use it in GitHub Desktop.
Save tablacus/cf01f7c9fba248c39ec658d89379fe06 to your computer and use it in GitHub Desktop.
Load layout overwrite
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;
@tablacus
Copy link
Author

image

@tablacus
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment