Sign in Join
Wiki copytemporary

TGraphicControl/fi: what changed

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

OldNewLine
11**TGraphicControl** on perusluokka *kevyille* komponenteille, kuten [[TBevel]].
22
33Se tukee vain yksinkertaisia ​​kevyitä säätimiä, jotka eivät vaadi näppäimistön tai muiden hallintalaitteiden tukea.
44
55Nämä kevyet komponentit eivät peitä varsinaisia GUI-widgetejä ja ne käyttävät vähemmän resursseja kuin [[TWinControl|TWinControlin]] perustuvat kontrollit.
66
77TGraphicControl tarjoaa ominaisuustyökaluna pinnan (Canvas), virtuaalisen Paint-metodin ja OnPaint-käsittelijän piirtämiseen, jota kutsutaan kun vastaanotetaan vanhemman konrollin paint-pyyntö.
88
99Ohitamalla (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.
1010
1111Jos halutaan ottaa vastaan ​​näppäimistöltä syötettä tai tukea lapsikontrolleja niin tämän sijasta käytetään [[TCustomControl]]-luokkaa.
1212
1313Tärkeimmät ominaisuudet:
1414
15-` `[[procedure Paint]]`;`\
16-` `[[property OnPaint]]`: `[[TNotifyEvent]]`; `\
17-` `[[property Canvas]]`: `[[TCanvas]]`;`
15+``` pascal
16+ procedure Paint;
17+ property OnPaint: TNotifyEvent;
18+ property Canvas: TCanvas;
19+```
1820
1921## Katso myös
2022
2123- [[doc:lcl/controls/tgraphiccontrol.html|TGraphicControl doc]]
2224
2325---
2426*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