Page 1 of 1

internal functions to buttons

Posted: 27 Jan 2011 10:57
by eil
it may be i searched bad and didn't get the help file instructions, but i didn't managed to understand how to make an internal function to a button. for example i'd like to make Restore Last Closed Tab as a button. can anyone post a syntax for such kind of script or direct me to right place in help file?

Re: internal functions to buttons

Posted: 27 Jan 2011 11:22
by zer0
Use the following syntax of the command ID that does what you need:

Code: Select all

#343;

Re: internal functions to buttons

Posted: 27 Jan 2011 12:43
by Stefan
eil wrote:how to make an internal function to a button.
Hi, maybe this additional info will aid you too? >>> http://www.xyplorer.com/xyfc/viewtopic. ... 756#p54756

Re: internal functions to buttons

Posted: 27 Jan 2011 13:22
by eil
thanks for answers to both of you)
Stefan, good link, thanks ones more.

Re: internal functions to buttons

Posted: 07 Feb 2011 20:09
by eil
still have problems with 2 things(maybe someone can help this time too :) ):
1. how to put one of internal icons for a button? it's really boring to search for some icon when you just want make a button, but when they are the same it frustrates. i already read about "iconname" but that works not right some time, or i'm just gessing the name of icon wrong= where to see the names? yet, what about 2_words icon names?
2. how to make 2 functions to be made one after another? for example to make a certain view and sorting with one button.

Re: internal functions to buttons

Posted: 07 Feb 2011 21:34
by Stefan
eil wrote:still have problems with 2 things(maybe someone can help this time too :) ):
1. how to put one of internal icons for a button? it's really boring to search for some icon when you just want make a button, but when they are the same it frustrates. i already read about "iconname" but that works not right some time, or i'm just gessing the name of icon wrong= where to see the names? yet, what about 2_words icon names?
I have updated the post with the little >how to about CTB ("Custom Toolbar Buttons"):<
Just scroll down till your question.
2. how to make 2 functions to be made one after another? for example to make a certain view and sorting with one button.
Just follow my >link< i gave you above.
You just separate the command by an semicolon like f.ex.
#306; sortby "Modified", a;

(#306 is "View > Thumbnails #1")



HTH? :D

Re: internal functions to buttons

Posted: 07 Feb 2011 21:56
by eil
xyplorer.exe /2 didn't help(even as stupid tried "xyplorer.exe /2" exactly with ""). button icon just dissapears.
that way of semi-command i did use, but i was interested if 2 internal IDs can be used?(like #306 and #325)