RemoveEmptyColumns

When a file or folder is selected within a Lister, this button toggles between:

  1. saving the empty columns and deleting the empty columns
    AND
  2. replacing the columns to return to original Lister layout.
<?xml version="1.0"?>
<button backcol="none" display="both" icon_size="large" textcol="none">
	<label>Tgle Col</label>
	<tip>Toggle empty columns off and on</tip>
	<icon1>#swapsourcedest_horiz</icon1>
	<function type="normal">
		<instruction>@toggle:if $glob:MyToggle</instruction>
		<instruction>@ifset:$glob:MyToggle</instruction>
		<instruction>Set FORMAT=MyTempFolderFormat</instruction>
		<instruction>@set glob:MyToggle</instruction>
		<instruction>@ifset:else</instruction>
		<instruction>Set SAVEFORMAT=favorite FORMAT=MyTempFolderFormat</instruction>
		<instruction>RemoveEmptyColumns</instruction>
		<instruction>@set glob:MyToggle=1</instruction>
	</function>
</button>

Toggle Blank Columns.dop (697 Bytes)