Form Controls Reference

From Apache OpenOffice Wiki
< Documentation‎ | AOO4 User Guides/Writer Guide‎ | Using Forms in Writer
Revision as of 09:43, 10 October 2025 by DiGro (talk | contribs) (→‎==)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search



Form Controls Reference

Form Controls Toolbar
AOO41WG15 001c iconSelectButton.png Select Selects a form control to perform some other action on it.
AOO41WG15 001a iconDesignModeOnOff.png Design mode on/off Toggles between design mode on (to edit forms) and design mode off (to use forms).
AOO41WG15 002a 01 iconControl.png Control Launches the form control properties dialog box. This dialog box can be kept open as different controls are selected.
AOO41WG15 002a 02 iconForm.png Form Launches form properties dialog box, controlling properties for the form as a whole, such as which data source it connects to.
AOO41WG15 002a 03 iconCheckBox.png Check Box A box that can be selected or deselected on the form. You can label the box.
AOO41WG15 002a 04 iconTextBox.png Text Box A control to create a box into which the form user can type any text.
AOO41WG15 002a 05 iconFormattedField.png Formatted Field A control allowing numeric formatting options. For example, you can set maximum and minimum values for the number entered, or the number type (decimal places, scientific, currency).
AOO41WG15 002a 06 iconPushButton.png Push Button Creates a button that can be linked to a macro. The label is the name that appears on the button.
AOO41WG15 002a 07 iconOptionButton.png Option Button Creates an option button (also known as a radio button). When multiple buttons are grouped together, only one can be selected at a time. The easiest way to group multiple buttons is to use the Group Box button on the More Controls toolbar, with wizards enabled.
AOO41WG15 002a 08 iconListBox.png List Box Creates a list of options as a pull-down menu that the user can choose from. If wizards are on, creating a list box launches the List Box Wizard. This wizard is only useful if your form is linked to a data source.

If the form is not linked to a data source, turn wizards off and create an empty list box. Then click the control button and, in the List Entries option on the General tab, enter the options you want to appear on the list.

AOO41WG15 002a 09 iconComboBox.png Combo Box As with a List Box, you set up a list of choices. In addition, a panel at the top either displays the choice made or allows the form user to type in something else. This works the same as the List Box in a simple form, but they are different if the form is connected to a data source.
AOO41WG15 002a 10 iconLabelField.png Label Field A text label. The difference between this and just typing on the page is that, as a control, you can link a label field to macros so, for example, something happens when the mouse passes over it or clicks on it.
AOO41WG15 002a 11 iconMoreControls.png More Controls Launches the More Controls toolbar.
AOO41WG15 002a 12 iconFormDesign.png Form Design Launches the Form Design toolbar, which can also be opened with View → Toolbars → Form Design.
AOO41WG15 001d iconWizardsOnOff.png Wizards On/Off Some form controls (List Box and Combo Box) have optional wizards. If you do not want the wizard to launch when you create one of these controls, use the Wizards On/Off button to switch wizards off.
AOO41WG15 002a 13 iconSpinButton.png Spin Button Allows form users to choose a number by cycling through the list of numbers. You can specify maximum, minimum, default, and the step between numbers.

This control is not commonly used in Writer, as the number is not displayed. In Calc, however, a Data tab appears on the Control Properties dialog box, so you can link the spin button to a cell.

AOO41WG15 002a 14 iconScrollBar.png Scroll Bar Creates a scroll bar, with a number of options to define the exact appearance.

This control is not commonly used in Writer. In Calc, a Data tab appears on the Control Properties dialog box, allowing you to link the scroll bar to a cell.

AOO41WG15 002a 15 iconImageButton.png Image Button Behaves exactly like a push button, but displays as an image. Choose the image in the Graphics option on the General tab in the Control Properties dialog box.
AOO41WG15 002a 16 iconImageControl.png Image Control Only useful when the form is connected to a data source and a field in the data source exists that can hold images. You can add new images to the database or retrieve and display images from it.
AOO41WG15 002a 17 iconDateField.png Date Field Stores a date. You need to configure the earliest and latest dates the field will accept, the default date, and the date format. You can add a spinner.
AOO41WG15 002a 18 iconTimeField.png Time Field Works like a date field but specifies a time.
AOO41WG15 002a 19 iconFileSelection.png File Selection Allows a user to select a file, either by typing the path and name directly or by clicking on a Browse button and choosing the file from a dialog box.
AOO41WG15 002a 20 iconNumericField.png Numeric Field Displays a number. You need to specify formatting, maximum, minimum, and default values. You can add a spinner.
AOO41WG15 002a 21 iconCurrencyField.png Currency Field Works like a numeric field; additionally you can add a currency symbol.
AOO41WG15 002a 22 iconPatternField.png Pattern Field Pattern fields are useful when the form links into a data source. Specify an Edit Mask to restrict what a user can enter into the field. Specify a Literal Mask to restrict which data is displayed from the data source.
AOO41WG15 002a 23 iconGroupBox.png Group Box The group box control has two different uses depending on whether wizards are on or off.

