Sign in Join
Wiki copytemporary

TGraphicControl/fi: what changed

Revision 0 to 1. Removed lines have a minus sign; added lines have a plus sign.

Title: TGraphicControl/fi

OldNewLine
1+**TGraphicControl** on perusluokka *kevyille* komponenteille, kuten [[TBevel]].
2+
3+Se tukee vain yksinkertaisia ​​kevyitä säätimiä, jotka eivät vaadi näppäimistön tai muiden hallintalaitteiden tukea.
4+
5+Nämä kevyet komponentit eivät peitä varsinaisia GUI-widgetejä ja ne käyttävät vähemmän resursseja kuin [[TWinControl|TWinControlin]] perustuvat kontrollit.
6+
7+TGraphicControl tarjoaa ominaisuustyökaluna pinnan (Canvas), virtuaalisen Paint-metodin ja OnPaint-käsittelijän piirtämiseen, jota kutsutaan kun vastaanotetaan vanhemman konrollin paint-pyyntö.
8+
9+Ohitamalla (Override) Paint-metodi tai tekemällä oma OnPaint-käsittelijä ohjauksen varsinaiselle piirustukselle. Override the Paint method or supply your own OnPaint handler, to do the actual drawing of the control.
10+
11+Jos halutaan ottaa vastaan ​​näppäimistöltä syötettä tai tukea lapsikontrolleja niin tämän sijasta käytetään [[TCustomControl]]-luokkaa.
12+
13+Tärkeimmät ominaisuudet:
14+
15+` `[[procedure Paint]]`;`\
16+` `[[property OnPaint]]`: `[[TNotifyEvent]]`; `\
17+` `[[property Canvas]]`: `[[TCanvas]]`;`
18+
19+## Katso myös
20+
21+- [[doc:lcl/controls/tgraphiccontrol.html|TGraphicControl doc]]
22+
23+---
24+*From the Free Pascal wiki, page "TGraphicControl/fi", as it stood on 2020-01-20 after a change by Trev, out of the wiki's dump of 2024-05-26. Copyright stays with the author who wrote it, according to the old wiki's [[Licensing]] page. If you have concerns about this material, [message the admin](/wiki-contact).*

Back to history