Page 1 of 1
Need "Lock Tree" button
Posted: 24 Jul 2014 19:35
by TestMeister
Can anyone provide the function for the Menu\View\Lock Tree command?
I want to create a tool bar button for it.
*
Also, unrelated but in the forum search, how does one search on an phrase, i.e. "Lock Tree"?
Quotes don't seem to do it.
Many thanks!
Re: Need "Lock Tree" button
Posted: 24 Jul 2014 20:11
by bdeshi
Press&hold the CTRL key and open Main Menu->Help->List All Commands. You'll see the list of all availble commands with their IDs.
Lock Tree is like this:
You just need to use the first #+numbers part to call the command in a script. The script would be simple:
::#488;
To get a button with this function automagically added to the toolbar, type the following into the addressbar of XYplorer:
A textbox will open. Paste the following code there and press OK.
Code: Select all
Snip: CTB 1
XYplorer 14.30.0301, 7/25/2014 12:10:26 AM
Action
NewUserButton
Name
Lock Tree Toggle
Icon
ScriptL
#488; //toggle lock tree
ScriptR
FireClick
0
[/size]
=======
As for searching the forum, I find using Google search on the forum fares much much better than the forum searching itself.
In Google, you'd use something like this to search for "lock tree" in this forum:
Code: Select all
site:xyplorer.com/xyfc/ "lock tree"
Re: Need "Lock Tree" button
Posted: 24 Jul 2014 23:37
by TestMeister
Thanks Sammay that was perfect; note that the command# is not in "List All Command" but did find it in "Scripting Commands Reference"
Prolly should have known about the Google site search option but did not so thanks also for that!

Re: Need "Lock Tree" button
Posted: 06 Aug 2014 16:00
by Papoulka
Thanks, Sammay. This short tutorial on adding a toolbar button for a pre-defined command was just what I needed too.
Re: Need "Lock Tree" button
Posted: 06 Aug 2014 21:22
by aurumdigitus
Am familiar with Google's site: function but what does the "fc" portion instruct it to do?
Re: Need "Lock Tree" button
Posted: 06 Aug 2014 21:38
by PeterH
aurumdigitus wrote:Am familiar with Google's site: function but what does the "fc" portion instruct it to do?
Maybe have a look to the top of your browser, for the URL of the location you are browsing just now?

Re: Need "Lock Tree" button
Posted: 06 Aug 2014 21:57
by aurumdigitus
Okay, the XY part was obvious but the fc. Forum Content?

Re: Need "Lock Tree" button
Posted: 06 Aug 2014 22:12
by PeterH
I'd say, /xyfc/ is just the name of a (virtual) folder of the web server, containing the pages for the forum.
It's exact meaning is just what Don thought of when he created the name.
As any folder name created by someone. Might also be /aa1/ or /forum/ ...