🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.lang.delphi
Article #334861

Re: Przeciazanie metod

#334861
From: aaaa
Date: Fri, 20 Jan 2012 17:04
20 lines
1664 bytes
>> Wczytuje sobie obrazek w moim formacie (TMojImage dziedzidzacy po
>> TBitmap) do TPicture.
>> Potem chce go zapisac. Odpalana jest metoda Assign.
>> Dlaczego ponizsze odpala metode SaveToFile z TMojImage a nie z
>> oryginalnego TBitmap?
>>
>> procedure TMojImage.Assign(Source: TPersistent);
>> begin
>> TBitmap(Graphics.TPicture(Source).Bitmap).SaveToFile('aaaaaaaaaa.bmp');
>> end;
>>
>> Jak wymusic odpalenie SaveToFile z TBitmap?
>>
>
> A o słowie kluczowym inherited Pan słyszał ?

Ale inherited wywoła procedurę rodzica, a mi chodzi o procedurę dziadka.

-- 
A 
Technical Details
Message-ID: <4f199e81$0$1264$65785112@news.neostrada.pl>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!agh.edu.pl!news.agh.edu.pl!newsfeed2.atman.pl!newsfeed.atman.pl!newsfeed.neostrada.pl!unt-exc-02.news.neostrada.pl!unt-spo-b-01.news.neostrada.pl!news.neostrada.pl.POSTED!not-for-mail
References: <4f187072$0$1266$65785112@news.neostrada.pl> <4f195675$0$1264$65785112@news.neostrada.pl>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!agh.edu.pl!news.agh.edu.pl!newsfeed2.atman.pl!newsfeed.atman.pl!newsfeed.neostrada.pl!unt-exc-02.news.neostrada.pl!unt-spo-b-01.news.neostrada.pl!news.neostrada.pl.POSTED!not-for-mail
From: "aaaa" <aaaa@aaaaaaaaaaaaaaaaaaa.com>
Newsgroups: pl.comp.lang.delphi
References: <4f187072$0$1266$65785112@news.neostrada.pl> <4f195675$0$1264$65785112@news.neostrada.pl>
Subject: Re: Przeciazanie metod
Date: Fri, 20 Jan 2012 18:04:06 +0100
MIME-Version: 1.0
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.5931
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6109
X-Antivirus: avast! (VPS 120120-0, 2012-01-20), Outbound message
X-Antivirus-Status: Clean
Lines: 21
Message-ID: <4f199e81$0$1264$65785112@news.neostrada.pl>
Organization: Telekomunikacja Polska
NNTP-Posting-Host: 83.9.48.201
X-Trace: 1327079041 unt-rea-a-02.news.neostrada.pl 1264 83.9.48.201:2719
X-Complaints-To: abuse@news.neostrada.pl
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit