Re: [Gambas-user] Displaying Mouse.Wait while running a SHELL Command

2010-11-25 Thread Benoît Minisini
> I use > > INC Application.Busy > > and > > DEC Application.Busy > > in my applications on Debian Lenny (with LXDE) > and Gambas 2.21 and it works just fine. > > Regards, > Dimitris > > On Wed, Nov 24, 2010 at 9:23 PM, vikram wrote: > > > Setting FMain.Mouse and calling WAIT is useless. App

Re: [Gambas-user] Displaying Mouse.Wait while running a SHELL Command

2010-11-24 Thread Dimitris Anogiatis
I use INC Application.Busy and DEC Application.Busy in my applications on Debian Lenny (with LXDE) and Gambas 2.21 and it works just fine. Regards, Dimitris On Wed, Nov 24, 2010 at 9:23 PM, vikram wrote: > > Setting FMain.Mouse and calling WAIT is useless. Application.Busy should > > alrea

Re: [Gambas-user] Displaying Mouse.Wait while running a SHELL Command

2010-11-24 Thread vikram
> Setting FMain.Mouse and calling WAIT is useless. Application.Busy should > already set the busy cursor for every widget in the application. Otherwise > this is a bug. Application.Busy alone is not showing a busy pointer on Debian Squeeze, with Gambas 2.21. Regards, Vikram --

Re: [Gambas-user] Displaying Mouse.Wait while running a SHELL Command

2010-11-24 Thread Ron
On 24-11-2010 12:09, Benoît Minisini wrote: >> Hi, >> >> Heres how i "fixed" it, hope it is the right way to display a "wait" cursor >> while a process executes. >> >> - >> FMain.Mouse = Mouse.Wait >> WAIT >> Application.Busy = 1 >> >> SHELL "sha512sum lenny.iso" TO actualSU

Re: [Gambas-user] Displaying Mouse.Wait while running a SHELL Command

2010-11-24 Thread Benoît Minisini
> Hi, > > Heres how i "fixed" it, hope it is the right way to display a "wait" cursor > while a process executes. > > - > FMain.Mouse = Mouse.Wait > WAIT > Application.Busy = 1 > > SHELL "sha512sum lenny.iso" TO actualSUM > > Application.Busy = 0 > FMain.Mouse = Mouse.De

Re: [Gambas-user] Displaying Mouse.Wait while running a SHELL Command

2010-11-24 Thread vikram
Hi, Heres how i "fixed" it, hope it is the right way to display a "wait" cursor while a process executes. - FMain.Mouse = Mouse.Wait WAIT Application.Busy = 1 SHELL "sha512sum lenny.iso" TO actualSUM Application.Busy = 0 FMain.Mouse = Mouse.Default

Re: [Gambas-user] Displaying Mouse.Wait while running a SHELL Command

2010-11-23 Thread vikram
Hi, heres a sample program. iam running sha512sum on file which are 100MB+ in size, its takes around 5 seconds. right now the button stays depressed until the hash has been displayed. regards, Vikram GenerateSHA512.tar.gz Description: GNU Zip compressed data

Re: [Gambas-user] Displaying Mouse.Wait while running a SHELL Command

2010-11-23 Thread Rolf-Werner Eilert
Am 23.11.2010 12:40, schrieb vikram: >> You can use the Wait keyword, see http://gambasdoc.org/help/lang/shell > >> Something like: >> SHELL command Wait TO checksum > > Thanks for the quick reply. Adding WAIT to the SHELL command is not causing > the mouse cursor to change to Mouse.Wait :( > > Re

Re: [Gambas-user] Displaying Mouse.Wait while running a SHELL Command

2010-11-23 Thread Ron
Strange, this simply works here: ' Gambas class file PUBLIC SUB Form_Open() END PUBLIC SUB Form_Activate() DIM Checksum AS String ME.Mouse = Mouse.Wait Application.Busy = TRUE SHELL "ls -lR" TO checksum Application.Busy = FALSE ME.Mouse = Mouse.DEFAULT 'PRINT checksum

Re: [Gambas-user] Displaying Mouse.Wait while running a SHELL Command

2010-11-23 Thread vikram
>You can use the Wait keyword, see http://gambasdoc.org/help/lang/shell >Something like: >SHELL command Wait TO checksum Thanks for the quick reply. Adding WAIT to the SHELL command is not causing the mouse cursor to change to Mouse.Wait :( Regards, Vikram

Re: [Gambas-user] Displaying Mouse.Wait while running a SHELL Command

2010-11-23 Thread Laurent Carlier
Le mardi 23 novembre 2010 11:45:47, vikram a écrit : > Hi, > > How do i display a "wait" cursor while a process is running? I have tried > using > > ME.mouse = Mouse.Wait > > without much luck. > > Heres a code snippet: > > ME.mouse = Mouse.Wait > Application.Bu

[Gambas-user] Displaying Mouse.Wait while running a SHELL Command

2010-11-23 Thread vikram
Hi, How do i display a "wait" cursor while a process is running? I have tried using     ME.mouse = Mouse.Wait without much luck. Heres a code snippet:   ME.mouse = Mouse.Wait   Application.Busy = 1   command = "sha512sum " & filePath & "|awk '{print $1}' "   SHELL com