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 austin...@yahoo.com wrote:
Setting FMain.Mouse and calling WAIT is useless.
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
-
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
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 actualSUM
Application.Busy = 0
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
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 austin...@yahoo.com wrote:
Setting FMain.Mouse and calling WAIT is useless.
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 command TO
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.Busy = 1
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
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
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
11 matches
Mail list logo