ZTree.com  | ZEN  | About...  

 Index   Back

%#ZTLine% usable in eXecute from within Viewer   [Q]

By: Hartmut Schneider     Germany  
Date: Aug 21,2017 at 06:43
In Response to: [Q] how do i make Line mode active for %#ZTLine%? (Ryan)

>> When you are 'viewing' a file - press the letter L.

Yes, but it is not mandatory.
ZTW.HLP says, %#ZTLine% is the number of the top line (of the viewed area), or the number of the selected (=highlighted) line if Line mode is active.


> ok, that was the line mode, but it is still strange.
> how can i have the value of ECHO %#ZTLine% in ZtreeMenu, when i am
> scrolling with a line mode bar in Viewing a text file?

The difference gets more obvious if you set CO-5F "Search Hit offset" to an amount greater than 0% (my favorite is 50%).
You can even call your Editor to open the viewed file 'on' the highlighted line.
(e.g. UltraEdit: start UEdit32.exe "%1/%#ZTLine%")


> %#ZTLine% is maybe not supposed to be used in ZtreeMenu.

Correct. AFAIK you cannot call ZTreeMenu from Viewer (but eXecute, see above).
And if you leave Viewer, #ZTLine is reset to zero.


Hartmut

855 views      
Thread locked
 

Messages in this Thread

 
96,637 Postings in 12,231 Threads, 350 registered users, 64 users online (0 registered, 64 guests)
Index | Admin contact |   Forum Time: Mar 29, 2024 - 1:34 am UTC  |  Hits:62,387,531  (2,317 Today )
RSS Feed