comp.lang.ada
 help / color / mirror / Atom feed
* gtkada problem
@ 2003-01-07 11:45 Evangelista Sami
  2003-01-07 18:46 ` Stephen Leake
  0 siblings, 1 reply; 17+ messages in thread
From: Evangelista Sami @ 2003-01-07 11:45 UTC (permalink / raw)


Hello everybody

i have a small problem with gtkada:
in the application i am implementing, a long calculus sometimes occur.
during this one, i want to put some informations in the status bar to
inform user.
but theses messages appear only after the calculus is done. so is
there a way to force the drawing of theses messages?
my code looks like this :
-----------------------------------------------
Pop(Win.Status_Bar_Bar, 1);
Mid := Push(Win.Status_Bar_Bar, 1, "Translating");
Translate;
Pop(Win.Status_Bar_Bar, 1);
Mid := Push(Win.Status_Bar_Bar, 1, "Analyzing");
Analyze;
Pop(Win.Status_Bar_Bar, 1);
Mid := Push(Win.Status_Bar_Bar, 1, "Finalizing");
Finalize;
-----------------------------------------------
the "Translating" and "Analyzing" messages never appear on the status
bar

am i clear?

thanks for any response

Sami Evangelista
evangeli@cnam.fr



^ permalink raw reply	[flat|nested] 17+ messages in thread
* GtkAda Problem
@ 2004-07-17 16:05 Oliver Doerler
  2004-07-17 17:38 ` Björn Persson
                   ` (2 more replies)
  0 siblings, 3 replies; 17+ messages in thread
From: Oliver Doerler @ 2004-07-17 16:05 UTC (permalink / raw)


Hi!

Problem with GtkAda in Gtk.Main...

Def. from http://libre.act-europe.fr/GtkAda/docs/gtkada_rm_102.html#SEC444
---------------------------------
type Idle_Callback is access function return Boolean;

function Timeout_Add
   (Interval       : in     Guint32;
   Func            :        Timeout_Callback)
return Timeout_Handler_Id;
---------------------------------

My Code:
---------------------------------
function fidle return boolean is
begin
   Gtk.Fixed.Move (Container, Lkw, 40, 40);

   return true;
end fidle;

fidle_id := Gtk.Main.Idle_Add (fidle'access);
----------------------------------

gnatmake Message:
=>subprogram must not be deeper than access type



I can't see my misstake... help?! :)

Thanks!
Oliver Doerler



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

end of thread, other threads:[~2004-07-21 20:15 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-01-07 11:45 gtkada problem Evangelista Sami
2003-01-07 18:46 ` Stephen Leake
  -- strict thread matches above, loose matches on Subject: below --
2004-07-17 16:05 GtkAda Problem Oliver Doerler
2004-07-17 17:38 ` Björn Persson
2004-07-17 20:00   ` Nick Roberts
2004-07-17 22:40     ` Jeffrey Carter
2004-07-18  0:01       ` Nick Roberts
2004-07-18 11:29         ` Simon Wright
2004-07-18 14:17           ` Nick Roberts
2004-07-19 19:55             ` Warren W. Gay VE3WWG
2004-07-19 21:58               ` Ludovic Brenta
2004-07-19 22:59                 ` Ed Falis
2004-07-20 16:58                 ` Warren W. Gay VE3WWG
2004-07-20 18:14               ` Nick Roberts
2004-07-19 23:55         ` Randy Brukardt
2004-07-17 17:44 ` Nick Roberts
2004-07-21 20:15 ` Oliver Doerler

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