Show/Hide Toolbars

Inventu Viewer+ .NET Programmer's Reference

Navigation: HostScreen Class > Methods

getBoxOffset (returns integer)

Scroll Prev Top Next More

Return a offset of a box currently on the screen.

 

Integer HostScreen.getBoxOffset();

Integer HostScreen.getBoxOffset(int boxNumber);

 

Arguments

 

HostScreen

 Required. HostScreen object.

 

boxNumber

 Optional box number, base 0 for "earliest" or lowest box when multiples are present.  When omitted, the top or most recent box's offset will be returned.

 

Returns

-1 if no boxes are present on the screen, otherwise returns the upper-left corner of the box based on the boxNumber parameter.

 

Remarks

 

Logic can follow the left column of the box and the top row in order to determine the height and width of the box, then use getRectangle to read the full box/popup.

 

Requirements

 

Inventu Viewer+

 

See Also

 

getRectangle |

 

Applies To: HostScreen object

 


© 2022 Inventu Corporation