[gtkada] Scheduling Subprogram and GUI
Emmanuel Briot
briot at ACT-Europe.FR
Wed Dec 12 10:37:11 CET 2001
> I want have a subprogram paused, until the operator presses a button in the
> GUI.
You could try and play with GtkAda.Dialogs, which does exactly that. This would
probably show you how to do that...
> When the subprogram is started (via the GUI), all user interaction via
> GTKAda is suspended, until the subprogram is finished. How can I halt the
> subprogram and continue the GUI activities without finishing the subprogram.
> I tried the function Gtk.Main.Main_Iteration, but this does not seem to
> solve my problem.
The trick is start a second main loop, nested in the first one. Do not use
Gtk.Main.Main_Iteration directly.
Emmanuel
More information about the gtkada
mailing list