- Dec
- 238
- 2
I used @select[] successfully for a long time in 4NT but am finding its behavior somewhat baffling in TCC.
I have a two-line text file "test.tmp". Both lines contain filenames that aren't especially long.
This command:
echo %@select[test.tmp,0,49,300,200,Pick a filename]
produces a SELECT window about an inch and a half wide. The filenames are cut off at the right.
This command -- with the second argument incremented by only 1:
echo %@select[test.tmp,0,50,300,200,Pick a filename]
produces a SELECT window that runs off the right edge of the screen and has to be dragged leftward to be seen in its entirety. (So the filenames are cut off on the right edge in the first case and have a ton of white-space to their right in the second.)
Why is this? What am I doing wrong in both cases? (I've been having trouble understanding @select[]'s logic in how it displays its window. So I chose the other numbers in the command somewhat arbitrarily.)
I have a two-line text file "test.tmp". Both lines contain filenames that aren't especially long.
This command:
echo %@select[test.tmp,0,49,300,200,Pick a filename]
produces a SELECT window about an inch and a half wide. The filenames are cut off at the right.
This command -- with the second argument incremented by only 1:
echo %@select[test.tmp,0,50,300,200,Pick a filename]
produces a SELECT window that runs off the right edge of the screen and has to be dragged leftward to be seen in its entirety. (So the filenames are cut off on the right edge in the first case and have a ton of white-space to their right in the second.)
Why is this? What am I doing wrong in both cases? (I've been having trouble understanding @select[]'s logic in how it displays its window. So I chose the other numbers in the command somewhat arbitrarily.)