Topic: Finding out the size of edit window area (1 of 3), Read 22 times
Conf: VEDIT Macro Language Support
From: Pauli Lindgren
Date: Friday, October 04, 2002 05:16 AM

Is there a way to find out the size of the edit window area (the size of Full Size window) using the macro language?

For example, how can I create two windows, each of which use half of the edit window area (top and bottom half)?

I have tried something like:
  #5 = Screen_Lines*Font_Height
Win_Move(Win_Num,0,#5/2,WINW,#5/2)

However, that seems not to give correct value, the window is smaller than it should be.

-- Pauli Lindgren

 


Topic: Re: Finding out the size of edit window area (2 of 3), Read 24 times
Conf: VEDIT Macro Language Support
From: Ted Green
Date: Friday, October 04, 2002 10:44 AM

At 05:17 AM 10/4/2002, you wrote:
>Is there a way to find out the size of the edit window area (the size of Full Size window) using the macro language?

There appears to be no trivial way of doing this right now. I will add new "Internal values" for this soon.

A possible work-around would be to create a full-sized window, get its values for Win_Height and Win_Width and then delete the full-sized window.

Sincerely,


Ted.
-------------------------------------------------------------------------
Ted Green (ted@...) Greenview Data, Inc.
Web: http://www.... PO Box 1586, Ann Arbor, MI 48106
Tel: (734) 996-1300 Fax: (734) 996-1308 VEDIT - Text/Data/Binary Editor

 


Topic: Re: Finding out the size of edit window area (3 of 3), Read 25 times
Conf: VEDIT Macro Language Support
From: Christian Ziemski
Date: Friday, October 04, 2002 12:00 PM

On Fri, 4 Oct 2002 10:46:37 -0400, you wrote:

>>Is there a way to find out the size of the edit window area
>>(the size of Full Size window) using the macro language?
>
>There appears to be no trivial way of doing this right now.
>I will add new "Internal values" for this soon.

And if possible: Please add two additional values:
1.) Width of vertical scrollbar in pixels (0 if deactivated)
2.) Width of horizontal scrollbar in pixels (0 if deactivated)

That would be helpful for example in the macro described in thread
"Re: cannot see last character on line" in August this year.


Christian