Hi all,
How update a column?
Scenario: I have a scripting-column which is triggerd on click (white triangle on top of the green rectangle) but does something with the file instead of displaying a value in the column.
Instead of a value being displayed after clicking I want the white triangle on top of the green rectangle to display again, so that I can call the script again if desired.
Problem: Right now, since the script does not return a value, the white triangle on top of the green rectangle simply disappears and clicking that void space again does nothing anymore.
Idea: Update/refresh the column so it is set back to its orgiginal state with these white-green icons on every line.
It would be possible as side-effects of other commands (like toggling one of the file attributes, of course twice). This seems to update all columns, though.
At this point I would not mind updating all columns but maybe another time I would, and besides, it is not a pretty solution. Is there not a better way? Maybe even to refresh/reset only that one field / line in that specific column?
How does setclumns() work?
I also tried to make it work with the setcolumns() function. Although I read up on it in the help file and the forum, I cannot figure out how it really works. Or else it has some bugs in it? Maybe both?
E.g. when I try to toggle a "Custom 2" column, doing a
::setcolumns("Custom 2", 8, 5);
then any soft columns are auto-sized (at least it looks to me that they are, which I do not want). The hard ones are not autosized.
Is this on purpose or avoidable?
The help description for this function really needs improvement all together, please.
Many thx in advance for any help.
Regards.
SC: How update a column? & How does setclumns() work?
-
autocart
- Posts: 1384
- Joined: 26 Sep 2013 15:22
SC: How update a column? & How does setclumns() work?
[AHK] redirecting Windows Explorer to XY, [XYS] Mini Tree with open tabs (cur loc expanded, tab folders highlighted), [AHK] customInlineRenameKeys, [AHK] clipboardHelper_and_XYEscToList
XYplorer Beta Club