comp.lang.ada
 help / color / mirror / Atom feed
* How to use instruction Timeout_Add??
@ 2001-02-14 13:33 Szymar
  0 siblings, 0 replies; only message in thread
From: Szymar @ 2001-02-14 13:33 UTC (permalink / 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







^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2001-02-14 13:33 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-02-14 13:33 How to use instruction Timeout_Add?? Szymar

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