Topic: Set window location
Hello all -
Is there a way to set a child window to open in a specific location within a parent window?
My Visual Database → General → Set window location
Hello all -
Is there a way to set a child window to open in a specific location within a parent window?
Hello all -
Is there a way to set a child window to open in a specific location within a parent window?
Form2.Parent:=Form1;
Form2.Parent:=Form1.Panel1;
or
Sorry I am still new to all of this. But I would like the window state to default to open at the bottom of the parent window or the ability to set the location just like you would a panel.
Hi Tjohnson, Sibprogsistem,
Another way is to specify the location of child forms relative to the 'top' and 'left' of the parent form.
Have a look at the attachment and click on the '+' buttons on Form1 (the parent) to see each child form positioned in the appropriate 'zone' (stock in or stock out).
There is a lot of other stuff in the script that's irrelevant to your question (I didn't have time to strip it out) but have a look at lines 94-95 and lines 103-104 for how it's done.
And remember to set the 'position' object property of the child forms to 'po designed' (it's the bit I always forget!).
Derek.
Thank you Derek. That is what I needed.
My Visual Database → General → Set window location
Powered by PunBB, supported by Informer Technologies, Inc.
Theme Hydrogen by Kushi