Difference between revisions of "Standard tab"

From Lazarus wiki
Jump to navigationJump to search
(table style)
Line 5: Line 5:
 
[[Image:Component_Palette_Standard.png]]
 
[[Image:Component_Palette_Standard.png]]
  
{|
+
{| class="wikitable sortable"
 
|-
 
|-
| [[Image:tmainmenu.png]]    || [[TMainMenu]]  || Provide a menu on top of the form
+
! icon !! name !! description
 +
|-
 +
| [[Image:tmainmenu.png]]    || [[TMainMenu]]  || a menu on top of the form
 
|-
 
|-
 
| [[Image:tpopupmenu.png]]  || [[TPopupMenu]] || arranges a menu that may popup on predefined events
 
| [[Image:tpopupmenu.png]]  || [[TPopupMenu]] || arranges a menu that may popup on predefined events
Line 19: Line 21:
 
| [[Image:tmemo.png]]        || [[TMemo]]      || an area where multiline scrollable text can be displayed/edited
 
| [[Image:tmemo.png]]        || [[TMemo]]      || an area where multiline scrollable text can be displayed/edited
 
|-
 
|-
| [[Image:ttogglebox.png]]  || [[TToggleBox]]  ||
+
| [[Image:ttogglebox.png]]  || [[TToggleBox]]  || a two state labeled button that is enabled or disabled with a single click.
 
|-
 
|-
 
| [[Image:tcheckbox.png]]    || [[TCheckBox]]    || an active checkbox field
 
| [[Image:tcheckbox.png]]    || [[TCheckBox]]    || an active checkbox field
Line 25: Line 27:
 
| [[Image:tradiobutton.png]] || [[TRadioButton]] || a radio-button field to be used in conjunction with other TRadioButtons
 
| [[Image:tradiobutton.png]] || [[TRadioButton]] || a radio-button field to be used in conjunction with other TRadioButtons
 
|-
 
|-
| [[Image:tlistbox.png]]    || [[TListBox]]    ||
+
| [[Image:tlistbox.png]]    || [[TListBox]]    || shows a list of strings where user can make a selection from
 
|-
 
|-
| [[Image:tcombobox.png]]    || [[TComboBox]]    ||
+
| [[Image:tcombobox.png]]    || [[TComboBox]]    || a combination of an edit field with a connected drop down list to choose from.
 
|-
 
|-
| [[Image:tscrollbar.png]]  || [[TScrollBar]]  ||
+
| [[Image:tscrollbar.png]]  || [[TScrollBar]]  || allows the user to scroll the content of an associated control by moving an slider.
 
|-
 
|-
| [[Image:tgroupbox.png]]    || [[TGroupBox]]    ||
+
| [[Image:tgroupbox.png]]    || [[TGroupBox]]    || a container that allows a number of objects to be grouped physically and conceptually on a form
 
|-
 
|-
| [[Image:tradiogroup.png]]  || [[TRadioGroup]]  ||
+
| [[Image:tradiogroup.png]]  || [[TRadioGroup]]  || a 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
 
|-
 
|-
| [[Image:tcheckgroup.png]]  || [[TCheckGroup]]  ||
+
| [[Image:tcheckgroup.png]]  || [[TCheckGroup]]  || a group of TCheckBox items physically and logically grouped together on a container component.
 
|-
 
|-
| [[Image:tpanel.png]]      || [[TPanel]]      ||
+
| [[Image:tpanel.png]]      || [[TPanel]]      || a visible container for other components
 
|-
 
|-
| [[Image:tframe.png]]      || [[TFrame]]      ||
+
| [[Image:tframe.png]]      || [[TFrame]]      || a container for components that can be embedded into forms or other frames
 
|-
 
|-
| [[Image:tactionlist.png]]  || [[TActionList]]  ||
+
| [[Image:tactionlist.png]]  || [[TActionList]]  || a list of [[TAction]]s to centralize menu/mouse/keyboard handling
 
|}
 
|}
 
== [[doc:lcl/menus/tmainmenu.html|TMainMenu]] ==
 
[[Image: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 Palette]] 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 [[IDE_Window:_Menu_Editor|Menu Editor]], right-click or double-click on the Main Menu icon on your Form.
 
 
== [[doc:lcl/menus/tpopupmenu.html|TPopupMenu]] ==
 
 
[[Image: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.
 
 
== [[doc:lcl/stdctrls/tbutton.html|TButton]] ==
 
 
[[Image: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.
 
 
== [[doc:lcl/stdctrls/tlabel.html|TLabel]] ==
 
 
[[Image:tlabel.png]]
 
 
Usage:[[TLabel]]
 
 
Puts a brief text label on the Form near any object that needs to be identified.
 
 
== [[doc:lcl/stdctrls/tedit.html|TEdit]] ==
 
 
[[Image:tedit.png]]
 
 
Usage:[[TEdit]]
 
 
For display or user-entry of a single line of text.
 
 
== [[doc:lcl/stdctrls/tmemo.html|TMemo]] ==
 
 
[[Image: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.
 
 
== [[doc:lcl/stdctrls/ttogglebox.html|TToggleBox]] ==
 
 
[[Image: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
 
 
== [[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.
 
  
 
{{NavComponentPalette}}
 
{{NavComponentPalette}}
  
 
[[Category:Component Palette]]
 
[[Category:Component Palette]]

Revision as of 10:20, 2 September 2016

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.

Component Palette Standard.png

icon name description
tmainmenu.png TMainMenu a menu on top of the form
tpopupmenu.png TPopupMenu arranges a menu that may popup on predefined events
tbutton.png TButton displays a (text) button
tlabel.png TLabel displays a label
tedit.png TEdit (text) edit field
tmemo.png TMemo an area where multiline scrollable text can be displayed/edited
ttogglebox.png TToggleBox a two state labeled button that is enabled or disabled with a single click.
tcheckbox.png TCheckBox an active checkbox field
tradiobutton.png TRadioButton a radio-button field to be used in conjunction with other TRadioButtons
tlistbox.png TListBox shows a list of strings where user can make a selection from
tcombobox.png TComboBox a combination of an edit field with a connected drop down list to choose from.
tscrollbar.png TScrollBar allows the user to scroll the content of an associated control by moving an slider.
tgroupbox.png TGroupBox a container that allows a number of objects to be grouped physically and conceptually on a form
tradiogroup.png TRadioGroup a 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
tcheckgroup.png TCheckGroup a group of TCheckBox items physically and logically grouped together on a container component.
tpanel.png TPanel a visible container for other components
tframe.png TFrame a container for components that can be embedded into forms or other frames
tactionlist.png TActionList a list of TActions to centralize menu/mouse/keyboard handling
Component Palette
Standard - Additional - Common Controls - Dialogs - Data Controls - Data Access - System - Misc - LazControls - RTTI - SQLdb - Pascal Script - SynEdit - Chart - IPro