If wizards are on, creating a group box launches the Group Element wizard. This creates a group of options buttons (in which only one may be selected at a time). In most cases, using a group box is the best way to create a set of option buttons.
If wizards are off, a group box is simply a visual box to group together different controls. It has no effect on the way the controls operate.

AOO41WG15 002a 24 iconTableControl.png Table Control Table Control is only useful with a data source. If no data source is specified, you will be prompted to choose one in the Table Element Wizard. You then pick the fields to display and, when design mode is off, the data appears in the table. The table also includes controls to step through the records.

Records can be added, deleted, and modified in the table.

AOO41WG15 002a 25 iconNavigationBar.png Navigation Bar A navigation bar is the same as the Form Navigation toolbar (View → Toolbars → Form Navigation), but can be placed anywhere in the document and be resized.

Form Design Toolbar
AOO41WG15 001c iconSelectButton.png Select Selects a form control to perform some other action on it.
AOO41WG15 001a iconDesignModeOnOff.png Design mode on/off Toggles between design mode on (to edit forms) and design mode off (to use forms).
AOO41WG15 002a 01 iconControl.png Control Launches the form control properties dialog box. This dialog box can be kept open as different controls are selected.
AOO41WG15 002a 02 iconForm.png Form Launches form properties dialog box, controlling properties for the form as a whole, such as which data source it connects to.
AOO41WG15 002a 26 iconFormNavigator.png Form Navigator The Form Navigator is a utility displaying all the forms and controls in the current document. It allows you to edit and delete them easily.

If you use the Form Navigator, it's recommended that you give your controls names (in the properties dialog box). The name appears in the navigator so, for example, if you have ten text boxes, you can tell which is which.

AOO41WG15 002a 27 iconAddField.png Add Field Add Field is only useful if you have specified a data source for the form. If no data source is specified, an empty box opens.

If you have specified a data source, Add Field opens a list of all the fields in the specified table, which you can then drag and drop onto the page. The fields are placed on the page with the name of the field before them.
This is a quick and easy way to create a form from a data source.

AOO41WG15 002a 28 iconActivationOrder.png Activation Order Allows you to specify the order in which focus shifts between controls. You can test the order by leaving design mode and using  Tab ⇆  to switch between the controls.
AOO41WG15 002a 29 iconOpenInDesignMode.png Open in Design Mode Opens the current form in design mode (to edit the form rather than entering data into it).
AOO41WG15 002a 30 iconAutoContrFocus.png Automatic Control Focus If activated, focus is set to the first form control.
AOO41WG15 002a 31 iconPositionAndSize.png Position and Size Launches the Position and Size dialog box, allowing you to specify both by typing in precise values, rather than dragging the control. You can also lock the size or position, so they do not get changed accidentally. For some controls, you can rotate and set the slant and corner radius.
AOO41WG15 002a 32 iconChangeAnchor.png Change Anchor Just as with a frame, any form control can be anchored to page, paragraph, or character and also anchored as a character (meaning that it behaves like any other character on the page).
AOO41WG15 002a 33 iconAlignment.png Alignment The Alignment button is disabled unless the control is anchored as a character. You can align a control in different ways, for example so the top of the control lines up with the top of the text or the bottom lines up with the bottom of the text.
AOO41WG15 002a 34 iconDisplayGrid.png Display Grid Displays a grid of dots on the page, to help you line up controls.
AOO41WG15 002a 35 iconSnapToGrid.png Snap to Grid When a control is brought close to a grid point or line, it will snap to the grid. This makes it is easier to line up controls.
AOO41WG15 002a 36 iconGuidesWhenMoving.png Guides when Moving When a control is being moved, lines extend from the control horizontally and vertically to help you position it accurately.

Personal tools