Re: refresh+update on macosx

2014-11-12 Thread Steve Cookson
Hi Eric, On 11/11/14 21:18, Erik Colson wrote: Steve Cookson writes: What is your requirement? For this I don't want to let the user interact. I wan't the user to see what's happening by telling him in a log window (TextCtrl). So I don't want any user interaction to be possible. It sounds awk

Re: refresh+update on macosx

2014-11-11 Thread Erik Colson
Steve Cookson writes: > What is your requirement? For this I don't want to let the user interact. I wan't the user to see what's happening by telling him in a log window (TextCtrl). So I don't want any user interaction to be possible. It sounds awkward and very user unfriendly but this really is

Re: refresh+update on macosx

2014-11-11 Thread Steve Cookson
Hi Eric, > Other ideas ? Well I don't know what your requirement is, but I have quite a bit of background processing going on (eg playing a video in the foreground while taking photos and clips in the background, also any warnings are emailed electronically to me, any emails sent by the user

Re: refresh+update on macosx

2014-11-11 Thread Steve Cookson
Hi Eric, Firstly, I rather like the ->{TERM} idea of your application. The concept has a sort of retro feel to it. Very cool. I might try to build something using this idea. (I'd really like Linux smartphone with a just a command prompt on it! I'd type "call somebody" and it would dial the

Re: refresh+update on macosx

2014-11-11 Thread Erik Colson
Erik Colson writes: > Steve Cookson - gmail writes: > >> I had a similar case with updating a progress bar during a database >> update. The answer is $app->Yield(); > > Hi Steve, > > That does the trick. Thanks ! Playing a little more with Yield. It seems that Yield allows the user to click on

Re: refresh+update on macosx

2014-11-11 Thread Erik Colson
Steve Cookson writes: > You should probably do a > > $addTxtBtn->Disable(); > > after the click. yep, but in the real app there are lots of things I'd need to disable :( >> However, I figure in this usage I'd better split my routine and add the >> loop as separate calls to a specific funct

Re: refresh+update on macosx

2014-11-10 Thread Erik Colson
Steve Cookson - gmail writes: > I had a similar case with updating a progress bar during a database > update. The answer is $app->Yield(); Hi Steve, That does the trick. Thanks ! -- erik colson

Re: refresh+update on macosx

2014-11-10 Thread Steve Cookson - gmail
Hi Eric, I had a similar case with updating a progress bar during a database update. The answer is $app->Yield(); In your case if you make the $app variable global and add $app->Yield() to the loop, it works (at least on Linux): sub OnInit { our $app = shift; . . . . . sub addTxt {

refresh+update on macosx

2014-11-10 Thread Erik Colson
Hi, The code in the attached file is working nicely on Windows XP. i.e. when clicking on 'add text' it adds a line to the textctrl each second. On Macosx the same code only shows the added 30 lines once execution hits the event loop. Any idea why this happens ? best -- erik colson ww.pl Descri