From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=unavailable autolearn_force=no version=3.4.4 Path: border1.nntp.dca.giganews.com!nntp.giganews.com!goblin1!goblin.stu.neva.ru!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: hreba Newsgroups: comp.lang.ada Subject: Re: GTK and tasking (GNAT) Date: Sun, 04 May 2014 19:10:16 -0300 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: individual.net 6V69Sr+3oFTa+EkrH6UdbwdZaDhKXcCvfX7uJGvppwj1A40vhp Cancel-Lock: sha1:mlO7Sxs0cwy2J1uarp+37YNYQi8= User-Agent: Mozilla/5.0 (X11; Linux i686; rv:24.0) Gecko/20100101 Thunderbird/24.5.0 In-Reply-To: Xref: number.nntp.dca.giganews.com comp.lang.ada:186228 Date: 2014-05-04T19:10:16-03:00 List-Id: On 05/03/2014 06:23 PM, Simon Wright wrote: > > I don't know how this ought to be done in Gtk, though I strongly suspect > it's not like that! However, the way to deal with the task problem would > normally be to save the values passed with the accept and deal with them > afterward: > > accept StartCounter (txtBox: Gtk.GEntry.Gtk_Entry) do > txtBoxCopy := txtBox; > end StartCounter; > -- Now the caller can carry on while we work with the passed value. > for i in 1..10 loop > Gtk.GEntry.Set_Text (txtBoxCopy, Integer'Image(i)); > Gtk.Widget.Queue_Draw (Gtk.Widget.Gtk_Widget(txtBoxCopy)); > delay 0.5; > end loop; > Read your reply again. This is the crucial hint. It works now. Thanks a lot! -- Frank Hrebabetzky +55 / 48 / 3235 1106 Florianopolis, Brazil