If the selected component is not a form, see Modifying Code Generation for a Component.
Form Position. Sets the screen position where the form opens. The position is specified as the x and y coordinates from the upper-left corner of the screen.
This property value is used only when the Generate Position property is true, Form Size Policy is Generate Resize Code, and Generate Center is false.
Form Size. Sets the initial size of the form. This setting is used only when the Generate Size property is true and Form Size Policy is set to Generate Resize Code.
Form Size Policy.
Sets the overall policy for the generation of resize code. You can choose to have
resize code generated, to have the pack()
method generated (in which
case the form is sized to fit the preferred size and layout of its components),
or to not have any resize code generated.
Using the Generate Resize Code option is particularly useful if you are using
a null layout, as the pack()
method is ineffective with a null
layout.
If you want to use the "Generate ..." properties described below, you must set Form Size Policy to Generate Resize Code.
Generate Center. If true, generates code that positions the form at the center of the screen, regardless of the value of the Generate Position and Form Position properties.
This code is only generated if the Form Size Policy property is set to Generate Resize Code.
Generate Position. If true, generates code that positions the form to the coordinates given by the Form Position property.
This code is only generated if Generate Center is false and Form Size Policy is set to Generate Resize Code.
Generate Size. If true, generates code that sets the size of the form to the size given by the Form Size property.
This code is only generated if Form Size Policy is set to Generate Resize Code.
Menu Bar. If your form has multiple menu bars, sets the menu bar that is to be displayed in the form.
See also | |
---|---|
Modifying Code Generation for a Component
Modifying Code Generation for a Property Null Layout Changing the Current Menu Bar |