Standard tab

From Lazarus wiki
Jump to navigationJump to search

English (en) español (es) suomi (fi) français (fr) 日本語 (ja) polski (pl) русский (ru)

The Standard tab on the Component Palette list elementary components for use on a form.

Component Palette Standard.png

TMainMenu

tmainmenu.png

Usage:TMainMenu

Puts a standard menu bar in the form.

Main Menu is a non-visible component : that is, if the icon is selected from the Component Pallete and placed on the Form, it will not appear at Run-time. Instead, a Menu bar with a structure defined by the Menu Editor will appear.

To see the Menu Editor, right-click or double-click on the Main Menu icon on your Form.

TPopupMenu

tpopupmenu.png

Usage:TPopupMenu

Puts a popup menu in the form. This creates a menu that appears when the user right clicks on an object. To change the contents double-click on the icon on the form.

TButton

tbutton.png

Usage:TButton

Puts a button in the form. The user will be able to 'click' on this button and call the onClick event handler (form class method) in your program. The programmer should supply this method to define the action to be taken.

TLabel

tlabel.png

Usage:TLabel

Puts a brief text label on the Form near any object that needs to be identified.

TEdit

tedit.png

Usage:TEdit

For display or user-entry of a single line of text.

TMemo

tmemo.png

Usage:TMemo

Memos are places where you can put multiple lines of text. Use this if you want to allow your user to enter messages or notes, etc.

TToggleBox

ttogglebox.png

Usage:TToggleBox

Puts togglebox in the form: a labelled box capable of being checked (when it becomes recessed) or unchecked (when it is raised).

The Application Programmer is responsible for ensuring that the OnClick event handler recognises the State of the box, takes the appropriate Action and places the State into the next appropriate value

TCheckBox

tcheckbox.png

Usage:TCheckBox

CheckBox : a small box which can contain a check mark to indicate that it has been selected by a mouse click. May be associated with a Caption that describes its function.

TRadioButton

tradiobutton.png

Usage:TRadioButton

A button that works with other Radio Buttons in a mutually exclusive way - if one button is selected, none of the others in the group can be selected

TListBox

tlistbox.png

Usage:TListBox

Display a simple string list from which a choice is made

The array of strings is held in Items

Clicking on the ellipsis (...) next to the Items entry in the Object Inspector at design-time opens a string-list editor in which the individual text-strings for the list can be entered or edited. The editor also allows the entries to be sorted alphabetically in normal or reverse order.

TComboBox

tcombobox.png

Usage:TComboBox

A simple combination of Text box for free text entry, and a drop-down list allowing one of several options to be chosen.

At run-time, the entry selected from the drop-down list is used to replace any information previously found in Text.

If no value is selected from the drop-down list, the default text (if any) remains, or any information typed directly into Text will be returned.

TScrollBar

tscrollbar.png

Usage:TScrollBar

A ScrollBar can be used on forms for Text, Graphics, Volume Controls, and the like. The slider is moved via user interaction. The software detects the new position and performs some function.

TGroupBox

tgroupbox.png

Usage:TGroupBox

A presentational container that allows a number of objects or controls to be grouped physically and conceptually on the form.

TStaticText

tstatictext.png

Usage:TStaticText

A box to display a Constant Text String

Use this control to display a statement or comment that is not likely to change very often, or is not usually responsive to user actions

TRadioGroup

tradiogroup.png

Usage:TRadioGroup

A group of related but mutually exclusive radio buttons, requiring the user to select one af a set of alternatives. As one button becomes selected, the remaining buttons in the group become automatically deselected.

TCheckGroup

tcheckgroup.png

Usage:TCheckGroup

A group of Check Boxes physically and logically grouped together on a form

To edit CheckGroup contents double-click on the icon on the form. It opens a CheckGroup Editor.

TPanel

tpanel.png

Usage:TPanel

A defined rectangular area of the form into which other components can be placed to group them functionally and geographically

Any controls such as buttons or check boxes that are placed inside the panel become its children, and inherit many of its properties. If the Panel is moved, the child controls move with it. Any part of a child control that falls outside the panel becomes invisible.

TFrame

A frame is a container for other components. Frames can be nested within forms or other frames.

TActionList

tactionlist.png

Usage:TActionList

ActionList should contain a list of standard actions associated with events on a Form; it is used to centralize the implementation of user commands, and can then be linked to the appropriate button, menu or another component. This is an Object-Oriented programming strategy to reuse the code, as opposed to the Event-Oriented approach of writing (for example) an OnClick event for each component.

To edit an ActionList's contents, double-click or right-click on the icon on the form. It opens the Action List Editor.

See also