Standard tab/fi

From Free Pascal wiki
Revision as of 12:55, 24 May 2016 by Djzepi (talk | contribs) (Created page with "{{Standard_tab}} Katso myös Lazarus Tutorial - The Component Palette Komponenttipaletin Standard tab Image:Component_Palette...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

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

Katso myös Lazarus Tutorial - The Component Palette

Komponenttipaletin Standard tab

Component Palette Standart.png

TMainMenu

tmainmenu.png

Tuo päävalikon lomakkeelle.

Päävalikko on näkymätön komponentti: toisin sanoen jos sen kuvake on valittu komponenttipaletista ja laitettu lomakkeelle, se ei näy ajon aikana. Sen sijaan Valikkorivi, jonka rakenne on määritelty valikkomuokkaimessa ilmestyy.

valikkomuokkain avautuu hiiren kakkospainikkeella tai kaksoisklikkaamalla päävalikon kuvaketta lomakkeella.


Käyttöesimerkit:TMainMenu


TPopupMenu

tpopupmenu.png

Asettaa ponnahdusvalikon lomakkeelle. Tämä luo sellaisen valikon, joka näkyy, kun käyttäjä hiiren oikealla painikkeella klikkaa objektia. Valikon sisällön muuttaminen onnistuu tuplaklikkaamalla kuvaketta lomakkeella.

Käyttöesimerkit:TPopupMenu


TButton

tbutton.png


Asettaa painikkeen lomakkeelle. Kun käyttäjä painaa tätä painiketta ja niin ohjelma kutsuu onClick tapahtumakäsittelijää (lomakkeen luokan aliohjelmaa) sen omassa ohjelmassa. Ohjelmoijan tulee määritellä mitä toimenpiteitä tämä tekee.

Käyttöesimerkit:TButton


TLabel

tlabel.png

Asettaa lyhyen tekstin lomakkeelle.

Käyttöesimerkit:TLabel


TEdit

tedit.png

Näyttää yhden tekstirivin jota ohjelman käyttäjä voi muuttaa.

Käyttöesimerkit:TEdit


TMemo

tmemo.png


Memot ovat kohtia, joissa voi syöttää useita riviä tekstiä. Käytä tätä, jos haluat sallia käyttäjälle syöttää viestejä tai muistiinpanoja jne

Käyttöesimerkit:TMemo

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

CheckBox on pieni laatikko, joka voi sisältää valintamerkin, joka ilmoittaa, että se on valittu esim. hiiren napsautuksella. Siihen yleensä liittyy teksti, joka kuvaa mitä sillä valitaan.

Käyttöesimerkit:TCheckBox


TRadioButton

tradiobutton.png

Nappi, joka toimii niin että se pois sulkee muut valintanapit - jos yksi painike on valittuna, mikään muu ryhmän napeista ei ole valittuna.

Käyttöesimerkit:TRadioButton


TListBox

tlistbox.png

Näyttää luettelona merkkijonoja joista valinta tehdään. Luetteloa pidetään Items paikassa. Klikkaamalla kolmea pistettä (...) Items kohdan vieressä komponenttimuokkaimessa suunnittelun aikana niin se avaa merkkijonomuokkaimen jossa tekstit voidaan syöttää luettelon tai niitä voidaan muokata. Muokkain mahdollistaa myös se että ne voidaan lajitella aakkosjärjestykseen normaalissa tai päinvastaisessa järjestyksessä.

Käyttöesimerkit:TListBox


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