Page 1 of 1
window position
Posted: Wed Jul 28, 2010 11:40 am
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.
Posted: Wed Jul 28, 2010 2:10 pm
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).
Posted: Wed Jul 28, 2010 2:29 pm
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