Difference between revisions of "Standard tab"

From Lazarus wiki
Jump to navigationJump to search
(Better description for TToggleBox)
(19 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 
{{Standard_tab}}
 
{{Standard_tab}}
  
See also [[Lazarus Tutorial#The Component Palette | Lazarus Tutorial - The Component Palette]]
+
The '''Standard tab''' on the [[Component Palette]] lists elementary components for use on a form.
  
Component Palette Standard tab
+
[[Image:Component_Palette_Standard.png|size="100%"]]
[[Image:Component_Palette_Standart.png]]
 
  
== [[doc:lcl/menus/tmainmenu.html|TMainMenu]] ==
+
{| class="wikitable sortable"
 
+
|-
[[Image:tmainmenu.png]]  
+
! Icon !! Component !! Description !! Online Docs
 
+
|-
Usage:[[TMainMenu]]
+
| [[Image:tmainmenu.png]]   || [[TMainMenu]] || menu at the top of the form
 
+
||[http://lazarus-ccr.sourceforge.net/docs/lcl/menus/tmainmenu.html Link]
Puts a standard menu bar in the form.
+
|-
 
+
| [[Image:tpopupmenu.png]]   || [[TPopupMenu]] || context menu that may popup on predefined events, usually by a click with the right mouse button
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.
+
||[http://lazarus-ccr.sourceforge.net/docs/lcl/menus/tpopupmenu.html Link]
 
+
|-
To see the [[IDE_Window:_Menu_Editor|Menu Editor]], right-click or double-click on the Main Menu icon on your Form.
+
| [[Image:tbutton.png]]     || [[TButton]]   || displays a button with a caption.
 
+
||[http://lazarus-ccr.sourceforge.net/docs/lcl/stdctrls/tbutton.html Link]  
== [[doc:lcl/menus/tpopupmenu.html|TPopupMenu]] ==
+
|-
 
+
| [[Image:tlabel.png]]       || [[TLabel]]     || descriptive text field, not editable
[[Image:tpopupmenu.png]]  
+
||[http://lazarus-ccr.sourceforge.net/docs/lcl/stdctrls/tlabel.html Link]  
 
+
|-
Usage:[[TPopupMenu]]
+
| [[Image:tedit.png]]       || [[TEdit]]     || single-line text edit field
 
+
||[http://lazarus-ccr.sourceforge.net/docs/lcl/stdctrls/tedit.html Link]
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.
+
|-
 
+
| [[Image:tmemo.png]]       || [[TMemo]]     || multi-line text edit field
== [[doc:lcl/stdctrls/tbutton.html|TButton]] ==
+
||[http://lazarus-ccr.sourceforge.net/docs/lcl/stdctrls/tmemo.html Link]
 
+
|-
[[Image:tbutton.png]]  
+
| [[Image:ttogglebox.png]]   || [[TToggleBox]]   || two-state labeled button. Similar to [[TButton]], but stays pressed after the click and is released by the next click.
 
+
||[http://lazarus-ccr.sourceforge.net/docs/lcl/stdctrls/ttogglebox.html Link]
Usage:[[TButton]]
+
|-
 
+
| [[Image:tcheckbox.png]]   || [[TCheckBox]]   || ON/OFF button indicating the ON state by means of a checkmark
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.
+
||[http://lazarus-ccr.sourceforge.net/docs/lcl/stdctrls/tcheckbox.html Link]  
 
+
|-
== [[doc:lcl/stdctrls/tlabel.html|TLabel]] ==
+
| [[Image:tradiobutton.png]] || [[TRadioButton]] || ON/OFF button to be used in conjunction with other TRadioButtons such that only one of them can be ON.
 
+
||[http://lazarus-ccr.sourceforge.net/docs/lcl/stdctrls/tradiobutton.html Link]  
[[Image:tlabel.png]]  
+
|-
 
+
| [[Image:tlistbox.png]]     || [[TListBox]]     || shows a list of strings from which the user can make a selection
Usage:[[TLabel]]
+
||[http://lazarus-ccr.sourceforge.net/docs/lcl/stdctrls/tlistbox.html Link]
 
+
|-
Puts a brief text label on the Form near any object that needs to be identified.
+
| [[Image:tcombobox.png]]   || [[TComboBox]]   || combination of an edit field with a connected drop down list to choose from.
 
+
||[http://lazarus-ccr.sourceforge.net/docs/lcl/stdctrls/tcombobox.html Link]
== [[doc:lcl/stdctrls/tedit.html|TEdit]] ==
+
|-
 
+
| [[Image:tscrollbar.png]]   || [[TScrollBar]]   || allows the user to scroll the content of an associated control by moving an slider.  
[[Image:tedit.png]]  
+
||[http://lazarus-ccr.sourceforge.net/docs/lcl/stdctrls/tscrollbar.html Link]
 
+
|-
Usage:[[TEdit]]
+
| [[Image:tgroupbox.png]]   || [[TGroupBox]]   || container that allows several objects to be grouped physically and conceptually
 
+
||[http://lazarus-ccr.sourceforge.net/docs/lcl/stdctrls/tgroupbox.html Link]
For display or user-entry of a single line of text.
+
|-
 
+
| [[Image:tradiogroup.png]] || [[TRadioGroup]] || group of related but mutually exclusive TRadioButtons, requiring the user to select one of a set of alternatives. It's like a TGroupBox with integrated TRadioButtons
== [[doc:lcl/stdctrls/tmemo.html|TMemo]] ==
+
||[http://lazarus-ccr.sourceforge.net/docs/lcl/extctrls/tradiogroup.html Link]  
 
+
|-
[[Image:tmemo.png]]  
+
| [[Image:tcheckgroup.png]] || [[TCheckGroup]] || group of TCheckBox items physically and logically grouped together on a container component.
 
+
||[http://lazarus-ccr.sourceforge.net/docs/lcl/extctrls/tcheckgroup.html Link]
Usage:[[TMemo]]
+
|-
 
+
| [[Image:tpanel.png]]       || [[TPanel]]       || visible container for other components  
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.
+
||[http://lazarus-ccr.sourceforge.net/docs/lcl/extctrls/tpanel.html Link]
 
+
|-
== [[doc:lcl/stdctrls/ttogglebox.html|TToggleBox]] ==
+
| [[Image:tframe.png]]      || [[TFrame]]       || container for components that can be embedded into forms or other frames
 
+
||[http://lazarus-ccr.sourceforge.net/docs/lcl/actnlist/tframe.html Link]  
[[Image:ttogglebox.png]]  
+
|-
 
+
| [[Image:tactionlist.png]] || [[TActionList]] || list of [[TAction]]s to centralize menu/mouse/keyboard handling
Usage:[[TToggleBox]]
+
||[http://lazarus-ccr.sourceforge.net/docs/lcl/actnlist/tactionlist.html Link]
 
+
|}
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
 
 
 
== [[doc:lcl/stdctrls/tcheckbox.html|TCheckBox]] ==
 
 
 
[[Image: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.
 
 
 
== [[doc:lcl/stdctrls/tradiobutton.html|TRadioButton]] ==
 
 
 
[[Image: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
 
 
 
== [[doc:lcl/stdctrls/tlistbox.html|TListBox]] ==
 
 
 
[[Image: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.
 
 
 
== [[doc:lcl/stdctrls/tcombobox.html|TComboBox]] ==
 
 
 
[[Image: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.
 
 
 
== [[doc:lcl/stdctrls/tscrollbar.html|TScrollBar]] ==
 
 
 
[[Image: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.
 
 
 
== [[doc:lcl/stdctrls/tgroupbox.html|TGroupBox]] ==
 
 
 
[[Image:tgroupbox.png]]  
 
 
 
Usage:[[TGroupBox]]
 
 
 
A presentational container that allows a number of objects or controls to be grouped physically and conceptually on the form.
 
 
 
== [[doc:lcl/stdctrls/tstatictext.html|TStaticText]] ==
 
 
 
[[Image: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
 
 
 
== [[doc:lcl/extctrls/tradiogroup.html|TRadioGroup]] ==
 
 
 
[[Image: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.
 
 
 
== [[doc:lcl/extctrls/tcheckgroup.html|TCheckGroup]] ==
 
 
 
[[Image: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.
 
 
 
== [[doc:lcl/extctrls/tpanel.html|TPanel]] ==
 
 
 
[[Image: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 [[Frames|frame]] is a container for other components. Frames can be nested within forms or other frames.
 
 
 
 
 
== [[doc:lcl/actnlist/tactionlist.html|TActionList]] ==
 
 
 
[[Image: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 ==
 
== See also ==
 +
* [http://lazarus-ccr.sourceforge.net/docs/lcl/stdctrls/index-4.html stdctrls doc]
  
* [[Additional tab]]
+
{{NavComponentPalette}}
* [[Common Controls tab]]
 
* [[Dialogs tab]]
 
 
 
[[Category:Lazarus]]
 

Revision as of 14:38, 12 September 2018

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

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

size="100%"

Icon Component Description Online Docs
tmainmenu.png TMainMenu menu at the top of the form Link
tpopupmenu.png TPopupMenu context menu that may popup on predefined events, usually by a click with the right mouse button Link
tbutton.png TButton displays a button with a caption. Link
tlabel.png TLabel descriptive text field, not editable Link
tedit.png TEdit single-line text edit field Link
tmemo.png TMemo multi-line text edit field Link
ttogglebox.png TToggleBox two-state labeled button. Similar to TButton, but stays pressed after the click and is released by the next click. Link
tcheckbox.png TCheckBox ON/OFF button indicating the ON state by means of a checkmark Link
tradiobutton.png TRadioButton ON/OFF button to be used in conjunction with other TRadioButtons such that only one of them can be ON. Link
tlistbox.png TListBox shows a list of strings from which the user can make a selection Link
tcombobox.png TComboBox combination of an edit field with a connected drop down list to choose from. Link
tscrollbar.png TScrollBar allows the user to scroll the content of an associated control by moving an slider. Link
tgroupbox.png TGroupBox container that allows several objects to be grouped physically and conceptually Link
tradiogroup.png TRadioGroup group of related but mutually exclusive TRadioButtons, requiring the user to select one of a set of alternatives. It's like a TGroupBox with integrated TRadioButtons Link
tcheckgroup.png TCheckGroup group of TCheckBox items physically and logically grouped together on a container component. Link
tpanel.png TPanel visible container for other components Link
tframe.png TFrame container for components that can be embedded into forms or other frames Link
tactionlist.png TActionList list of TActions to centralize menu/mouse/keyboard handling Link

See also

Component Palette
Standard - Additional - Common Controls - Dialogs - Data Controls - Data Access - System - Misc - LazControls - RTTI - SQLdb - Pascal Script - SynEdit - Chart - IPro