comp.lang.ada
 help / color / mirror / Atom feed
* GtkAda and tasking how to?.
@ 2001-05-06  7:48 Per Sandbergs
  2001-05-06 10:40 ` Preben Randhol
  0 siblings, 1 reply; 4+ messages in thread
From: Per Sandbergs @ 2001-05-06  7:48 UTC (permalink / 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;
----------------------------------------------------------------






^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2001-05-07 10:07 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-05-06  7:48 GtkAda and tasking how to? Per Sandbergs
2001-05-06 10:40 ` Preben Randhol
2001-05-07  5:34   ` Per Sandbergs
2001-05-07 10:07     ` Preben Randhol

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