Need "Lock Tree" button

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
TestMeister
Posts: 249
Joined: 04 Feb 2008 20:17
Location: Win 11 Pro v25H2- 125%

Need "Lock Tree" button

Post 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!

bdeshi
Posts: 4256
Joined: 12 Mar 2014 17:27
Location: Asteroid B-612
Contact:

Re: Need "Lock Tree" button

Post 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:

Code: Select all

#488	View | Lock Tree	
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:

Code: Select all

::snippet;
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"
Icon Names | Onyx | Undocumented Commands | xypcre
[ this user is asleep ]

TestMeister
Posts: 249
Joined: 04 Feb 2008 20:17
Location: Win 11 Pro v25H2- 125%

Re: Need "Lock Tree" button

Post 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!
:)

Papoulka
Posts: 455
Joined: 13 Jul 2013 23:41

Re: Need "Lock Tree" button

Post by Papoulka »

Thanks, Sammay. This short tutorial on adding a toolbar button for a pre-defined command was just what I needed too.

aurumdigitus
Posts: 1075
Joined: 30 May 2008 21:02
Location: Lake Erie

Re: Need "Lock Tree" button

Post by aurumdigitus »

Am familiar with Google's site: function but what does the "fc" portion instruct it to do?

PeterH
Posts: 2827
Joined: 21 Nov 2005 20:39
Location: DE W11Pro 24H2, 1920*1200*100% 3840*2160*150%

Re: Need "Lock Tree" button

Post 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? :D

aurumdigitus
Posts: 1075
Joined: 30 May 2008 21:02
Location: Lake Erie

Re: Need "Lock Tree" button

Post by aurumdigitus »

Okay, the XY part was obvious but the fc. Forum Content? :?

PeterH
Posts: 2827
Joined: 21 Nov 2005 20:39
Location: DE W11Pro 24H2, 1920*1200*100% 3840*2160*150%

Re: Need "Lock Tree" button

Post 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/ ...

Post Reply