Script to toggle "large icons" ON/OFF for toolbar buttons?
Posted: 03 May 2013 22:45
Does anyone know how to make a script to toggle "large icons" ON/OFF for toolbar buttons?
Forum for XYplorer Users and Developers
https://www.xyplorer.com/xyfc/
toolbar( , 1);//Largeghost zero wrote:Does anyone know how to make a script to toggle "large icons" ON/OFF for toolbar buttons?
Code: Select all
if (isset($P_ICON_TOGGLE_LARGE)) {
toolbar(, "0");
unset $P_ICON_TOGGLE_LARGE;
} else {
toolbar( , "1");
perm $P_ICON_TOGGLE_LARGE = "True";
}
Oh yes, i keep forgetting about PVs.highend wrote:Just use a permanent variable...
unfortunately, that requires a second click before it starts working during the session. is there a smoother solution?highend wrote:Just use a permanent variable...
E.g.:Code: Select all
if (isset($P_ICON_TOGGLE_LARGE)) { toolbar(, "0"); unset $P_ICON_TOGGLE_LARGE; } else { toolbar( , "1"); perm $P_ICON_TOGGLE_LARGE = "True"; }
XY will remember permanent variable for you if you enable:ghost zero wrote:unfortunately, that requires a second click before it starts working during the session. is there a smoother solution?