Xbasic
FORM.WINDOW_POSITION Function
Syntax
window_position([x_position as c[,y_position as c]])
Arguments
- x_position
Optional. Default = "center".The horizontal position of the window. Possible values are:
- "left"
- "right"
- "center"
- "fill"
- "pixel_coordinate"
- y_position
Optional. Default = "center".The vertical position of the window. Possible values are:
- "top"
- "bottom"
- "center"
- "fill"
- "pixel_coordinate"
Description
The .WINDOW_POSITION() method positions a form or browse on the screen. The "fill" option allows you to fill the entire Alpha Anywhere client area, without having to maximize the window. By avoiding having to maximize the window, other windows can be opened in a smaller window on top of the window that fills the screen.
Example
dim frm as P frm = form.load("Form1") frm.window_position("300", "150") frm.show()
Limitations
Desktop applications only.
See Also