Form View Question

David Thompson dthmpsn1 at uiuc.edu
Fri Jan 25 15:24:34 PST 2008


The Window Size wizard on the Form Tools sub-menu 
of the Wizards menu can be a big help in writing 
the code. Open your window manually with whatever 
options you want it to have and adjust the size 
and location the way you want it. Then open the 
Window Size wizard. It will open in front of your 
form with the same dimensions. Choose "Write Open 
Window Code" from the WindowSize menu and you 
will see a message alert with the code you should 
use. That same code will be on the clipboard so 
that you can paste it into your procedure.

Dave

>There are many ways, here is one:
>
>local newWindowRect
>newWindowRect=rectanglecenter(
>       info("WindowRectangle")  ,
>      rectanglesize(1,1,9*36,3.5*72))
>
>setwindowrectangle newWindowRect,
>      "noHorzScroll noVertScroll noPalette"
>      opendialog "Return Authorization Form"
>
>/* If you leave the setwindowrectangle with the last parameter blank 
>you will retain the scroll options and palette*/
>in that case it would be:
>setwindowrectangle newWindowRect,""
>
>
>You can also use OpenForm instead of OpenDialog...if you use 
>OpenDialog, you will probably want a CloseWindow button on the form



More information about the Qna mailing list