window position

General development discussion.

Moderators: Susan Smith, admin, Gabriel

Post Reply
John
Posts: 555
Joined: Sun Apr 26, 2009 8:27 am

window position

Post by John »

Is there a way to discover what the size and position of the BR! session's parent window is? what about child modal (parent=none) windows?

-John B.
gordon
Posts: 358
Joined: Fri Apr 24, 2009 6:02 pm

Post by gordon »

From 4.2 release notes:

20) WINDOW INTERROGATION

file(nn,"WINDOW_RECT | USABLE_RECT", MAT num-arrayname)

BR distinguishes between window dimensions and the useable area of windows.

The above file() reference redimensions num-arrayname to 4 elements and returns nX (horizontal), Y (vertical), Width, and Height in pixels of either the window
or usable area rectangle.

file(nn,"FONTSIZE", MAT num-arrayname)

This FONTSIZE reference returns a two element array with the height and width of each fixed character position in pixels (used for positioning and sizing controls).
John
Posts: 555
Joined: Sun Apr 26, 2009 8:27 am

Post by John »

excellent. Just what I was looking for. I added the documentation you provided to the File article on the BR Wiki.

-john bowman
Post Reply