position of a window

Hello everyone

I am grateful for the interest and scope of the following:

How can I do so that in a window at the time of execution it is placed in a certain position in the Monitor of the computer, in a desktop system

Any ideas will be greatly appreciated.

Raúl Juárez Pulache

In the window open event:

Self.left = 200
Self.top = 300

Thank you
Markus Winter

With your help I was able to solve the situation plantedad


Raul Juarez Pulache

Actually you should probably use the windows BOUNDS and NOT top and left

Top and Left refer to the “content area” which excludes the frame
see http://documentation.xojo.com/index.php/Window.Top and http://documentation.xojo.com/index.php/Window.Left

Bound refers to the entire window INCLUDING the frame

The difference ? In many cases very little - but in some very significant

Well if you have a toolbar on the window the content region starts below the toolbar
So using top and left you might place the window in a way that top left are both 0 and the menu bar tool bar etc are off the screen
If you use Bounds as shown in the examples on the page I pointed out you wont do that