comp.lang.ada
 help / color / mirror / Atom feed
From: "Szymar" <szygula@szygula.prv.pl>
Subject: How to use instruction Timeout_Add??
Date: Wed, 14 Feb 2001 14:33:43 +0100
Date: 2001-02-14T13:26:43+00:00	[thread overview]
Message-ID: <96e12j$ejr$1@news.tpi.pl> (raw)

Hi.

How to use instruction Timeout_Add for such procedures:


procedure Draw_Target (Widget : access Target_Widget_Record'Class) is

Win : Gdk.Window.Gdk_Window:= Get_Window (Widget);
begin
 if Widget.Gc_In = null then
declare
Color : Gdk_Color;
begin
Color := Gdk.Color.Parse ("BLACK");
Gdk.Color.Alloc (Gtk.Widget.Get_Default_Colormap, Color);
Gdk.Gc.Gdk_New (Widget.GC_In, Win);
Gdk.Gc.Set_Foreground (Widget.GC_In, Color);
end;
end if;
Gdk.Drawable.Draw_Line(win,Widget.GC_In,50,420,770,420);
end Draw_Target;

 Gnat for Windows. I'm Student.

szygula@szygula.prv.pl







                 reply	other threads:[~2001-02-14 13:33 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox