TGraphicControl/fi: what changed
Revision 1 to 2. Removed lines have a minus sign; added lines have a plus sign.
| Old | New | Line | |
|---|---|---|---|
| 1 | 1 | **TGraphicControl** on perusluokka *kevyille* komponenteille, kuten [[TBevel]]. | |
| 2 | 2 | ||
| 3 | 3 | Se tukee vain yksinkertaisia kevyitä säätimiä, jotka eivät vaadi näppäimistön tai muiden hallintalaitteiden tukea. | |
| 4 | 4 | ||
| 5 | 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 | 6 | ||
| 7 | 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 | 8 | ||
| 9 | 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 | 10 | ||
| 11 | 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 | 12 | ||
| 13 | 13 | Tärkeimmät ominaisuudet: | |
| 14 | 14 | ||
| 15 | - | ||
| 16 | - | ||
| 17 | - | ||
| 15 | + | ``` pascal | |
| 16 | + | procedure Paint; | |
| 17 | + | property OnPaint: TNotifyEvent; | |
| 18 | + | property Canvas: TCanvas; | |
| 19 | + | ``` | |
| 18 | 20 | ||
| 19 | 21 | ## Katso myös | |
| 20 | 22 | ||
| 21 | 23 | - [[doc:lcl/controls/tgraphiccontrol.html|TGraphicControl doc]] | |
| 22 | 24 | ||
| 23 | 25 | --- | |
| 24 | 26 | *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).* |
