dcantor wrote:
...
| In this code, %activewindow is the name of some window. This code
| sets %activepos to the correct parameter string for later use in
| ACTIVATE (which should be the same as in WINDOW).

Thanks, it helps to force a window back to an earlier size, but not to force
it to a specific width and height in terms of rows and columns, as you can
do by clicking on the upper left corner, and going to Properties ->
Layout -> Window size.
--
Steve

rconn wrote:
| Steve Fábián wrote:
|| What's the algorithm to calculate the width and height of a window
|| as required by the /POS option of the WINDOW command, given the
|| desired size in columns and rows?

| Multiply the rows & columns by your font size, and add the title bar.

I thougt the font size is the character pixel array size, but that there is
space between them both vertically and horizontally, for which I also need
to account. How about vertical and / or horizontal scroll bar size? Are they
included in the /POS design?

|
| Or (much, much simpler) just drag the window to the size you want.

That requires experimenting to have the correct size. Using the window's
system icon requires less experimenting, but neither can be done
programmatically, only the /POS can do it. Maybe a future version could
include a /WINSIZE=rows,columns option (keeping the upper left corner
immobile).
--
Steve

Administrator

rconn wrote:
| Steve Fábián wrote:
|| What's the algorithm to calculate the width and height of a window
|| as required by the /POS option of the WINDOW command, given the
|| desired size in columns and rows?

| Multiply the rows & columns by your font size, and add the title bar.

> I thougt the font size is the character pixel array size, but that there

If you want to resize a TCC window in Take Command, it's vastly simpler to
drag it; you'll see the current size updated in the status bar. If you want
to resize a stand-alone TCC window, click on the icon on the title bar and
use the Windows console manager (which is going to be doing it anyway).

|I thougt the font size is the character pixel array size, but that there is
|space between them both vertically and horizontally, for which I also need
|to account. How about vertical and / or horizontal scroll bar size? Are they
|included in the /POS design?

Font sizes are in pixels; so are window sizes. What's the problem. Where are
there spaces ... not between console characters.

rconn wrote:
| rconn wrote:
|| Steve Fábián wrote:
||| What's the algorithm to calculate the width and height of a window
||| as required by the /POS option of the WINDOW command, given the
||| desired size in columns and rows?
|
|| Multiply the rows & columns by your font size, and add the title
|| bar.
|
|
|
| ---Quote---
|| I thougt the font size is the character pixel array size, but that
|| there
| ---End Quote---
| is
|
|
| ---Quote---
|| space between them both vertically and horizontally, for which I
|| also need ---End Quote---
|
|
| ---Quote---
|| to account. How about vertical and / or horizontal scroll bar size?
|| Are
| ---End Quote---
| they
|
|
| ---Quote---
|| included in the /POS design?
| ---End Quote---
| The font size includes the pixels above & below.
|
| If you want to resize a TCC window in Take Command, it's vastly
| simpler to drag it; you'll see the current size updated in the
| status bar. If you want to resize a stand-alone TCC window, click
| on the icon on the title bar and use the Windows console manager
| (which is going to be doing it anyway).

The part in which you quoted my post came through horribly mangled,
but luckily your response came through legibly.

"Erroneously" may be a bit harsh, since the width of the scroll bar and the
width of the arrow bitmap are identical; and the help text was taken
directly from Microsoft's documentation. Apparently MS decided to document
it differently in different places -- where did you see the text you're
referring to?

"Erroneously" may be a bit harsh, since the width of the scroll bar and the
width of the arrow bitmap are identical; and the help text was taken
directly from Microsoft's documentation. Apparently MS decided to document
it differently in different places -- where did you see the text you're
referring to?

The error is that the TCC help says (of "2") "horizontal"; it should be
"vertical". "21" is similarly wrong; it should be "arrow-width **horizontal**
[not vertical] scroll bar. To put it another way, TCC has them paired wrong. In
actuality, "2" is XV and "3" is YH, referring to the scroll bar itself; "20" is
YV and "21" is XH, referring to the mimimum button size.