Form Design Wizard |
Form Design Wizard
This wizard is used to set align and size of compnents. Both Delphi/C++Builder are supported. It's enabled when current window is Form designer.
Some functions are only enabled when one or more components are selected. And some process for properties comes from those in the first component in selection. So please note the selection order of components.
Menu items of this wizard is as below:
Align Left Edges: Align selected components' left edges to first selected component. It's enabled when selected count >= 2.
Align Right Edges: Align selected components' right edges to first selected component. It's enabled when selected count >= 2.
Align Top Edges: Align selected components' top edges to first selected component. It's enabled when selected count >= 2.
Align Bottom Edges: Align selected components' bottom edges to first selected component. It's enabled when selected count >= 2.
Align Horizontal Centers: Align selected components' horizontal center to first selected component. It's enabled when selected count >= 2.
Align Vertical Centers: Align selected components' vertical centers to first selected component. It's enabled when selected count >= 2.
Space Equally Horizontally: Space selected components equally horizontally. It's enabled when selected count >= 3.
Space Equally Horizontally by...: Space selected components equally horizontally by a given value. It's enabled when selected count >= 2.
Increase Horizontal Space: Increase horizontal space of selected components. It's enabled when selected count >= 2.
Decrease Horizontal Space: Decrease horizontal space of selected components. It's enabled when selected count >= 2.
Removed Horizontal Space: Remove horizontal space of selected components. It's enabled when selected count >= 2.
Space Equally Vertically: Space selected components equally vertically. It's enabled when selected count >= 3.
Space Equally Vertically by...: Space selected components equally vertically by a given value. It's enabled when selected count >= 2.
Increase Vertical Space: Increase vertical space of selected components. It's enabled when selected count >= 2.
Decrease Vertical Space: Decrease vertical space of selected components. It's enabled when selected count >= 2.
Removed Vertical Space: Remove vertical space of selected components. It's enabled when selected count >= 2.
Increase Width: Increase width of selected component(s).
Decrease Width: Decrease width of selected component(s).
Increase Height: Increase height of selected component(s).
Decrease Height: Decrease height of selected component(s).
Grow Width to Largest: Set width of selected components to the largest one. It's enabled when selected count >= 2.
Shrink Width to Smallest: Set width of selected components to the smallest one. It's enabled when selected count >= 2.
Make Same Width: Set width of selected components to the width of first selected component. It's enabled when selected count >= 2.
Grow Height to Largest: Set height of selected components to the largest one. It's enabled when selected count >= 2.
Shrink Height to Smallest: Set height of selected components to the smallest one. It's enabled when selected count >= 2.
Make Same Height: Set height of selected components to the height of first selected component. It's enabled when selected count >= 2.
Make Same Size: Set size of selected components to the size of first selected component. It's enabled when selected count >= 2.
Center Horizontally: Put selected component(s) to horizntal center of parent.
Center Vertically: Put selected component(s) to vertical center of parent.
Bring to Front: Bring selected component(s) to front.
Send to Back: Send selected component(s) to back.
Snap to Grid: Whether snap to grid when moving or sizing components in form designer.
Designer Guideline: Whether show and snap to designer guideline when moving or sizing components in form designer. Only exists in BDS 2006.
Align to Grid: Set align of selected component to snap to grid.
Size to Grid: Set size of selected component to snap to grid.
Lock Controls: Whether allow moving and sizing components by mouse in form designer.
Select Form: Select current form designer.
Copy Component's Name: Copy selected component name to clipboard and switch to source editor for pasting. If more than one components are selected, multi-line names will be copied. If Shift was pressed, No switching to source will be performed.
Hide Non-visual: Hide/Show all non-visual components in current form. This setting does NOT affect those added later.
Arrange Non-visual: Arrange non-visual components in current form. See below.
Locate Components: Show a search dialog to locate components in designer quickly.
Convert to Code: Convert Selected Components to Code. See below.
Float Toolbar Options: Set the option of float toolbar.
Arrange Non-visual
This function is used to arrange selected non-visual components in current form designer. When no selected, all non-visual components in current form designer will be arranged.
By Row: Arrange non-visual components by row first. You can specify how many components in a row.
By Col: Arrange non-visual components by column first. You can specify how many components in a column.
Spaces: Edge space of non-visual components between rows or columns in pixels.
After Aligned, Place to: Move arranged non-visual components to some place, such as 'Top Left', 'Top Bottom', 'Bottom Left', 'Bottom Right' and 'Center'.
Space to Form Edge: The space from nearest non-visual component to form edge after arranging.
Sort by Classname: If this was selected, non-visual components will be sort by their classname before arranging.
Locate Components
This function is used to search and locate components in designer quickly. It can list all the names, classnames and Caption or Text property of components and search in them. The dialog is shown as below:
Locate and Select Components: Locate and select components in IDE designer.
Copy Component Name: Copy selected components name to clipboard.
Select All Components: Select all components in the list.
Cancel Selection: Select none in the list.
Inverse Selection: Inverse selection in the list.
Match Start: Match the component name, classname and caption/text head when searching.
Match All Parts : Match any position of component name, classname and caption/text when searching.
Run Component Selector: Run Component Selector Wizard to select components by more flexible way.
Font: Change font of list.
Help: Show this help.
Exit: Close this window and Exit.
Convert to Code
This function can be used to convert selected component(s) to creation code. Delphi and C++Builder are supported. The window is shown as below. The code is divided into two part: var declaration and initialization code.
Refresh: Convert selected components in current form to code. If no component selected, the whole form will be converted. Converted count will be displayed at status bar once completed.
Clear: Clear var declaration and initialization code area.
Copy Var Declaration: Copy var declaration code to clipboard. No hint after Copy.
Copy Initialization CodeCopy initialization code to clipboard. No hint after copy.
Copy the Whole Procedure: Copy the whole creating procedure to clipboard, include var and initialization. It will show the Procedure name after copy.
Shortcut Settings
You can set the shortcuts of menu items in CnWizards Settings as below:
You can set the shortcut of a menu item when select it.
Links