Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

How to? @select[] window size, redux.

Dec
238
2
TCC 15.01.52 x64 Windows 7 [Version 6.1.7601]

(I'm always slow to upgrade.)

Some months ago I posted about this but never did find a solution and am still having the problem -- with the @select[] window. The problem continues to be that the window won't expand to the expected height, and the bottom line is always partly cut off. To see everything in the window always requires expanding its height manually with the mouse.

I start with "test.txt", which contains three lines (just the words "one", "two", and "three", if it matters).

The attached screen shot shows the result of:

echo %@select[test.txt,5,5,20,40,title here]

"5,5" does what it's expected to do. "40" provides an expected width. But that "20" parameter never allows the window to reach the expected height. I could increase it to 30 (there'd still be enough screen real-estate) and the result would be the same.

This was never an issue with 4NT. What am I doing wrong here?
 

Attachments

  • select-window-too-small.jpg
    select-window-too-small.jpg
    10.7 KB · Views: 257
This example works in v16. In v15, it does not reliably work if you use the old row/column format. Try using the newer screen coordinate (pixel) positioning.
IMHO to convert screen positions from column/row to pixels is a nuisance. The precision is not needed!
 

Similar threads

Back
Top