TGraphicControl/fi
TGraphicControl on perusluokka kevyille komponenteille, kuten TBevel.
Se tukee vain yksinkertaisia kevyitä säätimiä, jotka eivät vaadi näppäimistön tai muiden hallintalaitteiden tukea.
Nämä kevyet komponentit eivät peitä varsinaisia GUI-widgetejä ja ne käyttävät vähemmän resursseja kuin TWinControlin perustuvat kontrollit.
TGraphicControl tarjoaa ominaisuustyökaluna pinnan (Canvas), virtuaalisen Paint-metodin ja OnPaint-käsittelijän piirtämiseen, jota kutsutaan kun vastaanotetaan vanhemman konrollin paint-pyyntö.
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.
Jos halutaan ottaa vastaan näppäimistöltä syötettä tai tukea lapsikontrolleja niin tämän sijasta käytetään TCustomControl-luokkaa.
Tärkeimmät ominaisuudet:
procedure Paint;
property OnPaint: TNotifyEvent;
property Canvas: TCanvas;Katso myös
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.
Talk about this page
Nobody has opened a bench for this page yet. Sign in to open one.
