[Gambas-user] Displaying Mouse.Wait while running a SHELL Command
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 checksum checksum = Left(checksum, Len(checksum) - 1) 'strip \n txta_checksum.Text = checksum Application.busy = 0 ME.Mouse = Mouse.DEFAULT I am using Gambas 2.21. Thanks, Vikram -- Increase Visibility of Your 3D Game App Earn a Chance To Win $500! Tap into the largest installed PC base get more eyes on your game by optimizing for Intel(R) Graphics Technology. Get started today with the Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs. http://p.sf.net/sfu/intelisp-dev2dev ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Displaying Mouse.Wait while running a SHELL Command
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 command = sha512sum filePath |awk '{print $1}' SHELL command TO checksum checksum = Left(checksum, Len(checksum) - 1) 'strip \n txta_checksum.Text = checksum Application.busy = 0 ME.Mouse = Mouse.DEFAULT I am using Gambas 2.21. Thanks, Vikram You can use the Wait keyword, see http://gambasdoc.org/help/lang/shell Something like: SHELL command Wait TO checksum ++ -- Increase Visibility of Your 3D Game App Earn a Chance To Win $500! Tap into the largest installed PC base get more eyes on your game by optimizing for Intel(R) Graphics Technology. Get started today with the Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs. http://p.sf.net/sfu/intelisp-dev2dev ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] DateBox/DateChoose - numbers on calendar all the same
Hi List ?Just my machine, but for some reason in my last update there all the days of the mont h are '31' any ideas? Richard -- Increase Visibility of Your 3D Game App Earn a Chance To Win $500! Tap into the largest installed PC base get more eyes on your game by optimizing for Intel(R) Graphics Technology. Get started today with the Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs. http://p.sf.net/sfu/intelisp-dev2dev ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Displaying Mouse.Wait while running a SHELL Command
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 -- Increase Visibility of Your 3D Game App Earn a Chance To Win $500! Tap into the largest installed PC base get more eyes on your game by optimizing for Intel(R) Graphics Technology. Get started today with the Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs. http://p.sf.net/sfu/intelisp-dev2dev ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Displaying Mouse.Wait while running a SHELL Command
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 END Gambas 2.21.x, ubuntu 10.4, gb.qt Regards, Ron_2nd. 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 -- Increase Visibility of Your 3D Game App Earn a Chance To Win $500! Tap into the largest installed PC base get more eyes on your game by optimizing for Intel(R) Graphics Technology. Get started today with the Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs. http://p.sf.net/sfu/intelisp-dev2dev ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- Increase Visibility of Your 3D Game App Earn a Chance To Win $500! Tap into the largest installed PC base get more eyes on your game by optimizing for Intel(R) Graphics Technology. Get started today with the Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs. http://p.sf.net/sfu/intelisp-dev2dev ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Displaying Mouse.Wait while running a SHELL Command
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 -- Increase Visibility of Your 3D Game App Earn a Chance To Win $500! Tap into the largest installed PC base get more eyes on your game by optimizing for Intel(R) Graphics Technology. Get started today with the Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs. http://p.sf.net/sfu/intelisp-dev2dev___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] To the wish list: FHelpBrowser
1. As I asked before, why does the HelpBrowser have to be a utility window that you can't minimize? I can't see no reason why it couldn't be a normal window that could be used much easier. Read, minimize, try, and read again... Upgrade to the latest revision, and set Use utility windows to No in the IDE option dialog. Regards, -- Benoît Minisini -- Increase Visibility of Your 3D Game App Earn a Chance To Win $500! Tap into the largest installed PC base get more eyes on your game by optimizing for Intel(R) Graphics Technology. Get started today with the Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs. http://p.sf.net/sfu/intelisp-dev2dev ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] About arrays
Hi, This is a clarification about Gambas arrays for Demosthene and all who answered him. There are two kinds of arrays in Gambas: - Normal arrays. - Embedded arrays. Fabien used the word static arrays for embedded arrays because this was the word I used first. Then I changed to embedded to avoid any confusion with the STATIC keywords, which is not related at all. Normal arrays are true Gambas objects. They have their own memory allocation, and they are destroyed when they are not referenced anymore. To declare a normal array, you can do: (1) Dim NormalArray As Type[] (2) Dim NormalArray As Type[] = [ ... ] (3) Dim NormalArray As Type[] = New Type[A, B] (4) Dim NormalArray As Type[A, B] (1) declares an object variable that can receive a reference to a array whose type is Type[]. Type can be a native datatype or a class name. Note that in Gambas 2, Type can only be a native datatype. (2) declares an object variable, and initializes it with a new array created by the [ ... ] operator. (3) declares an object variable, and initializes it with a new array hainvg the specified dimension. (4) is a shortcut to the (3) syntax. Embedded arrays are arrays that are allocated *inside* another object. They don't have a memory allocation on their own, and they are automatically freed with the object including them. Embedded arrays are always member of a class or a structure only. To declare an embedded array, you do the following: [Static] {Private|Public} EmbeddedArray[A, B] As Type There, Type is the datatype of one element of the array. There is no [] after the type, unless you want to store array references inside the array of course. Embedded arrays can be static or not, public or private. Embedded arrays are a little bit slower than normal arrays. They were created to mimic C arrays (like Gambas structures, that were created to mimic C structures), so that working with extern C functions using arrays and structures is possible. So you should not use them, unless you are working with extern functions. I hope Gambas arrays are clearer now! Regards, -- Benoît Minisini -- Increase Visibility of Your 3D Game App Earn a Chance To Win $500! Tap into the largest installed PC base get more eyes on your game by optimizing for Intel(R) Graphics Technology. Get started today with the Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs. http://p.sf.net/sfu/intelisp-dev2dev ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] To the wish list: FHelpBrowser - error
Too bad, can't update to rev 3311. It's the make / webkit error again. This time it is: Making all in webkit make[5]: Entering directory `/Platte2/Downloads/gambas3/3311/trunk/gb.qt4/src/webkit' /bin/sh ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../..-DQT_SHARED-I/usr/include/QtCore -I/usr/include/QtGui -I/usr/include/QtNetwork -I/usr/include/QtDBus -I/usr/include/QtXml -I/usr/include/QtWebKit -I../../share -I../../src/share -pipe -Wall -fno-exceptions -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os -fno-omit-frame-pointer -MT cwebview.lo -MD -MP -MF .deps/cwebview.Tpo -c -o cwebview.lo cwebview.cpp libtool: compile:g++ -DHAVE_CONFIG_H -I. -I../.. -DQT_SHARED -I/usr/include/QtCore -I/usr/include/QtGui -I/usr/include/QtNetwork -I/usr/include/QtDBus -I/usr/include/QtXml -I/usr/include/QtWebKit -I../../share-I../../src/share-pipe-Wall -fno-exceptions -Wno-unused-value-fsigned-char-fvisibility=hidden-g-Os -fno-omit-frame-pointer -MT cwebview.lo -MD -MP -MF .deps/cwebview.Tpo -c cwebview.cpp -fPIC -DPIC -o .libs/cwebview.o cwebview.cpp: In function ‘void WebView_FindText(void*, void*)’: cwebview.cpp:361: error: ‘HighlightAllOccurrences’ is not a member of ‘QWebPage’ make[5]: *** [cwebview.lo] Fehler 1 make[5]: Leaving directory `/Platte2/Downloads/gambas3/3311/trunk/gb.qt4/src/webkit' make[4]: *** [all-recursive] Fehler 1 make[4]: Leaving directory `/Platte2/Downloads/gambas3/3311/trunk/gb.qt4/src' make[3]: *** [all-recursive] Fehler 1 make[3]: Leaving directory `/Platte2/Downloads/gambas3/3311/trunk/gb.qt4' make[2]: *** [all] Fehler 2 make[2]: Leaving directory `/Platte2/Downloads/gambas3/3311/trunk/gb.qt4' make[1]: *** [all-recursive] Fehler 1 make[1]: Leaving directory `/Platte2/Downloads/gambas3/3311/trunk' make: *** [all] Fehler 2 I looked if I have an old version of qt4, but (at least in OpenSuse) there is no newer one. Regards Matti -Original-Nachricht- Subject: Re: [Gambas-user] To the wish list: FHelpBrowser Date: Tue, 23 Nov 2010 18:57:25 +0100 From: Benoît Minisini gam...@users.sourceforge.net To: mailing list for gambas users gambas-user@lists.sourceforge.net 1. As I asked before, why does the HelpBrowser have to be a utility window that you can't minimize? I can't see no reason why it couldn't be a normal window that could be used much easier. Read, minimize, try, and read again... Upgrade to the latest revision, and set Use utility windows to No in the IDE option dialog. Regards, -- Benoît Minisini -- Increase Visibility of Your 3D Game App Earn a Chance To Win $500! Tap into the largest installed PC base get more eyes on your game by optimizing for Intel(R) Graphics Technology. Get started today with the Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs. http://p.sf.net/sfu/intelisp-dev2dev ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- Increase Visibility of Your 3D Game App Earn a Chance To Win $500! Tap into the largest installed PC base get more eyes on your game by optimizing for Intel(R) Graphics Technology. Get started today with the Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs. http://p.sf.net/sfu/intelisp-dev2dev ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] About arrays
Thanks Benoît, i understood the array subject well. But one note. i cant do in Gambas2-2.21 PUBLIC aInt2[10] AS Integer in declaration section of a class so the syntax [Static] {Private|Public} EmbeddedArray[A, B] As Type is it correct, for the Public keyword? On Tue, 2010-11-23 at 19:13 +0100, Benoît Minisini wrote: Hi, This is a clarification about Gambas arrays for Demosthene and all who answered him. There are two kinds of arrays in Gambas: - Normal arrays. - Embedded arrays. Fabien used the word static arrays for embedded arrays because this was the word I used first. Then I changed to embedded to avoid any confusion with the STATIC keywords, which is not related at all. Normal arrays are true Gambas objects. They have their own memory allocation, and they are destroyed when they are not referenced anymore. To declare a normal array, you can do: (1) Dim NormalArray As Type[] (2) Dim NormalArray As Type[] = [ ... ] (3) Dim NormalArray As Type[] = New Type[A, B] (4) Dim NormalArray As Type[A, B] (1) declares an object variable that can receive a reference to a array whose type is Type[]. Type can be a native datatype or a class name. Note that in Gambas 2, Type can only be a native datatype. (2) declares an object variable, and initializes it with a new array created by the [ ... ] operator. (3) declares an object variable, and initializes it with a new array hainvg the specified dimension. (4) is a shortcut to the (3) syntax. Embedded arrays are arrays that are allocated *inside* another object. They don't have a memory allocation on their own, and they are automatically freed with the object including them. Embedded arrays are always member of a class or a structure only. To declare an embedded array, you do the following: [Static] {Private|Public} EmbeddedArray[A, B] As Type There, Type is the datatype of one element of the array. There is no [] after the type, unless you want to store array references inside the array of course. Embedded arrays can be static or not, public or private. Embedded arrays are a little bit slower than normal arrays. They were created to mimic C arrays (like Gambas structures, that were created to mimic C structures), so that working with extern C functions using arrays and structures is possible. So you should not use them, unless you are working with extern functions. I hope Gambas arrays are clearer now! Regards, -- Regards, Demosthenes -- Increase Visibility of Your 3D Game App Earn a Chance To Win $500! Tap into the largest installed PC base get more eyes on your game by optimizing for Intel(R) Graphics Technology. Get started today with the Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs. http://p.sf.net/sfu/intelisp-dev2dev ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] Release of Gambas 2.22
Hi, I release a new version of Gambas 2. It was a long time since the 2.21 release, and so there are a lot of bug fixes. Now I'm developing on Ubuntu, so please test the source package, and tell me if you encounter any problem. You may notice that the package is bigger than the old ones made on Mandriva. I have no idea why! Here is the full changelog: --- [CONFIGURATION] * BUG: Detect x86_64 architecture better. * BUG: Compile correctly on Ubuntu 10.10. * NEW: Add AC_PROG_LIBTOOL in root configure.ac file. * NEW: Check for missing mathematical function directly instead of relying on operating system detection. * NEW: Remove useless install-sh links. [DEVELOPMENT ENVIRONMENT] * BUG: A = character was missing in the menu file generated by the Debian/Ubuntu packager. * NEW: Don't save the Url in the project file if it is equal to the default URL http://www.endoftheinternet.com * NEW: Greek translation updated by Demosthenes Koptsis. [DATABASE MANAGER] * NEW: Greek translation updated by Demosthenes Koptsis. [INTERPRETER] * BUG: Extern functions now can handle up to 16 pointer or string arguments. * BUG: Do not use stack contents as return value. * BUG: The return value of extern functions returning a 'char *' is now correctly converted to a constant String. * BUG: The == operator works correctly now. * BUG: Fix two incorrect optional function declarations. [COMPILER] * BUG: Remove some useless tests. [ARCHIVER] * BUG: Files having the .gambas extension are now excluded from executable archives. That prevents a possible endless growing generated file. [DEVELOPMENT ENVIROMENT] * NEW: Spanish translation updated. [GB.DB.POSTGRESQL] * BUG: Correctly ignore fields deleted with the DROP COLUMN command. [GB.FORM] * BUG: Make arrow keys navigation work better with read-only cells in TableView control. * NEW: DateChooser uses Sunday as first day of the week when the current language is 'C' or 'en_US'. [GB.GTK] * BUG: Fix duplicate Click event in CheckBox control. * BUG: Correctly handle tristate Checkbox controls. * BUG: Fix the behaviour of ComboBox when setting the List and the ReadOnly property, and the order used for saving ComboBox properties in the *.form file. * BUG: Popup menus now work correctly on tray icons in all cases. * BUG: Make TabStrip behave like in gb.qt when inserting a new tab. * BUG: TabStrip now uses its own window, so that it is not partially visible when covering other widgets. * BUG: ColumnView, TreeView and ListView are correctly refreshed when an item icon is changed. * BUG: Read-only ComboBox controls do not lost focus events anymore. * BUG: Correctly free menu tags. * BUG: Fix possible crashes in three utility routines. * BUG: Fix a crash in GridView.Rows[].Text property. * BUG: Fix a infinite recursion in drag and drop management when draging TextBox or TextArea contents inside the same application. * BUG: Reparenting a top-level window does not show hidden children controls anymore. * BUG: Rich-text string management has been fixed. The ampersand character, the amp;, gt; and lt; entites are correctly interpreted now. [GB.NET.CURL] * BUG: The HttpClient and FtpClient Tag property does not leak memory anymore. [GB.NET.SMTP] * BUG: Fix an always true test. [GB.OPENGL] * BUG: Fix the use of = instead of ==. [GB.QT] * BUG: Fix the behaviour of ComboBox when setting the List property, and the order used for saving ComboBox properties in the *.form file. * BUG: Don't raise events while setting the ComboBox.List property. * BUG: Fix the properties order. Only the ComboBox ReadOnly property must be set first. * BUG: Workaround what it seems a Qt bug in ComboBox. Now, when an editable combo-box is hidden, it correctly loses the focus. * BUG: Do not propagate Drop events when there is a drop event handler. [GB.SDL.SOUND] * BUG: Fix segfaulting when moving the position of a mp3 music. Adding a delay of 10ms when rewinding the music seem to fix the problem that look like a threading issue in SDLmixer. --- Enjoy it! -- Benoît Minisini -- Increase Visibility of Your 3D Game App Earn a Chance To Win $500! Tap into the largest installed PC base get more eyes on your game by optimizing for Intel(R) Graphics Technology. Get started today with the Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs. http://p.sf.net/sfu/intelisp-dev2dev ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Release of Gambas 2.22
Le mercredi 24 novembre 2010 01:05:49, Benoît Minisini a écrit : Hi, I release a new version of Gambas 2. It was a long time since the 2.21 release, and so there are a lot of bug fixes. Now I'm developing on Ubuntu, so please test the source package, and tell me if you encounter any problem. You may notice that the package is bigger than the old ones made on Mandriva. I have no idea why! Enjoy it! And it's available also for archlinux i686/x86_64 in the repos. ++ -- Increase Visibility of Your 3D Game App Earn a Chance To Win $500! Tap into the largest installed PC base get more eyes on your game by optimizing for Intel(R) Graphics Technology. Get started today with the Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs. http://p.sf.net/sfu/intelisp-dev2dev ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Release of Gambas 2.22
El mié, 24-11-2010 a las 01:05 +0100, Benoît Minisini escribió: Hi, I release a new version of Gambas 2. It was a long time since the 2.21 release, and so there are a lot of bug fixes. Now I'm developing on Ubuntu, so please test the source package, and tell me if you encounter any problem. You may notice that the package is bigger than the old ones made on Mandriva. I have no idea why! file. [DEVELOPMENT ENVIROMENT] * NEW: Spanish translation updated. Enjoy it! Hi Benoit ... What a great language ... As for translation into Spanish. In version 2.1 the menu Proyecto - Crear - Ejectutable Ejecutable must say. It's the same in version 2.99 of development. Best regards -- Mauricio Baeza 10 años usando OpenOffice.org, libre, gratuito y seguro ___ Todo lo que no es dado es perdido -- Increase Visibility of Your 3D Game App Earn a Chance To Win $500! Tap into the largest installed PC base get more eyes on your game by optimizing for Intel(R) Graphics Technology. Get started today with the Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs. http://p.sf.net/sfu/intelisp-dev2dev ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Release of Gambas 2.22
El mié, 24-11-2010 a las 01:34 +0100, Laurent Carlier escribió: Le mercredi 24 novembre 2010 01:05:49, Benoît Minisini a écrit : Hi, I release a new version of Gambas 2. It was a long time since the 2.21 release, and so there are a lot of bug fixes. Now I'm developing on Ubuntu, so please test the source package, and tell me if you encounter any problem. You may notice that the package is bigger than the old ones made on Mandriva. I have no idea why! Enjoy it! And it's available also for archlinux i686/x86_64 in the repos. ++ For this (and other things) ... I love ArchLinux Thank you very much -- Mauricio Baeza 10 años usando OpenOffice.org, libre, gratuito y seguro ___ Todo lo que no es dado es perdido -- Increase Visibility of Your 3D Game App Earn a Chance To Win $500! Tap into the largest installed PC base get more eyes on your game by optimizing for Intel(R) Graphics Technology. Get started today with the Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs. http://p.sf.net/sfu/intelisp-dev2dev ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user