[SC]: Load custom layout
Posted: 11 May 2014 17:09
Something like:
Code: Select all
Layout("<xydata>\Columns\mylayout.txt", "load")Forum for XYplorer Users and Developers
https://www.xyplorer.com/xyfc/
Code: Select all
Layout("<xydata>\Columns\mylayout.txt", "load")Code: Select all
v14.00.0113 - 2014-05-11 20:52
+ Scripting got a new function.
Name: ColumnLayout
Action: Loads or saves a column layout.
Syntax: columnlayout(file, [mode="load"])
file: File to save the column layout to, or to load it from.
Either full path or resolved relative to <xydata>\Columns\.
If missing you are prompted by a standard Windows dialog.
If no extension is passed the extension defaults to ".txt".
mode:
load = [Default] load columns from file
save = save columns to file
return: The column loaded or saved.
Examples:
columnlayout("default"); //loads columns from <xydata>\Columns\Default.txt
columnlayout("default", "save"); //saves columns to <xydata>\Columns\Default.txt
columnlayout(); //loads columns, file is prompted
columnlayout(, "save"); //saves columns, file is promptedCode: Select all
$cs = listfolder("<xydata>\Columns", "*.txt", 5);
$cs = replace($cs, ".txt", "");
$c = popupmenu($cs);
if ($c) {columnlayout($c)};Code: Select all
$Col = "Path.150,+Name.180";
columnlayout($Col, "save", "v");
columnlayout($Col, , "v");Well, that's kind of a valid argument…admin wrote:Too much trouble over the years so I wanted to get rid of them.