Re: PaintBox image trouble
- From: "UN" <ukko_noa@xxxxxxxxxxxxxxxxxxx>
- Date: Tue, 27 Sep 2005 08:53:10 +0300
Ok, there is also a clock on the form. If I repaint the moon each minute, how should I organize it? The clock has the OnMinute event and the PaintBox the OnPaint event.
var s1, s2 :string;
(*****************************************************)
procedure TForm.FormShow(Sender: TObject);
begin
CountMoon(s1,s2);
end;
{here the OnPaint paints the image as the form is shown in the beginning}(************************************************************************)
procedure TForm.Clock1Minute(Sender: TObject; Minute: Word);
begin
CountMoon(s1, s2);
DrawMoon(s1,s2);
end;
{the PaintBox1 should be initialized here somehow}(**********************************************************)
procedure TForm.PaintBox1Paint(Sender: TObject);
begin
DrawMoon(s1,s2);
end;
.
- References:
- PaintBox image trouble
- From: UN
- Re: PaintBox image trouble
- From: Jamie
- Re: PaintBox image trouble
- From: UN
- PaintBox image trouble
- Prev by Date: Pascal Look - help you understand your pascal unit file
- Next by Date: Re: PaintBox image trouble
- Previous by thread: Re: PaintBox image trouble
- Next by thread: Re: PaintBox image trouble
- Index(es):
Relevant Pages
|