comp.lang.ada
 help / color / mirror / Atom feed
From: "Per Sandbergs" <prsa@cntw.com>
Subject: GtkAda and tasking how to?.
Date: Sun, 6 May 2001 09:48:43 +0200
Date: 2001-05-06T09:48:43+02:00	[thread overview]
Message-ID: <Gn7J6.45$yj1.1104@news3.global-ip.net> (raw)

Colud somone phelp me with the folowing issue concering GTKAda and tasking.
What i want to to is basiclty the folowing:

Create a GUI in GtkAda containig a Text box.and som other widgets running as
the one Ada-task.
I am running
    Win NT4/2K
    GNAT 3.14a
    GTKAda 1.3.11
-------------------------------------------------------------------
with all nececarry units;
procedure main is
  task type Start_Task_type is
  end tart_Task_type;
   type Start_Task_Type_ref is access Start_Task_Type;

task body Start_Task_type is
begin
    while more_work_to_be_done loop
        do_some_work;
        "Update the GUI with text and status":
    end loop;
end;

begin
   declare
      Server : Start_Task_Type_Ref;
   begin
      Gtk.Main.Set_Locale;
      Gtk.Main.Init;
      Gtk_New (Server_Main);
      Show_All (Server_Main);
      Gdk.Threads.Enter;
      Server := new Start_Task_Type;
      Gtk.Main.Main;
      Gdk.Threads.Leave;
   end;
end Main;
----------------------------------------------------------------






             reply	other threads:[~2001-05-06  7:48 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-05-06  7:48 Per Sandbergs [this message]
2001-05-06 10:40 ` GtkAda and tasking how to? Preben Randhol
2001-05-07  5:34   ` Per Sandbergs
2001-05-07 10:07     ` Preben Randhol
replies disabled

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