From rterry at ...1946... Wed Dec 1 05:35:01 2010 From: rterry at ...1946... (richard terry) Date: Wed, 1 Dec 2010 15:35:01 +1100 Subject: [Gambas-user] CControl.ConvertToString.673 Illegal Instruction (Abort) Message-ID: <201012011535.01314.rterry@...1946...> As per header, the latest svn compilation gives me this error on running gambas Bumma, now my secretaries front desk machine can't file my incoming correspondance. Thanks Richard From gambas at ...1... Wed Dec 1 14:11:31 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Wed, 1 Dec 2010 14:11:31 +0100 Subject: [Gambas-user] CControl.ConvertToString.673 Illegal Instruction (Abort) In-Reply-To: <201012011535.01314.rterry@...1946...> References: <201012011535.01314.rterry@...1946...> Message-ID: <201012011411.31146.gambas@...1...> > As per header, the latest svn compilation gives me this error on running > gambas > > Bumma, now my secretaries front desk machine can't file my incoming > correspondance. > > > > Thanks > > Richard > Which revision do you use? That bug has been fixed since revision #3330. Regards, -- Beno?t Minisini From ron at ...1740... Wed Dec 1 14:23:55 2010 From: ron at ...1740... (Ron) Date: Wed, 01 Dec 2010 14:23:55 +0100 Subject: [Gambas-user] Removing / Modifying IsXXXX() functions in Gambas3 In-Reply-To: <4CF50813.3030607@...1740...> References: <201011241208.34100.gambas@...1...> <201011301419.13045.gambas@...1...> <201011301507.20459.gambas@...1...> <4CF50813.3030607@...1740...> Message-ID: <4CF64C6B.5080104@...1740...> Yes we did apparently... >>> >>> Look at the attached screenshot.. >>> I marked -with my mouse- all the full lines of text you see in there >>> except the last one "Main.ControlLed("EIB", "On") >>> >>> The last letters of "byte" are not back colored purple, even though I >>> have selected them. >>> It does this with all lines having comments in them >>> >>> It's due to the fact that the font of the comments are different >>> size/type as the rest I guess, this is the default Ubuntu type theme. >>> >> No, it's a bug in Qt or in the font you use. It happens sometimes. >> You should >> use another font! >> >> Regards, > > But it's the default font/theme for Ubuntu 10.4... I didn't change a > think about the theme. > It looks horrible too, can't you choose another one for comments in > your gambas ide project? > So it works ok always... It looks better and works ok on Ubuntu Maverick I have just seen. So I guess I'll upgrade my development machine too. Ron_2nd. From demosthenesk at ...626... Wed Dec 1 16:01:26 2010 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Wed, 01 Dec 2010 17:01:26 +0200 Subject: [Gambas-user] Memory management Message-ID: <1291215686.11898.2.camel@...2493...> Hi, i can tell that there is a missing part in Overview of http://gambasdoc.org/help/lang It would be very useful a section about memory management with pointer relative subjects such Alloc(), pointers etc What do you say? -- Regards, Demosthenes Koptsis. From demosthenesk at ...626... Wed Dec 1 17:55:23 2010 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Wed, 01 Dec 2010 18:55:23 +0200 Subject: [Gambas-user] PIPE issues Message-ID: <1291222523.7316.4.camel@...2493...> Gambas2 2.21 rev3300 this example is not working in Ubuntu 10.04 AMD64 PUBLIC SUB Main() ' Prints the messages sent to a pipe DIM hFile AS File DIM sLine AS String hFile = PIPE "/tmp/FIFO1" FOR INPUT WHILE NOT Eof(hFile) LINE INPUT #hFile, sLine PRINT sLine WEND END The pipe is created ok! But if i make a ls > /tmp/FIFO1 nothing is appeared in console and program terminates. if i change to WHILE TRUE i get the ls results to console and i get an error System error. Inappropriate ioctl for device. -- Regards, Demosthenes Koptsis. From rterry at ...1946... Wed Dec 1 21:51:57 2010 From: rterry at ...1946... (richard terry) Date: Thu, 2 Dec 2010 07:51:57 +1100 Subject: [Gambas-user] CControl.ConvertToString.673 Illegal Instruction (Abort) In-Reply-To: <201012011411.31146.gambas@...1...> References: <201012011535.01314.rterry@...1946...> <201012011411.31146.gambas@...1...> Message-ID: <201012020751.57595.rterry@...1946...> On Thursday 02 December 2010 00:11:31 Beno?t Minisini wrote: > > As per header, the latest svn compilation gives me this error on running > > gambas > > > > Bumma, now my secretaries front desk machine can't file my incoming > > correspondance. > > > > > > > > Thanks > > > > Richard > > Which revision do you use? That bug has been fixed since revision #3330. > > Regards, > It was with 3340 From gambas at ...1... Thu Dec 2 00:41:51 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Thu, 2 Dec 2010 00:41:51 +0100 Subject: [Gambas-user] CControl.ConvertToString.673 Illegal Instruction (Abort) In-Reply-To: <201012020751.57595.rterry@...1946...> References: <201012011535.01314.rterry@...1946...> <201012011411.31146.gambas@...1...> <201012020751.57595.rterry@...1946...> Message-ID: <201012020041.51834.gambas@...1...> > On Thursday 02 December 2010 00:11:31 Beno?t Minisini wrote: > > > As per header, the latest svn compilation gives me this error on > > > running gambas > > > > > > Bumma, now my secretaries front desk machine can't file my incoming > > > correspondance. > > > > > > > > > > > > Thanks > > > > > > Richard > > > > Which revision do you use? That bug has been fixed since revision #3330. > > > > Regards, > > It was with 3340 > Can you show me what is the line #673 of the CControl.class on your machine? -- Beno?t Minisini From rterry at ...1946... Thu Dec 2 01:37:44 2010 From: rterry at ...1946... (richard terry) Date: Thu, 2 Dec 2010 11:37:44 +1100 Subject: [Gambas-user] CControl.ConvertToString.673 Illegal Instruction (Abort) In-Reply-To: <201012020041.51834.gambas@...1...> References: <201012011535.01314.rterry@...1946...> <201012020751.57595.rterry@...1946...> <201012020041.51834.gambas@...1...> Message-ID: <201012021137.44483.rterry@...1946...> On Thursday 02 December 2010 10:41:51 Beno?t Minisini wrote: > > On Thursday 02 December 2010 00:11:31 Beno?t Minisini wrote: > > > > As per header, the latest svn compilation gives me this error on > > > > running gambas > > > > > > > > Bumma, now my secretaries front desk machine can't file my incoming > > > > correspondance. > > > > > > > > > > > > > > > > Thanks > > > > > > > > Richard > > > > > > Which revision do you use? That bug has been fixed since revision > > > #3330. > > > > > > Regards, > > > > It was with 3340 > > Can you show me what is the line #673 of the CControl.class on your > machine? > I removed all traces of gambas from the machine, did a totally new svn download and re-compile and it is working ok now Benoit. I'll report any problems. Richard From Kris.Wauters at ...2514... Thu Dec 2 11:31:52 2010 From: Kris.Wauters at ...2514... (Wauters, Kris (Antwerpen)) Date: Thu, 2 Dec 2010 11:31:52 +0100 Subject: [Gambas-user] ERROR: #2: Cannot load class 'Action': Unable to load class file Message-ID: <15973_1291285925_4CF775A5_15973_37998_2_168370D075CE7F4EBFEEF36949F895472A85DC1F43@...2515...> Hello, I'm now to this mailing-list, but I'm already using Gambas for over a year now, and I'm a very happy with it :) (I was pointed out to post my question to this mailinglist by some nice folks over at www.gambasforum.com) Recently, I bought a mini2440 (ARM-processor board), and I installed Debian Lenny Armel version on it. After this, I installed gambas2 via "apt-get install gambas2". The problem is, when I try to run Gambas, I get the following message: ERROR: #2: Cannot load class 'Action': Unable to load class file (I get this same error when running as root) Next, nothing happens and I get my cursor back at the terminal prompt. I did search the web for this problem, but I can't find anything related to my problem :-( In the meanwhile, I followed the Gambas Debian installation/compilation guide on gambas.sourceforge.net I did : $ aptitude install build-essential g++ automake autoconf bzip2 debhelper dpatch firebird2.0-dev gettext kdelibs4-dev libbz2-dev libcurl3-dev libgtk2.0-dev libjpeg62-dev libmysqlclient15-dev libpcre3-dev libpng12-dev libpoppler-dev libpq-dev libqt3-compat-headers libqt3-mt-dev librsvg2-dev libsdl-gfx1.2-dev libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl-sound1.2-dev libsdl1.2-dev libsqlite0-dev libsqlite3-dev libssl-dev libxml2-dev libxtst-dev mesa-common-dev unixodbc-dev zlib1g-dev libffi-dev next, I did ./reconf-all and a ./configure I get a list of lots of components beeing disabled. (mysql, v4l etc ...) Those are components I really need, so re-compiling myself is not an option at the moment. (having not enough knowledge to do this, I have a .NET / windows background (shame on me)) Can someone please point me out in the right direction ? Also, I have the ability to put this ARM device onto the internet, and allow SSH access to it, in case anyone wants to try it out themselves ... Thanks in advance, best regards from Belgium, Kris Information in this email and any attachments is confidential and intended solely for the use of the individual(s) to whom it is addressed or otherwise directed. Please note that any views or opinions presented in this email are solely those of the author and do not necessarily represent those of the Company. Finally, the recipient should check this email and any attachments for the presence of viruses. The Company accepts no liability for any damage caused by any virus transmitted by this email. All SGS services are rendered in accordance with the applicable SGS conditions of service available on request and accessible at http://www.sgs.com/terms_and_conditions.htm From gambas at ...1... Thu Dec 2 11:54:13 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Thu, 2 Dec 2010 11:54:13 +0100 Subject: [Gambas-user] ERROR: #2: Cannot load class 'Action': Unable to load class file In-Reply-To: <15973_1291285925_4CF775A5_15973_37998_2_168370D075CE7F4EBFEEF36949F895472A85DC1F43@...2515...> References: <15973_1291285925_4CF775A5_15973_37998_2_168370D075CE7F4EBFEEF36949F895472A85DC1F43@...2515...> Message-ID: <201012021154.13818.gambas@...1...> > Hello, > > I'm now to this mailing-list, but I'm already using Gambas for over a year > now, and I'm a very happy with it :) > (I was pointed out to post my question to this mailinglist by some nice > folks over at www.gambasforum.com) Recently, I bought a mini2440 > (ARM-processor board), and I installed Debian Lenny Armel version on it. > After this, I installed gambas2 via "apt-get install gambas2". > > The problem is, when I try to run Gambas, I get the following message: > ERROR: #2: Cannot load class 'Action': Unable to load class file > (I get this same error when running as root) > > Next, nothing happens and I get my cursor back at the terminal prompt. > I did search the web for this problem, but I can't find anything related to > my problem :-( > > In the meanwhile, I followed the Gambas Debian installation/compilation > guide on gambas.sourceforge.net I did : > $ aptitude install build-essential g++ automake autoconf bzip2 debhelper > dpatch firebird2.0-dev gettext kdelibs4-dev libbz2-dev libcurl3-dev > libgtk2.0-dev libjpeg62-dev libmysqlclient15-dev libpcre3-dev libpng12-dev > libpoppler-dev libpq-dev libqt3-compat-headers libqt3-mt-dev librsvg2-dev > libsdl-gfx1.2-dev libsdl-image1.2-dev libsdl-mixer1.2-dev > libsdl-sound1.2-dev libsdl1.2-dev libsqlite0-dev libsqlite3-dev libssl-dev > libxml2-dev libxtst-dev mesa-common-dev unixodbc-dev zlib1g-dev libffi-dev > > next, I did ./reconf-all > and a ./configure > > I get a list of lots of components beeing disabled. (mysql, v4l etc ...) > Those are components I really need, so re-compiling myself is not an option > at the moment. (having not enough knowledge to do this, I have a .NET / > windows background (shame on me)) > > Can someone please point me out in the right direction ? > Also, I have the ability to put this ARM device onto the internet, and > allow SSH access to it, in case anyone wants to try it out themselves ... > > > Thanks in advance, > best regards from Belgium, > Kris > Hi, Maybe something was not compiled correctly. You must send us the full output of the './configure', 'make' and 'make install' process so that we can know. As for disabled components, it means that you didn't install some of the required development packages. A Debian user may help you... Regards, -- Beno?t Minisini From mdavies5 at ...169... Thu Dec 2 13:08:02 2010 From: mdavies5 at ...169... (Michael) Date: Thu, 02 Dec 2010 23:08:02 +1100 Subject: [Gambas-user] First look at Gambas 3 In-Reply-To: <201012021154.13818.gambas@...1...> References: <15973_1291285925_4CF775A5_15973_37998_2_168370D075CE7F4EBFEEF36949F895472A85DC1F43@...2515...> <201012021154.13818.gambas@...1...> Message-ID: <4CF78C22.8070102@...169...> I have been successfully running Gambas 2.2.1 and have just successfuly installed V3. using: $ svn checkout https://gambas.svn.sourceforge.net/svnroot/gambas/gambas/trunk/ I loaded a V2 project into V3 and it wouldn't run.Error was "Bad form file version in class...". I modified all my form files to replace the header with "# Gambas Form File 3.0" but I still get the same message. I tried creating a new project and this runs OK but with a warning "warning: unable to load Qt translation: en_AU.UTF-8". When I close the form running in the IDE I get the familiar "The program has stopped unexpectedly by raising signal #11.". It happens whether or not the project is marked as translatable. Is there any way to import a V2 project into V3? The second problem may not be so serious. If I compile the project it runs ok with no error messages. Any help appreciated. Mike From gambas at ...1... Thu Dec 2 13:13:47 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Thu, 2 Dec 2010 13:13:47 +0100 Subject: [Gambas-user] First look at Gambas 3 In-Reply-To: <4CF78C22.8070102@...169...> References: <15973_1291285925_4CF775A5_15973_37998_2_168370D075CE7F4EBFEEF36949F895472A85DC1F43@...2515...> <201012021154.13818.gambas@...1...> <4CF78C22.8070102@...169...> Message-ID: <201012021313.47326.gambas@...1...> > I have been successfully running Gambas 2.2.1 and have just successfuly > installed V3. using: > $ svn checkout > https://gambas.svn.sourceforge.net/svnroot/gambas/gambas/trunk/ > > I loaded a V2 project into V3 and it wouldn't run.Error was "Bad form > file version in class...". > I modified all my form files to replace the header with "# Gambas Form > File 3.0" but I still get the same message. > Just after loading the Gmabas 2 project into Gambas 3, you must run "update all forms" in the tools menu. Not automatic yet... Then recompile, and if you get the signal #11 again, send me your Gambas 2 project. Regards, -- Beno?t Minisini From nando_f at ...951... Thu Dec 2 13:28:46 2010 From: nando_f at ...951... (nando) Date: Thu, 2 Dec 2010 08:28:46 -0400 Subject: [Gambas-user] Gamba 3 - SVN question Message-ID: <20101202122641.M20946@...951...> I am gently moving to Gambas 3 As per instructions...I didn't get very far with ./reconf-all Any suggestions? -Fernando [root at ...40... ~]# cd trunk/ [root at ...40... trunk]# ./reconf-all libtoolize: unrecognized option `--nonrecursive' Try `libtoolize --help' for more information. autoreconf: Entering directory `.' autoreconf: configure.ac: not using Gettext autoreconf: running: aclocal autoreconf: configure.ac: tracing autoreconf: configure.ac: subdirectory main to autoreconf autoreconf: Entering directory `main' autoreconf: running: aclocal -I m4 --install aclocal: unrecognized option -- `--install' Try `aclocal --help' for more information. autoreconf: aclocal failed with exit status: 1 [root at ...40... trunk]# From gambas at ...1... Thu Dec 2 13:38:59 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Thu, 2 Dec 2010 13:38:59 +0100 Subject: [Gambas-user] Gamba 3 - SVN question In-Reply-To: <20101202122641.M20946@...951...> References: <20101202122641.M20946@...951...> Message-ID: <201012021338.59528.gambas@...1...> > I am gently moving to Gambas 3 > As per instructions...I didn't get very far with ./reconf-all > Any suggestions? > -Fernando > You need a more recent version of the GNU build tools (autoconf/automale/libtool). -- Beno?t Minisini From nando_f at ...951... Thu Dec 2 16:22:12 2010 From: nando_f at ...951... (nando) Date: Thu, 2 Dec 2010 11:22:12 -0400 Subject: [Gambas-user] Gamba 3 - SVN question In-Reply-To: <201012021338.59528.gambas@...1...> References: <20101202122641.M20946@...951...> <201012021338.59528.gambas@...1...> Message-ID: <20101202152052.M14647@...951...> Yup, I just realized that too. FC6 doesn't last forever!! Thanks for your reply Benoit. -Fernando ---------- Original Message ----------- From: Beno?t Minisini To: nando_f at ...951..., mailing list for gambas users Sent: Thu, 2 Dec 2010 13:38:59 +0100 Subject: Re: [Gambas-user] Gamba 3 - SVN question > > I am gently moving to Gambas 3 > > As per instructions...I didn't get very far with ./reconf-all > > Any suggestions? > > -Fernando > > > > You need a more recent version of the GNU build tools > (autoconf/automale/libtool). > > -- > 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 at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user ------- End of Original Message ------- From mdavies5 at ...169... Fri Dec 3 00:35:46 2010 From: mdavies5 at ...169... (Michael) Date: Fri, 03 Dec 2010 10:35:46 +1100 Subject: [Gambas-user] First look at Gambas 3 In-Reply-To: <201012021313.47326.gambas@...1...> References: <15973_1291285925_4CF775A5_15973_37998_2_168370D075CE7F4EBFEEF36949F895472A85DC1F43@...2515...> <201012021154.13818.gambas@...1...> <4CF78C22.8070102@...169...> <201012021313.47326.gambas@...1...> Message-ID: <4CF82D52.3080201@...169...> Thanks Benoit, This enabled me to run in the IDE. I still have other mods to do as the components do not fit on the form but I will work on this. The error#11 did not happen with the V2.0 project. I started Gambas 3, select File/New Project/QT4. Get a project with FMain. Press F5 and runs ok. CLick the X to close the form and get error #11 plus the warning I mentioned previously. Regards Mike On 02/12/10 23:13, Beno?t Minisini wrote: >> I have been successfully running Gambas 2.2.1 and have just successfuly >> installed V3. using: >> $ svn checkout >> https://gambas.svn.sourceforge.net/svnroot/gambas/gambas/trunk/ >> >> I loaded a V2 project into V3 and it wouldn't run.Error was "Bad form >> file version in class...". >> I modified all my form files to replace the header with "# Gambas Form >> File 3.0" but I still get the same message. >> > Just after loading the Gmabas 2 project into Gambas 3, you must run "update > all forms" in the tools menu. Not automatic yet... > > Then recompile, and if you get the signal #11 again, send me your Gambas 2 > project. > > Regards, > From gambas at ...1... Fri Dec 3 00:43:56 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Fri, 3 Dec 2010 00:43:56 +0100 Subject: [Gambas-user] First look at Gambas 3 In-Reply-To: <4CF82D52.3080201@...169...> References: <15973_1291285925_4CF775A5_15973_37998_2_168370D075CE7F4EBFEEF36949F895472A85DC1F43@...2515...> <201012021313.47326.gambas@...1...> <4CF82D52.3080201@...169...> Message-ID: <201012030043.56878.gambas@...1...> > Thanks Benoit, > This enabled me to run in the IDE. I still have other mods to do as the > components do not fit on the form but I will work on this. > The error#11 did not happen with the V2.0 project. I started Gambas 3, > select File/New Project/QT4. > Get a project with FMain. Press F5 and runs ok. CLick the X to close > the form and get error #11 plus the warning I mentioned previously. > > Regards > Mike > Please, can you run your project with the valgrind tool to know where it crashes exactly? 1) Gambas 3 must be compiled with debugging information enabled, which should be the case by default. 2) Open a terminal 3) "cd" to the directory of the project that crashes 4) Run the following command: $ valgrind --tool=memcheck --track-origins=yes --num-callers=50 gbx3 5) Send me the output of valgrind. Of course, the valgrind tool must have been installed. Thanks in advance. Regards, -- Beno?t Minisini From mdavies5 at ...169... Fri Dec 3 04:53:25 2010 From: mdavies5 at ...169... (Michael) Date: Fri, 03 Dec 2010 14:53:25 +1100 Subject: [Gambas-user] First look at Gambas 3 In-Reply-To: <201012030043.56878.gambas@...1...> References: <15973_1291285925_4CF775A5_15973_37998_2_168370D075CE7F4EBFEEF36949F895472A85DC1F43@...2515...> <201012021313.47326.gambas@...1...> <4CF82D52.3080201@...169...> <201012030043.56878.gambas@...1...> Message-ID: <4CF869B5.60600@...169...> Benoit, The output from Valgrind is attached. I added the leak-check option to give you more information. The application was just automatically generated by Gambas 3 with Fform to which I added 1 menu item with no action code. The same bug appears in an app I ported from gambas2. On unrelated matters re: Porting from Gambas 2 to Gambas 3. I have the following problems. 1. The color options offered in Gambas 3 are different to Gambas 2. All my pale blue forms are now pink. 2. I used font Ubuntu +1 for QT text boxes in G2. In Gambas 3 the same font appears huge. I had to change it to ubuntu -1. In a Frame control the font is always bold in G3 but in G2 I could set it to 'normal' without problem. 3. All the forms copied from G2 were reduced in size. This was probably caused by the Desktop.Height which I use to format forms based on video resolution. My system is 1680*1050 resolution and G2 reports Desktop.height as 1050. G3 reports desktop height as 1002! The desktop width is reported correctly. Have you changed the method of measuring desktop.height? It seems upgrading from Gambas 2 to 3 is not a trivial exercise. Thanks for your help Michael On 03/12/10 10:43, Beno?t Minisini wrote: >> Thanks Benoit, >> This enabled me to run in the IDE. I still have other mods to do as the >> components do not fit on the form but I will work on this. >> The error#11 did not happen with the V2.0 project. I started Gambas 3, >> select File/New Project/QT4. >> Get a project with FMain. Press F5 and runs ok. CLick the X to close >> the form and get error #11 plus the warning I mentioned previously. >> >> Regards >> Mike >> > Please, can you run your project with the valgrind tool to know where it > crashes exactly? > > 1) Gambas 3 must be compiled with debugging information enabled, which should > be the case by default. > > 2) Open a terminal > > 3) "cd" to the directory of the project that crashes > > 4) Run the following command: > > $ valgrind --tool=memcheck --track-origins=yes --num-callers=50 gbx3 > > 5) Send me the output of valgrind. > > Of course, the valgrind tool must have been installed. > > Thanks in advance. > > Regards, > -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: Valgrind.txt URL: From eilert-sprachen at ...221... Fri Dec 3 09:41:37 2010 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Fri, 03 Dec 2010 09:41:37 +0100 Subject: [Gambas-user] First look at Gambas 3 In-Reply-To: <4CF869B5.60600@...169...> References: <15973_1291285925_4CF775A5_15973_37998_2_168370D075CE7F4EBFEEF36949F895472A85DC1F43@...2515...> <201012021313.47326.gambas@...1...> <4CF82D52.3080201@...169...> <201012030043.56878.gambas@...1...> <4CF869B5.60600@...169...> Message-ID: <4CF8AD41.6000309@...221...> Just reading by... > resolution. My system is 1680*1050 resolution and G2 reports > Desktop.height as 1050. G3 reports desktop height as 1002! The desktop Maybe Gambas deducts the height for the... gosh what was its name... "kicker" or whatever... control bar at the lower screen edge? :-) Regards Rolf From mdavies5 at ...169... Fri Dec 3 09:59:04 2010 From: mdavies5 at ...169... (Michael) Date: Fri, 03 Dec 2010 19:59:04 +1100 Subject: [Gambas-user] First look at Gambas 3 In-Reply-To: <4CF8AD41.6000309@...221...> References: <15973_1291285925_4CF775A5_15973_37998_2_168370D075CE7F4EBFEEF36949F895472A85DC1F43@...2515...> <201012021313.47326.gambas@...1...> <4CF82D52.3080201@...169...> <201012030043.56878.gambas@...1...> <4CF869B5.60600@...169...> <4CF8AD41.6000309@...221...> Message-ID: <4CF8B158.9010506@...169...> Thanks Rolf, I did consider that but why would it change from Gambas 2 and make upgrading so tiresome? Also with the change in colors I mentioned, I thought this might be because I had a basically blue desktop theme when I installed Gambas2 but a different desktop theme when I installed Gambas3. THis is the only reason I can think of but it seems illogical that Gambas would read your theme when installed and never update it. I await Benoit's comments with much interest. Regards Michael On 03/12/10 19:41, Rolf-Werner Eilert wrote: > Just reading by... > >> resolution. My system is 1680*1050 resolution and G2 reports >> Desktop.height as 1050. G3 reports desktop height as 1002! The desktop > Maybe Gambas deducts the height for the... gosh what was its name... > "kicker" or whatever... control bar at the lower screen edge? :-) > > Regards > > Rolf > > ------------------------------------------------------------------------------ > 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 at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > From mdavies5 at ...169... Fri Dec 3 12:49:57 2010 From: mdavies5 at ...169... (Michael) Date: Fri, 03 Dec 2010 22:49:57 +1100 Subject: [Gambas-user] First look at Gambas 3 In-Reply-To: <4CF869B5.60600@...169...> References: <15973_1291285925_4CF775A5_15973_37998_2_168370D075CE7F4EBFEEF36949F895472A85DC1F43@...2515...> <201012021313.47326.gambas@...1...> <4CF82D52.3080201@...169...> <201012030043.56878.gambas@...1...> <4CF869B5.60600@...169...> Message-ID: <4CF8D965.1010102@...169...> Benoit, Here is an important piece of additional information. If I change my project components from gb.qt4 to gb.gtk then the error #11 disappears. Also my desktop height is correctly reported as 1050 when using GTK. Also the font of a GTK frame does not automatically go bold. I was using QT in Gambas 2 for it's printer and draw library but I can switch to GTK in Gambas3 as soon as I work out how to use the new print facilities. Regards Michael On 03/12/10 14:53, Michael wrote: > Benoit, > The output from Valgrind is attached. I added the leak-check option to > give you more information. The application was just automatically > generated by Gambas 3 with Fform to which I added 1 menu item with no > action code. The same bug appears in an app I ported from gambas2. > > On unrelated matters re: Porting from Gambas 2 to Gambas 3. I have the > following problems. > 1. The color options offered in Gambas 3 are different to Gambas 2. > All my pale blue forms are now pink. > 2. I used font Ubuntu +1 for QT text boxes in G2. In Gambas 3 the same > font appears huge. I had to change it to ubuntu -1. In a Frame > control the font is always bold in G3 but in G2 I could set it to > 'normal' without problem. > 3. All the forms copied from G2 were reduced in size. This was > probably caused by the Desktop.Height which I use to format forms > based on video resolution. My system is 1680*1050 resolution and G2 > reports Desktop.height as 1050. G3 reports desktop height as 1002! The > desktop width is reported correctly. Have you changed the method of > measuring desktop.height? > > It seems upgrading from Gambas 2 to 3 is not a trivial exercise. > > Thanks for your help > Michael > > On 03/12/10 10:43, Beno?t Minisini wrote: >>> Thanks Benoit, >>> This enabled me to run in the IDE. I still have other mods to do as the >>> components do not fit on the form but I will work on this. >>> The error#11 did not happen with the V2.0 project. I started Gambas 3, >>> select File/New Project/QT4. >>> Get a project with FMain. Press F5 and runs ok. CLick the X to close >>> the form and get error #11 plus the warning I mentioned previously. >>> >>> Regards >>> Mike >>> >> Please, can you run your project with the valgrind tool to know where it >> crashes exactly? >> >> 1) Gambas 3 must be compiled with debugging information enabled, >> which should >> be the case by default. >> >> 2) Open a terminal >> >> 3) "cd" to the directory of the project that crashes >> >> 4) Run the following command: >> >> $ valgrind --tool=memcheck --track-origins=yes --num-callers=50 gbx3 >> >> 5) Send me the output of valgrind. >> >> Of course, the valgrind tool must have been installed. >> >> Thanks in advance. >> >> Regards, >> > > ------------------------------------------------------------------------------ > 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 at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From mdavies5 at ...169... Fri Dec 3 13:51:25 2010 From: mdavies5 at ...169... (Michael) Date: Fri, 03 Dec 2010 23:51:25 +1100 Subject: [Gambas-user] Gambas3 Printing In-Reply-To: <4CF8D965.1010102@...169...> References: <15973_1291285925_4CF775A5_15973_37998_2_168370D075CE7F4EBFEEF36949F895472A85DC1F43@...2515...> <201012021313.47326.gambas@...1...> <4CF82D52.3080201@...169...> <201012030043.56878.gambas@...1...> <4CF869B5.60600@...169...> <4CF8D965.1010102@...169...> Message-ID: <4CF8E7CD.7070309@...169...> Does anybody have any experience of printing with Gambas3? My sample code is below and the result is: Calling .Configure fires the _End event. Then the _Begin, _Paginate and _Draw events all fire. Then I get an error "(Test:4193): Gtk-CRITICAL **: IA__gtk_print_context_get_cairo_context: assertion `GTK_IS_PRINT_CONTEXT (context)' failed" Then a blank page is printed. I have tried the sample Print app supplied with Gambas 3 but it was written for Gambas1. I'm surprised it even loaded. I cannot find much help on the net. Would appreciate any help. (Running on Ubuntu 10.10 with gb.gtk and gb.Cairo components). Regards Michael Public myP As New Printer As "myP" Public Sub Menu2_Click() Dim blnOk As Boolean If Not myP.Configure() Then blnok = myP.Print() Paint.Begin(myP) Endif Catch Message.Error(Error.Text) End Public Sub myP_Begin() myP.count = 1 End Public Sub myP_Draw() Paint.Brush = Paint.Color(Color.Black) Paint.Font.Name = "sans serif" Paint.Font.Size = 16 Paint.Text("hello", 300, 300, 600,, Align.Right) Paint.End End Public Sub myp_End() Debug "PRINT END" End Public Sub myp_Paginate() Debug "Paginate" End From gambas.fr at ...626... Fri Dec 3 14:59:48 2010 From: gambas.fr at ...626... (Fabien Bodard) Date: Fri, 3 Dec 2010 14:59:48 +0100 Subject: [Gambas-user] First look at Gambas 3 In-Reply-To: <4CF8D965.1010102@...169...> References: <15973_1291285925_4CF775A5_15973_37998_2_168370D075CE7F4EBFEEF36949F895472A85DC1F43@...2515...> <201012021313.47326.gambas@...1...> <4CF82D52.3080201@...169...> <201012030043.56878.gambas@...1...> <4CF869B5.60600@...169...> <4CF8D965.1010102@...169...> Message-ID: the same problem on qt than me, fabien at ...2489...:~/Documents/Projets/Composants/gb.form.widgets$ valgrind --tool=memcheck --track-origins=yes --num-callers=50 gbx3 ==2477== Memcheck, a memory error detector ==2477== Copyright (C) 2002-2010, and GNU GPL'd, by Julian Seward et al. ==2477== Using Valgrind-3.6.0.SVN-Debian and LibVEX; rerun with -h for copyright info ==2477== Command: gbx3 ==2477== ==2477== Invalid read of size 2 ==2477== at 0x5712930: getenv (getenv.c:84) ==2477== by 0x125AF25F: ??? (in /usr/lib/libcanberra.so.0.2.4) ==2477== by 0x125A6FBE: ??? (in /usr/lib/libcanberra.so.0.2.4) ==2477== by 0x125B0180: ??? (in /usr/lib/libcanberra.so.0.2.4) ==2477== by 0x57134F1: exit (exit.c:78) ==2477== by 0x422619: main (gbx.c:400) ==2477== Address 0x60ecf35 is not stack'd, malloc'd or (recently) free'd ==2477== ==2477== ==2477== Process terminating with default action of signal 11 (SIGSEGV) ==2477== Access not within mapped region at address 0x60ECF35 ==2477== at 0x5712930: getenv (getenv.c:84) ==2477== by 0x125AF25F: ??? (in /usr/lib/libcanberra.so.0.2.4) ==2477== by 0x125A6FBE: ??? (in /usr/lib/libcanberra.so.0.2.4) ==2477== by 0x125B0180: ??? (in /usr/lib/libcanberra.so.0.2.4) ==2477== by 0x57134F1: exit (exit.c:78) ==2477== by 0x422619: main (gbx.c:400) ==2477== If you believe this happened as a result of a stack ==2477== overflow in your program's main thread (unlikely but ==2477== possible), you can try to increase the size of the ==2477== main thread stack using the --main-stacksize= flag. ==2477== The main thread stack size used in this run was 8388608. ==2477== ==2477== HEAP SUMMARY: ==2477== in use at exit: 3,181,225 bytes in 13,146 blocks ==2477== total heap usage: 78,208 allocs, 65,062 frees, 24,239,762 bytes allocated ==2477== ==2477== LEAK SUMMARY: ==2477== definitely lost: 41,040 bytes in 888 blocks ==2477== indirectly lost: 828,621 bytes in 1,551 blocks ==2477== possibly lost: 1,342,116 bytes in 4,612 blocks ==2477== still reachable: 969,448 bytes in 6,095 blocks ==2477== suppressed: 0 bytes in 0 blocks ==2477== Rerun with --leak-check=full to see details of leaked memory ==2477== ==2477== For counts of detected and suppressed errors, rerun with: -v ==2477== ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 10 from 8) Processus arr?t? fabien at ...2489...:~/Documents/Projets/Composants/gb.form.widgets$ From gambas at ...1... Fri Dec 3 15:12:36 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Fri, 3 Dec 2010 15:12:36 +0100 Subject: [Gambas-user] First look at Gambas 3 In-Reply-To: References: <15973_1291285925_4CF775A5_15973_37998_2_168370D075CE7F4EBFEEF36949F895472A85DC1F43@...2515...> <4CF8D965.1010102@...169...> Message-ID: <201012031512.36691.gambas@...1...> > the same problem on qt than me, > Apparently there is something weird in "libcanberra". Do you know what is that library? -- Beno?t Minisini From gambas.fr at ...626... Fri Dec 3 15:19:19 2010 From: gambas.fr at ...626... (Fabien Bodard) Date: Fri, 3 Dec 2010 15:19:19 +0100 Subject: [Gambas-user] Gambas3 Printing In-Reply-To: <4CF8E7CD.7070309@...169...> References: <15973_1291285925_4CF775A5_15973_37998_2_168370D075CE7F4EBFEEF36949F895472A85DC1F43@...2515...> <201012021313.47326.gambas@...1...> <4CF82D52.3080201@...169...> <201012030043.56878.gambas@...1...> <4CF869B5.60600@...169...> <4CF8D965.1010102@...169...> <4CF8E7CD.7070309@...169...> Message-ID: Private hPrint As New Printer As "Printer" Public Sub Form_Open() If Not hPrint.Configure() Then hPrint.Print Endif End Public Sub Printer_Begin() hPrint.Count = 1 End Public Sub Printer_Draw() Paint.Font.Size = 12 Paint.Text("Hello", 30, 50) Paint.fill End Public Sub Printer_End() End Tou need to learn more about the paint class :) first create a path and then draw around or fill it (stroke/fill) look at the paint example From gambas.fr at ...626... Fri Dec 3 15:20:58 2010 From: gambas.fr at ...626... (Fabien Bodard) Date: Fri, 3 Dec 2010 15:20:58 +0100 Subject: [Gambas-user] First look at Gambas 3 In-Reply-To: <201012031512.36691.gambas@...1...> References: <15973_1291285925_4CF775A5_15973_37998_2_168370D075CE7F4EBFEEF36949F895472A85DC1F43@...2515...> <4CF8D965.1010102@...169...> <201012031512.36691.gambas@...1...> Message-ID: http://0pointer.de/lennart/projects/libcanberra/ nothing more that google can tell us... i think it's a gnome lib ... but what is the link between that and qt :/... it's a mystery From mdavies5 at ...169... Sat Dec 4 07:13:05 2010 From: mdavies5 at ...169... (Michael) Date: Sat, 04 Dec 2010 17:13:05 +1100 Subject: [Gambas-user] Gambas3 Printing In-Reply-To: References: <15973_1291285925_4CF775A5_15973_37998_2_168370D075CE7F4EBFEEF36949F895472A85DC1F43@...2515...> <201012021313.47326.gambas@...1...> <4CF82D52.3080201@...169...> <201012030043.56878.gambas@...1...> <4CF869B5.60600@...169...> <4CF8D965.1010102@...169...> <4CF8E7CD.7070309@...169...> Message-ID: <4CF9DBF1.9080502@...169...> Thanks Fabien, I am getting there slowly. Can print in a small test app but in a real world app I just get blank pages. One of the problems I overcame was the different units used by the printer and Paint routines. In Gambas2 the printer and Draw objects both used pixels. Now we seem to have a mixture of pixels and mm so a lot of conversion is necessary. I'll keep trying. SHould I call .Fill after every .Text or should I call .Fill only after all the text has been written? Regards Michael On 04/12/10 01:19, Fabien Bodard wrote: > Private hPrint As New Printer As "Printer" > Public Sub Form_Open() > > If Not hPrint.Configure() Then > hPrint.Print > > Endif > > End > > > Public Sub Printer_Begin() > > hPrint.Count = 1 > > End > > > Public Sub Printer_Draw() > Paint.Font.Size = 12 > > Paint.Text("Hello", 30, 50) > Paint.fill > End > > Public Sub Printer_End() > > > > > End > > > > Tou need to learn more about the paint class :) > > first create a path and then draw around or fill it (stroke/fill) > > look at the paint example > > ------------------------------------------------------------------------------ > 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 at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > From wally at ...2037... Sat Dec 4 09:35:34 2010 From: wally at ...2037... (wally) Date: Sat, 4 Dec 2010 09:35:34 +0100 Subject: [Gambas-user] GB3, Paint.CurveTo Message-ID: <201012040935.34667.wally@...2037...> Hello, i want to paint a graph from numerical data using CurveTo. CurveTo expects 3 points (p1,p2,p3) where p1 == (x1,y1) If i want to advance in curve plotting i have to add a p4,p5,...pn. Do i need always to provide the additional point by repeating the recently added 2 points or is there a smarter not redundant way ? Paint.CurveTo(p1,p2,p3) Paint.CurveTo(p2,p3,p4) PAit.CurveTo(p3,p4,p5) ..... a.s.o. Wjere can i find some cairo example code ? Cheers wally From nando_f at ...951... Sat Dec 4 12:14:56 2010 From: nando_f at ...951... (nando) Date: Sat, 4 Dec 2010 07:14:56 -0400 Subject: [Gambas-user] Socket Server Example: CPU Usage Question Message-ID: <20101204111105.M41749@...951...> Folks, I'm writing a Socket Server application. When I use the Server Example and Telnet in (local machine) I see CPU usage raise to 35% and stay there even with no activity. I use TOP at 1 second to see CPU usage. I'd like to know if others experience the same fairly high CPU use? -Fernando From mdavies5 at ...169... Sat Dec 4 12:46:31 2010 From: mdavies5 at ...169... (Michael) Date: Sat, 04 Dec 2010 22:46:31 +1100 Subject: [Gambas-user] Gambas3 Printing In-Reply-To: References: <15973_1291285925_4CF775A5_15973_37998_2_168370D075CE7F4EBFEEF36949F895472A85DC1F43@...2515...> <201012021313.47326.gambas@...1...> <4CF82D52.3080201@...169...> <201012030043.56878.gambas@...1...> <4CF869B5.60600@...169...> <4CF8D965.1010102@...169...> <4CF8E7CD.7070309@...169...> Message-ID: <4CFA2A17.90302@...169...> Hi Fabien, I've got printing to work ok but positioning objects on the page is difficult compared to Gambas2. The Paint.Width and Paint.Height values seem to bear no relation to pixels or mm. On A4 paper I get values of 559 and 760 approx. What units are used here? (My printer resolution is 300) Also in the hPrinter.Configure() dialog I cannot set all the printer options, specifically 'Orientation' is disabled. I set it in code with hPrinter.Orientation = Printer.Landscape but the Paint component still outputs in Portrait mode. Would appreciate any assistance. Regards Michael On 04/12/10 01:19, Fabien Bodard wrote: > Private hPrint As New Printer As "Printer" > Public Sub Form_Open() > > If Not hPrint.Configure() Then > hPrint.Print > > Endif > > End > > > Public Sub Printer_Begin() > > hPrint.Count = 1 > > End > > > Public Sub Printer_Draw() > Paint.Font.Size = 12 > > Paint.Text("Hello", 30, 50) > Paint.fill > End > > Public Sub Printer_End() > > > > > End > > > > Tou need to learn more about the paint class :) > > first create a path and then draw around or fill it (stroke/fill) > > look at the paint example > > ------------------------------------------------------------------------------ > 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 at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > From gambas at ...1... Sat Dec 4 17:06:23 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sat, 4 Dec 2010 17:06:23 +0100 Subject: [Gambas-user] Gambas3 Printing In-Reply-To: <4CFA2A17.90302@...169...> References: <15973_1291285925_4CF775A5_15973_37998_2_168370D075CE7F4EBFEEF36949F895472A85DC1F43@...2515...> <4CFA2A17.90302@...169...> Message-ID: <201012041706.23464.gambas@...1...> > Hi Fabien, > I've got printing to work ok but positioning objects on the page is > difficult compared to Gambas2. The Paint.Width and Paint.Height values > seem to bear no relation to pixels or mm. On A4 paper I get values of > 559 and 760 approx. What units are used here? (My printer resolution is > 300) Also in the hPrinter.Configure() dialog I cannot set all the printer > options, specifically 'Orientation' is disabled. I set it in code with > hPrinter.Orientation = Printer.Landscape but the Paint component still > outputs in Portrait mode. > Would appreciate any assistance. > Regards > Michael > The Printing example comes from Gambas 2. I removed it as it does not work anymore with Gambas 3. If Timothy wants to port it to Gambas 3, he's welcome! You should do all your drawings relatively to Paint.Width and Paint.Height, whatever their values. See it as a number of pixels, even if it is not necessarily true. They are floating point values, so they don't have to be true pixels. The unit of an horizontal "pixel" is the width of the paper divided by Paint.Width. For an A4 paper on Portrait mode, it's 21 cm / Paint.Width. The unit of a vertical "pixel" is the height of the paper divided by Paint.Height. For an A4 paper on Portrait mode, it's 29,7 cm / Paint.Height. I will fix one GTK warning in next revision. But I have another one that is not triggered by Gambas, but by a GTK+ internal library named "libappmenu.so". I don't know what it is. As you, when calling the GTK+ printer configuration dialog, I cannot change the orientation and the paper size. I don't know why! I must investigate... And there is another bug in gb.qt4 printing: the font size is not resolution independant, whereas it should be the contrary according the documentation (i.e. a 50 points font is very small, as if its height is actually 50 pixels.). I must investigate too... Regards, -- Beno?t Minisini From gambas at ...1... Sat Dec 4 17:21:34 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sat, 4 Dec 2010 17:21:34 +0100 Subject: [Gambas-user] First look at Gambas 3 In-Reply-To: <4CF869B5.60600@...169...> References: <15973_1291285925_4CF775A5_15973_37998_2_168370D075CE7F4EBFEEF36949F895472A85DC1F43@...2515...> <201012030043.56878.gambas@...1...> <4CF869B5.60600@...169...> Message-ID: <201012041721.34481.gambas@...1...> > Benoit, > The output from Valgrind is attached. I added the leak-check option to > give you more information. Thanks, but there is no memory access error reported in your valgrind log. Can you check that you ran it in the same context? > The application was just automatically > generated by Gambas 3 with Fform to which I added 1 menu item with no > action code. The same bug appears in an app I ported from gambas2. > > On unrelated matters re: Porting from Gambas 2 to Gambas 3. I have the > following problems. > 1. The color options offered in Gambas 3 are different to Gambas 2. All > my pale blue forms are now pink. Can you give me a more precise example? > 2. I used font Ubuntu +1 for QT text boxes in G2. In Gambas 3 the same > font appears huge. I had to change it to ubuntu -1. In a Frame control > the font is always bold in G3 but in G2 I could set it to 'normal' > without problem. All font size "+1,-1,+2..." are relative to the default font size, which may be not the same between Gambas 2 (that uses Qt3) and Gambas 3 (that uses Qt4). To check that, you must configure your Qt library with the qtconfig program. The way to install and run it depends on the distribution. > 3. All the forms copied from G2 were reduced in size. This was probably > caused by the Desktop.Height which I use to format forms based on video > resolution. No. The form and controls dimensions are proportional to the default font height. The multiplication factor has changed in Gambas 3 and is lower. If you need absolute dimensions in a form, set the Form.Scaled property to False in the IDE. > My system is 1680*1050 resolution and G2 reports > Desktop.height as 1050. G3 reports desktop height as 1002! The desktop > width is reported correctly. Have you changed the method of measuring > desktop.height? No. Desktop.Width and Desktop.Height actually returns the screen size, unless you use the gb.desktop component. Then they return the usable screen size, which is the screen size minus the desktop panels dimensions. I admit that keeping the same names is a stupid idea. Maybe I will change the gb.desktop component, and use other names. Regards, -- Beno?t Minisini From gambas at ...2377... Sat Dec 4 17:27:00 2010 From: gambas at ...2377... (George) Date: Sat, 4 Dec 2010 11:27:00 -0500 Subject: [Gambas-user] BUG: Problem with DateAdd function In-Reply-To: <201002132051.35580.gambas@...1...> References: <4B76F4DD.5060001@...2377...> <201002132051.35580.gambas@...1...> Message-ID: 2010/2/13 Beno?t Minisini : >> I've run into a strange problem with the DateAdd function, when trying >> to subtract from the current date by months. >> >> I initially hit the problem with the following (values are hard-coded >> for clarity): >> DateAdd(cdate("2/13/2010"),gb.month,-37) >> >> It seems that any combination of Date and Interval that results in a >> date of January 2007 causes an "Invalid Date" error. ?For example, the >> following are all invalid: >> DateAdd(cdate("1/13/2010"),gb.month,-36) >> DateAdd(cdate("2/28/2010"),gb.month,-37) >> DateAdd(cdate("3/13/2010"),gb.month,-38) >> >> Changing the starting date or the number of intervals so as to have a >> date that falls outside the month of January 2007 works okay. ?It also >> works okay using periods of Year or Week that fall into those dates. >> >> ======= >> >> System information: >> >> Gambas Version 2.13 >> Components in project: gb.db, gb.db.form, gb.form, gb.gui, gb.settings, >> gb.vb >> >> OS: Ubuntu 9.10 Karmic Koala; Kernel 2.6.31-19-generic-pae >> GNOME 2.28.1 >> >> Hardware: Intel Core 2 Duo processor (E8400) >> > > The bug has been fixed in revision #2697. > > Regards, > > -- > Beno?t Minisini > This is a reply to and old post, but I'd gone off onto other projects, and am just revisiting this... I am currently running version 2.22.0 and am still getting the error described above. If the bug had been fixed in an earlier version, it seems to have crept back in. My Ubuntu version is currently 10.04 LTS (Lucid Lynx) Thanks, -George From gambas at ...1... Sat Dec 4 17:37:15 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sat, 4 Dec 2010 17:37:15 +0100 Subject: [Gambas-user] BUG: Problem with DateAdd function In-Reply-To: References: <4B76F4DD.5060001@...2377...> <201002132051.35580.gambas@...1...> Message-ID: <201012041737.15101.gambas@...1...> > 2010/2/13 Beno?t Minisini : > >> I've run into a strange problem with the DateAdd function, when trying > >> to subtract from the current date by months. > >> > >> I initially hit the problem with the following (values are hard-coded > >> for clarity): > >> DateAdd(cdate("2/13/2010"),gb.month,-37) > >> > >> It seems that any combination of Date and Interval that results in a > >> date of January 2007 causes an "Invalid Date" error. For example, the > >> following are all invalid: > >> DateAdd(cdate("1/13/2010"),gb.month,-36) > >> DateAdd(cdate("2/28/2010"),gb.month,-37) > >> DateAdd(cdate("3/13/2010"),gb.month,-38) > >> > >> Changing the starting date or the number of intervals so as to have a > >> date that falls outside the month of January 2007 works okay. It also > >> works okay using periods of Year or Week that fall into those dates. > >> > >> ======= > >> > >> System information: > >> > >> Gambas Version 2.13 > >> Components in project: gb.db, gb.db.form, gb.form, gb.gui, gb.settings, > >> gb.vb > >> > >> OS: Ubuntu 9.10 Karmic Koala; Kernel 2.6.31-19-generic-pae > >> GNOME 2.28.1 > >> > >> Hardware: Intel Core 2 Duo processor (E8400) > > > > The bug has been fixed in revision #2697. > > > > Regards, > > > > -- > > Beno?t Minisini > > This is a reply to and old post, but I'd gone off onto other projects, > and am just revisiting this... > > I am currently running version 2.22.0 and am still getting the error > described above. If the bug had been fixed in an earlier version, it > seems to have crept back in. > > My Ubuntu version is currently 10.04 LTS (Lucid Lynx) > > Thanks, > > -George > Can anyone reproduce that? I can't. I get the correct result each time with gambas 2.22.0. ?DateAdd(cdate("1/13/2010"),gb.month,-36) 13/01/07 ?DateAdd(cdate("2/28/2010"),gb.month,-37) 28/01/07 ?DateAdd(cdate("3/13/2010"),gb.month,-38) 13/01/07 -- Beno?t Minisini From wdahn at ...1000... Sat Dec 4 18:08:35 2010 From: wdahn at ...1000... (Werner) Date: Sun, 05 Dec 2010 01:08:35 +0800 Subject: [Gambas-user] BUG: Problem with DateAdd function In-Reply-To: <201012041737.15101.gambas@...1...> References: <4B76F4DD.5060001@...2377...> <201002132051.35580.gambas@...1...> <201012041737.15101.gambas@...1...> Message-ID: <4CFA7593.7090905@...1000...> On 05/12/10 00:37, Beno?t Minisini wrote: >> 2010/2/13 Beno?t Minisini : >> >>>> I've run into a strange problem with the DateAdd function, when trying >>>> to subtract from the current date by months. >>>> >>>> I initially hit the problem with the following (values are hard-coded >>>> for clarity): >>>> DateAdd(cdate("2/13/2010"),gb.month,-37) >>>> >>>> It seems that any combination of Date and Interval that results in a >>>> date of January 2007 causes an "Invalid Date" error. For example, the >>>> following are all invalid: >>>> DateAdd(cdate("1/13/2010"),gb.month,-36) >>>> DateAdd(cdate("2/28/2010"),gb.month,-37) >>>> DateAdd(cdate("3/13/2010"),gb.month,-38) >>>> >>>> Changing the starting date or the number of intervals so as to have a >>>> date that falls outside the month of January 2007 works okay. It also >>>> works okay using periods of Year or Week that fall into those dates. >>>> >>>> ======= >>>> >>>> System information: >>>> >>>> Gambas Version 2.13 >>>> Components in project: gb.db, gb.db.form, gb.form, gb.gui, gb.settings, >>>> gb.vb >>>> >>>> OS: Ubuntu 9.10 Karmic Koala; Kernel 2.6.31-19-generic-pae >>>> GNOME 2.28.1 >>>> >>>> Hardware: Intel Core 2 Duo processor (E8400) >>>> >>> The bug has been fixed in revision #2697. >>> >>> Regards, >>> >>> -- >>> Beno?t Minisini >>> >> This is a reply to and old post, but I'd gone off onto other projects, >> and am just revisiting this... >> >> I am currently running version 2.22.0 and am still getting the error >> described above. If the bug had been fixed in an earlier version, it >> seems to have crept back in. >> >> My Ubuntu version is currently 10.04 LTS (Lucid Lynx) >> >> Thanks, >> >> -George >> >> > Can anyone reproduce that? > > I can't. I get the correct result each time with gambas 2.22.0. > > ?DateAdd(cdate("1/13/2010"),gb.month,-36) > 13/01/07 > ?DateAdd(cdate("2/28/2010"),gb.month,-37) > 28/01/07 > ?DateAdd(cdate("3/13/2010"),gb.month,-38) > 13/01/07 > > Gambas 2.19/64 Suse11.3 locale Hong Kong: PRINT DateAdd(CDate("2/13/2010"), gb.month, -36) PRINT DateAdd(CDate("3/28/2010"), gb.month, -37) PRINT DateAdd(CDate("4/13/2010"), gb.month, -38) produces 13/02/07 28/02/07 13/02/07 whereas PRINT DateAdd(CDate("1/13/2010"), gb.month, -36) PRINT DateAdd(CDate("2/28/2010"), gb.month, -37) PRINT DateAdd(CDate("3/13/2010"), gb.month, -38) all produce an invalid date error. Regards Werner From wdahn at ...1000... Sat Dec 4 18:22:43 2010 From: wdahn at ...1000... (Werner) Date: Sun, 05 Dec 2010 01:22:43 +0800 Subject: [Gambas-user] BUG: Problem with DateAdd function In-Reply-To: <4CFA7593.7090905@...1000...> References: <4B76F4DD.5060001@...2377...> <201002132051.35580.gambas@...1...> <201012041737.15101.gambas@...1...> <4CFA7593.7090905@...1000...> Message-ID: <4CFA78E3.30803@...1000...> On 05/12/10 01:08, Werner wrote: > On 05/12/10 00:37, Beno?t Minisini wrote: > >>> 2010/2/13 Beno?t Minisini : >>> >>> >>>>> I've run into a strange problem with the DateAdd function, when trying >>>>> to subtract from the current date by months. >>>>> >>>>> I initially hit the problem with the following (values are hard-coded >>>>> for clarity): >>>>> DateAdd(cdate("2/13/2010"),gb.month,-37) >>>>> >>>>> It seems that any combination of Date and Interval that results in a >>>>> date of January 2007 causes an "Invalid Date" error. For example, the >>>>> following are all invalid: >>>>> DateAdd(cdate("1/13/2010"),gb.month,-36) >>>>> DateAdd(cdate("2/28/2010"),gb.month,-37) >>>>> DateAdd(cdate("3/13/2010"),gb.month,-38) >>>>> >>>>> Changing the starting date or the number of intervals so as to have a >>>>> date that falls outside the month of January 2007 works okay. It also >>>>> works okay using periods of Year or Week that fall into those dates. >>>>> >>>>> ======= >>>>> >>>>> System information: >>>>> >>>>> Gambas Version 2.13 >>>>> Components in project: gb.db, gb.db.form, gb.form, gb.gui, gb.settings, >>>>> gb.vb >>>>> >>>>> OS: Ubuntu 9.10 Karmic Koala; Kernel 2.6.31-19-generic-pae >>>>> GNOME 2.28.1 >>>>> >>>>> Hardware: Intel Core 2 Duo processor (E8400) >>>>> >>>>> >>>> The bug has been fixed in revision #2697. >>>> >>>> Regards, >>>> >>>> -- >>>> Beno?t Minisini >>>> >>>> >>> This is a reply to and old post, but I'd gone off onto other projects, >>> and am just revisiting this... >>> >>> I am currently running version 2.22.0 and am still getting the error >>> described above. If the bug had been fixed in an earlier version, it >>> seems to have crept back in. >>> >>> My Ubuntu version is currently 10.04 LTS (Lucid Lynx) >>> >>> Thanks, >>> >>> -George >>> >>> >>> >> Can anyone reproduce that? >> >> I can't. I get the correct result each time with gambas 2.22.0. >> >> ?DateAdd(cdate("1/13/2010"),gb.month,-36) >> 13/01/07 >> ?DateAdd(cdate("2/28/2010"),gb.month,-37) >> 28/01/07 >> ?DateAdd(cdate("3/13/2010"),gb.month,-38) >> 13/01/07 >> >> >> > Gambas 2.19/64 Suse11.3 locale Hong Kong: > > PRINT DateAdd(CDate("2/13/2010"), gb.month, -36) > PRINT DateAdd(CDate("3/28/2010"), gb.month, -37) > PRINT DateAdd(CDate("4/13/2010"), gb.month, -38) > produces > 13/02/07 > 28/02/07 > 13/02/07 > > whereas > PRINT DateAdd(CDate("1/13/2010"), gb.month, -36) > PRINT DateAdd(CDate("2/28/2010"), gb.month, -37) > PRINT DateAdd(CDate("3/13/2010"), gb.month, -38) > all produce an invalid date error. > > Regards > Werner > Forgot to mention it works in Gambas3 version 3293. From gambas at ...1... Sat Dec 4 18:27:25 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sat, 4 Dec 2010 18:27:25 +0100 Subject: [Gambas-user] BUG: Problem with DateAdd function In-Reply-To: <4CFA78E3.30803@...1000...> References: <4B76F4DD.5060001@...2377...> <4CFA7593.7090905@...1000...> <4CFA78E3.30803@...1000...> Message-ID: <201012041827.25633.gambas@...1...> > > > > Gambas 2.19/64 Suse11.3 locale Hong Kong: > > > > PRINT DateAdd(CDate("2/13/2010"), gb.month, -36) > > PRINT DateAdd(CDate("3/28/2010"), gb.month, -37) > > PRINT DateAdd(CDate("4/13/2010"), gb.month, -38) > > produces > > 13/02/07 > > 28/02/07 > > 13/02/07 > > > > whereas > > PRINT DateAdd(CDate("1/13/2010"), gb.month, -36) > > PRINT DateAdd(CDate("2/28/2010"), gb.month, -37) > > PRINT DateAdd(CDate("3/13/2010"), gb.month, -38) > > all produce an invalid date error. > > > > Regards > > Werner > > Forgot to mention it works in Gambas3 version 3293. > All that is normal, as the bug has been fixed in 2.20! Regards, -- Beno?t Minisini From gambas at ...2377... Sat Dec 4 22:50:59 2010 From: gambas at ...2377... (George) Date: Sat, 4 Dec 2010 16:50:59 -0500 Subject: [Gambas-user] BUG: Problem with DateAdd function In-Reply-To: <201012041827.25633.gambas@...1...> References: <4B76F4DD.5060001@...2377...> <4CFA7593.7090905@...1000...> <4CFA78E3.30803@...1000...> <201012041827.25633.gambas@...1...> Message-ID: 2010/12/4 Beno?t Minisini : >> > >> > Gambas 2.19/64 Suse11.3 locale Hong Kong: >> > >> > PRINT DateAdd(CDate("2/13/2010"), gb.month, -36) >> > PRINT DateAdd(CDate("3/28/2010"), gb.month, -37) >> > PRINT DateAdd(CDate("4/13/2010"), gb.month, -38) >> > produces >> > 13/02/07 >> > 28/02/07 >> > 13/02/07 >> > >> > whereas >> > PRINT DateAdd(CDate("1/13/2010"), gb.month, -36) >> > PRINT DateAdd(CDate("2/28/2010"), gb.month, -37) >> > PRINT DateAdd(CDate("3/13/2010"), gb.month, -38) >> > all produce an invalid date error. >> > >> > Regards >> > Werner >> >> Forgot to mention it works in Gambas3 version 3293. >> > > All that is normal, as the bug has been fixed in 2.20! > > Regards, > > -- > Beno?t Minisini > But then why am I getting the 'invalid date' error in 2.22? And more importantly, what do I need to do to correct it? From mdavies5 at ...169... Sun Dec 5 00:22:34 2010 From: mdavies5 at ...169... (Michael) Date: Sun, 05 Dec 2010 10:22:34 +1100 Subject: [Gambas-user] First look at Gambas 3 In-Reply-To: <201012041721.34481.gambas@...1...> References: <15973_1291285925_4CF775A5_15973_37998_2_168370D075CE7F4EBFEEF36949F895472A85DC1F43@...2515...> <201012030043.56878.gambas@...1...> <4CF869B5.60600@...169...> <201012041721.34481.gambas@...1...> Message-ID: <4CFACD3A.4060001@...169...> Benoit Thanks for your help. I attach 2 screenshots showing the color selectors which appear from Form/Properties/Background. They appear to use different color palettes. Gambas2 palette is similar to the default Desktop theme used in Ubuntu Maverick which was valid when I installed Gambas2. The Gambas3 palette is similar to my current desktop theme. Interestingly note also the different sizes of the dialog. Both screen shots taken on same machine at same resolution. As a general rule the move from 2 to 3 has detracted from the UI beauty. However, that is a subjective opinion, others may disagree. Regards Michael On 05/12/10 03:21, Beno?t Minisini wrote: >> Benoit, >> The output from Valgrind is attached. I added the leak-check option to >> give you more information. > Thanks, but there is no memory access error reported in your valgrind log. Can > you check that you ran it in the same context? > >> The application was just automatically >> generated by Gambas 3 with Fform to which I added 1 menu item with no >> action code. The same bug appears in an app I ported from gambas2. >> >> On unrelated matters re: Porting from Gambas 2 to Gambas 3. I have the >> following problems. >> 1. The color options offered in Gambas 3 are different to Gambas 2. All >> my pale blue forms are now pink. > Can you give me a more precise example? > >> 2. I used font Ubuntu +1 for QT text boxes in G2. In Gambas 3 the same >> font appears huge. I had to change it to ubuntu -1. In a Frame control >> the font is always bold in G3 but in G2 I could set it to 'normal' >> without problem. > All font size "+1,-1,+2..." are relative to the default font size, which may > be not the same between Gambas 2 (that uses Qt3) and Gambas 3 (that uses Qt4). > To check that, you must configure your Qt library with the qtconfig program. > The way to install and run it depends on the distribution. > >> 3. All the forms copied from G2 were reduced in size. This was probably >> caused by the Desktop.Height which I use to format forms based on video >> resolution. > No. The form and controls dimensions are proportional to the default font > height. The multiplication factor has changed in Gambas 3 and is lower. If you > need absolute dimensions in a form, set the Form.Scaled property to False in > the IDE. > >> My system is 1680*1050 resolution and G2 reports >> Desktop.height as 1050. G3 reports desktop height as 1002! The desktop >> width is reported correctly. Have you changed the method of measuring >> desktop.height? > No. Desktop.Width and Desktop.Height actually returns the screen size, unless > you use the gb.desktop component. Then they return the usable screen size, > which is the screen size minus the desktop panels dimensions. > > I admit that keeping the same names is a stupid idea. Maybe I will change the > gb.desktop component, and use other names. > > Regards, > -------------- next part -------------- A non-text attachment was scrubbed... Name: Gambas2.png Type: image/png Size: 18178 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Gambas3.png Type: image/png Size: 43382 bytes Desc: not available URL: From gambas at ...1... Sun Dec 5 01:16:47 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sun, 5 Dec 2010 01:16:47 +0100 Subject: [Gambas-user] BUG: Problem with DateAdd function In-Reply-To: References: <4B76F4DD.5060001@...2377...> <201012041827.25633.gambas@...1...> Message-ID: <201012050116.47524.gambas@...1...> > > But then why am I getting the 'invalid date' error in 2.22? And more > importantly, what do I need to do to correct it? > That is the question! Check first that you really have Gambas 2.22 installed, and that you run it. To do that, run "gbx2 -V" in a terminal. You will get the interpreter version. Regards, -- Beno?t Minisini From mdavies5 at ...169... Sun Dec 5 01:33:55 2010 From: mdavies5 at ...169... (Michael) Date: Sun, 05 Dec 2010 11:33:55 +1100 Subject: [Gambas-user] First look at Gambas 3 In-Reply-To: <201012041721.34481.gambas@...1...> References: <15973_1291285925_4CF775A5_15973_37998_2_168370D075CE7F4EBFEEF36949F895472A85DC1F43@...2515...> <201012030043.56878.gambas@...1...> <4CF869B5.60600@...169...> <201012041721.34481.gambas@...1...> Message-ID: <4CFADDF3.80901@...169...> Hi Benoit, Sorry to bother you again. I have installed QtConfig and found I could change my default 'Background' color, which I did to HD3DFEB. This then appeared in my Gambas3 color dialog but the behaviour is very different with QT4 and GTK components. This explains my earlier problem with different color palettes for Gambas 2 and 3. I am guessing that QT configures itself to the system palette at the time of installation and does not reconfigure when your theme is changed. Hence the need for QTConfig. The other thing I discovered is that, if you change the system colors in the QT color dialog then they only work for QT components. GTK components will use the OS color scheme unless you specify a Custom color in the color dialog. SO I understand how it works and can work around any problems. Perhaps, as a newcomer to Gambas, you can explain why we have GTK and QT libraries as they seem to duplicate each other. Is it just personal choice? I used QT in Gambas 2 as I needed the Printer object but I switched to GTK in Gambas3. Regards Michael On 05/12/10 03:21, Beno?t Minisini wrote: > > All font size "+1,-1,+2..." are relative to the default font size, which may > be not the same between Gambas 2 (that uses Qt3) and Gambas 3 (that uses Qt4). > To check that, you must configure your Qt library with the qtconfig program. > The way to install and run it depends on the distribution. > From gambas at ...1... Sun Dec 5 01:42:07 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sun, 5 Dec 2010 01:42:07 +0100 Subject: [Gambas-user] First look at Gambas 3 In-Reply-To: <4CFADDF3.80901@...169...> References: <15973_1291285925_4CF775A5_15973_37998_2_168370D075CE7F4EBFEEF36949F895472A85DC1F43@...2515...> <201012041721.34481.gambas@...1...> <4CFADDF3.80901@...169...> Message-ID: <201012050142.07874.gambas@...1...> > Hi Benoit, > Sorry to bother you again. I have installed QtConfig and found I could > change my default 'Background' color, which I did to HD3DFEB. This then > appeared in my Gambas3 color dialog but the behaviour is very different > with QT4 and GTK components. This explains my earlier problem with > different color palettes for Gambas 2 and 3. I am guessing that QT > configures itself to the system palette at the time of installation and > does not reconfigure when your theme is changed. Hence the need for > QTConfig. > The other thing I discovered is that, if you change the system colors in > the QT color dialog then they only work for QT components. GTK > components will use the OS color scheme unless you specify a Custom > color in the color dialog. > SO I understand how it works and can work around any problems. > Perhaps, as a newcomer to Gambas, you can explain why we have GTK and QT > libraries as they seem to duplicate each other. Is it just personal > choice? I used QT in Gambas 2 as I needed the Printer object but I > switched to GTK in Gambas3. > Regards > Michael > By having a QT and a GTK+ component that share the same interface: 1) You can write your program, and change the GUI as you like. 2) By using the gb.gui component, your program will use GTK+ on Gnome and QT on KDE. Of course, as GTK+ and QT are very different, the two Gambas components cannot behave 100% identical, and sometimes one have a bug that the other one don't have. But I try to make them identical as much as possible, so do not hesitate to report when they behave differently. Regards, -- Beno?t Minisini From ea7dfh at ...2382... Sun Dec 5 12:31:59 2010 From: ea7dfh at ...2382... (EA7DFH) Date: Sun, 05 Dec 2010 12:31:59 +0100 Subject: [Gambas-user] BUG: Problem with DateAdd function In-Reply-To: <201012050116.47524.gambas@...1...> References: <4B76F4DD.5060001@...2377...> <201012041827.25633.gambas@...1...> <201012050116.47524.gambas@...1...> Message-ID: <4CFB782F.7050304@...2382...> El 05/12/10 01:16, Beno?t Minisini escribi?: >> >> But then why am I getting the 'invalid date' error in 2.22? And more >> importantly, what do I need to do to correct it? >> > > That is the question! > > Check first that you really have Gambas 2.22 installed, and that you run it. > To do that, run "gbx2 -V" in a terminal. You will get the interpreter version. > > Regards, > Also, make sure you did uninstalled previous versions of Gambas2. If I recall well, Gambas2 2.13 were installed in your system previously. Since the install locations of Gambas is different whether you install it from repositories or manually compiled (/usr/bin and /usr/local/bin respectively) may be you still have both of them in your system, with unpredictable behaviors. Regards, -- Jesus, EA7DFH From tobiasboe1 at ...20... Sun Dec 5 17:45:44 2010 From: tobiasboe1 at ...20... (tobias) Date: Sun, 05 Dec 2010 17:45:44 +0100 Subject: [Gambas-user] Connection.Tables Message-ID: <4CFBC1B8.70104@...20...> hi, i noticed something in my test with Connection.Edit() (sqlite3): i created a table with connection.exec() hConnection.Exec("create table test(id integer primary key, name varchar(10));") then inserted some data hConnection.Exec("insert into test(name) values(\"Aaron\");") hConnection.Exec("insert into test(name) values('Zacharias');") now, because i thought, this is the only way to prevent the error "table test has no primary key", i set the primary key property of the table object: hConnection.Tables["test"].PrimaryKey = ["id"] not this brought me "Read-only property". is this because i created the table via exec() and there is no synchronization (possible)? regards, tobi From gambas at ...1... Sun Dec 5 19:04:25 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sun, 5 Dec 2010 19:04:25 +0100 Subject: [Gambas-user] Connection.Tables In-Reply-To: <4CFBC1B8.70104@...20...> References: <4CFBC1B8.70104@...20...> Message-ID: <201012051904.25228.gambas@...1...> > hi, > i noticed something in my test with Connection.Edit() (sqlite3): > i created a table with connection.exec() > > hConnection.Exec("create table test(id integer primary key, name > varchar(10));") > > then inserted some data > hConnection.Exec("insert into test(name) values(\"Aaron\");") > hConnection.Exec("insert into test(name) values('Zacharias');") > > now, because i thought, this is the only way to prevent the error "table > test has no primary key", i set the primary key property of the table > object: > hConnection.Tables["test"].PrimaryKey = ["id"] > > not this brought me "Read-only property". > is this because i created the table via exec() and there is no > synchronization (possible)? > > regards, > tobi > You can't update the primary index of a table once it has been created anyway. I have understood where the bug with primary key comes from. It is just a matter of case: write "integer" in upper case, and the database driver will detect the primary key! To understand all that, you must be aware that SQLite is a non-typed database, i.e. the field datatypes given in the CREATE TABLE statement are mostly ignored. A SQLite field can hold any datatype, whatever its definition! "Mostly", because there is a big exception: if you declare a field as "integer primary key", you actually declare a 64 bits integer-only field that will increment automatically as each record creation. And this special primary key does not appear in the index list returned by SQLite (because it is actually an index present in each table, named "rowid"). See http://www.sqlite.org/lang_createtable.html for more information. To detect it, I added a test on the table SQL declaration: if I don't see any index in the table, and if the table has an integer field, I assume it is the primary key. The test is not perfect yet (a table could have an "integer" field and no primary key), but, more important, it was buggy, as it assumed that "integer" was written in upper case! I will fix that in the next revision, and your "id integer primary key" will be correctly detected as the primary key of the table. Note that if you create your table by using the Gambas interface, and not by sending "CREATE TABLE" statements directly, you won't have the problem, because Gambas only uses "integer" when creating an autoincrement integer field. For all other integer fields, it uses "INT4". Regards, -- Beno?t Minisini From tobiasboe1 at ...20... Sun Dec 5 19:12:26 2010 From: tobiasboe1 at ...20... (tobias) Date: Sun, 05 Dec 2010 19:12:26 +0100 Subject: [Gambas-user] Connection.Tables In-Reply-To: <201012051904.25228.gambas@...1...> References: <4CFBC1B8.70104@...20...> <201012051904.25228.gambas@...1...> Message-ID: <4CFBD60A.60709@...20...> Beno?t Minisini schrieb: >> hi, >> i noticed something in my test with Connection.Edit() (sqlite3): >> i created a table with connection.exec() >> >> hConnection.Exec("create table test(id integer primary key, name >> varchar(10));") >> >> then inserted some data >> hConnection.Exec("insert into test(name) values(\"Aaron\");") >> hConnection.Exec("insert into test(name) values('Zacharias');") >> >> now, because i thought, this is the only way to prevent the error "table >> test has no primary key", i set the primary key property of the table >> object: >> hConnection.Tables["test"].PrimaryKey = ["id"] >> >> not this brought me "Read-only property". >> is this because i created the table via exec() and there is no >> synchronization (possible)? >> >> regards, >> tobi >> > > You can't update the primary index of a table once it has been created anyway. > > I have understood where the bug with primary key comes from. It is just a > matter of case: write "integer" in upper case, and the database driver will > detect the primary key! > > To understand all that, you must be aware that SQLite is a non-typed database, > i.e. the field datatypes given in the CREATE TABLE statement are mostly > ignored. A SQLite field can hold any datatype, whatever its definition! > > "Mostly", because there is a big exception: if you declare a field as "integer > primary key", you actually declare a 64 bits integer-only field that will > increment automatically as each record creation. And this special primary key > does not appear in the index list returned by SQLite (because it is actually > an index present in each table, named "rowid"). > > See http://www.sqlite.org/lang_createtable.html for more information. > > To detect it, I added a test on the table SQL declaration: if I don't see any > index in the table, and if the table has an integer field, I assume it is the > primary key. > > The test is not perfect yet (a table could have an "integer" field and no > primary key), but, more important, it was buggy, as it assumed that "integer" > was written in upper case! > > I will fix that in the next revision, and your "id integer primary key" will > be correctly detected as the primary key of the table. > > Note that if you create your table by using the Gambas interface, and not by > sending "CREATE TABLE" statements directly, you won't have the problem, > because Gambas only uses "integer" when creating an autoincrement integer > field. For all other integer fields, it uses "INT4". > > Regards, > oh, thank you very very much. this will correct all my problems. of course, i use the gambas interface in serious programs but this method exists too and i try my best to document and discover everything ;-) thank you, tobi From gambas at ...1... Sun Dec 5 19:26:14 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sun, 5 Dec 2010 19:26:14 +0100 Subject: [Gambas-user] GB3, Paint.CurveTo In-Reply-To: <201012040935.34667.wally@...2037...> References: <201012040935.34667.wally@...2037...> Message-ID: <201012051926.14531.gambas@...1...> > Hello, > i want to paint a graph from numerical data using CurveTo. > CurveTo expects 3 points (p1,p2,p3) where p1 == (x1,y1) > If i want to advance in curve plotting i have to add a p4,p5,...pn. > Do i need always to provide the additional point by repeating the > recently added 2 points or is there a smarter not redundant way ? > Paint.CurveTo(p1,p2,p3) > Paint.CurveTo(p2,p3,p4) > PAit.CurveTo(p3,p4,p5) > ..... a.s.o. > Wjere can i find some cairo example code ? > > Cheers wally > The cairo doc says: ? Adds a cubic B?zier spline to the path from the current point to position (X3, Y3) in user-space coordinates, using (X1, Y1) and (X2, Y2) as the control points. After this call the current point will be (X3, Y3). If there is no current point before the call to Cairo.CurveTo this function will behave as if preceded by a call to Cairo.MoveTo(X1, Y1). ? That means that you are drawing a curve between the current point and p3, and then p3 becomes the current point. p1 and p2 are used as control points for the bezier spline. If there is no current point (i.e. it's your first drawing instruction), then the spline starts at p1. Regards, -- Beno?t Minisini From tobiasboe1 at ...20... Sun Dec 5 19:50:51 2010 From: tobiasboe1 at ...20... (tobias) Date: Sun, 05 Dec 2010 19:50:51 +0100 Subject: [Gambas-user] Connection.Tables In-Reply-To: <4CFBD60A.60709@...20...> References: <4CFBC1B8.70104@...20...> <201012051904.25228.gambas@...1...> <4CFBD60A.60709@...20...> Message-ID: <4CFBDF0B.2040302@...20...> >> You can't update the primary index of a table once it has been created anyway. >> >> I have understood where the bug with primary key comes from. It is just a >> matter of case: write "integer" in upper case, and the database driver will >> detect the primary key! >> >> To understand all that, you must be aware that SQLite is a non-typed database, >> i.e. the field datatypes given in the CREATE TABLE statement are mostly >> ignored. A SQLite field can hold any datatype, whatever its definition! >> >> "Mostly", because there is a big exception: if you declare a field as "integer >> primary key", you actually declare a 64 bits integer-only field that will >> increment automatically as each record creation. And this special primary key >> does not appear in the index list returned by SQLite (because it is actually >> an index present in each table, named "rowid"). >> >> See http://www.sqlite.org/lang_createtable.html for more information. >> >> To detect it, I added a test on the table SQL declaration: if I don't see any >> index in the table, and if the table has an integer field, I assume it is the >> primary key. >> >> The test is not perfect yet (a table could have an "integer" field and no >> primary key), but, more important, it was buggy, as it assumed that "integer" >> was written in upper case! >> >> I will fix that in the next revision, and your "id integer primary key" will >> be correctly detected as the primary key of the table. >> >> Note that if you create your table by using the Gambas interface, and not by >> sending "CREATE TABLE" statements directly, you won't have the problem, >> because Gambas only uses "integer" when creating an autoincrement integer >> field. For all other integer fields, it uses "INT4". >> >> Regards, >> to be correct, that revision is this about? i couldn't find it in the ide? From gambas at ...1... Sun Dec 5 19:53:13 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sun, 5 Dec 2010 19:53:13 +0100 Subject: [Gambas-user] Connection.Tables In-Reply-To: <4CFBDF0B.2040302@...20...> References: <4CFBC1B8.70104@...20...> <4CFBD60A.60709@...20...> <4CFBDF0B.2040302@...20...> Message-ID: <201012051953.13332.gambas@...1...> > >> You can't update the primary index of a table once it has been created > >> anyway. > >> > >> I have understood where the bug with primary key comes from. It is just > >> a matter of case: write "integer" in upper case, and the database > >> driver will detect the primary key! > >> > >> To understand all that, you must be aware that SQLite is a non-typed > >> database, i.e. the field datatypes given in the CREATE TABLE statement > >> are mostly ignored. A SQLite field can hold any datatype, whatever its > >> definition! > >> > >> "Mostly", because there is a big exception: if you declare a field as > >> "integer primary key", you actually declare a 64 bits integer-only > >> field that will increment automatically as each record creation. And > >> this special primary key does not appear in the index list returned by > >> SQLite (because it is actually an index present in each table, named > >> "rowid"). > >> > >> See http://www.sqlite.org/lang_createtable.html for more information. > >> > >> To detect it, I added a test on the table SQL declaration: if I don't > >> see any index in the table, and if the table has an integer field, I > >> assume it is the primary key. > >> > >> The test is not perfect yet (a table could have an "integer" field and > >> no primary key), but, more important, it was buggy, as it assumed that > >> "integer" was written in upper case! > >> > >> I will fix that in the next revision, and your "id integer primary key" > >> will be correctly detected as the primary key of the table. > >> > >> Note that if you create your table by using the Gambas interface, and > >> not by sending "CREATE TABLE" statements directly, you won't have the > >> problem, because Gambas only uses "integer" when creating an > >> autoincrement integer field. For all other integer fields, it uses > >> "INT4". > >> > >> Regards, > > to be correct, that revision is this about? i couldn't find it in the ide? > I said I *will* fix the bug. It is not yet committed! -- Beno?t Minisini From tobiasboe1 at ...20... Sun Dec 5 20:02:07 2010 From: tobiasboe1 at ...20... (tobias) Date: Sun, 05 Dec 2010 20:02:07 +0100 Subject: [Gambas-user] Connection.Tables In-Reply-To: <201012051953.13332.gambas@...1...> References: <4CFBC1B8.70104@...20...> <4CFBD60A.60709@...20...> <4CFBDF0B.2040302@...20...> <201012051953.13332.gambas@...1...> Message-ID: <4CFBE1AF.3010403@...20...> Beno?t Minisini schrieb: >>>> You can't update the primary index of a table once it has been created >>>> anyway. >>>> >>>> I have understood where the bug with primary key comes from. It is just >>>> a matter of case: write "integer" in upper case, and the database >>>> driver will detect the primary key! >>>> >>>> To understand all that, you must be aware that SQLite is a non-typed >>>> database, i.e. the field datatypes given in the CREATE TABLE statement >>>> are mostly ignored. A SQLite field can hold any datatype, whatever its >>>> definition! >>>> >>>> "Mostly", because there is a big exception: if you declare a field as >>>> "integer primary key", you actually declare a 64 bits integer-only >>>> field that will increment automatically as each record creation. And >>>> this special primary key does not appear in the index list returned by >>>> SQLite (because it is actually an index present in each table, named >>>> "rowid"). >>>> >>>> See http://www.sqlite.org/lang_createtable.html for more information. >>>> >>>> To detect it, I added a test on the table SQL declaration: if I don't >>>> see any index in the table, and if the table has an integer field, I >>>> assume it is the primary key. >>>> >>>> The test is not perfect yet (a table could have an "integer" field and >>>> no primary key), but, more important, it was buggy, as it assumed that >>>> "integer" was written in upper case! >>>> >>>> I will fix that in the next revision, and your "id integer primary key" >>>> will be correctly detected as the primary key of the table. >>>> >>>> Note that if you create your table by using the Gambas interface, and >>>> not by sending "CREATE TABLE" statements directly, you won't have the >>>> problem, because Gambas only uses "integer" when creating an >>>> autoincrement integer field. For all other integer fields, it uses >>>> "INT4". >>>> >>>> Regards, >> to be correct, that revision is this about? i couldn't find it in the ide? >> > > I said I *will* fix the bug. It is not yet committed! > hmm, can you kindly tell me the revision number after it was done? From gambas at ...1... Sun Dec 5 21:18:43 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sun, 5 Dec 2010 21:18:43 +0100 Subject: [Gambas-user] Connection.Tables In-Reply-To: <4CFBE1AF.3010403@...20...> References: <4CFBC1B8.70104@...20...> <201012051953.13332.gambas@...1...> <4CFBE1AF.3010403@...20...> Message-ID: <201012052118.43573.gambas@...1...> > Beno?t Minisini schrieb: > >>>> You can't update the primary index of a table once it has been created > >>>> anyway. > >>>> > >>>> I have understood where the bug with primary key comes from. It is > >>>> just a matter of case: write "integer" in upper case, and the > >>>> database driver will detect the primary key! > >>>> > >>>> To understand all that, you must be aware that SQLite is a non-typed > >>>> database, i.e. the field datatypes given in the CREATE TABLE statement > >>>> are mostly ignored. A SQLite field can hold any datatype, whatever its > >>>> definition! > >>>> > >>>> "Mostly", because there is a big exception: if you declare a field as > >>>> "integer primary key", you actually declare a 64 bits integer-only > >>>> field that will increment automatically as each record creation. And > >>>> this special primary key does not appear in the index list returned by > >>>> SQLite (because it is actually an index present in each table, named > >>>> "rowid"). > >>>> > >>>> See http://www.sqlite.org/lang_createtable.html for more information. > >>>> > >>>> To detect it, I added a test on the table SQL declaration: if I don't > >>>> see any index in the table, and if the table has an integer field, I > >>>> assume it is the primary key. > >>>> > >>>> The test is not perfect yet (a table could have an "integer" field and > >>>> no primary key), but, more important, it was buggy, as it assumed that > >>>> "integer" was written in upper case! > >>>> > >>>> I will fix that in the next revision, and your "id integer primary > >>>> key" will be correctly detected as the primary key of the table. > >>>> > >>>> Note that if you create your table by using the Gambas interface, and > >>>> not by sending "CREATE TABLE" statements directly, you won't have the > >>>> problem, because Gambas only uses "integer" when creating an > >>>> autoincrement integer field. For all other integer fields, it uses > >>>> "INT4". > >>>> > >>>> Regards, > >> > >> to be correct, that revision is this about? i couldn't find it in the > >> ide? > > > > I said I *will* fix the bug. It is not yet committed! > > hmm, can you kindly tell me the revision number after it was done? > Fix has been committed. You can now run "svn update" to get the fix. Regards, -- Beno?t Minisini From gambas at ...1... Sun Dec 5 21:19:32 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sun, 5 Dec 2010 21:19:32 +0100 Subject: [Gambas-user] Gambas3 Printing In-Reply-To: <201012041706.23464.gambas@...1...> References: <15973_1291285925_4CF775A5_15973_37998_2_168370D075CE7F4EBFEEF36949F895472A85DC1F43@...2515...> <4CFA2A17.90302@...169...> <201012041706.23464.gambas@...1...> Message-ID: <201012052119.32350.gambas@...1...> > > And there is another bug in gb.qt4 printing: the font size is not > resolution independant, whereas it should be the contrary according the > documentation (i.e. a 50 points font is very small, as if its height is > actually 50 pixels.). I must investigate too... > The font size bug when printing has been fixed in revision #3344. Regards, -- Beno?t Minisini From wally at ...2037... Mon Dec 6 17:07:10 2010 From: wally at ...2037... (wally) Date: Mon, 6 Dec 2010 17:07:10 +0100 Subject: [Gambas-user] gambas3 print image Message-ID: <201012061707.10555.wally@...2037...> Hello, may anybody be so kind and post a code snippet how to print an image to the printer. An url to an examplecode is also highly welcome. Thanks. wally From tobiasboe1 at ...20... Mon Dec 6 17:13:58 2010 From: tobiasboe1 at ...20... (tobias) Date: Mon, 06 Dec 2010 17:13:58 +0100 Subject: [Gambas-user] Connection.Tables In-Reply-To: <201012052118.43573.gambas@...1...> References: <4CFBC1B8.70104@...20...> <201012051953.13332.gambas@...1...> <4CFBE1AF.3010403@...20...> <201012052118.43573.gambas@...1...> Message-ID: <4CFD0BC6.8000303@...20...> hi, > > Fix has been committed. You can now run "svn update" to get the fix. > > Regards, > > hmm, i used svn the first time ever and i didn't really know, what i was doing... i downloaded the source and just installed it... (ubuntu 9.04) i did: $ svn checkout https://gambas.svn.sourceforge.net/svnroot/gambas/gambas/branches/2.0 $ cd 2.0 $ ./reconf $ ./configure -C $ make ... gbc_trans.c: In Funktion ?read_integer?: gbc_trans.c:104: Fehler: ?LLONG_MAX? nicht deklariert (erste Benutzung in dieser Funktion) gbc_trans.c:104: Fehler: (Jeder nicht deklarierte Bezeichner wird nur einmal aufgef?hrt gbc_trans.c:104: Fehler: f?r jede Funktion in der er auftritt.) make[4]: *** [gbc2-gbc_trans.o] Fehler 1 make[4]: Verlasse Verzeichnis '/home/tobias/2.0/main/gbc' was raised. what did i do wrong? tobi From gambas.fr at ...626... Mon Dec 6 17:50:55 2010 From: gambas.fr at ...626... (Fabien Bodard) Date: Mon, 6 Dec 2010 17:50:55 +0100 Subject: [Gambas-user] gambas3 print image In-Reply-To: <201012061707.10555.wally@...2037...> References: <201012061707.10555.wally@...2037...> Message-ID: this the demo :) But Benoit please try it too :.. i've found some failure on the output : On gtk ... the picture is too big ! (like the font in the reports) On Qt ... nothing in the file neither in pdf nor in ps -- Fabien Bodard -------------- next part -------------- A non-text attachment was scrubbed... Name: Print_Picture-0.0.1.tar.gz Type: application/x-gzip Size: 17937 bytes Desc: not available URL: From wally at ...2037... Mon Dec 6 18:56:46 2010 From: wally at ...2037... (wally) Date: Mon, 6 Dec 2010 18:56:46 +0100 Subject: [Gambas-user] gambas3 print image Message-ID: <201012061856.46496.wally@...2037...> Fabian, your demo works nice if you swich off "gb.gui" and set "gb.gtk" instead. Doing same with gb.qt4 creates empty files. wally Hello Fabian, thank you for your quick reply. I aslo get empty pdf.files with your Demo. Not only blanc but empty zero-byte size file. I found this on the web , but do not really know how to work with this information: " Printer instances are Gambas objects, and as any other Gambas objects, you must provide an event name, otherwise you cannot catch their events. See the documentation on NEW in the wiki for the details. Regards, -- Beno?t Minisini " i tried somrthing like this:" Public myPrinter AS NEW Printer" and similar, but none creates a non-empty file. wally On Monday 06 December 2010 17:50:55 Fabien Bodard wrote: > this the demo :) > > > But Benoit please try it too :.. i've found some failure on the output : > > On gtk ... the picture is too big ! (like the font in the reports) > > On Qt ... nothing in the file neither in pdf nor in ps > > > -- > Fabien Bodard > From wally at ...2037... Mon Dec 6 18:44:10 2010 From: wally at ...2037... (wally) Date: Mon, 6 Dec 2010 18:44:10 +0100 Subject: [Gambas-user] gambas3 print image In-Reply-To: References: <201012061707.10555.wally@...2037...> Message-ID: <201012061844.10923.wally@...2037...> Hello Fabian, thank you for your quick reply. I aslo get empty pdf.files with your Demo. Not only blanc but empty zero-byte size file. I found this on the web , but do not really know how to work with this information: " Printer instances are Gambas objects, and as any other Gambas objects, you must provide an event name, otherwise you cannot catch their events. See the documentation on NEW in the wiki for the details. Regards, -- Beno?t Minisini " i tried somrthing like this:" Public myPrinter AS NEW Printer" and similar, but none creates a non-empty file. wally On Monday 06 December 2010 17:50:55 Fabien Bodard wrote: > this the demo :) > > > But Benoit please try it too :.. i've found some failure on the output : > > On gtk ... the picture is too big ! (like the font in the reports) > > On Qt ... nothing in the file neither in pdf nor in ps > > > -- > Fabien Bodard > From gambas at ...1... Mon Dec 6 23:48:35 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Mon, 6 Dec 2010 23:48:35 +0100 Subject: [Gambas-user] Connection.Tables In-Reply-To: <4CFD0BC6.8000303@...20...> References: <4CFBC1B8.70104@...20...> <201012052118.43573.gambas@...1...> <4CFD0BC6.8000303@...20...> Message-ID: <201012062348.35827.gambas@...1...> > hi, > > > Fix has been committed. You can now run "svn update" to get the fix. > > > > Regards, > > hmm, i used svn the first time ever and i didn't really know, what i was > doing... i downloaded the source and just installed it... > (ubuntu 9.04) i did: > $ svn checkout > https://gambas.svn.sourceforge.net/svnroot/gambas/gambas/branches/2.0 > > $ cd 2.0 > $ ./reconf > $ ./configure -C > $ make > ... > gbc_trans.c: In Funktion ?read_integer?: > gbc_trans.c:104: Fehler: ?LLONG_MAX? nicht deklariert (erste Benutzung > in dieser Funktion) > gbc_trans.c:104: Fehler: (Jeder nicht deklarierte Bezeichner wird nur > einmal aufgef?hrt > gbc_trans.c:104: Fehler: f?r jede Funktion in der er auftritt.) > make[4]: *** [gbc2-gbc_trans.o] Fehler 1 > make[4]: Verlasse Verzeichnis '/home/tobias/2.0/main/gbc' > > was raised. what did i do wrong? > > > tobi > It should be fixed in revision #3345. Regards, -- Beno?t Minisini From gambas at ...1... Tue Dec 7 00:01:40 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Tue, 7 Dec 2010 00:01:40 +0100 Subject: [Gambas-user] ODBC and MS SQL 2000 table existence test issue In-Reply-To: <1290302152.2149.17.camel@...2506...> References: <1290302152.2149.17.camel@...2506...> Message-ID: <201012070001.41018.gambas@...1...> > Greetings all, > I'm asking this question on behalf of a member of > http://www.gambasforum.com who can't access this mailing list as it's > blocked in his country for some reason ? > > The issue he is trying to resolve is: > > Using an ODBC connection to a MS SQL 2000 instance. > > He can connect. > He can list tables. > He can access data. > > The problem is that if he tries the table existence check below he > always gets a TRUE even if the table dose not exist. > > > bExist = FALSE > bExist = $hConn.Tables.Exist("test") > IF bExist THEN > Message.Info("exist") > ENDIF > > In the mean time , I have asked him to carefully check the perms on the > SQL server for the account he is accessing with to ensure that there are > no unusual settings applied. > > I'll post any suggestions back to his request thread. > > Thank you in advance. > > Ian Roper > Perth - Western Australia. > Sorry for the late answer! Can he try the revision #3346 (for Gambas 2)? I fixed a bug in the ODBC driver table existence check. Regards, -- Beno?t Minisini From gambas at ...1... Tue Dec 7 00:30:47 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Tue, 7 Dec 2010 00:30:47 +0100 Subject: [Gambas-user] gambas3 print image In-Reply-To: References: <201012061707.10555.wally@...2037...> Message-ID: <201012070030.47186.gambas@...1...> > this the demo :) > > > But Benoit please try it too :.. i've found some failure on the output : > > On gtk ... the picture is too big ! (like the font in the reports) > > On Qt ... nothing in the file neither in pdf nor in ps The Printer1.Count is zero by default on gb.qt4. You must set it to one so that at least one page is printed. I will fix that so that the number of pages is one by default as in gb.gtk. And the picture is not "too big". You use Image.Width and Image.Height as drawing dimension, so the result depends on the value of Paint.Width and Paint.Height, which are very different between gb.gtk and gb.qt4. I will try to make a Paint.DrawImage() utility function to help drawing images. Regards, -- Beno?t Minisini From gambas at ...1... Tue Dec 7 01:25:54 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Tue, 7 Dec 2010 01:25:54 +0100 Subject: [Gambas-user] gambas3 print image In-Reply-To: <201012070030.47186.gambas@...1...> References: <201012061707.10555.wally@...2037...> <201012070030.47186.gambas@...1...> Message-ID: <201012070125.54148.gambas@...1...> > > this the demo :) > > > > > > But Benoit please try it too :.. i've found some failure on the output : > > > > On gtk ... the picture is too big ! (like the font in the reports) > > > > On Qt ... nothing in the file neither in pdf nor in ps > > The Printer1.Count is zero by default on gb.qt4. You must set it to one so > that at least one page is printed. I will fix that so that the number of > pages is one by default as in gb.gtk. > > And the picture is not "too big". You use Image.Width and Image.Height as > drawing dimension, so the result depends on the value of Paint.Width and > Paint.Height, which are very different between gb.gtk and gb.qt4. > > I will try to make a Paint.DrawImage() utility function to help drawing > images. > > Regards, http://bugreports.qt.nokia.com/browse/QTBUG-5114 That Qt bug explain why printing images to PDF or PS does not work with gb.qt4! It is reported since October 2009. Weird... -- Beno?t Minisini From gambas at ...1... Tue Dec 7 01:30:13 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Tue, 7 Dec 2010 01:30:13 +0100 Subject: [Gambas-user] gambas3 print image In-Reply-To: <201012070125.54148.gambas@...1...> References: <201012061707.10555.wally@...2037...> <201012070030.47186.gambas@...1...> <201012070125.54148.gambas@...1...> Message-ID: <201012070130.13157.gambas@...1...> > > http://bugreports.qt.nokia.com/browse/QTBUG-5114 > > That Qt bug explain ^ /|\ s --------------------' -- Beno?t Minisini From gambas at ...1... Tue Dec 7 02:22:04 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Tue, 7 Dec 2010 02:22:04 +0100 Subject: [Gambas-user] gambas3 print image In-Reply-To: <201012070130.13157.gambas@...1...> References: <201012061707.10555.wally@...2037...> <201012070125.54148.gambas@...1...> <201012070130.13157.gambas@...1...> Message-ID: <201012070222.04801.gambas@...1...> > > http://bugreports.qt.nokia.com/browse/QTBUG-5114 > > > > That Qt bug explain > > ^ > /|\ > s --------------------' I finally found a workaround to that Qt bug in revision #3347. And I added a new Paint.DrawImage() function to easily paint images. And I fixed the default value of Printer.Count in gb.qt4 that is now one, so that at least one page is printed when calling Printer.Print(). Now printing should work the same on both gb.qt4 and gb.gtk. Regards, -- Beno?t Minisini From gambas at ...1... Tue Dec 7 02:31:19 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Tue, 7 Dec 2010 02:31:19 +0100 Subject: [Gambas-user] gambas3 print image In-Reply-To: <201012070222.04801.gambas@...1...> References: <201012061707.10555.wally@...2037...> <201012070130.13157.gambas@...1...> <201012070222.04801.gambas@...1...> Message-ID: <201012070231.19581.gambas@...1...> > > I finally found a workaround to that Qt bug in revision #3347. And I added > a new Paint.DrawImage() function to easily paint images. And I fixed the > default value of Printer.Count in gb.qt4 that is now one, so that at least > one page is printed when calling Printer.Print(). > > Now printing should work the same on both gb.qt4 and gb.gtk. > > Regards, And here is the updated image painting example. -- Beno?t Minisini -------------- next part -------------- A non-text attachment was scrubbed... Name: Print_Picture-0.0.2.tar.gz Type: application/x-compressed-tar Size: 18358 bytes Desc: not available URL: From gambas.fr at ...626... Tue Dec 7 14:30:46 2010 From: gambas.fr at ...626... (Fabien Bodard) Date: Tue, 7 Dec 2010 14:30:46 +0100 Subject: [Gambas-user] gambas3 print image In-Reply-To: <201012070231.19581.gambas@...1...> References: <201012061707.10555.wally@...2037...> <201012070130.13157.gambas@...1...> <201012070222.04801.gambas@...1...> <201012070231.19581.gambas@...1...> Message-ID: wouaaaa finally i've my paint.image :) !!! thank you :) Le 7 d?cembre 2010 02:31, Beno?t Minisini a ?crit : >> >> I finally found a workaround to that Qt bug in revision #3347. And I added >> a new Paint.DrawImage() function to easily paint images. And I fixed the >> default value of Printer.Count in gb.qt4 that is now one, so that at least >> one page is printed when calling Printer.Print(). >> >> Now printing should work the same on both gb.qt4 and gb.gtk. >> >> Regards, > > And here is the updated image painting example. > > -- > Beno?t Minisini > > ------------------------------------------------------------------------------ > What happens now with your Lotus Notes apps - do you make another costly > upgrade, or settle for being marooned without product support? Time to move > off Lotus Notes and onto the cloud with Force.com, apps are easier to build, > use, and manage than apps on traditional platforms. Sign up for the Lotus > Notes Migration Kit to learn more. http://p.sf.net/sfu/salesforce-d2d > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > -- Fabien Bodard From wally at ...2037... Tue Dec 7 16:46:28 2010 From: wally at ...2037... (wally) Date: Tue, 7 Dec 2010 16:46:28 +0100 Subject: [Gambas-user] gambas3 print image In-Reply-To: References: <201012061707.10555.wally@...2037...> <201012070231.19581.gambas@...1...> Message-ID: <201012071646.28573.wally@...2037...> Thank you also from my side. "Paint.DrawImage" is very cool :) wally On Tuesday 07 December 2010 14:30:46 Fabien Bodard wrote: > wouaaaa finally i've my paint.image :) !!! > > thank you :) > > Le 7 d?cembre 2010 02:31, Beno?t Minisini > a ?crit : > >> > >> I finally found a workaround to that Qt bug in revision #3347. And I added > >> a new Paint.DrawImage() function to easily paint images. And I fixed the > >> default value of Printer.Count in gb.qt4 that is now one, so that at least > >> one page is printed when calling Printer.Print(). > >> > >> Now printing should work the same on both gb.qt4 and gb.gtk. > >> > >> Regards, > > > > And here is the updated image painting example. > > > > -- > > Beno?t Minisini > > > > ------------------------------------------------------------------------------ > > What happens now with your Lotus Notes apps - do you make another costly > > upgrade, or settle for being marooned without product support? Time to move > > off Lotus Notes and onto the cloud with Force.com, apps are easier to build, > > use, and manage than apps on traditional platforms. Sign up for the Lotus > > Notes Migration Kit to learn more. http://p.sf.net/sfu/salesforce-d2d > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > > -- > Fabien Bodard > > ------------------------------------------------------------------------------ > What happens now with your Lotus Notes apps - do you make another costly > upgrade, or settle for being marooned without product support? Time to move > off Lotus Notes and onto the cloud with Force.com, apps are easier to build, > use, and manage than apps on traditional platforms. Sign up for the Lotus > Notes Migration Kit to learn more. http://p.sf.net/sfu/salesforce-d2d > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From nando_f at ...951... Tue Dec 7 18:48:00 2010 From: nando_f at ...951... (nando) Date: Tue, 7 Dec 2010 13:48:00 -0400 Subject: [Gambas-user] Gambas 2 question Message-ID: <20101207174420.M38235@...951...> Benoit In my debugging, I was doing... PRINT "IN", 'at the beginning of a routine . . . . . . PRINT "OUT" 'at the end so I could track and detect flow. the first line does a \n in all cases even though it has a trailing comma. Normally, the comma didn't do a New Line. It correctly does a tab. ?? -Fernando From gambas at ...1... Tue Dec 7 18:52:03 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Tue, 7 Dec 2010 18:52:03 +0100 Subject: [Gambas-user] Gambas 2 question In-Reply-To: <20101207174420.M38235@...951...> References: <20101207174420.M38235@...951...> Message-ID: <201012071852.03629.gambas@...1...> > Benoit > > In my debugging, I was doing... > > PRINT "IN", 'at the beginning of a routine > . . . > . . . > PRINT "OUT" 'at the end > > so I could track and detect flow. > > the first line does a \n in all cases even though it has a trailing comma. > Normally, the comma didn't do a New Line. > It correctly does a tab. > > ?? > -Fernando > You mean that a comma at the end should does like a semicolon at the end: not printing a new line? -- Beno?t Minisini From wally at ...2037... Tue Dec 7 19:20:49 2010 From: wally at ...2037... (wally) Date: Tue, 7 Dec 2010 19:20:49 +0100 Subject: [Gambas-user] gambas3 print image 2nd Message-ID: <201012071920.49871.wally@...2037...> How to print a very wide image, lets say a spectrogram DinA4 Heigth and usually 5 or 6 sheets wide in landscaoe format ? Do i need to manage the page cutting manually in code or is there a more smart way ? Target should be few pages of printer output or a multipage PDF. cheers wally From nando_f at ...951... Tue Dec 7 19:56:49 2010 From: nando_f at ...951... (nando) Date: Tue, 7 Dec 2010 14:56:49 -0400 Subject: [Gambas-user] Gambas 2 question In-Reply-To: <201012071852.03629.gambas@...1...> References: <20101207174420.M38235@...951...> <201012071852.03629.gambas@...1...> Message-ID: <20101207185626.M7932@...951...> Correct. ---------- Original Message ----------- From: Beno?t Minisini To: nando_f at ...951..., mailing list for gambas users Sent: Tue, 7 Dec 2010 18:52:03 +0100 Subject: Re: [Gambas-user] Gambas 2 question > > Benoit > > > > In my debugging, I was doing... > > > > PRINT "IN", 'at the beginning of a routine > > . . . > > . . . > > PRINT "OUT" 'at the end > > > > so I could track and detect flow. > > > > the first line does a \n in all cases even though it has a trailing comma. > > Normally, the comma didn't do a New Line. > > It correctly does a tab. > > > > ?? > > -Fernando > > > > You mean that a comma at the end should does like a semicolon at the end: not > printing a new line? > > -- > Beno?t Minisini > > ------------------------------------------------------------------------------ > What happens now with your Lotus Notes apps - do you make another costly > upgrade, or settle for being marooned without product support? Time to move > off Lotus Notes and onto the cloud with Force.com, apps are easier to build, > use, and manage than apps on traditional platforms. Sign up for the Lotus > Notes Migration Kit to learn more. http://p.sf.net/sfu/salesforce-d2d > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user ------- End of Original Message ------- From wally at ...2037... Tue Dec 7 20:11:16 2010 From: wally at ...2037... (wally) Date: Tue, 7 Dec 2010 20:11:16 +0100 Subject: [Gambas-user] gambas3 print image 2nd In-Reply-To: <201012071920.49871.wally@...2037...> References: <201012071920.49871.wally@...2037...> Message-ID: <201012072011.17253.wally@...2037...> It works via "Printer1.Count = 8" but printing to PDF is extremely slow on my system. Few minutes for 8 PDF pages. Much slower than the real Printer creates output on paper. Thats the rerason i asked here. I did not aware, that pdf generation was still in process when i tried to load it to acroread. On Tuesday 07 December 2010 19:20:49 wally wrote: > > How to print a very wide image, lets say a spectrogram DinA4 Heigth and > usually 5 or 6 sheets wide in landscaoe format ? > Do i need to manage the page cutting manually in code or is there a more smart > way ? > Target should be few pages of printer output or a multipage PDF. > > cheers wally > > ------------------------------------------------------------------------------ > What happens now with your Lotus Notes apps - do you make another costly > upgrade, or settle for being marooned without product support? Time to move > off Lotus Notes and onto the cloud with Force.com, apps are easier to build, > use, and manage than apps on traditional platforms. Sign up for the Lotus > Notes Migration Kit to learn more. http://p.sf.net/sfu/salesforce-d2d > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Tue Dec 7 20:16:21 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Tue, 7 Dec 2010 20:16:21 +0100 Subject: [Gambas-user] gambas3 print image 2nd In-Reply-To: <201012072011.17253.wally@...2037...> References: <201012071920.49871.wally@...2037...> <201012072011.17253.wally@...2037...> Message-ID: <201012072016.21221.gambas@...1...> > It works via "Printer1.Count = 8" but printing to PDF is extremely slow > on my system. Few minutes for 8 PDF pages. Much slower than the real > Printer creates output on paper. Thats the rerason i asked here. > I did not aware, that pdf generation was still in process when i tried to > load it to acroread. > Maybe you did something wrong? (Using too big pictures for example) -- Beno?t Minisini From wally at ...2037... Tue Dec 7 20:27:25 2010 From: wally at ...2037... (wally) Date: Tue, 7 Dec 2010 20:27:25 +0100 Subject: [Gambas-user] gambas3 print image 2nd In-Reply-To: <201012072016.21221.gambas@...1...> References: <201012071920.49871.wally@...2037...> <201012072011.17253.wally@...2037...> <201012072016.21221.gambas@...1...> Message-ID: <201012072027.25975.wally@...2037...> Benoit, the image i want to print is created this way: "hPaper = New Image(6000, 300, Color.White)" On this image i paint my spectrogram data. I do some more experiments and assume i get it work as needed. Thank You :) By the way: Is any effort known to make a math lib available for Ganbas (e.g. GNU Scientific Library) ? Or are math examples available somewhere ? cheers wally On Tuesday 07 December 2010 20:16:21 Beno?t Minisini wrote: > > It works via "Printer1.Count = 8" but printing to PDF is extremely slow > > on my system. Few minutes for 8 PDF pages. Much slower than the real > > Printer creates output on paper. Thats the rerason i asked here. > > I did not aware, that pdf generation was still in process when i tried to > > load it to acroread. > > > > Maybe you did something wrong? (Using too big pictures for example) > > -- > Beno?t Minisini > > ------------------------------------------------------------------------------ > What happens now with your Lotus Notes apps - do you make another costly > upgrade, or settle for being marooned without product support? Time to move > off Lotus Notes and onto the cloud with Force.com, apps are easier to build, > use, and manage than apps on traditional platforms. Sign up for the Lotus > Notes Migration Kit to learn more. http://p.sf.net/sfu/salesforce-d2d > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Tue Dec 7 20:32:54 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Tue, 7 Dec 2010 20:32:54 +0100 Subject: [Gambas-user] gambas3 print image 2nd In-Reply-To: <201012072027.25975.wally@...2037...> References: <201012071920.49871.wally@...2037...> <201012072016.21221.gambas@...1...> <201012072027.25975.wally@...2037...> Message-ID: <201012072032.54084.gambas@...1...> > Benoit, > > the image i want to print is created this way: > "hPaper = New Image(6000, 300, Color.White)" > On this image i paint my spectrogram data. > I do some more experiments and assume i get it work > as needed. Thank You :) 6000 * 300 * 4 = 7,2 Mb. So a big image! > > By the way: Is any effort known to make a math lib available for Ganbas > (e.g. GNU Scientific Library) ? Or are math examples available somewhere ? > > cheers wally No component at the moment, but I think you can use that library by using extern functions, as this is a pure C library as far as I know. Regards, -- Beno?t Minisini From rterry at ...1946... Tue Dec 7 22:30:09 2010 From: rterry at ...1946... (richard terry) Date: Wed, 8 Dec 2010 08:30:09 +1100 Subject: [Gambas-user] Size of gambas exe question Message-ID: <201012080830.09939.rterry@...1946...> HI benoit Ian and I have a 'huge' tree. When I started the project I kept everything there including all the help files etc. I wonder if there is anyway of setting up gambas so that the compiled exe can exclude tree branches so as not to end up with such a huge exe. REgards Richard From gambas at ...1... Tue Dec 7 22:38:13 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Tue, 7 Dec 2010 22:38:13 +0100 Subject: [Gambas-user] Size of gambas exe question In-Reply-To: <201012080830.09939.rterry@...1946...> References: <201012080830.09939.rterry@...1946...> Message-ID: <201012072238.13211.gambas@...1...> > HI benoit > > Ian and I have a 'huge' tree. > > When I started the project I kept everything there including all the help > files etc. > > > I wonder if there is anyway of setting up gambas so that the compiled exe > can exclude tree branches so as not to end up with such a huge exe. > > REgards > > Richard > As I told you before, if you want to exclude files from the executable, put them in the "Project" tree directory. Of course, it won't be visible to the running program anymore. Otherwise, there is no problem in having an huge "exe". Even a 100 Mb exe will start fast. Regards, -- Beno?t Minisini From mdavies5 at ...169... Wed Dec 8 06:22:45 2010 From: mdavies5 at ...169... (Michael) Date: Wed, 08 Dec 2010 16:22:45 +1100 Subject: [Gambas-user] Gambas 3 Printing In-Reply-To: <201011300012.39097.gambas@...1...> References: <201011300958.05904.rterry@...1946...> <201011300012.39097.gambas@...1...> Message-ID: <4CFF1625.1020402@...169...> Can anybody please clarify how to generate a new page when printing in Gambas 3. I know you have have the Printer.Count value but it appears you need to know the number of pages to set this value before printing. You cannot loop through data and say INC hPrinter.Count. It will only print the initial count value. Similarly, I set the Count value high and then, when my data was exhausted, I tried reducing the Count to the current .hPrinter.Page value but this doesn't help. In Gambas 2 you could just issue a .newpage command when your 'y' value got too big. Regards Michael From eilert-sprachen at ...221... Wed Dec 8 08:12:47 2010 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Wed, 08 Dec 2010 08:12:47 +0100 Subject: [Gambas-user] Gambas 2 question In-Reply-To: <20101207185626.M7932@...951...> References: <20101207174420.M38235@...951...> <201012071852.03629.gambas@...1...> <20101207185626.M7932@...951...> Message-ID: <4CFF2FEF.8090705@...221...> Am 07.12.2010 19:56, schrieb nando: > Correct. > > > ---------- Original Message ----------- > From: Beno?t Minisini > To: nando_f at ...951..., mailing list for gambas users > > Sent: Tue, 7 Dec 2010 18:52:03 +0100 > Subject: Re: [Gambas-user] Gambas 2 question > >>> Benoit >>> >>> In my debugging, I was doing... >>> >>> PRINT "IN", 'at the beginning of a routine >>> . . . >>> . . . >>> PRINT "OUT" 'at the end >>> >>> so I could track and detect flow. >>> >>> the first line does a \n in all cases even though it has a trailing comma. >>> Normally, the comma didn't do a New Line. >>> It correctly does a tab. >>> >>> ?? >>> -Fernando >>> >> >> You mean that a comma at the end should does like a semicolon at the end: not >> printing a new line? >> >> -- >> Beno?t Minisini A tab AND no new line would be most correct :-) Regards Rolf From demosthenesk at ...626... Wed Dec 8 10:53:36 2010 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Wed, 08 Dec 2010 11:53:36 +0200 Subject: [Gambas-user] Question about objects in memory Message-ID: <1291802016.1622.1.camel@...2493...> hi, in the next example, the output of PRINT is the datatype and the address of memory where the object exists? ' Gambas module file PUBLIC SUB Main() DIM aArray AS NEW String[] PRINT aArray END -------- Output: -------- (String[] 0x21ce4a0) -- Regards, Demosthenes Koptsis. From wally at ...2037... Wed Dec 8 12:55:24 2010 From: wally at ...2037... (wally) Date: Wed, 8 Dec 2010 12:55:24 +0100 Subject: [Gambas-user] gb3 - unable to load Qt translation Message-ID: <201012081255.24700.wally@...2037...> Hello, on run a project in gambas3 i always get: "warning: unable to load Qt translation: en_US.UTF-8" may this the reason i do not get Error messages ? If a error in code occurs i get only a few seconds ballon message in code line of error. How to fix it ? cheers wally From mdavies5 at ...169... Wed Dec 8 13:38:46 2010 From: mdavies5 at ...169... (Michael) Date: Wed, 08 Dec 2010 23:38:46 +1100 Subject: [Gambas-user] Gambas 3 Display problems In-Reply-To: <201012081255.24700.wally@...2037...> References: <201012081255.24700.wally@...2037...> Message-ID: <4CFF7C56.4080202@...169...> Using GB.GTK+ Library on Ubuntu maverick, I notice odd display behaviour: 1. Set a panel to default foreground, and text on components is black in the IDE, as expected. Run the app and all text is grey. 2. As item 1 but select foreground color as "System.TextForeGround" and same problem. 3. As item 2 but select foreground color as "Free 000000" and all text is black in IDE and live. 4. Select a font as Ubuntu -1 and it appears as 10pt as expected in the IDE. Run the app and it is about 14pt. 5. As item 4 but check the "Size" box and select a size of 10. It appears in the IDE, and Live, correctly as 10pt. 6. Set a Panel border to "Etched" and it appears correctly in IDE but, when run, it appears as plain. Same applies to "Raised" and "Sunken". I have used Panel as an example but the problems apply to other components such as labels and text boxes. All the problems can be worked around but it seems a backward step from the Gambas 2 IDE Regards Michael From charles at ...1784... Wed Dec 8 13:38:46 2010 From: charles at ...1784... (charlesg) Date: Wed, 8 Dec 2010 04:38:46 -0800 (PST) Subject: [Gambas-user] gb3 - unable to load Qt translation In-Reply-To: <201012081255.24700.wally@...2037...> References: <201012081255.24700.wally@...2037...> Message-ID: <30404979.post@...1379...> Hi, Wally-8 wrote: > > on run a project in gambas3 i always get: > "warning: unable to load Qt translation: en_US.UTF-8" > I can confirm the error message (but in my case with en_GB.UTF-8). 32bit UBuntu 10.10, Gamrev 3338 -- View this message in context: http://old.nabble.com/gb3---unable-to-load-Qt-translation-tp30404660p30404979.html Sent from the gambas-user mailing list archive at Nabble.com. From gambas at ...1... Wed Dec 8 16:05:36 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Wed, 8 Dec 2010 16:05:36 +0100 Subject: [Gambas-user] gb3 - unable to load Qt translation In-Reply-To: <30404979.post@...1379...> References: <201012081255.24700.wally@...2037...> <30404979.post@...1379...> Message-ID: <201012081605.36139.gambas@...1...> > Hi, > > Wally-8 wrote: > > on run a project in gambas3 i always get: > > "warning: unable to load Qt translation: en_US.UTF-8" > > I can confirm the error message (but in my case with en_GB.UTF-8). > > 32bit UBuntu 10.10, Gamrev 3338 This is not an error message. It begins with the word "warning:". It just means that the Qt translations files are not installed, and that the Qt standard dialogs will not be translated. -- Beno?t Minisini From gambas at ...1... Wed Dec 8 16:13:21 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Wed, 8 Dec 2010 16:13:21 +0100 Subject: [Gambas-user] Gambas 3 Display problems In-Reply-To: <4CFF7C56.4080202@...169...> References: <201012081255.24700.wally@...2037...> <4CFF7C56.4080202@...169...> Message-ID: <201012081613.21809.gambas@...1...> > Using GB.GTK+ Library on Ubuntu maverick, I notice odd display behaviour: > 1. Set a panel to default foreground, and text on components is black > in the IDE, as expected. Run the app and all text is grey. > 2. As item 1 but select foreground color as "System.TextForeGround" and > same problem. > 3. As item 2 but select foreground color as "Free 000000" and all text > is black in IDE and live. > 4. Select a font as Ubuntu -1 and it appears as 10pt as expected in the > IDE. Run the app and it is about 14pt. > 5. As item 4 but check the "Size" box and select a size of 10. It > appears in the IDE, and Live, correctly as 10pt. > 6. Set a Panel border to "Etched" and it appears correctly in IDE but, > when run, it appears as plain. Same applies to "Raised" and "Sunken". > > I have used Panel as an example but the problems apply to other > components such as labels and text boxes. All the problems can be worked > around but it seems a backward step from the Gambas 2 IDE > Regards > Michael > The IDE uses the Qt library, whereas your program, by default, uses the GTK+. If you have a different font size between GTK+ and Qt, you will have different font sizes when running your project. Same remark for the color. I use Ubuntu Maverick with KDE. In KDE, you can force GTK+ applications to use the QT default font, and the system colors defined in the KDE control panel. I don't know if you can do the contrary when you use Gnome. I will check, but if someone could tell us... Otherwise, install and use the "qtconfig" program to configure the default font of the Qt library. As for the panel border, it depends on the GTK+ style. Only the Qt etched border does not depend on the Qt style. Anyway, "Etched" border may be removed in the future, as I find it ugly. I hope I answer all your remarks. Regards, -- Beno?t Minisini From gambas at ...1... Wed Dec 8 16:13:53 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Wed, 8 Dec 2010 16:13:53 +0100 Subject: [Gambas-user] Question about objects in memory In-Reply-To: <1291802016.1622.1.camel@...2493...> References: <1291802016.1622.1.camel@...2493...> Message-ID: <201012081613.53692.gambas@...1...> > hi, > > in the next example, the output of PRINT is the datatype and the address > of memory where the object exists? > > ' Gambas module file > > PUBLIC SUB Main() > > DIM aArray AS NEW String[] > > PRINT aArray > > END > > -------- > Output: > -------- > (String[] 0x21ce4a0) Yes. But do not rely on that to do weird things. Regards, -- Beno?t Minisini From gambas at ...1... Wed Dec 8 16:16:00 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Wed, 8 Dec 2010 16:16:00 +0100 Subject: [Gambas-user] Gambas 3 Printing In-Reply-To: <4CFF1625.1020402@...169...> References: <201011300958.05904.rterry@...1946...> <201011300012.39097.gambas@...1...> <4CFF1625.1020402@...169...> Message-ID: <201012081616.00253.gambas@...1...> > Can anybody please clarify how to generate a new page when printing in > Gambas 3. I know you have have the Printer.Count value but it appears > you need to know the number of pages to set this value before printing. > You cannot loop through data and say INC hPrinter.Count. It will only > print the initial count value. > Similarly, I set the Count value high and then, when my data was > exhausted, I tried reducing the Count to the current .hPrinter.Page > value but this doesn't help. > In Gambas 2 you could just issue a .newpage command when your 'y' value > got too big. > Regards > Michael > Yes. You must now tell how many pages you will print before printing. In other words, you must layour your document first, and then print it. Regards, -- Beno?t Minisini From gambas at ...2377... Wed Dec 8 16:40:00 2010 From: gambas at ...2377... (George) Date: Wed, 8 Dec 2010 10:40:00 -0500 Subject: [Gambas-user] BUG: Problem with DateAdd function In-Reply-To: <4CFB782F.7050304@...2382...> References: <4B76F4DD.5060001@...2377...> <201012041827.25633.gambas@...1...> <201012050116.47524.gambas@...1...> <4CFB782F.7050304@...2382...> Message-ID: On Sun, Dec 5, 2010 at 6:31 AM, EA7DFH wrote: > El 05/12/10 01:16, Beno?t Minisini escribi?: >>> >>> But then why am I getting the 'invalid date' error in 2.22? ?And more >>> importantly, what do I need to do to correct it? >>> >> >> That is the question! >> >> Check first that you really have Gambas 2.22 installed, and that you run it. >> To do that, run "gbx2 -V" in a terminal. You will get the interpreter version. >> >> Regards, >> > > Also, make sure you did uninstalled previous versions of Gambas2. If I > recall well, Gambas2 2.13 were installed in your system previously. > > Since the install locations of Gambas is different whether you install > it from repositories or manually compiled (/usr/bin and /usr/local/bin > respectively) may be you still have both of them in your system, with > unpredictable behaviors. > > Regards, > > -- > Jesus, EA7DFH > Jesus, Thanks! You were right. I'd installed 2.22 over my previous installation... or so I thought. So I removed everything and reinstalled 2.22, and I'm in business. It took me a few tries to get everything working again, but it's up and running, and I'm no longer getting the error on the date calculation. Thanks to you and Beno?t for you help & quick replies. -George From wally at ...2037... Wed Dec 8 16:43:30 2010 From: wally at ...2037... (wally) Date: Wed, 8 Dec 2010 16:43:30 +0100 Subject: [Gambas-user] gb3 - unable to load Qt translation In-Reply-To: <201012081605.36139.gambas@...1...> References: <201012081255.24700.wally@...2037...> <30404979.post@...1379...> <201012081605.36139.gambas@...1...> Message-ID: <201012081643.31308.wally@...2037...> On Wednesday 08 December 2010 16:05:36 Beno?t Minisini wrote: > > Hi, > > > > Wally-8 wrote: > > > on run a project in gambas3 i always get: > > > "warning: unable to load Qt translation: en_US.UTF-8" > > > > I can confirm the error message (but in my case with en_GB.UTF-8). > > > > 32bit UBuntu 10.10, Gamrev 3338 > > This is not an error message. It begins with the word "warning:". It just > means that the Qt translations files are not installed, and that the Qt > standard dialogs will not be translated. > > -- > Beno?t Minisini > > ------------------------------------------------------------------------------ > What happens now with your Lotus Notes apps - do you make another costly > upgrade, or settle for being marooned without product support? Time to move > off Lotus Notes and onto the cloud with Force.com, apps are easier to build, > use, and manage than apps on traditional platforms. Sign up for the Lotus > Notes Migration Kit to learn more. http://p.sf.net/sfu/salesforce-d2d > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > So the translation-warning is not reponsible for missing error messages ? Why i do not get error messages if something is wrong in code (gb3) ? wally From gambas at ...1... Wed Dec 8 16:49:09 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Wed, 8 Dec 2010 16:49:09 +0100 Subject: [Gambas-user] gb3 - unable to load Qt translation In-Reply-To: <201012081643.31308.wally@...2037...> References: <201012081255.24700.wally@...2037...> <201012081605.36139.gambas@...1...> <201012081643.31308.wally@...2037...> Message-ID: <201012081649.09764.gambas@...1...> > > So the translation-warning is not reponsible for missing error messages ? > Why i do not get error messages if something is wrong in code (gb3) ? > > wally > I don't what you are talking about. Can you be more precise? -- Beno?t Minisini From wally at ...2037... Wed Dec 8 17:03:08 2010 From: wally at ...2037... (wally) Date: Wed, 8 Dec 2010 17:03:08 +0100 Subject: [Gambas-user] gb3 - unable to load Qt translation In-Reply-To: <201012081649.09764.gambas@...1...> References: <201012081255.24700.wally@...2037...> <201012081643.31308.wally@...2037...> <201012081649.09764.gambas@...1...> Message-ID: <201012081703.09049.wally@...2037...> On Wednesday 08 December 2010 16:49:09 Beno?t Minisini wrote: > > > > So the translation-warning is not reponsible for missing error messages ? > > Why i do not get error messages if something is wrong in code (gb3) ? > > > > wally > > > > I don't what you are talking about. Can you be more precise? > > -- > Beno?t Minisini > > ------------------------------------------------------------------------------ > This SF Dev2Dev email is sponsored by: > > WikiLeaks The End of the Free Internet > http://p.sf.net/sfu/therealnews-com > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > Benoit, i ask this in the 1st post of " [Gambas-user] gb3 - unable to load Qt translation" thread: "may this the reason i do not get Error messages ? If a error in code occurs i get only a few seconds ballon message in code line of error. How to fix it ? " I do not know where to look for error-messages if i coded errors. I only get a short balloon-message in the wrong line of code. just for a second or 2. Where i have to look for the error message ? wally From gambas at ...1... Wed Dec 8 17:10:40 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Wed, 8 Dec 2010 17:10:40 +0100 Subject: [Gambas-user] gb3 - unable to load Qt translation In-Reply-To: <201012081703.09049.wally@...2037...> References: <201012081255.24700.wally@...2037...> <201012081649.09764.gambas@...1...> <201012081703.09049.wally@...2037...> Message-ID: <201012081710.40184.gambas@...1...> > > Benoit, > > i ask this in the 1st post of " [Gambas-user] gb3 - unable to load Qt > translation" thread: > > "may this the reason i do not get Error messages ? > If a error in code occurs i get only a few seconds ballon message > in code line of error. How to fix it ? " > > I do not know where to look for error-messages if i coded errors. > I only get a short balloon-message in the wrong line of code. > just for a second or 2. Where i have to look for the error message ? > > wally > Do you run Gambs on KDE or on Gnome ? -- Beno?t Minisini From wally at ...2037... Wed Dec 8 17:36:57 2010 From: wally at ...2037... (wally) Date: Wed, 8 Dec 2010 17:36:57 +0100 Subject: [Gambas-user] gb3 - unable to load Qt translation In-Reply-To: <201012081710.40184.gambas@...1...> References: <201012081255.24700.wally@...2037...> <201012081703.09049.wally@...2037...> <201012081710.40184.gambas@...1...> Message-ID: <201012081736.58074.wally@...2037...> On Wednesday 08 December 2010 17:10:40 Beno?t Minisini wrote: > > > > Benoit, > > > > i ask this in the 1st post of " [Gambas-user] gb3 - unable to load Qt > > translation" thread: > > > > "may this the reason i do not get Error messages ? > > If a error in code occurs i get only a few seconds ballon message > > in code line of error. How to fix it ? " > > > > I do not know where to look for error-messages if i coded errors. > > I only get a short balloon-message in the wrong line of code. > > just for a second or 2. Where i have to look for the error message ? > > > > wally > > > > > Do you run Gambs on KDE or on Gnome ? > > -- > Beno?t Minisini > > ------------------------------------------------------------------------------ > This SF Dev2Dev email is sponsored by: > > WikiLeaks The End of the Free Internet > http://p.sf.net/sfu/therealnews-com > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > KDE4 on OpenSuse 11.3 for me it's new KDE (kde3 -> kde4) and new Gambas ( gb2 -> gb3) From gambas at ...1... Wed Dec 8 17:44:35 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Wed, 8 Dec 2010 17:44:35 +0100 Subject: [Gambas-user] gb3 - unable to load Qt translation In-Reply-To: <201012081736.58074.wally@...2037...> References: <201012081255.24700.wally@...2037...> <201012081710.40184.gambas@...1...> <201012081736.58074.wally@...2037...> Message-ID: <201012081744.35166.gambas@...1...> > > KDE4 on OpenSuse 11.3 > for me it's new KDE (kde3 -> kde4) > and new Gambas ( gb2 -> gb3) > I have that problem on my own system: the error balloon is not displayed correctly sometimes. It appears partially, or it is not visible at all. If you run your project in the IDE, and an error is raised, the program is stopped in debugging mode. Each time you put the cursor on the error line, the error balloon is displayed. If you do that, do you have the same problem again? If you use composition, can you disable it and see if the balloon stays visible? -- Beno?t Minisini From wally at ...2037... Wed Dec 8 18:05:04 2010 From: wally at ...2037... (wally) Date: Wed, 8 Dec 2010 18:05:04 +0100 Subject: [Gambas-user] gb3 - unable to load Qt translation In-Reply-To: <201012081744.35166.gambas@...1...> References: <201012081255.24700.wally@...2037...> <201012081736.58074.wally@...2037...> <201012081744.35166.gambas@...1...> Message-ID: <201012081805.04563.wally@...2037...> On Wednesday 08 December 2010 17:44:35 Beno?t Minisini wrote: > > > > KDE4 on OpenSuse 11.3 > > for me it's new KDE (kde3 -> kde4) > > and new Gambas ( gb2 -> gb3) > > > > I have that problem on my own system: the error balloon is not displayed > correctly sometimes. It appears partially, or it is not visible at all. > > If you run your project in the IDE, and an error is raised, the program is > stopped in debugging mode. Each time you put the cursor on the error line, the > error balloon is displayed. > > If you do that, do you have the same problem again? > > If you use composition, can you disable it and see if the balloon stays > visible? > > -- > Beno?t Minisini > > ------------------------------------------------------------------------------ > This SF Dev2Dev email is sponsored by: > > WikiLeaks The End of the Free Internet > http://p.sf.net/sfu/therealnews-com > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > Benoit, > If you run your project in the IDE, and an error is raised, the program is > stopped in debugging mode. Each time you put the cursor on the error line, > the error balloon is displayed. i can confirm this, it works nice > If you do that, do you have the same problem again? do what ? which "same problem" ? does gb3 display errors only in the balloons, not in console at all ? > If you use composition, can you disable it and see if the balloon stays > visible? "use composition" ? I do not know yet what is "composition" sorry. I still have problems to find documentation and examples and did not read yet all i found. wally From demosthenesk at ...626... Wed Dec 8 20:54:16 2010 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Wed, 08 Dec 2010 21:54:16 +0200 Subject: [Gambas-user] Question about objects in memory In-Reply-To: <201012081613.53692.gambas@...1...> References: <1291802016.1622.1.camel@...2493...> <201012081613.53692.gambas@...1...> Message-ID: <1291838056.6203.16.camel@...2494...> i have no intension to do something. Anyway i dont know how to use such an information. i just wanted to know it to describe it in my book. Now i am in the chapter of pointers and memory management. Something else... the "NEW" word in Gambas is like "new" word in C++? in the book "Teach Yourself C++ in 21 Days" it says that "The return value from new is a memory address" and this is assigned to a pointer. for example unsigned short int * pPointer; pPointer = new unsigned short int; The NEW word in Gambas plays the same role? For example the hButton = NEW Button(ME) AS "MyButton" the hButton is a pointer to the memory for the object? I am asking this to understand better the subject of pointers... Thanks for your time! On Wed, 2010-12-08 at 16:13 +0100, Beno?t Minisini wrote: > > hi, > > > > in the next example, the output of PRINT is the datatype and the address > > of memory where the object exists? > > > > ' Gambas module file > > > > PUBLIC SUB Main() > > > > DIM aArray AS NEW String[] > > > > PRINT aArray > > > > END > > > > -------- > > Output: > > -------- > > (String[] 0x21ce4a0) > > Yes. But do not rely on that to do weird things. > > Regards, > -- Regards, Demosthenes From gambas at ...1... Thu Dec 9 00:33:59 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Thu, 9 Dec 2010 00:33:59 +0100 Subject: [Gambas-user] Question about objects in memory In-Reply-To: <1291838056.6203.16.camel@...2494...> References: <1291802016.1622.1.camel@...2493...> <201012081613.53692.gambas@...1...> <1291838056.6203.16.camel@...2494...> Message-ID: <201012090033.59811.gambas@...1...> > i have no intension to do something. > Anyway i dont know how to use such an information. > > i just wanted to know it to describe it in my book. > > Now i am in the chapter of pointers and memory management. > > Something else... > > the "NEW" word in Gambas is like "new" word in C++? > > in the book "Teach Yourself C++ in 21 Days" it says that "The return > value from new is a memory address" and this is assigned to a pointer. > > for example > unsigned short int * pPointer; > pPointer = new unsigned short int; > > The NEW word in Gambas plays the same role? > > For example the > hButton = NEW Button(ME) AS "MyButton" > > the hButton is a pointer to the memory for the object? > > I am asking this to understand better the subject of pointers... > > Thanks for your time! > The answer is mainly yes. Of course there are differences, Gambas is not C++. I suggest you use Java books instead of C++ books, as Gambas is more like Java than C++. Regards, -- Beno?t Minisini From mdavies5 at ...169... Thu Dec 9 05:17:13 2010 From: mdavies5 at ...169... (Michael) Date: Thu, 09 Dec 2010 15:17:13 +1100 Subject: [Gambas-user] Gambas 3 Printing In-Reply-To: <201012081616.00253.gambas@...1...> References: <201011300958.05904.rterry@...1946...> <201011300012.39097.gambas@...1...> <4CFF1625.1020402@...169...> <201012081616.00253.gambas@...1...> Message-ID: <4D005849.40402@...169...> Thanks Benoit, I have upgraded my print routines to run in V.3. The beauty of Gambas is the ability to work around any problems. My only outstanding problem is the inability to set the Paper Orientation in Printer.Configure or to code it with "hPrinter.Orientation = Printer.Landscape". I look forward to a fix when available. Regards Michael On 09/12/10 02:16, Beno?t Minisini wrote: >> Can anybody please clarify how to generate a new page when printing in >> Gambas 3. I know you have have the Printer.Count value but it appears >> you need to know the number of pages to set this value before printing. >> You cannot loop through data and say INC hPrinter.Count. It will only >> print the initial count value. >> Similarly, I set the Count value high and then, when my data was >> exhausted, I tried reducing the Count to the current .hPrinter.Page >> value but this doesn't help. >> In Gambas 2 you could just issue a .newpage command when your 'y' value >> got too big. >> Regards >> Michael >> > Yes. You must now tell how many pages you will print before printing. In other > words, you must layour your document first, and then print it. > > Regards, > From mdavies5 at ...169... Thu Dec 9 08:09:37 2010 From: mdavies5 at ...169... (Michael) Date: Thu, 09 Dec 2010 18:09:37 +1100 Subject: [Gambas-user] Gambas 3 GTK+ Keystroke Problem In-Reply-To: <4D005849.40402@...169...> References: <201011300958.05904.rterry@...1946...> <201011300012.39097.gambas@...1...> <4CFF1625.1020402@...169...> <201012081616.00253.gambas@...1...> <4D005849.40402@...169...> Message-ID: <4D0080B1.5010702@...169...> In 30 years of programming I have just found the most peculiar problem. I have an app with several text boxes. None of the text boxes will accept the character 'o'. They will accept 'SHIFT-O' but they will not accept an upper case O if the the caps lock key is active. Here are a few facts: 1. All the text boxes are standard, visible, enabled and NOT readonly. 2. They will accept all other keystrokes 3. The same app in Gambas 2 has no problems. 4. If I change my library from GTK+ to QT4 there is no problem. 5. My 'o' key works fine in all other applications. 6. If I start a new Gambas 3 app and add a text box then it will accept the 'o'. 7. Problem is in IDE and runtime. 8. If I monitor _KeyRelease it correctly reports Key.Code 79 but nothing appears in text box. 9. If I add code to key_release such as "txtBox.Text = txtBox.Text & Key.Text then it will work but this is impractical. I know this must sound ridiculous but any ideas :) PS Also just tested activating Caps Lock and using SHIFT-o. It works, so it is a work around to get a lower case in the textbox. Regards Michael From mdavies5 at ...169... Thu Dec 9 10:32:40 2010 From: mdavies5 at ...169... (Michael) Date: Thu, 09 Dec 2010 20:32:40 +1100 Subject: [Gambas-user] Gambas 3 GTK+ Keystroke Problem In-Reply-To: <4D0080B1.5010702@...169...> References: <201011300958.05904.rterry@...1946...> <201011300012.39097.gambas@...1...> <4CFF1625.1020402@...169...> <201012081616.00253.gambas@...1...> <4D005849.40402@...169...> <4D0080B1.5010702@...169...> Message-ID: <4D00A238.5050304@...169...> Problem fixed. For those interested I had at some time allocated CTRL-O as a shortcut key for a menu. I changed my mind and unchecked the CTRL option and thought this was all I needed to do. In fact I had left just 'o' as a shortcut key so it was intercepted by the menu system and not passed to the textbox. I found it by creating a new form and copying all my controls from the offending form and it worked. Then I used a good old command line 'comm' to compare the files and spotted this difference. Embarrassing! Regards Mike On 09/12/10 18:09, Michael wrote: > In 30 years of programming I have just found the most peculiar problem. > I have an app with several text boxes. None of the text boxes will > accept the character 'o'. They will accept 'SHIFT-O' but they will not > accept an upper case O if the the caps lock key is active. Here are a > few facts: > 1. All the text boxes are standard, visible, enabled and NOT readonly. > 2. They will accept all other keystrokes > 3. The same app in Gambas 2 has no problems. > 4. If I change my library from GTK+ to QT4 there is no problem. > 5. My 'o' key works fine in all other applications. > 6. If I start a new Gambas 3 app and add a text box then it will accept > the 'o'. > 7. Problem is in IDE and runtime. > 8. If I monitor _KeyRelease it correctly reports Key.Code 79 but nothing > appears in text box. > 9. If I add code to key_release such as "txtBox.Text = txtBox.Text& > Key.Text then it will work but this is impractical. > I know this must sound ridiculous but any ideas :) > PS Also just tested activating Caps Lock and using SHIFT-o. It works, so > it is a work around to get a lower case in the textbox. > Regards > Michael > > > ------------------------------------------------------------------------------ > This SF Dev2Dev email is sponsored by: > > WikiLeaks The End of the Free Internet > http://p.sf.net/sfu/therealnews-com > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > From gambas at ...1... Thu Dec 9 11:24:24 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Thu, 9 Dec 2010 11:24:24 +0100 Subject: [Gambas-user] Gambas 3 Printing In-Reply-To: <4D005849.40402@...169...> References: <201011300958.05904.rterry@...1946...> <201012081616.00253.gambas@...1...> <4D005849.40402@...169...> Message-ID: <201012091124.24494.gambas@...1...> > Thanks Benoit, > I have upgraded my print routines to run in V.3. The beauty of Gambas is > the ability to work around any problems. > My only outstanding problem is the inability to set the Paper > Orientation in Printer.Configure or to code it with > "hPrinter.Orientation = Printer.Landscape". It should work now, since last sunday, revision #3344. Regards, -- Beno?t Minisini From gambas at ...1... Thu Dec 9 11:26:13 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Thu, 9 Dec 2010 11:26:13 +0100 Subject: [Gambas-user] Gambas 3 GTK+ Keystroke Problem In-Reply-To: <4D00A238.5050304@...169...> References: <201011300958.05904.rterry@...1946...> <4D0080B1.5010702@...169...> <4D00A238.5050304@...169...> Message-ID: <201012091126.13686.gambas@...1...> > Problem fixed. For those interested I had at some time allocated CTRL-O > as a shortcut key for a menu. I changed my mind and unchecked the CTRL > option and thought this was all I needed to do. In fact I had left just > 'o' as a shortcut key so it was intercepted by the menu system and not > passed to the textbox. I found it by creating a new form and copying all > my controls from the offending form and it worked. Then I used a good > old command line 'comm' to compare the files and spotted this > difference. Embarrassing! > Regards > Mike > I could forbid "normal" keys as menu shortcuts, but I don't think it cannot be useful somewhere. -- Beno?t Minisini From demosthenesk at ...626... Thu Dec 9 11:33:44 2010 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Thu, 09 Dec 2010 12:33:44 +0200 Subject: [Gambas-user] About StrPtr() Message-ID: <1291890824.11738.2.camel@...2493...> i made an example for StrPtr, it is the next one, ' Gambas module file PUBLIC SUB Main() DIM p AS Pointer DIM s AS String p = Alloc("this is a string") 'READ #p, s s = StrPtr(p) PRINT s Free(p) END I just want to question what is the difference between 'READ #p, s s = StrPtr(p) both of them make the same work. What was the necessity to make a StrPtr function? -- Regards, Demosthenes Koptsis. From gambas at ...2377... Thu Dec 9 18:35:10 2010 From: gambas at ...2377... (George) Date: Thu, 9 Dec 2010 12:35:10 -0500 Subject: [Gambas-user] BUG: Textlabel contents not displaying when value changes from "" Message-ID: I'm using a Textlabel with Transparent = True. This displays a numeric value that can change while the program is being used. If the value is zero, it displays nothing (.text = ""). The problem is that if the control has no .text value, and is then given one, it does not display. If the value changes (e.g. from "1" to "2"), the change is reflected. I tried changing the code so that it sets the text value to " " (space) instead of "", but that did not help. If I set Transparent = False it works correctly. The textlabel is over a picturebox, but that is not the problem; if I move it to another part of the form it has the same behavior. I also tried performing a .Raise after updating the value, but that did not help. What I ended-up doing in my code was to always load a value, even if zero, and set the .Visible property based on whether or not it was zero. This solved my issue, but I wanted to report the bug. I'm running version 2.22 -George From mdavies5 at ...169... Fri Dec 10 03:41:08 2010 From: mdavies5 at ...169... (Michael) Date: Fri, 10 Dec 2010 13:41:08 +1100 Subject: [Gambas-user] Gambas 3 Printing In-Reply-To: <201012091124.24494.gambas@...1...> References: <201011300958.05904.rterry@...1946...> <201012081616.00253.gambas@...1...> <4D005849.40402@...169...> <201012091124.24494.gambas@...1...> Message-ID: <4D019344.5070501@...169...> Benoit, I am using Rev.3349 and I can set Paper Type and Paper Source but still cannot set Output Tray, Paper Size and Orientation. This applies to the GTK+ library. I can set Orientation under QT4 because that uses a completely different dialog but it introduces different problems( Paint.Begin(hPrinter) causes error. device is already being drawn). The GTK+ library uses the same print dialog as Mozilla Firefox and all the options are enabled when using Firefox. I am using Ubuntu Maverick 10.10 Regards Michael On 09/12/10 21:24, Beno?t Minisini wrote: >> Thanks Benoit, >> I have upgraded my print routines to run in V.3. The beauty of Gambas is >> the ability to work around any problems. >> My only outstanding problem is the inability to set the Paper >> Orientation in Printer.Configure or to code it with >> "hPrinter.Orientation = Printer.Landscape". > It should work now, since last sunday, revision #3344. > > Regards, > From demosthenesk at ...626... Sat Dec 11 09:36:21 2010 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Sat, 11 Dec 2010 10:36:21 +0200 Subject: [Gambas-user] About custom cursor Message-ID: <1292056581.15261.11.camel@...2493...> Hi in wiki says Control.Cursor (gb.qt) PROPERTY Cursor AS Cursor Use this property for assigning a custom cursor to a control. how did i do that? i tried ME.Cursor = Picture["egore911_Pointer2.png"] ME.Cursor = 2 'for cross cursor but in wiki i see the Cursor has only X,Y properties. What is the custom cursor about? -- Regards, Demosthenes Koptsis. From demosthenesk at ...626... Sat Dec 11 10:37:35 2010 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Sat, 11 Dec 2010 11:37:35 +0200 Subject: [Gambas-user] Form.icon property does not work. Message-ID: <1292060255.15261.15.camel@...2493...> Hi, In Gambas2 2.22 rev3344 i tried the icon property but it does not work. If i set a picture in design mode or in run time with ME.Icon = Picture["icon.png"] the icon is not shown up on the form. i checked also and my older projects which have an icon on the form and to them also the icon has disappeared. -- Regards, Demosthenes Koptsis. From demosthenesk at ...626... Sat Dec 11 10:39:40 2010 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Sat, 11 Dec 2010 11:39:40 +0200 Subject: [Gambas-user] [Fwd: Form.icon property does not work.] Message-ID: <1292060380.16164.0.camel@...2493...> The problem appears in run time. -- Regards, Demosthenes Koptsis. -------------- next part -------------- An embedded message was scrubbed... From: Demosthenes Koptsis Subject: Form.icon property does not work. Date: Sat, 11 Dec 2010 11:37:39 +0200 Size: 751 URL: From sotema at ...626... Sat Dec 11 14:28:21 2010 From: sotema at ...626... (Emanuele Sottocorno) Date: Sat, 11 Dec 2010 14:28:21 +0100 Subject: [Gambas-user] stop event and gtk Message-ID: <1292074101.30349.11.camel@...2516...> Hi, having the need to avoid the user closes the form before filling all fields, I try to intercept the click on the Close Button on Form Title with the following sub: Public Sub Form_Close() If (Not $bLang) Then Stop Event End under GTK the Form_Close event isn't stopped. Gambas3 rev 3355 Ubuntu 10.04 x86_64 Tanks for help, Emanuele From gambas.fr at ...626... Sat Dec 11 15:34:01 2010 From: gambas.fr at ...626... (Fabien Bodard) Date: Sat, 11 Dec 2010 15:34:01 +0100 Subject: [Gambas-user] About custom cursor In-Reply-To: <1292056581.15261.11.camel@...2493...> References: <1292056581.15261.11.camel@...2493...> Message-ID: hCursor = NEW Cursor ( Picture AS Picture [ , X AS Integer, Y AS Integer ] ) http://gambasdoc.org/help/comp/gb.qt4/cursor/_new?en&v3 2010/12/11 Demosthenes Koptsis : > Hi in wiki says > > > Control.Cursor (gb.qt) > PROPERTY Cursor AS Cursor > > Use this property for assigning a custom cursor to a control. > > how did i do that? > > i tried > ME.Cursor = Picture["egore911_Pointer2.png"] > ME.Cursor = 2 'for cross cursor > > but in wiki i see the Cursor has only X,Y properties. > > What is the custom cursor about? > > > > > > -- > Regards, > Demosthenes Koptsis. > > > ------------------------------------------------------------------------------ > Oracle to DB2 Conversion Guide: Learn learn about native support for PL/SQL, > new data types, scalar functions, improved concurrency, built-in packages, > OCI, SQL*Plus, data movement tools, best practices and more. > http://p.sf.net/sfu/oracle-sfdev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Fabien Bodard From demosthenesk at ...626... Sat Dec 11 15:35:37 2010 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Sat, 11 Dec 2010 16:35:37 +0200 Subject: [Gambas-user] What is the use of Tag property Message-ID: <1292078137.19064.1.camel@...2493...> PROPERTY Tag AS Variant Returns or sets the control tag. This property is intended for the programmer and is never used by the component. It can contain any Variant value. ------------------------------------------------ ok but what is the use of this property? -- Regards, Demosthenes Koptsis. From gambas.fr at ...626... Sat Dec 11 15:36:24 2010 From: gambas.fr at ...626... (Fabien Bodard) Date: Sat, 11 Dec 2010 15:36:24 +0100 Subject: [Gambas-user] [Fwd: Form.icon property does not work.] In-Reply-To: <1292060380.16164.0.camel@...2493...> References: <1292060380.16164.0.camel@...2493...> Message-ID: what distrib ? ... if it's ubuntu gnome ... make sure that is not a problem with the theme. Some theme hide icon menu and/or window icon .... 2010/12/11 Demosthenes Koptsis : > The problem appears in run time. > > -- > Regards, > Demosthenes Koptsis. > > > ---------- Message transf?r? ---------- > From:?Demosthenes Koptsis > To:?Gambas User List > Date:?Sat, 11 Dec 2010 11:37:39 +0200 > Subject:?Form.icon property does not work. > > Hi, > > In Gambas2 2.22 rev3344 ?i tried the icon property but it does not work. > > If i set a picture in design mode or in run time with > > ME.Icon = Picture["icon.png"] > > the icon is not shown up on the form. > > i checked also and my older projects which have an icon on the form and > to them also the icon has disappeared. > > > > -- > Regards, > Demosthenes Koptsis. > > ------------------------------------------------------------------------------ > Oracle to DB2 Conversion Guide: Learn learn about native support for PL/SQL, > new data types, scalar functions, improved concurrency, built-in packages, > OCI, SQL*Plus, data movement tools, best practices and more. > http://p.sf.net/sfu/oracle-sfdev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > -- Fabien Bodard From demosthenesk at ...626... Sat Dec 11 15:43:05 2010 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Sat, 11 Dec 2010 16:43:05 +0200 Subject: [Gambas-user] About custom cursor In-Reply-To: References: <1292056581.15261.11.camel@...2493...> Message-ID: <1292078585.19064.2.camel@...2493...> thanks !!! On Sat, 2010-12-11 at 15:34 +0100, Fabien Bodard wrote: > hCursor = NEW Cursor ( Picture AS Picture [ , X AS Integer, Y AS Integer ] ) > > http://gambasdoc.org/help/comp/gb.qt4/cursor/_new?en&v3 > > 2010/12/11 Demosthenes Koptsis : > > Hi in wiki says > > > > > > Control.Cursor (gb.qt) > > PROPERTY Cursor AS Cursor > > > > Use this property for assigning a custom cursor to a control. > > > > how did i do that? > > > > i tried > > ME.Cursor = Picture["egore911_Pointer2.png"] > > ME.Cursor = 2 'for cross cursor > > > > but in wiki i see the Cursor has only X,Y properties. > > > > What is the custom cursor about? > > > > > > > > > > > > -- > > Regards, > > Demosthenes Koptsis. > > > > > > ------------------------------------------------------------------------------ > > Oracle to DB2 Conversion Guide: Learn learn about native support for PL/SQL, > > new data types, scalar functions, improved concurrency, built-in packages, > > OCI, SQL*Plus, data movement tools, best practices and more. > > http://p.sf.net/sfu/oracle-sfdev2dev > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > -- Regards, Demosthenes Koptsis. From demosthenesk at ...626... Sat Dec 11 15:44:26 2010 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Sat, 11 Dec 2010 16:44:26 +0200 Subject: [Gambas-user] [Fwd: Form.icon property does not work.] In-Reply-To: References: <1292060380.16164.0.camel@...2493...> Message-ID: <1292078666.19064.4.camel@...2493...> yes it is in ubuntu 10.04, i will check if it is the theme On Sat, 2010-12-11 at 15:36 +0100, Fabien Bodard wrote: > what distrib ? ... if it's ubuntu gnome ... make sure that is not a > problem with the theme. > > Some theme hide icon menu and/or window icon .... > > 2010/12/11 Demosthenes Koptsis : > > The problem appears in run time. > > > > -- > > Regards, > > Demosthenes Koptsis. > > > > > > ---------- Message transf?r? ---------- > > From: Demosthenes Koptsis > > To: Gambas User List > > Date: Sat, 11 Dec 2010 11:37:39 +0200 > > Subject: Form.icon property does not work. > > > > Hi, > > > > In Gambas2 2.22 rev3344 i tried the icon property but it does not work. > > > > If i set a picture in design mode or in run time with > > > > ME.Icon = Picture["icon.png"] > > > > the icon is not shown up on the form. > > > > i checked also and my older projects which have an icon on the form and > > to them also the icon has disappeared. > > > > > > > > -- > > Regards, > > Demosthenes Koptsis. > > > > ------------------------------------------------------------------------------ > > Oracle to DB2 Conversion Guide: Learn learn about native support for PL/SQL, > > new data types, scalar functions, improved concurrency, built-in packages, > > OCI, SQL*Plus, data movement tools, best practices and more. > > http://p.sf.net/sfu/oracle-sfdev2dev > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > -- Regards, Demosthenes Koptsis. From soleilpqd at ...626... Sat Dec 11 16:01:47 2010 From: soleilpqd at ...626... (=?UTF-8?B?UGjhuqFtIFF1YW5nIETGsMahbmc=?=) Date: Sat, 11 Dec 2010 22:01:47 +0700 Subject: [Gambas-user] Settings with VSplit control Message-ID: Hi, How to save the layout of VSplit? I tried: SUB Form_Open() vsplit1.settings = Settings["Group/Key"]; PRINT Settings["Group/Key"] ' (1) PRINT vsplit1.settings ' (2) END Of course SUB Form_Close() Settings["Group/Key"] = vsplit1.settings END In running, (1) and (2) are different, all numbers in (2) are smaller than (1). After some running, numbers in (2) decrease. I tried Settings.Read(vsplit1.window) too but I think that it saves its location and size, not its content layout. Gambas 2.22. Thanks! From demosthenesk at ...626... Sat Dec 11 16:05:20 2010 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Sat, 11 Dec 2010 17:05:20 +0200 Subject: [Gambas-user] [Fwd: Form.icon property does not work.] In-Reply-To: References: <1292060380.16164.0.camel@...2493...> Message-ID: <1292079921.19966.0.camel@...2493...> yes it was the theme! Thanks! On Sat, 2010-12-11 at 15:36 +0100, Fabien Bodard wrote: > what distrib ? ... if it's ubuntu gnome ... make sure that is not a > problem with the theme. > > Some theme hide icon menu and/or window icon .... > > 2010/12/11 Demosthenes Koptsis : > > The problem appears in run time. > > > > -- > > Regards, > > Demosthenes Koptsis. > > > > > > ---------- Message transf?r? ---------- > > From: Demosthenes Koptsis > > To: Gambas User List > > Date: Sat, 11 Dec 2010 11:37:39 +0200 > > Subject: Form.icon property does not work. > > > > Hi, > > > > In Gambas2 2.22 rev3344 i tried the icon property but it does not work. > > > > If i set a picture in design mode or in run time with > > > > ME.Icon = Picture["icon.png"] > > > > the icon is not shown up on the form. > > > > i checked also and my older projects which have an icon on the form and > > to them also the icon has disappeared. > > > > > > > > -- > > Regards, > > Demosthenes Koptsis. > > > > ------------------------------------------------------------------------------ > > Oracle to DB2 Conversion Guide: Learn learn about native support for PL/SQL, > > new data types, scalar functions, improved concurrency, built-in packages, > > OCI, SQL*Plus, data movement tools, best practices and more. > > http://p.sf.net/sfu/oracle-sfdev2dev > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > -- Regards, Demosthenes Koptsis. From nkoch22 at ...626... Sat Dec 11 18:17:06 2010 From: nkoch22 at ...626... (Nicolas Koch) Date: Sat, 11 Dec 2010 12:17:06 -0500 Subject: [Gambas-user] two separate groups of RadioButton same Form Message-ID: So I had taken a year hiatus away from the GAMBAS community due to the military and am finally back home coding again. :D I gotta tell you I really miss and love coding in GAMBAS. anyways on to my question... I have a Form and I want to have two separate groups of RadioButtons. In each group of RadioButtons on the same Form only one can be true, the rest will be false. How would I accomplish this? I had tried separating using panels, but I suppose I made a mistake somewhere. Thanks again to any and all who respond. Nick From gambas.fr at ...626... Sat Dec 11 18:35:45 2010 From: gambas.fr at ...626... (Fabien Bodard) Date: Sat, 11 Dec 2010 18:35:45 +0100 Subject: [Gambas-user] What is the use of Tag property In-Reply-To: <1292078137.19064.1.camel@...2493...> References: <1292078137.19064.1.camel@...2493...> Message-ID: many things ... you can embed in it any data you need withe the object... it is a variant so it can be string, numbers, objects. ex : For i = 0 to 10 hButton = New Button(ME) as "Button" hButton.Text = "Button " & i hButton.Tag = i NEXT END PUBLIC SUB Button_Click() Select Case LAST.Tag Case 1 Print "Button One Pressed" Case 2 Print "Button Two Pressed" Case 3 to 10 Print "Buttons between Three ans Ten pressed" Case else Print "lol What is this button ... from where does it come from ? end select end 2010/12/11 Demosthenes Koptsis : > PROPERTY Tag AS Variant > > Returns or sets the control tag. > > This property is intended for the programmer and is never used by the > component. It can contain any Variant value. > ------------------------------------------------ > > ok but what is the use of this property? > > > -- > Regards, > Demosthenes Koptsis. > > > ------------------------------------------------------------------------------ > Oracle to DB2 Conversion Guide: Learn learn about native support for PL/SQL, > new data types, scalar functions, improved concurrency, built-in packages, > OCI, SQL*Plus, data movement tools, best practices and more. > http://p.sf.net/sfu/oracle-sfdev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Fabien Bodard From twopilots at ...2415... Sat Dec 11 19:09:39 2010 From: twopilots at ...2415... (Ed & Clare Kelm) Date: Sat, 11 Dec 2010 10:09:39 -0800 Subject: [Gambas-user] two separate groups of RadioButton same Form In-Reply-To: References: Message-ID: <4D03BE63.10704@...2415...> Nicolas: Put each group of buttons, (or at least one group), in a frame. Ed K. Nicolas Koch wrote: > So I had taken a year hiatus away from the GAMBAS community due to the > military and am finally back home coding again. :D I gotta tell you I > really miss and love coding in GAMBAS. anyways on to my question... > > > I have a Form and I want to have two separate groups of RadioButtons. > In each group of RadioButtons on the same Form only one can be true, the > rest will be false. > > How would I accomplish this? I had tried separating using panels, but I > suppose I made a mistake somewhere. > > Thanks again to any and all who respond. > > Nick > ------------------------------------------------------------------------------ > Oracle to DB2 Conversion Guide: Learn learn about native support for PL/SQL, > new data types, scalar functions, improved concurrency, built-in packages, > OCI, SQL*Plus, data movement tools, best practices and more. > http://p.sf.net/sfu/oracle-sfdev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > From nkoch22 at ...626... Sat Dec 11 20:27:29 2010 From: nkoch22 at ...626... (Nicolas Koch) Date: Sat, 11 Dec 2010 14:27:29 -0500 Subject: [Gambas-user] two separate groups of RadioButton same Form In-Reply-To: <4D03BE63.10704@...2415...> References: <4D03BE63.10704@...2415...> Message-ID: I tried a frame in an existing program I had been working on, I just needed to redo the buttons within the frame. Very many thanks Ed. Nick On Sat, Dec 11, 2010 at 1:09 PM, Ed & Clare Kelm wrote: > Nicolas: > > Put each group of buttons, (or at least one group), in a frame. > > Ed K. > > Nicolas Koch wrote: > > So I had taken a year hiatus away from the GAMBAS community due to the > > military and am finally back home coding again. :D I gotta tell you I > > really miss and love coding in GAMBAS. anyways on to my question... > > > > > > I have a Form and I want to have two separate groups of RadioButtons. > > In each group of RadioButtons on the same Form only one can be true, the > > rest will be false. > > > > How would I accomplish this? I had tried separating using panels, but I > > suppose I made a mistake somewhere. > > > > Thanks again to any and all who respond. > > > > Nick > > > ------------------------------------------------------------------------------ > > Oracle to DB2 Conversion Guide: Learn learn about native support for > PL/SQL, > > new data types, scalar functions, improved concurrency, built-in > packages, > > OCI, SQL*Plus, data movement tools, best practices and more. > > http://p.sf.net/sfu/oracle-sfdev2dev > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > ------------------------------------------------------------------------------ > Oracle to DB2 Conversion Guide: Learn learn about native support for > PL/SQL, > new data types, scalar functions, improved concurrency, built-in packages, > OCI, SQL*Plus, data movement tools, best practices and more. > http://p.sf.net/sfu/oracle-sfdev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From mdavies5 at ...169... Sun Dec 12 00:16:33 2010 From: mdavies5 at ...169... (Michael) Date: Sun, 12 Dec 2010 10:16:33 +1100 Subject: [Gambas-user] stop event and gtk In-Reply-To: <1292074101.30349.11.camel@...2516...> References: <1292074101.30349.11.camel@...2516...> Message-ID: <4D040651.1050800@...169...> Not sure what you mean by "$bLang". In my Close button I set the Form.Tag to any value and then test for this in the form_close event. If the user closes from the Form Header the tag is not set and I can use a message box to confirm the closure. The Stop Event works ok. I am using Ubuntu 10.10 64 bit. Regards Michael On 12/12/10 00:28, Emanuele Sottocorno wrote: > Hi, > having the need to avoid the user closes the form before filling all > fields, I try to intercept the click on the Close Button on Form Title > with the following sub: > > Public Sub Form_Close() > If (Not $bLang) Then Stop Event > End > > under GTK the Form_Close event isn't stopped. > Gambas3 rev 3355 > Ubuntu 10.04 x86_64 > > Tanks for help, > Emanuele > > > ------------------------------------------------------------------------------ > Oracle to DB2 Conversion Guide: Learn learn about native support for PL/SQL, > new data types, scalar functions, improved concurrency, built-in packages, > OCI, SQL*Plus, data movement tools, best practices and more. > http://p.sf.net/sfu/oracle-sfdev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > From mdavies5 at ...169... Sun Dec 12 00:22:14 2010 From: mdavies5 at ...169... (Michael) Date: Sun, 12 Dec 2010 10:22:14 +1100 Subject: [Gambas-user] What is the use of Tag property In-Reply-To: <1292078137.19064.1.camel@...2493...> References: <1292078137.19064.1.camel@...2493...> Message-ID: <4D0407A6.90506@...169...> If you want a practical example. I have a data form with Edit, Add and Save buttons. When I click Edit or Add I set the tag property of the form; it can be anything "add" "edit or "1" and "2". When the Save button is clicked I then know which action to take. It's use is purely at the developer's discretion. In a sense it works as a global variable but is better because nobody likes globals. Regards Michael On 12/12/10 01:35, Demosthenes Koptsis wrote: > PROPERTY Tag AS Variant > > Returns or sets the control tag. > > This property is intended for the programmer and is never used by the > component. It can contain any Variant value. > ------------------------------------------------ > > ok but what is the use of this property? > > From kevinfishburne at ...1887... Sun Dec 12 00:42:45 2010 From: kevinfishburne at ...1887... (Kevin Fishburne) Date: Sat, 11 Dec 2010 18:42:45 -0500 Subject: [Gambas-user] gb3 - "Too many arguments" when binding UDP socket to port Message-ID: <4D040C75.80607@...1887...> Code looks like this: ' General declarations. Public server_port As Integer ' UDP port server listens on and client sends data to. Public server_ip As String ' IP address of the server that client sends data to. Public mode As String ' Mode to run game in ("client", "server"). Public udp As UdpSocket ' UDP socket for client/server network communication. Public data As String ' Stores incoming UDP data. Public Sub Initialize() ' Network initialization. ' Create the UDP socket. udp = New UdpSocket As "UDP" ' Bind the socket to the appropriate port. If udp.Status <= Net.Inactive Then If mode = "server" Then udp.Bind(server_port) Console.Say(Time & " - Mode: " & mode & ", Server Port: " & server_port) Endif If mode = "client" Then udp.Bind(0) Console.Say(Time & " - Mode: " & mode & ", Server IP Address: " & server_ip & ", Server Port: " & server_port) Endif Endif End I'm currently trying to convert my app from gb2 to gb3, so this is working in gb2. "udp.Bind(0)" returns the error, and though I haven't tested it yet I'm thinking that "udp.Bind(server_port)" will also return the same error. Any ideas what I'm doing wrong? -- Kevin Fishburne Eight Virtues www: [1]http://sales.eightvirtues.com e-mail: [2]sales at ...1887... phone: (770) 853-6271 References 1. http://sales.eightvirtues.com/ 2. mailto:sales at ...1887... From gambas at ...1... Sun Dec 12 02:08:21 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sun, 12 Dec 2010 02:08:21 +0100 Subject: [Gambas-user] stop event and gtk In-Reply-To: <1292074101.30349.11.camel@...2516...> References: <1292074101.30349.11.camel@...2516...> Message-ID: <201012120208.21516.gambas@...1...> > Hi, > having the need to avoid the user closes the form before filling all > fields, I try to intercept the click on the Close Button on Form Title > with the following sub: > > Public Sub Form_Close() > If (Not $bLang) Then Stop Event > End > > under GTK the Form_Close event isn't stopped. > Gambas3 rev 3355 > Ubuntu 10.04 x86_64 > > Tanks for help, > Emanuele > It works perfectly there. Please post your project so that we see if the problem is in Gambas or in your code. Regards, -- Beno?t Minisini From gambas at ...1... Sun Dec 12 02:15:27 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sun, 12 Dec 2010 02:15:27 +0100 Subject: [Gambas-user] Settings with VSplit control In-Reply-To: References: Message-ID: <201012120215.27930.gambas@...1...> > Hi, > > How to save the layout of VSplit? > I tried: > > SUB Form_Open() > vsplit1.settings = Settings["Group/Key"]; > PRINT Settings["Group/Key"] ' (1) > PRINT vsplit1.settings ' (2) > END > > Of course > > SUB Form_Close() > Settings["Group/Key"] = vsplit1.settings > END > > In running, (1) and (2) are different, all numbers in (2) are smaller than > (1). After some running, numbers in (2) decrease. > > I tried Settings.Read(vsplit1.window) too but I think that it saves its > location and size, not its content layout. > > Gambas 2.22. > Thanks! When writing to the splitter Settings property, the values of the layout are relatives. I mean that setting "1,2" or setting "2,4" has exactly the same result: 1/3 of the total size for the first pane, and 2/3 fot the other one. When reading the Settings property, you normally get the true sizes. As pixel sizes are integers, you don't get necessarily the same result. For example, if your splitter has 329 pixels to share, setting the layout to "1,2", or "2,4", or "200,400" will result in 110 pixels to the first pane and 219 pixels to the second pane. And so, when you will read the Settings property later, you will get "110,219". Does that explanation make things clearer? -- Beno?t Minisini From gambas at ...1... Sun Dec 12 02:17:41 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sun, 12 Dec 2010 02:17:41 +0100 Subject: [Gambas-user] About StrPtr() In-Reply-To: <1291890824.11738.2.camel@...2493...> References: <1291890824.11738.2.camel@...2493...> Message-ID: <201012120217.41697.gambas@...1...> > i made an example for StrPtr, it is the next one, > > ' Gambas module file > > PUBLIC SUB Main() > > DIM p AS Pointer > DIM s AS String > > p = Alloc("this is a string") > > 'READ #p, s > s = StrPtr(p) > PRINT s > Free(p) > > END > > I just want to question what is the difference between > 'READ #p, s > s = StrPtr(p) > > both of them make the same work. Where did you see that? StrPtr() reads a C-like strig in memory (i.e. a string terminated by a zero character). READ #p, s reads the length of the string first (in a Gambas multi-bytes specific internal format) and then reads the needed number of characters. Regards, -- Beno?t Minisini From demosthenesk at ...626... Sun Dec 12 09:32:37 2010 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Sun, 12 Dec 2010 10:32:37 +0200 Subject: [Gambas-user] What is the use of Tag property In-Reply-To: <4D0407A6.90506@...169...> References: <1292078137.19064.1.camel@...2493...> <4D0407A6.90506@...169...> Message-ID: <1292142757.3038.4.camel@...2494...> Ok i see. i used to use buttons event click for each one button and it is a bit strange to understand it. So if i understand right instead of click event you use a SELECT CASE for tag property? On Sun, 2010-12-12 at 10:22 +1100, Michael wrote: > If you want a practical example. I have a data form with Edit, Add and > Save buttons. When I click Edit or Add I set the tag property of the > form; it can be anything "add" "edit or "1" and "2". When the Save > button is clicked I then know which action to take. It's use is purely > at the developer's discretion. In a sense it works as a global variable > but is better because nobody likes globals. > > Regards > Michael > > > On 12/12/10 01:35, Demosthenes Koptsis wrote: > > PROPERTY Tag AS Variant > > > > Returns or sets the control tag. > > > > This property is intended for the programmer and is never used by the > > component. It can contain any Variant value. > > ------------------------------------------------ > > > > ok but what is the use of this property? > > > > > > ------------------------------------------------------------------------------ > Oracle to DB2 Conversion Guide: Learn learn about native support for PL/SQL, > new data types, scalar functions, improved concurrency, built-in packages, > OCI, SQL*Plus, data movement tools, best practices and more. > http://p.sf.net/sfu/oracle-sfdev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -- Regards, Demosthenes From ron at ...1740... Sun Dec 12 09:51:02 2010 From: ron at ...1740... (Ron) Date: Sun, 12 Dec 2010 09:51:02 +0100 Subject: [Gambas-user] gb3 - "Too many arguments" when binding UDP socket to port In-Reply-To: <4D040C75.80607@...1887...> References: <4D040C75.80607@...1887...> Message-ID: Syntax has changed in Gb3. See here for my Gambas2-Gambas3 scrapbook notes.. http://www.domotiga.nl/wiki/Gambas/Gambas3#UdpSocketSyntaxChange Happy porting!... Regards, Ron_2nd. On Sun, Dec 12, 2010 at 12:42 AM, Kevin Fishburne wrote: > > ? Code looks like this: > ? ' General declarations. > ? Public server_port As Integer ' UDP port server listens on and client sends > ? data to. > ? Public server_ip As String ? ?' IP address of the server that client sends > ? data to. > ? Public mode As String ? ? ? ? ' Mode to run game in ("client", "server"). > ? Public ?udp ?As UdpSocket ? ? ? ' UDP socket for client/server network > ? communication. > ? Public data As String ? ? ? ? ' Stores incoming UDP data. > ? Public Sub Initialize() > ? ? ' Network initialization. > ? ? ' Create the UDP socket. > ? ? udp = New UdpSocket As "UDP" > ? ? ' Bind the socket to the appropriate port. > ? ? If udp.Status <= Net.Inactive Then > ? ? ? If mode = "server" Then > ? ? ? ? udp.Bind(server_port) > ? ? ? ? ?Console.Say(Time ?& ?" ?- ?Mode: " & mode & ", Server Port: " & > ? server_port) > ? ? ? Endif > ? ? ? If mode = "client" Then > ? ? ? ? udp.Bind(0) > ? ? ? ? Console.Say(Time & " - Mode: " & mode & ", Server IP Address: " & > ? server_ip & ", Server Port: " & server_port) > ? ? ? Endif > ? ? Endif > ? End > ? I'm currently trying to convert my app from gb2 to gb3, so this is working > ? in gb2. "udp.Bind(0)" returns the error, and though I haven't tested it yet > ? I'm thinking that "udp.Bind(server_port)" will also return the same error. > ? Any ideas what I'm doing wrong? > -- > Kevin Fishburne > Eight Virtues > www: [1]http://sales.eightvirtues.com > e-mail: [2]sales at ...1887... > phone: (770) 853-6271 > > References > > ? 1. http://sales.eightvirtues.com/ > ? 2. mailto:sales at ...1887... > ------------------------------------------------------------------------------ > Oracle to DB2 Conversion Guide: Learn learn about native support for PL/SQL, > new data types, scalar functions, improved concurrency, built-in packages, > OCI, SQL*Plus, data movement tools, best practices and more. > http://p.sf.net/sfu/oracle-sfdev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From demosthenesk at ...626... Sun Dec 12 09:54:15 2010 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Sun, 12 Dec 2010 10:54:15 +0200 Subject: [Gambas-user] About StrPtr() In-Reply-To: <201012120217.41697.gambas@...1...> References: <1291890824.11738.2.camel@...2493...> <201012120217.41697.gambas@...1...> Message-ID: <1292144055.3038.16.camel@...2494...> i just compared the output with PRINT s and i saw the same result. i was wrong because i did not know about string manipulation in c. i did not understand the zero terminated string you mentioned in help. i found some info at this page http://www.dfstermole.net/OAC/hstrings.html Is there any way to produce a zero terminated string in Gambas to demostrate the StrPtr()? On Sun, 2010-12-12 at 02:17 +0100, Beno?t Minisini wrote: > > i made an example for StrPtr, it is the next one, > > > > ' Gambas module file > > > > PUBLIC SUB Main() > > > > DIM p AS Pointer > > DIM s AS String > > > > p = Alloc("this is a string") > > > > 'READ #p, s > > s = StrPtr(p) > > PRINT s > > Free(p) > > > > END > > > > I just want to question what is the difference between > > 'READ #p, s > > s = StrPtr(p) > > > > both of them make the same work. > > Where did you see that? > > StrPtr() reads a C-like strig in memory (i.e. a string terminated by a zero > character). > > READ #p, s reads the length of the string first (in a Gambas multi-bytes > specific internal format) and then reads the needed number of characters. > > Regards, > -- Regards, Demosthenes From ron at ...1740... Sun Dec 12 10:00:06 2010 From: ron at ...1740... (Ron) Date: Sun, 12 Dec 2010 10:00:06 +0100 Subject: [Gambas-user] What is the use of Tag property In-Reply-To: <1292142757.3038.4.camel@...2494...> References: <1292078137.19064.1.camel@...2493...> <4D0407A6.90506@...169...> <1292142757.3038.4.camel@...2494...> Message-ID: I use the Tag properties in async network code. So I know when a call ends to which event it belongs. See here for an example: http://www.domotiga.nl/browser/trunk/DomotiGa/Ping.module#L67 http://www.domotiga.nl/browser/trunk/DomotiGa/Ping.module#L98 Not all objects have a Tag property, for example Timers don't have it. Regards, Ron_2nd. On Sun, Dec 12, 2010 at 9:32 AM, Demosthenes Koptsis wrote: > Ok i see. > > i used to use buttons event click for each one button and it is a bit > strange to understand it. > > So if i understand right instead of click event you use a SELECT CASE > for tag property? > > > > On Sun, 2010-12-12 at 10:22 +1100, Michael wrote: >> If you want a practical example. I have a data form with Edit, Add and >> Save buttons. When I click Edit or Add I set the tag property of the >> form; it can be anything "add" "edit or "1" and "2". When the Save >> button is clicked I then know which action to take. It's use is purely >> at the developer's discretion. In a sense it works as a global variable >> but is better because nobody likes globals. >> >> Regards >> Michael >> >> >> On 12/12/10 01:35, Demosthenes Koptsis wrote: >> > PROPERTY Tag AS Variant >> > >> > Returns or sets the control tag. >> > >> > This property is intended for the programmer and is never used by the >> > component. It can contain any Variant value. >> > ------------------------------------------------ >> > >> > ok but what is the use of this property? >> > >> > >> >> ------------------------------------------------------------------------------ >> Oracle to DB2 Conversion Guide: Learn learn about native support for PL/SQL, >> new data types, scalar functions, improved concurrency, built-in packages, >> OCI, SQL*Plus, data movement tools, best practices and more. >> http://p.sf.net/sfu/oracle-sfdev2dev >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user > > -- > Regards, > Demosthenes > > > ------------------------------------------------------------------------------ > Oracle to DB2 Conversion Guide: Learn learn about native support for PL/SQL, > new data types, scalar functions, improved concurrency, built-in packages, > OCI, SQL*Plus, data movement tools, best practices and more. > http://p.sf.net/sfu/oracle-sfdev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From demosthenesk at ...626... Sun Dec 12 10:09:48 2010 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Sun, 12 Dec 2010 11:09:48 +0200 Subject: [Gambas-user] What is the use of Tag property In-Reply-To: References: <1292078137.19064.1.camel@...2493...> <4D0407A6.90506@...169...> <1292142757.3038.4.camel@...2494...> Message-ID: <1292144988.3038.17.camel@...2494...> thanks i ll check it. On Sun, 2010-12-12 at 10:00 +0100, Ron wrote: > I use the Tag properties in async network code. > So I know when a call ends to which event it belongs. > > See here for an example: > http://www.domotiga.nl/browser/trunk/DomotiGa/Ping.module#L67 > http://www.domotiga.nl/browser/trunk/DomotiGa/Ping.module#L98 > > Not all objects have a Tag property, for example Timers don't have it. > > Regards, > Ron_2nd. > On Sun, Dec 12, 2010 at 9:32 AM, Demosthenes Koptsis > wrote: > > Ok i see. > > > > i used to use buttons event click for each one button and it is a bit > > strange to understand it. > > > > So if i understand right instead of click event you use a SELECT CASE > > for tag property? > > > > > > > > On Sun, 2010-12-12 at 10:22 +1100, Michael wrote: > >> If you want a practical example. I have a data form with Edit, Add and > >> Save buttons. When I click Edit or Add I set the tag property of the > >> form; it can be anything "add" "edit or "1" and "2". When the Save > >> button is clicked I then know which action to take. It's use is purely > >> at the developer's discretion. In a sense it works as a global variable > >> but is better because nobody likes globals. > >> > >> Regards > >> Michael > >> > >> > >> On 12/12/10 01:35, Demosthenes Koptsis wrote: > >> > PROPERTY Tag AS Variant > >> > > >> > Returns or sets the control tag. > >> > > >> > This property is intended for the programmer and is never used by the > >> > component. It can contain any Variant value. > >> > ------------------------------------------------ > >> > > >> > ok but what is the use of this property? > >> > > >> > > >> > >> ------------------------------------------------------------------------------ > >> Oracle to DB2 Conversion Guide: Learn learn about native support for PL/SQL, > >> new data types, scalar functions, improved concurrency, built-in packages, > >> OCI, SQL*Plus, data movement tools, best practices and more. > >> http://p.sf.net/sfu/oracle-sfdev2dev > >> _______________________________________________ > >> Gambas-user mailing list > >> Gambas-user at lists.sourceforge.net > >> https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > -- > > Regards, > > Demosthenes > > > > > > ------------------------------------------------------------------------------ > > Oracle to DB2 Conversion Guide: Learn learn about native support for PL/SQL, > > new data types, scalar functions, improved concurrency, built-in packages, > > OCI, SQL*Plus, data movement tools, best practices and more. > > http://p.sf.net/sfu/oracle-sfdev2dev > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > ------------------------------------------------------------------------------ > Oracle to DB2 Conversion Guide: Learn learn about native support for PL/SQL, > new data types, scalar functions, improved concurrency, built-in packages, > OCI, SQL*Plus, data movement tools, best practices and more. > http://p.sf.net/sfu/oracle-sfdev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -- Regards, Demosthenes From mdavies5 at ...169... Sun Dec 12 11:16:08 2010 From: mdavies5 at ...169... (Michael) Date: Sun, 12 Dec 2010 21:16:08 +1100 Subject: [Gambas-user] What is the use of Tag property In-Reply-To: <1292142757.3038.4.camel@...2494...> References: <1292078137.19064.1.camel@...2493...> <4D0407A6.90506@...169...> <1292142757.3038.4.camel@...2494...> Message-ID: <4D04A0E8.5030507@...169...> Select Case is not an alternative to a click event. In the example I gave you would use the following pseudo code: SUB btnEdit_Click() ME.Tag = "edit" Populate text boxes with current data and enable them to be edited SUB btnNew_Click ME.Tag = "new" Clear all text boxes and enable them to accept data. SUB btnSave_Click SELECT CASE ME.Tag CASE "edit' Update database with edited information CASE "new" Insert new record into database. END SELECT ME.Tag="" In my example the TAG property is set to indicate the status of the application. If the user tried to close the form you would be aware that data was being changed and you could ask the user if they wanted to save the data before closing. I hope this is clear. Regards Michael On 12/12/10 19:32, Demosthenes Koptsis wrote: > Ok i see. > > i used to use buttons event click for each one button and it is a bit > strange to understand it. > > So if i understand right instead of click event you use a SELECT CASE > for tag property? > > > > On Sun, 2010-12-12 at 10:22 +1100, Michael wrote: >> If you want a practical example. I have a data form with Edit, Add and >> Save buttons. When I click Edit or Add I set the tag property of the >> form; it can be anything "add" "edit or "1" and "2". When the Save >> button is clicked I then know which action to take. It's use is purely >> at the developer's discretion. In a sense it works as a global variable >> but is better because nobody likes globals. >> >> Regards >> Michael >> >> >> On 12/12/10 01:35, Demosthenes Koptsis wrote: >>> PROPERTY Tag AS Variant >>> >>> Returns or sets the control tag. >>> >>> This property is intended for the programmer and is never used by the >>> component. It can contain any Variant value. >>> ------------------------------------------------ >>> >>> ok but what is the use of this property? >>> >>> >> ------------------------------------------------------------------------------ >> Oracle to DB2 Conversion Guide: Learn learn about native support for PL/SQL, >> new data types, scalar functions, improved concurrency, built-in packages, >> OCI, SQL*Plus, data movement tools, best practices and more. >> http://p.sf.net/sfu/oracle-sfdev2dev >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user From rterry at ...1946... Sun Dec 12 11:38:49 2010 From: rterry at ...1946... (richard terry) Date: Sun, 12 Dec 2010 21:38:49 +1100 Subject: [Gambas-user] Settings with VSplit control In-Reply-To: <201012120215.27930.gambas@...1...> References: <201012120215.27930.gambas@...1...> Message-ID: <201012122138.49217.rterry@...1946...> Simple sample code: Public sub Save_Settings() Settings["Your_Section_Name/HSplit_Main.Layout"] = HSplit_Main.Layout end to restore this: Public Sub Settings_Load() HSplit_Main.Layout = Settings["Your_Section_Name/HSplit_Main.Layout"] = HSplit_Main.Layout End BTW settings is located usually in: /home/user/.config/gambas3/your_app_name.conf eg /home/richard/ etc Regards Richard On Sunday 12 December 2010 12:15:27 Beno?t Minisini wrote: > > Hi, > > > > How to save the layout of VSplit? > > I tried: > > > > SUB Form_Open() > > vsplit1.settings = Settings["Group/Key"]; > > PRINT Settings["Group/Key"] ' (1) > > PRINT vsplit1.settings ' (2) > > END > > > > Of course > > > > SUB Form_Close() > > Settings["Group/Key"] = vsplit1.settings > > END > > > > In running, (1) and (2) are different, all numbers in (2) are smaller > > than (1). After some running, numbers in (2) decrease. > > > > I tried Settings.Read(vsplit1.window) too but I think that it saves its > > location and size, not its content layout. > > > > Gambas 2.22. > > Thanks! > > When writing to the splitter Settings property, the values of the layout > are relatives. I mean that setting "1,2" or setting "2,4" has exactly the > same result: 1/3 of the total size for the first pane, and 2/3 fot the > other one. > > When reading the Settings property, you normally get the true sizes. As > pixel sizes are integers, you don't get necessarily the same result. > > For example, if your splitter has 329 pixels to share, setting the layout > to "1,2", or "2,4", or "200,400" will result in 110 pixels to the first > pane and 219 pixels to the second pane. And so, when you will read the > Settings property later, you will get "110,219". > > Does that explanation make things clearer? > From sotema at ...626... Sun Dec 12 11:55:23 2010 From: sotema at ...626... (Emanuele Sottocorno) Date: Sun, 12 Dec 2010 11:55:23 +0100 Subject: [Gambas-user] stop event and gtk In-Reply-To: <201012120208.21516.gambas@...1...> References: <1292074101.30349.11.camel@...2516...> <201012120208.21516.gambas@...1...> Message-ID: <1292151323.1764.5.camel@...2476...> Hi Benoit, here is the project. The form showing the problem is the FLanguage". I suppose it is a GTK bug 'cause of switching to QT it works fine. Il giorno dom, 12/12/2010 alle 02.08 +0100, Beno?t Minisini ha scritto: > > Hi, > > having the need to avoid the user closes the form before filling all > > fields, I try to intercept the click on the Close Button on Form Title > > with the following sub: > > > > Public Sub Form_Close() > > If (Not $bLang) Then Stop Event > > End > > > > under GTK the Form_Close event isn't stopped. > > Gambas3 rev 3355 > > Ubuntu 10.04 x86_64 > > > > Tanks for help, > > Emanuele > > > > It works perfectly there. Please post your project so that we see if the > problem is in Gambas or in your code. > > Regards, > -------------- next part -------------- A non-text attachment was scrubbed... Name: gbPneus.tar.gz Type: application/x-compressed-tar Size: 41499 bytes Desc: not available URL: From demosthenesk at ...626... Sun Dec 12 12:28:07 2010 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Sun, 12 Dec 2010 13:28:07 +0200 Subject: [Gambas-user] What is the use of Tag property In-Reply-To: <4D04A0E8.5030507@...169...> References: <1292078137.19064.1.camel@...2493...> <4D0407A6.90506@...169...> <1292142757.3038.4.camel@...2494...> <4D04A0E8.5030507@...169...> Message-ID: <1292153287.3828.0.camel@...2494...> ok i ll study it in proper time. On Sun, 2010-12-12 at 21:16 +1100, Michael wrote: > Select Case is not an alternative to a click event. In the example I > gave you would use the following pseudo code: > SUB btnEdit_Click() > ME.Tag = "edit" > Populate text boxes with current data and enable them to be edited > > SUB btnNew_Click > ME.Tag = "new" > Clear all text boxes and enable them to accept data. > > SUB btnSave_Click > SELECT CASE ME.Tag > CASE "edit' > Update database with edited information > CASE "new" > Insert new record into database. > END SELECT > ME.Tag="" > > In my example the TAG property is set to indicate the status of the > application. If the user tried to close the form you would be aware that > data was being changed and you could ask the user if they wanted to save > the data before closing. > I hope this is clear. > > Regards > Michael > > > On 12/12/10 19:32, Demosthenes Koptsis wrote: > > Ok i see. > > > > i used to use buttons event click for each one button and it is a bit > > strange to understand it. > > > > So if i understand right instead of click event you use a SELECT CASE > > for tag property? > > > > > > > > On Sun, 2010-12-12 at 10:22 +1100, Michael wrote: > >> If you want a practical example. I have a data form with Edit, Add and > >> Save buttons. When I click Edit or Add I set the tag property of the > >> form; it can be anything "add" "edit or "1" and "2". When the Save > >> button is clicked I then know which action to take. It's use is purely > >> at the developer's discretion. In a sense it works as a global variable > >> but is better because nobody likes globals. > >> > >> Regards > >> Michael > >> > >> > >> On 12/12/10 01:35, Demosthenes Koptsis wrote: > >>> PROPERTY Tag AS Variant > >>> > >>> Returns or sets the control tag. > >>> > >>> This property is intended for the programmer and is never used by the > >>> component. It can contain any Variant value. > >>> ------------------------------------------------ > >>> > >>> ok but what is the use of this property? > >>> > >>> > >> ------------------------------------------------------------------------------ > >> Oracle to DB2 Conversion Guide: Learn learn about native support for PL/SQL, > >> new data types, scalar functions, improved concurrency, built-in packages, > >> OCI, SQL*Plus, data movement tools, best practices and more. > >> http://p.sf.net/sfu/oracle-sfdev2dev > >> _______________________________________________ > >> Gambas-user mailing list > >> Gambas-user at lists.sourceforge.net > >> https://lists.sourceforge.net/lists/listinfo/gambas-user > > ------------------------------------------------------------------------------ > Oracle to DB2 Conversion Guide: Learn learn about native support for PL/SQL, > new data types, scalar functions, improved concurrency, built-in packages, > OCI, SQL*Plus, data movement tools, best practices and more. > http://p.sf.net/sfu/oracle-sfdev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -- Regards, Demosthenes From rterry at ...1946... Sun Dec 12 12:35:22 2010 From: rterry at ...1946... (richard terry) Date: Sun, 12 Dec 2010 22:35:22 +1100 Subject: [Gambas-user] Settings with VSplit control -oops In-Reply-To: <201012122138.49217.rterry@...1946...> References: <201012120215.27930.gambas@...1...> <201012122138.49217.rterry@...1946...> Message-ID: <201012122235.22538.rterry@...1946...> On Sunday 12 December 2010 21:38:49 richard terry wrote: Sorry, didn't delete something as I was cutnpasting and typing: try again: Simple sample code: Public sub Save_Settings() Settings["Your_Section_Name/HSplit_Main.Layout"] = HSplit_Main.Layout end to restore this: Public Sub Settings_Load() HSplit_Main.Layout = Settings["Your_Section_Name/HSplit_Main.Layout"] End > > BTW settings is located usually in: > > /home/user/.config/gambas3/your_app_name.conf > > eg /home/richard/ etc > > Regards > > Richard > > On Sunday 12 December 2010 12:15:27 Beno?t Minisini wrote: > > > Hi, > > > > > > How to save the layout of VSplit? > > > I tried: > > > > > > SUB Form_Open() > > > vsplit1.settings = Settings["Group/Key"]; > > > PRINT Settings["Group/Key"] ' (1) > > > PRINT vsplit1.settings ' (2) > > > END > > > > > > Of course > > > > > > SUB Form_Close() > > > Settings["Group/Key"] = vsplit1.settings > > > END > > > > > > In running, (1) and (2) are different, all numbers in (2) are smaller > > > than (1). After some running, numbers in (2) decrease. > > > > > > I tried Settings.Read(vsplit1.window) too but I think that it saves its > > > location and size, not its content layout. > > > > > > Gambas 2.22. > > > Thanks! > > > > When writing to the splitter Settings property, the values of the layout > > are relatives. I mean that setting "1,2" or setting "2,4" has exactly > > the same result: 1/3 of the total size for the first pane, and 2/3 fot > > the other one. > > > > When reading the Settings property, you normally get the true sizes. As > > pixel sizes are integers, you don't get necessarily the same result. > > > > For example, if your splitter has 329 pixels to share, setting the layout > > to "1,2", or "2,4", or "200,400" will result in 110 pixels to the first > > pane and 219 pixels to the second pane. And so, when you will read the > > Settings property later, you will get "110,219". > > > > Does that explanation make things clearer? > > --------------------------------------------------------------------------- > --- Oracle to DB2 Conversion Guide: Learn learn about native support for > PL/SQL, new data types, scalar functions, improved concurrency, built-in > packages, OCI, SQL*Plus, data movement tools, best practices and more. > http://p.sf.net/sfu/oracle-sfdev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From shanep at ...2481... Sun Dec 12 13:18:48 2010 From: shanep at ...2481... (Shane) Date: Sun, 12 Dec 2010 23:18:48 +1100 Subject: [Gambas-user] gambas3 ide bug Message-ID: <4D04BDA8.6030000@...2481...> when you use the del key on keyboard to delete a component on the form the ide stops responding to placing new components and and resizing the form gambas 3 revision 3355 From soleilpqd at ...626... Sun Dec 12 15:25:10 2010 From: soleilpqd at ...626... (=?UTF-8?B?UGjhuqFtIFF1YW5nIETGsMahbmc=?=) Date: Sun, 12 Dec 2010 21:25:10 +0700 Subject: [Gambas-user] Settings with VSplit control In-Reply-To: <201012122138.49217.rterry@...1946...> References: <201012120215.27930.gambas@...1...> <201012122138.49217.rterry@...1946...> Message-ID: OK, thank you all. @Terry: your code is like mine. It can not restore VSplit layout. I think problem from Form_Open and Form_Resize. So I did: SUB Form_Open() Dim i as Integer Settings.Read(ME.Window) i = Val(Settings["Group/key"]) vsplit1.Layout = i & "," & (vsplit1.Height - i) END SUB Form_Resize() ' Resize FMain components including vsplit1 to fit form END PUBLIC SUB Form_Close() DIM a AS String[] a = Split(vsplit1.Layout, ",") Settings["Group/key"] = a[0] Settings.Write(ME.Window) END It works better :) 2010/12/12 richard terry > Simple sample code: > > Public sub Save_Settings() > Settings["Your_Section_Name/HSplit_Main.Layout"] = HSplit_Main.Layout > end > > to restore this: > > Public Sub Settings_Load() > HSplit_Main.Layout = > Settings["Your_Section_Name/HSplit_Main.Layout"] = HSplit_Main.Layout > > End > > BTW settings is located usually in: > > /home/user/.config/gambas3/your_app_name.conf > > eg /home/richard/ etc > > Regards > > Richard > > On Sunday 12 December 2010 12:15:27 Beno?t Minisini wrote: > > > Hi, > > > > > > How to save the layout of VSplit? > > > I tried: > > > > > > SUB Form_Open() > > > vsplit1.settings = Settings["Group/Key"]; > > > PRINT Settings["Group/Key"] ' (1) > > > PRINT vsplit1.settings ' (2) > > > END > > > > > > Of course > > > > > > SUB Form_Close() > > > Settings["Group/Key"] = vsplit1.settings > > > END > > > > > > In running, (1) and (2) are different, all numbers in (2) are smaller > > > than (1). After some running, numbers in (2) decrease. > > > > > > I tried Settings.Read(vsplit1.window) too but I think that it saves its > > > location and size, not its content layout. > > > > > > Gambas 2.22. > > > Thanks! > > > > When writing to the splitter Settings property, the values of the layout > > are relatives. I mean that setting "1,2" or setting "2,4" has exactly > the > > same result: 1/3 of the total size for the first pane, and 2/3 fot the > > other one. > > > > When reading the Settings property, you normally get the true sizes. As > > pixel sizes are integers, you don't get necessarily the same result. > > > > For example, if your splitter has 329 pixels to share, setting the layout > > to "1,2", or "2,4", or "200,400" will result in 110 pixels to the first > > pane and 219 pixels to the second pane. And so, when you will read the > > Settings property later, you will get "110,219". > > > > Does that explanation make things clearer? > > > > > ------------------------------------------------------------------------------ > Oracle to DB2 Conversion Guide: Learn learn about native support for > PL/SQL, > new data types, scalar functions, improved concurrency, built-in packages, > OCI, SQL*Plus, data movement tools, best practices and more. > http://p.sf.net/sfu/oracle-sfdev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Sun Dec 12 19:01:15 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sun, 12 Dec 2010 19:01:15 +0100 Subject: [Gambas-user] About StrPtr() In-Reply-To: <1292144055.3038.16.camel@...2494...> References: <1291890824.11738.2.camel@...2493...> <201012120217.41697.gambas@...1...> <1292144055.3038.16.camel@...2494...> Message-ID: <201012121901.15506.gambas@...1...> > i just compared the output > with PRINT s and i saw the same result. > > i was wrong because i did not know about string manipulation in c. > i did not understand the zero terminated string you mentioned in help. > > i found some info at this page > http://www.dfstermole.net/OAC/hstrings.html > > Is there any way to produce a zero terminated string in Gambas to > demostrate the StrPtr()? > Yes, but I don't want to really explain that, as it is internal interpreter stuff. Even if Gambas always knows the length of a string (by storing it with the string contents for example), all strings created by Gambas are zero- terminated string. *But*, Gambas does not always create strings. For example, many string manipulation functions (Mid$, Left$, Right$, Trim$...) do not really create strings to be faster, and so do not return zero-terminated strings necessarily. So, to be sure, just create a string with an explicit Chr$(0) at its end. Regards, -- Beno?t Minisini From gambas at ...1... Sun Dec 12 19:04:34 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sun, 12 Dec 2010 19:04:34 +0100 Subject: [Gambas-user] gb3 - "Too many arguments" when binding UDP socket to port In-Reply-To: References: <4D040C75.80607@...1887...> Message-ID: <201012121904.34477.gambas@...1...> > Syntax has changed in Gb3. See here for my Gambas2-Gambas3 scrapbook > notes.. > > http://www.domotiga.nl/wiki/Gambas/Gambas3#UdpSocketSyntaxChange > Hey, very good page! Note that now in Gambas 3, you don't have to do the following anymore: Dim b As Byte[] = [CByte(&HF0), CByte(&H3E), CByte(&HF0), CByte(&H3E)] You can just do: Dim b As Byte[] = [&HF0, &H3E, &HF0, &H3E] The Integer array returned by the [...] operator is automatically converted to a byte array. It's a bit slower, but the first syntax was too boring. Regards, -- Beno?t Minisini From demosthenesk at ...626... Sun Dec 12 19:38:47 2010 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Sun, 12 Dec 2010 20:38:47 +0200 Subject: [Gambas-user] About StrPtr() In-Reply-To: <201012121901.15506.gambas@...1...> References: <1291890824.11738.2.camel@...2493...> <201012120217.41697.gambas@...1...> <1292144055.3038.16.camel@...2494...> <201012121901.15506.gambas@...1...> Message-ID: <1292179127.5061.5.camel@...2494...> ok i made this example PUBLIC SUB Main() DIM p AS Pointer DIM s AS String DIM a AS String = "this is a string" & Chr$(0) PRINT Len(a) PRINT InStr(a, Chr$(0)) p = Alloc(a) 'READ #p, s s = StrPtr(p) PRINT Len(s) PRINT InStr(s, Chr$(0)) Free(p) END --------------------- Before StrPtr(p) then Len and InStr() shows 17 characters, ok! After StrPtr(p) the last zero terminated character seems to be disapeared. The Len is 16 and InStr() does not find the chr$(0). Did i do something wrong? On Sun, 2010-12-12 at 19:01 +0100, Beno?t Minisini wrote: > > i just compared the output > > with PRINT s and i saw the same result. > > > > i was wrong because i did not know about string manipulation in c. > > i did not understand the zero terminated string you mentioned in help. > > > > i found some info at this page > > http://www.dfstermole.net/OAC/hstrings.html > > > > Is there any way to produce a zero terminated string in Gambas to > > demostrate the StrPtr()? > > > > Yes, but I don't want to really explain that, as it is internal interpreter > stuff. > > Even if Gambas always knows the length of a string (by storing it with the > string contents for example), all strings created by Gambas are zero- > terminated string. > > *But*, Gambas does not always create strings. For example, many string > manipulation functions (Mid$, Left$, Right$, Trim$...) do not really create > strings to be faster, and so do not return zero-terminated strings > necessarily. > > So, to be sure, just create a string with an explicit Chr$(0) at its end. > > Regards, > -- Regards, Demosthenes From demosthenesk at ...626... Sun Dec 12 19:45:11 2010 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Sun, 12 Dec 2010 20:45:11 +0200 Subject: [Gambas-user] [Fwd: Re: About StrPtr()] Message-ID: <1292179511.5061.7.camel@...2494...> i use Gambas2-2.22 rev 3348 -- Regards, Demosthenes -------------- next part -------------- An embedded message was scrubbed... From: Demosthenes Koptsis Subject: Re: [Gambas-user] About StrPtr() Date: Sun, 12 Dec 2010 20:38:50 +0200 Size: 2247 URL: From rterry at ...1946... Sun Dec 12 22:11:19 2010 From: rterry at ...1946... (richard terry) Date: Mon, 13 Dec 2010 08:11:19 +1100 Subject: [Gambas-user] Settings with VSplit control In-Reply-To: References: <201012122138.49217.rterry@...1946...> Message-ID: <201012130811.19259.rterry@...1946...> On Monday 13 December 2010 01:25:10 Ph?m Quang D??ng wrote: My code is used in probably hundreds of splits all over my program and works 100%. of the time. I'd never ever try and re-size forms or controls using the re-size event - let the properties of the forms/controls do that for you, combined with the Settings file. Regards Richard > OK, thank you all. > > @Terry: your code is like mine. It can not restore VSplit layout. I think > problem from Form_Open and Form_Resize. > > So I did: > > SUB Form_Open() > Dim i as Integer > Settings.Read(ME.Window) > i = Val(Settings["Group/key"]) > vsplit1.Layout = i & "," & (vsplit1.Height - i) > END > > SUB Form_Resize() > ' Resize FMain components including vsplit1 to fit form > END > > PUBLIC SUB Form_Close() > DIM a AS String[] > a = Split(vsplit1.Layout, ",") > Settings["Group/key"] = a[0] > Settings.Write(ME.Window) > END > > It works better :) > > 2010/12/12 richard terry > > > Simple sample code: > > > > Public sub Save_Settings() > > Settings["Your_Section_Name/HSplit_Main.Layout"] = > > HSplit_Main.Layout end > > > > to restore this: > > > > Public Sub Settings_Load() > > HSplit_Main.Layout = > > Settings["Your_Section_Name/HSplit_Main.Layout"] = HSplit_Main.Layout > > > > End > > > > BTW settings is located usually in: > > > > /home/user/.config/gambas3/your_app_name.conf > > > > eg /home/richard/ etc > > > > Regards > > > > Richard > > > > On Sunday 12 December 2010 12:15:27 Beno?t Minisini wrote: > > > > Hi, > > > > > > > > How to save the layout of VSplit? > > > > I tried: > > > > > > > > SUB Form_Open() > > > > vsplit1.settings = Settings["Group/Key"]; > > > > PRINT Settings["Group/Key"] ' (1) > > > > PRINT vsplit1.settings ' (2) > > > > END > > > > > > > > Of course > > > > > > > > SUB Form_Close() > > > > Settings["Group/Key"] = vsplit1.settings > > > > END > > > > > > > > In running, (1) and (2) are different, all numbers in (2) are smaller > > > > than (1). After some running, numbers in (2) decrease. > > > > > > > > I tried Settings.Read(vsplit1.window) too but I think that it saves > > > > its location and size, not its content layout. > > > > > > > > Gambas 2.22. > > > > Thanks! > > > > > > When writing to the splitter Settings property, the values of the > > > layout are relatives. I mean that setting "1,2" or setting "2,4" has > > > exactly > > > > the > > > > > same result: 1/3 of the total size for the first pane, and 2/3 fot the > > > other one. > > > > > > When reading the Settings property, you normally get the true sizes. As > > > pixel sizes are integers, you don't get necessarily the same result. > > > > > > For example, if your splitter has 329 pixels to share, setting the > > > layout to "1,2", or "2,4", or "200,400" will result in 110 pixels to > > > the first pane and 219 pixels to the second pane. And so, when you will > > > read the Settings property later, you will get "110,219". > > > > > > Does that explanation make things clearer? > > > > ------------------------------------------------------------------------- > >----- Oracle to DB2 Conversion Guide: Learn learn about native support for > > PL/SQL, > > new data types, scalar functions, improved concurrency, built-in > > packages, OCI, SQL*Plus, data movement tools, best practices and more. > > http://p.sf.net/sfu/oracle-sfdev2dev > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > --------------------------------------------------------------------------- > --- Oracle to DB2 Conversion Guide: Learn learn about native support for > PL/SQL, new data types, scalar functions, improved concurrency, built-in > packages, OCI, SQL*Plus, data movement tools, best practices and more. > http://p.sf.net/sfu/oracle-sfdev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Mon Dec 13 06:28:21 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Mon, 13 Dec 2010 06:28:21 +0100 Subject: [Gambas-user] gambas3 ide bug In-Reply-To: <4D04BDA8.6030000@...2481...> References: <4D04BDA8.6030000@...2481...> Message-ID: <201012130628.21311.gambas@...1...> > when you use the del key on keyboard to delete a component on the form > the ide stops responding > to placing new components and and resizing the form > > gambas 3 revision 3355 > I cannot reproduce that. Can you give more information? -- Beno?t Minisini From gambas at ...1... Mon Dec 13 06:43:12 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Mon, 13 Dec 2010 06:43:12 +0100 Subject: [Gambas-user] stop event and gtk In-Reply-To: <1292151323.1764.5.camel@...2476...> References: <1292074101.30349.11.camel@...2516...> <201012120208.21516.gambas@...1...> <1292151323.1764.5.camel@...2476...> Message-ID: <201012130643.12657.gambas@...1...> > Hi Benoit, here is the project. > The form showing the problem is the FLanguage". > I suppose it is a GTK bug 'cause of switching to QT it works fine. > OK. The bug should be fixed in revision #3359. Regards, -- Beno?t Minisini From gambas at ...1... Mon Dec 13 06:47:47 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Mon, 13 Dec 2010 06:47:47 +0100 Subject: [Gambas-user] First look at Gambas 3 In-Reply-To: <4CFACD3A.4060001@...169...> References: <15973_1291285925_4CF775A5_15973_37998_2_168370D075CE7F4EBFEEF36949F895472A85DC1F43@...2515...> <201012041721.34481.gambas@...1...> <4CFACD3A.4060001@...169...> Message-ID: <201012130647.47901.gambas@...1...> > Benoit > Thanks for your help. I attach 2 screenshots showing the color selectors > which appear from Form/Properties/Background. > They appear to use different color palettes. Gambas2 palette is similar > to the default Desktop theme used in Ubuntu Maverick which was valid > when I installed Gambas2. The Gambas3 palette is similar to my current > desktop theme. Interestingly note also the different sizes of the > dialog. Both screen shots taken on same machine at same resolution. As a > general rule the move from 2 to 3 has detracted from the UI beauty. > However, that is a subjective opinion, others may disagree. > Regards > Michael > This is an Ubuntu problem that does not make Qt3 use the GTK+ system colors, but does make Qt4 use them. The dialog sizes are different because in Gambas dialog sizes are proportional to the font size, and because the proportional factor is not the same between Gambas 2 and Gambas 3. As for the UI beauty, as you said, this is a matter of subjective taste. And above all, habits! Regards, -- Beno?t Minisini From gambas at ...1... Mon Dec 13 06:50:58 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Mon, 13 Dec 2010 06:50:58 +0100 Subject: [Gambas-user] Memory management In-Reply-To: <1291215686.11898.2.camel@...2493...> References: <1291215686.11898.2.camel@...2493...> Message-ID: <201012130650.58228.gambas@...1...> > Hi, > > i can tell that there is a missing part in Overview of > http://gambasdoc.org/help/lang > > It would be very useful a section about memory management with pointer > relative subjects such Alloc(), pointers etc > > What do you say? The section is actually "External function management" at the moment. -- Beno?t Minisini From gambas at ...1... Mon Dec 13 06:55:31 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Mon, 13 Dec 2010 06:55:31 +0100 Subject: [Gambas-user] PIPE issues In-Reply-To: <1291222523.7316.4.camel@...2493...> References: <1291222523.7316.4.camel@...2493...> Message-ID: <201012130655.31846.gambas@...1...> > Gambas2 2.21 rev3300 > > this example is not working in Ubuntu 10.04 AMD64 > > PUBLIC SUB Main() > > ' Prints the messages sent to a pipe > > DIM hFile AS File > DIM sLine AS String > > hFile = PIPE "/tmp/FIFO1" FOR INPUT > > WHILE NOT Eof(hFile) > LINE INPUT #hFile, sLine > PRINT sLine > WEND > > END > > The pipe is created ok! > But if i make a ls > /tmp/FIFO1 > > nothing is appeared in console and program terminates. > This is a pipe. Data is available only when it has been filled by the other side. So Eof() can returns true at anytime, even if some data may be written in the future. Gambas cannot read the future yet. > if i change to > WHILE TRUE > > i get the ls results to console and > i get an error > > System error. Inappropriate ioctl for device. The error message is not very accurate. But it is normal, as reading on a pipe that has been closed on the other side is impossible. Regards, -- Beno?t Minisini From demosthenesk at ...626... Mon Dec 13 08:46:39 2010 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Mon, 13 Dec 2010 09:46:39 +0200 Subject: [Gambas-user] PIPE issues In-Reply-To: <201012130655.31846.gambas@...1...> References: <1291222523.7316.4.camel@...2493...> <201012130655.31846.gambas@...1...> Message-ID: <1292226399.7192.2.camel@...2493...> On Mon, 2010-12-13 at 06:55 +0100, Beno?t Minisini wrote: > > Gambas2 2.21 rev3300 > > > > this example is not working in Ubuntu 10.04 AMD64 > > > > PUBLIC SUB Main() > > > > ' Prints the messages sent to a pipe > > > > DIM hFile AS File > > DIM sLine AS String > > > > hFile = PIPE "/tmp/FIFO1" FOR INPUT > > > > WHILE NOT Eof(hFile) > > LINE INPUT #hFile, sLine > > PRINT sLine > > WEND > > > > END > > > > The pipe is created ok! > > But if i make a ls > /tmp/FIFO1 > > > > nothing is appeared in console and program terminates. > > > > This is a pipe. Data is available only when it has been filled by the other > side. So Eof() can returns true at anytime, even if some data may be written > in the future. Gambas cannot read the future yet. Benoit, i got this example from the wiki. http://gambasdoc.org/help/lang/pipe?v3 > > if i change to > > WHILE TRUE > > > > i get the ls results to console and > > i get an error > > > > System error. Inappropriate ioctl for device. > > The error message is not very accurate. But it is normal, as reading on a pipe > that has been closed on the other side is impossible. > > Regards, > What is the right code to read a pipe if it is not with Eof() or WHILE TRUE ? Thanks Benoit for your answer. -- Regards, Demosthenes Koptsis. From sotema at ...626... Mon Dec 13 12:49:19 2010 From: sotema at ...626... (Emanuele Sottocorno) Date: Mon, 13 Dec 2010 12:49:19 +0100 Subject: [Gambas-user] stop event and gtk In-Reply-To: <201012130643.12657.gambas@...1...> References: <1292074101.30349.11.camel@...2516...> <201012120208.21516.gambas@...1...> <1292151323.1764.5.camel@...2476...> <201012130643.12657.gambas@...1...> Message-ID: <1292240959.4098.4.camel@...2516...> Tanks Benoit, and all people developing Gambas. Emanuele Il giorno lun, 13/12/2010 alle 06.43 +0100, Beno?t Minisini ha scritto: > > Hi Benoit, here is the project. > > The form showing the problem is the FLanguage". > > I suppose it is a GTK bug 'cause of switching to QT it works fine. > > > > OK. The bug should be fixed in revision #3359. > > Regards, > From sotema at ...626... Mon Dec 13 13:03:17 2010 From: sotema at ...626... (Emanuele Sottocorno) Date: Mon, 13 Dec 2010 13:03:17 +0100 Subject: [Gambas-user] src/Makefile.am:66: XWINDOW does not appear in AM_CONDITIONAL Message-ID: <1292241797.8289.2.camel@...2516...> rev 3359: reconf-all aborts with this error. in gb.qt4 directory Emanuele From gambas at ...1... Mon Dec 13 15:07:54 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Mon, 13 Dec 2010 15:07:54 +0100 Subject: [Gambas-user] src/Makefile.am:66: XWINDOW does not appear in AM_CONDITIONAL In-Reply-To: <1292241797.8289.2.camel@...2516...> References: <1292241797.8289.2.camel@...2516...> Message-ID: <201012131507.54470.gambas@...1...> > rev 3359: reconf-all aborts with this error. > in gb.qt4 directory > Emanuele > Check with the latest revision, it should work now. Regards, -- Beno?t Minisini From almanova at ...1228... Mon Dec 13 14:56:39 2010 From: almanova at ...1228... (Almanova Sistemi) Date: Mon, 13 Dec 2010 14:56:39 +0100 Subject: [Gambas-user] Table view edit Message-ID: <4D062617.5040805@...1228...> Hello to everyone, I try to write a program in gambas2 (2.21) with table view and everything works fine. The only problem I have is using the method tableview.edit: how can I exit from edit when I press return or esc key? Thank's Massimo. From jussi.lahtinen at ...626... Mon Dec 13 19:00:47 2010 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Mon, 13 Dec 2010 20:00:47 +0200 Subject: [Gambas-user] Bug with IsNumber Message-ID: Hi! With Gambas 3 revision 3361 @ Ubuntu 10.04 64bit, IsNumber(False) returns False. Is this new behaviour correct? Jussi From gambas at ...1... Mon Dec 13 19:04:15 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Mon, 13 Dec 2010 19:04:15 +0100 Subject: [Gambas-user] Bug with IsNumber In-Reply-To: References: Message-ID: <201012131904.15908.gambas@...1...> > Hi! > With Gambas 3 revision 3361 @ Ubuntu 10.04 64bit, > IsNumber(False) returns False. > > Is this new behaviour correct? > > Jussi Yes. Now IsNumber() takes a string and returns if the string can be converted to a number. -- Beno?t Minisini From fabianfloresvadell at ...626... Mon Dec 13 20:06:43 2010 From: fabianfloresvadell at ...626... (=?ISO-8859-1?Q?Fabi=E1n_Flores_Vadell?=) Date: Mon, 13 Dec 2010 16:06:43 -0300 Subject: [Gambas-user] check if a symbol of a class is a property Message-ID: I need to check if the symbols obtained from typeControl = Object.Class(aWidget) are properties, but I don't found how to do this. FOR EACH symbol IN typeControl.Symbols 'I need test if symbol is a property here NEXT I would be pleased if I could use a test like: IF (symbol.type = typeControl.Property) THEN But, I can't do that in Gambas2 because symbol is a String. In Gambas3 I can't use .Symbols.Kind because it is a virtual class So. How I could do that? -- Fabi?n Flores Vadell www.comoprogramarcongambas.blogspot.com www.speedbooksargentina.blogspot.com From jussi.lahtinen at ...626... Mon Dec 13 20:12:36 2010 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Mon, 13 Dec 2010 21:12:36 +0200 Subject: [Gambas-user] Bug with IsNumber In-Reply-To: <201012131904.15908.gambas@...1...> References: <201012131904.15908.gambas@...1...> Message-ID: IsNumber(Value As Variant) As Boolean... Then why variant? Jussi 2010/12/13 Beno?t Minisini > > Hi! > > With Gambas 3 revision 3361 @ Ubuntu 10.04 64bit, > > IsNumber(False) returns False. > > > > Is this new behaviour correct? > > > > Jussi > > Yes. Now IsNumber() takes a string and returns if the string can be > converted > to a number. > > -- > Beno?t Minisini > > > ------------------------------------------------------------------------------ > Lotusphere 2011 > Register now for Lotusphere 2011 and learn how > to connect the dots, take your collaborative environment > to the next level, and enter the era of Social Business. > http://p.sf.net/sfu/lotusphere-d2d > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Mon Dec 13 20:24:36 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Mon, 13 Dec 2010 20:24:36 +0100 Subject: [Gambas-user] Bug with IsNumber In-Reply-To: References: <201012131904.15908.gambas@...1...> Message-ID: <201012132024.36581.gambas@...1...> > IsNumber(Value As Variant) As Boolean... > Then why variant? > > Jussi > The documentation was not up to date. Now it is. :-) -- Beno?t Minisini From gambas.fr at ...626... Mon Dec 13 20:35:35 2010 From: gambas.fr at ...626... (Fabien Bodard) Date: Mon, 13 Dec 2010 20:35:35 +0100 Subject: [Gambas-user] check if a symbol of a class is a property In-Reply-To: References: Message-ID: simple :) if Object.class(aWidget)["symbolename"].kind = Class.Property then ... or dim hClass as Class hClass = Object.class(TextBox1) if hClass["Text"].Kind = Class.Property Then... http://gambasdoc.org/help/comp/gb/.symbol/kind?v3 2010/12/13 Fabi?n Flores Vadell : > I need to check if the symbols obtained from > > typeControl = Object.Class(aWidget) > > are properties, but I don't found how to do this. > > ? ?FOR EACH symbol IN typeControl.Symbols > ? ? ?'I need test if symbol is a property here > ? ?NEXT > > I would be pleased if I could use a test like: IF (symbol.type = > typeControl.Property) THEN > > But, I can't do that in Gambas2 because symbol is a String. In Gambas3 > I can't use .Symbols.Kind because it is a virtual class > > So. How I could do that? > > > -- > Fabi?n Flores Vadell > www.comoprogramarcongambas.blogspot.com > www.speedbooksargentina.blogspot.com > > ------------------------------------------------------------------------------ > Lotusphere 2011 > Register now for Lotusphere 2011 and learn how > to connect the dots, take your collaborative environment > to the next level, and enter the era of Social Business. > http://p.sf.net/sfu/lotusphere-d2d > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Fabien Bodard From fabianfloresvadell at ...626... Mon Dec 13 20:58:58 2010 From: fabianfloresvadell at ...626... (=?ISO-8859-1?Q?Fabi=E1n_Flores_Vadell?=) Date: Mon, 13 Dec 2010 16:58:58 -0300 Subject: [Gambas-user] licence for this gambas logo Message-ID: Who is the owner for the logo showed in this page: http://gambasdoc.org/help/doc/release?en&view and what is the licence? -- Fabi?n Flores Vadell www.comoprogramarcongambas.blogspot.com www.speedbooksargentina.blogspot.com From fabianfloresvadell at ...626... Mon Dec 13 21:09:40 2010 From: fabianfloresvadell at ...626... (=?ISO-8859-1?Q?Fabi=E1n_Flores_Vadell?=) Date: Mon, 13 Dec 2010 17:09:40 -0300 Subject: [Gambas-user] check if a symbol of a class is a property In-Reply-To: References: Message-ID: 2010/12/13 Fabien Bodard : > simple :) > > if Object.class(aWidget)["symbolename"].kind = Class.Property then ... > > or > > dim hClass as Class > > hClass = Object.class(TextBox1) > if hClass["Text"].Kind = Class.Property Then... > > > http://gambasdoc.org/help/comp/gb/.symbol/kind?v3 Thanks Fabien. It's possible to do that in Gambas2 too? -- Fabi?n Flores Vadell www.comoprogramarcongambas.blogspot.com www.speedbooksargentina.blogspot.com From sotema at ...626... Mon Dec 13 21:42:19 2010 From: sotema at ...626... (Emanuele Sottocorno) Date: Mon, 13 Dec 2010 21:42:19 +0100 Subject: [Gambas-user] stop event and gtk In-Reply-To: <201012130643.12657.gambas@...1...> References: <1292074101.30349.11.camel@...2516...> <201012120208.21516.gambas@...1...> <1292151323.1764.5.camel@...2476...> <201012130643.12657.gambas@...1...> Message-ID: <1292272939.5599.1.camel@...2476...> It works, fantastic!!! Many tanks. Emanuele From gambas at ...1... Mon Dec 13 22:22:41 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Mon, 13 Dec 2010 22:22:41 +0100 Subject: [Gambas-user] PIPE issues In-Reply-To: <1292226399.7192.2.camel@...2493...> References: <1291222523.7316.4.camel@...2493...> <201012130655.31846.gambas@...1...> <1292226399.7192.2.camel@...2493...> Message-ID: <201012132222.42051.gambas@...1...> > > > > This is a pipe. Data is available only when it has been filled by the > > other side. So Eof() can returns true at anytime, even if some data may > > be written in the future. Gambas cannot read the future yet. > > Benoit, i got this example from the wiki. > http://gambasdoc.org/help/lang/pipe?v3 Then the example is wrong. I don't think I wrote it anyway. > > > > if i change to > > > WHILE TRUE > > > > > > i get the ls results to console and > > > i get an error > > > > > > System error. Inappropriate ioctl for device. > > > > The error message is not very accurate. But it is normal, as reading on a > > pipe that has been closed on the other side is impossible. > > > > Regards, > > What is the right code to read a pipe if it is not with Eof() or WHILE > TRUE ? > > > Thanks Benoit for your answer. In Gambas 2, you must do something like that: DIM hFile AS File DIM sLine AS String hFile = PIPE "/tmp/FIFO1" FOR READ DO TRY READ #hFile, sLine, -256 IF NOT sLine THEN BREAK PRINT sLine; LOOP In Gambas 3, you can do that too: Dim hFile As File Dim sLine As String hFile = Pipe "/tmp/FIFO1" For Read Do Line Input #hFile, sLine If hFile.EndOfFile Then Break Print sLine Loop Regards, -- Beno?t Minisini From firman.isb at ...626... Tue Dec 14 00:04:30 2010 From: firman.isb at ...626... (Hendra F) Date: Tue, 14 Dec 2010 06:04:30 +0700 Subject: [Gambas-user] Did anyone have a script to record webcame picture in video files Message-ID: I Almost done my project about monitoring camera using webcam with gambas 3... the picture or streaming video can displayed on picturebox but i still have a problem to record in video file mode r like avi, mpg or other compressed format.. please help me if anyone can solve my problem. i will showing u a picture of FMain my project... the record button still couldn't worked... i'm using gambas 3 svn... I've wrote the script like this, and worked the files created but still 0 KB or nothing recorded.... this is the script: 'Saving Record File Public Sub InitCapture() If Not CatProcess Then bytesrecorded = 0 CatProcess = Exec ["cat", "/dev/video0"] For Read CatProcess = Exec ["cat", "/dev/video1"] For Read CatProcess = Exec ["cat", "/dev/video2"] For Read CatProcess = Exec ["cat", "/dev/video3"] For Read Endif UpdateBytesLabel() End Public Sub Process_Write(data As String) If pic1.Picture = $cam1.Image.Picture Then If pic2.Picture = $cam2.Image.Picture Then If pic3.Picture = $cam3.Image.Picture Then If pic4.Picture = $cam4.Image.Picture Then Return Endif Endif Endif Endif Try pic1.Picture.send(data) Try pic2.Picture.send(data) Try pic3.Picture.send(data) Try pic4.Picture.send(data) Try saveprocess.send(data) bytesrecorded = bytesrecorded + Len(data) End Public Sub btnRecord_Click() If btnRecord.text = "Record" Then bytesrecorded = 0 starttime = Now endtime = starttime initcapture() Tmr1_Timer() btnRecord.text = "Stop" SaveProcess = Exec ["bash", "-c", "cat > " & setFilename1()] For Write SaveProcess = Exec ["bash", "-c", "cat > " & setFilename2()] For Write SaveProcess = Exec ["bash", "-c", "cat > " & setFilename3()] For Write SaveProcess = Exec ["bash", "-c", "cat > " & setFilename4()] For Write Else endtime = Now Try saveprocess.kill btnRecord.text = "Record" setFilename1() setFilename2() setFilename3() setFilename4() Endif End Public Function setFilename1() As String Dim i As Integer i = 0 'Do While Exist(Application.Path &/ "kamera1" & i & ".mpg") Do While Exist(User.Home &/ "kamera1" & i & ".mpg") i = i + 1 Loop 'Return Application.Path &/ "kamera1" & Format(i, "000") & ".mpg" Return User.Home &/ "kamera1" & Format(i, "000") & ".mpg" End Public Function setFilename2() As String Dim i As Integer i = 0 Do While Exist(User.Home &/ "kamera2" & i & ".mpg") i = i + 1 Loop Return User.Home &/ "kamera2" & Format(i, "000") & ".mpg" End Public Function setFilename3() As String Dim i As Integer i = 0 Do While Exist(User.Home &/ "kamera3" & i & ".mpg") i = i + 1 Loop Return User.Home &/ "kamera3" & Format(i, "000") & ".mpg" End Public Function setFilename4() As String Dim i As Integer i = 0 Do While Exist(User.Home &/ "kamera4" & i & ".mpg") i = i + 1 Loop Return User.Home &/ "kamera4" & Format(i, "000") & ".mpg" End Public Sub UpdateBytesLabel() Dim i As Float If bytesrecorded > 1048576 Then i = Int(bytesrecorded / 100000) Else i = Int(bytesrecorded / 100) Endif End Public Sub UpdateTimeLabel() If starttime = "00:00:00" Then Return If endtime <> starttime Then Return TextDate1.text = Time(CDate(CInt(Now) + (Now - starttime) + timezoneadjust)) End anyone can solve my problem please...? From gambas at ...1... Tue Dec 14 00:47:02 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Tue, 14 Dec 2010 00:47:02 +0100 Subject: [Gambas-user] MOD arithetic operator In-Reply-To: <1289233816.4245.1.camel@...2493...> References: <1289233816.4245.1.camel@...2493...> Message-ID: <201012140047.02733.gambas@...1...> > Hi to all, > > i want to ask why there is not a modulus operator like % for example? > The '%' operator has been added as a synonymous for 'MOD' in revision #3362. The '%=' assignment operator has been added as well. Regards, -- Beno?t Minisini From mdavies5 at ...169... Tue Dec 14 01:07:09 2010 From: mdavies5 at ...169... (Michael) Date: Tue, 14 Dec 2010 11:07:09 +1100 Subject: [Gambas-user] Gambas 3 Printing In-Reply-To: <4D019344.5070501@...169...> References: <201011300958.05904.rterry@...1946...> <201012081616.00253.gambas@...1...> <4D005849.40402@...169...> <201012091124.24494.gambas@...1...> <4D019344.5070501@...169...> Message-ID: <4D06B52D.3090302@...169...> Benoit Is there any movement on this printing issue yet? Either by fixing the print dialog or allowing setting in code? Regards Michael On 10/12/10 13:41, Michael wrote: > Benoit, > I am using Rev.3349 and I can set Paper Type and Paper Source but still > cannot set Output Tray, Paper Size and Orientation. This applies to the > GTK+ library. I can set Orientation under QT4 because that uses a > completely different dialog but it introduces different problems( > Paint.Begin(hPrinter) causes error. device is already being drawn). > The GTK+ library uses the same print dialog as Mozilla Firefox and all > the options are enabled when using Firefox. > I am using Ubuntu Maverick 10.10 > > Regards > Michael > From gambas at ...1... Tue Dec 14 01:36:19 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Tue, 14 Dec 2010 01:36:19 +0100 Subject: [Gambas-user] Gambas 3 Printing In-Reply-To: <4D06B52D.3090302@...169...> References: <201011300958.05904.rterry@...1946...> <4D019344.5070501@...169...> <4D06B52D.3090302@...169...> Message-ID: <201012140136.19423.gambas@...1...> > Benoit > Is there any movement on this printing issue yet? Either by fixing the > print dialog or allowing setting in code? > > Regards > Michael > Well, it works on my machine, so I don't understand why it doesn't on yours... Are you sure that you use the last commit? -- Beno?t Minisini From rterry at ...1946... Tue Dec 14 03:25:04 2010 From: rterry at ...1946... (richard terry) Date: Tue, 14 Dec 2010 13:25:04 +1100 Subject: [Gambas-user] Feature request before release Message-ID: <201012141325.04219.rterry@...1946...> Hi Benoit Just another request for a feature I've asked for before, that shouldn't be much trouble but would make dealing with complex forms easier. In the IDE on the heirachy tab, having a search textbox to search for a control. When one's form is complex it's possible to 'lose' these, if one accidentally nudges a control in a container out of sight when brushing past it with a cursor - I've done this many times, and it can be a very very difficult job to locate where it is, or as a corolloy, locate a control which has gone missing at some stage un-n oticed, but is putting the gui out of wack visually REgards Richard From nkoch22 at ...626... Tue Dec 14 03:29:34 2010 From: nkoch22 at ...626... (Nicolas Koch) Date: Mon, 13 Dec 2010 21:29:34 -0500 Subject: [Gambas-user] Gambas2 to 3 port error "Form.Delete is badly overridden in class" Message-ID: I just finished compiling Gambas3 and verified I can play with some code and test ok, however, when i port my project gambas2 to gambas3 I get error : "Form.Delete is badly overridden in class" What do I need to look or change to fix that? I have verified that form files say Gambas Form file 3.0. Nick From mdavies5 at ...169... Tue Dec 14 05:41:54 2010 From: mdavies5 at ...169... (Michael) Date: Tue, 14 Dec 2010 15:41:54 +1100 Subject: [Gambas-user] Gambas 3 Printing In-Reply-To: <201012140136.19423.gambas@...1...> References: <201011300958.05904.rterry@...1946...> <4D019344.5070501@...169...> <4D06B52D.3090302@...169...> <201012140136.19423.gambas@...1...> Message-ID: <4D06F592.9090204@...169...> Thanks Benoit, I've checked all the Ubuntu forums without success but it seems to be unique to Gambas.I still have a few things to try but I am busy moving house so shall return to it after Xmas. Her is my output from svn info URL: https://gambas.svn.sourceforge.net/svnroot/gambas/gambas/trunk Repository Root: https://gambas.svn.sourceforge.net/svnroot/gambas Repository UUID: 96304659-1d19-0410-acd0-aead272a8bd5 Revision: 3363 Node Kind: directory Schedule: normal Last Changed Author: gambas Last Changed Rev: 3363 Last Changed Date: 2010-12-14 12:18:41 +1100 (Tue, 14 Dec 2010) Regards Michael On 14/12/10 11:36, Beno?t Minisini wrote: >> Benoit >> Is there any movement on this printing issue yet? Either by fixing the >> print dialog or allowing setting in code? >> >> Regards >> Michael >> > Well, it works on my machine, so I don't understand why it doesn't on yours... > Are you sure that you use the last commit? > From gambas.fr at ...626... Tue Dec 14 07:28:45 2010 From: gambas.fr at ...626... (Fabien Bodard) Date: Tue, 14 Dec 2010 07:28:45 +0100 Subject: [Gambas-user] check if a symbol of a class is a property In-Reply-To: References: Message-ID: yes 2010/12/13 Fabi?n Flores Vadell : > 2010/12/13 Fabien Bodard : >> simple :) >> >> if Object.class(aWidget)["symbolename"].kind = Class.Property then ... >> >> or >> >> dim hClass as Class >> >> hClass = Object.class(TextBox1) >> if hClass["Text"].Kind = Class.Property Then... >> >> >> http://gambasdoc.org/help/comp/gb/.symbol/kind?v3 > > Thanks Fabien. It's possible to do that in Gambas2 too? > > -- > Fabi?n Flores Vadell > www.comoprogramarcongambas.blogspot.com > www.speedbooksargentina.blogspot.com > > ------------------------------------------------------------------------------ > Lotusphere 2011 > Register now for Lotusphere 2011 and learn how > to connect the dots, take your collaborative environment > to the next level, and enter the era of Social Business. > http://p.sf.net/sfu/lotusphere-d2d > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Fabien Bodard From gambas.fr at ...626... Tue Dec 14 09:16:47 2010 From: gambas.fr at ...626... (Fabien Bodard) Date: Tue, 14 Dec 2010 09:16:47 +0100 Subject: [Gambas-user] MOD arithetic operator In-Reply-To: <201012140047.02733.gambas@...1...> References: <1289233816.4245.1.camel@...2493...> <201012140047.02733.gambas@...1...> Message-ID: good :) Le 14 d?cembre 2010 00:47, Beno?t Minisini a ?crit : >> Hi to all, >> >> i want to ask why there is not a modulus operator like % for example? >> > > The '%' operator has been added as a synonymous for 'MOD' in revision #3362. > The '%=' assignment operator has been added as well. > > Regards, > > -- > Beno?t Minisini > > ------------------------------------------------------------------------------ > Lotusphere 2011 > Register now for Lotusphere 2011 and learn how > to connect the dots, take your collaborative environment > to the next level, and enter the era of Social Business. > http://p.sf.net/sfu/lotusphere-d2d > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Fabien Bodard From gambas.fr at ...626... Tue Dec 14 09:23:29 2010 From: gambas.fr at ...626... (Fabien Bodard) Date: Tue, 14 Dec 2010 09:23:29 +0100 Subject: [Gambas-user] Gambas2 to 3 port error "Form.Delete is badly overridden in class" In-Reply-To: References: Message-ID: have you converted your forms ? menu>tools> 2010/12/14 Nicolas Koch : > I just finished compiling Gambas3 and verified I can play with some code and > test ok, however, when i port my project ?gambas2 to gambas3 I get error > : "Form.Delete is badly overridden in class" > > What do I need to look or change to fix that? ?I have verified that form > files say Gambas Form file 3.0. > > > Nick > ------------------------------------------------------------------------------ > Lotusphere 2011 > Register now for Lotusphere 2011 and learn how > to connect the dots, take your collaborative environment > to the next level, and enter the era of Social Business. > http://p.sf.net/sfu/lotusphere-d2d > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Fabien Bodard From ron at ...1740... Tue Dec 14 09:28:02 2010 From: ron at ...1740... (Ron) Date: Tue, 14 Dec 2010 09:28:02 +0100 Subject: [Gambas-user] Gambas2 to 3 port error "Form.Delete is badly overridden in class" In-Reply-To: References: Message-ID: <4D072A92.1070800@...1740...> This seem to be a common error. Since the Gambas3 IDE knows that your forms are still version 2 (because it says so on the first line of the form file) why not check for this after project load and ask the user to convert them? Regards, Ron_2nd. > have you converted your forms ? menu>tools> > > 2010/12/14 Nicolas Koch: >> I just finished compiling Gambas3 and verified I can play with some code and >> test ok, however, when i port my project gambas2 to gambas3 I get error >> : "Form.Delete is badly overridden in class" >> >> What do I need to look or change to fix that? I have verified that form >> files say Gambas Form file 3.0. >> >> >> Nick >> ------------------------------------------------------------------------------ >> Lotusphere 2011 >> Register now for Lotusphere 2011 and learn how >> to connect the dots, take your collaborative environment >> to the next level, and enter the era of Social Business. >> http://p.sf.net/sfu/lotusphere-d2d >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > From gambas at ...1... Tue Dec 14 09:50:01 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Tue, 14 Dec 2010 09:50:01 +0100 Subject: [Gambas-user] Gambas2 to 3 port error "Form.Delete is badly overridden in class" In-Reply-To: <4D072A92.1070800@...1740...> References: <4D072A92.1070800@...1740...> Message-ID: <201012140950.01960.gambas@...1...> > This seem to be a common error. > > Since the Gambas3 IDE knows that your forms are still version 2 (because > it says so on the first line of the form file) why not check for this > after project load and ask the user to convert them? > > Regards, > Ron_2nd. > Indeed. The conversion process is quick & dirty at the moment... -- Beno?t Minisini From gambas at ...1... Tue Dec 14 09:54:40 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Tue, 14 Dec 2010 09:54:40 +0100 Subject: [Gambas-user] Gambas2 to 3 port error "Form.Delete is badly overridden in class" In-Reply-To: References: Message-ID: <201012140954.40535.gambas@...1...> > I just finished compiling Gambas3 and verified I can play with some code > and test ok, however, when i port my project gambas2 to gambas3 I get > error > > : "Form.Delete is badly overridden in class" > > What do I need to look or change to fix that? I have verified that form > files say Gambas Form file 3.0. > > > Nick The Delete() was reimplemented in your form. But its syntax differs from the original Delete() method from the Control class. This is an error, but it was not detected in Gambas 2. Regards, -- Beno?t Minisini From gambas at ...1... Tue Dec 14 09:59:15 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Tue, 14 Dec 2010 09:59:15 +0100 Subject: [Gambas-user] Gambas 3 Printing In-Reply-To: <4D06F592.9090204@...169...> References: <201011300958.05904.rterry@...1946...> <201012140136.19423.gambas@...1...> <4D06F592.9090204@...169...> Message-ID: <201012140959.15877.gambas@...1...> > Thanks Benoit, > I've checked all the Ubuntu forums without success but it seems to be > unique to Gambas.I still have a few things to try but I am busy moving > house so shall return to it after Xmas. > Her is my output from svn info > URL: https://gambas.svn.sourceforge.net/svnroot/gambas/gambas/trunk > Repository Root: https://gambas.svn.sourceforge.net/svnroot/gambas > Repository UUID: 96304659-1d19-0410-acd0-aead272a8bd5 > Revision: 3363 > Node Kind: directory > Schedule: normal > Last Changed Author: gambas > Last Changed Rev: 3363 > Last Changed Date: 2010-12-14 12:18:41 +1100 (Tue, 14 Dec 2010) > > Regards > Michael > Strange... Can you send me a little project that shows the bug? -- Beno?t Minisini From gambas at ...1... Tue Dec 14 11:13:12 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Tue, 14 Dec 2010 11:13:12 +0100 Subject: [Gambas-user] Feature request before release In-Reply-To: <201012141325.04219.rterry@...1946...> References: <201012141325.04219.rterry@...1946...> Message-ID: <201012141113.12899.gambas@...1...> > Hi Benoit > > Just another request for a feature I've asked for before, that shouldn't be > much trouble but would make dealing with complex forms easier. > > In the IDE on the heirachy tab, having a search textbox to search for a > control. When one's form is complex it's possible to 'lose' these, if one > accidentally nudges a control in a container out of sight when brushing > past it with a cursor - I've done this many times, and it can be a very > very difficult job to locate where it is, or as a corolloy, locate a > control which has gone missing at some stage un-n oticed, but is putting > the gui out of wack visually > > REgards > > Richard > Quickly done in revision #3364. Regards, -- Beno?t Minisini From shanep at ...2481... Tue Dec 14 12:52:10 2010 From: shanep at ...2481... (Shane) Date: Tue, 14 Dec 2010 22:52:10 +1100 Subject: [Gambas-user] gambas3 ide bug In-Reply-To: <201012130628.21311.gambas@...1...> References: <4D04BDA8.6030000@...2481...> <201012130628.21311.gambas@...1...> Message-ID: <4D075A6A.1030606@...2481...> On 13/12/10 16:28, Beno?t Minisini wrote: >> when you use the del key on keyboard to delete a component on the form >> the ide stops responding >> to placing new components and and resizing the form >> >> gambas 3 revision 3355 >> > I cannot reproduce that. Can you give more information? > I can't reproduce this now either might be my system new install of linux mint 10 64 bit i did notice the if you place a control you can not delete it until you click away from it and then come back not saying this is a bad thing From wally at ...2037... Tue Dec 14 13:35:46 2010 From: wally at ...2037... (wally) Date: Tue, 14 Dec 2010 13:35:46 +0100 Subject: [Gambas-user] "write byte[]" question Message-ID: <201012141335.46832.wally@...2037...> I have a question how data is written to file. for example: arrObject_3 contains the capital ABC........... a.s.o then doing: Write #hMyLog, (arrObject_3.Extract(0, 16)) As Byte[] writes the first 16 bytes to file-stream as byte-array then open the file written with editor shows: AABCDEFGHIJKLMNOPAABCDEFGHIJ the signs written except the ABC...NOP are some kind of delimiter or identifiers i guess. Where can i find a specification which datatype use which delimiters/identifiers ? wally From gambas at ...1... Tue Dec 14 13:45:33 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Tue, 14 Dec 2010 13:45:33 +0100 Subject: [Gambas-user] "write byte[]" question In-Reply-To: <201012141335.46832.wally@...2037...> References: <201012141335.46832.wally@...2037...> Message-ID: <201012141345.33762.gambas@...1...> > I have a question how data is written to file. > for example: > arrObject_3 contains the capital ABC........... a.s.o > > then doing: > Write #hMyLog, (arrObject_3.Extract(0, 16)) As Byte[] > > writes the first 16 bytes to file-stream as byte-array No. By using "As Byte[]", you are serializing a Byte array, you are not writing the first 16 bytes. If you want to do that, use the Byte[].Write() method. > then open the file written with editor shows: > > AABCDEFGHIJKLMNOPAABCDEFGHIJ > > the signs written except the ABC...NOP are some kind of delimiter or > identifiers i guess. > Where can i find a specification which datatype use which > delimiters/identifiers ? > Nowhere, unless you read the source code. The format used for serializing data won't be documented, as it can change. Data serialized by the Write instruction is intended to be unserialized by the Read instruction only. Regards, -- Beno?t Minisini From nkoch22 at ...626... Tue Dec 14 17:51:55 2010 From: nkoch22 at ...626... (Nicolas Koch) Date: Tue, 14 Dec 2010 11:51:55 -0500 Subject: [Gambas-user] Gambas2 to 3 port error "Form.Delete is badly overridden in class" In-Reply-To: <201012140954.40535.gambas@...1...> References: <201012140954.40535.gambas@...1...> Message-ID: >have you converted your forms ? menu>tools> Yes >why not check for this after project load and ask the user to convert them? yes I have checked and verified. >The Delete() was reimplemented in your form. But its syntax differs from the >original Delete() method from the Control class. This is an error, but it was >not detected in Gambas 2 There is no Delete() function. The only delete I am using is a button that has a Public Sub Delete_Click() I even commented out that portion and still I get the Form.Delete error. What else should I look for to verify the form and class files are 3.0? Nick 2010/12/14 Beno?t Minisini > > I just finished compiling Gambas3 and verified I can play with some code > > and test ok, however, when i port my project gambas2 to gambas3 I get > > error > > > > : "Form.Delete is badly overridden in class" > > > > What do I need to look or change to fix that? I have verified that form > > files say Gambas Form file 3.0. > > > > > > Nick > > The Delete() was reimplemented in your form. But its syntax differs from > the > original Delete() method from the Control class. This is an error, but it > was > not detected in Gambas 2. > > Regards, > > -- > Beno?t Minisini > > > ------------------------------------------------------------------------------ > Lotusphere 2011 > Register now for Lotusphere 2011 and learn how > to connect the dots, take your collaborative environment > to the next level, and enter the era of Social Business. > http://p.sf.net/sfu/lotusphere-d2d > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Tue Dec 14 18:14:10 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Tue, 14 Dec 2010 18:14:10 +0100 Subject: [Gambas-user] Gambas2 to 3 port error "Form.Delete is badly overridden in class" In-Reply-To: References: <201012140954.40535.gambas@...1...> Message-ID: <201012141814.10848.gambas@...1...> > >have you converted your forms ? menu>tools> > > Yes > > >why not check for this after project load and ask the user to convert > >them? > > yes I have checked and verified. > > >The Delete() was reimplemented in your form. But its syntax differs from > > the > > >original Delete() method from the Control class. This is an error, but it > > was > > >not detected in Gambas 2 > > There is no Delete() function. > > The only delete I am using is a button that has a Public Sub Delete_Click() No Delete method, but a Delete symbol anyway. You can override a inherited symbol only with a symbol of the same type. Regards, -- Beno?t Minisini From rterry at ...1946... Tue Dec 14 21:50:06 2010 From: rterry at ...1946... (richard terry) Date: Wed, 15 Dec 2010 07:50:06 +1100 Subject: [Gambas-user] Feature request before release In-Reply-To: <201012141113.12899.gambas@...1...> References: <201012141325.04219.rterry@...1946...> <201012141113.12899.gambas@...1...> Message-ID: <201012150750.06031.rterry@...1946...> On Tuesday 14 December 2010 21:13:12 Beno?t Minisini wrote: > > Hi Benoit > > > > Just another request for a feature I've asked for before, that shouldn't > > be much trouble but would make dealing with complex forms easier. > > > > In the IDE on the heirachy tab, having a search textbox to search for a > > control. When one's form is complex it's possible to 'lose' these, if one > > accidentally nudges a control in a container out of sight when brushing > > past it with a cursor - I've done this many times, and it can be a very > > very difficult job to locate where it is, or as a corolloy, locate a > > control which has gone missing at some stage un-n oticed, but is putting > > the gui out of wack visually > > > > REgards > > > > Richard > > Quickly done in revision #3364. > > Regards, > Your amazing Benoit, grateful as ever the your efforts and generosity. Its a great IDE and gets better by the day. Richard From g.sayol at ...626... Tue Dec 14 22:27:10 2010 From: g.sayol at ...626... (Jordi Sayol) Date: Tue, 14 Dec 2010 22:27:10 +0100 Subject: [Gambas-user] Feature request before release In-Reply-To: <201012150750.06031.rterry@...1946...> References: <201012141325.04219.rterry@...1946...> <201012141113.12899.gambas@...1...> <201012150750.06031.rterry@...1946...> Message-ID: <4D07E12E.7060802@...626...> Al 14/12/10 21:50, En/na richard terry ha escrit: ... > Your amazing Benoit, grateful as ever the your efforts and generosity. > > Its a great IDE and gets better by the day. > > Richard ... I'm completely agree. -- Jordi Sayol -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/pkcs7-signature Size: 3642 bytes Desc: S/MIME Cryptographic Signature URL: From rterry at ...1946... Tue Dec 14 22:45:49 2010 From: rterry at ...1946... (richard terry) Date: Wed, 15 Dec 2010 08:45:49 +1100 Subject: [Gambas-user] 3367 compile error Message-ID: <201012150845.49446.rterry@...1946...> cpaint_impl.cpp: In member function ?virtual int MyPaintDevice::metric(QPaintDevice::PaintDeviceMetric) const?: cpaint_impl.cpp:1119: error: ?class QPaintDevice? has no member named ?colorCount? make[5]: *** [gb_qt4_la-cpaint_impl.lo] Error 1 make[5]: Leaving directory `/home/richard/svn/gambas3/trunk/trunk/gb.qt4/src' make[4]: *** [all-recursive] Error 1 make[4]: Leaving directory `/home/richard/svn/gambas3/trunk/trunk/gb.qt4/src' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/home/richard/svn/gambas3/trunk/trunk/gb.qt4' make[2]: *** [all] Error 2 make[2]: Leaving directory `/home/richard/svn/gambas3/trunk/trunk/gb.qt4' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/richard/svn/gambas3/trunk/trunk' make: *** [all] Error 2 From gambas at ...1... Tue Dec 14 22:50:01 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Tue, 14 Dec 2010 22:50:01 +0100 Subject: [Gambas-user] 3367 compile error In-Reply-To: <201012150845.49446.rterry@...1946...> References: <201012150845.49446.rterry@...1946...> Message-ID: <201012142250.01516.gambas@...1...> > cpaint_impl.cpp: In member function ?virtual int > MyPaintDevice::metric(QPaintDevice::PaintDeviceMetric) const?: > cpaint_impl.cpp:1119: error: ?class QPaintDevice? has no member named > ?colorCount? > make[5]: *** [gb_qt4_la-cpaint_impl.lo] Error 1 > make[5]: Leaving directory > `/home/richard/svn/gambas3/trunk/trunk/gb.qt4/src' make[4]: *** > [all-recursive] Error 1 > make[4]: Leaving directory > `/home/richard/svn/gambas3/trunk/trunk/gb.qt4/src' make[3]: *** > [all-recursive] Error 1 > make[3]: Leaving directory `/home/richard/svn/gambas3/trunk/trunk/gb.qt4' > make[2]: *** [all] Error 2 > make[2]: Leaving directory `/home/richard/svn/gambas3/trunk/trunk/gb.qt4' > make[1]: *** [all-recursive] Error 1 > make[1]: Leaving directory `/home/richard/svn/gambas3/trunk/trunk' > make: *** [all] Error 2 > Which version of Qt4 do you use? -- Beno?t Minisini From rterry at ...1946... Wed Dec 15 00:34:22 2010 From: rterry at ...1946... (richard terry) Date: Wed, 15 Dec 2010 10:34:22 +1100 Subject: [Gambas-user] 3367 compile error In-Reply-To: <201012142250.01516.gambas@...1...> References: <201012150845.49446.rterry@...1946...> <201012142250.01516.gambas@...1...> Message-ID: <201012151034.22485.rterry@...1946...> On Wednesday 15 December 2010 08:50:01 Beno?t Minisini wrote: > > cpaint_impl.cpp: In member function ?virtual int > > MyPaintDevice::metric(QPaintDevice::PaintDeviceMetric) const?: > > cpaint_impl.cpp:1119: error: ?class QPaintDevice? has no member named > > ?colorCount? > > make[5]: *** [gb_qt4_la-cpaint_impl.lo] Error 1 > > make[5]: Leaving directory > > `/home/richard/svn/gambas3/trunk/trunk/gb.qt4/src' make[4]: *** > > [all-recursive] Error 1 > > make[4]: Leaving directory > > `/home/richard/svn/gambas3/trunk/trunk/gb.qt4/src' make[3]: *** > > [all-recursive] Error 1 > > make[3]: Leaving directory `/home/richard/svn/gambas3/trunk/trunk/gb.qt4' > > make[2]: *** [all] Error 2 > > make[2]: Leaving directory `/home/richard/svn/gambas3/trunk/trunk/gb.qt4' > > make[1]: *** [all-recursive] Error 1 > > make[1]: Leaving directory `/home/richard/svn/gambas3/trunk/trunk' > > make: *** [all] Error 2 > > Which version of Qt4 do you use? > 4.5.2 I think From mdavies5 at ...169... Wed Dec 15 02:28:50 2010 From: mdavies5 at ...169... (Michael) Date: Wed, 15 Dec 2010 12:28:50 +1100 Subject: [Gambas-user] Gambas 3 Printing In-Reply-To: <201012140959.15877.gambas@...1...> References: <201011300958.05904.rterry@...1946...> <201012140136.19423.gambas@...1...> <4D06F592.9090204@...169...> <201012140959.15877.gambas@...1...> Message-ID: <4D0819D2.5080800@...169...> Benoit Test project attached. I have included a screenshot of my Print Dialog. It was interesting doing a small test project. In my main project, which uses basically the same code, the "Font" property is not respected and all printing is done in Ubuntu font. Also the Text Align.Right or Align.Center properties have no effect unless the Height property is specified. In the test project I did not encounter these problems so I need to revisit the Paint methods. However the Orientation problem persists. Regards Michael On 14/12/10 19:59, Beno?t Minisini wrote: >> Thanks Benoit, >> I've checked all the Ubuntu forums without success but it seems to be >> unique to Gambas.I still have a few things to try but I am busy moving >> house so shall return to it after Xmas. >> Her is my output from svn info >> URL: https://gambas.svn.sourceforge.net/svnroot/gambas/gambas/trunk >> Repository Root: https://gambas.svn.sourceforge.net/svnroot/gambas >> Repository UUID: 96304659-1d19-0410-acd0-aead272a8bd5 >> Revision: 3363 >> Node Kind: directory >> Schedule: normal >> Last Changed Author: gambas >> Last Changed Rev: 3363 >> Last Changed Date: 2010-12-14 12:18:41 +1100 (Tue, 14 Dec 2010) >> >> Regards >> Michael >> > Strange... Can you send me a little project that shows the bug? > -------------- next part -------------- A non-text attachment was scrubbed... Name: Printing.tar.gz Type: application/x-gzip Size: 58749 bytes Desc: not available URL: From demosthenesk at ...626... Wed Dec 15 11:40:00 2010 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Wed, 15 Dec 2010 12:40:00 +0200 Subject: [Gambas-user] PIPE issues In-Reply-To: <201012132222.42051.gambas@...1...> References: <1291222523.7316.4.camel@...2493...> <201012130655.31846.gambas@...1...> <1292226399.7192.2.camel@...2493...> <201012132222.42051.gambas@...1...> Message-ID: <1292409600.11621.0.camel@...2493...> Thanks Beno?t! On Mon, 2010-12-13 at 22:22 +0100, Beno?t Minisini wrote: > > > > > > This is a pipe. Data is available only when it has been filled by the > > > other side. So Eof() can returns true at anytime, even if some data may > > > be written in the future. Gambas cannot read the future yet. > > > > Benoit, i got this example from the wiki. > > http://gambasdoc.org/help/lang/pipe?v3 > > Then the example is wrong. I don't think I wrote it anyway. > > > > > > > if i change to > > > > WHILE TRUE > > > > > > > > i get the ls results to console and > > > > i get an error > > > > > > > > System error. Inappropriate ioctl for device. > > > > > > The error message is not very accurate. But it is normal, as reading on a > > > pipe that has been closed on the other side is impossible. > > > > > > Regards, > > > > What is the right code to read a pipe if it is not with Eof() or WHILE > > TRUE ? > > > > > > Thanks Benoit for your answer. > > In Gambas 2, you must do something like that: > > DIM hFile AS File > DIM sLine AS String > > hFile = PIPE "/tmp/FIFO1" FOR READ > > DO > TRY READ #hFile, sLine, -256 > IF NOT sLine THEN BREAK > PRINT sLine; > LOOP > > In Gambas 3, you can do that too: > > Dim hFile As File > Dim sLine As String > > hFile = Pipe "/tmp/FIFO1" For Read > > Do > Line Input #hFile, sLine > If hFile.EndOfFile Then Break > Print sLine > Loop > > Regards, > -- Regards, Demosthenes Koptsis. From demosthenesk at ...626... Wed Dec 15 11:49:22 2010 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Wed, 15 Dec 2010 12:49:22 +0200 Subject: [Gambas-user] MOD arithetic operator In-Reply-To: References: <1289233816.4245.1.camel@...2493...> <201012140047.02733.gambas@...1...> Message-ID: <1292410162.11621.1.camel@...2493...> that's nice. Is this applied for Gambas2 also? On Tue, 2010-12-14 at 09:16 +0100, Fabien Bodard wrote: > good :) > > Le 14 d?cembre 2010 00:47, Beno?t Minisini > a ?crit : > >> Hi to all, > >> > >> i want to ask why there is not a modulus operator like % for example? > >> > > > > The '%' operator has been added as a synonymous for 'MOD' in revision #3362. > > The '%=' assignment operator has been added as well. > > > > Regards, > > > > -- > > Beno?t Minisini > > > > ------------------------------------------------------------------------------ > > Lotusphere 2011 > > Register now for Lotusphere 2011 and learn how > > to connect the dots, take your collaborative environment > > to the next level, and enter the era of Social Business. > > http://p.sf.net/sfu/lotusphere-d2d > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > -- Regards, Demosthenes Koptsis. From gambas at ...1... Wed Dec 15 14:37:58 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Wed, 15 Dec 2010 14:37:58 +0100 Subject: [Gambas-user] MOD arithetic operator In-Reply-To: <1292410162.11621.1.camel@...2493...> References: <1289233816.4245.1.camel@...2493...> <1292410162.11621.1.camel@...2493...> Message-ID: <201012151437.59046.gambas@...1...> > that's nice. > > Is this applied for Gambas2 also? > Of course not. -- Beno?t Minisini From wally at ...2037... Wed Dec 15 15:03:30 2010 From: wally at ...2037... (wally) Date: Wed, 15 Dec 2010 15:03:30 +0100 Subject: [Gambas-user] painting graph to image continuously Message-ID: <201012151503.30623.wally@...2037...> I'm trying to paint a continuous graph to an image, the image should grow in width as needed. I thought the following code might do the job but it generates not a clear graph after first Image.Resize. (see attachment) How looks a better coding to do this job ? thanks wally code: GB3 Public Sub Button4_Click() Dim t As Integer Dim y As Integer myImage1 = New Image(210, 128, Color.RGB(255, 255, 223)) For t = 0 To 2000 If (t Mod 25 = 0) Then y = CInt(Rnd(0, 128)) Endif If t > myImage1.W Then myImage1.Resize(myImage1.w + 10, myImage1.H) PictureBox1.w += 10 Endif Paint.Begin(myImage1) Paint.Brush = Paint.Color(Color.RGB(0, 0, 0)) Paint.LineWidth = 1 Paint.MoveTo(last_t, last_y) Paint.LineTo(t, y) Paint.Stroke Paint.End Wait 0.05 PictureBox1.H = myImage1.H PictureBox1.Picture = myImage1.Picture ScrollView1.EnsureVisible(t, 64, 50, 50) last_t = t last_y = y Next End -------------- next part -------------- A non-text attachment was scrubbed... Name: screenshot_7.png Type: image/png Size: 11509 bytes Desc: not available URL: From gambas at ...1... Wed Dec 15 15:10:46 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Wed, 15 Dec 2010 15:10:46 +0100 Subject: [Gambas-user] painting graph to image continuously In-Reply-To: <201012151503.30623.wally@...2037...> References: <201012151503.30623.wally@...2037...> Message-ID: <201012151510.46356.gambas@...1...> > I'm trying to paint a continuous graph to an image, the image should grow > in width as needed. I thought the following code might do the job but it > generates not a clear graph after first Image.Resize. (see attachment) > > How looks a better coding to do this job ? > thanks wally > > code: GB3 > Public Sub Button4_Click() > Dim t As Integer > Dim y As Integer > > myImage1 = New Image(210, 128, Color.RGB(255, 255, 223)) > > For t = 0 To 2000 > If (t Mod 25 = 0) Then > y = CInt(Rnd(0, 128)) > Endif > > If t > myImage1.W Then > myImage1.Resize(myImage1.w + 10, myImage1.H) > PictureBox1.w += 10 > Endif > > > Paint.Begin(myImage1) > Paint.Brush = Paint.Color(Color.RGB(0, 0, 0)) > Paint.LineWidth = 1 > Paint.MoveTo(last_t, last_y) > Paint.LineTo(t, y) > Paint.Stroke > Paint.End > > Wait 0.05 > > PictureBox1.H = myImage1.H > PictureBox1.Picture = myImage1.Picture > ScrollView1.EnsureVisible(t, 64, 50, 50) > > last_t = t > last_y = y > Next > End When you create an image, or enlarge it, the contents is never initialized by default. You must paint the background of the new part first. Regards, -- Beno?t Minisini From wally at ...2037... Wed Dec 15 15:43:29 2010 From: wally at ...2037... (wally) Date: Wed, 15 Dec 2010 15:43:29 +0100 Subject: [Gambas-user] painting graph to image continuously In-Reply-To: <201012151510.46356.gambas@...1...> References: <201012151503.30623.wally@...2037...> <201012151510.46356.gambas@...1...> Message-ID: <201012151543.29913.wally@...2037...> On Wednesday 15 December 2010 15:10:46 Beno?t Minisini wrote: > > I'm trying to paint a continuous graph to an image, the image should grow > > in width as needed. I thought the following code might do the job but it > > generates not a clear graph after first Image.Resize. (see attachment) > > > > How looks a better coding to do this job ? > > thanks wally > > > > code: GB3 > > Public Sub Button4_Click() > > Dim t As Integer > > Dim y As Integer > > > > myImage1 = New Image(210, 128, Color.RGB(255, 255, 223)) > > > > For t = 0 To 2000 > > If (t Mod 25 = 0) Then > > y = CInt(Rnd(0, 128)) > > Endif > > > > If t > myImage1.W Then > > myImage1.Resize(myImage1.w + 10, myImage1.H) > > PictureBox1.w += 10 > > Endif > > > > > > Paint.Begin(myImage1) > > Paint.Brush = Paint.Color(Color.RGB(0, 0, 0)) > > Paint.LineWidth = 1 > > Paint.MoveTo(last_t, last_y) > > Paint.LineTo(t, y) > > Paint.Stroke > > Paint.End > > > > Wait 0.05 > > > > PictureBox1.H = myImage1.H > > PictureBox1.Picture = myImage1.Picture > > ScrollView1.EnsureVisible(t, 64, 50, 50) > > > > last_t = t > > last_y = y > > Next > > End > > When you create an image, or enlarge it, the contents is never initialized by > default. You must paint the background of the new part first. > > Regards, > > -- > Beno?t Minisini > > ------------------------------------------------------------------------------ > Lotusphere 2011 > Register now for Lotusphere 2011 and learn how > to connect the dots, take your collaborative environment > to the next level, and enter the era of Social Business. > http://p.sf.net/sfu/lotusphere-d2d > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > Benoit, thank you, but how to paint the background of the new part first ? wally :) From wally at ...2037... Wed Dec 15 16:20:56 2010 From: wally at ...2037... (wally) Date: Wed, 15 Dec 2010 16:20:56 +0100 Subject: [Gambas-user] painting graph to image continuously Message-ID: <201012151620.56422.wally@...2037...> On Wednesday 15 December 2010 15:10:46 Beno?t Minisini wrote: > > I'm trying to paint a continuous graph to an image, the image should grow > > in width as needed. I thought the following code might do the job but it > > generates not a clear graph after first Image.Resize. (see attachment) > > > > How looks a better coding to do this job ? > > thanks wally > > > > code: GB3 > > Public Sub Button4_Click() > > Dim t As Integer > > Dim y As Integer > > > > myImage1 = New Image(210, 128, Color.RGB(255, 255, 223)) > > > > For t = 0 To 2000 > > If (t Mod 25 = 0) Then > > y = CInt(Rnd(0, 128)) > > Endif > > > > If t > myImage1.W Then > > myImage1.Resize(myImage1.w + 10, myImage1.H) > > PictureBox1.w += 10 > > Endif > > > > > > Paint.Begin(myImage1) > > Paint.Brush = Paint.Color(Color.RGB(0, 0, 0)) > > Paint.LineWidth = 1 > > Paint.MoveTo(last_t, last_y) > > Paint.LineTo(t, y) > > Paint.Stroke > > Paint.End > > > > Wait 0.05 > > > > PictureBox1.H = myImage1.H > > PictureBox1.Picture = myImage1.Picture > > ScrollView1.EnsureVisible(t, 64, 50, 50) > > > > last_t = t > > last_y = y > > Next > > End > > When you create an image, or enlarge it, the contents is never initialized by > default. You must paint the background of the new part first. > > Regards, > > -- > Beno?t Minisini > > ------------------------------------------------------------------------------ > Lotusphere 2011 > Register now for Lotusphere 2011 and learn how > to connect the dots, take your collaborative environment > to the next level, and enter the era of Social Business. > http://p.sf.net/sfu/lotusphere-d2d > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > Benoit, thank you, but how to paint the background of the new part first ? wally :) this works : ... but isn't there a smarter way ? If t > myImage1.W Then myImage1.Resize(myImage1.w + 1, myImage1.H) Paint.Begin(myImage1) Paint.Brush = Paint.Color(Color.RGB(255, 255, 223)) Paint.Rectangle(myImage1.W - 1, 0, 1, myImage1.H) Paint.Fill Paint.End PictureBox1.w += 1 Endif From gambas at ...1... Wed Dec 15 16:34:38 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Wed, 15 Dec 2010 16:34:38 +0100 Subject: [Gambas-user] painting graph to image continuously In-Reply-To: <201012151620.56422.wally@...2037...> References: <201012151620.56422.wally@...2037...> Message-ID: <201012151634.38065.gambas@...1...> > Benoit, > thank you, > but how to paint the background of the new part first ? > wally :) > > this works : ... but isn't there a smarter way ? > > > If t > myImage1.W Then > myImage1.Resize(myImage1.w + 1, myImage1.H) > > Paint.Begin(myImage1) > Paint.Brush = Paint.Color(Color.RGB(255, 255, 223)) > Paint.Rectangle(myImage1.W - 1, 0, 1, myImage1.H) > Paint.Fill > Paint.End > > PictureBox1.w += 1 > > Endif > Use Draw instead of Paint for that: Paint integer coordinates lead to fractional pixels, not Draw. And so Draw will be faster. -- Beno?t Minisini From soleilpqd at ...626... Wed Dec 15 16:36:21 2010 From: soleilpqd at ...626... (=?UTF-8?B?UGjhuqFtIFF1YW5nIETGsMahbmc=?=) Date: Wed, 15 Dec 2010 22:36:21 +0700 Subject: [Gambas-user] Some questions about IconView Message-ID: Hi all, I'm using Gambas 2.22. I have some question about IconView: 1. IconView.Item.X (Y, W, H) return IconView. How to get IconView item position? 2. Is there a way to know which items are current visible and when user scroll? 3. I can drag only 1 item, that's right? Thank you! From wally at ...2037... Wed Dec 15 16:38:18 2010 From: wally at ...2037... (wally) Date: Wed, 15 Dec 2010 16:38:18 +0100 Subject: [Gambas-user] painting graph to image continuously In-Reply-To: <201012151634.38065.gambas@...1...> References: <201012151620.56422.wally@...2037...> <201012151634.38065.gambas@...1...> Message-ID: <201012151638.19382.wally@...2037...> On Wednesday 15 December 2010 16:34:38 Beno?t Minisini wrote: > > Benoit, > > thank you, > > but how to paint the background of the new part first ? > > wally :) > > > > this works : ... but isn't there a smarter way ? > > > > > > If t > myImage1.W Then > > myImage1.Resize(myImage1.w + 1, myImage1.H) > > > > Paint.Begin(myImage1) > > Paint.Brush = Paint.Color(Color.RGB(255, 255, 223)) > > Paint.Rectangle(myImage1.W - 1, 0, 1, myImage1.H) > > Paint.Fill > > Paint.End > > > > PictureBox1.w += 1 > > > > Endif > > > > Use Draw instead of Paint for that: Paint integer coordinates lead to > fractional pixels, not Draw. And so Draw will be faster. > > -- > Beno?t Minisini > > ------------------------------------------------------------------------------ > Lotusphere 2011 > Register now for Lotusphere 2011 and learn how > to connect the dots, take your collaborative environment > to the next level, and enter the era of Social Business. > http://p.sf.net/sfu/lotusphere-d2d > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > thanks :) From wally at ...2037... Wed Dec 15 16:50:05 2010 From: wally at ...2037... (wally) Date: Wed, 15 Dec 2010 16:50:05 +0100 Subject: [Gambas-user] painting graph to image continuously Message-ID: <201012151650.05733.wally@...2037...> On Wednesday 15 December 2010 16:34:38 Beno?t Minisini wrote: > > Benoit, > > thank you, > > but how to paint the background of the new part first ? > > wally :) > > > > this works : ... but isn't there a smarter way ? > > > > > > If t > myImage1.W Then > > myImage1.Resize(myImage1.w + 1, myImage1.H) > > > > Paint.Begin(myImage1) > > Paint.Brush = Paint.Color(Color.RGB(255, 255, 223)) > > Paint.Rectangle(myImage1.W - 1, 0, 1, myImage1.H) > > Paint.Fill > > Paint.End > > > > PictureBox1.w += 1 > > > > Endif > > > > Use Draw instead of Paint for that: Paint integer coordinates lead to > fractional pixels, not Draw. And so Draw will be faster. > > -- > Beno?t Minisini > > ------------------------------------------------------------------------------ > Lotusphere 2011 > Register now for Lotusphere 2011 and learn how > to connect the dots, take your collaborative environment > to the next level, and enter the era of Social Business. > http://p.sf.net/sfu/lotusphere-d2d > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > thanks :) but ... Image , "Not a drawable Object" If t > myImage1.W Then myImage1.Resize(myImage1.w + 1, myImage1.H) Draw.Begin(myImage1) <--- Image , "Not a drawable Object" Draw.FillRect(myImage1.W - 1, 0, 1, myImage1.H, Color.RGB(255, 255, 223)) Draw.End From gambas at ...1... Wed Dec 15 16:56:11 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Wed, 15 Dec 2010 16:56:11 +0100 Subject: [Gambas-user] painting graph to image continuously In-Reply-To: <201012151650.05733.wally@...2037...> References: <201012151650.05733.wally@...2037...> Message-ID: <201012151656.11125.gambas@...1...> > > thanks :) but ... Image , "Not a drawable Object" > > If t > myImage1.W Then > myImage1.Resize(myImage1.w + 1, myImage1.H) > > Draw.Begin(myImage1) <--- Image , "Not a drawable Object" > Draw.FillRect(myImage1.W - 1, 0, 1, myImage1.H, Color.RGB(255, 255, > 223)) Draw.End > Yes, I forgot that only Paint can be used on images... So you have to use Paint! -- Beno?t Minisini From gambas.fr at ...626... Wed Dec 15 18:57:16 2010 From: gambas.fr at ...626... (Fabien Bodard) Date: Wed, 15 Dec 2010 18:57:16 +0100 Subject: [Gambas-user] painting graph to image continuously In-Reply-To: <201012151656.11125.gambas@...1...> References: <201012151650.05733.wally@...2037...> <201012151656.11125.gambas@...1...> Message-ID: Le 15 d?cembre 2010 16:56, Beno?t Minisini a ?crit : >> >> thanks :) ? but ... ? ?Image , "Not a drawable Object" >> >> If t > myImage1.W Then >> myImage1.Resize(myImage1.w + 1, myImage1.H) >> >> Draw.Begin(myImage1) ? ? ? ? ? <--- ?Image , "Not a drawable Object" >> ? ?Draw.FillRect(myImage1.W - 1, 0, 1, myImage1.H, Color.RGB(255, 255, >> 223)) Draw.End >> > > Yes, I forgot that only Paint can be used on images... So you have to use > Paint! > > -- > Beno?t Minisini > > ------------------------------------------------------------------------------ > Lotusphere 2011 > Register now for Lotusphere 2011 and learn how > to connect the dots, take your collaborative environment > to the next level, and enter the era of Social Business. > http://p.sf.net/sfu/lotusphere-d2d > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > or a drawing area ... -- Fabien Bodard From gambas at ...1... Wed Dec 15 23:06:06 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Wed, 15 Dec 2010 23:06:06 +0100 Subject: [Gambas-user] Gambas 3 Printing In-Reply-To: <4D0819D2.5080800@...169...> References: <201011300958.05904.rterry@...1946...> <201012140959.15877.gambas@...1...> <4D0819D2.5080800@...169...> Message-ID: <201012152306.07002.gambas@...1...> > Benoit > Test project attached. I have included a screenshot of my Print Dialog. Indeed. It is disabled on your machine. But it works perfectly there. > It was interesting doing a small test project. In my main project, which > uses basically the same code, the "Font" property is not respected and > all printing is done in Ubuntu font. Also the Text Align.Right or > Align.Center properties have no effect unless the Height property is > specified. This is by design. Alignment only works inside a rectangle. Maybe I could modify the routine to work as you expected. > In the test project I did not encounter these problems so I > need to revisit the Paint methods. > However the Orientation problem persists. Did you tell me which version of GTK+ you are using? Does someone else has the problem ? -- Beno?t Minisini From mdavies5 at ...169... Thu Dec 16 01:37:49 2010 From: mdavies5 at ...169... (Michael) Date: Thu, 16 Dec 2010 11:37:49 +1100 Subject: [Gambas-user] Gambas 3 Printing In-Reply-To: <201012152306.07002.gambas@...1...> References: <201011300958.05904.rterry@...1946...> <201012140959.15877.gambas@...1...> <4D0819D2.5080800@...169...> <201012152306.07002.gambas@...1...> Message-ID: <4D095F5D.8030606@...169...> This exploits my newness to Linux. How do I find out this version. I did a file search and found a lot of gtk-2.0 folders under "/etc/" and under "/python". Does this help. I am also using Ubuntu 10.10 64bit. Is GTK an acronym for Gnome? MyGnome version is 2.32.0 Regards Michael On 16/12/10 09:06, Beno?t Minisini wrote: >> Benoit >> Test project attached. I have included a screenshot of my Print Dialog. > Indeed. It is disabled on your machine. But it works perfectly there. > >> It was interesting doing a small test project. In my main project, which >> uses basically the same code, the "Font" property is not respected and >> all printing is done in Ubuntu font. Also the Text Align.Right or >> Align.Center properties have no effect unless the Height property is >> specified. > This is by design. Alignment only works inside a rectangle. Maybe I could > modify the routine to work as you expected. > >> In the test project I did not encounter these problems so I >> need to revisit the Paint methods. >> However the Orientation problem persists. > Did you tell me which version of GTK+ you are using? > > Does someone else has the problem ? > From wally at ...2037... Thu Dec 16 10:21:16 2010 From: wally at ...2037... (wally) Date: Thu, 16 Dec 2010 10:21:16 +0100 Subject: [Gambas-user] painting graph to image continuously In-Reply-To: References: <201012151650.05733.wally@...2037...> <201012151656.11125.gambas@...1...> Message-ID: <201012161021.16839.wally@...2037...> On Wednesday 15 December 2010 18:57:16 Fabien Bodard wrote: > Le 15 d?cembre 2010 16:56, Beno?t Minisini > a ?crit : > >> > >> thanks :) but ... Image , "Not a drawable Object" > >> > >> If t > myImage1.W Then > >> myImage1.Resize(myImage1.w + 1, myImage1.H) > >> > >> Draw.Begin(myImage1) <--- Image , "Not a drawable Object" > >> Draw.FillRect(myImage1.W - 1, 0, 1, myImage1.H, Color.RGB(255, 255, > >> 223)) Draw.End > >> > > > > Yes, I forgot that only Paint can be used on images... So you have to use > > Paint! > > > > -- > > Beno?t Minisini > > > > ------------------------------------------------------------------------------ > > Lotusphere 2011 > > Register now for Lotusphere 2011 and learn how > > to connect the dots, take your collaborative environment > > to the next level, and enter the era of Social Business. > > http://p.sf.net/sfu/lotusphere-d2d > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > or a drawing area ... > > -- > Fabien Bodard > > ------------------------------------------------------------------------------ > Lotusphere 2011 > Register now for Lotusphere 2011 and learn how > to connect the dots, take your collaborative environment > to the next level, and enter the era of Social Business. > http://p.sf.net/sfu/lotusphere-d2d > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > Fabian, Benoit, i tied your suggestion too and it's true i can apply "Draw" and "Paint" to DrawingArea, but doing so, i get more problems. I attached code and screenshot for better reading DraawingArea.Cache = TRUE 1st Problem is that after the first resize operation the former Drawing is repeated. So i get several identical graphs in sequence. 2nd Problem is that Draw.FillRect(DrawingArea1.W - 1, 0, 1, DrawingArea1.H, Color.Cyan) is ignored , same as the paint instructions after 1st resize. 3rd Problem is the screenshot, you can see this in attachment. How to do this all as needed and how to save a copy of the entire graph ? thanks wally -------------- next part -------------- A non-text attachment was scrubbed... Name: dArea.png Type: image/png Size: 17242 bytes Desc: not available URL: -------------- next part -------------- Public Sub btn_DArea_Click() Dim t As Integer Dim y As Integer For t = 0 To 1000 If (t Mod 25 = 0) Then y = CInt(Rnd(0, 128)) Endif If t > DrawingArea1.W Then DrawingArea1.Resize(DrawingArea1.W + 1, DrawingArea1.H) Draw.Begin(DrawingArea1) Draw.FillRect(DrawingArea1.W - 1, 0, 1, DrawingArea1.H, Color.Cyan) 'DrawingArea1.Background) Draw.End Endif Paint.Begin((DrawingArea1)) Paint.Brush = Paint.Color(Color.RGB(255, 0, 0)) Paint.LineWidth = 1 Paint.MoveTo(last_t, last_y) Paint.LineTo(t, y) Paint.Stroke Paint.End ScrollView3.EnsureVisible(t, 64, 50, 50) Wait 0.05 last_t = t last_y = y Next myPicture = DrawingArea1.Screenshot() myPicture.Save(ProjPath &/ "dArea.png") End From wally at ...2037... Thu Dec 16 13:15:35 2010 From: wally at ...2037... (wally) Date: Thu, 16 Dec 2010 13:15:35 +0100 Subject: [Gambas-user] painting graph to image continuously In-Reply-To: <201012161021.16839.wally@...2037...> References: <201012151650.05733.wally@...2037...> <201012161021.16839.wally@...2037...> Message-ID: <201012161315.35831.wally@...2037...> On Thursday 16 December 2010 10:21:16 wally wrote: > On Wednesday 15 December 2010 18:57:16 Fabien Bodard wrote: > > Le 15 d?cembre 2010 16:56, Beno?t Minisini > > a ?crit : > > >> > > >> thanks :) but ... Image , "Not a drawable Object" > > >> > > >> If t > myImage1.W Then > > >> myImage1.Resize(myImage1.w + 1, myImage1.H) > > >> > > >> Draw.Begin(myImage1) <--- Image , "Not a drawable Object" > > >> Draw.FillRect(myImage1.W - 1, 0, 1, myImage1.H, Color.RGB(255, 255, > > >> 223)) Draw.End > > >> > > > > > > Yes, I forgot that only Paint can be used on images... So you have to use > > > Paint! > > > > > > -- > > > Beno?t Minisini > > > > > > > ------------------------------------------------------------------------------ > > > Lotusphere 2011 > > > Register now for Lotusphere 2011 and learn how > > > to connect the dots, take your collaborative environment > > > to the next level, and enter the era of Social Business. > > > http://p.sf.net/sfu/lotusphere-d2d > > > _______________________________________________ > > > Gambas-user mailing list > > > Gambas-user at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > or a drawing area ... > > > > -- > > Fabien Bodard > > > > > ------------------------------------------------------------------------------ > > Lotusphere 2011 > > Register now for Lotusphere 2011 and learn how > > to connect the dots, take your collaborative environment > > to the next level, and enter the era of Social Business. > > http://p.sf.net/sfu/lotusphere-d2d > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > Fabian, Benoit, > > i tied your suggestion too and it's true i can apply "Draw" and "Paint" > to DrawingArea, but doing so, i get more problems. > I attached code and screenshot for better reading > > DraawingArea.Cache = TRUE > > 1st Problem is that after the first resize operation the former Drawing is > repeated. So i get several identical graphs in sequence. > > 2nd Problem is that > Draw.FillRect(DrawingArea1.W - 1, 0, 1, DrawingArea1.H, Color.Cyan) > is ignored , same as the paint instructions after 1st resize. > > 3rd Problem is the screenshot, you can see this in attachment. > > How to do this all as needed and how to save a copy of the entire graph ? > > thanks wally > Hello, i did some tests for better understanding what's going on when resizing DrawingArea. Running attached code (circle.txt) creates the file "circles.png" . On screen, i got a different drawing, shown in "extern_screenshot.png" taken with KSnapShot directly from the screen. May anybody be so kind to explain this and/or give me a hint what to read first to get the code work as needed. thanks wally code: Public Sub btn_test_Click() '100, 80 - - > 200, 160 resizing from to Draw.Begin(DrawingArea2) Draw.Circle(50, 40, 30) Draw.End DrawingArea2.Resize(200, 160) myPicture = DrawingArea2.Screenshot() myPicture.Save(ProjPath &/ "circles.png") End -------------- next part -------------- A non-text attachment was scrubbed... Name: circles.png Type: image/png Size: 560 bytes Desc: not available URL: -------------- next part -------------- Public Sub btn_test_Click() '100, 80 - - > 200, 160 Draw.Begin(DrawingArea2) Draw.Circle(50, 40, 30) Draw.End DrawingArea2.Resize(200, 160) myPicture = DrawingArea2.Screenshot() myPicture.Save(ProjPath &/ "circles.png") End -------------- next part -------------- A non-text attachment was scrubbed... Name: extern_screenshot.png Type: image/png Size: 1228 bytes Desc: not available URL: From sbungay at ...981... Thu Dec 16 17:07:54 2010 From: sbungay at ...981... (Stephen Bungay) Date: Thu, 16 Dec 2010 11:07:54 -0500 Subject: [Gambas-user] About help and arrays and variables In-Reply-To: References: <1289994337.4274.9.camel@...2493...> <201011171249.47203.gambas@...1...> <1290015049.7776.5.camel@...2493...> <201011190138.01701.gambas@...1...> <1290169643.12614.32.camel@...2493...> <1290173023.3221.15.camel@...2494...> Message-ID: <4D0A395A.5020405@...981...> On 11/19/2010 08:58 AM, Fabien Bodard wrote: > 2010/11/19 Demosthenes Koptsis: >> ok! >> >> i was cofused from two things >> >> 1) >> in previous message about static arrays Fabien said that: >> >>> yes a static array is not an object ... that's why it's a little bit >>> deprecated :) >>> >>> >>> anther way : >>> >>> dim htmpArray as integer[]= [1, 2, 3, 4, 5, 6, 7, 8, 9, 10] >>> >> so a >> DIM htmpArray as integer[]= [1, 2, 3, 4, 5, 6, 7, 8, 9, 10] >> i thought was a static. > no a dynamic ... look at the bottom >> and >> >> 2) >> --------------------------------- >> DIM aInt2 AS Integer[3] >> >> aInt2[0] = 1 >> aInt2[1] = 20 >> aInt2[2] = 30 >> >> aInt2.Add(40) 'here is the resize of the array >> aInt2.Add(50) >> aInt2.Add(60) >> >> PRINT aInt2[3] >> PRINT aInt2[4] >> PRINT aInt2[5] >> --------------------------------- >> >> In my gambas2-2.21 rev3300 there is no error, nor compilation nor >> execution! >> > Normal it's Dynamic array :) > > Dynamic : > DIM Identifier AS [ NEW ] Native Datatype [ Array dimensions ... ] > > ex : dim aInt as Integer[10] > > Static > [ STATIC ] { PUBLIC | PRIVATE } Identifier [ Array dimensions ... ] AS > Native Datatype > > > ex : Private aInt[10] as integer > > you can't declare a staic array in a sub I am converting some older code over and came across this idiosyncrasy with static arrays in subs, I can work around it easily enough but my curiosity is peaked... why are static arrays not allowed at the procedure level? > ------------------------------------------------------------------------------ > Beautiful is writing same markup. Internet Explorer 9 supports > standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2& L3. > Spend less time writing and rewriting code and more time creating great > experiences on the web. Be a part of the beta today > http://p.sf.net/sfu/msIE9-sfdev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Thu Dec 16 17:55:00 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Thu, 16 Dec 2010 17:55:00 +0100 Subject: [Gambas-user] About help and arrays and variables In-Reply-To: <4D0A395A.5020405@...981...> References: <1289994337.4274.9.camel@...2493...> <4D0A395A.5020405@...981...> Message-ID: <201012161755.00507.gambas@...1...> > > I am converting some older code over and came across this > idiosyncrasy with static arrays in subs, I can work around it easily > enough but my curiosity is peaked... why are static arrays not allowed > at the procedure level? > Because the stack can't receive them. -- Beno?t Minisini From gambas.fr at ...626... Thu Dec 16 18:03:21 2010 From: gambas.fr at ...626... (Fabien Bodard) Date: Thu, 16 Dec 2010 18:03:21 +0100 Subject: [Gambas-user] painting graph to image continuously In-Reply-To: <201012161315.35831.wally@...2037...> References: <201012151650.05733.wally@...2037...> <201012161021.16839.wally@...2037...> <201012161315.35831.wally@...2037...> Message-ID: if you want us to help you ... please be more explicit on what you want to do ! first why do you want to resize the drawing area ????(for scrolling ?) are you sure you have understand all the capabilities of a drawing area ? do you know the _draw event ? waht i've understand is : you want like for an array draw on an image... resizing it with preserve of the last draw, and add a new draw. if it's that ..; i think there is many things you have not understand ... tell me From gambas.fr at ...626... Thu Dec 16 18:06:48 2010 From: gambas.fr at ...626... (Fabien Bodard) Date: Thu, 16 Dec 2010 18:06:48 +0100 Subject: [Gambas-user] Gambas 3 Printing In-Reply-To: <4D095F5D.8030606@...169...> References: <201011300958.05904.rterry@...1946...> <201012140959.15877.gambas@...1...> <4D0819D2.5080800@...169...> <201012152306.07002.gambas@...1...> <4D095F5D.8030606@...169...> Message-ID: gnome is the desktop envirronment like kde is ... (panel + a summary of apps) but based on gtk that is a toolkit(draw the menu/buttons, and so on) like qt 2010/12/16 Michael : > This exploits my newness to Linux. How do I find out this version. I did > a file search and found a lot of gtk-2.0 folders under "/etc/" and under > "/python". Does this help. I am also using Ubuntu 10.10 64bit. > Is GTK an acronym for Gnome? MyGnome version is 2.32.0 > > Regards > Michael > > > On 16/12/10 09:06, Beno?t Minisini wrote: >>> Benoit >>> Test project attached. I have included ?a screenshot of my Print Dialog. >> Indeed. It is disabled on your machine. But it works perfectly there. >> >>> It was interesting doing a small test project. In my main project, which >>> uses basically the same code, the "Font" property is not respected and >>> all printing is done in Ubuntu font. Also the Text Align.Right or >>> Align.Center properties have no effect unless the Height property is >>> specified. >> This is by design. Alignment only works inside a rectangle. Maybe I could >> modify the routine to work as you expected. >> >>> In the test project I did not encounter these problems so I >>> need to revisit the Paint methods. >>> However the Orientation problem persists. >> Did you tell me which version of GTK+ you are using? >> >> Does someone else has the problem ? >> > > ------------------------------------------------------------------------------ > Lotusphere 2011 > Register now for Lotusphere 2011 and learn how > to connect the dots, take your collaborative environment > to the next level, and enter the era of Social Business. > http://p.sf.net/sfu/lotusphere-d2d > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Fabien Bodard From wally at ...2037... Thu Dec 16 18:46:46 2010 From: wally at ...2037... (wally) Date: Thu, 16 Dec 2010 18:46:46 +0100 Subject: [Gambas-user] painting graph to image continuously Message-ID: <201012161846.46665.wally@...2037...> On Thursday 16 December 2010 18:03:21 Fabien Bodard wrote: > if you want us to help you ... please be more explicit on what you want to do ! > > first why do you want to resize the drawing area ????(for scrolling ?) > > are you sure you have understand all the capabilities of a drawing > area ? do you know the _draw event ? > > > waht i've understand is : > > you want like for an array draw on an image... resizing it with > preserve of the last draw, and add a new draw. > > if it's that ..; i think there is many things you have not understand > ... tell me > > ------------------------------------------------------------------------------ > Lotusphere 2011 > Register now for Lotusphere 2011 and learn how > to connect the dots, take your collaborative environment > to the next level, and enter the era of Social Business. > http://p.sf.net/sfu/lotusphere-d2d > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > Fabian, i just want to do something like an ECG. Drawing a graph from continuously received data from SerialPort. Exactly i read data from the ADC of an Arduino uC via the Serialport and want to draw this graph. Behind the Arduino ADC is a HPLC Detector and to take a spectrogram may last up to an hour. I store the data during receive to file for further external math processing. But i need a visual control whats going on. Using an Image to paint and resize as needed works nice. But the DrawingArea do something like copy stuff to new (via resized) area instead of just increase width. Maybe i need to repaint always or to buffer the recently drawn stuff before resizing. My last attachments contains a picture file with 4 circles. 3 of thes circles are created by simply resizing the drawingArea. see attached simple short code please. I do not know whats going on internally and i do not know where to find more information and further reading on it. > if it's that ..; i think there is many things you have not understand > ... tell me agree, thats the reason i post here > are you sure you have understand all the capabilities of a drawing > area ? do you know the _draw event ? where did you find your knowledge on this. If i need to read all the qt4 and GTK stuff i might programm directly in C/C++. I have choosen Gambas for rapid apps devel. i try to attach a xcapture,of the DrawingArea behavior, It should explain whats my problem. If it's not allowed to attach a 1MB file i may send to your email. (2nd trial: message body too big, i send again without attachment) cheers wally From wally at ...2037... Thu Dec 16 19:17:08 2010 From: wally at ...2037... (wally) Date: Thu, 16 Dec 2010 19:17:08 +0100 Subject: [Gambas-user] painting graph to image continuously In-Reply-To: <201012161846.46665.wally@...2037...> References: <201012161846.46665.wally@...2037...> Message-ID: <201012161917.08664.wally@...2037...> On Thursday 16 December 2010 18:46:46 wally wrote: > > On Thursday 16 December 2010 18:03:21 Fabien Bodard wrote: > > if you want us to help you ... please be more explicit on what you want to > do ! > > > > first why do you want to resize the drawing area ????(for scrolling ?) > > > > are you sure you have understand all the capabilities of a drawing > > area ? do you know the _draw event ? > > > > > > waht i've understand is : > > > > you want like for an array draw on an image... resizing it with > > preserve of the last draw, and add a new draw. > > > > if it's that ..; i think there is many things you have not understand > > ... tell me > > > > > ------------------------------------------------------------------------------ > > Lotusphere 2011 > > Register now for Lotusphere 2011 and learn how > > to connect the dots, take your collaborative environment > > to the next level, and enter the era of Social Business. > > http://p.sf.net/sfu/lotusphere-d2d > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > Fabian, > > i just want to do something like an ECG. Drawing a graph from continuously > received data from SerialPort. Exactly i read data from the ADC of an Arduino > uC via the Serialport and want to draw this graph. Behind the Arduino ADC > is a HPLC Detector and to take a spectrogram may last up to an hour. > I store the data during receive to file for further external math processing. > But i need a visual control whats going on. > Using an Image to paint and resize as needed works nice. > But the DrawingArea do something like copy stuff to new (via resized) area > instead of just increase width. Maybe i need to repaint always or to buffer > the recently drawn stuff before resizing. > > My last attachments contains a picture file with 4 circles. 3 of thes circles > are created by simply resizing the drawingArea. see attached simple > short code please. > > I do not know whats going on internally and i do not know where to find > more information and further reading on it. > > > if it's that ..; i think there is many things you have not understand > > ... tell me > > agree, thats the reason i post here > > > are you sure you have understand all the capabilities of a drawing > > area ? do you know the _draw event ? > > where did you find your knowledge on this. If i need to read all the qt4 and > GTK stuff i might programm directly in C/C++. I have choosen Gambas for rapid > apps devel. > > i try to attach a xcapture,of the DrawingArea behavior, It should explain > whats my problem. If it's not allowed to attach a 1MB file i may send to > your email. > > (2nd trial: message body too big, i send again without attachment) > > cheers wally > > > > > > ------------------------------------------------------------------------------ > Lotusphere 2011 > Register now for Lotusphere 2011 and learn how > to connect the dots, take your collaborative environment > to the next level, and enter the era of Social Business. > http://p.sf.net/sfu/lotusphere-d2d > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > Fabian, i wrote: > My last attachments contains a picture file with 4 circles. 3 of thes > circles are created by simply resizing the drawingArea. see attached > simple short code please. this occirs in GB3 DrawingArea only - GB2 behaves as expected. try this code in GB2 and GB3 : PUBLIC SUB Button1_Click() ' DrawingArea 100, 80 - - > 200, 160, .cache=true Draw.Begin(DrawingArea1) Draw.Circle(50, 40, 30) Draw.End DrawingArea1.Resize(200, 160) END wally From gambas.fr at ...626... Thu Dec 16 20:15:21 2010 From: gambas.fr at ...626... (Fabien Bodard) Date: Thu, 16 Dec 2010 20:15:21 +0100 Subject: [Gambas-user] painting graph to image continuously In-Reply-To: <201012161917.08664.wally@...2037...> References: <201012161846.46665.wally@...2037...> <201012161917.08664.wally@...2037...> Message-ID: I hope this can help you. This is in few lines how to make a real time graph in gambas -- Fabien Bodard -------------- next part -------------- A non-text attachment was scrubbed... Name: DemoGraph-0.0.1.tar.gz Type: application/x-gzip Size: 4925 bytes Desc: not available URL: From wally at ...2037... Thu Dec 16 20:35:26 2010 From: wally at ...2037... (wally) Date: Thu, 16 Dec 2010 20:35:26 +0100 Subject: [Gambas-user] painting graph to image continuously In-Reply-To: References: <201012161846.46665.wally@...2037...> <201012161917.08664.wally@...2037...> Message-ID: <201012162035.26532.wally@...2037...> On Thursday 16 December 2010 20:15:21 Fabien Bodard wrote: > I hope this can help you. > > This is in few lines how to make a real time graph in gambas > > -- > Fabien Bodard > Fabian, thank you very much, i'll study this code tomorrow. Would be nice if you may confirm the different behavior of DrawingArea.Resize in GB2 and GB3. wally From sbungay at ...981... Thu Dec 16 21:07:37 2010 From: sbungay at ...981... (Stephen Bungay) Date: Thu, 16 Dec 2010 15:07:37 -0500 Subject: [Gambas-user] About help and arrays and variables In-Reply-To: <201012161755.00507.gambas@...1...> References: <1289994337.4274.9.camel@...2493...> <4D0A395A.5020405@...981...> <201012161755.00507.gambas@...1...> Message-ID: <4D0A7189.1070405@...981...> On 12/16/2010 11:55 AM, Beno?t Minisini wrote: >> I am converting some older code over and came across this >> idiosyncrasy with static arrays in subs, I can work around it easily >> enough but my curiosity is peaked... why are static arrays not allowed >> at the procedure level? >> > Because the stack can't receive them. > I see... so a fundamental internal change took place to cause this (i.e. they were allowed at the procedure level in older versions, now they are not). Anyway... can't change it so its not important. From jussi.lahtinen at ...626... Thu Dec 16 21:47:45 2010 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Thu, 16 Dec 2010 22:47:45 +0200 Subject: [Gambas-user] Bug with IsInteger? Message-ID: ? IsInteger("12 + 5.4") True Gambas 3 rev 3371 @ Ubuntu 10.04 64bit Jussi From gambas at ...1... Thu Dec 16 22:42:14 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Thu, 16 Dec 2010 22:42:14 +0100 Subject: [Gambas-user] painting graph to image continuously In-Reply-To: <201012162035.26532.wally@...2037...> References: <201012161846.46665.wally@...2037...> <201012162035.26532.wally@...2037...> Message-ID: <201012162242.14209.gambas@...1...> > On Thursday 16 December 2010 20:15:21 Fabien Bodard wrote: > > I hope this can help you. > > > > This is in few lines how to make a real time graph in gambas > > Fabian, > > thank you very much, i'll study this code tomorrow. > > Would be nice if you may confirm the different behavior of > DrawingArea.Resize in GB2 and GB3. > > > wally > Can you make a little project that shows the problem? The same progressing graph, with just arbitrary data for example. It will highly help to fix things if things should be fixed. Regards, -- Beno?t Minisini From gambas at ...1... Thu Dec 16 22:43:32 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Thu, 16 Dec 2010 22:43:32 +0100 Subject: [Gambas-user] About help and arrays and variables In-Reply-To: <4D0A7189.1070405@...981...> References: <1289994337.4274.9.camel@...2493...> <201012161755.00507.gambas@...1...> <4D0A7189.1070405@...981...> Message-ID: <201012162243.32423.gambas@...1...> > On 12/16/2010 11:55 AM, Beno?t Minisini wrote: > >> I am converting some older code over and came across this > >> > >> idiosyncrasy with static arrays in subs, I can work around it easily > >> enough but my curiosity is peaked... why are static arrays not allowed > >> at the procedure level? > > > > Because the stack can't receive them. > > I see... so a fundamental internal change took place to cause this (i.e. > they were allowed at the procedure level in older versions, now they are > not). Anyway... can't change it so its not important. > There is no need of "static" (named "embedded" now) arrays. They describe part of an object memory allocation, and the stack is not an object memory allocation. Using local normal arrays has the same effect. Regards, -- Beno?t Minisini From wally at ...2037... Fri Dec 17 08:58:09 2010 From: wally at ...2037... (wally) Date: Fri, 17 Dec 2010 08:58:09 +0100 Subject: [Gambas-user] painting graph to image continuously In-Reply-To: <201012162242.14209.gambas@...1...> References: <201012161846.46665.wally@...2037...> <201012162035.26532.wally@...2037...> <201012162242.14209.gambas@...1...> Message-ID: <201012170858.10002.wally@...2037...> On Thursday 16 December 2010 22:42:14 Beno?t Minisini wrote: > > On Thursday 16 December 2010 20:15:21 Fabien Bodard wrote: > > > I hope this can help you. > > > > > > This is in few lines how to make a real time graph in gambas > > > > Fabian, > > > > thank you very much, i'll study this code tomorrow. > > > > Would be nice if you may confirm the different behavior of > > DrawingArea.Resize in GB2 and GB3. > > > > > > wally > > > > Can you make a little project that shows the problem? The same progressing > graph, with just arbitrary data for example. It will highly help to fix things > if things should be fixed. > > Regards, > > -- > Beno?t Minisini > > ------------------------------------------------------------------------------ > Lotusphere 2011 > Register now for Lotusphere 2011 and learn how > to connect the dots, take your collaborative environment > to the next level, and enter the era of Social Business. > http://p.sf.net/sfu/lotusphere-d2d > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > Benoit, i sent already, but maybe attachments has been rejected. The code below creates 1 circle. After resizing in GB3 i got 4 circles. Doing same in GB2 just a resize of the area is performed and the primarly created circle persists. Public Sub btn_test_Click() 'Drawing Area set to 100, 80 ' DrawingArea.cache - True '- - > 200, 160 Draw.Begin(DrawingArea1) Draw.Circle(50, 40, 30) Draw.End DrawingArea1.Resize(200, 160) myPicture = DrawingArea1.Screenshot() myPicture.Save(ProjPath &/ "circles.png") End From wally at ...2037... Fri Dec 17 09:03:13 2010 From: wally at ...2037... (wally) Date: Fri, 17 Dec 2010 09:03:13 +0100 Subject: [Gambas-user] painting graph to image continuously In-Reply-To: <201012162242.14209.gambas@...1...> References: <201012161846.46665.wally@...2037...> <201012162035.26532.wally@...2037...> <201012162242.14209.gambas@...1...> Message-ID: <201012170903.13590.wally@...2037...> On Thursday 16 December 2010 22:42:14 Beno?t Minisini wrote: > > On Thursday 16 December 2010 20:15:21 Fabien Bodard wrote: > > > I hope this can help you. > > > > > > This is in few lines how to make a real time graph in gambas > > > > Fabian, > > > > thank you very much, i'll study this code tomorrow. > > > > Would be nice if you may confirm the different behavior of > > DrawingArea.Resize in GB2 and GB3. > > > > > > wally > > > > Can you make a little project that shows the problem? The same progressing > graph, with just arbitrary data for example. It will highly help to fix things > if things should be fixed. > > Regards, > > -- > Beno?t Minisini > > ------------------------------------------------------------------------------ > Lotusphere 2011 > Register now for Lotusphere 2011 and learn how > to connect the dots, take your collaborative environment > to the next level, and enter the era of Social Business. > http://p.sf.net/sfu/lotusphere-d2d > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > Benoit, i also have a little (1MB) xcapture which shows best what i'm talking about. I tried to attach this to my recent mailinglist post but it was rejected. If you can give me another email address i can post again. wally From demosthenesk at ...626... Fri Dec 17 09:53:30 2010 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Fri, 17 Dec 2010 10:53:30 +0200 Subject: [Gambas-user] What is the difference about events Show, Open Message-ID: <1292576010.11845.1.camel@...2493...> Good morning, what is the difference about events Form.Show and Form.Open ? -- Regards, Demosthenes Koptsis. From oceanosoftlapalma at ...626... Fri Dec 17 10:34:49 2010 From: oceanosoftlapalma at ...626... (=?ISO-8859-1?Q?Ricardo_D=EDaz_Mart=EDn?=) Date: Fri, 17 Dec 2010 10:34:49 +0100 Subject: [Gambas-user] What is the difference about events Show, Open In-Reply-To: <1292576010.11845.1.camel@...2493...> References: <1292576010.11845.1.camel@...2493...> Message-ID: Open is fired only the first time you show a form. In the other hand, Show event is fired for example if you use 2 virtual desktops and change from one to other and change again to the desktop you got the form. Regards, 2010/12/17 Demosthenes Koptsis > Good morning, > > what is the difference about events Form.Show and Form.Open ? > > > -- > Regards, > Demosthenes Koptsis. > > > > ------------------------------------------------------------------------------ > Lotusphere 2011 > Register now for Lotusphere 2011 and learn how > to connect the dots, take your collaborative environment > to the next level, and enter the era of Social Business. > http://p.sf.net/sfu/lotusphere-d2d > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Fri Dec 17 11:14:49 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Fri, 17 Dec 2010 11:14:49 +0100 Subject: [Gambas-user] painting graph to image continuously In-Reply-To: <201012170858.10002.wally@...2037...> References: <201012161846.46665.wally@...2037...> <201012162242.14209.gambas@...1...> <201012170858.10002.wally@...2037...> Message-ID: <201012171114.49219.gambas@...1...> > Benoit, > > i sent already, but maybe attachments has been rejected. > > The code below creates 1 circle. After resizing in GB3 i got > 4 circles. Doing same in GB2 just a resize of the area is performed > and the primarly created circle persists. > > Public Sub btn_test_Click() > > 'Drawing Area set to 100, 80 > ' DrawingArea.cache - True > '- - > 200, 160 > > Draw.Begin(DrawingArea1) > Draw.Circle(50, 40, 30) > Draw.End > > DrawingArea1.Resize(200, 160) > > myPicture = DrawingArea1.Screenshot() > myPicture.Save(ProjPath &/ "circles.png") > > End > I'm talking about a full project (the tar.gz of the project created by "make source archive" in the IDE menu). I don't find it... -- Beno?t Minisini From mohareve at ...626... Fri Dec 17 12:54:12 2010 From: mohareve at ...626... (M. Cs.) Date: Fri, 17 Dec 2010 12:54:12 +0100 Subject: [Gambas-user] How many is too many in GB3? Message-ID: I've installed gambas3 from ubuntu's PPAs, and the first thing I've realized is that the number of allowed constants or code rows fell dramatically. I have a FMain of 11.000 rows written in gb2. Could you give me an esteem how much I have to modulize it to become acceptable for gb3? Thanks! From oceanosoftlapalma at ...626... Fri Dec 17 13:06:59 2010 From: oceanosoftlapalma at ...626... (=?ISO-8859-1?Q?Ricardo_D=EDaz_Mart=EDn?=) Date: Fri, 17 Dec 2010 13:06:59 +0100 Subject: [Gambas-user] How many is too many in GB3? In-Reply-To: References: Message-ID: I don't know about limits. Did you convert the project to gambas3 first? Regards, Ricardo D?az 2010/12/17 M. Cs. > I've installed gambas3 from ubuntu's PPAs, and the first thing I've > realized > is that the number of allowed constants or code rows fell dramatically. I > have a FMain of 11.000 rows written in gb2. Could you give me an esteem how > much I have to modulize it to become acceptable for gb3? > > Thanks! > > ------------------------------------------------------------------------------ > Lotusphere 2011 > Register now for Lotusphere 2011 and learn how > to connect the dots, take your collaborative environment > to the next level, and enter the era of Social Business. > http://p.sf.net/sfu/lotusphere-d2d > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Fri Dec 17 13:12:43 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Fri, 17 Dec 2010 13:12:43 +0100 Subject: [Gambas-user] How many is too many in GB3? In-Reply-To: References: Message-ID: <201012171312.43066.gambas@...1...> > I've installed gambas3 from ubuntu's PPAs, and the first thing I've > realized is that the number of allowed constants or code rows fell > dramatically. I have a FMain of 11.000 rows written in gb2. Could you give > me an esteem how much I have to modulize it to become acceptable for gb3? > > Thanks! Actually the maximum number of constants didn't change. But Gambas 3 uses more constants for form definitions. There is no limit on the number of lines. Otherwise I think I have a way to extend the maximum number of contants, so be patient! Regards, -- Beno?t Minisini From gambas.fr at ...626... Fri Dec 17 13:28:13 2010 From: gambas.fr at ...626... (Fabien Bodard) Date: Fri, 17 Dec 2010 13:28:13 +0100 Subject: [Gambas-user] How many is too many in GB3? In-Reply-To: <201012171312.43066.gambas@...1...> References: <201012171312.43066.gambas@...1...> Message-ID: 11000 rows in one class ... whaaaa Le 17 d?cembre 2010 13:12, Beno?t Minisini a ?crit : >> I've installed gambas3 from ubuntu's PPAs, and the first thing I've >> realized is that the number of allowed constants or code rows fell >> dramatically. I have a FMain of 11.000 rows written in gb2. Could you give >> me an esteem how much I have to modulize it to become acceptable for gb3? >> >> Thanks! > > Actually the maximum number of constants didn't change. But Gambas 3 uses more > constants for form definitions. > > There is no limit on the number of lines. > > Otherwise I think I have a way to extend the maximum number of contants, so be > patient! > > Regards, > > -- > Beno?t Minisini > > ------------------------------------------------------------------------------ > Lotusphere 2011 > Register now for Lotusphere 2011 and learn how > to connect the dots, take your collaborative environment > to the next level, and enter the era of Social Business. > http://p.sf.net/sfu/lotusphere-d2d > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Fabien Bodard From mdavies5 at ...169... Fri Dec 17 13:32:45 2010 From: mdavies5 at ...169... (Michael) Date: Fri, 17 Dec 2010 23:32:45 +1100 Subject: [Gambas-user] What has happened to ValueBox In-Reply-To: <201012170858.10002.wally@...2037...> References: <201012161846.46665.wally@...2037...> <201012162035.26532.wally@...2037...> <201012162242.14209.gambas@...1...> <201012170858.10002.wally@...2037...> Message-ID: <4D0B586D.2020000@...169...> In Gambas 2 I had a number of Value Boxes which I assigned to Group "Value". Then I would identify the calling box in code as follows: Public Sub Value_GotFocus() dim txtTemp as valueBox = LAST SELECT CASE txtTemp.Name 'Returns name of calling Value Box In Gambas 3 I got an error because the Value boxes are recognised as plain text boxes not as Value boxes. I changed my code (Dim txtTemp as Textbox) but when reading the LAST.Name it returns "TextBox". It is returning the type not the name I assigned to the textbox. The group feature was great for preventing repetitive code but this functionality appears to have gone. I must write similar code for each TextBox_GotFocus event. Regards Michael On 17/12/10 18:58, wally wrote: > On Thursday 16 December 2010 22:42:14 Beno?t Minisini wrote: >>> On Thursday 16 December 2010 20:15:21 Fabien Bodard wrote: >>>> I hope this can help you. >>>> >>>> This is in few lines how to make a real time graph in gambas >>> Fabian, >>> >>> thank you very much, i'll study this code tomorrow. >>> >>> Would be nice if you may confirm the different behavior of >>> DrawingArea.Resize in GB2 and GB3. >>> >>> >>> wally >>> >> Can you make a little project that shows the problem? The same progressing >> graph, with just arbitrary data for example. It will highly help to fix > things >> if things should be fixed. >> >> Regards, >> >> -- >> Beno?t Minisini >> >> > ------------------------------------------------------------------------------ >> Lotusphere 2011 >> Register now for Lotusphere 2011 and learn how >> to connect the dots, take your collaborative environment >> to the next level, and enter the era of Social Business. >> http://p.sf.net/sfu/lotusphere-d2d >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > Benoit, > > i sent already, but maybe attachments has been rejected. > > The code below creates 1 circle. After resizing in GB3 i got > 4 circles. Doing same in GB2 just a resize of the area is performed > and the primarly created circle persists. > > Public Sub btn_test_Click() > > 'Drawing Area set to 100, 80 > ' DrawingArea.cache - True > '- -> 200, 160 > > Draw.Begin(DrawingArea1) > Draw.Circle(50, 40, 30) > Draw.End > > DrawingArea1.Resize(200, 160) > > myPicture = DrawingArea1.Screenshot() > myPicture.Save(ProjPath&/ "circles.png") > > End > > > > > > > > ------------------------------------------------------------------------------ > Lotusphere 2011 > Register now for Lotusphere 2011 and learn how > to connect the dots, take your collaborative environment > to the next level, and enter the era of Social Business. > http://p.sf.net/sfu/lotusphere-d2d > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From gambas at ...1... Fri Dec 17 13:41:37 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Fri, 17 Dec 2010 13:41:37 +0100 Subject: [Gambas-user] What has happened to ValueBox In-Reply-To: <4D0B586D.2020000@...169...> References: <201012161846.46665.wally@...2037...> <201012170858.10002.wally@...2037...> <4D0B586D.2020000@...169...> Message-ID: <201012171341.37352.gambas@...1...> > In Gambas 2 I had a number of Value Boxes which I assigned to Group > "Value". Then I would identify the calling box in code as follows: > Public Sub Value_GotFocus() > dim txtTemp as valueBox = LAST > SELECT CASE txtTemp.Name 'Returns name of calling Value Box > > > In Gambas 3 I got an error because the Value boxes are recognised as > plain text boxes not as Value boxes. I changed my code (Dim txtTemp as > Textbox) but when reading the LAST.Name it returns "TextBox". It is > returning the type not the name I assigned to the textbox. > > The group feature was great for preventing repetitive code but this > functionality appears to have gone. I must write similar code for each > TextBox_GotFocus event. > > Regards > Michael > ValueBox exists in Gambas 3, so I don't understand what error you are talking about. ValueBox are not "recognized as plain text boxes", whatever that means... Can you explain better what happens to you? -- Beno?t Minisini From mdavies5 at ...169... Fri Dec 17 14:37:09 2010 From: mdavies5 at ...169... (Michael) Date: Sat, 18 Dec 2010 00:37:09 +1100 Subject: [Gambas-user] What has happened to ValueBox In-Reply-To: <201012171341.37352.gambas@...1...> References: <201012161846.46665.wally@...2037...> <201012170858.10002.wally@...2037...> <4D0B586D.2020000@...169...> <201012171341.37352.gambas@...1...> Message-ID: <4D0B6785.4040602@...169...> Benoit, On the line "Dim txtTemp as Valuebox = LAST" I get an error "Expecting valuebox got textbox" But the last control was a valuebox. It works if I change the code to "Dim txtTemp as Textbox" even though it is not a textbox firing the event. Then I cannot read the "name" that I assigned to the valuebox. txtTemp.Name just returns "Textbox". I tried replacing the valuebox with a DateBox but this appears to have a bug. I can set the value of the DateBox in code and it displays correctly. I can pick a value from the DatePicker and it displays properly. But it does not have a .Text property to read so I read the .Value property and it always returns "00:00:00" Using gtk+ and Ubuntu 10.10 64bit and Gambas 3363. The code i use worked fine in Gambas2. Here is a small extract of the code as it works in Gambas2: Public Sub Value_LostFocus() Dim txtTemp As ValueBox = Last 'MUST CHANGE TO TextBox in Gambas3 txtTemp.Background = Color.White Select Case txtTemp.Name 'Gambas 3 returns "textbox" Case "txtDaysGas" Regards Michael On 17/12/10 23:41, Beno?t Minisini wrote: >> In Gambas 2 I had a number of Value Boxes which I assigned to Group >> "Value". Then I would identify the calling box in code as follows: >> Public Sub Value_GotFocus() >> dim txtTemp as valueBox = LAST >> SELECT CASE txtTemp.Name 'Returns name of calling Value Box >> >> >> In Gambas 3 I got an error because the Value boxes are recognised as >> plain text boxes not as Value boxes. I changed my code (Dim txtTemp as >> Textbox) but when reading the LAST.Name it returns "TextBox". It is >> returning the type not the name I assigned to the textbox. >> >> The group feature was great for preventing repetitive code but this >> functionality appears to have gone. I must write similar code for each >> TextBox_GotFocus event. >> >> Regards >> Michael >> > ValueBox exists in Gambas 3, so I don't understand what error you are talking > about. ValueBox are not "recognized as plain text boxes", whatever that > means... > > Can you explain better what happens to you? > From mohareve at ...626... Fri Dec 17 15:31:52 2010 From: mohareve at ...626... (M. Cs.) Date: Fri, 17 Dec 2010 15:31:52 +0100 Subject: [Gambas-user] How many is too many in GB3? In-Reply-To: References: <201012171312.43066.gambas@...1...> Message-ID: 2010/12/17 Fabien Bodard > 11000 rows in one class ... whaaaa > > > Le 17 d?cembre 2010 13:12, Beno?t Minisini > a ?crit : > >> I've installed gambas3 from ubuntu's PPAs, and the first thing I've > >> realized is that the number of allowed constants or code rows fell > >> dramatically. I have a FMain of 11.000 rows written in gb2. Could you > give > >> me an esteem how much I have to modulize it to become acceptable for > gb3? > >> > >> Thanks! > > > > Actually the maximum number of constants didn't change. But Gambas 3 uses > more > > constants for form definitions. > > > > There is no limit on the number of lines. > > > > Otherwise I think I have a way to extend the maximum number of contants, > so be > > patient! > > > > Regards, > > > > -- > > Beno?t Minisini > > > > > ------------------------------------------------------------------------------ > > Lotusphere 2011 > > Register now for Lotusphere 2011 and learn how > > to connect the dots, take your collaborative environment > > to the next level, and enter the era of Social Business. > > http://p.sf.net/sfu/lotusphere-d2d > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > -- > Fabien Bodard > > > ------------------------------------------------------------------------------ > Lotusphere 2011 > Register now for Lotusphere 2011 and learn how > to connect the dots, take your collaborative environment > to the next level, and enter the era of Social Business. > http://p.sf.net/sfu/lotusphere-d2d > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > Yes, it is a complex program, with a lot of buttons, grids etc. I've already moved many of the parts into modules, still I have quite a lot of subroutines. I've transformed the gb2 into gb3. I'm preparing the porting to gb3, and I've encountered this situation. It's not a big problem for me to put some of the functions to modules, but after having moved around 500 lines I couldn't achieve to run the program. From zachsmith022 at ...626... Fri Dec 17 17:25:52 2010 From: zachsmith022 at ...626... (Zach Smith) Date: Fri, 17 Dec 2010 10:25:52 -0600 Subject: [Gambas-user] can't copy and paste controls in gambas3 Message-ID: I can't copy and paste a control on a form. I right click on a button to copy (or use CTRL-C). Then if I right click on the form, the paste option in the menu is disabled. I'm running gambas 3 v 3354. It works fine in gambas 2.22. From kevinfishburne at ...1887... Fri Dec 17 17:28:33 2010 From: kevinfishburne at ...1887... (Kevin Fishburne) Date: Fri, 17 Dec 2010 11:28:33 -0500 Subject: [Gambas-user] How many is too many in GB3? In-Reply-To: References: <201012171312.43066.gambas@...1...> Message-ID: <4D0B8FB1.3060503@...1887...> On 12/17/2010 09:31 AM, M. Cs. wrote: > Yes, it is a complex program, with a lot of buttons, grids etc. I've already > moved many of the parts into modules, still I have quite a lot of > subroutines. I've transformed the gb2 into gb3. I'm preparing the porting to > gb3, and I've encountered this situation. It's not a big problem for me to > put some of the functions to modules, but after having moved around 500 > lines I couldn't achieve to run the program. Make sure you do the "Tools, Update all forms," trick when opening a gb2 project in gb3 for the first time. That one bit me in the ass before someone in the mailing list pointed it out. I thought gb3 was just super unstable because it wouldn't run my app, but was happy to discover I was wrong. -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sales at ...1887... phone: (770) 853-6271 From nando_f at ...951... Fri Dec 17 17:29:45 2010 From: nando_f at ...951... (nando) Date: Fri, 17 Dec 2010 12:29:45 -0400 Subject: [Gambas-user] Gambas2 IDE Snap to Grid Question Message-ID: <20101217162607.M21501@...951...> Does anyone know how to turn off the grid snapping feature when place an object in a form in the IDE? I am placing a label in a specific place. I hold the CNTRL down so it is off while moving it. However, when I click on another object and then click on the original one, it snaps to the grid. Very frustrating. I couldn't find a snap to grid check mark anywhere. ?? -Fernando From gambas at ...1... Fri Dec 17 18:24:31 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Fri, 17 Dec 2010 18:24:31 +0100 Subject: [Gambas-user] What has happened to ValueBox In-Reply-To: <4D0B6785.4040602@...169...> References: <201012161846.46665.wally@...2037...> <201012171341.37352.gambas@...1...> <4D0B6785.4040602@...169...> Message-ID: <201012171824.31375.gambas@...1...> > Benoit, > On the line "Dim txtTemp as Valuebox = LAST" I get an error "Expecting > valuebox got textbox" But the last control was a valuebox. > It works if I change the code to "Dim txtTemp as Textbox" even though it > is not a textbox firing the event. OK I see! The ValueBox of Gambas 2 inherits TextBox, and so when it raises events, LAST is always a ValueBox. The current ValueBox of Gambas 3 is actually a compound control (it inherits UserControl), with a edit control inside that can be a TextBox or another control. Events raised by the edit control are propagated as if the ValueBox raise it. But then LAST is the read TextBox, not the ValueBox. Moreover, the code of that ValueBox is somewhat dirty. So I plan to rewrite it differently, and makes it inheriting TextBox again, or find a way to propagate events and keep LAST to be the ValueBox. Sorry for the inconvenience. It will disappear when the ValueBox will be rewritten. As a workaround, you can check the type of LAST. And when it is a TextBox, take its parent to get the ValueBox. Regards, > > Then I cannot read the "name" that I assigned to the valuebox. > txtTemp.Name just returns "Textbox". > > I tried replacing the valuebox with a DateBox but this appears to have a > bug. I can set the value of the DateBox in code and it displays > correctly. I can pick a value from the DatePicker and it displays > properly. But it does not have a .Text property to read so I read the > .Value property and it always returns "00:00:00" Maybe another bug then. I will investigate. Regards, -- Beno?t Minisini From gambas at ...1... Fri Dec 17 18:33:39 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Fri, 17 Dec 2010 18:33:39 +0100 Subject: [Gambas-user] Gambas2 IDE Snap to Grid Question In-Reply-To: <20101217162607.M21501@...951...> References: <20101217162607.M21501@...951...> Message-ID: <201012171833.39975.gambas@...1...> > Does anyone know how to turn off the grid snapping feature > when place an object in a form in the IDE? > > I am placing a label in a specific place. > I hold the CNTRL down so it is off while moving it. You mean the SHIFT key? > However, when I click on another object and then > click on the original one, it snaps to the grid. > Very frustrating. > I couldn't find a snap to grid check mark anywhere. > > ?? > -Fernando > Which version of Gambas do you use? With the last one, I can't reproduce the behaviour you describe: if I click on a control that is not snapped to the grid, it keeps its position as expected. Regards, -- Beno?t Minisini From gambas at ...1... Fri Dec 17 18:35:26 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Fri, 17 Dec 2010 18:35:26 +0100 Subject: [Gambas-user] can't copy and paste controls in gambas3 In-Reply-To: References: Message-ID: <201012171835.26512.gambas@...1...> > I can't copy and paste a control on a form. I right click on a button > to copy (or use CTRL-C). Then if I right click on the form, the paste > option in the menu is disabled. I'm running gambas 3 v 3354. It > works fine in gambas 2.22. > Humf. It works perfectly there. Does someone else has that problem? -- Beno?t Minisini From wally at ...2037... Fri Dec 17 19:10:00 2010 From: wally at ...2037... (wally) Date: Fri, 17 Dec 2010 19:10:00 +0100 Subject: [Gambas-user] painting graph to image continuously In-Reply-To: <201012171114.49219.gambas@...1...> References: <201012161846.46665.wally@...2037...> <201012170858.10002.wally@...2037...> <201012171114.49219.gambas@...1...> Message-ID: <201012171910.01329.wally@...2037...> On Friday 17 December 2010 11:14:49 Beno?t Minisini wrote: > > Benoit, > > > > i sent already, but maybe attachments has been rejected. > > > > The code below creates 1 circle. After resizing in GB3 i got > > 4 circles. Doing same in GB2 just a resize of the area is performed > > and the primarly created circle persists. > > > > Public Sub btn_test_Click() > > > > 'Drawing Area set to 100, 80 > > ' DrawingArea.cache - True > > '- - > 200, 160 > > > > Draw.Begin(DrawingArea1) > > Draw.Circle(50, 40, 30) > > Draw.End > > > > DrawingArea1.Resize(200, 160) > > > > myPicture = DrawingArea1.Screenshot() > > myPicture.Save(ProjPath &/ "circles.png") > > > > End > > > > I'm talking about a full project (the tar.gz of the project created by "make > source archive" in the IDE menu). I don't find it... > > -- > Beno?t Minisini > > ------------------------------------------------------------------------------ > Lotusphere 2011 > Register now for Lotusphere 2011 and learn how > to connect the dots, take your collaborative environment > to the next level, and enter the era of Social Business. > http://p.sf.net/sfu/lotusphere-d2d > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > Benoit, i send 2 projects to compare behavior of DrawingArea.Resize in GB2 and GB3. Please also have a look on the created picturefile in GB3 version. wally -------------- next part -------------- A non-text attachment was scrubbed... Name: DAResize_gb3-0.0.1.tar.gz Type: application/x-compressed-tar Size: 5604 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: DAResize_gb2-0.0.1.tar.gz Type: application/x-compressed-tar Size: 7748 bytes Desc: not available URL: From zachsmith022 at ...626... Fri Dec 17 19:25:44 2010 From: zachsmith022 at ...626... (Zach Smith) Date: Fri, 17 Dec 2010 12:25:44 -0600 Subject: [Gambas-user] can't copy and paste controls in gambas3 In-Reply-To: <201012171835.26512.gambas@...1...> References: <201012171835.26512.gambas@...1...> Message-ID: 2010/12/17 Beno?t Minisini : >> I can't copy and paste a control on a form. I right click on a button >> to copy (or use CTRL-C). ?Then if I right click on the form, the paste >> option in the menu is disabled. ?I'm running gambas 3 v 3354. ?It >> works fine in gambas 2.22. >> > > Humf. It works perfectly there. Does someone else has that problem? > > -- > Beno?t Minisini > After more testing... it works with v3289 32-bit, but does not with v3354 64-bit. Running Arch. From wally at ...2037... Fri Dec 17 20:15:43 2010 From: wally at ...2037... (wally) Date: Fri, 17 Dec 2010 20:15:43 +0100 Subject: [Gambas-user] painting graph to image continuously In-Reply-To: <201012171114.49219.gambas@...1...> References: <201012161846.46665.wally@...2037...> <201012170858.10002.wally@...2037...> <201012171114.49219.gambas@...1...> Message-ID: <201012172015.43580.wally@...2037...> On Friday 17 December 2010 11:14:49 Beno?t Minisini wrote: > > Benoit, > > > > i sent already, but maybe attachments has been rejected. > > > > The code below creates 1 circle. After resizing in GB3 i got > > 4 circles. Doing same in GB2 just a resize of the area is performed > > and the primarly created circle persists. > > > > Public Sub btn_test_Click() > > > > 'Drawing Area set to 100, 80 > > ' DrawingArea.cache - True > > '- - > 200, 160 > > > > Draw.Begin(DrawingArea1) > > Draw.Circle(50, 40, 30) > > Draw.End > > > > DrawingArea1.Resize(200, 160) > > > > myPicture = DrawingArea1.Screenshot() > > myPicture.Save(ProjPath &/ "circles.png") > > > > End > > > > I'm talking about a full project (the tar.gz of the project created by "make > source archive" in the IDE menu). I don't find it... > > -- > Beno?t Minisini > > ------------------------------------------------------------------------------ > Lotusphere 2011 > Register now for Lotusphere 2011 and learn how > to connect the dots, take your collaborative environment > to the next level, and enter the era of Social Business. > http://p.sf.net/sfu/lotusphere-d2d > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > Benoit, here i attached a ptoject where should be immediately clear what's my problem. wally -------------- next part -------------- A non-text attachment was scrubbed... Name: graph_gb3-0.0.1.tar.gz Type: application/x-compressed-tar Size: 9478 bytes Desc: not available URL: From nando_f at ...951... Fri Dec 17 20:42:45 2010 From: nando_f at ...951... (nando) Date: Fri, 17 Dec 2010 15:42:45 -0400 Subject: [Gambas-user] Gambas2 IDE Snap to Grid Question In-Reply-To: <201012171833.39975.gambas@...1...> References: <20101217162607.M21501@...951...> <201012171833.39975.gambas@...1...> Message-ID: <20101217194128.M854@...951...> Yes, I do mean the SHIFT key. I am using 2.9 When do you expect to begin not supporting 2 anymore? -Fernando ---------- Original Message ----------- From: Beno?t Minisini To: nando_f at ...951..., mailing list for gambas users Sent: Fri, 17 Dec 2010 18:33:39 +0100 Subject: Re: [Gambas-user] Gambas2 IDE Snap to Grid Question > > Does anyone know how to turn off the grid snapping feature > > when place an object in a form in the IDE? > > > > I am placing a label in a specific place. > > I hold the CNTRL down so it is off while moving it. > > You mean the SHIFT key? > > > However, when I click on another object and then > > click on the original one, it snaps to the grid. > > Very frustrating. > > I couldn't find a snap to grid check mark anywhere. > > > > ?? > > -Fernando > > > > Which version of Gambas do you use? With the last one, I can't reproduce the > behaviour you describe: if I click on a control that is not snapped to the > grid, it keeps its position as expected. > > Regards, > > -- > Beno?t Minisini > > ------------------------------------------------------------------------------ > Lotusphere 2011 > Register now for Lotusphere 2011 and learn how > to connect the dots, take your collaborative environment > to the next level, and enter the era of Social Business. > http://p.sf.net/sfu/lotusphere-d2d > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user ------- End of Original Message ------- From math.eber at ...221... Fri Dec 17 22:41:23 2010 From: math.eber at ...221... (math.eber at ...221...) Date: Fri, 17 Dec 2010 22:41:23 +0100 Subject: [Gambas-user] gb3 make error again Message-ID: <1PTi3H-2D43Qu0@...2397...> rev. 3373: make fails, the error seems to start here: libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -DQT3_SUPPORT -DQT_SHARED -DQT3_SUPPORT -I/usr/include/QtCore -I/usr/include/QtGui -I/usr/include/Qt3Support -I/usr/include/QtNetwork -I/usr/include/QtSql -I/usr/include/QtSvg -I../share -I../src/share -DGB_QT_COMPONENT -pipe -Wall -fno-exceptions -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os -fno-omit-frame-pointer -MT gb_qt4_la-cpaint_impl.lo -MD -MP -MF .deps/gb_qt4_la-cpaint_impl.Tpo -c cpaint_impl.cpp -fPIC -DPIC -o .libs/gb_qt4_la-cpaint_impl.o cpaint_impl.cpp: In member function ?virtual int MyPaintDevice::metric(QPaintDevice::PaintDeviceMetric) const?: cpaint_impl.cpp:1119: error: ?class QPaintDevice? has no member named ?colorCount? make[5]: *** [gb_qt4_la-cpaint_impl.lo] Fehler 1 make[5]: Leaving directory `/Platte2/Downloads/gambas3/3373/trunk/gb.qt4/src' make[4]: *** [all-recursive] Fehler 1 make[4]: Leaving directory `/Platte2/Downloads/gambas3/3373/trunk/gb.qt4/src' make[3]: *** [all-recursive] Fehler 1 make[3]: Leaving directory `/Platte2/Downloads/gambas3/3373/trunk/gb.qt4' make[2]: *** [all] Fehler 2 make[2]: Leaving directory `/Platte2/Downloads/gambas3/3373/trunk/gb.qt4' make[1]: *** [all-recursive] Fehler 1 make[1]: Leaving directory `/Platte2/Downloads/gambas3/3373/trunk' make: *** [all] Fehler 2 Regards Matti From gambas.fr at ...626... Fri Dec 17 23:36:37 2010 From: gambas.fr at ...626... (Fabien Bodard) Date: Fri, 17 Dec 2010 23:36:37 +0100 Subject: [Gambas-user] painting graph to image continuously In-Reply-To: <201012172015.43580.wally@...2037...> References: <201012161846.46665.wally@...2037...> <201012170858.10002.wally@...2037...> <201012171114.49219.gambas@...1...> <201012172015.43580.wally@...2037...> Message-ID: 2010/12/17 wally : > On Friday 17 December 2010 11:14:49 Beno?t Minisini wrote: >> > Benoit, >> > >> > i sent already, but maybe attachments has been rejected. >> > >> > The code below creates 1 circle. After resizing in GB3 i got >> > 4 circles. Doing same in GB2 just a resize of the area is performed >> > and the primarly created circle persists. >> > >> > Public Sub btn_test_Click() >> > >> > ?'Drawing Area set to 100, 80 >> > ?' DrawingArea.cache - True >> > ?'- - > 200, 160 >> > >> > ? Draw.Begin(DrawingArea1) >> > ? ? Draw.Circle(50, 40, 30) >> > ? Draw.End >> > >> > ? DrawingArea1.Resize(200, 160) >> > >> > ? myPicture = DrawingArea1.Screenshot() >> > ? myPicture.Save(ProjPath &/ "circles.png") >> > >> > End >> > >> >> I'm talking about a full project (the tar.gz of the project created by "make >> source archive" in the IDE menu). I don't find it... >> >> -- >> Beno?t Minisini >> >> > ------------------------------------------------------------------------------ >> Lotusphere 2011 >> Register now for Lotusphere 2011 and learn how >> to connect the dots, take your collaborative environment >> to the next level, and enter the era of Social Business. >> http://p.sf.net/sfu/lotusphere-d2d >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > Benoit, > > here i attached a ptoject where should be immediately clear what's my problem. > do you imagine the space an image take in memory ? From firman.isb at ...626... Sat Dec 18 01:11:30 2010 From: firman.isb at ...626... (firman) Date: Fri, 17 Dec 2010 16:11:30 -0800 (PST) Subject: [Gambas-user] Did anyone have a script to record webcame picture in video files Message-ID: <30442622.post@...1379...> I Almost done my project about monitoring camera using webcam with gambas 3... the picture or streaming video can displayed on picturebox but i still have a problem to record in video file mode r like avi, mpg or other compressed format.. please help me if anyone can solve my problem. i will showing u a picture of FMain my project... the record button still couldn't worked... i'm using gambas 3 svn... I've wrote the script like this, and worked the files created but still 0 KB or nothing recorded.... this is the script: 'Proses Menyimpan File record Public Sub InitCapture() If Not CatProcess Then bytesrecorded = 0 CatProcess = Exec ["cat", "/dev/video0"] For Read CatProcess = Exec ["cat", "/dev/video1"] For Read CatProcess = Exec ["cat", "/dev/video2"] For Read CatProcess = Exec ["cat", "/dev/video3"] For Read Endif UpdateBytesLabel() End Public Sub Process_Write(data As String) If pic1.Picture = $cam1.Image.Picture Then If pic2.Picture = $cam2.Image.Picture Then If pic3.Picture = $cam3.Image.Picture Then If pic4.Picture = $cam4.Image.Picture Then Return Endif Endif Endif Endif Try pic1.Picture.send(data) Try pic2.Picture.send(data) Try pic3.Picture.send(data) Try pic4.Picture.send(data) Try saveprocess.send(data) bytesrecorded = bytesrecorded + Len(data) End Public Sub btnRecord_Click() If btnRecord.text = "Record" Then bytesrecorded = 0 starttime = Now endtime = starttime initcapture() Tmr1_Timer() btnRecord.text = "Stop" SaveProcess = Exec ["bash", "-c", "cat > " & setFilename1()] For Write SaveProcess = Exec ["bash", "-c", "cat > " & setFilename2()] For Write SaveProcess = Exec ["bash", "-c", "cat > " & setFilename3()] For Write SaveProcess = Exec ["bash", "-c", "cat > " & setFilename4()] For Write Else endtime = Now Try saveprocess.kill btnRecord.text = "Record" setFilename1() setFilename2() setFilename3() setFilename4() Endif End Public Function setFilename1() As String Dim i As Integer i = 0 'Do While Exist(Application.Path &/ "kamera1" & i & ".mpg") Do While Exist(User.Home &/ "kamera1" & i & ".mpg") i = i + 1 Loop 'Return Application.Path &/ "kamera1" & Format(i, "000") & ".mpg" Return User.Home &/ "kamera1" & Format(i, "000") & ".mpg" End Public Function setFilename2() As String Dim i As Integer i = 0 Do While Exist(User.Home &/ "kamera2" & i & ".mpg") i = i + 1 Loop Return User.Home &/ "kamera2" & Format(i, "000") & ".mpg" End Public Function setFilename3() As String Dim i As Integer i = 0 Do While Exist(User.Home &/ "kamera3" & i & ".mpg") i = i + 1 Loop Return User.Home &/ "kamera3" & Format(i, "000") & ".mpg" End Public Function setFilename4() As String Dim i As Integer i = 0 Do While Exist(User.Home &/ "kamera4" & i & ".mpg") i = i + 1 Loop Return User.Home &/ "kamera4" & Format(i, "000") & ".mpg" End Public Sub UpdateBytesLabel() Dim i As Float If bytesrecorded > 1048576 Then i = Int(bytesrecorded / 100000) Else i = Int(bytesrecorded / 100) Endif End Public Sub UpdateTimeLabel() If starttime = "00:00:00" Then Return If endtime <> starttime Then Return TextDate1.text = Time(CDate(CInt(Now) + (Now - starttime) + timezoneadjust)) End anyone can solve my problem please...? -- View this message in context: http://old.nabble.com/Did-anyone-have-a-script-to-record-webcame-picture-in-video-files-tp30442622p30442622.html Sent from the gambas-user mailing list archive at Nabble.com. From mdavies5 at ...169... Sat Dec 18 01:50:10 2010 From: mdavies5 at ...169... (Michael) Date: Sat, 18 Dec 2010 11:50:10 +1100 Subject: [Gambas-user] What has happened to ValueBox In-Reply-To: <201012171824.31375.gambas@...1...> References: <201012161846.46665.wally@...2037...> <201012171341.37352.gambas@...1...> <4D0B6785.4040602@...169...> <201012171824.31375.gambas@...1...> Message-ID: <4D0C0542.7070704@...169...> Thanks. I'll be off air for 2 weeks due to moving house. I look forward to getting latest version in 2011. Regards Michael On 18/12/10 04:24, Beno?t Minisini wrote: >> Benoit, >> On the line "Dim txtTemp as Valuebox = LAST" I get an error "Expecting >> valuebox got textbox" But the last control was a valuebox. >> It works if I change the code to "Dim txtTemp as Textbox" even though it >> is not a textbox firing the event. > OK I see! > > The ValueBox of Gambas 2 inherits TextBox, and so when it raises events, LAST > is always a ValueBox. > > The current ValueBox of Gambas 3 is actually a compound control (it inherits > UserControl), with a edit control inside that can be a TextBox or another > control. Events raised by the edit control are propagated as if the ValueBox > raise it. But then LAST is the read TextBox, not the ValueBox. > > Moreover, the code of that ValueBox is somewhat dirty. So I plan to rewrite it > differently, and makes it inheriting TextBox again, or find a way to propagate > events and keep LAST to be the ValueBox. > > Sorry for the inconvenience. It will disappear when the ValueBox will be > rewritten. > > As a workaround, you can check the type of LAST. And when it is a TextBox, > take its parent to get the ValueBox. > > Regards, > >> Then I cannot read the "name" that I assigned to the valuebox. >> txtTemp.Name just returns "Textbox". >> >> I tried replacing the valuebox with a DateBox but this appears to have a >> bug. I can set the value of the DateBox in code and it displays >> correctly. I can pick a value from the DatePicker and it displays >> properly. But it does not have a .Text property to read so I read the >> .Value property and it always returns "00:00:00" > Maybe another bug then. I will investigate. > > Regards, > From fabianfloresvadell at ...626... Sat Dec 18 02:56:54 2010 From: fabianfloresvadell at ...626... (=?ISO-8859-1?Q?Fabi=E1n_Flores_Vadell?=) Date: Fri, 17 Dec 2010 22:56:54 -0300 Subject: [Gambas-user] Gambas 3 IDE features request Message-ID: Hi. There are two features I beleave could be fine in Gambas 3 IDE: 1. Add an option named "create getters and setters" (or similar) to the context menu in the code editor, so the IDE can take care of this boring work. A simple comment can define attributes than will have accessor and modifiers, like that: 'cgs is for create getter and setter PRIVATE Name AS String 'cgs 2. Make customizable the "code pretty" option menu, by adding the hability to manage "styles", because coding style is about flavours. The Gambas style should be the default. Fabien, Benoit, what you think about? -- Fabi?n Flores Vadell www.comoprogramarcongambas.blogspot.com www.speedbooksargentina.blogspot.com From wally at ...2037... Sat Dec 18 09:08:17 2010 From: wally at ...2037... (wally) Date: Sat, 18 Dec 2010 09:08:17 +0100 Subject: [Gambas-user] painting graph to image continuously In-Reply-To: References: <201012161846.46665.wally@...2037...> <201012172015.43580.wally@...2037...> Message-ID: <201012180908.18097.wally@...2037...> On Friday 17 December 2010 23:36:37 Fabien Bodard wrote: > 2010/12/17 wally : > > On Friday 17 December 2010 11:14:49 Beno?t Minisini wrote: > >> > Benoit, > >> > > >> > i sent already, but maybe attachments has been rejected. > >> > > >> > The code below creates 1 circle. After resizing in GB3 i got > >> > 4 circles. Doing same in GB2 just a resize of the area is performed > >> > and the primarly created circle persists. > >> > > >> > Public Sub btn_test_Click() > >> > > >> > 'Drawing Area set to 100, 80 > >> > ' DrawingArea.cache - True > >> > '- - > 200, 160 > >> > > >> > Draw.Begin(DrawingArea1) > >> > Draw.Circle(50, 40, 30) > >> > Draw.End > >> > > >> > DrawingArea1.Resize(200, 160) > >> > > >> > myPicture = DrawingArea1.Screenshot() > >> > myPicture.Save(ProjPath &/ "circles.png") > >> > > >> > End > >> > > >> > >> I'm talking about a full project (the tar.gz of the project created by "make > >> source archive" in the IDE menu). I don't find it... > >> > >> -- > >> Beno?t Minisini > >> > >> > > ------------------------------------------------------------------------------ > >> Lotusphere 2011 > >> Register now for Lotusphere 2011 and learn how > >> to connect the dots, take your collaborative environment > >> to the next level, and enter the era of Social Business. > >> http://p.sf.net/sfu/lotusphere-d2d > >> _______________________________________________ > >> Gambas-user mailing list > >> Gambas-user at lists.sourceforge.net > >> https://lists.sourceforge.net/lists/listinfo/gambas-user > >> > > > > Benoit, > > > > here i attached a ptoject where should be immediately clear what's my problem. > > > > do you imagine the space an image take in memory ? > > ------------------------------------------------------------------------------ > Lotusphere 2011 > Register now for Lotusphere 2011 and learn how > to connect the dots, take your collaborative environment > to the next level, and enter the era of Social Business. > http://p.sf.net/sfu/lotusphere-d2d > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > Fabian, yes, you are right, this may be a problem. I will try to collect the data as short as possible in a data-array and display always only the graph of a segment of this array. Your DemoGraph was helpful to see how the _draw event is used and i'll try this way too. But for now i would like to know how the DrawingArea.Resize works internally and why there are differences in GB2 and GB3. wally From gambas.fr at ...626... Sat Dec 18 12:11:25 2010 From: gambas.fr at ...626... (Fabien Bodard) Date: Sat, 18 Dec 2010 12:11:25 +0100 Subject: [Gambas-user] painting graph to image continuously In-Reply-To: <201012180908.18097.wally@...2037...> References: <201012161846.46665.wally@...2037...> <201012172015.43580.wally@...2037...> <201012180908.18097.wally@...2037...> Message-ID: > Fabian, > > yes, you are right, this may be a problem. > I will try to collect the data as short as possible in a data-array > and display always only the graph of a segment of this array. > Your DemoGraph was helpful to see how the _draw event is > used and i'll try this way too. > But for now i would like to know how the DrawingArea.Resize > works internally and why there are differences in GB2 and GB3. > > wally > Resize is a procedure inherited from control ... it just resize the controle ... but can have conflict with autoarrangement. -- Fabien Bodard From mdavies5 at ...169... Sat Dec 18 12:58:54 2010 From: mdavies5 at ...169... (Michael) Date: Sat, 18 Dec 2010 22:58:54 +1100 Subject: [Gambas-user] What has happened to ValueBox In-Reply-To: <201012171824.31375.gambas@...1...> References: <201012161846.46665.wally@...2037...> <201012171341.37352.gambas@...1...> <4D0B6785.4040602@...169...> <201012171824.31375.gambas@...1...> Message-ID: <4D0CA1FE.9010901@...169...> Benoit, Here is more information to help you rewrite the valuebox. I had a ValueBox set to date and it was in a VBox. If I set the "Expand" property to TRUE then I could never see the text. If I set Expand to False then it was ok. I experimented with resizing the form and found that the text was disappearing off the bottom. It appears not to like a ValueBox.Height > 24. Also if I set "Expand" to False the DatePicker did not appear on the ValueBox even though the ValueBox.Width was quite large. If I enlarged the form it appeared. Then I closed the form to it's original size and the DatePicker remained visible. If it was possible it would be nice to have a property to hide the DatePicker. I personally find these a nuisance in a production environment. Users can type a date much quicker. The ValueBox in Gambas 2 was perfect in this regard. Regarding your suggestion to use the LAST.Parent to get the object name. I am attaching a screenshot of the properties of the LAST Valuebox. You will see it shows name as "TextBox" and Parent as "Panel". I shall wait for the revised version. ValueBox.png Regards Michael On 18/12/10 04:24, Beno?t Minisini wrote: >> Benoit, >> On the line "Dim txtTemp as Valuebox = LAST" I get an error "Expecting >> valuebox got textbox" But the last control was a valuebox. >> It works if I change the code to "Dim txtTemp as Textbox" even though it >> is not a textbox firing the event. > OK I see! > > The ValueBox of Gambas 2 inherits TextBox, and so when it raises events, LAST > is always a ValueBox. > > The current ValueBox of Gambas 3 is actually a compound control (it inherits > UserControl), with a edit control inside that can be a TextBox or another > control. Events raised by the edit control are propagated as if the ValueBox > raise it. But then LAST is the read TextBox, not the ValueBox. > > Moreover, the code of that ValueBox is somewhat dirty. So I plan to rewrite it > differently, and makes it inheriting TextBox again, or find a way to propagate > events and keep LAST to be the ValueBox. > > Sorry for the inconvenience. It will disappear when the ValueBox will be > rewritten. > > As a workaround, you can check the type of LAST. And when it is a TextBox, > take its parent to get the ValueBox. > > Regards, > >> Then I cannot read the "name" that I assigned to the valuebox. >> txtTemp.Name just returns "Textbox". >> >> I tried replacing the valuebox with a DateBox but this appears to have a >> bug. I can set the value of the DateBox in code and it displays >> correctly. I can pick a value from the DatePicker and it displays >> properly. But it does not have a .Text property to read so I read the >> .Value property and it always returns "00:00:00" > Maybe another bug then. I will investigate. > > Regards, > From demosthenesk at ...626... Sat Dec 18 13:57:25 2010 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Sat, 18 Dec 2010 14:57:25 +0200 Subject: [Gambas-user] What is the difference about events Show, Open In-Reply-To: References: <1292576010.11845.1.camel@...2493...> Message-ID: <1292677045.24113.0.camel@...2493...> Thanks for the reply! On Fri, 2010-12-17 at 10:34 +0100, Ricardo D?az Mart?n wrote: > Open is fired only the first time you show a form. In the other hand, Show > event is fired for example if you use 2 virtual desktops and change from one > to other and change again to the desktop you got the form. > > Regards, > > 2010/12/17 Demosthenes Koptsis > > > Good morning, > > > > what is the difference about events Form.Show and Form.Open ? > > > > > > -- > > Regards, > > Demosthenes Koptsis. > > > > > > > > ------------------------------------------------------------------------------ > > Lotusphere 2011 > > Register now for Lotusphere 2011 and learn how > > to connect the dots, take your collaborative environment > > to the next level, and enter the era of Social Business. > > http://p.sf.net/sfu/lotusphere-d2d > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > ------------------------------------------------------------------------------ > Lotusphere 2011 > Register now for Lotusphere 2011 and learn how > to connect the dots, take your collaborative environment > to the next level, and enter the era of Social Business. > http://p.sf.net/sfu/lotusphere-d2d > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -- Regards, Demosthenes Koptsis. From gambas.fr at ...626... Sat Dec 18 14:44:22 2010 From: gambas.fr at ...626... (Fabien Bodard) Date: Sat, 18 Dec 2010 14:44:22 +0100 Subject: [Gambas-user] painting graph to image continuously In-Reply-To: References: <201012161846.46665.wally@...2037...> <201012172015.43580.wally@...2037...> <201012180908.18097.wally@...2037...> Message-ID: ok wally this is the full demo of what you want to do, and what you need to do for that. I use like often in gambas a data/view model ... the drawingarea is just a viewer for the data and the _draw event contain the rules do draw the datas. The datas are stored in an array $aDatas. The Timer emulate the datas entry 2010/12/18 Fabien Bodard : >> Fabian, >> >> yes, you are right, this may be a problem. >> I will try to collect the data as short as possible in a data-array >> and display always only the graph of a segment of this array. >> Your DemoGraph was helpful to see how the _draw event is >> used and i'll try this way too. >> But for now i would like to know how the DrawingArea.Resize >> works internally and why there are differences in GB2 and GB3. >> >> wally >> > > Resize is a procedure inherited from control ... it just resize the > controle ... but can have conflict with autoarrangement. > > > > -- > Fabien Bodard > -- Fabien Bodard -------------- next part -------------- A non-text attachment was scrubbed... Name: graph_gb3-0.0.2.tar.gz Type: application/x-gzip Size: 6125 bytes Desc: not available URL: From gambas at ...1... Sat Dec 18 15:20:47 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sat, 18 Dec 2010 15:20:47 +0100 Subject: [Gambas-user] gb3 make error again In-Reply-To: <1PTi3H-2D43Qu0@...2397...> References: <1PTi3H-2D43Qu0@...2397...> Message-ID: <201012181520.47645.gambas@...1...> > rev. 3373: make fails, the error seems to start here: > libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -DQT3_SUPPORT > -DQT_SHARED -DQT3_SUPPORT -I/usr/include/QtCore > -I/usr/include/QtGui -I/usr/include/Qt3Support -I/usr/include/QtNetwork > -I/usr/include/QtSql -I/usr/include/QtSvg -I../share -I../src/share > -DGB_QT_COMPONENT -pipe -Wall -fno-exceptions -Wno-unused-value > -fsigned-char -fvisibility=hidden -g -Os -fno-omit-frame-pointer -MT > gb_qt4_la-cpaint_impl.lo -MD -MP -MF .deps/gb_qt4_la-cpaint_impl.Tpo > -c cpaint_impl.cpp -fPIC -DPIC -o .libs/gb_qt4_la-cpaint_impl.o > cpaint_impl.cpp: In member function ?virtual int > MyPaintDevice::metric(QPaintDevice::PaintDeviceMetric) const?: > cpaint_impl.cpp:1119: error: ?class QPaintDevice? has no member named > ?colorCount? > make[5]: *** [gb_qt4_la-cpaint_impl.lo] Fehler 1 > make[5]: Leaving directory > `/Platte2/Downloads/gambas3/3373/trunk/gb.qt4/src' > make[4]: *** [all-recursive] Fehler 1 > make[4]: Leaving directory > `/Platte2/Downloads/gambas3/3373/trunk/gb.qt4/src' > make[3]: *** [all-recursive] Fehler 1 > make[3]: Leaving directory > `/Platte2/Downloads/gambas3/3373/trunk/gb.qt4' make[2]: *** [all] Fehler 2 > make[2]: Leaving directory > `/Platte2/Downloads/gambas3/3373/trunk/gb.qt4' make[1]: *** > [all-recursive] Fehler 1 > make[1]: Leaving directory `/Platte2/Downloads/gambas3/3373/trunk' > make: *** [all] Fehler 2 > Regards > Matti What is your version of qt ? -- Beno?t Minisini From gambas at ...1... Sat Dec 18 15:21:25 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sat, 18 Dec 2010 15:21:25 +0100 Subject: [Gambas-user] Gambas2 IDE Snap to Grid Question In-Reply-To: <20101217194128.M854@...951...> References: <20101217162607.M21501@...951...> <201012171833.39975.gambas@...1...> <20101217194128.M854@...951...> Message-ID: <201012181521.25137.gambas@...1...> > Yes, I do mean the SHIFT key. > I am using 2.9 > When do you expect to begin not supporting 2 anymore? > -Fernando > Why do you ask that if you don't use the latest version? -- Beno?t Minisini From gambas at ...1... Sat Dec 18 15:27:00 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sat, 18 Dec 2010 15:27:00 +0100 Subject: [Gambas-user] gb3 make error again In-Reply-To: <201012181520.47645.gambas@...1...> References: <1PTi3H-2D43Qu0@...2397...> <201012181520.47645.gambas@...1...> Message-ID: <201012181527.00321.gambas@...1...> > > rev. 3373: make fails, the error seems to start here: > > libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -DQT3_SUPPORT > > > > -DQT_SHARED -DQT3_SUPPORT -I/usr/include/QtCore > > -I/usr/include/QtGui -I/usr/include/Qt3Support -I/usr/include/QtNetwork > > -I/usr/include/QtSql -I/usr/include/QtSvg -I../share -I../src/share > > -DGB_QT_COMPONENT -pipe -Wall -fno-exceptions -Wno-unused-value > > -fsigned-char -fvisibility=hidden -g -Os -fno-omit-frame-pointer -MT > > gb_qt4_la-cpaint_impl.lo -MD -MP -MF .deps/gb_qt4_la-cpaint_impl.Tpo > > -c cpaint_impl.cpp -fPIC -DPIC -o .libs/gb_qt4_la-cpaint_impl.o > > > > cpaint_impl.cpp: In member function ?virtual int > > MyPaintDevice::metric(QPaintDevice::PaintDeviceMetric) const?: > > cpaint_impl.cpp:1119: error: ?class QPaintDevice? has no member named > > ?colorCount? > > make[5]: *** [gb_qt4_la-cpaint_impl.lo] Fehler 1 > > make[5]: Leaving directory > > `/Platte2/Downloads/gambas3/3373/trunk/gb.qt4/src' > > make[4]: *** [all-recursive] Fehler 1 > > make[4]: Leaving directory > > `/Platte2/Downloads/gambas3/3373/trunk/gb.qt4/src' > > make[3]: *** [all-recursive] Fehler 1 > > make[3]: Leaving directory > > > > `/Platte2/Downloads/gambas3/3373/trunk/gb.qt4' make[2]: *** [all] Fehler > > 2 > > > > make[2]: Leaving directory > > > > `/Platte2/Downloads/gambas3/3373/trunk/gb.qt4' make[1]: *** > > [all-recursive] Fehler 1 > > > > make[1]: Leaving directory `/Platte2/Downloads/gambas3/3373/trunk' > > make: *** [all] Fehler 2 > > Regards > > Matti > > What is your version of qt ? Is it better with the last revision? -- Beno?t Minisini From wally at ...2037... Sat Dec 18 15:35:13 2010 From: wally at ...2037... (wally) Date: Sat, 18 Dec 2010 15:35:13 +0100 Subject: [Gambas-user] painting graph to image continuously In-Reply-To: References: <201012161846.46665.wally@...2037...> Message-ID: <201012181535.14024.wally@...2037...> On Saturday 18 December 2010 14:44:22 Fabien Bodard wrote: > ok wally this is the full demo of what you want to do, and what you > need to do for that. I use like often in gambas > a data/view model ... the drawingarea is just a viewer for the data > and the _draw event contain the rules do draw the datas. > The datas are stored in an array $aDatas. > > The Timer emulate the datas entry > > 2010/12/18 Fabien Bodard : > >> Fabian, > >> > >> yes, you are right, this may be a problem. > >> I will try to collect the data as short as possible in a data-array > >> and display always only the graph of a segment of this array. > >> Your DemoGraph was helpful to see how the _draw event is > >> used and i'll try this way too. > >> But for now i would like to know how the DrawingArea.Resize > >> works internally and why there are differences in GB2 and GB3. > >> > >> wally > >> > > > > Resize is a procedure inherited from control ... it just resize the > > controle ... but can have conflict with autoarrangement. > > > > > > > > -- > > Fabien Bodard > > > > > > -- > Fabien Bodard > Fabian, thanks a lot for your hits and deno files ! :) Please have a look on the attached design and let me know your opinion about this. Draw is little more ugly than paint or cairo but i can live with that (for now) wally -------------- next part -------------- A non-text attachment was scrubbed... Name: ArraySegmentDisplay_g3b_005-0.0.1.tar.gz Type: application/x-compressed-tar Size: 29685 bytes Desc: not available URL: From fabianfloresvadell at ...626... Sat Dec 18 15:41:42 2010 From: fabianfloresvadell at ...626... (=?ISO-8859-1?Q?Fabi=E1n_Flores_Vadell?=) Date: Sat, 18 Dec 2010 11:41:42 -0300 Subject: [Gambas-user] Gambas 3 IDE features request In-Reply-To: References: Message-ID: 2010/12/17 Fabi?n Flores Vadell : > Hi. There are two features I beleave could be fine in Gambas 3 IDE: > > 1. Add an option named "create getters and setters" (or similar) to > the context menu in the code editor, so the IDE can take care of this > boring work. A simple comment can define attributes than will have > accessor and modifiers, like that: > > 'cgs is for create getter and setter > PRIVATE Name AS String 'cgs I think that a method like this could do the job (I eliminated the "c" for "create"): Public Function makeGettersANDSetters(code As String) As String Dim acode As String[] Dim linecode, attribName, setter, getter, gettersAndsetters As String Dim set, get As Boolean Dim posPrivate, posComment, posAttribName As Integer acode = Split(code, "\n", "", True) For Each linecode In acode linecode = UCase(linecode) posPrivate = InStr(linecode, "PRIVATE") If posPrivate <> 0 Then posComment = InStr(linecode, "'") If posComment <> 0 Then set = InStr(linecode, "S", posComment + 1) > 0 get = InStr(linecode, "G", posComment + 1) > 0 posAttribName = posPrivate + Len("PRIVATE") + 1 If get Or If set Then attribName = Mid(linecode, posAttribName, InStr(linecode, " ", posPrivate + Len("PRIVATE") + 1) - posAttribName) attribName = UCase(Left(attribName)) & LCase(Right(attribName, Len(attribName) - 1)) Endif If set Then setter = "\n\n" & "PUBLIC SUB set" & attribName & "(Value AS type)" & "\n\n\n" & "END" gettersAndsetters &= setter setter = "" set = False Endif If get Then getter = "\n\n" & "PUBLIC FUNCTION get" & attribName & "(Value AS type) AS Type" & "\n\n\n" & "END" gettersAndsetters &= getter getter = "" get = False Endif attribName = "" Endif Endif Next Return gettersAndsetters End -- Fabi?n Flores Vadell www.comoprogramarcongambas.blogspot.com www.speedbooksargentina.blogspot.com From gambas at ...1... Sat Dec 18 15:54:54 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sat, 18 Dec 2010 15:54:54 +0100 Subject: [Gambas-user] Preprocessor in the Gambas 3 compiler Message-ID: <201012181554.54186.gambas@...1...> Hi, I have just implemented a rudimentary, but useful, preprocessor in the Gambas 3 compiler. Preprocessor commands are lines that begin with a '#' in the source code. The indentation spaces are ignored. You can put comments at the end of a preprocessor line. the preprocessor only understands conditional compilation at the moment. A condition compilation test starts with a "#If ..." line, and ends with a "#Endif" line. You can use a "#Else" or "#Else If" line between. The "#If" test is a *preprocessor expression* that compare a *preprocessor constant* with a string value. The preprocessor understands three constants: - SYSTEM, that returns the current OS ("Linux", "FreeBSD", "MacOSX"...) - ARCHITECTURE (or ARCH), that returns the current architecture ("x86", "x86_64", "ARM", "PPC", "unknown"). - VERSION (or GAMBAS), that returns the version of the current interpreter ("3.0"). SYSTEM and ARCHITECTURE must be followed by a "=" or a "<>" operator. VERSION can be followed by any comparison operator ("=", "<>", ">", "<=", "<", ">="). The version string must have the form "X.Y", and the comparison works as expected. The preprocessor test understands the "Not", "And" and "Or" keywords, and can be imbricated with parenthesis. The "#Else If" has the same syntax as "#If". "#If ... #Else ... #Endif" tests can be imbricated up to 16 levels. Here is a stupid example: Public Sub Main() #If SYSTEM = "BSD" 'Or VERSION = "3" Print "BSD" #Else If VERSION >= "2.0" #If ARCHITECTURE = "x86" Print "32 bits" #Else If ARCH = "x86_64" Print "64 bits!" #Else Print "?" #Endif #Endif End Note that the compiler does not see the lines excluded by conditional compilation (logical, for a preprocessor!). So you can imbricate things like that: #If ARCH = "x86_64" Public Sub GetValue() As Long #Else Public Sub GetValue() As Integer #Endif ... End Of course you can do more weird things that will mix up the compiler. :-) That feature was needed for the release candidate. I plan to release successive versions of Gambas more often, so backward compatibility may be sometimes broken, and so conditional compilation based on interpreter version is a must. And conditional compilation on architecture or OS will be useful too, especially when dealing with EXTERN function declarations. Regards, -- Beno?t Minisini From gambas at ...1... Sat Dec 18 15:55:36 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sat, 18 Dec 2010 15:55:36 +0100 Subject: [Gambas-user] Gambas 3 IDE features request In-Reply-To: References: Message-ID: <201012181555.36427.gambas@...1...> > 2010/12/17 Fabi?n Flores Vadell : > > Hi. There are two features I beleave could be fine in Gambas 3 IDE: > > > > 1. Add an option named "create getters and setters" (or similar) to > > the context menu in the code editor, so the IDE can take care of this > > boring work. A simple comment can define attributes than will have > > accessor and modifiers, like that: > > > > 'cgs is for create getter and setter > > PRIVATE Name AS String 'cgs > > I think that a method like this could do the job (I eliminated the "c" > for "create"): > > Public Function makeGettersANDSetters(code As String) As String > Dim acode As String[] > Dim linecode, attribName, setter, getter, gettersAndsetters As String > Dim set, get As Boolean > Dim posPrivate, posComment, posAttribName As Integer > > acode = Split(code, "\n", "", True) > > For Each linecode In acode > > linecode = UCase(linecode) > posPrivate = InStr(linecode, "PRIVATE") > > If posPrivate <> 0 Then > posComment = InStr(linecode, "'") > > If posComment <> 0 Then > set = InStr(linecode, "S", posComment + 1) > 0 > get = InStr(linecode, "G", posComment + 1) > 0 > > posAttribName = posPrivate + Len("PRIVATE") + 1 > > If get Or If set Then > attribName = Mid(linecode, posAttribName, InStr(linecode, " > ", posPrivate + Len("PRIVATE") + 1) - posAttribName) > attribName = UCase(Left(attribName)) & > LCase(Right(attribName, Len(attribName) - 1)) > Endif > > If set Then > setter = "\n\n" & "PUBLIC SUB set" & attribName & "(Value AS > type)" & "\n\n\n" & "END" > gettersAndsetters &= setter > setter = "" > set = False > Endif > > If get Then > getter = "\n\n" & "PUBLIC FUNCTION get" & attribName & > "(Value AS type) AS Type" & "\n\n\n" & "END" > gettersAndsetters &= getter > getter = "" > get = False > Endif > attribName = "" > > Endif > > Endif > > Next > > Return gettersAndsetters > > End I think that already exists: it's named "Property". :-) -- Beno?t Minisini From soleilpqd at ...626... Sat Dec 18 15:57:01 2010 From: soleilpqd at ...626... (=?UTF-8?B?UGjhuqFtIFF1YW5nIETGsMahbmc=?=) Date: Sat, 18 Dec 2010 21:57:01 +0700 Subject: [Gambas-user] How to get grid view cell / Icon view item by the position of mouse click Message-ID: Hi, 1. From Wiki: *GridView.Find* Finds a cell from mouse coordinates relative to the control. This function returns TRUE if no cell is found. Otherwise, the found cell is accessible from the Itemproperty. But I don't find grid view's Item property. 2. I followed the "Drag and Drop" example to make an Icon view with that I can drag & drop to reorder items. It works fine with unscrolled-yet Icon view. But after scroll the icon view toward bottom, I got wrong item. I can not find the solution, so I tried with Grid view (with ScrollX & ScrollY property) but I have same problem. Here is the demo project. For simpler, I test with mouse down event: open, click => get right cell; then scroll, click => wrong cell. -------------- next part -------------- A non-text attachment was scrubbed... Name: demoGrid-0.0.1.tar.gz Type: application/x-gzip Size: 8335 bytes Desc: not available URL: From gambas at ...1... Sat Dec 18 15:57:20 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sat, 18 Dec 2010 15:57:20 +0100 Subject: [Gambas-user] Preprocessor in the Gambas 3 compiler In-Reply-To: <201012181554.54186.gambas@...1...> References: <201012181554.54186.gambas@...1...> Message-ID: <201012181557.20490.gambas@...1...> > The "#If" test is a *preprocessor expression* that compare a *preprocessor ---> "compares". -- Beno?t Minisini From jussi.lahtinen at ...626... Sat Dec 18 16:20:24 2010 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Sat, 18 Dec 2010 17:20:24 +0200 Subject: [Gambas-user] Preprocessor in the Gambas 3 compiler In-Reply-To: <201012181557.20490.gambas@...1...> References: <201012181554.54186.gambas@...1...> <201012181557.20490.gambas@...1...> Message-ID: Nice! But now I have to consider doing only one version that handles both 32 and 64 bit architecture... Jussi 2010/12/18 Beno?t Minisini > > The "#If" test is a *preprocessor expression* that compare a > *preprocessor > > ---> "compares". > > -- > Beno?t Minisini > > > ------------------------------------------------------------------------------ > Lotusphere 2011 > Register now for Lotusphere 2011 and learn how > to connect the dots, take your collaborative environment > to the next level, and enter the era of Social Business. > http://p.sf.net/sfu/lotusphere-d2d > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From jussi.lahtinen at ...626... Sat Dec 18 16:26:09 2010 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Sat, 18 Dec 2010 17:26:09 +0200 Subject: [Gambas-user] Did anyone have a script to record webcame picture in video files In-Reply-To: <30442622.post@...1379...> References: <30442622.post@...1379...> Message-ID: It is easier to help if you send your whole project. I can't see any handling for CatProcess. Jussi On Sat, Dec 18, 2010 at 02:11, firman wrote: > > > I Almost done my project about monitoring camera using webcam with gambas > 3... the picture or streaming video can displayed on picturebox but i still > have a problem to record in video file mode r like avi, mpg or other > compressed format.. please help me if anyone can solve my problem. i will > showing u a picture of FMain my project... the record button still couldn't > worked... > > i'm using gambas 3 svn... I've wrote the script like this, and worked the > files created but still 0 KB or nothing recorded.... > this is the script: > > 'Proses Menyimpan File record > > Public Sub InitCapture() > > If Not CatProcess Then > bytesrecorded = 0 > CatProcess = Exec ["cat", "/dev/video0"] For Read > CatProcess = Exec ["cat", "/dev/video1"] For Read > CatProcess = Exec ["cat", "/dev/video2"] For Read > CatProcess = Exec ["cat", "/dev/video3"] For Read > > Endif > > UpdateBytesLabel() > > End > > Public Sub Process_Write(data As String) > > If pic1.Picture = $cam1.Image.Picture Then > If pic2.Picture = $cam2.Image.Picture Then > If pic3.Picture = $cam3.Image.Picture Then > If pic4.Picture = $cam4.Image.Picture Then > Return > Endif > Endif > Endif > Endif > > Try pic1.Picture.send(data) > Try pic2.Picture.send(data) > Try pic3.Picture.send(data) > Try pic4.Picture.send(data) > Try saveprocess.send(data) > > bytesrecorded = bytesrecorded + Len(data) > > End > > > Public Sub btnRecord_Click() > > If btnRecord.text = "Record" Then > bytesrecorded = 0 > starttime = Now > endtime = starttime > initcapture() > Tmr1_Timer() > btnRecord.text = "Stop" > SaveProcess = Exec ["bash", "-c", "cat > " & setFilename1()] For Write > SaveProcess = Exec ["bash", "-c", "cat > " & setFilename2()] For Write > SaveProcess = Exec ["bash", "-c", "cat > " & setFilename3()] For Write > SaveProcess = Exec ["bash", "-c", "cat > " & setFilename4()] For Write > Else > endtime = Now > > Try saveprocess.kill > btnRecord.text = "Record" > setFilename1() > setFilename2() > setFilename3() > setFilename4() > Endif > End > > Public Function setFilename1() As String > > Dim i As Integer > > i = 0 > 'Do While Exist(Application.Path &/ "kamera1" & i & ".mpg") > Do While Exist(User.Home &/ "kamera1" & i & ".mpg") > i = i + 1 > Loop > 'Return Application.Path &/ "kamera1" & Format(i, "000") & ".mpg" > Return User.Home &/ "kamera1" & Format(i, "000") & ".mpg" > > End > > > Public Function setFilename2() As String > > Dim i As Integer > i = 0 > Do While Exist(User.Home &/ "kamera2" & i & ".mpg") > i = i + 1 > Loop > Return User.Home &/ "kamera2" & Format(i, "000") & ".mpg" > > End > > > Public Function setFilename3() As String > > Dim i As Integer > i = 0 > Do While Exist(User.Home &/ "kamera3" & i & ".mpg") > i = i + 1 > Loop > Return User.Home &/ "kamera3" & Format(i, "000") & ".mpg" > > End > > > Public Function setFilename4() As String > > Dim i As Integer > i = 0 > Do While Exist(User.Home &/ "kamera4" & i & ".mpg") > i = i + 1 > Loop > Return User.Home &/ "kamera4" & Format(i, "000") & ".mpg" > > End > > Public Sub UpdateBytesLabel() > Dim i As Float > If bytesrecorded > 1048576 Then > i = Int(bytesrecorded / 100000) > Else > i = Int(bytesrecorded / 100) > Endif > > End > > Public Sub UpdateTimeLabel() > > If starttime = "00:00:00" Then Return > If endtime <> starttime Then Return > > TextDate1.text = Time(CDate(CInt(Now) + (Now - starttime) + > timezoneadjust)) > > End > > anyone can solve my problem please...? > > -- > View this message in context: > http://old.nabble.com/Did-anyone-have-a-script-to-record-webcame-picture-in-video-files-tp30442622p30442622.html > Sent from the gambas-user mailing list archive at Nabble.com. > > > > ------------------------------------------------------------------------------ > Lotusphere 2011 > Register now for Lotusphere 2011 and learn how > to connect the dots, take your collaborative environment > to the next level, and enter the era of Social Business. > http://p.sf.net/sfu/lotusphere-d2d > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas.fr at ...626... Sat Dec 18 16:47:38 2010 From: gambas.fr at ...626... (Fabien Bodard) Date: Sat, 18 Dec 2010 16:47:38 +0100 Subject: [Gambas-user] How to get grid view cell / Icon view item by the position of mouse click In-Reply-To: References: Message-ID: yes it's true ... not item property neither in gb3 2010/12/18 Ph?m Quang D??ng : > Hi, > > 1. From Wiki: > *GridView.Find* > > Finds a cell from mouse coordinates relative to the control. > > This function returns TRUE if no cell > is found. Otherwise, the found cell is accessible from the > Itemproperty. > But I don't find grid view's Item property. > > 2. I followed the "Drag and Drop" example to make an Icon view with that I > can drag & drop to reorder ?items. It works fine with unscrolled-yet Icon > view. But after scroll the icon view toward bottom, I got wrong item. > I can not find the solution, so I tried with Grid view (with ScrollX & > ScrollY property) but I have same problem. > Here is the demo project. For simpler, I test with mouse down event: open, > click => get right cell; then scroll, click => wrong cell. > > ------------------------------------------------------------------------------ > Lotusphere 2011 > Register now for Lotusphere 2011 and learn how > to connect the dots, take your collaborative environment > to the next level, and enter the era of Social Business. > http://p.sf.net/sfu/lotusphere-d2d > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > -- Fabien Bodard From gambas at ...1... Sat Dec 18 17:03:09 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sat, 18 Dec 2010 17:03:09 +0100 Subject: [Gambas-user] How to get grid view cell / Icon view item by the position of mouse click In-Reply-To: References: Message-ID: <201012181703.09143.gambas@...1...> > yes it's true ... not item property neither in gb3 > Yes. I don't understand what I did...I don't drink nevertheless! Hopefully, you can use the RowAt() and ColumnAt() method successively to do the same job. Regards, -- Beno?t Minisini From fabianfloresvadell at ...626... Sat Dec 18 17:05:12 2010 From: fabianfloresvadell at ...626... (=?ISO-8859-1?Q?Fabi=E1n_Flores_Vadell?=) Date: Sat, 18 Dec 2010 13:05:12 -0300 Subject: [Gambas-user] Gambas 3 IDE features request In-Reply-To: <201012181555.36427.gambas@...1...> References: <201012181555.36427.gambas@...1...> Message-ID: 2010/12/18 Beno?t Minisini : > > I think that already exists: it's named "Property". :-) > > -- > Beno?t Minisini Hi Beno?t. I know that property exists, but: 1) In some situations (rare I admit, but real) could be necessary write a setter and unnecessary write a getter, but properties are both: write and read or only read, there's no option to automatically write only the code for property write 2) Properties, forces to have more code 3) Properties, forces to use the dot notation or to write getters and setter by hand 4) Write and Read methods are generated while code is being write. I would appreciate can write sketch code for a class without Write/Read or getters/setters methods, and when I finished the class design can generate that code automatically by one step. 5) I'm providing the code, so just a little bit effort is required from you :-) ' I had forgotten to set the data types, assignment inside setter, and return the value inside getter. This code is more complete. Public Function makeGettersANDSetters(code As String) As String Dim acode As String[] Dim linecode, attribName, setter, getter, gettersAndsetters, type, firstChar, tailName As String Dim set, get, $inAttribName? As Boolean Dim posPrivate, posComment, posAttribName, posType As Integer acode = Split(code, "\n", "", True) For Each linecode In acode linecode = UCase(linecode) posPrivate = InStr(linecode, "PRIVATE") If posPrivate <> 0 Then posComment = InStr(linecode, "'") If posComment <> 0 Then set = InStr(linecode, "S", posComment + 1) > 0 get = InStr(linecode, "G", posComment + 1) > 0 posAttribName = posPrivate + Len("PRIVATE") + 1 If get Or If set Then attribName = Mid(linecode, posAttribName, InStr(linecode, " ", posPrivate + Len("PRIVATE") + 1) - posAttribName) firstChar = Left(attribName) $inAttribName? = (firstChar = "$") firstChar = If($inAttribName?, Mid(attribName, 2, 1), firstChar) tailName = Right(attribName, Len(attribName) - If($inAttribName?, 2, 1)) tailName = LCase(tailName) attribName = UCase(firstChar) & tailName posType = InStr(linecode, "AS", posAttribName + Len(AttribName) + 1) + 2 type = Mid(linecode, posType, InStr(linecode, " ", posType + 1) - posType) Endif If set Then setter = "\n\n" & "PUBLIC SUB set" & attribName & "(Value AS " & type & ")" & "\n\n " & If($inAttribName?, "$", "") & attribName & " = Value" & "\n\n" & "END" gettersAndsetters &= setter setter = "" set = False Endif If get Then getter = "\n\n" & "PUBLIC FUNCTION get" & attribName & "(Value AS " & type & ") AS " & Type & "\n\n" & " RETURN " & attribName & "\n\n" & "END" gettersAndsetters &= getter getter = "" get = False Endif attribName = "" Endif Endif Next Return gettersAndsetters End -- Fabi?n Flores Vadell www.comoprogramarcongambas.blogspot.com www.speedbooksargentina.blogspot.com From gambas at ...1... Sat Dec 18 17:33:18 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sat, 18 Dec 2010 17:33:18 +0100 Subject: [Gambas-user] Gambas 3 IDE features request In-Reply-To: References: <201012181555.36427.gambas@...1...> Message-ID: <201012181733.18384.gambas@...1...> > 2010/12/18 Beno?t Minisini : > > I think that already exists: it's named "Property". :-) > > > > -- > > Beno?t Minisini > > Hi Beno?t. I know that property exists, but: > > > 1) In some situations (rare I admit, but real) could be necessary > write a setter and unnecessary write a getter, but properties are > both: write and read or only read, there's no option to automatically > write only the code for property write For me, a write-only property is a non-sense. Just use a normal method then. > 2) Properties, forces to have more code Just one line to declare the property. > 3) Properties, forces to use the dot notation or to write getters and > setter by hand No, both. And this is better. It allows to underline that normally a property is a light O(1) process (just reading something somewhere, or writing and updating something somewhere), whereas a method underlines a more complex and heavier algorithm. > 4) Write and Read methods are generated while code is being write. I > would appreciate can write sketch code for a class without Write/Read > or getters/setters methods, and when I finished the class design can > generate that code automatically by one step. When you enter the property declaration, the getter and the eventual setter are written automatically. But they do nothing, so what is the problem? Setter and getters were invented only for languages that do not have properties. Regards, -- Beno?t Minisini From gambas at ...1... Sat Dec 18 17:35:27 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sat, 18 Dec 2010 17:35:27 +0100 Subject: [Gambas-user] Bug with IsInteger? In-Reply-To: References: Message-ID: <201012181735.27747.gambas@...1...> > ? IsInteger("12 + 5.4") > True > > Gambas 3 rev 3371 @ Ubuntu 10.04 64bit > > Jussi I get False there. 1) Try to run that: $ LANG=C gbx3 -e 'IsInteger("12 + 5.4")' 2) Ensure that you compiled, installed, and run the correct version. Regards, -- Beno?t Minisini From jussi.lahtinen at ...626... Sat Dec 18 18:40:59 2010 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Sat, 18 Dec 2010 19:40:59 +0200 Subject: [Gambas-user] Bug with IsInteger? In-Reply-To: <201012181735.27747.gambas@...1...> References: <201012181735.27747.gambas@...1...> Message-ID: Now I'm on Ubuntu 10.10 64bit with Gambas 3 rev 3371. LANG=C gbx3 -e 'IsInteger("12 + 5.4")' Yields; False. Jussi 2010/12/18 Beno?t Minisini > > ? IsInteger("12 + 5.4") > > True > > > > Gambas 3 rev 3371 @ Ubuntu 10.04 64bit > > > > Jussi > > I get False there. > > 1) Try to run that: > > $ LANG=C gbx3 -e 'IsInteger("12 + 5.4")' > > 2) Ensure that you compiled, installed, and run the correct version. > > Regards, > > -- > Beno?t Minisini > > > ------------------------------------------------------------------------------ > Lotusphere 2011 > Register now for Lotusphere 2011 and learn how > to connect the dots, take your collaborative environment > to the next level, and enter the era of Social Business. > http://p.sf.net/sfu/lotusphere-d2d > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From jussi.lahtinen at ...626... Sat Dec 18 18:42:12 2010 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Sat, 18 Dec 2010 19:42:12 +0200 Subject: [Gambas-user] Bug with IsInteger? In-Reply-To: References: <201012181735.27747.gambas@...1...> Message-ID: But with IDE console; ? IsInteger("12 + 5.4") True Jussi On Sat, Dec 18, 2010 at 19:40, Jussi Lahtinen wrote: > Now I'm on Ubuntu 10.10 64bit with Gambas 3 rev 3371. > > > LANG=C gbx3 -e 'IsInteger("12 + 5.4")' > Yields; False. > > Jussi > > > > 2010/12/18 Beno?t Minisini > > > ? IsInteger("12 + 5.4") >> > True >> > >> > Gambas 3 rev 3371 @ Ubuntu 10.04 64bit >> > >> > Jussi >> >> I get False there. >> >> 1) Try to run that: >> >> $ LANG=C gbx3 -e 'IsInteger("12 + 5.4")' >> >> 2) Ensure that you compiled, installed, and run the correct version. >> >> Regards, >> >> -- >> Beno?t Minisini >> >> >> ------------------------------------------------------------------------------ >> Lotusphere 2011 >> Register now for Lotusphere 2011 and learn how >> to connect the dots, take your collaborative environment >> to the next level, and enter the era of Social Business. >> http://p.sf.net/sfu/lotusphere-d2d >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > From zachsmith022 at ...626... Sat Dec 18 18:54:40 2010 From: zachsmith022 at ...626... (Zach Smith) Date: Sat, 18 Dec 2010 11:54:40 -0600 Subject: [Gambas-user] frame control border won't display in IDE Message-ID: While drawing a frame control on a form the border doesn't show even though the frame is created. When I run a simple test program in the IDE, the frame border shows with gtk but not with qt. When I close the program running qt I get a signal #11 error but the IDE continues to run. Arch 64-bit gambas 3 v3373 qt 4.7.1 From math.eber at ...221... Sat Dec 18 19:08:55 2010 From: math.eber at ...221... (math.eber at ...221...) Date: Sat, 18 Dec 2010 19:08:55 +0100 Subject: [Gambas-user] =?utf-8?q?gb3_make_error_again?= In-Reply-To: <201012181527.00321.gambas@...1...> References: <201012181527.00321.gambas@...1...> Message-ID: <1PU1DD-0VTp8y0@...2381...> > What is your version of qt ? 4.5.3-2.4.2 Is it better with the last revision? No, 3376 doesn't work either. Same error. > > rev. 3373: make fails, the error seems to start here: > > libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -DQT3_SUPPORT > > > > -DQT_SHARED -DQT3_SUPPORT -I/usr/include/QtCore > > -I/usr/include/QtGui -I/usr/include/Qt3Support -I/usr/include/QtNetwork > > -I/usr/include/QtSql -I/usr/include/QtSvg -I../share -I../src/share > > -DGB_QT_COMPONENT -pipe -Wall -fno-exceptions -Wno-unused-value > > -fsigned-char -fvisibility=hidden -g -Os -fno-omit-frame-pointer -MT > > gb_qt4_la-cpaint_impl.lo -MD -MP -MF .deps/gb_qt4_la-cpaint_impl.Tpo > > -c cpaint_impl.cpp -fPIC -DPIC -o .libs/gb_qt4_la-cpaint_impl.o > > > > cpaint_impl.cpp: In member function ?virtual int > > MyPaintDevice::metric(QPaintDevice::PaintDeviceMetric) const?: > > cpaint_impl.cpp:1119: error: ?class QPaintDevice? has no member named > > ?colorCount? > > make[5]: *** [gb_qt4_la-cpaint_impl.lo] Fehler 1 > > make[5]: Leaving directory > > `/Platte2/Downloads/gambas3/3373/trunk/gb.qt4/src' > > make[4]: *** [all-recursive] Fehler 1 > > make[4]: Leaving directory > > `/Platte2/Downloads/gambas3/3373/trunk/gb.qt4/src' > > make[3]: *** [all-recursive] Fehler 1 > > make[3]: Leaving directory > > > > `/Platte2/Downloads/gambas3/3373/trunk/gb.qt4' make[2]: *** [all] Fehler > > 2 > > > > make[2]: Leaving directory > > > > `/Platte2/Downloads/gambas3/3373/trunk/gb.qt4' make[1]: *** > > [all-recursive] Fehler 1 > > > > make[1]: Leaving directory `/Platte2/Downloads/gambas3/3373/trunk' > > make: *** [all] Fehler 2 > > Regards > > Matti > From gambas.fr at ...626... Sat Dec 18 19:39:21 2010 From: gambas.fr at ...626... (Fabien Bodard) Date: Sat, 18 Dec 2010 19:39:21 +0100 Subject: [Gambas-user] frame control border won't display in IDE In-Reply-To: References: Message-ID: kde style... certainly 2010/12/18 Zach Smith : > While drawing a frame control on a form the border doesn't show even > though the frame is created. ?When I run a simple test program in the > IDE, the frame border shows with gtk but not with qt. ?When I close > the program running qt I get a signal #11 error but the IDE continues > to run. > > Arch 64-bit > gambas 3 v3373 > qt 4.7.1 > > ------------------------------------------------------------------------------ > Lotusphere 2011 > Register now for Lotusphere 2011 and learn how > to connect the dots, take your collaborative environment > to the next level, and enter the era of Social Business. > http://p.sf.net/sfu/lotusphere-d2d > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Fabien Bodard From gambas at ...1... Sat Dec 18 19:49:54 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sat, 18 Dec 2010 19:49:54 +0100 Subject: [Gambas-user] gb3 make error again In-Reply-To: <1PU1DD-0VTp8y0@...2381...> References: <201012181527.00321.gambas@...1...> <1PU1DD-0VTp8y0@...2381...> Message-ID: <201012181949.54863.gambas@...1...> > > What is your version of qt ? > > 4.5.3-2.4.2 > Is it better with the last revision? > No, 3376 doesn't work either. Same error. > Are you sure that you correctly update to 3376? There is no code anymore at the line of the error you get! -- Beno?t Minisini From fabianfloresvadell at ...626... Sat Dec 18 21:20:52 2010 From: fabianfloresvadell at ...626... (=?ISO-8859-1?Q?Fabi=E1n_Flores_Vadell?=) Date: Sat, 18 Dec 2010 17:20:52 -0300 Subject: [Gambas-user] Gambas 3 IDE features request In-Reply-To: <201012181733.18384.gambas@...1...> References: <201012181555.36427.gambas@...1...> <201012181733.18384.gambas@...1...> Message-ID: 2010/12/18 Beno?t Minisini : >> >> Hi Beno?t. I know that property exists, but: >> >> >> 1) In some situations (rare I admit, but real) could be necessary >> write a setter and unnecessary write a getter, but properties are >> both: write and read or only read, there's no option to automatically >> write only the code for property write > > For me, a write-only property is a non-sense. Just use a normal method then. I want to write some linux commands wrappers classes. I don't want use EXEC directly in my applications to reduce the syntax complexity. Then, I just need write static methods to do that, and I will use normal method to do that "just because if I use properties I will need to write READ method". >> 2) Properties, forces to have more code > > Just one line to declare the property. Just one line to each private variable that belong to the interface class. That can be 5, 10 or 15 additional lines to do the same thing, more the obligation to write READ methods in situations that it's unnecessary. >> 3) Properties, forces to use the dot notation or to write getters and >> setter by hand > > No, both. And this is better. It allows to underline that normally a property > is a light O(1) process (just reading something somewhere, or writing and > updating something somewhere), whereas a method underlines a more complex and > heavier algorithm. I mean that properties use an assignment notation (I don't know why I repeat the error to say "dot notation"). And many programmers could be more comfortable using a method notation. In reference to the computational complexity: the syntax for the _READ _WRITE methods is the usual and Gambas relates this methods with the property by it's name, so the same thing should be done to allow getter and setters methods favoring them with the special treatment that you explain. And the minor computational complexity is a good reason for use properties than just will be Write, instead a normal method. >> 4) Write and Read methods are generated while code is being write. I >> would appreciate can write sketch code for a class without Write/Read >> or getters/setters methods, and when I finished the class design can >> generate that code automatically by one step. > > When you enter the property declaration, the getter and the eventual setter > are written automatically. But they do nothing, so what is the problem? The problem is that when I'm writing a sketch of the class, what I do initially, is just to write stub methods, I declare the needed variables to support these behaviors, and the message protocol, I mean methods and properties that constitute the class interfaz. In this way I can focus in the design. So, to have 20, 30 or more additional lines of code for properties, is something that I want to avoid, because there become in visual garbage until the moment when there are really useful. > Setter and getters were invented only for languages that do not have > properties. :-) At the end, the principal subject is about the possibility to have an automatic code generator for properties o getter and setter (in spanish "o" is or, but it is inclusive) that can be called just one time, when it is really necessary. What about to do "Make code pretty" option customizable? Saluti. -- Fabi?n Flores Vadell www.comoprogramarcongambas.blogspot.com www.speedbooksargentina.blogspot.com From zachsmith022 at ...626... Sun Dec 19 02:51:42 2010 From: zachsmith022 at ...626... (Zach Smith) Date: Sat, 18 Dec 2010 19:51:42 -0600 Subject: [Gambas-user] frame control border won't display in IDE In-Reply-To: References: Message-ID: On Sat, Dec 18, 2010 at 12:39 PM, Fabien Bodard wrote: > kde style... certainly > Yes, running qtconfig and changing the GUI style from default to anything except GTK+ fixed the problem. Thanks. From gambas at ...1... Sun Dec 19 04:01:51 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sun, 19 Dec 2010 04:01:51 +0100 Subject: [Gambas-user] Gambas 3 IDE features request In-Reply-To: References: <201012181733.18384.gambas@...1...> Message-ID: <201012190401.52006.gambas@...1...> > What about to do "Make code pretty" option customizable? > > Saluti. Yes. But I need to know which options define the style. -- Beno?t Minisini From gambas at ...1... Sun Dec 19 04:03:43 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sun, 19 Dec 2010 04:03:43 +0100 Subject: [Gambas-user] Bug with IsInteger? In-Reply-To: References: Message-ID: <201012190403.43263.gambas@...1...> > But with IDE console; > ? IsInteger("12 + 5.4") > True > > Jussi > Not there. Did you try to do what I asked you? Are you sure that you have compiled and installed the correct version? -- Beno?t Minisini From gambas.fr at ...626... Sun Dec 19 11:33:39 2010 From: gambas.fr at ...626... (Fabien Bodard) Date: Sun, 19 Dec 2010 11:33:39 +0100 Subject: [Gambas-user] painting graph to image continuously In-Reply-To: <201012181535.14024.wally@...2037...> References: <201012161846.46665.wally@...2037...> <201012181535.14024.wally@...2037...> Message-ID: This is the vectorial vertion (use the painter class) 2010/12/18 wally : > On Saturday 18 December 2010 14:44:22 Fabien Bodard wrote: >> ok wally this is the full demo of what you want to do, and what you >> need to do for that. I use like often in gambas >> a data/view model ... the drawingarea is just a viewer for the data >> and the _draw event contain the rules do draw the datas. >> The datas are stored in an array $aDatas. >> >> The Timer emulate the datas entry >> >> 2010/12/18 Fabien Bodard : >> >> Fabian, >> >> >> >> yes, you are right, this may be a problem. >> >> I will try to collect the data as short as possible in a data-array >> >> and display always only the graph of a segment of this array. >> >> Your DemoGraph was helpful to see how the _draw event is >> >> used and i'll try this way too. >> >> But for now i would like to know how the DrawingArea.Resize >> >> works internally and why there are differences in GB2 and GB3. >> >> >> >> wally >> >> >> > >> > Resize is a procedure inherited from control ... it just resize the >> > controle ... but can have conflict with autoarrangement. >> > >> > >> > >> > -- >> > Fabien Bodard >> > >> >> >> >> -- >> Fabien Bodard >> > > > Fabian, > > thanks a lot for your hits and deno files ! ?:) > > Please have a look on the attached design and let me know your opinion > about this. Draw is little more ugly than paint or cairo but i can live with > that ?(for now) > > wally > > > ------------------------------------------------------------------------------ > Lotusphere 2011 > Register now for Lotusphere 2011 and learn how > to connect the dots, take your collaborative environment > to the next level, and enter the era of Social Business. > http://p.sf.net/sfu/lotusphere-d2d > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > -- Fabien Bodard -------------- next part -------------- A non-text attachment was scrubbed... Name: ArraySegmentDisplay_PainterVersion.tar.gz Type: application/x-gzip Size: 29892 bytes Desc: not available URL: From wally at ...2037... Sun Dec 19 12:22:27 2010 From: wally at ...2037... (wally) Date: Sun, 19 Dec 2010 12:22:27 +0100 Subject: [Gambas-user] painting graph to image continuously In-Reply-To: References: <201012161846.46665.wally@...2037...> <201012181535.14024.wally@...2037...> Message-ID: <201012191222.27702.wally@...2037...> On Sunday 19 December 2010 11:33:39 Fabien Bodard wrote: > This is the vectorial vertion (use the painter class) > > 2010/12/18 wally : > > On Saturday 18 December 2010 14:44:22 Fabien Bodard wrote: > >> ok wally this is the full demo of what you want to do, and what you > >> need to do for that. I use like often in gambas > >> a data/view model ... the drawingarea is just a viewer for the data > >> and the _draw event contain the rules do draw the datas. > >> The datas are stored in an array $aDatas. > >> > >> The Timer emulate the datas entry > >> > >> 2010/12/18 Fabien Bodard : > >> >> Fabian, > >> >> > >> >> yes, you are right, this may be a problem. > >> >> I will try to collect the data as short as possible in a data-array > >> >> and display always only the graph of a segment of this array. > >> >> Your DemoGraph was helpful to see how the _draw event is > >> >> used and i'll try this way too. > >> >> But for now i would like to know how the DrawingArea.Resize > >> >> works internally and why there are differences in GB2 and GB3. > >> >> > >> >> wally > >> >> > >> > > >> > Resize is a procedure inherited from control ... it just resize the > >> > controle ... but can have conflict with autoarrangement. > >> > > >> > > >> > > >> > -- > >> > Fabien Bodard > >> > > >> > >> > >> > >> -- > >> Fabien Bodard > >> > > > > > > Fabian, > > > > thanks a lot for your hits and deno files ! :) > > > > Please have a look on the attached design and let me know your opinion > > about this. Draw is little more ugly than paint or cairo but i can live with > > that (for now) > > > > wally > > > > > > ------------------------------------------------------------------------------ > > Lotusphere 2011 > > Register now for Lotusphere 2011 and learn how > > to connect the dots, take your collaborative environment > > to the next level, and enter the era of Social Business. > > http://p.sf.net/sfu/lotusphere-d2d > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > > -- > Fabien Bodard > Fabian, thank you very much, This is interesting, i tried to paint and got "already drawing" message when applied paint inside _draw event. Need to study your version first. wally From gambas.fr at ...626... Sun Dec 19 12:41:10 2010 From: gambas.fr at ...626... (Fabien Bodard) Date: Sun, 19 Dec 2010 12:41:10 +0100 Subject: [Gambas-user] painting graph to image continuously In-Reply-To: <201012191222.27702.wally@...2037...> References: <201012161846.46665.wally@...2037...> <201012181535.14024.wally@...2037...> <201012191222.27702.wally@...2037...> Message-ID: all the draw need to be done in the drawing area witch have the property painted to true (for use the paint class) never draw from the outside paint.begin is form images normally if your program have a good desing all the draw can be done in the _draw event. It's like a game loop 2010/12/19 wally : > On Sunday 19 December 2010 11:33:39 Fabien Bodard wrote: >> This is the vectorial vertion (use the painter class) >> >> 2010/12/18 wally : >> > On Saturday 18 December 2010 14:44:22 Fabien Bodard wrote: >> >> ok wally this is the full demo of what you want to do, and what you >> >> need to do for that. I use like often in gambas >> >> a data/view model ... the drawingarea is just a viewer for the data >> >> and the _draw event contain the rules do draw the datas. >> >> The datas are stored in an array $aDatas. >> >> >> >> The Timer emulate the datas entry >> >> >> >> 2010/12/18 Fabien Bodard : >> >> >> Fabian, >> >> >> >> >> >> yes, you are right, this may be a problem. >> >> >> I will try to collect the data as short as possible in a data-array >> >> >> and display always only the graph of a segment of this array. >> >> >> Your DemoGraph was helpful to see how the _draw event is >> >> >> used and i'll try this way too. >> >> >> But for now i would like to know how the DrawingArea.Resize >> >> >> works internally and why there are differences in GB2 and GB3. >> >> >> >> >> >> wally >> >> >> >> >> > >> >> > Resize is a procedure inherited from control ... it just resize the >> >> > controle ... but can have conflict with autoarrangement. >> >> > >> >> > >> >> > >> >> > -- >> >> > Fabien Bodard >> >> > >> >> >> >> >> >> >> >> -- >> >> Fabien Bodard >> >> >> > >> > >> > Fabian, >> > >> > thanks a lot for your hits and deno files ! ?:) >> > >> > Please have a look on the attached design and let me know your opinion >> > about this. Draw is little more ugly than paint or cairo but i can live > with >> > that ?(for now) >> > >> > wally >> > >> > >> > > ------------------------------------------------------------------------------ >> > Lotusphere 2011 >> > Register now for Lotusphere 2011 and learn how >> > to connect the dots, take your collaborative environment >> > to the next level, and enter the era of Social Business. >> > http://p.sf.net/sfu/lotusphere-d2d >> > _______________________________________________ >> > Gambas-user mailing list >> > Gambas-user at lists.sourceforge.net >> > https://lists.sourceforge.net/lists/listinfo/gambas-user >> > >> > >> >> >> >> -- >> Fabien Bodard >> > > > Fabian, > > thank you very much, This is interesting, i tried to paint and got "already > drawing" message when applied paint inside _draw event. > Need to study your version first. > > wally > > > > ------------------------------------------------------------------------------ > Lotusphere 2011 > Register now for Lotusphere 2011 and learn how > to connect the dots, take your collaborative environment > to the next level, and enter the era of Social Business. > http://p.sf.net/sfu/lotusphere-d2d > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Fabien Bodard From jussi.lahtinen at ...626... Sun Dec 19 17:57:25 2010 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Sun, 19 Dec 2010 18:57:25 +0200 Subject: [Gambas-user] Bug with IsInteger? In-Reply-To: <201012190403.43263.gambas@...1...> References: <201012190403.43263.gambas@...1...> Message-ID: LANG=C gbx3 -e 'IsInteger("12 + 5.4")' Gives; False In IDE console: ? IsInteger("12 + 5.4") True Are you sure that you have compiled and installed the correct version? > > gbr3 --version Gives always 2.99.0... But "svn info" says sources are at revision 3377. I just recompiled them and now gbx3 seems to be just modified. So, I think there was no problems with compilation. What else to check? I always use same compilation script: #!/bin/sh sudo rm -f /usr/local/bin/gbx3 /usr/local/bin/gbc3 /usr/local/bin/gba3 /usr/local/bin/gbi3 sudo rm -rf /usr/local/lib/gambas3 sudo rm -rf /usr/local/share/gambas3 cd ~/trunk ./reconf-all && ./configure -C && make && sudo make install sudo -k Jussi From gambas at ...1... Sun Dec 19 17:58:36 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sun, 19 Dec 2010 17:58:36 +0100 Subject: [Gambas-user] Gambas 3 advancement Message-ID: <201012191758.36143.gambas@...1...> Hi, I have currently the feeling that I have to correctly fix the "ValueBox" problem (the way it is implemented, and more generally the way compound controls raise events), and then I will able to make a release candidate of Gambas 3. Tell me the important things I forgot, because I am sure I have forgotten things. Not the small bugs, but the features that may change the language syntax or the interface of some components. Thanks in advance! -- Beno?t Minisini From jussi.lahtinen at ...626... Sun Dec 19 17:59:04 2010 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Sun, 19 Dec 2010 18:59:04 +0200 Subject: [Gambas-user] Bug with IsInteger? In-Reply-To: References: <201012190403.43263.gambas@...1...> Message-ID: Also this: $ gbx3 -e 'IsInteger("12 + 5.4")' Gives; True What LANG=C exactly does? Jussi On Sun, Dec 19, 2010 at 18:57, Jussi Lahtinen wrote: > > LANG=C gbx3 -e 'IsInteger("12 + 5.4")' > Gives; False > > In IDE console: > ? IsInteger("12 + 5.4") > True > > > Are you sure that you have compiled and installed the correct version? >> >> > gbr3 --version > Gives always 2.99.0... > But "svn info" says sources are at revision 3377. > I just recompiled them and now gbx3 seems to be just modified. > So, I think there was no problems with compilation. > What else to check? > > I always use same compilation script: > #!/bin/sh > sudo rm -f /usr/local/bin/gbx3 /usr/local/bin/gbc3 /usr/local/bin/gba3 > /usr/local/bin/gbi3 > sudo rm -rf /usr/local/lib/gambas3 > sudo rm -rf /usr/local/share/gambas3 > cd ~/trunk > ./reconf-all && ./configure -C && make && sudo make install > sudo -k > > Jussi > > > > > > From doriano.blengino at ...1909... Sun Dec 19 18:25:04 2010 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Sun, 19 Dec 2010 18:25:04 +0100 Subject: [Gambas-user] Gambas 3 advancement In-Reply-To: <201012191758.36143.gambas@...1...> References: <201012191758.36143.gambas@...1...> Message-ID: <4D0E3FF0.4070407@...1909...> Beno?t Minisini ha scritto: > Hi, > > I have currently the feeling that I have to correctly fix the "ValueBox" > problem (the way it is implemented, and more generally the way compound > controls raise events), and then I will able to make a release candidate of > Gambas 3. > > Tell me the important things I forgot, because I am sure I have forgotten > things. > > Not the small bugs, but the features that may change the language syntax or > the interface of some components. > > Thanks in advance! > Pipes should not return EOF when the pipe is not closed. But they should return EOF when the other side closes. A compound control should intercept all events of its members, and raise its own ones. More in general, a class which uses other classes, or inherits from them, should completely own them and control the whole thing, even during creation and destruction. An OnIdle event would be handy, raised every time there are no other events pending. The preprocessor could implement "#define" and use the definitions to do simple token substitution (and, of course, make test on them). Otherwise, you end in too many nested "#if". Regards, -- Doriano Blengino "Listen twice before you speak. This is why we have two ears, but only one mouth." From gambas at ...1... Sun Dec 19 21:30:45 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sun, 19 Dec 2010 21:30:45 +0100 Subject: [Gambas-user] Gambas 3 advancement In-Reply-To: <4D0E3FF0.4070407@...1909...> References: <201012191758.36143.gambas@...1...> <4D0E3FF0.4070407@...1909...> Message-ID: <201012192130.45281.gambas@...1...> > > Pipes should not return EOF when the pipe is not closed. But they should > return EOF when the other side closes. > Why ? EOF() actually means "there is nothing to read anymore", which is the important needed information. If Eof() returns TRUE only when the pipe is closed: 1) How do you know that there is nothing to read anymore? 2) What do you do for Sockets, for example? > A compound control should intercept all events of its members, and raise > its own ones. More in general, a class which uses other classes, or > inherits from them, should completely own them and control the whole > thing, even during creation and destruction. That is what I mean with "solving the ValueBox problem". > > An OnIdle event would be handy, raised every time there are no other > events pending. Mmm. This will eat all the CPU... > > The preprocessor could implement "#define" and use the definitions to do > simple token substitution (and, of course, make test on them). > Otherwise, you end in too many nested "#if". What I can do is implementin "#Const xxxx = ", with being only a test expression. I don't have the time to embed an entire evaluator in the compiler. Regards, -- Beno?t Minisini From gambas at ...1... Sun Dec 19 21:32:15 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sun, 19 Dec 2010 21:32:15 +0100 Subject: [Gambas-user] Bug with IsInteger? In-Reply-To: References: Message-ID: <201012192132.15069.gambas@...1...> > Also this: > $ gbx3 -e 'IsInteger("12 + 5.4")' > > Gives; True > > > What LANG=C exactly does? > > Jussi > It tells programs to run with the "C" (i.e. default US) localization. So the problem apparently comes from the localization. What is the contents of LANG and LC_ALL on your system? To get them, run: $ echo $LANG ... $ echo $LC_ALL Regards, -- Beno?t Minisini From jussi.lahtinen at ...626... Sun Dec 19 21:44:13 2010 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Sun, 19 Dec 2010 22:44:13 +0200 Subject: [Gambas-user] Bug with IsInteger? In-Reply-To: <201012192132.15069.gambas@...1...> References: <201012192132.15069.gambas@...1...> Message-ID: $ echo $LANG en_GB.utf8 $ echo $LC_ALL So, LC_ALL doesn't seem to contain anything. Jussi 2010/12/19 Beno?t Minisini > > Also this: > > $ gbx3 -e 'IsInteger("12 + 5.4")' > > > > Gives; True > > > > > > What LANG=C exactly does? > > > > Jussi > > > > It tells programs to run with the "C" (i.e. default US) localization. So > the > problem apparently comes from the localization. What is the contents of > LANG > and LC_ALL on your system? To get them, run: > > $ echo $LANG > ... > $ echo $LC_ALL > > Regards, > > -- > Beno?t Minisini > > > ------------------------------------------------------------------------------ > Lotusphere 2011 > Register now for Lotusphere 2011 and learn how > to connect the dots, take your collaborative environment > to the next level, and enter the era of Social Business. > http://p.sf.net/sfu/lotusphere-d2d > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From austinium at ...43... Mon Dec 20 04:58:15 2010 From: austinium at ...43... (vikram) Date: Sun, 19 Dec 2010 19:58:15 -0800 (PST) Subject: [Gambas-user] Displaying the same form n times Message-ID: <62482.33421.qm@...2439...> Hi, I have two forms in my application, the first one asks how many Application Servers to configure, and then displays second one(IP input dialog) for each Application Server. For example if there are 5 Application Server, the IP input dialog is displayed 5 times. ? I was thinking of calling the IP input dialog from a FOR loop within the first form, PUBLIC SUB Button1_Click() ? ? DIM count AS Integer ? ascount = CInt(txt_AScount.Text)?? ??? ?'Point 1 ? ? ? FOR count = 1 TO ascount ??? IPinput.show ? NEXT END There are two things I am unsure of here: 1.the number of IP Addresses to be entered is to decided at runtime, I was thinking of storing all IP Addresses entered via the IP input dialog into a String array. But there is no way of deciding what the size of the string array should be till Point 1(marked in code), and it is not possible syntactically to define an array at that point in code. 2.The FOR loop for displaying the IP input dialog is not displaying the form ascount times. It only displays it once. This probably not as complex as it seems, but i am stuck at this point trying to find a solution to this :( I am attaching a sample project with this mail for your reference. Any help would be greatly appreciated. Thanks in advance, Vikram -------------- next part -------------- A non-text attachment was scrubbed... Name: ASconfig.zip Type: application/x-zip-compressed Size: 10173 bytes Desc: not available URL: From firman.isb at ...626... Mon Dec 20 07:32:00 2010 From: firman.isb at ...626... (firman) Date: Sun, 19 Dec 2010 22:32:00 -0800 (PST) Subject: [Gambas-user] Did anyone have a script to record webcame picture in video files In-Reply-To: References: <30442622.post@...1379...> Message-ID: <30496252.post@...1379...> okay i'll send u entire project, but which one do u need, Files project in package program or just All script in main form?? thank's Jussi Lahtinen wrote: > > It is easier to help if you send your whole project. > I can't see any handling for CatProcess. > > Jussi > > > On Sat, Dec 18, 2010 at 02:11, firman wrote: > >> >> >> I Almost done my project about monitoring camera using webcam with gambas >> 3... the picture or streaming video can displayed on picturebox but i >> still >> have a problem to record in video file mode r like avi, mpg or other >> compressed format.. please help me if anyone can solve my problem. i will >> showing u a picture of FMain my project... the record button still >> couldn't >> worked... >> >> i'm using gambas 3 svn... I've wrote the script like this, and worked the >> files created but still 0 KB or nothing recorded.... >> this is the script: >> >> 'Proses Menyimpan File record >> >> Public Sub InitCapture() >> >> If Not CatProcess Then >> bytesrecorded = 0 >> CatProcess = Exec ["cat", "/dev/video0"] For Read >> CatProcess = Exec ["cat", "/dev/video1"] For Read >> CatProcess = Exec ["cat", "/dev/video2"] For Read >> CatProcess = Exec ["cat", "/dev/video3"] For Read >> >> Endif >> >> UpdateBytesLabel() >> >> End >> >> Public Sub Process_Write(data As String) >> >> If pic1.Picture = $cam1.Image.Picture Then >> If pic2.Picture = $cam2.Image.Picture Then >> If pic3.Picture = $cam3.Image.Picture Then >> If pic4.Picture = $cam4.Image.Picture Then >> Return >> Endif >> Endif >> Endif >> Endif >> >> Try pic1.Picture.send(data) >> Try pic2.Picture.send(data) >> Try pic3.Picture.send(data) >> Try pic4.Picture.send(data) >> Try saveprocess.send(data) >> >> bytesrecorded = bytesrecorded + Len(data) >> >> End >> >> >> Public Sub btnRecord_Click() >> >> If btnRecord.text = "Record" Then >> bytesrecorded = 0 >> starttime = Now >> endtime = starttime >> initcapture() >> Tmr1_Timer() >> btnRecord.text = "Stop" >> SaveProcess = Exec ["bash", "-c", "cat > " & setFilename1()] For Write >> SaveProcess = Exec ["bash", "-c", "cat > " & setFilename2()] For Write >> SaveProcess = Exec ["bash", "-c", "cat > " & setFilename3()] For Write >> SaveProcess = Exec ["bash", "-c", "cat > " & setFilename4()] For Write >> Else >> endtime = Now >> >> Try saveprocess.kill >> btnRecord.text = "Record" >> setFilename1() >> setFilename2() >> setFilename3() >> setFilename4() >> Endif >> End >> >> Public Function setFilename1() As String >> >> Dim i As Integer >> >> i = 0 >> 'Do While Exist(Application.Path &/ "kamera1" & i & ".mpg") >> Do While Exist(User.Home &/ "kamera1" & i & ".mpg") >> i = i + 1 >> Loop >> 'Return Application.Path &/ "kamera1" & Format(i, "000") & ".mpg" >> Return User.Home &/ "kamera1" & Format(i, "000") & ".mpg" >> >> End >> >> >> Public Function setFilename2() As String >> >> Dim i As Integer >> i = 0 >> Do While Exist(User.Home &/ "kamera2" & i & ".mpg") >> i = i + 1 >> Loop >> Return User.Home &/ "kamera2" & Format(i, "000") & ".mpg" >> >> End >> >> >> Public Function setFilename3() As String >> >> Dim i As Integer >> i = 0 >> Do While Exist(User.Home &/ "kamera3" & i & ".mpg") >> i = i + 1 >> Loop >> Return User.Home &/ "kamera3" & Format(i, "000") & ".mpg" >> >> End >> >> >> Public Function setFilename4() As String >> >> Dim i As Integer >> i = 0 >> Do While Exist(User.Home &/ "kamera4" & i & ".mpg") >> i = i + 1 >> Loop >> Return User.Home &/ "kamera4" & Format(i, "000") & ".mpg" >> >> End >> >> Public Sub UpdateBytesLabel() >> Dim i As Float >> If bytesrecorded > 1048576 Then >> i = Int(bytesrecorded / 100000) >> Else >> i = Int(bytesrecorded / 100) >> Endif >> >> End >> >> Public Sub UpdateTimeLabel() >> >> If starttime = "00:00:00" Then Return >> If endtime <> starttime Then Return >> >> TextDate1.text = Time(CDate(CInt(Now) + (Now - starttime) + >> timezoneadjust)) >> >> End >> >> anyone can solve my problem please...? >> >> -- >> View this message in context: >> http://old.nabble.com/Did-anyone-have-a-script-to-record-webcame-picture-in-video-files-tp30442622p30442622.html >> Sent from the gambas-user mailing list archive at Nabble.com. >> >> >> >> ------------------------------------------------------------------------------ >> Lotusphere 2011 >> Register now for Lotusphere 2011 and learn how >> to connect the dots, take your collaborative environment >> to the next level, and enter the era of Social Business. >> http://p.sf.net/sfu/lotusphere-d2d >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > ------------------------------------------------------------------------------ > Lotusphere 2011 > Register now for Lotusphere 2011 and learn how > to connect the dots, take your collaborative environment > to the next level, and enter the era of Social Business. > http://p.sf.net/sfu/lotusphere-d2d > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > -- View this message in context: http://old.nabble.com/Did-anyone-have-a-script-to-record-webcame-picture-in-video-files-tp30442622p30496252.html Sent from the gambas-user mailing list archive at Nabble.com. From oceanosoftlapalma at ...626... Mon Dec 20 08:32:05 2010 From: oceanosoftlapalma at ...626... (=?ISO-8859-1?Q?Ricardo_D=EDaz_Mart=EDn?=) Date: Mon, 20 Dec 2010 08:32:05 +0100 Subject: [Gambas-user] Preprocessor in the Gambas 3 compiler In-Reply-To: References: <201012181554.54186.gambas@...1...> <201012181557.20490.gambas@...1...> Message-ID: > > - SYSTEM, that returns the current OS ("Linux", "FreeBSD", "MacOSX"...) Are you thinking to port gambas3 to MacOSX? Regards, Ricardo D?az 2010/12/18 Jussi Lahtinen > Nice! > But now I have to consider doing only one version that handles both 32 and > 64 bit architecture... > > Jussi > > > 2010/12/18 Beno?t Minisini > > > > The "#If" test is a *preprocessor expression* that compare a > > *preprocessor > > > > ---> "compares". > > > > -- > > Beno?t Minisini > > > > > > > ------------------------------------------------------------------------------ > > Lotusphere 2011 > > Register now for Lotusphere 2011 and learn how > > to connect the dots, take your collaborative environment > > to the next level, and enter the era of Social Business. > > http://p.sf.net/sfu/lotusphere-d2d > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > ------------------------------------------------------------------------------ > Lotusphere 2011 > Register now for Lotusphere 2011 and learn how > to connect the dots, take your collaborative environment > to the next level, and enter the era of Social Business. > http://p.sf.net/sfu/lotusphere-d2d > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas.fr at ...626... Mon Dec 20 09:58:20 2010 From: gambas.fr at ...626... (Fabien Bodard) Date: Mon, 20 Dec 2010 09:58:20 +0100 Subject: [Gambas-user] Displaying the same form n times In-Reply-To: <62482.33421.qm@...2439...> References: <62482.33421.qm@...2439...> Message-ID: PUBLIC SUB Button1_Click() DIM count AS Integer dim hForm as IPinput ascount = txtAScount.Text 'Point 1 '''never use underscore in names and str to int is automatic FOR count = 1 TO ascount hForm = New IPinput hForm.show NEXT END in IP Input form add : STATIC PUBLIC aIP as NEW STRING[] PUBLIC SUB Button_Clic() IPInput.aIP.Add(txtInput.Text) END 2010/12/20 vikram : > Hi, > > I have two forms in my application, the first one asks how many Application Servers to configure, and then displays second one(IP input dialog) for each Application Server. For example if there are 5 Application Server, the IP input dialog is displayed 5 times. > > I was thinking of calling the IP input dialog from a FOR loop within the first form, > > PUBLIC SUB Button1_Click() > > ? DIM count AS Integer > > ? ascount = CInt(txt_AScount.Text)?? ??? ?'Point 1 > > ? FOR count = 1 TO ascount > ??? IPinput.show > > ? NEXT > END > > There are two things I am unsure of here: > 1.the number of IP Addresses to be entered is to decided at runtime, I was thinking of storing all IP Addresses entered via the IP input dialog into a String array. But there is no > ?way of deciding what the size of the string array should be till Point 1(marked in code), and it is not possible syntactically to define an array at that point in code. > 2.The FOR loop for displaying the IP input dialog is not displaying the form ascount times. It only displays it once. > > This probably not as complex as it seems, but i am stuck at this point trying to find a solution to this :( I am attaching a sample project with this mail for your reference. > > Any help would be greatly appreciated. > > Thanks in advance, > Vikram > > > > > ------------------------------------------------------------------------------ > Lotusphere 2011 > Register now for Lotusphere 2011 and learn how > to connect the dots, take your collaborative environment > to the next level, and enter the era of Social Business. > http://p.sf.net/sfu/lotusphere-d2d > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > -- Fabien Bodard From doriano.blengino at ...1909... Mon Dec 20 10:01:11 2010 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Mon, 20 Dec 2010 10:01:11 +0100 Subject: [Gambas-user] Gambas 3 advancement In-Reply-To: <201012192130.45281.gambas@...1...> References: <201012191758.36143.gambas@...1...> <4D0E3FF0.4070407@...1909...> <201012192130.45281.gambas@...1...> Message-ID: <4D0F1B57.5050506@...1909...> Beno?t Minisini ha scritto: >> Pipes should not return EOF when the pipe is not closed. But they should >> return EOF when the other side closes. >> >> > Why ? > Because this is the way *all* unix routines work, and the only logical one. > EOF() actually means "there is nothing to read anymore", which is the > important needed information. > Indeed: it means "nothing anymore", not "nothing at the moment". > If Eof() returns TRUE only when the pipe is closed: > > 1) How do you know that there is nothing to read anymore? > I know that there is nothing to read now, and in the future too, if eof() is true. If eof() is false, I know that some data could arrive, if not now, in the future. Try "cat", one of the simplest unix commands. It knows very well when there is data to read, when there is not, and when the pipe is closed. > 2) What do you do for Sockets, for example? > The same as pipes. If there is data to read, I read it. If there is not, I don't. If eof() is true, I close my local socket because the other peer has closed. May be I am missing something -- using your ideas, how can you tell that a pipe (or a remote socket) is closed or not? > >> A compound control should intercept all events of its members, and raise >> its own ones. More in general, a class which uses other classes, or >> inherits from them, should completely own them and control the whole >> thing, even during creation and destruction. >> > That is what I mean with "solving the ValueBox problem". > Sorry to having invaded your field. I was speaking more in general, not only ValueBox and not only events. >> An OnIdle event would be handy, raised every time there are no other >> events pending. >> > Mmm. This will eat all the CPU... > I know. I can only add that on some other system, to prevent this CPU eating, the Idle event has a parameter "Done" that, when set to true, stops further idle events (until the idle condition happens again). It works like this: the event loop does not find any event, and so sets Done=true and enters the Idle loop. The Idle loop consists in raising continuosly an Idle event, until an event is present in the queue, or Done becomes true. The Idle event handler sets Done to false if it has more work to do. If there is no Idle event handler, just one event is raised. To be more precise, other systems do not even raise this single event, if there is no handler to it. >> The preprocessor could implement "#define" and use the definitions to do >> simple token substitution (and, of course, make test on them). >> Otherwise, you end in too many nested "#if". >> > What I can do is implementin "#Const xxxx =", with being only a > test expression. > > I don't have the time to embed an entire evaluator in the compiler. > I was not really thinking at evaluator/expressions... you surpassed me... - they are useful but one can live without. And one can live without "#define" for token substitution. You choose. It was only a suggestion. Anyway, your idea (#const ...) does already the job I was thinking of. I was thinking at situations where you want to include many things in the program only when the os is "linux" and word length is 64 bits, for example. In that case, you should write many times an expression like "#if os="linux" and architecture="ia64"" or something like that. Instead, you can define once for all a "#Const linux64=true" and test subsequently for "#ifdef linux64" and so on. To be sincere, I don't like the C preprocessor, it is too simple and too powerful at the same time... :-) Regards, Doriano From austinium at ...43... Mon Dec 20 13:18:54 2010 From: austinium at ...43... (vikram) Date: Mon, 20 Dec 2010 04:18:54 -0800 (PST) Subject: [Gambas-user] Displaying the same form n times In-Reply-To: <353435.85916.qm@...2464...> Message-ID: <730452.16312.qm@...2439...> Hi, Thanks a lot for your response :) This opens all the IP Input dialogs at one go. It would be better if the IP input dialogs were displayed one after the other. Maybe theres a way to link one dialog's Open event to another's Close event, or maybe there is some other way to do this. Thanks again, Vikram --- On Mon, 12/20/10, vikram wrote: From: vikram Subject: [Gambas-user] Displaying the same form n times To: austinium at ...43... Date: Monday, December 20, 2010, 6:52 AM PUBLIC SUB Button1_Click() DIM count AS Integer dim hForm as IPinput ascount = txtAScount.Text 'Point 1 '''never use underscore in names and str to int is automatic FOR count = 1 TO ascount hForm = New IPinput hForm.show NEXT END in IP Input form add : STATIC PUBLIC aIP as NEW STRING[] PUBLIC SUB Button_Clic() IPInput.aIP.Add(txtInput.Text) END 2010/12/20 vikram : > Hi, > > I have two forms in my application, the first one asks how many Application Servers to configure, and then displays second one(IP input dialog) for each Application Server. For example if there are 5 Application Server, the IP input dialog is displayed 5 times. > > I was thinking of calling the IP input dialog from a FOR loop within the first form, > > PUBLIC SUB Button1_Click() > > ? DIM count AS Integer > > ? ascount = CInt(txt_AScount.Text)?? ??? ?'Point 1 > > ? FOR count = 1 TO ascount > ??? IPinput.show > > ? NEXT > END > > There are two things I am unsure of here: > 1.the number of IP Addresses to be entered is to decided at runtime, I was thinking of storing all IP Addresses entered via the IP input dialog into a String array. But there is no > ?way of deciding what the size of the string array should be till Point 1(marked in code), and it is not possible syntactically to define an array at that point in code. > 2.The FOR loop for displaying the IP input dialog is not displaying the form ascount times. It only displays it once. > > This probably not as complex as it seems, but i am stuck at this point trying to find a solution to this :( I am attaching a sample project with this mail for your reference. > > Any help would be greatly appreciated. > > Thanks in advance, > Vikram > > > > > ------------------------------------------------------------------------------ > Lotusphere 2011 > Register now for Lotusphere 2011 and learn how > to connect the dots, take your collaborative environment > to the next level, and enter the era of Social Business. > http://p.sf.net/sfu/lotusphere-d2d > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > -- Fabien Bodard From gambas.fr at ...626... Mon Dec 20 14:25:30 2010 From: gambas.fr at ...626... (Fabien Bodard) Date: Mon, 20 Dec 2010 14:25:30 +0100 Subject: [Gambas-user] Displaying the same form n times In-Reply-To: <730452.16312.qm@...2439...> References: <353435.85916.qm@...2464...> <730452.16312.qm@...2439...> Message-ID: just use .ShowModal insteed of .show 2010/12/20 vikram : > Hi, > > Thanks a lot for your response :) > This opens all the IP > Input dialogs at one go. It would be better if the IP input dialogs > were displayed one after the other. Maybe theres a way to link one dialog's Open event to another's Close event, or maybe there is some other way to do this. > > Thanks again, > Vikram > > --- On Mon, 12/20/10, vikram wrote: > > From: vikram > Subject: [Gambas-user] Displaying the same form n times > To: austinium at ...43... > Date: Monday, December 20, 2010, 6:52 AM > > PUBLIC SUB Button1_Click() > > ?DIM count AS Integer > ?dim hForm as IPinput > ?ascount = txtAScount.Text ? ? ? ?'Point 1 ?'''never use underscore > in names and str to int is automatic > > ?FOR count = 1 TO ascount > ? ?hForm = New IPinput > ? ?hForm.show > > ?NEXT > END > > > > in IP Input form add : > > STATIC PUBLIC aIP as NEW STRING[] > > > > PUBLIC SUB Button_Clic() > > IPInput.aIP.Add(txtInput.Text) > > END > > > > > > > > > > > 2010/12/20 vikram : >> Hi, >> >> I have two forms in my application, the first one asks how many Application Servers to configure, and then displays second one(IP input dialog) for each Application Server. For example if there are 5 Application Server, the IP input > ?dialog is displayed 5 times. >> >> I was thinking of calling the IP input dialog from a FOR loop within the first form, >> >> PUBLIC SUB Button1_Click() >> >> ? DIM count AS Integer >> >> ? ascount = CInt(txt_AScount.Text)?? ??? ?'Point 1 >> >> ? FOR count = 1 TO ascount >> ??? IPinput.show >> >> ? NEXT >> END >> >> There are two things I am unsure of here: >> 1.the number of IP Addresses to be entered is to decided at runtime, I was thinking of storing all IP Addresses entered via the IP input dialog into a String array. But there is no >> ?way of deciding what the size of the string array should be till Point 1(marked in code), and it is not possible syntactically to define an array at that point in code. >> 2.The FOR loop for displaying the IP input dialog is not displaying the form > ?ascount times. It only displays it once. >> >> This probably not as complex as it seems, but i am stuck at this point trying to find a solution to this :( I am attaching a sample project with this mail for your reference. >> >> Any help would be greatly appreciated. >> >> Thanks in advance, >> Vikram >> >> >> >> >> ------------------------------------------------------------------------------ >> Lotusphere 2011 >> Register now for Lotusphere 2011 and learn how >> to connect the dots, take your collaborative environment >> to the next level, and enter the era of Social Business. >> http://p.sf.net/sfu/lotusphere-d2d >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> >> > > > > -- > Fabien Bodard > > > > > > > > ------------------------------------------------------------------------------ > Lotusphere 2011 > Register now for Lotusphere 2011 and learn how > to connect the dots, take your collaborative environment > to the next level, and enter the era of Social Business. > http://p.sf.net/sfu/lotusphere-d2d > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Fabien Bodard From jussi.lahtinen at ...626... Mon Dec 20 18:26:47 2010 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Mon, 20 Dec 2010 19:26:47 +0200 Subject: [Gambas-user] Did anyone have a script to record webcame picture in video files In-Reply-To: <30496252.post@...1379...> References: <30442622.post@...1379...> <30496252.post@...1379...> Message-ID: Project --> Make --> Source archive And put the script in that tar ball also. Jussi On Mon, Dec 20, 2010 at 08:32, firman wrote: > > okay i'll send u entire project, but which one do u need, Files project in > package program or just All script in main form?? > > thank's > > > > Jussi Lahtinen wrote: > > > > It is easier to help if you send your whole project. > > I can't see any handling for CatProcess. > > > > Jussi > > > > > > On Sat, Dec 18, 2010 at 02:11, firman wrote: > > > >> > >> > >> I Almost done my project about monitoring camera using webcam with > gambas > >> 3... the picture or streaming video can displayed on picturebox but i > >> still > >> have a problem to record in video file mode r like avi, mpg or other > >> compressed format.. please help me if anyone can solve my problem. i > will > >> showing u a picture of FMain my project... the record button still > >> couldn't > >> worked... > >> > >> i'm using gambas 3 svn... I've wrote the script like this, and worked > the > >> files created but still 0 KB or nothing recorded.... > >> this is the script: > >> > >> 'Proses Menyimpan File record > >> > >> Public Sub InitCapture() > >> > >> If Not CatProcess Then > >> bytesrecorded = 0 > >> CatProcess = Exec ["cat", "/dev/video0"] For Read > >> CatProcess = Exec ["cat", "/dev/video1"] For Read > >> CatProcess = Exec ["cat", "/dev/video2"] For Read > >> CatProcess = Exec ["cat", "/dev/video3"] For Read > >> > >> Endif > >> > >> UpdateBytesLabel() > >> > >> End > >> > >> Public Sub Process_Write(data As String) > >> > >> If pic1.Picture = $cam1.Image.Picture Then > >> If pic2.Picture = $cam2.Image.Picture Then > >> If pic3.Picture = $cam3.Image.Picture Then > >> If pic4.Picture = $cam4.Image.Picture Then > >> Return > >> Endif > >> Endif > >> Endif > >> Endif > >> > >> Try pic1.Picture.send(data) > >> Try pic2.Picture.send(data) > >> Try pic3.Picture.send(data) > >> Try pic4.Picture.send(data) > >> Try saveprocess.send(data) > >> > >> bytesrecorded = bytesrecorded + Len(data) > >> > >> End > >> > >> > >> Public Sub btnRecord_Click() > >> > >> If btnRecord.text = "Record" Then > >> bytesrecorded = 0 > >> starttime = Now > >> endtime = starttime > >> initcapture() > >> Tmr1_Timer() > >> btnRecord.text = "Stop" > >> SaveProcess = Exec ["bash", "-c", "cat > " & setFilename1()] For > Write > >> SaveProcess = Exec ["bash", "-c", "cat > " & setFilename2()] For > Write > >> SaveProcess = Exec ["bash", "-c", "cat > " & setFilename3()] For > Write > >> SaveProcess = Exec ["bash", "-c", "cat > " & setFilename4()] For > Write > >> Else > >> endtime = Now > >> > >> Try saveprocess.kill > >> btnRecord.text = "Record" > >> setFilename1() > >> setFilename2() > >> setFilename3() > >> setFilename4() > >> Endif > >> End > >> > >> Public Function setFilename1() As String > >> > >> Dim i As Integer > >> > >> i = 0 > >> 'Do While Exist(Application.Path &/ "kamera1" & i & ".mpg") > >> Do While Exist(User.Home &/ "kamera1" & i & ".mpg") > >> i = i + 1 > >> Loop > >> 'Return Application.Path &/ "kamera1" & Format(i, "000") & ".mpg" > >> Return User.Home &/ "kamera1" & Format(i, "000") & ".mpg" > >> > >> End > >> > >> > >> Public Function setFilename2() As String > >> > >> Dim i As Integer > >> i = 0 > >> Do While Exist(User.Home &/ "kamera2" & i & ".mpg") > >> i = i + 1 > >> Loop > >> Return User.Home &/ "kamera2" & Format(i, "000") & ".mpg" > >> > >> End > >> > >> > >> Public Function setFilename3() As String > >> > >> Dim i As Integer > >> i = 0 > >> Do While Exist(User.Home &/ "kamera3" & i & ".mpg") > >> i = i + 1 > >> Loop > >> Return User.Home &/ "kamera3" & Format(i, "000") & ".mpg" > >> > >> End > >> > >> > >> Public Function setFilename4() As String > >> > >> Dim i As Integer > >> i = 0 > >> Do While Exist(User.Home &/ "kamera4" & i & ".mpg") > >> i = i + 1 > >> Loop > >> Return User.Home &/ "kamera4" & Format(i, "000") & ".mpg" > >> > >> End > >> > >> Public Sub UpdateBytesLabel() > >> Dim i As Float > >> If bytesrecorded > 1048576 Then > >> i = Int(bytesrecorded / 100000) > >> Else > >> i = Int(bytesrecorded / 100) > >> Endif > >> > >> End > >> > >> Public Sub UpdateTimeLabel() > >> > >> If starttime = "00:00:00" Then Return > >> If endtime <> starttime Then Return > >> > >> TextDate1.text = Time(CDate(CInt(Now) + (Now - starttime) + > >> timezoneadjust)) > >> > >> End > >> > >> anyone can solve my problem please...? > >> > >> -- > >> View this message in context: > >> > http://old.nabble.com/Did-anyone-have-a-script-to-record-webcame-picture-in-video-files-tp30442622p30442622.html > >> Sent from the gambas-user mailing list archive at Nabble.com. > >> > >> > >> > >> > ------------------------------------------------------------------------------ > >> Lotusphere 2011 > >> Register now for Lotusphere 2011 and learn how > >> to connect the dots, take your collaborative environment > >> to the next level, and enter the era of Social Business. > >> http://p.sf.net/sfu/lotusphere-d2d > >> _______________________________________________ > >> Gambas-user mailing list > >> Gambas-user at lists.sourceforge.net > >> https://lists.sourceforge.net/lists/listinfo/gambas-user > >> > > > ------------------------------------------------------------------------------ > > Lotusphere 2011 > > Register now for Lotusphere 2011 and learn how > > to connect the dots, take your collaborative environment > > to the next level, and enter the era of Social Business. > > http://p.sf.net/sfu/lotusphere-d2d > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > -- > View this message in context: > http://old.nabble.com/Did-anyone-have-a-script-to-record-webcame-picture-in-video-files-tp30442622p30496252.html > Sent from the gambas-user mailing list archive at Nabble.com. > > > > ------------------------------------------------------------------------------ > Lotusphere 2011 > Register now for Lotusphere 2011 and learn how > to connect the dots, take your collaborative environment > to the next level, and enter the era of Social Business. > http://p.sf.net/sfu/lotusphere-d2d > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From jussi.lahtinen at ...626... Mon Dec 20 20:00:03 2010 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Mon, 20 Dec 2010 21:00:03 +0200 Subject: [Gambas-user] Bug with IsDate? Message-ID: Hi! I don't quite understand how this should work... IsDate(Now) returns False, and IsDate(Str(Now)) returns True. I don't understand why IsXXX functions accept anything else than string. Help window says 'IsDate(Value As Variant) As Boolean' and below it it continues 'IsDate( String ) As Boolean'. See attachment. This creates confusion, especially when IsDate(Now) = False! So, if IsXXX functions are meant to handle only strings, why they don't strictly accept only strings? Gambas 3 rev 3384 @ Ubuntu 10.10 64bit Jussi -------------- next part -------------- A non-text attachment was scrubbed... Name: whichone.jpg Type: image/jpeg Size: 20628 bytes Desc: not available URL: From jussi.lahtinen at ...626... Mon Dec 20 20:02:15 2010 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Mon, 20 Dec 2010 21:02:15 +0200 Subject: [Gambas-user] Bug with IsDate? In-Reply-To: References: Message-ID: Question still valid, but I think there is problem with localization. ? IsDate(Cstr(Now)) False ? IsDate(Str(Now)) True Jussi On Mon, Dec 20, 2010 at 21:00, Jussi Lahtinen wrote: > Hi! > I don't quite understand how this should work... > > IsDate(Now) returns False, and IsDate(Str(Now)) returns True. > > I don't understand why IsXXX functions accept anything else than string. > Help window says 'IsDate(Value As Variant) As Boolean' and below it it > continues 'IsDate( String ) As Boolean'. See attachment. > This creates confusion, especially when IsDate(Now) = False! > > So, if IsXXX functions are meant to handle only strings, why they don't > strictly accept only strings? > > > Gambas 3 rev 3384 @ Ubuntu 10.10 64bit > > Jussi > From gambas at ...1... Mon Dec 20 20:11:51 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Mon, 20 Dec 2010 20:11:51 +0100 Subject: [Gambas-user] Bug with IsDate? In-Reply-To: References: Message-ID: <201012202011.51414.gambas@...1...> > Question still valid, but I think there is problem with localization. > > ? IsDate(Cstr(Now)) > False > > ? IsDate(Str(Now)) > True > > Jussi > The wiki has been recently updated, but your IDE only update its documentation cache once a week. IsDate() takes a string, and returns if that string can be converted to a date, by using localization. So, IsDate(Str(Now)) will return True, as Str(Now) is a localized date, whereas IsDate(CStr(Now)) will return False, as CStr(Now) is a non-localized date. I think only US and english people should have no difference between non- localized and localized functions. Regards, -- Beno?t Minisini From jussi.lahtinen at ...626... Mon Dec 20 20:55:05 2010 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Mon, 20 Dec 2010 21:55:05 +0200 Subject: [Gambas-user] Bug with IsDate? In-Reply-To: <201012202011.51414.gambas@...1...> References: <201012202011.51414.gambas@...1...> Message-ID: > The wiki has been recently updated, but your IDE only update its > documentation > cache once a week. > Is there way to force IDE to update cache? To wish list? But, I'm still not sure I quite understand. If IsDate() takes only string, why I don't get "Type mismatch: wanted string got date instead."... I guess automatic conversion takes place here. But I think in this case it is only confusing, and should not be allowed. Ie, can IsDate() ever answer true with variable type integer, float, etc.? So, it is not useful? Jussi From jussi.lahtinen at ...626... Mon Dec 20 21:04:07 2010 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Mon, 20 Dec 2010 22:04:07 +0200 Subject: [Gambas-user] IsFloat Message-ID: Hi! Is this correct; ? IsFloat("123") False 123 should be safe value for float, even if it can be stored to integer. With consistent logic IsLong("1") should answer False, so I think this is bug. Gambas 3 rev 3384 @ Ubuntu 10.10 64bit Jussi From gambas.fr at ...626... Mon Dec 20 21:08:18 2010 From: gambas.fr at ...626... (Fabien Bodard) Date: Mon, 20 Dec 2010 21:08:18 +0100 Subject: [Gambas-user] Bug with IsDate? In-Reply-To: References: <201012202011.51414.gambas@...1...> Message-ID: 2010/12/20 Jussi Lahtinen : >> The wiki has been recently updated, but your IDE only update its >> documentation >> cache once a week. >> > > Is there way to force IDE to update cache? To wish list? > there is a button in the options dialog .. go to help options and click on it to remove all files in the cache -- Fabien Bodard From gambas at ...1... Mon Dec 20 21:13:00 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Mon, 20 Dec 2010 21:13:00 +0100 Subject: [Gambas-user] Bug with IsDate? In-Reply-To: References: <201012202011.51414.gambas@...1...> Message-ID: <201012202113.00050.gambas@...1...> > > The wiki has been recently updated, but your IDE only update its > > documentation > > cache once a week. > > Is there way to force IDE to update cache? To wish list? > > > But, I'm still not sure I quite understand. If IsDate() takes only string, > why I don't get "Type mismatch: wanted string got date instead."... > I guess automatic conversion takes place here. > But I think in this case it is only confusing, and should not be allowed. Mmm. Maybe you're right. I will see what I can do... -- Beno?t Minisini From fabianfloresvadell at ...626... Tue Dec 21 03:03:16 2010 From: fabianfloresvadell at ...626... (=?ISO-8859-1?Q?Fabi=E1n_Flores_Vadell?=) Date: Mon, 20 Dec 2010 23:03:16 -0300 Subject: [Gambas-user] Gambas 3 advancement In-Reply-To: <201012191758.36143.gambas@...1...> References: <201012191758.36143.gambas@...1...> Message-ID: 2010/12/19 Beno?t Minisini : > > Tell me the important things I forgot, because I am sure I have forgotten > things. > > Not the small bugs, but the features that may change the language syntax or > the interface of some components. Hi Beno?t. I think that a "mecanism" for automatic and selective sharing of public methods, properties and events from objects that are members of another, to it's container object, will be useful. Example. The ValueBox is compound for a TextBox, but the interface of TextBox isn't shared with ValueBox, nothing at all. If I want to share the complete interface of TextBox with ValueBox I should use inheritance, but there's no an automatic way to share partially and automatically the interface of TextBox to ValueBox because TextBox is a member of ValueBox (composition). So, this should be done manually, repeating the mayor part of interface of TextBox in ValueBox (there's no big deal in this case, but in others could be). Note: when a control is based on Control or UserControl through inheritance, some properties inherited (maybe methods too) have no sense in the new control, but inheritance have no way to anulate some members in the subclass, is all or nothing. In similar way composition or association forces to make public the member that "is part" or "is used", allowing access to it's complete interface (and, again, this many times haven't sense) or make it private, preventing access absolutely. (Containers are a special case that breaks the encapsulation through the collection "Children"). An new mecanism for selectively share part of interface of the an object for May be would be useful can do something like that: ' Inside ValueBox class shareInterface(TextBox, ValueBox, noneExcept, Name, X, Y, W, H, ..., Click, KeyPress, ... , Refresh, Resize, ...) shareInterface(TextBox, ValueBox, allExcept, Text, Password, ... ) 'Syntax shareInterface(FromClass, ToClass, { allExcept | noneExcept } , [properties] [events] [methods] ) A name conceptually more accurate could be "Delegate" 'Syntax Delegate(ToClass, FromClass, { allExcept | noneExcept } , [properties] [events] [methods] ) Good or crazy idea? -- Fabi?n Flores Vadell www.comoprogramarcongambas.blogspot.com www.speedbooksargentina.blogspot.com From gambas at ...1... Tue Dec 21 03:26:06 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Tue, 21 Dec 2010 03:26:06 +0100 Subject: [Gambas-user] Gambas 3 advancement In-Reply-To: References: <201012191758.36143.gambas@...1...> Message-ID: <201012210326.06618.gambas@...1...> > 2010/12/19 Beno?t Minisini : > > Tell me the important things I forgot, because I am sure I have forgotten > > things. > > > > Not the small bugs, but the features that may change the language syntax > > or the interface of some components. > > Hi Beno?t. I think that a "mecanism" for automatic and selective > sharing of public methods, properties and events from objects that are > members of another, to it's container object, will be useful. > > Example. The ValueBox is compound for a TextBox, but the interface of > TextBox isn't shared with ValueBox, nothing at all. If I want to share > the complete interface of TextBox with ValueBox I should use > inheritance, but there's no an automatic way to share partially and > automatically the interface of TextBox to ValueBox because TextBox is > a member of ValueBox (composition). So, this should be done manually, > repeating the mayor part of interface of TextBox in ValueBox (there's > no big deal in this case, but in others could be). > > Note: when a control is based on Control or UserControl through > inheritance, some properties inherited (maybe methods too) have no > sense in the new control, but inheritance have no way to anulate some > members in the subclass, is all or nothing. In similar way composition > or association forces to make public the member that "is part" or "is > used", allowing access to it's complete interface (and, again, this > many times haven't sense) or make it private, preventing access > absolutely. (Containers are a special case that breaks the > encapsulation through the collection "Children"). An new mecanism for > selectively share part of interface of the an object for > > May be would be useful can do something like that: > > ' Inside ValueBox class > shareInterface(TextBox, ValueBox, noneExcept, Name, X, Y, W, H, ..., > Click, KeyPress, ... , Refresh, Resize, ...) > > shareInterface(TextBox, ValueBox, allExcept, Text, Password, ... ) > > 'Syntax > shareInterface(FromClass, ToClass, { allExcept | noneExcept } , > [properties] [events] [methods] ) > > > A name conceptually more accurate could be "Delegate" > > 'Syntax > Delegate(ToClass, FromClass, { allExcept | noneExcept } , [properties] > [events] [methods] ) > > > > Good or crazy idea? You can't "remove" something in inheritance, because if B inherits A, then B is an A. So if the method m() (or a property) applies to A, it must applies to B too. Having to reimplement the interface in the composition case does not shock me. If you really want inheritance, use inheritance. But I admit it's a boring thing to write. Maybe a delegation mechanism could be implemented, but not in Gambas 3 I think. Note: delegation needs an object. For example, ValueBox will use its inner TextBox as a delegate. I'm currently implementing a Proxy class that allows to automatically delegate events from one object to another one. But the result is not beautiful. I must think about all that... -- Beno?t Minisini From gambas at ...1... Tue Dec 21 03:27:33 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Tue, 21 Dec 2010 03:27:33 +0100 Subject: [Gambas-user] Preprocessor in the Gambas 3 compiler In-Reply-To: References: <201012181554.54186.gambas@...1...> Message-ID: <201012210327.33623.gambas@...1...> > > - SYSTEM, that returns the current OS ("Linux", "FreeBSD", "MacOSX"...) > > Are you thinking to port gambas3 to MacOSX? > > Regards, > Ricardo D?az > Not directly. Wellington de Souza Pinto tries to compile Gambas 3 on MacOSX, but I have no news from him since Dec. 12th. -- Beno?t Minisini From oceanosoftlapalma at ...626... Tue Dec 21 08:25:14 2010 From: oceanosoftlapalma at ...626... (=?ISO-8859-1?Q?Ricardo_D=EDaz_Mart=EDn?=) Date: Tue, 21 Dec 2010 08:25:14 +0100 Subject: [Gambas-user] IsFloat In-Reply-To: References: Message-ID: I think it's right, because an integer isn't a float. Maybe you're thinking in other function like "CanBeConvertedToFloat()" (doesn't exist in gambas but it's on my own functions set). Regards, Ricardo D?az 2010/12/20 Jussi Lahtinen > Hi! > > Is this correct; > ? IsFloat("123") > False > > 123 should be safe value for float, even if it can be stored to integer. > With consistent logic IsLong("1") should answer False, so I think this is > bug. > > > Gambas 3 rev 3384 @ Ubuntu 10.10 64bit > > Jussi > > ------------------------------------------------------------------------------ > Lotusphere 2011 > Register now for Lotusphere 2011 and learn how > to connect the dots, take your collaborative environment > to the next level, and enter the era of Social Business. > http://p.sf.net/sfu/lotusphere-d2d > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From austinium at ...43... Tue Dec 21 10:22:13 2010 From: austinium at ...43... (vikram) Date: Tue, 21 Dec 2010 01:22:13 -0800 (PST) Subject: [Gambas-user] Displaying the same form n times In-Reply-To: <427906.88175.qm@...2517...> Message-ID: <118966.85551.qm@...2512...> Thank you very much :) --- On Tue, 12/21/10, vikram wrote: From: vikram Subject: To: "self" Date: Tuesday, December 21, 2010, 4:21 AM just use .ShowModal insteed of .show 2010/12/20 vikram : > Hi, > > Thanks a lot for your response :) > This opens all the IP > Input dialogs at one go. It would be better if the IP input dialogs > were displayed one after the other. Maybe theres a way to link one dialog's Open event to another's Close event, or maybe there is some other way to do this. > > Thanks again, > Vikram > > --- On Mon, 12/20/10, vikram wrote: > > From: vikram > Subject: [Gambas-user] Displaying the same form n times > To: austinium at ...43... > Date: Monday, December 20, 2010, 6:52 AM > > PUBLIC SUB Button1_Click() > > ?DIM count AS Integer > ?dim hForm as IPinput > ?ascount = txtAScount.Text ? ? ? ?'Point 1 ?'''never use underscore > in names and str to int is automatic > > ?FOR count = 1 TO ascount > ? ?hForm = New IPinput > ? ?hForm.show > > ?NEXT > END > > > > in IP Input form add : > > STATIC PUBLIC aIP as NEW STRING[] > > > > PUBLIC SUB Button_Clic() > > IPInput.aIP.Add(txtInput.Text) > > END > > > > > > > > > > > 2010/12/20 vikram : >> Hi, >> >> I have two forms in my application, the first one asks how many Application Servers to configure, and then displays second one(IP input dialog) for each Application Server. For example if there are 5 Application Server, the IP input > ?dialog is displayed 5 times. >> >> I was thinking of calling the IP input dialog from a FOR loop within the first form, >> >> PUBLIC SUB Button1_Click() >> >> ? DIM count AS Integer >> >> ? ascount = CInt(txt_AScount.Text)?? ??? ?'Point 1 >> >> ? FOR count = 1 TO ascount >> ??? IPinput.show >> >> ? NEXT >> END >> >> There are two things I am unsure of here: >> 1.the number of IP Addresses to be entered is to decided at runtime, I was thinking of storing all IP Addresses entered via the IP input dialog into a String array. But there is no >> ?way of deciding what the size of the string array should be till Point 1(marked in code), and it is not possible syntactically to define an array at that point in code. >> 2.The FOR loop for displaying the IP input dialog is not displaying the form > ?ascount times. It only displays it once. >> >> This probably not as complex as it seems, but i am stuck at this point trying to find a solution to this :( I am attaching a sample project with this mail for your reference. >> >> Any help would be greatly appreciated. >> >> Thanks in advance, >> Vikram >> >> >> >> >> ------------------------------------------------------------------------------ >> Lotusphere 2011 >> Register now for Lotusphere 2011 and learn how >> to connect the dots, take your collaborative environment >> to the next level, and enter the era of Social Business. >> http://p.sf.net/sfu/lotusphere-d2d >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> >> > > > > -- > Fabien Bodard > > > > > > > > ------------------------------------------------------------------------------ > Lotusphere 2011 > Register now for Lotusphere 2011 and learn how > to connect the dots, take your collaborative environment > to the next level, and enter the era of Social Business. > http://p.sf.net/sfu/lotusphere-d2d > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Fabien Bodard From gambas at ...1... Tue Dec 21 12:29:52 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Tue, 21 Dec 2010 12:29:52 +0100 Subject: [Gambas-user] IsFloat In-Reply-To: References: Message-ID: <201012211229.52117.gambas@...1...> > I think it's right, because an integer isn't a float. Maybe you're thinking > in other function like "CanBeConvertedToFloat()" (doesn't exist in gambas > but it's on my own functions set). > > Regards, > Ricardo D?az > I think Jussi is right there. After all, an Integer or a Long can always be converted to a Float. So I will modify IsFloat() accordingly, and it will becoming a synonymous of IsNumber(). Regards, -- Beno?t Minisini From gambas at ...1... Tue Dec 21 15:08:03 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Tue, 21 Dec 2010 15:08:03 +0100 Subject: [Gambas-user] Control.Proxy property (was Re: Gambas 3 advancement) In-Reply-To: <201012210326.06618.gambas@...1...> References: <201012191758.36143.gambas@...1...> <201012210326.06618.gambas@...1...> Message-ID: <201012211508.03717.gambas@...1...> > > I'm currently implementing a Proxy class that allows to automatically > delegate events from one object to another one. But the result is not > beautiful. I must think about all that... I finally dropped my "Proxy" class, finding no way to implement it correctly. Instead, I created a "Proxy" property in the Control class. When a control has a proxy, it will raise all mouse and keyboard events of its proxy for itself (the proxy keeps its own events). Moreover, SetFocus() and HasFocus() on the control will actually act on the proxy. For example, in the ValueBox user control, the inner TextBox is set as its proxy. That way, all keyboard events of the TextBox are catched as if the ValueBox has raised them. -- Beno?t Minisini From eilert-sprachen at ...221... Tue Dec 21 15:41:53 2010 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Tue, 21 Dec 2010 15:41:53 +0100 Subject: [Gambas-user] Making a web app Message-ID: <4D10BCB1.1000205@...221...> Hi folks, Just had the idea to implement a small application to be called via a browser (it is to show the user a collection of pdf files, some choices to choose from etc.). How could I do this in Gambas, or better: where do I start? I've done command line applications in Gambas before, but how do I feed apache with it? Just give me a few hints where and how to start, only general things... Thanks! Rolf From eilert-sprachen at ...221... Tue Dec 21 17:34:39 2010 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Tue, 21 Dec 2010 17:34:39 +0100 Subject: [Gambas-user] Making a web app In-Reply-To: <4D10BCB1.1000205@...221...> References: <4D10BCB1.1000205@...221...> Message-ID: <4D10D71F.1050408@...221...> Am 21.12.2010 15:41, schrieb Rolf-Werner Eilert: > Hi folks, > > Just had the idea to implement a small application to be called via a > browser (it is to show the user a collection of pdf files, some choices > to choose from etc.). > > How could I do this in Gambas, or better: where do I start? I've done > command line applications in Gambas before, but how do I feed apache > with it? > > Just give me a few hints where and how to start, only general things... > > Thanks! > > Rolf > Now, to make things somewhat clearer, let me add this: During the last two hours or so I set up a commandline application in Gambas doing this: PUBLIC SUB Main() PRINT "" PRINT "" PRINT "" PRINT " Testseite " PRINT "" PRINT "" PRINT "

Testeingabe

" PRINT "" PRINT "" END Made an executable from it and placed it in cgi-bin. In htdocs I produced a small html file which is intended to call it. I tried several ways of calling it, but I always get the same server error saying Premature end of script headers: (and the name of the executable) So what does it mean? Regards Rolf From eilert-sprachen at ...221... Tue Dec 21 18:09:52 2010 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Tue, 21 Dec 2010 18:09:52 +0100 Subject: [Gambas-user] Making a web app In-Reply-To: <4D10D71F.1050408@...221...> References: <4D10BCB1.1000205@...221...> <4D10D71F.1050408@...221...> Message-ID: <4D10DF60.40702@...221...> Sorry for bothering you with this, I guess it all boils down to this error I found in the apache error log: /usr/bin/env cannot find gbr2: /usr/bin/env: gbr2: no such file or directory The script can be started from the command line, however. Strange thing... Regards Rolf From jussi.lahtinen at ...626... Tue Dec 21 18:18:22 2010 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Tue, 21 Dec 2010 19:18:22 +0200 Subject: [Gambas-user] IsFloat In-Reply-To: <201012211229.52117.gambas@...1...> References: <201012211229.52117.gambas@...1...> Message-ID: I was wondering if some (definitely not all!) of IsXXX functions should have different names, example SafeForXXX or similar? That would describe their new functionality better. Example, IsNull really tells if value Is Null or not (so IsNull is good name), but IsFloat tells only if value is safe to interpret as float. So it doesn't really say if value *Is Float* or not. What do you think? Jussi 2010/12/21 Beno?t Minisini > > I think it's right, because an integer isn't a float. Maybe you're > thinking > > in other function like "CanBeConvertedToFloat()" (doesn't exist in gambas > > but it's on my own functions set). > > > > Regards, > > Ricardo D?az > > > > I think Jussi is right there. After all, an Integer or a Long can always be > converted to a Float. > > So I will modify IsFloat() accordingly, and it will becoming a synonymous > of > IsNumber(). > > Regards, > > -- > Beno?t Minisini > > > ------------------------------------------------------------------------------ > Lotusphere 2011 > Register now for Lotusphere 2011 and learn how > to connect the dots, take your collaborative environment > to the next level, and enter the era of Social Business. > http://p.sf.net/sfu/lotusphere-d2d > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From jussi.lahtinen at ...626... Tue Dec 21 18:21:12 2010 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Tue, 21 Dec 2010 19:21:12 +0200 Subject: [Gambas-user] IsFloat In-Reply-To: References: <201012211229.52117.gambas@...1...> Message-ID: Also that would prevent mix up with IsXXX functions when moving from Gambas 2 to 3. Jussi On Tue, Dec 21, 2010 at 19:18, Jussi Lahtinen wrote: > I was wondering if some (definitely not all!) of IsXXX functions should > have different names, example SafeForXXX or similar? > That would describe their new functionality better. > Example, IsNull really tells if value Is Null or not (so IsNull is good > name), but IsFloat tells only if value is safe to interpret as float. > So it doesn't really say if value *Is Float* or not. > > What do you think? > > Jussi > > > > > 2010/12/21 Beno?t Minisini > > > I think it's right, because an integer isn't a float. Maybe you're >> thinking >> > in other function like "CanBeConvertedToFloat()" (doesn't exist in >> gambas >> > but it's on my own functions set). >> > >> > Regards, >> > Ricardo D?az >> > >> >> I think Jussi is right there. After all, an Integer or a Long can always >> be >> converted to a Float. >> >> So I will modify IsFloat() accordingly, and it will becoming a synonymous >> of >> IsNumber(). >> >> Regards, >> >> -- >> Beno?t Minisini >> >> >> ------------------------------------------------------------------------------ >> Lotusphere 2011 >> Register now for Lotusphere 2011 and learn how >> to connect the dots, take your collaborative environment >> to the next level, and enter the era of Social Business. >> http://p.sf.net/sfu/lotusphere-d2d >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > From rolf.frogs at ...221... Tue Dec 21 18:21:34 2010 From: rolf.frogs at ...221... (Rolf Schmidt) Date: Tue, 21 Dec 2010 18:21:34 +0100 Subject: [Gambas-user] Making a web app In-Reply-To: <4D10D71F.1050408@...221...> References: <4D10BCB1.1000205@...221...> <4D10D71F.1050408@...221...> Message-ID: <201012211821.37794.rolf.frogs@...221...> Hi Rolf-Werner > Now, to make things somewhat clearer, let me add this: > > During the last two hours or so I set up a commandline application in > Gambas doing this: > > PUBLIC SUB Main() > > PRINT " Transitional//EN\">" Here you have to print an empty line - its part of the HTML-Standard! > PRINT " > PRINT "" > PRINT " Testseite " > PRINT "" > PRINT "" > PRINT "

Testeingabe

" > PRINT "" > PRINT "" > > > END > Premature end of script headers: (and the name of the executable) Error comes form bad formated HTM-Output. Gru? Rolf -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part. URL: From gambas at ...1... Tue Dec 21 18:23:08 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Tue, 21 Dec 2010 18:23:08 +0100 Subject: [Gambas-user] Making a web app In-Reply-To: <4D10DF60.40702@...221...> References: <4D10BCB1.1000205@...221...> <4D10D71F.1050408@...221...> <4D10DF60.40702@...221...> Message-ID: <201012211823.08817.gambas@...1...> > Sorry for bothering you with this, I guess it all boils down to this > error I found in the apache error log: /usr/bin/env cannot find gbr2: > > /usr/bin/env: gbr2: no such file or directory > > The script can be started from the command line, however. Strange thing... > > Regards > > Rolf > The PATH of the user used by Apache is not the same as yours, and so /usr/bin/env cannot find gbr2 when run by Apache. I guess that gbr2 is installed in /usr/local/bin on your system. If it is the case, install it in /usr/bin. If it is not the case, i.e. if gbr2 is already in /usr/bin, then I don't understand what happens. Regards, -- Beno?t Minisini From gambas.fr at ...626... Tue Dec 21 19:04:13 2010 From: gambas.fr at ...626... (Fabien Bodard) Date: Tue, 21 Dec 2010 19:04:13 +0100 Subject: [Gambas-user] Making a web app In-Reply-To: <201012211823.08817.gambas@...1...> References: <4D10BCB1.1000205@...221...> <4D10D71F.1050408@...221...> <4D10DF60.40702@...221...> <201012211823.08817.gambas@...1...> Message-ID: or just make link fro /usr/local/bin/gbr2 to /usr/bin Le 21 d?cembre 2010 18:23, Beno?t Minisini a ?crit : >> Sorry for bothering you with this, I guess it all boils down to this >> error I found in the apache error log: /usr/bin/env cannot find gbr2: >> >> /usr/bin/env: gbr2: no such file or directory >> >> The script can be started from the command line, however. Strange thing... >> >> Regards >> >> Rolf >> > > The PATH of the user used by Apache is not the same as yours, and so > /usr/bin/env cannot find gbr2 when run by Apache. > > I guess that gbr2 is installed in /usr/local/bin on your system. If it is the > case, install it in /usr/bin. If it is not the case, i.e. if gbr2 is already > in /usr/bin, then I don't understand what happens. > > Regards, > > -- > Beno?t Minisini > > ------------------------------------------------------------------------------ > Forrester recently released a report on the Return on Investment (ROI) of > Google Apps. They found a 300% ROI, 38%-56% cost savings, and break-even > within 7 months. ?Over 3 million businesses have gone Google with Google Apps: > an online email calendar, and document program that's accessible from your > browser. Read the Forrester report: http://p.sf.net/sfu/googleapps-sfnew > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Fabien Bodard From gambas at ...1... Tue Dec 21 18:44:10 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Tue, 21 Dec 2010 18:44:10 +0100 Subject: [Gambas-user] Gambas 3 advancement In-Reply-To: <4D0F1B57.5050506@...1909...> References: <201012191758.36143.gambas@...1...> <201012192130.45281.gambas@...1...> <4D0F1B57.5050506@...1909...> Message-ID: <201012211844.10821.gambas@...1...> > Beno?t Minisini ha scritto: > >> Pipes should not return EOF when the pipe is not closed. But they should > >> return EOF when the other side closes. > > > > Why ? > > Because this is the way *all* unix routines work, and the only logical one. > > > EOF() actually means "there is nothing to read anymore", which is the > > important needed information. > > Indeed: it means "nothing anymore", not "nothing at the moment". > > > If Eof() returns TRUE only when the pipe is closed: > > > > 1) How do you know that there is nothing to read anymore? > > I know that there is nothing to read now, and in the future too, if > eof() is true. If eof() is false, I know that some data could arrive, if > not now, in the future. Try "cat", one of the simplest unix commands. It > knows very well when there is data to read, when there is not, and when > the pipe is closed. > > > 2) What do you do for Sockets, for example? > > The same as pipes. If there is data to read, I read it. If there is not, > I don't. If eof() is true, I close my local socket because the other > peer has closed. May be I am missing something -- using your ideas, how > can you tell that a pipe (or a remote socket) is closed or not? > You get a point, but Eof() in Gambas does not actually mean what EOF means in Unix. I had only one Basic syntax for that, and I need to know if there is something to read on a stream, and I used Eof() for that. For a file stream, the two meanings are the same. But not for a pipe or a socket. At the moment, for a pipe or a socket, you get an error when it is closed. Note that for a socket, "there is date to read" does not mean the same thing than for a pipe, because there is the network between two sides of a socket. I will try to change the meaning of Eof() to match the Unix one, and see how many things break. And I will keep the meaning of Lof(), so that Lof() = 0 means that there is nothing to read, even if the new Eof() is False. Regards, -- Beno?t Minisini From gambas at ...1... Tue Dec 21 19:27:49 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Tue, 21 Dec 2010 19:27:49 +0100 Subject: [Gambas-user] Gambas 3 advancement In-Reply-To: <201012211844.10821.gambas@...1...> References: <201012191758.36143.gambas@...1...> <4D0F1B57.5050506@...1909...> <201012211844.10821.gambas@...1...> Message-ID: <201012211927.49712.gambas@...1...> > > Note that for a socket, "there is date to read" does not mean the same > thing than for a pipe, because there is the network between two sides of a > socket. > Oops. Try again... Note that for a socket, "there is some data to read" does not mean the same thing than for a pipe, because there is the network between the two sides of the socket. -- Beno?t Minisini From doriano.blengino at ...1909... Tue Dec 21 20:14:16 2010 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Tue, 21 Dec 2010 20:14:16 +0100 Subject: [Gambas-user] Gambas 3 advancement In-Reply-To: <201012211844.10821.gambas@...1...> References: <201012191758.36143.gambas@...1...> <201012192130.45281.gambas@...1...> <4D0F1B57.5050506@...1909...> <201012211844.10821.gambas@...1...> Message-ID: <4D10FC88.1080206@...1909...> Beno?t Minisini ha scritto: >> Beno?t Minisini ha scritto: >> >>>> Pipes should not return EOF when the pipe is not closed. But they should >>>> return EOF when the other side closes. >>>> >>> Why ? >>> >> Because this is the way *all* unix routines work, and the only logical one. >> >> > You get a point, but Eof() in Gambas does not actually mean what EOF means in > Unix. > > I had only one Basic syntax for that, and I need to know if there is something > to read on a stream, and I used Eof() for that. > > For a file stream, the two meanings are the same. But not for a pipe or a > socket. > > At the moment, for a pipe or a socket, you get an error when it is closed. > > Note that for a socket, "there is date to read" does not mean the same thing > than for a pipe, because there is the network between two sides of a socket. > (Readed the following mail too...) What do you mean? > I will try to change the meaning of Eof() to match the Unix one, and see how > many things break. > > And I will keep the meaning of Lof(), so that Lof() = 0 means that there is > nothing to read, even if the new Eof() is False. > The solution seems perfect. In the old days of basic, lof() was used on serial lines to see if there were data to read. Regards, Doriano From firman.isb at ...626... Tue Dec 21 23:19:51 2010 From: firman.isb at ...626... (firman) Date: Tue, 21 Dec 2010 14:19:51 -0800 (PST) Subject: [Gambas-user] Did anyone have a script to record webcame picture in video files In-Reply-To: References: <30442622.post@...1379...> <30496252.post@...1379...> Message-ID: <30510255.post@...1379...> i'm sorry,, i've problem with my gambas3, i tried to install it in ubuntu 10.10 and any problem there. When i openned gambas3 there was nothing menus.. but the project can openned. So i use os windows for put the source archive using winrar.. and here's the archive.. so u can extract the rar file first, and open it in gambas3. i'm wating for ur solutions for my project. thanks. http://old.nabble.com/file/p30510255/TACAMCCTVrev2.rar TACAMCCTVrev2.rar Jussi Lahtinen wrote: > > Project --> Make --> Source archive > And put the script in that tar ball also. > > Jussi > > > > On Mon, Dec 20, 2010 at 08:32, firman wrote: > >> >> okay i'll send u entire project, but which one do u need, Files project >> in >> package program or just All script in main form?? >> >> thank's >> >> >> >> Jussi Lahtinen wrote: >> > >> > It is easier to help if you send your whole project. >> > I can't see any handling for CatProcess. >> > >> > Jussi >> > >> > >> > On Sat, Dec 18, 2010 at 02:11, firman wrote: >> > >> >> >> >> >> >> I Almost done my project about monitoring camera using webcam with >> gambas >> >> 3... the picture or streaming video can displayed on picturebox but i >> >> still >> >> have a problem to record in video file mode r like avi, mpg or other >> >> compressed format.. please help me if anyone can solve my problem. i >> will >> >> showing u a picture of FMain my project... the record button still >> >> couldn't >> >> worked... >> >> >> >> i'm using gambas 3 svn... I've wrote the script like this, and worked >> the >> >> files created but still 0 KB or nothing recorded.... >> >> this is the script: >> >> >> >> 'Proses Menyimpan File record >> >> >> >> Public Sub InitCapture() >> >> >> >> If Not CatProcess Then >> >> bytesrecorded = 0 >> >> CatProcess = Exec ["cat", "/dev/video0"] For Read >> >> CatProcess = Exec ["cat", "/dev/video1"] For Read >> >> CatProcess = Exec ["cat", "/dev/video2"] For Read >> >> CatProcess = Exec ["cat", "/dev/video3"] For Read >> >> >> >> Endif >> >> >> >> UpdateBytesLabel() >> >> >> >> End >> >> >> >> Public Sub Process_Write(data As String) >> >> >> >> If pic1.Picture = $cam1.Image.Picture Then >> >> If pic2.Picture = $cam2.Image.Picture Then >> >> If pic3.Picture = $cam3.Image.Picture Then >> >> If pic4.Picture = $cam4.Image.Picture Then >> >> Return >> >> Endif >> >> Endif >> >> Endif >> >> Endif >> >> >> >> Try pic1.Picture.send(data) >> >> Try pic2.Picture.send(data) >> >> Try pic3.Picture.send(data) >> >> Try pic4.Picture.send(data) >> >> Try saveprocess.send(data) >> >> >> >> bytesrecorded = bytesrecorded + Len(data) >> >> >> >> End >> >> >> >> >> >> Public Sub btnRecord_Click() >> >> >> >> If btnRecord.text = "Record" Then >> >> bytesrecorded = 0 >> >> starttime = Now >> >> endtime = starttime >> >> initcapture() >> >> Tmr1_Timer() >> >> btnRecord.text = "Stop" >> >> SaveProcess = Exec ["bash", "-c", "cat > " & setFilename1()] For >> Write >> >> SaveProcess = Exec ["bash", "-c", "cat > " & setFilename2()] For >> Write >> >> SaveProcess = Exec ["bash", "-c", "cat > " & setFilename3()] For >> Write >> >> SaveProcess = Exec ["bash", "-c", "cat > " & setFilename4()] For >> Write >> >> Else >> >> endtime = Now >> >> >> >> Try saveprocess.kill >> >> btnRecord.text = "Record" >> >> setFilename1() >> >> setFilename2() >> >> setFilename3() >> >> setFilename4() >> >> Endif >> >> End >> >> >> >> Public Function setFilename1() As String >> >> >> >> Dim i As Integer >> >> >> >> i = 0 >> >> 'Do While Exist(Application.Path &/ "kamera1" & i & ".mpg") >> >> Do While Exist(User.Home &/ "kamera1" & i & ".mpg") >> >> i = i + 1 >> >> Loop >> >> 'Return Application.Path &/ "kamera1" & Format(i, "000") & ".mpg" >> >> Return User.Home &/ "kamera1" & Format(i, "000") & ".mpg" >> >> >> >> End >> >> >> >> >> >> Public Function setFilename2() As String >> >> >> >> Dim i As Integer >> >> i = 0 >> >> Do While Exist(User.Home &/ "kamera2" & i & ".mpg") >> >> i = i + 1 >> >> Loop >> >> Return User.Home &/ "kamera2" & Format(i, "000") & ".mpg" >> >> >> >> End >> >> >> >> >> >> Public Function setFilename3() As String >> >> >> >> Dim i As Integer >> >> i = 0 >> >> Do While Exist(User.Home &/ "kamera3" & i & ".mpg") >> >> i = i + 1 >> >> Loop >> >> Return User.Home &/ "kamera3" & Format(i, "000") & ".mpg" >> >> >> >> End >> >> >> >> >> >> Public Function setFilename4() As String >> >> >> >> Dim i As Integer >> >> i = 0 >> >> Do While Exist(User.Home &/ "kamera4" & i & ".mpg") >> >> i = i + 1 >> >> Loop >> >> Return User.Home &/ "kamera4" & Format(i, "000") & ".mpg" >> >> >> >> End >> >> >> >> Public Sub UpdateBytesLabel() >> >> Dim i As Float >> >> If bytesrecorded > 1048576 Then >> >> i = Int(bytesrecorded / 100000) >> >> Else >> >> i = Int(bytesrecorded / 100) >> >> Endif >> >> >> >> End >> >> >> >> Public Sub UpdateTimeLabel() >> >> >> >> If starttime = "00:00:00" Then Return >> >> If endtime <> starttime Then Return >> >> >> >> TextDate1.text = Time(CDate(CInt(Now) + (Now - starttime) + >> >> timezoneadjust)) >> >> >> >> End >> >> >> >> anyone can solve my problem please...? >> >> >> >> -- >> >> View this message in context: >> >> >> http://old.nabble.com/Did-anyone-have-a-script-to-record-webcame-picture-in-video-files-tp30442622p30442622.html >> >> Sent from the gambas-user mailing list archive at Nabble.com. >> >> >> >> >> >> >> >> >> ------------------------------------------------------------------------------ >> >> Lotusphere 2011 >> >> Register now for Lotusphere 2011 and learn how >> >> to connect the dots, take your collaborative environment >> >> to the next level, and enter the era of Social Business. >> >> http://p.sf.net/sfu/lotusphere-d2d >> >> _______________________________________________ >> >> Gambas-user mailing list >> >> Gambas-user at lists.sourceforge.net >> >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> >> >> > >> ------------------------------------------------------------------------------ >> > Lotusphere 2011 >> > Register now for Lotusphere 2011 and learn how >> > to connect the dots, take your collaborative environment >> > to the next level, and enter the era of Social Business. >> > http://p.sf.net/sfu/lotusphere-d2d >> > _______________________________________________ >> > Gambas-user mailing list >> > Gambas-user at lists.sourceforge.net >> > https://lists.sourceforge.net/lists/listinfo/gambas-user >> > >> > >> >> -- >> View this message in context: >> http://old.nabble.com/Did-anyone-have-a-script-to-record-webcame-picture-in-video-files-tp30442622p30496252.html >> Sent from the gambas-user mailing list archive at Nabble.com. >> >> >> >> ------------------------------------------------------------------------------ >> Lotusphere 2011 >> Register now for Lotusphere 2011 and learn how >> to connect the dots, take your collaborative environment >> to the next level, and enter the era of Social Business. >> http://p.sf.net/sfu/lotusphere-d2d >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > ------------------------------------------------------------------------------ > Lotusphere 2011 > Register now for Lotusphere 2011 and learn how > to connect the dots, take your collaborative environment > to the next level, and enter the era of Social Business. > http://p.sf.net/sfu/lotusphere-d2d > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > -- View this message in context: http://old.nabble.com/Did-anyone-have-a-script-to-record-webcame-picture-in-video-files-tp30442622p30510255.html Sent from the gambas-user mailing list archive at Nabble.com. From nkoch22 at ...626... Wed Dec 22 07:34:08 2010 From: nkoch22 at ...626... (Nicolas Koch) Date: Wed, 22 Dec 2010 01:34:08 -0500 Subject: [Gambas-user] CDE. An interesting packaging tool In-Reply-To: <1289741038.6084.3.camel@...2494...> References: <.77.224.23.61.1289640081.squirrel@...2402...> <201011141217.33773.gambas@...1...> <201011141222.33813.gambas@...1...> <201011141243.43859.gambas@...1...> <1289741038.6084.3.camel@...2494...> Message-ID: IS there any movement on the Gambas3 packaging suite to compile and/or include the runtime and libs for the various distributions? I also looked at the CDE route and exceptions can be made to keep files to a minimum and just run your app with cde gbr3 project.gambas I got minimal results though because while CDE works, it's kind of a pain when I want to interact with system files and such outside the cde-root. Benoit... any idea on how life will be in Gambas 3 for packaging runtime/libs? I know I am not the only one begging for this :D Thanks for your time. Nick On Sun, Nov 14, 2010 at 8:23 AM, Demosthenes Koptsis wrote: > yes this is better. > > i tried cde with gambas project and it copied all the files in > cde-package included passwd /home directory and other files that > application used. > > This feature should work only for libs and as an option for packagers > not "an only way" method. > > This is my opinion. > > On Sun, 2010-11-14 at 12:43 +0100, Beno?t Minisini wrote: > > > > > Although I'm not a gambas developer, I appreciate the idea. I would > > > > > prefer to have all the must-haves packaged into single file, > instead of > > > > > fighting with unresolved package dependencies. It's better to have > a > > > > > myprogram.bin installer, than myprogram.rpm, myprogram.deb... Maybe > > > > > Benoit would argue because of the package size. It's more like > Windows. > > > > > But who cares. If I'd be sure my program will run independently of > the > > > > > Linux platform flavor, I'd yes to size increment. > > > > > > > > > > Csaba > > > > > > > > This is exactly what Cristian Abarzua F. (craf) tried to achieve. But > it > > > > did it by hand, I tried to help him, but we encountered problems. > > > > > > > > Apparently 'cde' seems to work, so I should try it and integrate it > > > > inside the IDE packager. > > > > > > > > So, no I'm not fully against that kind of package now. Except that > users > > > > should be aware of the following: > > > > > > > > - They will be bigger (imagine a full Gambas GUI program relying of a > lot > > > > of components). > > > > > > > > - System security fix and updates won't apply to them. So packagers > must > > > > regularly repackage them. (Same nightmare as in windows). > > > > > > > > Regards, > > > > > > Another possible problem: Gambas can load a component during the > execution > > > of a program (Component.Load() method), not necesarilly at startup. So > you > > > must take that into account when making a cde package! > > > > > > Moreover, some component uses that feature. For example, the Gambas 3 > > > gb.form.stock hidden component included a full stock of icons that is > > > loaded only if an icon is not found in the Gnome or KDE icon themes > > > installed on the system (which is very possible if you didn't install > both > > > Gnome and KDE). > > > > > > Regards, > > > > Another problem again: > > > > cde will store in the packages *all* existing files opened by the program > > during its execution. Maybe I should take the source code of 'cde' and > modify > > it to only store the shared libraries? > > > > > > > ------------------------------------------------------------------------------ > Centralized Desktop Delivery: Dell and VMware Reference Architecture > Simplifying enterprise desktop deployment and management using > Dell EqualLogic storage and VMware View: A highly scalable, end-to-end > client virtualization framework. Read more! > http://p.sf.net/sfu/dell-eql-dev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas.fr at ...626... Wed Dec 22 07:43:16 2010 From: gambas.fr at ...626... (Fabien Bodard) Date: Wed, 22 Dec 2010 07:43:16 +0100 Subject: [Gambas-user] Did anyone have a script to record webcame picture in video files In-Reply-To: <30510255.post@...1379...> References: <30442622.post@...1379...> <30496252.post@...1379...> <30510255.post@...1379...> Message-ID: ctrl+alt+m... to show the menu ? 2010/12/21 firman : > > i'm sorry,, ?i've problem with my gambas3, i tried to install it in ubuntu > 10.10 and any problem there. When i openned gambas3 there was nothing > menus.. but the project can openned. So i use os windows for put the source > archive using winrar.. > > and here's the archive.. so u can extract the rar file first, and open it in > gambas3. ?i'm wating for ur solutions for my project. thanks. > http://old.nabble.com/file/p30510255/TACAMCCTVrev2.rar TACAMCCTVrev2.rar > > > > Jussi Lahtinen wrote: >> >> Project --> Make --> Source archive >> And put the script in that tar ball also. >> >> Jussi >> >> >> >> On Mon, Dec 20, 2010 at 08:32, firman wrote: >> >>> >>> okay i'll send u entire project, but which one do u need, Files project >>> in >>> package program or just All script in main form?? >>> >>> thank's >>> >>> >>> >>> Jussi Lahtinen wrote: >>> > >>> > It is easier to help if you send your whole project. >>> > I can't see any handling for CatProcess. >>> > >>> > Jussi >>> > >>> > >>> > On Sat, Dec 18, 2010 at 02:11, firman wrote: >>> > >>> >> >>> >> >>> >> I Almost done my project about monitoring camera using webcam with >>> gambas >>> >> 3... the picture or streaming video can displayed on picturebox but i >>> >> still >>> >> have a problem to record in video file mode r like avi, ?mpg or other >>> >> compressed format.. please help me if anyone can solve my problem. i >>> will >>> >> showing u a picture of FMain my project... the record button still >>> >> couldn't >>> >> worked... >>> >> >>> >> i'm using gambas 3 svn... I've wrote the script like this, and worked >>> the >>> >> files created but still 0 KB or nothing recorded.... >>> >> this is the script: >>> >> >>> >> 'Proses Menyimpan File record >>> >> >>> >> Public Sub InitCapture() >>> >> >>> >> ?If Not CatProcess Then >>> >> ? ?bytesrecorded = 0 >>> >> ? ?CatProcess = Exec ["cat", "/dev/video0"] For Read >>> >> ? ?CatProcess = Exec ["cat", "/dev/video1"] For Read >>> >> ? ?CatProcess = Exec ["cat", "/dev/video2"] For Read >>> >> ? ?CatProcess = Exec ["cat", "/dev/video3"] For Read >>> >> >>> >> ?Endif >>> >> >>> >> ?UpdateBytesLabel() >>> >> >>> >> End >>> >> >>> >> Public Sub Process_Write(data As String) >>> >> >>> >> ?If pic1.Picture = $cam1.Image.Picture Then >>> >> ? If pic2.Picture = $cam2.Image.Picture Then >>> >> ? ? If pic3.Picture = $cam3.Image.Picture Then >>> >> ? ? ? If pic4.Picture = $cam4.Image.Picture Then >>> >> ? ? ? Return >>> >> ? ? ? Endif >>> >> ? ? Endif >>> >> ? Endif >>> >> ?Endif >>> >> >>> >> ?Try pic1.Picture.send(data) >>> >> ?Try pic2.Picture.send(data) >>> >> ?Try pic3.Picture.send(data) >>> >> ?Try pic4.Picture.send(data) >>> >> ?Try saveprocess.send(data) >>> >> >>> >> ?bytesrecorded = bytesrecorded + Len(data) >>> >> >>> >> End >>> >> >>> >> >>> >> Public Sub btnRecord_Click() >>> >> >>> >> ?If btnRecord.text = "Record" Then >>> >> ? ?bytesrecorded = 0 >>> >> ? ?starttime = Now >>> >> ? ?endtime = starttime >>> >> ? ?initcapture() >>> >> ? ?Tmr1_Timer() >>> >> ? ?btnRecord.text = "Stop" >>> >> ? ?SaveProcess = Exec ["bash", "-c", "cat > " & setFilename1()] For >>> Write >>> >> ? ?SaveProcess = Exec ["bash", "-c", "cat > " & setFilename2()] For >>> Write >>> >> ? ?SaveProcess = Exec ["bash", "-c", "cat > " & setFilename3()] For >>> Write >>> >> ? ?SaveProcess = Exec ["bash", "-c", "cat > " & setFilename4()] For >>> Write >>> >> ?Else >>> >> ? ?endtime = Now >>> >> >>> >> ? ?Try saveprocess.kill >>> >> ? ?btnRecord.text = "Record" >>> >> ? ?setFilename1() >>> >> ? ?setFilename2() >>> >> ? ?setFilename3() >>> >> ? ?setFilename4() >>> >> ?Endif >>> >> End >>> >> >>> >> Public Function setFilename1() As String >>> >> >>> >> ?Dim i As Integer >>> >> >>> >> ?i = 0 >>> >> ?'Do While Exist(Application.Path &/ "kamera1" & i & ".mpg") >>> >> ?Do While Exist(User.Home &/ "kamera1" & i & ".mpg") >>> >> ?i = i + 1 >>> >> ?Loop >>> >> ?'Return Application.Path &/ "kamera1" & Format(i, "000") & ".mpg" >>> >> ?Return User.Home &/ "kamera1" & Format(i, "000") & ".mpg" >>> >> >>> >> End >>> >> >>> >> >>> >> Public Function setFilename2() As String >>> >> >>> >> ?Dim i As Integer >>> >> ?i = 0 >>> >> ?Do While Exist(User.Home &/ "kamera2" & i & ".mpg") >>> >> ? ?i = i + 1 >>> >> ?Loop >>> >> ?Return User.Home &/ "kamera2" & Format(i, "000") & ".mpg" >>> >> >>> >> End >>> >> >>> >> >>> >> Public Function setFilename3() As String >>> >> >>> >> ?Dim i As Integer >>> >> ?i = 0 >>> >> ?Do While Exist(User.Home &/ "kamera3" & i & ".mpg") >>> >> ? ?i = i + 1 >>> >> ?Loop >>> >> ?Return User.Home &/ "kamera3" & Format(i, "000") & ".mpg" >>> >> >>> >> End >>> >> >>> >> >>> >> Public Function setFilename4() As String >>> >> >>> >> ?Dim i As Integer >>> >> ?i = 0 >>> >> ?Do While Exist(User.Home &/ "kamera4" & i & ".mpg") >>> >> ? ?i = i + 1 >>> >> ?Loop >>> >> ?Return User.Home &/ "kamera4" & Format(i, "000") & ".mpg" >>> >> >>> >> End >>> >> >>> >> Public Sub UpdateBytesLabel() >>> >> ?Dim i As Float >>> >> ?If bytesrecorded > 1048576 Then >>> >> ? ?i = Int(bytesrecorded / 100000) >>> >> ?Else >>> >> ? ?i = Int(bytesrecorded / 100) >>> >> ?Endif >>> >> >>> >> End >>> >> >>> >> Public Sub UpdateTimeLabel() >>> >> >>> >> ?If starttime = "00:00:00" Then Return >>> >> ?If endtime <> starttime Then Return >>> >> >>> >> ?TextDate1.text = Time(CDate(CInt(Now) + (Now - starttime) + >>> >> timezoneadjust)) >>> >> >>> >> End >>> >> >>> >> anyone can solve my problem please...? >>> >> >>> >> -- >>> >> View this message in context: >>> >> >>> http://old.nabble.com/Did-anyone-have-a-script-to-record-webcame-picture-in-video-files-tp30442622p30442622.html >>> >> Sent from the gambas-user mailing list archive at Nabble.com. >>> >> >>> >> >>> >> >>> >> >>> ------------------------------------------------------------------------------ >>> >> Lotusphere 2011 >>> >> Register now for Lotusphere 2011 and learn how >>> >> to connect the dots, take your collaborative environment >>> >> to the next level, and enter the era of Social Business. >>> >> http://p.sf.net/sfu/lotusphere-d2d >>> >> _______________________________________________ >>> >> Gambas-user mailing list >>> >> Gambas-user at lists.sourceforge.net >>> >> https://lists.sourceforge.net/lists/listinfo/gambas-user >>> >> >>> > >>> ------------------------------------------------------------------------------ >>> > Lotusphere 2011 >>> > Register now for Lotusphere 2011 and learn how >>> > to connect the dots, take your collaborative environment >>> > to the next level, and enter the era of Social Business. >>> > http://p.sf.net/sfu/lotusphere-d2d >>> > _______________________________________________ >>> > Gambas-user mailing list >>> > Gambas-user at lists.sourceforge.net >>> > https://lists.sourceforge.net/lists/listinfo/gambas-user >>> > >>> > >>> >>> -- >>> View this message in context: >>> http://old.nabble.com/Did-anyone-have-a-script-to-record-webcame-picture-in-video-files-tp30442622p30496252.html >>> Sent from the gambas-user mailing list archive at Nabble.com. >>> >>> >>> >>> ------------------------------------------------------------------------------ >>> Lotusphere 2011 >>> Register now for Lotusphere 2011 and learn how >>> to connect the dots, take your collaborative environment >>> to the next level, and enter the era of Social Business. >>> http://p.sf.net/sfu/lotusphere-d2d >>> _______________________________________________ >>> Gambas-user mailing list >>> Gambas-user at lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>> >> ------------------------------------------------------------------------------ >> Lotusphere 2011 >> Register now for Lotusphere 2011 and learn how >> to connect the dots, take your collaborative environment >> to the next level, and enter the era of Social Business. >> http://p.sf.net/sfu/lotusphere-d2d >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> >> > > -- > View this message in context: http://old.nabble.com/Did-anyone-have-a-script-to-record-webcame-picture-in-video-files-tp30442622p30510255.html > Sent from the gambas-user mailing list archive at Nabble.com. > > > ------------------------------------------------------------------------------ > Forrester recently released a report on the Return on Investment (ROI) of > Google Apps. They found a 300% ROI, 38%-56% cost savings, and break-even > within 7 months. ?Over 3 million businesses have gone Google with Google Apps: > an online email calendar, and document program that's accessible from your > browser. Read the Forrester report: http://p.sf.net/sfu/googleapps-sfnew > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Fabien Bodard From firman.isb at ...626... Wed Dec 22 09:38:31 2010 From: firman.isb at ...626... (firman) Date: Wed, 22 Dec 2010 00:38:31 -0800 (PST) Subject: [Gambas-user] Did anyone have a script to record webcame picture in video files In-Reply-To: References: <30442622.post@...1379...> <30496252.post@...1379...> <30510255.post@...1379...> Message-ID: <30512324.post@...1379...> Thanks Mr. Fabien, I've tried to use that key but nothing change, and still nothing menus could show.. maybe i must change my ubuntu to 10.04 again... Fabien Bodard-4 wrote: > > ctrl+alt+m... to show the menu ? > > 2010/12/21 firman : >> >> i'm sorry,, ?i've problem with my gambas3, i tried to install it in >> ubuntu >> 10.10 and any problem there. When i openned gambas3 there was nothing >> menus.. but the project can openned. So i use os windows for put the >> source >> archive using winrar.. >> >> and here's the archive.. so u can extract the rar file first, and open it >> in >> gambas3. ?i'm wating for ur solutions for my project. thanks. >> http://old.nabble.com/file/p30510255/TACAMCCTVrev2.rar TACAMCCTVrev2.rar >> >> >> >> Jussi Lahtinen wrote: >>> >>> Project --> Make --> Source archive >>> And put the script in that tar ball also. >>> >>> Jussi >>> >>> >>> >>> On Mon, Dec 20, 2010 at 08:32, firman wrote: >>> >>>> >>>> okay i'll send u entire project, but which one do u need, Files project >>>> in >>>> package program or just All script in main form?? >>>> >>>> thank's >>>> >>>> >>>> >>>> Jussi Lahtinen wrote: >>>> > >>>> > It is easier to help if you send your whole project. >>>> > I can't see any handling for CatProcess. >>>> > >>>> > Jussi >>>> > >>>> > >>>> > On Sat, Dec 18, 2010 at 02:11, firman wrote: >>>> > >>>> >> >>>> >> >>>> >> I Almost done my project about monitoring camera using webcam with >>>> gambas >>>> >> 3... the picture or streaming video can displayed on picturebox but >>>> i >>>> >> still >>>> >> have a problem to record in video file mode r like avi, ?mpg or >>>> other >>>> >> compressed format.. please help me if anyone can solve my problem. i >>>> will >>>> >> showing u a picture of FMain my project... the record button still >>>> >> couldn't >>>> >> worked... >>>> >> >>>> >> i'm using gambas 3 svn... I've wrote the script like this, and >>>> worked >>>> the >>>> >> files created but still 0 KB or nothing recorded.... >>>> >> this is the script: >>>> >> >>>> >> 'Proses Menyimpan File record >>>> >> >>>> >> Public Sub InitCapture() >>>> >> >>>> >> ?If Not CatProcess Then >>>> >> ? ?bytesrecorded = 0 >>>> >> ? ?CatProcess = Exec ["cat", "/dev/video0"] For Read >>>> >> ? ?CatProcess = Exec ["cat", "/dev/video1"] For Read >>>> >> ? ?CatProcess = Exec ["cat", "/dev/video2"] For Read >>>> >> ? ?CatProcess = Exec ["cat", "/dev/video3"] For Read >>>> >> >>>> >> ?Endif >>>> >> >>>> >> ?UpdateBytesLabel() >>>> >> >>>> >> End >>>> >> >>>> >> Public Sub Process_Write(data As String) >>>> >> >>>> >> ?If pic1.Picture = $cam1.Image.Picture Then >>>> >> ? If pic2.Picture = $cam2.Image.Picture Then >>>> >> ? ? If pic3.Picture = $cam3.Image.Picture Then >>>> >> ? ? ? If pic4.Picture = $cam4.Image.Picture Then >>>> >> ? ? ? Return >>>> >> ? ? ? Endif >>>> >> ? ? Endif >>>> >> ? Endif >>>> >> ?Endif >>>> >> >>>> >> ?Try pic1.Picture.send(data) >>>> >> ?Try pic2.Picture.send(data) >>>> >> ?Try pic3.Picture.send(data) >>>> >> ?Try pic4.Picture.send(data) >>>> >> ?Try saveprocess.send(data) >>>> >> >>>> >> ?bytesrecorded = bytesrecorded + Len(data) >>>> >> >>>> >> End >>>> >> >>>> >> >>>> >> Public Sub btnRecord_Click() >>>> >> >>>> >> ?If btnRecord.text = "Record" Then >>>> >> ? ?bytesrecorded = 0 >>>> >> ? ?starttime = Now >>>> >> ? ?endtime = starttime >>>> >> ? ?initcapture() >>>> >> ? ?Tmr1_Timer() >>>> >> ? ?btnRecord.text = "Stop" >>>> >> ? ?SaveProcess = Exec ["bash", "-c", "cat > " & setFilename1()] For >>>> Write >>>> >> ? ?SaveProcess = Exec ["bash", "-c", "cat > " & setFilename2()] For >>>> Write >>>> >> ? ?SaveProcess = Exec ["bash", "-c", "cat > " & setFilename3()] For >>>> Write >>>> >> ? ?SaveProcess = Exec ["bash", "-c", "cat > " & setFilename4()] For >>>> Write >>>> >> ?Else >>>> >> ? ?endtime = Now >>>> >> >>>> >> ? ?Try saveprocess.kill >>>> >> ? ?btnRecord.text = "Record" >>>> >> ? ?setFilename1() >>>> >> ? ?setFilename2() >>>> >> ? ?setFilename3() >>>> >> ? ?setFilename4() >>>> >> ?Endif >>>> >> End >>>> >> >>>> >> Public Function setFilename1() As String >>>> >> >>>> >> ?Dim i As Integer >>>> >> >>>> >> ?i = 0 >>>> >> ?'Do While Exist(Application.Path &/ "kamera1" & i & ".mpg") >>>> >> ?Do While Exist(User.Home &/ "kamera1" & i & ".mpg") >>>> >> ?i = i + 1 >>>> >> ?Loop >>>> >> ?'Return Application.Path &/ "kamera1" & Format(i, "000") & ".mpg" >>>> >> ?Return User.Home &/ "kamera1" & Format(i, "000") & ".mpg" >>>> >> >>>> >> End >>>> >> >>>> >> >>>> >> Public Function setFilename2() As String >>>> >> >>>> >> ?Dim i As Integer >>>> >> ?i = 0 >>>> >> ?Do While Exist(User.Home &/ "kamera2" & i & ".mpg") >>>> >> ? ?i = i + 1 >>>> >> ?Loop >>>> >> ?Return User.Home &/ "kamera2" & Format(i, "000") & ".mpg" >>>> >> >>>> >> End >>>> >> >>>> >> >>>> >> Public Function setFilename3() As String >>>> >> >>>> >> ?Dim i As Integer >>>> >> ?i = 0 >>>> >> ?Do While Exist(User.Home &/ "kamera3" & i & ".mpg") >>>> >> ? ?i = i + 1 >>>> >> ?Loop >>>> >> ?Return User.Home &/ "kamera3" & Format(i, "000") & ".mpg" >>>> >> >>>> >> End >>>> >> >>>> >> >>>> >> Public Function setFilename4() As String >>>> >> >>>> >> ?Dim i As Integer >>>> >> ?i = 0 >>>> >> ?Do While Exist(User.Home &/ "kamera4" & i & ".mpg") >>>> >> ? ?i = i + 1 >>>> >> ?Loop >>>> >> ?Return User.Home &/ "kamera4" & Format(i, "000") & ".mpg" >>>> >> >>>> >> End >>>> >> >>>> >> Public Sub UpdateBytesLabel() >>>> >> ?Dim i As Float >>>> >> ?If bytesrecorded > 1048576 Then >>>> >> ? ?i = Int(bytesrecorded / 100000) >>>> >> ?Else >>>> >> ? ?i = Int(bytesrecorded / 100) >>>> >> ?Endif >>>> >> >>>> >> End >>>> >> >>>> >> Public Sub UpdateTimeLabel() >>>> >> >>>> >> ?If starttime = "00:00:00" Then Return >>>> >> ?If endtime <> starttime Then Return >>>> >> >>>> >> ?TextDate1.text = Time(CDate(CInt(Now) + (Now - starttime) + >>>> >> timezoneadjust)) >>>> >> >>>> >> End >>>> >> >>>> >> anyone can solve my problem please...? >>>> >> >>>> >> -- >>>> >> View this message in context: >>>> >> >>>> http://old.nabble.com/Did-anyone-have-a-script-to-record-webcame-picture-in-video-files-tp30442622p30442622.html >>>> >> Sent from the gambas-user mailing list archive at Nabble.com. >>>> >> >>>> >> >>>> >> >>>> >> >>>> ------------------------------------------------------------------------------ >>>> >> Lotusphere 2011 >>>> >> Register now for Lotusphere 2011 and learn how >>>> >> to connect the dots, take your collaborative environment >>>> >> to the next level, and enter the era of Social Business. >>>> >> http://p.sf.net/sfu/lotusphere-d2d >>>> >> _______________________________________________ >>>> >> Gambas-user mailing list >>>> >> Gambas-user at lists.sourceforge.net >>>> >> https://lists.sourceforge.net/lists/listinfo/gambas-user >>>> >> >>>> > >>>> ------------------------------------------------------------------------------ >>>> > Lotusphere 2011 >>>> > Register now for Lotusphere 2011 and learn how >>>> > to connect the dots, take your collaborative environment >>>> > to the next level, and enter the era of Social Business. >>>> > http://p.sf.net/sfu/lotusphere-d2d >>>> > _______________________________________________ >>>> > Gambas-user mailing list >>>> > Gambas-user at lists.sourceforge.net >>>> > https://lists.sourceforge.net/lists/listinfo/gambas-user >>>> > >>>> > >>>> >>>> -- >>>> View this message in context: >>>> http://old.nabble.com/Did-anyone-have-a-script-to-record-webcame-picture-in-video-files-tp30442622p30496252.html >>>> Sent from the gambas-user mailing list archive at Nabble.com. >>>> >>>> >>>> >>>> ------------------------------------------------------------------------------ >>>> Lotusphere 2011 >>>> Register now for Lotusphere 2011 and learn how >>>> to connect the dots, take your collaborative environment >>>> to the next level, and enter the era of Social Business. >>>> http://p.sf.net/sfu/lotusphere-d2d >>>> _______________________________________________ >>>> Gambas-user mailing list >>>> Gambas-user at lists.sourceforge.net >>>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>>> >>> ------------------------------------------------------------------------------ >>> Lotusphere 2011 >>> Register now for Lotusphere 2011 and learn how >>> to connect the dots, take your collaborative environment >>> to the next level, and enter the era of Social Business. >>> http://p.sf.net/sfu/lotusphere-d2d >>> _______________________________________________ >>> Gambas-user mailing list >>> Gambas-user at lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>> >>> >> >> -- >> View this message in context: >> http://old.nabble.com/Did-anyone-have-a-script-to-record-webcame-picture-in-video-files-tp30442622p30510255.html >> Sent from the gambas-user mailing list archive at Nabble.com. >> >> >> ------------------------------------------------------------------------------ >> Forrester recently released a report on the Return on Investment (ROI) of >> Google Apps. They found a 300% ROI, 38%-56% cost savings, and break-even >> within 7 months. ?Over 3 million businesses have gone Google with Google >> Apps: >> an online email calendar, and document program that's accessible from >> your >> browser. Read the Forrester report: http://p.sf.net/sfu/googleapps-sfnew >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > > > -- > Fabien Bodard > > ------------------------------------------------------------------------------ > Forrester recently released a report on the Return on Investment (ROI) of > Google Apps. They found a 300% ROI, 38%-56% cost savings, and break-even > within 7 months. Over 3 million businesses have gone Google with Google > Apps: > an online email calendar, and document program that's accessible from your > browser. Read the Forrester report: http://p.sf.net/sfu/googleapps-sfnew > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > -- View this message in context: http://old.nabble.com/Did-anyone-have-a-script-to-record-webcame-picture-in-video-files-tp30442622p30512324.html Sent from the gambas-user mailing list archive at Nabble.com. From demosthenesk at ...626... Wed Dec 22 09:44:31 2010 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Wed, 22 Dec 2010 10:44:31 +0200 Subject: [Gambas-user] CDE. An interesting packaging tool In-Reply-To: References: <.77.224.23.61.1289640081.squirrel@...2402...> <201011141217.33773.gambas@...1...> <201011141222.33813.gambas@...1...> <201011141243.43859.gambas@...1...> <1289741038.6084.3.camel@...2494...> Message-ID: <1293007471.25439.14.camel@...2493...> This subject was mentioned some time ago. Myself was very font of the idea to be a way to package the system libs for gambas projects together with executables. Some users said although a different opinion. This was that, it is good not to break the linux way of system libs existence. At windows the programs have installation setup programs with their system libs of Visual Basic. At linux the libraries are independent of binaries. For now the way to install programs is to install the binaries separately and the libs separately. Any program can run with the same libraries. The CDE is very nice tool to run a Gambas app in a system that Gambas cannot be compiled and installed. My opinion, to speak as a user, is to keep the linux way for binaries and libraries. On Wed, 2010-12-22 at 01:34 -0500, Nicolas Koch wrote: > IS there any movement on the Gambas3 packaging suite to compile and/or > include the runtime and libs for the various distributions? I also looked > at the CDE route and exceptions can be made to keep files to a minimum and > just run your app with cde gbr3 project.gambas > > I got minimal results though because while CDE works, it's kind of a pain > when I want to interact with system files and such outside the cde-root. > > Benoit... any idea on how life will be in Gambas 3 for packaging > runtime/libs? I know I am not the only one begging for this :D > > Thanks for your time. > > Nick > > On Sun, Nov 14, 2010 at 8:23 AM, Demosthenes Koptsis > wrote: > > > yes this is better. > > > > i tried cde with gambas project and it copied all the files in > > cde-package included passwd /home directory and other files that > > application used. > > > > This feature should work only for libs and as an option for packagers > > not "an only way" method. > > > > This is my opinion. > > > > On Sun, 2010-11-14 at 12:43 +0100, Beno?t Minisini wrote: > > > > > > Although I'm not a gambas developer, I appreciate the idea. I would > > > > > > prefer to have all the must-haves packaged into single file, > > instead of > > > > > > fighting with unresolved package dependencies. It's better to have > > a > > > > > > myprogram.bin installer, than myprogram.rpm, myprogram.deb... Maybe > > > > > > Benoit would argue because of the package size. It's more like > > Windows. > > > > > > But who cares. If I'd be sure my program will run independently of > > the > > > > > > Linux platform flavor, I'd yes to size increment. > > > > > > > > > > > > Csaba > > > > > > > > > > This is exactly what Cristian Abarzua F. (craf) tried to achieve. But > > it > > > > > did it by hand, I tried to help him, but we encountered problems. > > > > > > > > > > Apparently 'cde' seems to work, so I should try it and integrate it > > > > > inside the IDE packager. > > > > > > > > > > So, no I'm not fully against that kind of package now. Except that > > users > > > > > should be aware of the following: > > > > > > > > > > - They will be bigger (imagine a full Gambas GUI program relying of a > > lot > > > > > of components). > > > > > > > > > > - System security fix and updates won't apply to them. So packagers > > must > > > > > regularly repackage them. (Same nightmare as in windows). > > > > > > > > > > Regards, > > > > > > > > Another possible problem: Gambas can load a component during the > > execution > > > > of a program (Component.Load() method), not necesarilly at startup. So > > you > > > > must take that into account when making a cde package! > > > > > > > > Moreover, some component uses that feature. For example, the Gambas 3 > > > > gb.form.stock hidden component included a full stock of icons that is > > > > loaded only if an icon is not found in the Gnome or KDE icon themes > > > > installed on the system (which is very possible if you didn't install > > both > > > > Gnome and KDE). > > > > > > > > Regards, > > > > > > Another problem again: > > > > > > cde will store in the packages *all* existing files opened by the program > > > during its execution. Maybe I should take the source code of 'cde' and > > modify > > > it to only store the shared libraries? > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > Centralized Desktop Delivery: Dell and VMware Reference Architecture > > Simplifying enterprise desktop deployment and management using > > Dell EqualLogic storage and VMware View: A highly scalable, end-to-end > > client virtualization framework. Read more! > > http://p.sf.net/sfu/dell-eql-dev2dev > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > ------------------------------------------------------------------------------ > Forrester recently released a report on the Return on Investment (ROI) of > Google Apps. They found a 300% ROI, 38%-56% cost savings, and break-even > within 7 months. Over 3 million businesses have gone Google with Google Apps: > an online email calendar, and document program that's accessible from your > browser. Read the Forrester report: http://p.sf.net/sfu/googleapps-sfnew > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -- Regards, Demosthenes Koptsis. From hiems at ...2501... Wed Dec 22 10:08:55 2010 From: hiems at ...2501... (NW) Date: Wed, 22 Dec 2010 09:08:55 +0000 Subject: [Gambas-user] Button events Message-ID: <20101222090855.f9874ecb.hiems@...2501...> I have just noticed that there is no right click event for a button. Are there any plans to add this please? Neil From rospolosco at ...152... Wed Dec 22 12:37:12 2010 From: rospolosco at ...152... (Stefano Palmeri) Date: Wed, 22 Dec 2010 12:37:12 +0100 Subject: [Gambas-user] Button events In-Reply-To: <20101222090855.f9874ecb.hiems@...2501...> References: <20101222090855.f9874ecb.hiems@...2501...> Message-ID: <201012221237.13134.rospolosco@...152...> Il mercoled? 22 dicembre 2010 10:08:55 NW ha scritto: > I have just noticed that there is no right click event for a button. > Are there any plans to add this please? > > Neil It's already there ;-) PUBLIC SUB Button1_MouseDown() IF Mouse.Right THEN PRINT "right click" END Saluti > > --------------------------------------------------------------------------- >--- Forrester recently released a report on the Return on Investment (ROI) > of Google Apps. They found a 300% ROI, 38%-56% cost savings, and break-even > within 7 months. Over 3 million businesses have gone Google with Google > Apps: an online email calendar, and document program that's accessible from > your browser. Read the Forrester report: > http://p.sf.net/sfu/googleapps-sfnew > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From gambas.fr at ...626... Wed Dec 22 12:46:11 2010 From: gambas.fr at ...626... (Fabien Bodard) Date: Wed, 22 Dec 2010 12:46:11 +0100 Subject: [Gambas-user] Did anyone have a script to record webcame picture in video files In-Reply-To: <30512324.post@...1379...> References: <30442622.post@...1379...> <30496252.post@...1379...> <30510255.post@...1379...> <30512324.post@...1379...> Message-ID: i've ubuntu 10.10 ... in fact i use actually a derivated distro : Mint 10 based on the 10.10 Maverick try to remove the ~/.config/gambas3 directory and run again gambas 2010/12/22 firman : > > Thanks Mr. Fabien, I've tried to use that key but nothing change, and still > nothing menus could show.. maybe i must change my ubuntu to 10.04 again... > > > Fabien Bodard-4 wrote: >> >> ctrl+alt+m... to show the menu ? >> >> 2010/12/21 firman : >>> >>> i'm sorry,, ?i've problem with my gambas3, i tried to install it in >>> ubuntu >>> 10.10 and any problem there. When i openned gambas3 there was nothing >>> menus.. but the project can openned. So i use os windows for put the >>> source >>> archive using winrar.. >>> >>> and here's the archive.. so u can extract the rar file first, and open it >>> in >>> gambas3. ?i'm wating for ur solutions for my project. thanks. >>> http://old.nabble.com/file/p30510255/TACAMCCTVrev2.rar TACAMCCTVrev2.rar >>> >>> >>> >>> Jussi Lahtinen wrote: >>>> >>>> Project --> Make --> Source archive >>>> And put the script in that tar ball also. >>>> >>>> Jussi >>>> >>>> >>>> >>>> On Mon, Dec 20, 2010 at 08:32, firman wrote: >>>> >>>>> >>>>> okay i'll send u entire project, but which one do u need, Files project >>>>> in >>>>> package program or just All script in main form?? >>>>> >>>>> thank's >>>>> >>>>> >>>>> >>>>> Jussi Lahtinen wrote: >>>>> > >>>>> > It is easier to help if you send your whole project. >>>>> > I can't see any handling for CatProcess. >>>>> > >>>>> > Jussi >>>>> > >>>>> > >>>>> > On Sat, Dec 18, 2010 at 02:11, firman wrote: >>>>> > >>>>> >> >>>>> >> >>>>> >> I Almost done my project about monitoring camera using webcam with >>>>> gambas >>>>> >> 3... the picture or streaming video can displayed on picturebox but >>>>> i >>>>> >> still >>>>> >> have a problem to record in video file mode r like avi, ?mpg or >>>>> other >>>>> >> compressed format.. please help me if anyone can solve my problem. i >>>>> will >>>>> >> showing u a picture of FMain my project... the record button still >>>>> >> couldn't >>>>> >> worked... >>>>> >> >>>>> >> i'm using gambas 3 svn... I've wrote the script like this, and >>>>> worked >>>>> the >>>>> >> files created but still 0 KB or nothing recorded.... >>>>> >> this is the script: >>>>> >> >>>>> >> 'Proses Menyimpan File record >>>>> >> >>>>> >> Public Sub InitCapture() >>>>> >> >>>>> >> ?If Not CatProcess Then >>>>> >> ? ?bytesrecorded = 0 >>>>> >> ? ?CatProcess = Exec ["cat", "/dev/video0"] For Read >>>>> >> ? ?CatProcess = Exec ["cat", "/dev/video1"] For Read >>>>> >> ? ?CatProcess = Exec ["cat", "/dev/video2"] For Read >>>>> >> ? ?CatProcess = Exec ["cat", "/dev/video3"] For Read >>>>> >> >>>>> >> ?Endif >>>>> >> >>>>> >> ?UpdateBytesLabel() >>>>> >> >>>>> >> End >>>>> >> >>>>> >> Public Sub Process_Write(data As String) >>>>> >> >>>>> >> ?If pic1.Picture = $cam1.Image.Picture Then >>>>> >> ? If pic2.Picture = $cam2.Image.Picture Then >>>>> >> ? ? If pic3.Picture = $cam3.Image.Picture Then >>>>> >> ? ? ? If pic4.Picture = $cam4.Image.Picture Then >>>>> >> ? ? ? Return >>>>> >> ? ? ? Endif >>>>> >> ? ? Endif >>>>> >> ? Endif >>>>> >> ?Endif >>>>> >> >>>>> >> ?Try pic1.Picture.send(data) >>>>> >> ?Try pic2.Picture.send(data) >>>>> >> ?Try pic3.Picture.send(data) >>>>> >> ?Try pic4.Picture.send(data) >>>>> >> ?Try saveprocess.send(data) >>>>> >> >>>>> >> ?bytesrecorded = bytesrecorded + Len(data) >>>>> >> >>>>> >> End >>>>> >> >>>>> >> >>>>> >> Public Sub btnRecord_Click() >>>>> >> >>>>> >> ?If btnRecord.text = "Record" Then >>>>> >> ? ?bytesrecorded = 0 >>>>> >> ? ?starttime = Now >>>>> >> ? ?endtime = starttime >>>>> >> ? ?initcapture() >>>>> >> ? ?Tmr1_Timer() >>>>> >> ? ?btnRecord.text = "Stop" >>>>> >> ? ?SaveProcess = Exec ["bash", "-c", "cat > " & setFilename1()] For >>>>> Write >>>>> >> ? ?SaveProcess = Exec ["bash", "-c", "cat > " & setFilename2()] For >>>>> Write >>>>> >> ? ?SaveProcess = Exec ["bash", "-c", "cat > " & setFilename3()] For >>>>> Write >>>>> >> ? ?SaveProcess = Exec ["bash", "-c", "cat > " & setFilename4()] For >>>>> Write >>>>> >> ?Else >>>>> >> ? ?endtime = Now >>>>> >> >>>>> >> ? ?Try saveprocess.kill >>>>> >> ? ?btnRecord.text = "Record" >>>>> >> ? ?setFilename1() >>>>> >> ? ?setFilename2() >>>>> >> ? ?setFilename3() >>>>> >> ? ?setFilename4() >>>>> >> ?Endif >>>>> >> End >>>>> >> >>>>> >> Public Function setFilename1() As String >>>>> >> >>>>> >> ?Dim i As Integer >>>>> >> >>>>> >> ?i = 0 >>>>> >> ?'Do While Exist(Application.Path &/ "kamera1" & i & ".mpg") >>>>> >> ?Do While Exist(User.Home &/ "kamera1" & i & ".mpg") >>>>> >> ?i = i + 1 >>>>> >> ?Loop >>>>> >> ?'Return Application.Path &/ "kamera1" & Format(i, "000") & ".mpg" >>>>> >> ?Return User.Home &/ "kamera1" & Format(i, "000") & ".mpg" >>>>> >> >>>>> >> End >>>>> >> >>>>> >> >>>>> >> Public Function setFilename2() As String >>>>> >> >>>>> >> ?Dim i As Integer >>>>> >> ?i = 0 >>>>> >> ?Do While Exist(User.Home &/ "kamera2" & i & ".mpg") >>>>> >> ? ?i = i + 1 >>>>> >> ?Loop >>>>> >> ?Return User.Home &/ "kamera2" & Format(i, "000") & ".mpg" >>>>> >> >>>>> >> End >>>>> >> >>>>> >> >>>>> >> Public Function setFilename3() As String >>>>> >> >>>>> >> ?Dim i As Integer >>>>> >> ?i = 0 >>>>> >> ?Do While Exist(User.Home &/ "kamera3" & i & ".mpg") >>>>> >> ? ?i = i + 1 >>>>> >> ?Loop >>>>> >> ?Return User.Home &/ "kamera3" & Format(i, "000") & ".mpg" >>>>> >> >>>>> >> End >>>>> >> >>>>> >> >>>>> >> Public Function setFilename4() As String >>>>> >> >>>>> >> ?Dim i As Integer >>>>> >> ?i = 0 >>>>> >> ?Do While Exist(User.Home &/ "kamera4" & i & ".mpg") >>>>> >> ? ?i = i + 1 >>>>> >> ?Loop >>>>> >> ?Return User.Home &/ "kamera4" & Format(i, "000") & ".mpg" >>>>> >> >>>>> >> End >>>>> >> >>>>> >> Public Sub UpdateBytesLabel() >>>>> >> ?Dim i As Float >>>>> >> ?If bytesrecorded > 1048576 Then >>>>> >> ? ?i = Int(bytesrecorded / 100000) >>>>> >> ?Else >>>>> >> ? ?i = Int(bytesrecorded / 100) >>>>> >> ?Endif >>>>> >> >>>>> >> End >>>>> >> >>>>> >> Public Sub UpdateTimeLabel() >>>>> >> >>>>> >> ?If starttime = "00:00:00" Then Return >>>>> >> ?If endtime <> starttime Then Return >>>>> >> >>>>> >> ?TextDate1.text = Time(CDate(CInt(Now) + (Now - starttime) + >>>>> >> timezoneadjust)) >>>>> >> >>>>> >> End >>>>> >> >>>>> >> anyone can solve my problem please...? >>>>> >> >>>>> >> -- >>>>> >> View this message in context: >>>>> >> >>>>> http://old.nabble.com/Did-anyone-have-a-script-to-record-webcame-picture-in-video-files-tp30442622p30442622.html >>>>> >> Sent from the gambas-user mailing list archive at Nabble.com. >>>>> >> >>>>> >> >>>>> >> >>>>> >> >>>>> ------------------------------------------------------------------------------ >>>>> >> Lotusphere 2011 >>>>> >> Register now for Lotusphere 2011 and learn how >>>>> >> to connect the dots, take your collaborative environment >>>>> >> to the next level, and enter the era of Social Business. >>>>> >> http://p.sf.net/sfu/lotusphere-d2d >>>>> >> _______________________________________________ >>>>> >> Gambas-user mailing list >>>>> >> Gambas-user at lists.sourceforge.net >>>>> >> https://lists.sourceforge.net/lists/listinfo/gambas-user >>>>> >> >>>>> > >>>>> ------------------------------------------------------------------------------ >>>>> > Lotusphere 2011 >>>>> > Register now for Lotusphere 2011 and learn how >>>>> > to connect the dots, take your collaborative environment >>>>> > to the next level, and enter the era of Social Business. >>>>> > http://p.sf.net/sfu/lotusphere-d2d >>>>> > _______________________________________________ >>>>> > Gambas-user mailing list >>>>> > Gambas-user at lists.sourceforge.net >>>>> > https://lists.sourceforge.net/lists/listinfo/gambas-user >>>>> > >>>>> > >>>>> >>>>> -- >>>>> View this message in context: >>>>> http://old.nabble.com/Did-anyone-have-a-script-to-record-webcame-picture-in-video-files-tp30442622p30496252.html >>>>> Sent from the gambas-user mailing list archive at Nabble.com. >>>>> >>>>> >>>>> >>>>> ------------------------------------------------------------------------------ >>>>> Lotusphere 2011 >>>>> Register now for Lotusphere 2011 and learn how >>>>> to connect the dots, take your collaborative environment >>>>> to the next level, and enter the era of Social Business. >>>>> http://p.sf.net/sfu/lotusphere-d2d >>>>> _______________________________________________ >>>>> Gambas-user mailing list >>>>> Gambas-user at lists.sourceforge.net >>>>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>>>> >>>> ------------------------------------------------------------------------------ >>>> Lotusphere 2011 >>>> Register now for Lotusphere 2011 and learn how >>>> to connect the dots, take your collaborative environment >>>> to the next level, and enter the era of Social Business. >>>> http://p.sf.net/sfu/lotusphere-d2d >>>> _______________________________________________ >>>> Gambas-user mailing list >>>> Gambas-user at lists.sourceforge.net >>>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>>> >>>> >>> >>> -- >>> View this message in context: >>> http://old.nabble.com/Did-anyone-have-a-script-to-record-webcame-picture-in-video-files-tp30442622p30510255.html >>> Sent from the gambas-user mailing list archive at Nabble.com. >>> >>> >>> ------------------------------------------------------------------------------ >>> Forrester recently released a report on the Return on Investment (ROI) of >>> Google Apps. They found a 300% ROI, 38%-56% cost savings, and break-even >>> within 7 months. ?Over 3 million businesses have gone Google with Google >>> Apps: >>> an online email calendar, and document program that's accessible from >>> your >>> browser. Read the Forrester report: http://p.sf.net/sfu/googleapps-sfnew >>> _______________________________________________ >>> Gambas-user mailing list >>> Gambas-user at lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>> >> >> >> >> -- >> Fabien Bodard >> >> ------------------------------------------------------------------------------ >> Forrester recently released a report on the Return on Investment (ROI) of >> Google Apps. They found a 300% ROI, 38%-56% cost savings, and break-even >> within 7 months. ?Over 3 million businesses have gone Google with Google >> Apps: >> an online email calendar, and document program that's accessible from your >> browser. Read the Forrester report: http://p.sf.net/sfu/googleapps-sfnew >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> >> > > -- > View this message in context: http://old.nabble.com/Did-anyone-have-a-script-to-record-webcame-picture-in-video-files-tp30442622p30512324.html > Sent from the gambas-user mailing list archive at Nabble.com. > > > ------------------------------------------------------------------------------ > Forrester recently released a report on the Return on Investment (ROI) of > Google Apps. They found a 300% ROI, 38%-56% cost savings, and break-even > within 7 months. ?Over 3 million businesses have gone Google with Google Apps: > an online email calendar, and document program that's accessible from your > browser. Read the Forrester report: http://p.sf.net/sfu/googleapps-sfnew > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Fabien Bodard From wally at ...2037... Wed Dec 22 13:22:42 2010 From: wally at ...2037... (wally) Date: Wed, 22 Dec 2010 13:22:42 +0100 Subject: [Gambas-user] painting graph to image continuously In-Reply-To: References: <201012161846.46665.wally@...2037...> Message-ID: <201012221322.42583.wally@...2037...> On Saturday 18 December 2010 14:44:22 Fabien Bodard wrote: > ok wally this is the full demo of what you want to do, and what you > need to do for that. I use like often in gambas > a data/view model ... the drawingarea is just a viewer for the data > and the _draw event contain the rules do draw the datas. > The datas are stored in an array $aDatas. > > The Timer emulate the datas entry > > 2010/12/18 Fabien Bodard : > >> Fabian, > >> > >> yes, you are right, this may be a problem. > >> I will try to collect the data as short as possible in a data-array > >> and display always only the graph of a segment of this array. > >> Your DemoGraph was helpful to see how the _draw event is > >> used and i'll try this way too. > >> But for now i would like to know how the DrawingArea.Resize > >> works internally and why there are differences in GB2 and GB3. > >> > >> wally > >> > > > > Resize is a procedure inherited from control ... it just resize the > > controle ... but can have conflict with autoarrangement. > > > > > > > > -- > > Fabien Bodard > > > > > > -- > Fabien Bodard > Fabian, is there a way to provide parameters "x" to the _draw(x) event ? Actually i do this with punlic variables. wally From firman.isb at ...626... Wed Dec 22 13:43:45 2010 From: firman.isb at ...626... (firman) Date: Wed, 22 Dec 2010 04:43:45 -0800 (PST) Subject: [Gambas-user] Did anyone have a script to record webcame picture in video files In-Reply-To: References: <30442622.post@...1379...> <30496252.post@...1379...> <30510255.post@...1379...> <30512324.post@...1379...> Message-ID: <30513973.post@...1379...> i've tried again and the result still not shown menus.. i use macbuntu on 10.10 ubuntu version.. so i'll try to install gambas again.. Fabien Bodard-4 wrote: > > i've ubuntu 10.10 ... in fact i use actually a derivated distro : Mint > 10 based on the 10.10 Maverick > > try to remove the ~/.config/gambas3 directory and run again gambas > > 2010/12/22 firman : >> >> Thanks Mr. Fabien, I've tried to use that key but nothing change, and >> still >> nothing menus could show.. maybe i must change my ubuntu to 10.04 >> again... >> >> >> Fabien Bodard-4 wrote: >>> >>> ctrl+alt+m... to show the menu ? >>> >>> 2010/12/21 firman : >>>> >>>> i'm sorry,, ?i've problem with my gambas3, i tried to install it in >>>> ubuntu >>>> 10.10 and any problem there. When i openned gambas3 there was nothing >>>> menus.. but the project can openned. So i use os windows for put the >>>> source >>>> archive using winrar.. >>>> >>>> and here's the archive.. so u can extract the rar file first, and open >>>> it >>>> in >>>> gambas3. ?i'm wating for ur solutions for my project. thanks. >>>> http://old.nabble.com/file/p30510255/TACAMCCTVrev2.rar >>>> TACAMCCTVrev2.rar >>>> >>>> >>>> >>>> Jussi Lahtinen wrote: >>>>> >>>>> Project --> Make --> Source archive >>>>> And put the script in that tar ball also. >>>>> >>>>> Jussi >>>>> >>>>> >>>>> >>>>> On Mon, Dec 20, 2010 at 08:32, firman wrote: >>>>> >>>>>> >>>>>> okay i'll send u entire project, but which one do u need, Files >>>>>> project >>>>>> in >>>>>> package program or just All script in main form?? >>>>>> >>>>>> thank's >>>>>> >>>>>> >>>>>> >>>>>> Jussi Lahtinen wrote: >>>>>> > >>>>>> > It is easier to help if you send your whole project. >>>>>> > I can't see any handling for CatProcess. >>>>>> > >>>>>> > Jussi >>>>>> > >>>>>> > >>>>>> > On Sat, Dec 18, 2010 at 02:11, firman wrote: >>>>>> > >>>>>> >> >>>>>> >> >>>>>> >> I Almost done my project about monitoring camera using webcam with >>>>>> gambas >>>>>> >> 3... the picture or streaming video can displayed on picturebox >>>>>> but >>>>>> i >>>>>> >> still >>>>>> >> have a problem to record in video file mode r like avi, ?mpg or >>>>>> other >>>>>> >> compressed format.. please help me if anyone can solve my problem. >>>>>> i >>>>>> will >>>>>> >> showing u a picture of FMain my project... the record button still >>>>>> >> couldn't >>>>>> >> worked... >>>>>> >> >>>>>> >> i'm using gambas 3 svn... I've wrote the script like this, and >>>>>> worked >>>>>> the >>>>>> >> files created but still 0 KB or nothing recorded.... >>>>>> >> this is the script: >>>>>> >> >>>>>> >> 'Proses Menyimpan File record >>>>>> >> >>>>>> >> Public Sub InitCapture() >>>>>> >> >>>>>> >> ?If Not CatProcess Then >>>>>> >> ? ?bytesrecorded = 0 >>>>>> >> ? ?CatProcess = Exec ["cat", "/dev/video0"] For Read >>>>>> >> ? ?CatProcess = Exec ["cat", "/dev/video1"] For Read >>>>>> >> ? ?CatProcess = Exec ["cat", "/dev/video2"] For Read >>>>>> >> ? ?CatProcess = Exec ["cat", "/dev/video3"] For Read >>>>>> >> >>>>>> >> ?Endif >>>>>> >> >>>>>> >> ?UpdateBytesLabel() >>>>>> >> >>>>>> >> End >>>>>> >> >>>>>> >> Public Sub Process_Write(data As String) >>>>>> >> >>>>>> >> ?If pic1.Picture = $cam1.Image.Picture Then >>>>>> >> ? If pic2.Picture = $cam2.Image.Picture Then >>>>>> >> ? ? If pic3.Picture = $cam3.Image.Picture Then >>>>>> >> ? ? ? If pic4.Picture = $cam4.Image.Picture Then >>>>>> >> ? ? ? Return >>>>>> >> ? ? ? Endif >>>>>> >> ? ? Endif >>>>>> >> ? Endif >>>>>> >> ?Endif >>>>>> >> >>>>>> >> ?Try pic1.Picture.send(data) >>>>>> >> ?Try pic2.Picture.send(data) >>>>>> >> ?Try pic3.Picture.send(data) >>>>>> >> ?Try pic4.Picture.send(data) >>>>>> >> ?Try saveprocess.send(data) >>>>>> >> >>>>>> >> ?bytesrecorded = bytesrecorded + Len(data) >>>>>> >> >>>>>> >> End >>>>>> >> >>>>>> >> >>>>>> >> Public Sub btnRecord_Click() >>>>>> >> >>>>>> >> ?If btnRecord.text = "Record" Then >>>>>> >> ? ?bytesrecorded = 0 >>>>>> >> ? ?starttime = Now >>>>>> >> ? ?endtime = starttime >>>>>> >> ? ?initcapture() >>>>>> >> ? ?Tmr1_Timer() >>>>>> >> ? ?btnRecord.text = "Stop" >>>>>> >> ? ?SaveProcess = Exec ["bash", "-c", "cat > " & setFilename1()] >>>>>> For >>>>>> Write >>>>>> >> ? ?SaveProcess = Exec ["bash", "-c", "cat > " & setFilename2()] >>>>>> For >>>>>> Write >>>>>> >> ? ?SaveProcess = Exec ["bash", "-c", "cat > " & setFilename3()] >>>>>> For >>>>>> Write >>>>>> >> ? ?SaveProcess = Exec ["bash", "-c", "cat > " & setFilename4()] >>>>>> For >>>>>> Write >>>>>> >> ?Else >>>>>> >> ? ?endtime = Now >>>>>> >> >>>>>> >> ? ?Try saveprocess.kill >>>>>> >> ? ?btnRecord.text = "Record" >>>>>> >> ? ?setFilename1() >>>>>> >> ? ?setFilename2() >>>>>> >> ? ?setFilename3() >>>>>> >> ? ?setFilename4() >>>>>> >> ?Endif >>>>>> >> End >>>>>> >> >>>>>> >> Public Function setFilename1() As String >>>>>> >> >>>>>> >> ?Dim i As Integer >>>>>> >> >>>>>> >> ?i = 0 >>>>>> >> ?'Do While Exist(Application.Path &/ "kamera1" & i & ".mpg") >>>>>> >> ?Do While Exist(User.Home &/ "kamera1" & i & ".mpg") >>>>>> >> ?i = i + 1 >>>>>> >> ?Loop >>>>>> >> ?'Return Application.Path &/ "kamera1" & Format(i, "000") & ".mpg" >>>>>> >> ?Return User.Home &/ "kamera1" & Format(i, "000") & ".mpg" >>>>>> >> >>>>>> >> End >>>>>> >> >>>>>> >> >>>>>> >> Public Function setFilename2() As String >>>>>> >> >>>>>> >> ?Dim i As Integer >>>>>> >> ?i = 0 >>>>>> >> ?Do While Exist(User.Home &/ "kamera2" & i & ".mpg") >>>>>> >> ? ?i = i + 1 >>>>>> >> ?Loop >>>>>> >> ?Return User.Home &/ "kamera2" & Format(i, "000") & ".mpg" >>>>>> >> >>>>>> >> End >>>>>> >> >>>>>> >> >>>>>> >> Public Function setFilename3() As String >>>>>> >> >>>>>> >> ?Dim i As Integer >>>>>> >> ?i = 0 >>>>>> >> ?Do While Exist(User.Home &/ "kamera3" & i & ".mpg") >>>>>> >> ? ?i = i + 1 >>>>>> >> ?Loop >>>>>> >> ?Return User.Home &/ "kamera3" & Format(i, "000") & ".mpg" >>>>>> >> >>>>>> >> End >>>>>> >> >>>>>> >> >>>>>> >> Public Function setFilename4() As String >>>>>> >> >>>>>> >> ?Dim i As Integer >>>>>> >> ?i = 0 >>>>>> >> ?Do While Exist(User.Home &/ "kamera4" & i & ".mpg") >>>>>> >> ? ?i = i + 1 >>>>>> >> ?Loop >>>>>> >> ?Return User.Home &/ "kamera4" & Format(i, "000") & ".mpg" >>>>>> >> >>>>>> >> End >>>>>> >> >>>>>> >> Public Sub UpdateBytesLabel() >>>>>> >> ?Dim i As Float >>>>>> >> ?If bytesrecorded > 1048576 Then >>>>>> >> ? ?i = Int(bytesrecorded / 100000) >>>>>> >> ?Else >>>>>> >> ? ?i = Int(bytesrecorded / 100) >>>>>> >> ?Endif >>>>>> >> >>>>>> >> End >>>>>> >> >>>>>> >> Public Sub UpdateTimeLabel() >>>>>> >> >>>>>> >> ?If starttime = "00:00:00" Then Return >>>>>> >> ?If endtime <> starttime Then Return >>>>>> >> >>>>>> >> ?TextDate1.text = Time(CDate(CInt(Now) + (Now - starttime) + >>>>>> >> timezoneadjust)) >>>>>> >> >>>>>> >> End >>>>>> >> >>>>>> >> anyone can solve my problem please...? >>>>>> >> >>>>>> >> -- >>>>>> >> View this message in context: >>>>>> >> >>>>>> http://old.nabble.com/Did-anyone-have-a-script-to-record-webcame-picture-in-video-files-tp30442622p30442622.html >>>>>> >> Sent from the gambas-user mailing list archive at Nabble.com. >>>>>> >> >>>>>> >> >>>>>> >> >>>>>> >> >>>>>> ------------------------------------------------------------------------------ >>>>>> >> Lotusphere 2011 >>>>>> >> Register now for Lotusphere 2011 and learn how >>>>>> >> to connect the dots, take your collaborative environment >>>>>> >> to the next level, and enter the era of Social Business. >>>>>> >> http://p.sf.net/sfu/lotusphere-d2d >>>>>> >> _______________________________________________ >>>>>> >> Gambas-user mailing list >>>>>> >> Gambas-user at lists.sourceforge.net >>>>>> >> https://lists.sourceforge.net/lists/listinfo/gambas-user >>>>>> >> >>>>>> > >>>>>> ------------------------------------------------------------------------------ >>>>>> > Lotusphere 2011 >>>>>> > Register now for Lotusphere 2011 and learn how >>>>>> > to connect the dots, take your collaborative environment >>>>>> > to the next level, and enter the era of Social Business. >>>>>> > http://p.sf.net/sfu/lotusphere-d2d >>>>>> > _______________________________________________ >>>>>> > Gambas-user mailing list >>>>>> > Gambas-user at lists.sourceforge.net >>>>>> > https://lists.sourceforge.net/lists/listinfo/gambas-user >>>>>> > >>>>>> > >>>>>> >>>>>> -- >>>>>> View this message in context: >>>>>> http://old.nabble.com/Did-anyone-have-a-script-to-record-webcame-picture-in-video-files-tp30442622p30496252.html >>>>>> Sent from the gambas-user mailing list archive at Nabble.com. >>>>>> >>>>>> >>>>>> >>>>>> ------------------------------------------------------------------------------ >>>>>> Lotusphere 2011 >>>>>> Register now for Lotusphere 2011 and learn how >>>>>> to connect the dots, take your collaborative environment >>>>>> to the next level, and enter the era of Social Business. >>>>>> http://p.sf.net/sfu/lotusphere-d2d >>>>>> _______________________________________________ >>>>>> Gambas-user mailing list >>>>>> Gambas-user at lists.sourceforge.net >>>>>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>>>>> >>>>> ------------------------------------------------------------------------------ >>>>> Lotusphere 2011 >>>>> Register now for Lotusphere 2011 and learn how >>>>> to connect the dots, take your collaborative environment >>>>> to the next level, and enter the era of Social Business. >>>>> http://p.sf.net/sfu/lotusphere-d2d >>>>> _______________________________________________ >>>>> Gambas-user mailing list >>>>> Gambas-user at lists.sourceforge.net >>>>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>>>> >>>>> >>>> >>>> -- >>>> View this message in context: >>>> http://old.nabble.com/Did-anyone-have-a-script-to-record-webcame-picture-in-video-files-tp30442622p30510255.html >>>> Sent from the gambas-user mailing list archive at Nabble.com. >>>> >>>> >>>> ------------------------------------------------------------------------------ >>>> Forrester recently released a report on the Return on Investment (ROI) >>>> of >>>> Google Apps. They found a 300% ROI, 38%-56% cost savings, and >>>> break-even >>>> within 7 months. ?Over 3 million businesses have gone Google with >>>> Google >>>> Apps: >>>> an online email calendar, and document program that's accessible from >>>> your >>>> browser. Read the Forrester report: >>>> http://p.sf.net/sfu/googleapps-sfnew >>>> _______________________________________________ >>>> Gambas-user mailing list >>>> Gambas-user at lists.sourceforge.net >>>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>>> >>> >>> >>> >>> -- >>> Fabien Bodard >>> >>> ------------------------------------------------------------------------------ >>> Forrester recently released a report on the Return on Investment (ROI) >>> of >>> Google Apps. They found a 300% ROI, 38%-56% cost savings, and break-even >>> within 7 months. ?Over 3 million businesses have gone Google with Google >>> Apps: >>> an online email calendar, and document program that's accessible from >>> your >>> browser. Read the Forrester report: http://p.sf.net/sfu/googleapps-sfnew >>> _______________________________________________ >>> Gambas-user mailing list >>> Gambas-user at lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>> >>> >> >> -- >> View this message in context: >> http://old.nabble.com/Did-anyone-have-a-script-to-record-webcame-picture-in-video-files-tp30442622p30512324.html >> Sent from the gambas-user mailing list archive at Nabble.com. >> >> >> ------------------------------------------------------------------------------ >> Forrester recently released a report on the Return on Investment (ROI) of >> Google Apps. They found a 300% ROI, 38%-56% cost savings, and break-even >> within 7 months. ?Over 3 million businesses have gone Google with Google >> Apps: >> an online email calendar, and document program that's accessible from >> your >> browser. Read the Forrester report: http://p.sf.net/sfu/googleapps-sfnew >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > > > -- > Fabien Bodard > > ------------------------------------------------------------------------------ > Forrester recently released a report on the Return on Investment (ROI) of > Google Apps. They found a 300% ROI, 38%-56% cost savings, and break-even > within 7 months. Over 3 million businesses have gone Google with Google > Apps: > an online email calendar, and document program that's accessible from your > browser. Read the Forrester report: http://p.sf.net/sfu/googleapps-sfnew > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > -- View this message in context: http://old.nabble.com/Did-anyone-have-a-script-to-record-webcame-picture-in-video-files-tp30442622p30513973.html Sent from the gambas-user mailing list archive at Nabble.com. From gambas at ...1... Wed Dec 22 14:13:48 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Wed, 22 Dec 2010 14:13:48 +0100 Subject: [Gambas-user] CDE. An interesting packaging tool In-Reply-To: References: <.77.224.23.61.1289640081.squirrel@...2402...> <1289741038.6084.3.camel@...2494...> Message-ID: <201012221413.48311.gambas@...1...> > IS there any movement on the Gambas3 packaging suite to compile and/or > include the runtime and libs for the various distributions? I also looked > at the CDE route and exceptions can be made to keep files to a minimum and > just run your app with cde gbr3 project.gambas > > I got minimal results though because while CDE works, it's kind of a pain > when I want to interact with system files and such outside the cde-root. > > Benoit... any idea on how life will be in Gambas 3 for packaging > runtime/libs? I know I am not the only one begging for this :D > > Thanks for your time. > > Nick > Sorry, at the moment my priority is the release candidate of Gambas 3. But I will look at adapting that tool for our needs. Regards, -- Beno?t Minisini From hiems at ...2501... Wed Dec 22 14:15:56 2010 From: hiems at ...2501... (NW) Date: Wed, 22 Dec 2010 13:15:56 +0000 Subject: [Gambas-user] Button events In-Reply-To: <201012221237.13134.rospolosco@...152...> References: <20101222090855.f9874ecb.hiems@...2501...> <201012221237.13134.rospolosco@...152...> Message-ID: <20101222131556.44fff09d.hiems@...2501...> On Wed, 22 Dec 2010 12:37:12 +0100 Stefano Palmeri wrote: > Il mercoled? 22 dicembre 2010 10:08:55 NW ha scritto: > > I have just noticed that there is no right click event for a button. > > Are there any plans to add this please? > > > > Neil > > It's already there ;-) > > PUBLIC SUB Button1_MouseDown() > > IF Mouse.Right THEN PRINT "right click" > > END > > Saluti > > Thanks for that. The button events list includes click and double click so I expected to see right click. Now I know what to use. Neil From jussi.lahtinen at ...626... Wed Dec 22 17:02:29 2010 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Wed, 22 Dec 2010 18:02:29 +0200 Subject: [Gambas-user] Did anyone have a script to record webcame picture in video files In-Reply-To: <30513973.post@...1379...> References: <30442622.post@...1379...> <30496252.post@...1379...> <30510255.post@...1379...> <30512324.post@...1379...> <30513973.post@...1379...> Message-ID: I can confirm that Gambas3 works perfectly with Ubuntu 10.10 64bit. Please pack your sources with another tool, I can't open it correctly with 7zip... Jussi On Wed, Dec 22, 2010 at 14:43, firman wrote: > > i've tried again and the result still not shown menus.. i use macbuntu on > 10.10 ubuntu version.. so i'll try to install gambas again.. > > > Fabien Bodard-4 wrote: > > > > i've ubuntu 10.10 ... in fact i use actually a derivated distro : Mint > > 10 based on the 10.10 Maverick > > > > try to remove the ~/.config/gambas3 directory and run again gambas > > > > 2010/12/22 firman : > >> > >> Thanks Mr. Fabien, I've tried to use that key but nothing change, and > >> still > >> nothing menus could show.. maybe i must change my ubuntu to 10.04 > >> again... > >> > >> > >> Fabien Bodard-4 wrote: > >>> > >>> ctrl+alt+m... to show the menu ? > >>> > >>> 2010/12/21 firman : > >>>> > >>>> i'm sorry,, i've problem with my gambas3, i tried to install it in > >>>> ubuntu > >>>> 10.10 and any problem there. When i openned gambas3 there was nothing > >>>> menus.. but the project can openned. So i use os windows for put the > >>>> source > >>>> archive using winrar.. > >>>> > >>>> and here's the archive.. so u can extract the rar file first, and open > >>>> it > >>>> in > >>>> gambas3. i'm wating for ur solutions for my project. thanks. > >>>> http://old.nabble.com/file/p30510255/TACAMCCTVrev2.rar > >>>> TACAMCCTVrev2.rar > >>>> > >>>> > >>>> > >>>> Jussi Lahtinen wrote: > >>>>> > >>>>> Project --> Make --> Source archive > >>>>> And put the script in that tar ball also. > >>>>> > >>>>> Jussi > >>>>> > >>>>> > >>>>> > >>>>> On Mon, Dec 20, 2010 at 08:32, firman wrote: > >>>>> > >>>>>> > >>>>>> okay i'll send u entire project, but which one do u need, Files > >>>>>> project > >>>>>> in > >>>>>> package program or just All script in main form?? > >>>>>> > >>>>>> thank's > >>>>>> > >>>>>> > >>>>>> > >>>>>> Jussi Lahtinen wrote: > >>>>>> > > >>>>>> > It is easier to help if you send your whole project. > >>>>>> > I can't see any handling for CatProcess. > >>>>>> > > >>>>>> > Jussi > >>>>>> > > >>>>>> > > >>>>>> > On Sat, Dec 18, 2010 at 02:11, firman > wrote: > >>>>>> > > >>>>>> >> > >>>>>> >> > >>>>>> >> I Almost done my project about monitoring camera using webcam > with > >>>>>> gambas > >>>>>> >> 3... the picture or streaming video can displayed on picturebox > >>>>>> but > >>>>>> i > >>>>>> >> still > >>>>>> >> have a problem to record in video file mode r like avi, mpg or > >>>>>> other > >>>>>> >> compressed format.. please help me if anyone can solve my > problem. > >>>>>> i > >>>>>> will > >>>>>> >> showing u a picture of FMain my project... the record button > still > >>>>>> >> couldn't > >>>>>> >> worked... > >>>>>> >> > >>>>>> >> i'm using gambas 3 svn... I've wrote the script like this, and > >>>>>> worked > >>>>>> the > >>>>>> >> files created but still 0 KB or nothing recorded.... > >>>>>> >> this is the script: > >>>>>> >> > >>>>>> >> 'Proses Menyimpan File record > >>>>>> >> > >>>>>> >> Public Sub InitCapture() > >>>>>> >> > >>>>>> >> If Not CatProcess Then > >>>>>> >> bytesrecorded = 0 > >>>>>> >> CatProcess = Exec ["cat", "/dev/video0"] For Read > >>>>>> >> CatProcess = Exec ["cat", "/dev/video1"] For Read > >>>>>> >> CatProcess = Exec ["cat", "/dev/video2"] For Read > >>>>>> >> CatProcess = Exec ["cat", "/dev/video3"] For Read > >>>>>> >> > >>>>>> >> Endif > >>>>>> >> > >>>>>> >> UpdateBytesLabel() > >>>>>> >> > >>>>>> >> End > >>>>>> >> > >>>>>> >> Public Sub Process_Write(data As String) > >>>>>> >> > >>>>>> >> If pic1.Picture = $cam1.Image.Picture Then > >>>>>> >> If pic2.Picture = $cam2.Image.Picture Then > >>>>>> >> If pic3.Picture = $cam3.Image.Picture Then > >>>>>> >> If pic4.Picture = $cam4.Image.Picture Then > >>>>>> >> Return > >>>>>> >> Endif > >>>>>> >> Endif > >>>>>> >> Endif > >>>>>> >> Endif > >>>>>> >> > >>>>>> >> Try pic1.Picture.send(data) > >>>>>> >> Try pic2.Picture.send(data) > >>>>>> >> Try pic3.Picture.send(data) > >>>>>> >> Try pic4.Picture.send(data) > >>>>>> >> Try saveprocess.send(data) > >>>>>> >> > >>>>>> >> bytesrecorded = bytesrecorded + Len(data) > >>>>>> >> > >>>>>> >> End > >>>>>> >> > >>>>>> >> > >>>>>> >> Public Sub btnRecord_Click() > >>>>>> >> > >>>>>> >> If btnRecord.text = "Record" Then > >>>>>> >> bytesrecorded = 0 > >>>>>> >> starttime = Now > >>>>>> >> endtime = starttime > >>>>>> >> initcapture() > >>>>>> >> Tmr1_Timer() > >>>>>> >> btnRecord.text = "Stop" > >>>>>> >> SaveProcess = Exec ["bash", "-c", "cat > " & setFilename1()] > >>>>>> For > >>>>>> Write > >>>>>> >> SaveProcess = Exec ["bash", "-c", "cat > " & setFilename2()] > >>>>>> For > >>>>>> Write > >>>>>> >> SaveProcess = Exec ["bash", "-c", "cat > " & setFilename3()] > >>>>>> For > >>>>>> Write > >>>>>> >> SaveProcess = Exec ["bash", "-c", "cat > " & setFilename4()] > >>>>>> For > >>>>>> Write > >>>>>> >> Else > >>>>>> >> endtime = Now > >>>>>> >> > >>>>>> >> Try saveprocess.kill > >>>>>> >> btnRecord.text = "Record" > >>>>>> >> setFilename1() > >>>>>> >> setFilename2() > >>>>>> >> setFilename3() > >>>>>> >> setFilename4() > >>>>>> >> Endif > >>>>>> >> End > >>>>>> >> > >>>>>> >> Public Function setFilename1() As String > >>>>>> >> > >>>>>> >> Dim i As Integer > >>>>>> >> > >>>>>> >> i = 0 > >>>>>> >> 'Do While Exist(Application.Path &/ "kamera1" & i & ".mpg") > >>>>>> >> Do While Exist(User.Home &/ "kamera1" & i & ".mpg") > >>>>>> >> i = i + 1 > >>>>>> >> Loop > >>>>>> >> 'Return Application.Path &/ "kamera1" & Format(i, "000") & > ".mpg" > >>>>>> >> Return User.Home &/ "kamera1" & Format(i, "000") & ".mpg" > >>>>>> >> > >>>>>> >> End > >>>>>> >> > >>>>>> >> > >>>>>> >> Public Function setFilename2() As String > >>>>>> >> > >>>>>> >> Dim i As Integer > >>>>>> >> i = 0 > >>>>>> >> Do While Exist(User.Home &/ "kamera2" & i & ".mpg") > >>>>>> >> i = i + 1 > >>>>>> >> Loop > >>>>>> >> Return User.Home &/ "kamera2" & Format(i, "000") & ".mpg" > >>>>>> >> > >>>>>> >> End > >>>>>> >> > >>>>>> >> > >>>>>> >> Public Function setFilename3() As String > >>>>>> >> > >>>>>> >> Dim i As Integer > >>>>>> >> i = 0 > >>>>>> >> Do While Exist(User.Home &/ "kamera3" & i & ".mpg") > >>>>>> >> i = i + 1 > >>>>>> >> Loop > >>>>>> >> Return User.Home &/ "kamera3" & Format(i, "000") & ".mpg" > >>>>>> >> > >>>>>> >> End > >>>>>> >> > >>>>>> >> > >>>>>> >> Public Function setFilename4() As String > >>>>>> >> > >>>>>> >> Dim i As Integer > >>>>>> >> i = 0 > >>>>>> >> Do While Exist(User.Home &/ "kamera4" & i & ".mpg") > >>>>>> >> i = i + 1 > >>>>>> >> Loop > >>>>>> >> Return User.Home &/ "kamera4" & Format(i, "000") & ".mpg" > >>>>>> >> > >>>>>> >> End > >>>>>> >> > >>>>>> >> Public Sub UpdateBytesLabel() > >>>>>> >> Dim i As Float > >>>>>> >> If bytesrecorded > 1048576 Then > >>>>>> >> i = Int(bytesrecorded / 100000) > >>>>>> >> Else > >>>>>> >> i = Int(bytesrecorded / 100) > >>>>>> >> Endif > >>>>>> >> > >>>>>> >> End > >>>>>> >> > >>>>>> >> Public Sub UpdateTimeLabel() > >>>>>> >> > >>>>>> >> If starttime = "00:00:00" Then Return > >>>>>> >> If endtime <> starttime Then Return > >>>>>> >> > >>>>>> >> TextDate1.text = Time(CDate(CInt(Now) + (Now - starttime) + > >>>>>> >> timezoneadjust)) > >>>>>> >> > >>>>>> >> End > >>>>>> >> > >>>>>> >> anyone can solve my problem please...? > >>>>>> >> > >>>>>> >> -- > >>>>>> >> View this message in context: > >>>>>> >> > >>>>>> > http://old.nabble.com/Did-anyone-have-a-script-to-record-webcame-picture-in-video-files-tp30442622p30442622.html > >>>>>> >> Sent from the gambas-user mailing list archive at Nabble.com. > >>>>>> >> > >>>>>> >> > >>>>>> >> > >>>>>> >> > >>>>>> > ------------------------------------------------------------------------------ > >>>>>> >> Lotusphere 2011 > >>>>>> >> Register now for Lotusphere 2011 and learn how > >>>>>> >> to connect the dots, take your collaborative environment > >>>>>> >> to the next level, and enter the era of Social Business. > >>>>>> >> http://p.sf.net/sfu/lotusphere-d2d > >>>>>> >> _______________________________________________ > >>>>>> >> Gambas-user mailing list > >>>>>> >> Gambas-user at lists.sourceforge.net > >>>>>> >> https://lists.sourceforge.net/lists/listinfo/gambas-user > >>>>>> >> > >>>>>> > > >>>>>> > ------------------------------------------------------------------------------ > >>>>>> > Lotusphere 2011 > >>>>>> > Register now for Lotusphere 2011 and learn how > >>>>>> > to connect the dots, take your collaborative environment > >>>>>> > to the next level, and enter the era of Social Business. > >>>>>> > http://p.sf.net/sfu/lotusphere-d2d > >>>>>> > _______________________________________________ > >>>>>> > Gambas-user mailing list > >>>>>> > Gambas-user at lists.sourceforge.net > >>>>>> > https://lists.sourceforge.net/lists/listinfo/gambas-user > >>>>>> > > >>>>>> > > >>>>>> > >>>>>> -- > >>>>>> View this message in context: > >>>>>> > http://old.nabble.com/Did-anyone-have-a-script-to-record-webcame-picture-in-video-files-tp30442622p30496252.html > >>>>>> Sent from the gambas-user mailing list archive at Nabble.com. > >>>>>> > >>>>>> > >>>>>> > >>>>>> > ------------------------------------------------------------------------------ > >>>>>> Lotusphere 2011 > >>>>>> Register now for Lotusphere 2011 and learn how > >>>>>> to connect the dots, take your collaborative environment > >>>>>> to the next level, and enter the era of Social Business. > >>>>>> http://p.sf.net/sfu/lotusphere-d2d > >>>>>> _______________________________________________ > >>>>>> Gambas-user mailing list > >>>>>> Gambas-user at lists.sourceforge.net > >>>>>> https://lists.sourceforge.net/lists/listinfo/gambas-user > >>>>>> > >>>>> > ------------------------------------------------------------------------------ > >>>>> Lotusphere 2011 > >>>>> Register now for Lotusphere 2011 and learn how > >>>>> to connect the dots, take your collaborative environment > >>>>> to the next level, and enter the era of Social Business. > >>>>> http://p.sf.net/sfu/lotusphere-d2d > >>>>> _______________________________________________ > >>>>> Gambas-user mailing list > >>>>> Gambas-user at lists.sourceforge.net > >>>>> https://lists.sourceforge.net/lists/listinfo/gambas-user > >>>>> > >>>>> > >>>> > >>>> -- > >>>> View this message in context: > >>>> > http://old.nabble.com/Did-anyone-have-a-script-to-record-webcame-picture-in-video-files-tp30442622p30510255.html > >>>> Sent from the gambas-user mailing list archive at Nabble.com. > >>>> > >>>> > >>>> > ------------------------------------------------------------------------------ > >>>> Forrester recently released a report on the Return on Investment (ROI) > >>>> of > >>>> Google Apps. They found a 300% ROI, 38%-56% cost savings, and > >>>> break-even > >>>> within 7 months. Over 3 million businesses have gone Google with > >>>> Google > >>>> Apps: > >>>> an online email calendar, and document program that's accessible from > >>>> your > >>>> browser. Read the Forrester report: > >>>> http://p.sf.net/sfu/googleapps-sfnew > >>>> _______________________________________________ > >>>> Gambas-user mailing list > >>>> Gambas-user at lists.sourceforge.net > >>>> https://lists.sourceforge.net/lists/listinfo/gambas-user > >>>> > >>> > >>> > >>> > >>> -- > >>> Fabien Bodard > >>> > >>> > ------------------------------------------------------------------------------ > >>> Forrester recently released a report on the Return on Investment (ROI) > >>> of > >>> Google Apps. They found a 300% ROI, 38%-56% cost savings, and > break-even > >>> within 7 months. Over 3 million businesses have gone Google with > Google > >>> Apps: > >>> an online email calendar, and document program that's accessible from > >>> your > >>> browser. Read the Forrester report: > http://p.sf.net/sfu/googleapps-sfnew > >>> _______________________________________________ > >>> Gambas-user mailing list > >>> Gambas-user at lists.sourceforge.net > >>> https://lists.sourceforge.net/lists/listinfo/gambas-user > >>> > >>> > >> > >> -- > >> View this message in context: > >> > http://old.nabble.com/Did-anyone-have-a-script-to-record-webcame-picture-in-video-files-tp30442622p30512324.html > >> Sent from the gambas-user mailing list archive at Nabble.com. > >> > >> > >> > ------------------------------------------------------------------------------ > >> Forrester recently released a report on the Return on Investment (ROI) > of > >> Google Apps. They found a 300% ROI, 38%-56% cost savings, and break-even > >> within 7 months. Over 3 million businesses have gone Google with Google > >> Apps: > >> an online email calendar, and document program that's accessible from > >> your > >> browser. Read the Forrester report: > http://p.sf.net/sfu/googleapps-sfnew > >> _______________________________________________ > >> Gambas-user mailing list > >> Gambas-user at lists.sourceforge.net > >> https://lists.sourceforge.net/lists/listinfo/gambas-user > >> > > > > > > > > -- > > Fabien Bodard > > > > > ------------------------------------------------------------------------------ > > Forrester recently released a report on the Return on Investment (ROI) of > > Google Apps. They found a 300% ROI, 38%-56% cost savings, and break-even > > within 7 months. Over 3 million businesses have gone Google with Google > > Apps: > > an online email calendar, and document program that's accessible from > your > > browser. Read the Forrester report: http://p.sf.net/sfu/googleapps-sfnew > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > -- > View this message in context: > http://old.nabble.com/Did-anyone-have-a-script-to-record-webcame-picture-in-video-files-tp30442622p30513973.html > Sent from the gambas-user mailing list archive at Nabble.com. > > > > ------------------------------------------------------------------------------ > Forrester recently released a report on the Return on Investment (ROI) of > Google Apps. They found a 300% ROI, 38%-56% cost savings, and break-even > within 7 months. Over 3 million businesses have gone Google with Google > Apps: > an online email calendar, and document program that's accessible from your > browser. Read the Forrester report: http://p.sf.net/sfu/googleapps-sfnew > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From jussi.lahtinen at ...626... Wed Dec 22 18:06:34 2010 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Wed, 22 Dec 2010 19:06:34 +0200 Subject: [Gambas-user] Week function and localization Message-ID: ? Week(Date(2005, 7, 24)) 30 Calendar says 29, however this doesn't seem to be this simple... See end of this page, section 'weeks', week number options. http://www.timeanddate.com/calendar/custommenu.html?year=2005&country=9&wno=5&holm=1&df=1 Seems that there are several ways how week numbers are counted in different countries! So, with same date, 30 is wrong in Finland but correct in Japan.... Jussi From gambas at ...1... Wed Dec 22 18:14:07 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Wed, 22 Dec 2010 18:14:07 +0100 Subject: [Gambas-user] Week function and localization In-Reply-To: References: Message-ID: <201012221814.07854.gambas@...1...> > ? Week(Date(2005, 7, 24)) > 30 > Calendar says 29, however this doesn't seem to be this simple... > > See end of this page, section 'weeks', week number options. > http://www.timeanddate.com/calendar/custommenu.html?year=2005&country=9&wno > =5&holm=1&df=1 > > Seems that there are several ways how week numbers are counted in different > countries! > So, with same date, 30 is wrong in Finland but correct in Japan.... > > Jussi This is the reason why Week() has two optional arguments. Apparently there is no information in the localization system settings that allows to know how to compute the week number from a date. So this is up to the programmer to decide himself by using the two optional arguments of Week(). Regards, -- Beno?t Minisini From jussi.lahtinen at ...626... Wed Dec 22 18:21:01 2010 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Wed, 22 Dec 2010 19:21:01 +0200 Subject: [Gambas-user] Week function and localization In-Reply-To: <201012221814.07854.gambas@...1...> References: <201012221814.07854.gambas@...1...> Message-ID: How did I missed them... Jussi 2010/12/22 Beno?t Minisini > > ? Week(Date(2005, 7, 24)) > > 30 > > Calendar says 29, however this doesn't seem to be this simple... > > > > See end of this page, section 'weeks', week number options. > > > http://www.timeanddate.com/calendar/custommenu.html?year=2005&country=9&wno > > =5&holm=1&df=1 > > > > Seems that there are several ways how week numbers are counted in > different > > countries! > > So, with same date, 30 is wrong in Finland but correct in Japan.... > > > > Jussi > > This is the reason why Week() has two optional arguments. Apparently there > is > no information in the localization system settings that allows to know how > to > compute the week number from a date. So this is up to the programmer to > decide > himself by using the two optional arguments of Week(). > > Regards, > > -- > Beno?t Minisini > > > ------------------------------------------------------------------------------ > Forrester recently released a report on the Return on Investment (ROI) of > Google Apps. They found a 300% ROI, 38%-56% cost savings, and break-even > within 7 months. Over 3 million businesses have gone Google with Google > Apps: > an online email calendar, and document program that's accessible from your > browser. Read the Forrester report: http://p.sf.net/sfu/googleapps-sfnew > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas.fr at ...626... Wed Dec 22 18:55:55 2010 From: gambas.fr at ...626... (Fabien Bodard) Date: Wed, 22 Dec 2010 18:55:55 +0100 Subject: [Gambas-user] painting graph to image continuously In-Reply-To: <201012221322.42583.wally@...2037...> References: <201012161846.46665.wally@...2037...> <201012221322.42583.wally@...2037...> Message-ID: 2010/12/22 wally : > On Saturday 18 December 2010 14:44:22 Fabien Bodard wrote: >> ok wally this is the full demo of what you want to do, and what you >> need to do for that. I use like often in gambas >> a data/view model ... the drawingarea is just a viewer for the data >> and the _draw event contain the rules do draw the datas. >> The datas are stored in an array $aDatas. >> >> The Timer emulate the datas entry >> >> 2010/12/18 Fabien Bodard : >> >> Fabian, >> >> >> >> yes, you are right, this may be a problem. >> >> I will try to collect the data as short as possible in a data-array >> >> and display always only the graph of a segment of this array. >> >> Your DemoGraph was helpful to see how the _draw event is >> >> used and i'll try this way too. >> >> But for now i would like to know how the DrawingArea.Resize >> >> works internally and why there are differences in GB2 and GB3. >> >> >> >> wally >> >> >> > >> > Resize is a procedure inherited from control ... it just resize the >> > controle ... but can have conflict with autoarrangement. >> > >> > >> > >> > -- >> > Fabien Bodard >> > >> >> >> >> -- >> Fabien Bodard >> > > Fabian, > > is there a way to provide parameters "x" to the _draw(x) event ? > Actually i do this with punlic variables. No you can't ... and i don't see why it is necessary .... from where do you want to setup this var ? > > wally > > > > > > > > ------------------------------------------------------------------------------ > Forrester recently released a report on the Return on Investment (ROI) of > Google Apps. They found a 300% ROI, 38%-56% cost savings, and break-even > within 7 months. ?Over 3 million businesses have gone Google with Google Apps: > an online email calendar, and document program that's accessible from your > browser. Read the Forrester report: http://p.sf.net/sfu/googleapps-sfnew > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Fabien Bodard From jussi.lahtinen at ...626... Wed Dec 22 19:03:40 2010 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Wed, 22 Dec 2010 20:03:40 +0200 Subject: [Gambas-user] Type Mismatch error with max neg long int as constant In-Reply-To: <201011271558.37614.gambas@...1...> References: <20101124224711.M5490@...951...> <201011271505.02275.gambas@...1...> <201011271529.22059.gambas@...1...> <201011271558.37614.gambas@...1...> Message-ID: Very similar problem... Public Const LowestInteger As Integer = -2147483648 Yields; "Out of range" Gambas 3 rev 3389 @ Ubuntu 10.10 Jussi 2010/11/27 Beno?t Minisini > > > > In Gambas2, I get a type mismatch error...but no error if ends in a 7 > > > > > > > > PUBLIC CONST LOWESTLONG AS Long = -9223372036854775808 'from wiki: > > > > -9.223.372.036.854.775.808 > > > > > > > > -Fernando > > > > > > Mmm. Yes. Strange, as it works inside the interpreter, and I thought > both > > > compiler and interpreter had the same "string to number" routine. > > > > > > I will look at that... > > > > OK, I see: the compiler reads the sign of the number in one place, and > the > > digits in another place. So it tries to read "9223372036854775808" as a > > positive integer, and of course it overflows, as the greatest long is > > "9223372036854775807". > > > > No solution at the moment... > > OK, that should be fixed in both Gambas 2 and Gambas 3 in revision #3328. > > 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 at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From wally at ...2037... Wed Dec 22 19:12:35 2010 From: wally at ...2037... (wally) Date: Wed, 22 Dec 2010 19:12:35 +0100 Subject: [Gambas-user] painting graph to image continuously In-Reply-To: References: <201012161846.46665.wally@...2037...> <201012221322.42583.wally@...2037...> Message-ID: <201012221912.35631.wally@...2037...> On Wednesday 22 December 2010 18:55:55 Fabien Bodard wrote: > 2010/12/22 wally : > > On Saturday 18 December 2010 14:44:22 Fabien Bodard wrote: > >> ok wally this is the full demo of what you want to do, and what you > >> need to do for that. I use like often in gambas > >> a data/view model ... the drawingarea is just a viewer for the data > >> and the _draw event contain the rules do draw the datas. > >> The datas are stored in an array $aDatas. > >> > >> The Timer emulate the datas entry > >> > >> 2010/12/18 Fabien Bodard : > >> >> Fabian, > >> >> > >> >> yes, you are right, this may be a problem. > >> >> I will try to collect the data as short as possible in a data-array > >> >> and display always only the graph of a segment of this array. > >> >> Your DemoGraph was helpful to see how the _draw event is > >> >> used and i'll try this way too. > >> >> But for now i would like to know how the DrawingArea.Resize > >> >> works internally and why there are differences in GB2 and GB3. > >> >> > >> >> wally > >> >> > >> > > >> > Resize is a procedure inherited from control ... it just resize the > >> > controle ... but can have conflict with autoarrangement. > >> > > >> > > >> > > >> > -- > >> > Fabien Bodard > >> > > >> > >> > >> > >> -- > >> Fabien Bodard > >> > > > > Fabian, > > > > is there a way to provide parameters "x" to the _draw(x) event ? > > Actually i do this with punlic variables. > > No you can't ... and i don't see why it is necessary .... from where > do you want to setup this var ? > > > > > > wally > > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > Forrester recently released a report on the Return on Investment (ROI) of > > Google Apps. They found a 300% ROI, 38%-56% cost savings, and break-even > > within 7 months. Over 3 million businesses have gone Google with Google Apps: > > an online email calendar, and document program that's accessible from your > > browser. Read the Forrester report: http://p.sf.net/sfu/googleapps-sfnew > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > -- > Fabien Bodard > > ------------------------------------------------------------------------------ > Learn how Oracle Real Application Clusters (RAC) One Node allows customers > to consolidate database storage, standardize their database environment, and, > should the need arise, upgrade to a full multi-node Oracle RAC database > without downtime or disruption > http://p.sf.net/sfu/oracle-sfdevnl > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > Fabian, No, you are right - not really necessary. I just was curious. wally From gambas at ...1... Wed Dec 22 19:31:52 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Wed, 22 Dec 2010 19:31:52 +0100 Subject: [Gambas-user] Type Mismatch error with max neg long int as constant In-Reply-To: References: <20101124224711.M5490@...951...> <201011271558.37614.gambas@...1...> Message-ID: <201012221931.52054.gambas@...1...> > Very similar problem... > > Public Const LowestInteger As Integer = -2147483648 > Yields; "Out of range" > > Gambas 3 rev 3389 @ Ubuntu 10.10 > > Jussi > It should be fixed in revision #3393. Regards, -- Beno?t Minisini From firman.isb at ...626... Wed Dec 22 22:57:47 2010 From: firman.isb at ...626... (firman) Date: Wed, 22 Dec 2010 13:57:47 -0800 (PST) Subject: [Gambas-user] Did anyone have a script to record webcame picture in video files In-Reply-To: References: <30442622.post@...1379...> <30496252.post@...1379...> <30510255.post@...1379...> <30512324.post@...1379...> <30513973.post@...1379...> Message-ID: <30517734.post@...1379...> ok i tried using another tools for give u my project... this is my project... http://old.nabble.com/file/p30517734/TACAMCCTVrev2.tar.gz TACAMCCTVrev2.tar.gz Jussi Lahtinen wrote: > > I can confirm that Gambas3 works perfectly with Ubuntu 10.10 64bit. > Please pack your sources with another tool, I can't open it correctly with > 7zip... > > Jussi > > > On Wed, Dec 22, 2010 at 14:43, firman wrote: > >> >> i've tried again and the result still not shown menus.. i use macbuntu on >> 10.10 ubuntu version.. so i'll try to install gambas again.. >> >> >> Fabien Bodard-4 wrote: >> > >> > i've ubuntu 10.10 ... in fact i use actually a derivated distro : Mint >> > 10 based on the 10.10 Maverick >> > >> > try to remove the ~/.config/gambas3 directory and run again gambas >> > >> > 2010/12/22 firman : >> >> >> >> Thanks Mr. Fabien, I've tried to use that key but nothing change, and >> >> still >> >> nothing menus could show.. maybe i must change my ubuntu to 10.04 >> >> again... >> >> >> >> >> >> Fabien Bodard-4 wrote: >> >>> >> >>> ctrl+alt+m... to show the menu ? >> >>> >> >>> 2010/12/21 firman : >> >>>> >> >>>> i'm sorry,, i've problem with my gambas3, i tried to install it in >> >>>> ubuntu >> >>>> 10.10 and any problem there. When i openned gambas3 there was >> nothing >> >>>> menus.. but the project can openned. So i use os windows for put the >> >>>> source >> >>>> archive using winrar.. >> >>>> >> >>>> and here's the archive.. so u can extract the rar file first, and >> open >> >>>> it >> >>>> in >> >>>> gambas3. i'm wating for ur solutions for my project. thanks. >> >>>> http://old.nabble.com/file/p30510255/TACAMCCTVrev2.rar >> >>>> TACAMCCTVrev2.rar >> >>>> >> >>>> >> >>>> >> >>>> Jussi Lahtinen wrote: >> >>>>> >> >>>>> Project --> Make --> Source archive >> >>>>> And put the script in that tar ball also. >> >>>>> >> >>>>> Jussi >> >>>>> >> >>>>> >> >>>>> >> >>>>> On Mon, Dec 20, 2010 at 08:32, firman wrote: >> >>>>> >> >>>>>> >> >>>>>> okay i'll send u entire project, but which one do u need, Files >> >>>>>> project >> >>>>>> in >> >>>>>> package program or just All script in main form?? >> >>>>>> >> >>>>>> thank's >> >>>>>> >> >>>>>> >> >>>>>> >> >>>>>> Jussi Lahtinen wrote: >> >>>>>> > >> >>>>>> > It is easier to help if you send your whole project. >> >>>>>> > I can't see any handling for CatProcess. >> >>>>>> > >> >>>>>> > Jussi >> >>>>>> > >> >>>>>> > >> >>>>>> > On Sat, Dec 18, 2010 at 02:11, firman >> wrote: >> >>>>>> > >> >>>>>> >> >> >>>>>> >> >> >>>>>> >> I Almost done my project about monitoring camera using webcam >> with >> >>>>>> gambas >> >>>>>> >> 3... the picture or streaming video can displayed on picturebox >> >>>>>> but >> >>>>>> i >> >>>>>> >> still >> >>>>>> >> have a problem to record in video file mode r like avi, mpg or >> >>>>>> other >> >>>>>> >> compressed format.. please help me if anyone can solve my >> problem. >> >>>>>> i >> >>>>>> will >> >>>>>> >> showing u a picture of FMain my project... the record button >> still >> >>>>>> >> couldn't >> >>>>>> >> worked... >> >>>>>> >> >> >>>>>> >> i'm using gambas 3 svn... I've wrote the script like this, and >> >>>>>> worked >> >>>>>> the >> >>>>>> >> files created but still 0 KB or nothing recorded.... >> >>>>>> >> this is the script: >> >>>>>> >> >> >>>>>> >> 'Proses Menyimpan File record >> >>>>>> >> >> >>>>>> >> Public Sub InitCapture() >> >>>>>> >> >> >>>>>> >> If Not CatProcess Then >> >>>>>> >> bytesrecorded = 0 >> >>>>>> >> CatProcess = Exec ["cat", "/dev/video0"] For Read >> >>>>>> >> CatProcess = Exec ["cat", "/dev/video1"] For Read >> >>>>>> >> CatProcess = Exec ["cat", "/dev/video2"] For Read >> >>>>>> >> CatProcess = Exec ["cat", "/dev/video3"] For Read >> >>>>>> >> >> >>>>>> >> Endif >> >>>>>> >> >> >>>>>> >> UpdateBytesLabel() >> >>>>>> >> >> >>>>>> >> End >> >>>>>> >> >> >>>>>> >> Public Sub Process_Write(data As String) >> >>>>>> >> >> >>>>>> >> If pic1.Picture = $cam1.Image.Picture Then >> >>>>>> >> If pic2.Picture = $cam2.Image.Picture Then >> >>>>>> >> If pic3.Picture = $cam3.Image.Picture Then >> >>>>>> >> If pic4.Picture = $cam4.Image.Picture Then >> >>>>>> >> Return >> >>>>>> >> Endif >> >>>>>> >> Endif >> >>>>>> >> Endif >> >>>>>> >> Endif >> >>>>>> >> >> >>>>>> >> Try pic1.Picture.send(data) >> >>>>>> >> Try pic2.Picture.send(data) >> >>>>>> >> Try pic3.Picture.send(data) >> >>>>>> >> Try pic4.Picture.send(data) >> >>>>>> >> Try saveprocess.send(data) >> >>>>>> >> >> >>>>>> >> bytesrecorded = bytesrecorded + Len(data) >> >>>>>> >> >> >>>>>> >> End >> >>>>>> >> >> >>>>>> >> >> >>>>>> >> Public Sub btnRecord_Click() >> >>>>>> >> >> >>>>>> >> If btnRecord.text = "Record" Then >> >>>>>> >> bytesrecorded = 0 >> >>>>>> >> starttime = Now >> >>>>>> >> endtime = starttime >> >>>>>> >> initcapture() >> >>>>>> >> Tmr1_Timer() >> >>>>>> >> btnRecord.text = "Stop" >> >>>>>> >> SaveProcess = Exec ["bash", "-c", "cat > " & setFilename1()] >> >>>>>> For >> >>>>>> Write >> >>>>>> >> SaveProcess = Exec ["bash", "-c", "cat > " & setFilename2()] >> >>>>>> For >> >>>>>> Write >> >>>>>> >> SaveProcess = Exec ["bash", "-c", "cat > " & setFilename3()] >> >>>>>> For >> >>>>>> Write >> >>>>>> >> SaveProcess = Exec ["bash", "-c", "cat > " & setFilename4()] >> >>>>>> For >> >>>>>> Write >> >>>>>> >> Else >> >>>>>> >> endtime = Now >> >>>>>> >> >> >>>>>> >> Try saveprocess.kill >> >>>>>> >> btnRecord.text = "Record" >> >>>>>> >> setFilename1() >> >>>>>> >> setFilename2() >> >>>>>> >> setFilename3() >> >>>>>> >> setFilename4() >> >>>>>> >> Endif >> >>>>>> >> End >> >>>>>> >> >> >>>>>> >> Public Function setFilename1() As String >> >>>>>> >> >> >>>>>> >> Dim i As Integer >> >>>>>> >> >> >>>>>> >> i = 0 >> >>>>>> >> 'Do While Exist(Application.Path &/ "kamera1" & i & ".mpg") >> >>>>>> >> Do While Exist(User.Home &/ "kamera1" & i & ".mpg") >> >>>>>> >> i = i + 1 >> >>>>>> >> Loop >> >>>>>> >> 'Return Application.Path &/ "kamera1" & Format(i, "000") & >> ".mpg" >> >>>>>> >> Return User.Home &/ "kamera1" & Format(i, "000") & ".mpg" >> >>>>>> >> >> >>>>>> >> End >> >>>>>> >> >> >>>>>> >> >> >>>>>> >> Public Function setFilename2() As String >> >>>>>> >> >> >>>>>> >> Dim i As Integer >> >>>>>> >> i = 0 >> >>>>>> >> Do While Exist(User.Home &/ "kamera2" & i & ".mpg") >> >>>>>> >> i = i + 1 >> >>>>>> >> Loop >> >>>>>> >> Return User.Home &/ "kamera2" & Format(i, "000") & ".mpg" >> >>>>>> >> >> >>>>>> >> End >> >>>>>> >> >> >>>>>> >> >> >>>>>> >> Public Function setFilename3() As String >> >>>>>> >> >> >>>>>> >> Dim i As Integer >> >>>>>> >> i = 0 >> >>>>>> >> Do While Exist(User.Home &/ "kamera3" & i & ".mpg") >> >>>>>> >> i = i + 1 >> >>>>>> >> Loop >> >>>>>> >> Return User.Home &/ "kamera3" & Format(i, "000") & ".mpg" >> >>>>>> >> >> >>>>>> >> End >> >>>>>> >> >> >>>>>> >> >> >>>>>> >> Public Function setFilename4() As String >> >>>>>> >> >> >>>>>> >> Dim i As Integer >> >>>>>> >> i = 0 >> >>>>>> >> Do While Exist(User.Home &/ "kamera4" & i & ".mpg") >> >>>>>> >> i = i + 1 >> >>>>>> >> Loop >> >>>>>> >> Return User.Home &/ "kamera4" & Format(i, "000") & ".mpg" >> >>>>>> >> >> >>>>>> >> End >> >>>>>> >> >> >>>>>> >> Public Sub UpdateBytesLabel() >> >>>>>> >> Dim i As Float >> >>>>>> >> If bytesrecorded > 1048576 Then >> >>>>>> >> i = Int(bytesrecorded / 100000) >> >>>>>> >> Else >> >>>>>> >> i = Int(bytesrecorded / 100) >> >>>>>> >> Endif >> >>>>>> >> >> >>>>>> >> End >> >>>>>> >> >> >>>>>> >> Public Sub UpdateTimeLabel() >> >>>>>> >> >> >>>>>> >> If starttime = "00:00:00" Then Return >> >>>>>> >> If endtime <> starttime Then Return >> >>>>>> >> >> >>>>>> >> TextDate1.text = Time(CDate(CInt(Now) + (Now - starttime) + >> >>>>>> >> timezoneadjust)) >> >>>>>> >> >> >>>>>> >> End >> >>>>>> >> >> >>>>>> >> anyone can solve my problem please...? >> >>>>>> >> >> >>>>>> >> -- >> >>>>>> >> View this message in context: >> >>>>>> >> >> >>>>>> >> http://old.nabble.com/Did-anyone-have-a-script-to-record-webcame-picture-in-video-files-tp30442622p30442622.html >> >>>>>> >> Sent from the gambas-user mailing list archive at Nabble.com. >> >>>>>> >> >> >>>>>> >> >> >>>>>> >> >> >>>>>> >> >> >>>>>> >> ------------------------------------------------------------------------------ >> >>>>>> >> Lotusphere 2011 >> >>>>>> >> Register now for Lotusphere 2011 and learn how >> >>>>>> >> to connect the dots, take your collaborative environment >> >>>>>> >> to the next level, and enter the era of Social Business. >> >>>>>> >> http://p.sf.net/sfu/lotusphere-d2d >> >>>>>> >> _______________________________________________ >> >>>>>> >> Gambas-user mailing list >> >>>>>> >> Gambas-user at lists.sourceforge.net >> >>>>>> >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> >>>>>> >> >> >>>>>> > >> >>>>>> >> ------------------------------------------------------------------------------ >> >>>>>> > Lotusphere 2011 >> >>>>>> > Register now for Lotusphere 2011 and learn how >> >>>>>> > to connect the dots, take your collaborative environment >> >>>>>> > to the next level, and enter the era of Social Business. >> >>>>>> > http://p.sf.net/sfu/lotusphere-d2d >> >>>>>> > _______________________________________________ >> >>>>>> > Gambas-user mailing list >> >>>>>> > Gambas-user at lists.sourceforge.net >> >>>>>> > https://lists.sourceforge.net/lists/listinfo/gambas-user >> >>>>>> > >> >>>>>> > >> >>>>>> >> >>>>>> -- >> >>>>>> View this message in context: >> >>>>>> >> http://old.nabble.com/Did-anyone-have-a-script-to-record-webcame-picture-in-video-files-tp30442622p30496252.html >> >>>>>> Sent from the gambas-user mailing list archive at Nabble.com. >> >>>>>> >> >>>>>> >> >>>>>> >> >>>>>> >> ------------------------------------------------------------------------------ >> >>>>>> Lotusphere 2011 >> >>>>>> Register now for Lotusphere 2011 and learn how >> >>>>>> to connect the dots, take your collaborative environment >> >>>>>> to the next level, and enter the era of Social Business. >> >>>>>> http://p.sf.net/sfu/lotusphere-d2d >> >>>>>> _______________________________________________ >> >>>>>> Gambas-user mailing list >> >>>>>> Gambas-user at lists.sourceforge.net >> >>>>>> https://lists.sourceforge.net/lists/listinfo/gambas-user >> >>>>>> >> >>>>> >> ------------------------------------------------------------------------------ >> >>>>> Lotusphere 2011 >> >>>>> Register now for Lotusphere 2011 and learn how >> >>>>> to connect the dots, take your collaborative environment >> >>>>> to the next level, and enter the era of Social Business. >> >>>>> http://p.sf.net/sfu/lotusphere-d2d >> >>>>> _______________________________________________ >> >>>>> Gambas-user mailing list >> >>>>> Gambas-user at lists.sourceforge.net >> >>>>> https://lists.sourceforge.net/lists/listinfo/gambas-user >> >>>>> >> >>>>> >> >>>> >> >>>> -- >> >>>> View this message in context: >> >>>> >> http://old.nabble.com/Did-anyone-have-a-script-to-record-webcame-picture-in-video-files-tp30442622p30510255.html >> >>>> Sent from the gambas-user mailing list archive at Nabble.com. >> >>>> >> >>>> >> >>>> >> ------------------------------------------------------------------------------ >> >>>> Forrester recently released a report on the Return on Investment >> (ROI) >> >>>> of >> >>>> Google Apps. They found a 300% ROI, 38%-56% cost savings, and >> >>>> break-even >> >>>> within 7 months. Over 3 million businesses have gone Google with >> >>>> Google >> >>>> Apps: >> >>>> an online email calendar, and document program that's accessible >> from >> >>>> your >> >>>> browser. Read the Forrester report: >> >>>> http://p.sf.net/sfu/googleapps-sfnew >> >>>> _______________________________________________ >> >>>> Gambas-user mailing list >> >>>> Gambas-user at lists.sourceforge.net >> >>>> https://lists.sourceforge.net/lists/listinfo/gambas-user >> >>>> >> >>> >> >>> >> >>> >> >>> -- >> >>> Fabien Bodard >> >>> >> >>> >> ------------------------------------------------------------------------------ >> >>> Forrester recently released a report on the Return on Investment >> (ROI) >> >>> of >> >>> Google Apps. They found a 300% ROI, 38%-56% cost savings, and >> break-even >> >>> within 7 months. Over 3 million businesses have gone Google with >> Google >> >>> Apps: >> >>> an online email calendar, and document program that's accessible from >> >>> your >> >>> browser. Read the Forrester report: >> http://p.sf.net/sfu/googleapps-sfnew >> >>> _______________________________________________ >> >>> Gambas-user mailing list >> >>> Gambas-user at lists.sourceforge.net >> >>> https://lists.sourceforge.net/lists/listinfo/gambas-user >> >>> >> >>> >> >> >> >> -- >> >> View this message in context: >> >> >> http://old.nabble.com/Did-anyone-have-a-script-to-record-webcame-picture-in-video-files-tp30442622p30512324.html >> >> Sent from the gambas-user mailing list archive at Nabble.com. >> >> >> >> >> >> >> ------------------------------------------------------------------------------ >> >> Forrester recently released a report on the Return on Investment (ROI) >> of >> >> Google Apps. They found a 300% ROI, 38%-56% cost savings, and >> break-even >> >> within 7 months. Over 3 million businesses have gone Google with >> Google >> >> Apps: >> >> an online email calendar, and document program that's accessible from >> >> your >> >> browser. Read the Forrester report: >> http://p.sf.net/sfu/googleapps-sfnew >> >> _______________________________________________ >> >> Gambas-user mailing list >> >> Gambas-user at lists.sourceforge.net >> >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> >> >> > >> > >> > >> > -- >> > Fabien Bodard >> > >> > >> ------------------------------------------------------------------------------ >> > Forrester recently released a report on the Return on Investment (ROI) >> of >> > Google Apps. They found a 300% ROI, 38%-56% cost savings, and >> break-even >> > within 7 months. Over 3 million businesses have gone Google with >> Google >> > Apps: >> > an online email calendar, and document program that's accessible from >> your >> > browser. Read the Forrester report: >> http://p.sf.net/sfu/googleapps-sfnew >> > _______________________________________________ >> > Gambas-user mailing list >> > Gambas-user at lists.sourceforge.net >> > https://lists.sourceforge.net/lists/listinfo/gambas-user >> > >> > >> >> -- >> View this message in context: >> http://old.nabble.com/Did-anyone-have-a-script-to-record-webcame-picture-in-video-files-tp30442622p30513973.html >> Sent from the gambas-user mailing list archive at Nabble.com. >> >> >> >> ------------------------------------------------------------------------------ >> Forrester recently released a report on the Return on Investment (ROI) of >> Google Apps. They found a 300% ROI, 38%-56% cost savings, and break-even >> within 7 months. Over 3 million businesses have gone Google with Google >> Apps: >> an online email calendar, and document program that's accessible from >> your >> browser. Read the Forrester report: http://p.sf.net/sfu/googleapps-sfnew >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > ------------------------------------------------------------------------------ > Forrester recently released a report on the Return on Investment (ROI) of > Google Apps. They found a 300% ROI, 38%-56% cost savings, and break-even > within 7 months. Over 3 million businesses have gone Google with Google > Apps: > an online email calendar, and document program that's accessible from your > browser. Read the Forrester report: http://p.sf.net/sfu/googleapps-sfnew > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > -- View this message in context: http://old.nabble.com/Did-anyone-have-a-script-to-record-webcame-picture-in-video-files-tp30442622p30517734.html Sent from the gambas-user mailing list archive at Nabble.com. From gambas at ...1... Thu Dec 23 01:24:59 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Thu, 23 Dec 2010 01:24:59 +0100 Subject: [Gambas-user] painting graph to image continuously In-Reply-To: <201012172015.43580.wally@...2037...> References: <201012161846.46665.wally@...2037...> <201012171114.49219.gambas@...1...> <201012172015.43580.wally@...2037...> Message-ID: <201012230124.59717.gambas@...1...> > > Benoit, > > here i attached a ptoject where should be immediately clear what's my > problem. > > > wally The cached DrawingArea resize problem should have been fixed in revision #3394. Regards, -- Beno?t Minisini From gambas.fr at ...626... Thu Dec 23 07:42:14 2010 From: gambas.fr at ...626... (Fabien Bodard) Date: Thu, 23 Dec 2010 07:42:14 +0100 Subject: [Gambas-user] Did anyone have a script to record webcame picture in video files In-Reply-To: <30517734.post@...1379...> References: <30442622.post@...1379...> <30496252.post@...1379...> <30510255.post@...1379...> <30512324.post@...1379...> <30513973.post@...1379...> <30517734.post@...1379...> Message-ID: a new time ... not valid archive... Reinstall your ubuntu or gambas and then use gambas to make source archive. ... or tar or try to make a simple zipfile From soleilpqd at ...626... Thu Dec 23 17:36:32 2010 From: soleilpqd at ...626... (=?UTF-8?B?UGjhuqFtIFF1YW5nIETGsMahbmc=?=) Date: Thu, 23 Dec 2010 23:36:32 +0700 Subject: [Gambas-user] How to run some job in background separately with UI Message-ID: Hi everyone, I'm writing for myself a small program to manage my image files. I choose a folder, it will get all image files in this folder and display thumbnail with an Icon view (like Nautilus or other files manager). Current, I do: - Get image files list of the folder. (1) - For each image, check if it had thumbnail, load thumbnail to Icon view. If not, load original image, create and save thumbnail, display into icon view. (2). Even I made cache with thumbnail, the program is freezed for a time with a folder including many files. Can I do like Nautilus doing: display all files with a default icon, user still can scroll, select ... while the program loads and displays the thumbnails (it means that can I run (2) in background) ? An additional request, do you have a sample about run-time resizable control (like we draw, resize controls to design form with Gambas IDE). I try to make a rectangle selection tool (like one of GIMP) to select an area of image, but I still have not any idea. Thank you, Merry Christmas and Happy new year :) From gambas.fr at ...626... Thu Dec 23 21:49:40 2010 From: gambas.fr at ...626... (Fabien Bodard) Date: Thu, 23 Dec 2010 21:49:40 +0100 Subject: [Gambas-user] How to run some job in background separately with UI In-Reply-To: References: Message-ID: yes you can load the directory in two way the icon view and a string array add a global index as private this is private iFileIndex as integer private aFiles as New String[] Public sub Form_Open() dim sImage as string Dim sPath as String = user.home &/ "Images" For each sImage in dir(sPath, "*.jpg", gb.file) IconVew.add(sPath &/ sImage, sImage) if not exist(file.dir(sFile) &/ "thumbnail" &/ file.name(sFile)) then aFiles.add(sPath &/ sImage) next iFileIndex = 0 Timer1.Delay = 100 Timer1.Start end Public sub Timer1_Timer() Dim sFile as String = aFile[iFileIndex] make the thumbnail and then IconView1[sFile].Picture = Picture[file.dir(sFile) &/ "thumbnail" &/ file.name(sFile)] Inc iFileIndex if iFileIndex > aFile.Max then iFileIndex = 0 Timer1.Stop endif end s> with an Icon view (like Nautilus or other files manager). > Current, I do: > - Get image files list of the folder. (1) > - For each image, check if it had thumbnail, load thumbnail to Icon view. If > not, load original image, create and save thumbnail, display into icon view. > (2). > Even I made cache with thumbnail, the program is freezed for a time with a > folder including many files. > Can I do like Nautilus doing: display all files with a default icon, user > still can scroll, select ... while the program loads and displays the > thumbnails (it means that can I run (2) in background) ? > > An additional request, do you have a sample about run-time resizable control > (like we draw, resize controls to design form with Gambas IDE). I try to > make a rectangle selection tool (like one of GIMP) to select an area of > image, but I still have not any idea. > > Thank you, Merry Christmas and Happy new year :) > ------------------------------------------------------------------------------ > Learn how Oracle Real Application Clusters (RAC) One Node allows customers > to consolidate database storage, standardize their database environment, and, > should the need arise, upgrade to a full multi-node Oracle RAC database > without downtime or disruption > http://p.sf.net/sfu/oracle-sfdevnl > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Fabien Bodard From math.eber at ...221... Thu Dec 23 23:52:01 2010 From: math.eber at ...221... (math.eber at ...221...) Date: Thu, 23 Dec 2010 23:52:01 +0100 Subject: [Gambas-user] =?utf-8?q?How_to_run_some_job_in_background_separat?= =?utf-8?q?ely_with_UI?= In-Reply-To: References: Message-ID: <1PVu0v-0jaolc0@...2518...> These problems were exactly mine, one year ago. Have a look at gambas3/examples/Image/Lighttable. Maybe it could help you? Regards Matti -----Original-Nachricht----- Subject: [Gambas-user] How to run some job in background separately with UI Date: Thu, 23 Dec 2010 17:36:32 +0100 From: Ph?m Quang D??ng To: mailing list for gambas users Hi everyone, I'm writing for myself a small program to manage my image files. I choose a folder, it will get all image files in this folder and display thumbnail with an Icon view (like Nautilus or other files manager). Current, I do: - Get image files list of the folder. (1) - For each image, check if it had thumbnail, load thumbnail to Icon view. If not, load original image, create and save thumbnail, display into icon view. (2). Even I made cache with thumbnail, the program is freezed for a time with a folder including many files. Can I do like Nautilus doing: display all files with a default icon, user still can scroll, select ... while the program loads and displays the thumbnails (it means that can I run (2) in background) ? From firman.isb at ...626... Fri Dec 24 09:11:57 2010 From: firman.isb at ...626... (firman) Date: Fri, 24 Dec 2010 00:11:57 -0800 (PST) Subject: [Gambas-user] Did anyone have a script to record webcame picture in video files In-Reply-To: References: <30442622.post@...1379...> <30496252.post@...1379...> <30510255.post@...1379...> <30512324.post@...1379...> <30513973.post@...1379...> <30517734.post@...1379...> Message-ID: <30527087.post@...1379...> i've tried to open my file using right click than select using archieve mounting after that use explore to open the drive archieve.. nothing wrong, i could copy my files normally... How about u Mr. Jusi?? could u opened my archieve files? if no, i'll reinstall my ubuntu and gambas3... Fabien Bodard-4 wrote: > > a new time ... not valid archive... > > Reinstall your ubuntu or gambas and then use gambas to make source > archive. > > ... or tar > > or try to make a simple zipfile > > ------------------------------------------------------------------------------ > Learn how Oracle Real Application Clusters (RAC) One Node allows customers > to consolidate database storage, standardize their database environment, > and, > should the need arise, upgrade to a full multi-node Oracle RAC database > without downtime or disruption > http://p.sf.net/sfu/oracle-sfdevnl > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > -- View this message in context: http://old.nabble.com/Did-anyone-have-a-script-to-record-webcame-picture-in-video-files-tp30442622p30527087.html Sent from the gambas-user mailing list archive at Nabble.com. From mike.crean at ...1940... Fri Dec 24 09:31:33 2010 From: mike.crean at ...1940... (Mike) Date: Fri, 24 Dec 2010 16:31:33 +0800 Subject: [Gambas-user] test Message-ID: <1293179493.3530.1.camel@...2519...> TEST From mike.crean at ...1940... Fri Dec 24 09:36:14 2010 From: mike.crean at ...1940... (Mike) Date: Fri, 24 Dec 2010 16:36:14 +0800 Subject: [Gambas-user] Gambas RC Message-ID: <1293179774.3530.5.camel@...2519...> Hi All, I have uploaded a YouTube video (search for 4401 iphone or use this link http://www.youtube.com/watch?v=eZ0Tbu4BZIc ) showing a Gambas application on my Samsung N150 note book with Ubuntu Lucid. This is sitting in and controlling my 7 ?? miniature locomotive. It is controlled from the club server and my iphone 4 over a Wi-Fi connection. The severs Wi-Fi USB adapter is connected to a 9 db whip mounted about 4 mts above the club room giving coverage out to about a 500 mt radius. Enjoy. A very Merry Christmas and a Happy New Year to all. Best Regards Mike From wdahn at ...1000... Fri Dec 24 11:38:06 2010 From: wdahn at ...1000... (Werner) Date: Fri, 24 Dec 2010 18:38:06 +0800 Subject: [Gambas-user] How to run some job in background separately with UI In-Reply-To: References: Message-ID: <4D14780E.2020408@...1000...> On 24/12/10 00:36, Ph?m Quang D??ng wrote: > Hi everyone, > > I'm writing for myself a small program to manage my image files. I choose a > folder, it will get all image files in this folder and display thumbnail > with an Icon view (like Nautilus or other files manager). > Current, I do: > - Get image files list of the folder. (1) > - For each image, check if it had thumbnail, load thumbnail to Icon view. If > not, load original image, create and save thumbnail, display into icon view. > (2). > Even I made cache with thumbnail, the program is freezed for a time with a > folder including many files. > Can I do like Nautilus doing: display all files with a default icon, user > still can scroll, select ... while the program loads and displays the > thumbnails (it means that can I run (2) in background) ? > > An additional request, do you have a sample about run-time resizable control > (like we draw, resize controls to design form with Gambas IDE). I try to > make a rectangle selection tool (like one of GIMP) to select an area of > image, but I still have not any idea. > > Thank you, Merry Christmas and Happy new year :) Regarding image file viewer Matti has written a really nice one called Lightbox. If you ask him nicely... He is on this list. Regards Werner From gambas at ...1... Fri Dec 24 13:14:25 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Fri, 24 Dec 2010 13:14:25 +0100 Subject: [Gambas-user] Gambas RC In-Reply-To: <1293179774.3530.5.camel@...2519...> References: <1293179774.3530.5.camel@...2519...> Message-ID: <201012241314.25315.gambas@...1...> > Hi All, > > I have uploaded a YouTube video (search for 4401 iphone or use this link > http://www.youtube.com/watch?v=eZ0Tbu4BZIc ) showing a Gambas > application on my Samsung N150 note book with Ubuntu Lucid. This is > sitting in and controlling my 7 ?? miniature locomotive. It is > controlled from the club server and my iphone 4 over a Wi-Fi connection. > The severs Wi-Fi USB adapter is connected to a 9 db whip mounted about 4 > mts above the club room giving coverage out to about a 500 mt radius. > > Enjoy. > A very Merry Christmas and a Happy New Year to all. > > Best Regards > Mike > Very cool! You should have mentioned Gambas somewhere in the title of the video. The shrimp deserve its own present. :-) Regards, -- Beno?t Minisini From gambas at ...1... Fri Dec 24 13:29:13 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Fri, 24 Dec 2010 13:29:13 +0100 Subject: [Gambas-user] Porting Gambas 2 projects to Gambas 3 Message-ID: <201012241329.13582.gambas@...1...> Hi gambas fellows, Since last revision, the Gambas 3 IDE automatically converts Gambas 2 project when it loads them. At the moment, only forms are converted. The class and module files are kept untouched. I plan to try to analyze the source files and annotate them with all possible things that must be changed. I don't want to modify the source code automatically, it may be dangerous. For that, I have created a page in the wiki at http://gambasdoc.org/doc/gb2togb3 to take an inventory of all possible incompatibilities between Gambas 2 and Gambas 3, with their symptom, description, and solution. If you can help me to make this inventory, it would be very cool. I have started with the changes described by Ron Klinkien on its Domotiga web site. Please feel free to add your own entry in the wiki page, or mail them to the mailing-list, and I will add them for you. Best regards, -- Beno?t Minisini From gambas.fr at ...626... Fri Dec 24 15:07:06 2010 From: gambas.fr at ...626... (Fabien Bodard) Date: Fri, 24 Dec 2010 15:07:06 +0100 Subject: [Gambas-user] Porting Gambas 2 projects to Gambas 3 In-Reply-To: <201012241329.13582.gambas@...1...> References: <201012241329.13582.gambas@...1...> Message-ID: the good link is : http://gambasdoc.org/help/doc/gb2togb3 -- Fabien Bodard From gambas at ...1... Fri Dec 24 15:35:34 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Fri, 24 Dec 2010 15:35:34 +0100 Subject: [Gambas-user] Porting Gambas 2 projects to Gambas 3 In-Reply-To: References: <201012241329.13582.gambas@...1...> Message-ID: <201012241535.34881.gambas@...1...> > the good link is : http://gambasdoc.org/help/doc/gb2togb3 Oops. And here is a little stupid benchmark that compare Gambas, Python and Perl. http://gambasdoc.org/help/doc/benchmark -- Beno?t Minisini From gambas.fr at ...626... Fri Dec 24 16:02:15 2010 From: gambas.fr at ...626... (Fabien Bodard) Date: Fri, 24 Dec 2010 16:02:15 +0100 Subject: [Gambas-user] Porting Gambas 2 projects to Gambas 3 In-Reply-To: <201012241535.34881.gambas@...1...> References: <201012241329.13582.gambas@...1...> <201012241535.34881.gambas@...1...> Message-ID: Le 24 d?cembre 2010 15:35, Beno?t Minisini a ?crit : >> the good link is : http://gambasdoc.org/help/doc/gb2togb3 > > Oops. > > And here is a little stupid benchmark that compare Gambas, Python and Perl. > > http://gambasdoc.org/help/doc/benchmark and what represent percentage ? ... percent of what ? > > -- > Beno?t Minisini > > ------------------------------------------------------------------------------ > Learn how Oracle Real Application Clusters (RAC) One Node allows customers > to consolidate database storage, standardize their database environment, and, > should the need arise, upgrade to a full multi-node Oracle RAC database > without downtime or disruption > http://p.sf.net/sfu/oracle-sfdevnl > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Fabien Bodard From gambas.fr at ...626... Fri Dec 24 16:05:32 2010 From: gambas.fr at ...626... (Fabien Bodard) Date: Fri, 24 Dec 2010 16:05:32 +0100 Subject: [Gambas-user] Porting Gambas 2 projects to Gambas 3 In-Reply-To: References: <201012241329.13582.gambas@...1...> <201012241535.34881.gambas@...1...> Message-ID: 2010/12/24 Fabien Bodard : > Le 24 d?cembre 2010 15:35, Beno?t Minisini > a ?crit : >>> the good link is : http://gambasdoc.org/help/doc/gb2togb3 >> >> Oops. >> >> And here is a little stupid benchmark that compare Gambas, Python and Perl. >> >> http://gambasdoc.org/help/doc/benchmark > and what represent percentage ? ... percent of what ? oups ... i've understant >> >> -- >> Beno?t Minisini >> >> ------------------------------------------------------------------------------ >> Learn how Oracle Real Application Clusters (RAC) One Node allows customers >> to consolidate database storage, standardize their database environment, and, >> should the need arise, upgrade to a full multi-node Oracle RAC database >> without downtime or disruption >> http://p.sf.net/sfu/oracle-sfdevnl >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > > > -- > Fabien Bodard > -- Fabien Bodard From gambas.fr at ...626... Fri Dec 24 16:14:18 2010 From: gambas.fr at ...626... (Fabien Bodard) Date: Fri, 24 Dec 2010 16:14:18 +0100 Subject: [Gambas-user] Porting Gambas 2 projects to Gambas 3 In-Reply-To: References: <201012241329.13582.gambas@...1...> <201012241535.34881.gambas@...1...> Message-ID: Congratulations, Benoit, I would not say it's a feat, since as you said, the Benchmark are all stupid. But it can give to gbs a reason to exist. :-) For pure irony it would be nice to add more tests! Tcl lacks want but I do not know enough. -- Fabien Bodard From zachsmith022 at ...626... Sat Dec 25 02:14:11 2010 From: zachsmith022 at ...626... (zachsmith022 at ...626...) Date: Fri, 24 Dec 2010 19:14:11 -0600 Subject: [Gambas-user] problem with Key.Code and form focus Message-ID: <4D154563.909@...626...> I'm having trouble having keypresses detected on a form. Sample code attached. qt FMain.border=true Works - "a" keypress hides button, next "a" keypress makes button visible FMain.border=false Fails - form can't receive focus GTK+ FMain.border=true Fails - "a" keypress hides button1, subsequent "a" keypresses do nothing Works - if Quit button has focus FMain.border=false Fails - "a" keypress hides button1, subsequent "a" keypresses do nothing Works - if Quit button has focus It seems that Key.Code won't work at all unless a control is visible and/or has focus on the form - except for qt when the form has a border. gambas 3 xfce qt 4.7.1 gtk 1.2.10 -------------- next part -------------- A non-text attachment was scrubbed... Name: KeypressTest-0.0.5.tar.gz Type: application/x-gzip Size: 5451 bytes Desc: not available URL: From dag.jarle.johansen at ...626... Sat Dec 25 17:20:13 2010 From: dag.jarle.johansen at ...626... (Dag-Jarle Johansen) Date: Sat, 25 Dec 2010 13:20:13 -0300 Subject: [Gambas-user] Object-Arrays Message-ID: Hello, first of all Merry Christmas to everyone. It has been a pretty long time since I have done something with Gambas, and now I have a problem with the right usage of objects. Aim is to create a Image dynamicly in runtime, each new Image in an array so it will be easy too handle. I started on this way. Private NP as new Image[] Private PicNr as integer in some sub PicNr=PicNr+1 NP= New Image[PicNr] what somehow works. But how do I refer to the new image? For me it would have been logical to use NP[PicNr] = New Image(Parent), and refer directly with a value of PicNr, but in all samples I have seen it is needed to loop through the array to find the item in question. Do anyone have a working sample for me, using dynamicly built objects? Thanks for any help, regards, Dag-Jarle From oceanosoftlapalma at ...626... Sat Dec 25 17:46:04 2010 From: oceanosoftlapalma at ...626... (=?ISO-8859-1?Q?Ricardo_D=EDaz_Mart=EDn?=) Date: Sat, 25 Dec 2010 17:46:04 +0100 Subject: [Gambas-user] Object-Arrays In-Reply-To: References: Message-ID: To add new elements to a dynamic array use: Dim aux as new Image PicNr=PicNr+1 NP.Add(aux,PicNr) Regards, Ricardo D?az 2010/12/25 Dag-Jarle Johansen > Hello, > > first of all Merry Christmas to everyone. > > It has been a pretty long time since I have done something with Gambas, and > now I have a problem with the right usage of objects. > > Aim is to create a Image dynamicly in runtime, each new Image in an array > so > it will be easy too handle. > > I started on this way. > > Private NP as new Image[] > Private PicNr as integer > > in some sub > > PicNr=PicNr+1 > NP= New Image[PicNr] > > what somehow works. But how do I refer to the new image? For me it would > have been logical to use NP[PicNr] = New Image(Parent), and refer directly > with a value of PicNr, but in all samples I have seen it is needed to loop > through the array to find the item in question. > > Do anyone have a working sample for me, using dynamicly built objects? > > Thanks for any help, > regards, > Dag-Jarle > > ------------------------------------------------------------------------------ > Learn how Oracle Real Application Clusters (RAC) One Node allows customers > to consolidate database storage, standardize their database environment, > and, > should the need arise, upgrade to a full multi-node Oracle RAC database > without downtime or disruption > http://p.sf.net/sfu/oracle-sfdevnl > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From dag.jarle.johansen at ...626... Sat Dec 25 19:18:14 2010 From: dag.jarle.johansen at ...626... (Dag-Jarle Johansen) Date: Sat, 25 Dec 2010 15:18:14 -0300 Subject: [Gambas-user] Object-Arrays In-Reply-To: References: Message-ID: Thank you, Ricardo, that looks great, the direction I would prefer. Regards, Dag 2010/12/25 Ricardo D?az Mart?n > To add new elements to a dynamic array use: > > Dim aux as new Image > > PicNr=PicNr+1 > NP.Add(aux,PicNr) > > Regards, > Ricardo D?az > > 2010/12/25 Dag-Jarle Johansen > > > Hello, > > > > first of all Merry Christmas to everyone. > > > > It has been a pretty long time since I have done something with Gambas, > and > > now I have a problem with the right usage of objects. > > > > Aim is to create a Image dynamicly in runtime, each new Image in an array > > so > > it will be easy too handle. > > > > I started on this way. > > > > Private NP as new Image[] > > Private PicNr as integer > > > > in some sub > > > > PicNr=PicNr+1 > > NP= New Image[PicNr] > > > > what somehow works. But how do I refer to the new image? For me it would > > have been logical to use NP[PicNr] = New Image(Parent), and refer > directly > > with a value of PicNr, but in all samples I have seen it is needed to > loop > > through the array to find the item in question. > > > > Do anyone have a working sample for me, using dynamicly built objects? > > > > Thanks for any help, > > regards, > > Dag-Jarle > > > > > ------------------------------------------------------------------------------ > > Learn how Oracle Real Application Clusters (RAC) One Node allows > customers > > to consolidate database storage, standardize their database environment, > > and, > > should the need arise, upgrade to a full multi-node Oracle RAC database > > without downtime or disruption > > http://p.sf.net/sfu/oracle-sfdevnl > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > ------------------------------------------------------------------------------ > Learn how Oracle Real Application Clusters (RAC) One Node allows customers > to consolidate database storage, standardize their database environment, > and, > should the need arise, upgrade to a full multi-node Oracle RAC database > without downtime or disruption > http://p.sf.net/sfu/oracle-sfdevnl > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From zachsmith022 at ...626... Sun Dec 26 15:13:49 2010 From: zachsmith022 at ...626... (Zach Smith) Date: Sun, 26 Dec 2010 08:13:49 -0600 Subject: [Gambas-user] can't copy and paste controls in gambas3 In-Reply-To: References: <201012171835.26512.gambas@...1...> Message-ID: On Fri, Dec 17, 2010 at 12:25 PM, Zach Smith wrote: > After more testing... it works with v3289 32-bit, but does not with > v3354 64-bit. ?Running Arch. > The problem was that I was running a clipboard manager - Glipper. Sorry about the noise. From demosthenesk at ...626... Sun Dec 26 18:46:19 2010 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Sun, 26 Dec 2010 19:46:19 +0200 Subject: [Gambas-user] hProcess is NULL Message-ID: <1293385579.9388.1.camel@...2493...> Hello and merry Christmas, i have these lines of code ----------- sCommand = "/opt/avast4workstation-1.3.0/bin/avast -r " & txtVirusTempFolder.Text & "/avast-report.txt" & " -ac -t A " & txtVirusTempFolder.Text PRINT sCommand hProcess1 = SHELL sCommand WAIT FOR INPUT OUTPUT AS "AntiVirRun" ----------- After that line the hProcess1 is NULL and i get NULL object in PUBLIC SUB AntiVirRun_Read() -- Regards, Demosthenes Koptsis. From jussi.lahtinen at ...626... Sun Dec 26 20:49:43 2010 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Sun, 26 Dec 2010 21:49:43 +0200 Subject: [Gambas-user] Did anyone have a script to record webcame picture in video files In-Reply-To: <30527087.post@...1379...> References: <30442622.post@...1379...> <30496252.post@...1379...> <30510255.post@...1379...> <30512324.post@...1379...> <30513973.post@...1379...> <30517734.post@...1379...> <30527087.post@...1379...> Message-ID: No... tar: This does not look like a tar archive tar: Skipping to next header tar: Exiting with failure status due to previous errors Jussi On Fri, Dec 24, 2010 at 10:11, firman wrote: > > > i've tried to open my file using right click than select using archieve > mounting after that use explore to open the drive archieve.. nothing wrong, > i could copy my files normally... How about u Mr. Jusi?? could u opened my > archieve files? if no, i'll reinstall my ubuntu and gambas3... > > > > Fabien Bodard-4 wrote: > > > > a new time ... not valid archive... > > > > Reinstall your ubuntu or gambas and then use gambas to make source > > archive. > > > > ... or tar > > > > or try to make a simple zipfile > > > > > ------------------------------------------------------------------------------ > > Learn how Oracle Real Application Clusters (RAC) One Node allows > customers > > to consolidate database storage, standardize their database environment, > > and, > > should the need arise, upgrade to a full multi-node Oracle RAC database > > without downtime or disruption > > http://p.sf.net/sfu/oracle-sfdevnl > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > -- > View this message in context: > http://old.nabble.com/Did-anyone-have-a-script-to-record-webcame-picture-in-video-files-tp30442622p30527087.html > Sent from the gambas-user mailing list archive at Nabble.com. > > > > ------------------------------------------------------------------------------ > Learn how Oracle Real Application Clusters (RAC) One Node allows customers > to consolidate database storage, standardize their database environment, > and, > should the need arise, upgrade to a full multi-node Oracle RAC database > without downtime or disruption > http://p.sf.net/sfu/oracle-sfdevnl > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From jussi.lahtinen at ...626... Sun Dec 26 21:10:07 2010 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Sun, 26 Dec 2010 22:10:07 +0200 Subject: [Gambas-user] Porting Gambas 2 projects to Gambas 3 In-Reply-To: <201012241535.34881.gambas@...1...> References: <201012241329.13582.gambas@...1...> <201012241535.34881.gambas@...1...> Message-ID: "Gambas is an interpreted language, with no "just-in-time" or other compilation at all." I think this should be: "Gambas is an interpreted language, with no "just-in-time" or other compiler optimizations at all." Jussi 2010/12/24 Beno?t Minisini > > the good link is : http://gambasdoc.org/help/doc/gb2togb3 > > Oops. > > And here is a little stupid benchmark that compare Gambas, Python and Perl. > > http://gambasdoc.org/help/doc/benchmark > > -- > Beno?t Minisini > > > ------------------------------------------------------------------------------ > Learn how Oracle Real Application Clusters (RAC) One Node allows customers > to consolidate database storage, standardize their database environment, > and, > should the need arise, upgrade to a full multi-node Oracle RAC database > without downtime or disruption > http://p.sf.net/sfu/oracle-sfdevnl > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Sun Dec 26 21:18:16 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sun, 26 Dec 2010 21:18:16 +0100 Subject: [Gambas-user] Porting Gambas 2 projects to Gambas 3 In-Reply-To: References: <201012241329.13582.gambas@...1...> <201012241535.34881.gambas@...1...> Message-ID: <201012262118.16956.gambas@...1...> > "Gambas is an interpreted language, > with no "just-in-time" or other compilation at all." > > I think this should be: > > "Gambas is an interpreted language, > with no "just-in-time" or other compiler optimizations at all." > > > Jussi > Actually it should be "no other compilation to native code at all". -- Beno?t Minisini From gambas.fr at ...626... Sun Dec 26 21:55:44 2010 From: gambas.fr at ...626... (Fabien Bodard) Date: Sun, 26 Dec 2010 21:55:44 +0100 Subject: [Gambas-user] Did anyone have a script to record webcame picture in video files In-Reply-To: References: <30442622.post@...1379...> <30496252.post@...1379...> <30510255.post@...1379...> <30512324.post@...1379...> <30513973.post@...1379...> <30517734.post@...1379...> <30527087.post@...1379...> Message-ID: ok i've success to open your tarball ... but not simply... i've need to gunzip and then untar -- Fabien Bodard From ihaywood at ...1979... Mon Dec 27 00:20:44 2010 From: ihaywood at ...1979... (Ian Haywood) Date: Mon, 27 Dec 2010 10:20:44 +1100 Subject: [Gambas-user] hProcess is NULL In-Reply-To: <1293385579.9388.1.camel@...2493...> References: <1293385579.9388.1.camel@...2493...> Message-ID: On Mon, Dec 27, 2010 at 4:46 AM, Demosthenes Koptsis wrote: > Hello and merry Christmas, > > i have these lines of code > > ----------- > ?sCommand = "/opt/avast4workstation-1.3.0/bin/avast -r " & > txtVirusTempFolder.Text & "/avast-report.txt" & " -ac -t A " & > txtVirusTempFolder.Text > > ?PRINT sCommand > > ?hProcess1 = SHELL sCommand WAIT FOR INPUT OUTPUT AS "AntiVirRun" > ----------- > > After that line the hProcess1 is NULL and i get NULL object in > > PUBLIC SUB AntiVirRun_Read() Drop the "WAIT" keyword. Wait makes Gambas stop and wait until the process is finished. You don't want this: you want it to run in parallel with Gambas and read its input. Alternatively, if you just want to get the output as a string and not interact with the program, you can do Shell sCommand To someString I find often this does what I want without getting involved in the Process variable. Ian From firman.isb at ...626... Mon Dec 27 01:36:10 2010 From: firman.isb at ...626... (firman) Date: Sun, 26 Dec 2010 16:36:10 -0800 (PST) Subject: [Gambas-user] Did anyone have a script to record webcame picture in video files In-Reply-To: References: <30442622.post@...1379...> <30496252.post@...1379...> <30510255.post@...1379...> <30512324.post@...1379...> <30513973.post@...1379...> <30517734.post@...1379...> <30527087.post@...1379...> Message-ID: <30536752.post@...1379...> ok.. i'll try to make source archieve, i really need faster for finishing my project, not just a record but i must try to make this program can open in browser too, but my close target now is a recorded... i'll send u a source archive after i reinstall my ubuntu and my gambas.. thanks.. Fabien Bodard-4 wrote: > > ok i've success to open your tarball ... but not simply... i've need > to gunzip and then untar > > > > -- > Fabien Bodard > > ------------------------------------------------------------------------------ > Learn how Oracle Real Application Clusters (RAC) One Node allows customers > to consolidate database storage, standardize their database environment, > and, > should the need arise, upgrade to a full multi-node Oracle RAC database > without downtime or disruption > http://p.sf.net/sfu/oracle-sfdevnl > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > -- View this message in context: http://old.nabble.com/Did-anyone-have-a-script-to-record-webcame-picture-in-video-files-tp30442622p30536752.html Sent from the gambas-user mailing list archive at Nabble.com. From ian.roper at ...1974... Mon Dec 27 02:54:08 2010 From: ian.roper at ...1974... (Ian Roper) Date: Mon, 27 Dec 2010 09:54:08 +0800 Subject: [Gambas-user] Command line gambas compiler In-Reply-To: <201012230124.59717.gambas@...1...> References: <201012161846.46665.wally@...2037...> <201012171114.49219.gambas@...1...> <201012172015.43580.wally@...2037...> <201012230124.59717.gambas@...1...> Message-ID: <1293414848.3556.12.camel@...2506...> Apologies if this is a double post - have been having trouble posting things to the forum. Question: Is there a way to compile a Gambas project from a command line ? ie: The Project > Make > Executable. process from the Development environment. Context: I would like to be able to have an Gambas application self update from the web. To be able to download modified/new project elements and then recompile the application.gambas from a secondary application using the command line function. I have all the rest working but can't find a way to recompile without using the GUI. Regards, Ian Roper Perth - Western Australia Gambas 2.22 on Ubuntu 10.10 From bbruen at ...2308... Mon Dec 27 03:18:40 2010 From: bbruen at ...2308... (Bruce Bruen) Date: Mon, 27 Dec 2010 12:48:40 +1030 Subject: [Gambas-user] WITH and FOR EACH across emulated collections (large post) Message-ID: <201012271248.44409.bbruen@...2308...> Hello all, (gambas 2.22) I am trying to build a persistence mechanism ala Ambler to decouple the business logic from the persistence mechanism. I have done this several times before in gambas with great success, but with the "rule" that a business-object instance can only represent a single row in the associated database table. However, this time I am trying to include a way to allow a single business-object instance to represent a set of database rows and to provide the means to enumerate across the rows. In short, it changes the business-object class into a psuedo collection. I have attached a png showing the class structure. It has been simplified very much to illustrate the problem I am having. I have also attached a test project (as a "source archive") that demonstrates the problems. These are 1) Use of "WITH" seems to decouple the _free() method 2) use of "FOR EACH ... NEXT" seems to decouple the _free() method and introduces circular references. The test project steps through a number of test cases. In each step, an instance of a specific business-object class is created and an explicit destruction request is issued $employee = NEW Employee ... $employee = NULL Between these, each test demonstrates a single type of access to the business_object class instance, for example Test3 just prints the values of the properties of the first row encountered in the database Result. (The Main routine includes all the "STOP"s so that the output does not become jumbled.) Here is the output I get (with some comments in colour): ============================= ----> Test 1 just creates a BO instance and then destroys it BO destructor for Employee (2 references) <---- Test 1 complete, explicit object destruction trace should be above this line This demonstrates that the destructor (_free) method is being called for the explicit $employee=NULL line ============================= ----> Test 2 creates a BO instance, loads it and then destroys it Employee Load got 3 rows BO destructor for Employee (2 references) <---- Test 2 complete, explicit object destruction trace should be above this line Loading the multiple rows occurs properly and the destruct call works ============================= ----> Test 3 creates a BO instance, loads it, uses it explicity and then destroys it Employee Load got 3 rows Test 3 Ard01 Aaron Ardvaark 1001 45000 BO destructor for Employee (2 references) <---- Test 3 complete, explicit object destruction trace should be above this line Here we just use the object in a simple manner, again destruct is OK ============================= ----> Test 4 creates a BO instance, loads it, uses it via WITH and then destroys it Employee Load got 3 rows Test 4 Ard01 Aaron Ardvaark 1001 45000 <---- Test 4 complete, explicit object destruction trace should be above this line BO destructor for Employee (2 references) Here's the first problem, just by using WITH instead of directly referencing the object variables has caused the _free() method to not be called on $employee=NULL (I do see that it is called when the Test4 method exits though, i.e. the runtime does know it has to free the references somehow. But why is the explicit destruction ignored? ============================= ----> Test 5 creates a BO instance, loads it, uses it explicity and then destroys it (repeat Test3) Employee Load got 3 rows Test 5 Ard01 Aaron Ardvaark 1001 45000 BO destructor for Employee (2 references) <---- Test 5 complete, explicit object destruction trace should be above this line This was just included to prove to myself that everything is still ok. ============================= ----> Test 6 creates a BO instance, loads it, enumerates the set (using FOR EACH & explicit property name) and then destroys it Employee Load got 3 rows Test 6 Ard01 Aaron Ardvaark 1001 45000 Test 6 Ban01 Bev Banana 1001 48500 Test 6 Fri01 Fanny Fricassee 1001 38920 <---- Test 6 complete, explicit object destruction trace should be above this line Here the explicit and implicit destructions are both ignored ( and this causes the final error below) ============================= ----> Test 7 creates a BO instance, loads it, enumerates the set (manually) and then destroys it Employee Load got 3 rows Test 7 0 Ard01 Aaron Ardvaark 1001 45000 Test 7 1 Ban01 Bev Banana 1001 48500 Test 7 2 Fri01 Fanny Fricassee 1001 38920 BO destructor for Employee (2 references) <---- Test 7 complete, explicit object destruction trace should be above this line In this final test, where I use MoveNext rather than FOR EACH, everything appears OK. ============================= WARNING: circular references detected _pEmployee (1) Employee (1) WARNING: 49 allocation(s) non freed. When the program exits, I get the circular references problem Hopefully, I have packed up the test project correctly and some kind soul will confirm the above and be able to reply with what it is that I am doing wrong. The only thing I have been able to isolate is that the circular reference appears the second time that Unmarshall is called from the Persistor _next() method at line 143. If this call is commented out then the circular references do not happen. The ingorances of the $employee=NULL still continue though. The test project is a very cut down version of the real dev project, so some of the constructs used may appear odd, such as the use of dynamic object creation. Please ignore the use of these as they do make sense in the real project and have been proven OK in the other (single row) versions of this design. The issues lie solely with "WITH" (where I cannot see how I have disturbed it) and with FOR EACH (where I cannot understand what is causing the circular references). Thank you for reading this and many thanks in advance if you could find time to help me with this. -- best regards Bruce Bruen -------------- next part -------------- Hello all, (gambas 2.22) I am trying to build a persistence mechanism ala Ambler to decouple the business logic from the persistence mechanism. I have done this several times before in gambas with great success, but with the "rule" that a business-object instance can only represent a single row in the associated database table. However, this time I am trying to include a way to allow a single business-object instance to represent a set of database rows and to provide the means to enumerate across the rows. In short, it changes the business-object class into a psuedo collection. I have attached a png showing the class structure. It has been simplified very much to illustrate the problem I am having. [cid:183244887 at ...2520...] I have also attached a test project (as a "source archive") that demonstrates the problems. These are 1) Use of "WITH" seems to decouple the _free() method 2) use of "FOR EACH ... NEXT" seems to decouple the _free() method and introduces circular references. The test project steps through a number of test cases. In each step, an instance of a specific business-object class is created and an explicit destruction request is issued $employee = NEW Employee ... $employee = NULL Between these, each test demonstrates a single type of access to the business_object class instance, for example Test3 just prints the values of the properties of the first row encountered in the database Result. (The Main routine includes all the "STOP"s so that the output does not become jumbled.) Here is the output I get (with some comments in colour): ============================= ----> Test 1 just creates a BO instance and then destroys it BO destructor for Employee (2 references) <---- Test 1 complete, explicit object destruction trace should be above this line This demonstrates that the destructor (_free) method is being called for the explicit $employee=NULL line ============================= ----> Test 2 creates a BO instance, loads it and then destroys it Employee Load got 3 rows BO destructor for Employee (2 references) <---- Test 2 complete, explicit object destruction trace should be above this line Loading the multiple rows occurs properly and the destruct call works ============================= ----> Test 3 creates a BO instance, loads it, uses it explicity and then destroys it Employee Load got 3 rows Test 3 Ard01 Aaron Ardvaark 1001 45000 BO destructor for Employee (2 references) <---- Test 3 complete, explicit object destruction trace should be above this line Here we just use the object in a simple manner, again destruct is OK ============================= ----> Test 4 creates a BO instance, loads it, uses it via WITH and then destroys it Employee Load got 3 rows Test 4 Ard01 Aaron Ardvaark 1001 45000 <---- Test 4 complete, explicit object destruction trace should be above this line BO destructor for Employee (2 references) Here's the first problem, just by using WITH instead of directly referencing the object variables has caused the _free() method to not be called on $employee=NULL (I do see that it is called when the Test4 method exits though, i.e. the runtime does know it has to free the references somehow. But why is the explicit destruction ignored? ============================= ----> Test 5 creates a BO instance, loads it, uses it explicity and then destroys it (repeat Test3) Employee Load got 3 rows Test 5 Ard01 Aaron Ardvaark 1001 45000 BO destructor for Employee (2 references) <---- Test 5 complete, explicit object destruction trace should be above this line This was just included to prove to myself that everything is still ok. ============================= ----> Test 6 creates a BO instance, loads it, enumerates the set (using FOR EACH & explicit property name) and then destroys it Employee Load got 3 rows Test 6 Ard01 Aaron Ardvaark 1001 45000 Test 6 Ban01 Bev Banana 1001 48500 Test 6 Fri01 Fanny Fricassee 1001 38920 <---- Test 6 complete, explicit object destruction trace should be above this line Here the explicit and implicit destructions are both ignored ( and this causes the final error below) ============================= ----> Test 7 creates a BO instance, loads it, enumerates the set (manually) and then destroys it Employee Load got 3 rows Test 7 0 Ard01 Aaron Ardvaark 1001 45000 Test 7 1 Ban01 Bev Banana 1001 48500 Test 7 2 Fri01 Fanny Fricassee 1001 38920 BO destructor for Employee (2 references) <---- Test 7 complete, explicit object destruction trace should be above this line In this final test, where I use MoveNext rather than FOR EACH, everything appears OK. ============================= WARNING: circular references detected _pEmployee (1) Employee (1) WARNING: 49 allocation(s) non freed. When the program exits, I get the circular references problem Hopefully, I have packed up the test project correctly and some kind soul will confirm the above and be able to reply with what it is that I am doing wrong. The only thing I have been able to isolate is that the circular reference appears the second time that Unmarshall is called from the Persistor _next() method at line 143. If this call is commented out then the circular references do not happen. The ingorances of the $employee=NULL still continue though. The test project is a very cut down version of the real dev project, so some of the constructs used may appear odd, such as the use of dynamic object creation. Please ignore the use of these as they do make sense in the real project and have been proven OK in the other (single row) versions of this design. The issues lie solely with "WITH" (where I cannot see how I have disturbed it) and with FOR EACH (where I cannot understand what is causing the circular references). Thank you for reading this and many thanks in advance if you could find time to help me with this. -- best regards Bruce Bruen -------------- next part -------------- A non-text attachment was scrubbed... Name: class diagram.png Type: image/png Size: 52337 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: phDB6a-0.0.19.tar.gz Type: application/x-compressed-tar Size: 34516 bytes Desc: not available URL: From bbruen at ...2308... Mon Dec 27 03:26:56 2010 From: bbruen at ...2308... (Bruce Bruen) Date: Mon, 27 Dec 2010 12:56:56 +1030 Subject: [Gambas-user] WITH and FOR EACH across .. STUB! In-Reply-To: <201012271248.44409.bbruen@...2308...> References: <201012271248.44409.bbruen@...2308...> Message-ID: <201012271256.57666.bbruen@...2308...> On Mon, 27 Dec 2010 12:48:40 pm Bruce Bruen wrote: > a great deal p.s. please reply to this post rather than the original so we don't incovenience zillions of electrons. -- best regards Bruce Bruen From gambas.fr at ...626... Mon Dec 27 09:31:41 2010 From: gambas.fr at ...626... (Fabien Bodard) Date: Mon, 27 Dec 2010 09:31:41 +0100 Subject: [Gambas-user] Did anyone have a script to record webcame picture in video files In-Reply-To: <30536752.post@...1379...> References: <30442622.post@...1379...> <30496252.post@...1379...> <30510255.post@...1379...> <30512324.post@...1379...> <30513973.post@...1379...> <30517734.post@...1379...> <30527087.post@...1379...> <30536752.post@...1379...> Message-ID: the problem is that i dn't really understand what you want to do .... Can you explaint exactly what you are trying ? and by what way 2010/12/27 firman : > > ok.. i'll try to make source archieve, i really need faster for finishing my > project, not just a record but i must try to make this program can open in > browser too, but my close target now is a recorded... i'll send u a source > archive after i reinstall my ubuntu and my gambas.. thanks.. > > > > > Fabien Bodard-4 wrote: >> >> ok i've success to open your tarball ... but not simply... i've need >> to gunzip and then untar >> >> >> >> -- >> Fabien Bodard >> >> ------------------------------------------------------------------------------ >> Learn how Oracle Real Application Clusters (RAC) One Node allows customers >> to consolidate database storage, standardize their database environment, >> and, >> should the need arise, upgrade to a full multi-node Oracle RAC database >> without downtime or disruption >> http://p.sf.net/sfu/oracle-sfdevnl >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> >> > > -- > View this message in context: http://old.nabble.com/Did-anyone-have-a-script-to-record-webcame-picture-in-video-files-tp30442622p30536752.html > Sent from the gambas-user mailing list archive at Nabble.com. > > > ------------------------------------------------------------------------------ > Learn how Oracle Real Application Clusters (RAC) One Node allows customers > to consolidate database storage, standardize their database environment, and, > should the need arise, upgrade to a full multi-node Oracle RAC database > without downtime or disruption > http://p.sf.net/sfu/oracle-sfdevnl > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Fabien Bodard From gambas.fr at ...626... Mon Dec 27 09:35:40 2010 From: gambas.fr at ...626... (Fabien Bodard) Date: Mon, 27 Dec 2010 09:35:40 +0100 Subject: [Gambas-user] Command line gambas compiler In-Reply-To: <1293414848.3556.12.camel@...2506...> References: <201012161846.46665.wally@...2037...> <201012171114.49219.gambas@...1...> <201012172015.43580.wally@...2037...> <201012230124.59717.gambas@...1...> <1293414848.3556.12.camel@...2506...> Message-ID: 2010/12/27 Ian Roper : > Apologies if this is a double post - have been having trouble posting > things to the forum. > > Question: > Is there a way to compile a Gambas project from a command line ? > ie: The ?Project > Make > Executable. process from the Development > environment. yes go into the project directory root gbc3 -A gba3 -o ~/mygambasprog.gambas > > Context: > I would like to be able to have an Gambas application self update from > the web. > To be able to download modified/new project elements and then recompile > the application.gambas from a > secondary application using the command line function. i use it to update and reinstall my site from svn directly by an url > > I have all the rest working but can't find a way to recompile without > using the GUI. this is done ... gambas GUI is just a frontend > > > Regards, > Ian Roper > Perth - Western Australia > > Gambas 2.22 on Ubuntu 10.10 > > > > > ------------------------------------------------------------------------------ > Learn how Oracle Real Application Clusters (RAC) One Node allows customers > to consolidate database storage, standardize their database environment, and, > should the need arise, upgrade to a full multi-node Oracle RAC database > without downtime or disruption > http://p.sf.net/sfu/oracle-sfdevnl > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Fabien Bodard From gambas.fr at ...626... Mon Dec 27 09:51:51 2010 From: gambas.fr at ...626... (Fabien Bodard) Date: Mon, 27 Dec 2010 09:51:51 +0100 Subject: [Gambas-user] WITH and FOR EACH across emulated collections (large post) In-Reply-To: <201012271248.44409.bbruen@...2308...> References: <201012271248.44409.bbruen@...2308...> Message-ID: 2010/12/27 Bruce Bruen : > > ? Hello all, > > ? (gambas 2.22) > > ? I am trying to build a persistence mechanism ala Ambler to decouple the > ? business logic from the persistence mechanism. I have done this > > ? several times before in gambas with great success, but with the "rule" that > ? a > > ? business-object instance can only represent a single row in the associated > > ? database table. However, this time I am trying to include a way to allow > > ? a single business-object instance to represent a set of database rows and > > ? to provide the means to enumerate across the rows. In short, it changes the > > ? business-object class into a psuedo collection. > > ? I have attached a png showing the class structure. It has been simplified > ? very much to illustrate the problem I am having. > > ? [cid:183244887 at ...2520...] > > ? I ?have ?also ?attached ?a ?test ?project (as a "source archive") that > ? demonstrates the problems. These are > > ? 1) Use of "WITH" seems to decouple the _free() method > > ? 2) use of "FOR EACH ... NEXT" seems to decouple the _free() method and > > ? introduces circular references. > > ? The test project steps through a number of test cases. In each step, an > ? instance of a specific business-object class is created and an explicit > ? destruction request is issued > > ? $employee = NEW Employee > > ? ... > > ? $employee = NULL > > ? Between ?these, ?each test demonstrates a single type of access to the > ? business_object class instance, for example Test3 just prints the values of > ? the properties of the first row encountered in the database Result. > > ? (The Main routine includes all the "STOP"s so that the output does not > ? become jumbled.) > > ? Here is the output I get (with some comments in colour): > > ? ============================= > > ? ----> Test 1 just creates a BO instance and then destroys it > > ? BO destructor for Employee (2 references) > > ? <---- Test 1 complete, explicit object destruction trace should be above > ? this line > > ? This demonstrates that the destructor (_free) method is being called for the > ? explicit $employee=NULL line > > ? ============================= > > ? ----> Test 2 creates a BO instance, loads it and then destroys it > > ? Employee Load got 3 rows > > ? BO destructor for Employee (2 references) > > ? <---- Test 2 complete, explicit object destruction trace should be above > ? this line > > ? Loading the multiple rows occurs properly and the destruct call works > > ? ============================= > > ? ----> Test 3 creates a BO instance, loads it, uses it explicity and then > ? destroys it > > ? Employee Load got 3 rows > > ? Test 3 Ard01 Aaron Ardvaark 1001 45000 > > ? BO destructor for Employee (2 references) > > ? <---- Test 3 complete, explicit object destruction trace should be above > ? this line > > ? Here we just use the object in a simple manner, again destruct is OK > > ? ============================= > > ? ----> Test 4 creates a BO instance, loads it, uses it via WITH and then > ? destroys it > > ? Employee Load got 3 rows > > ? Test 4 Ard01 Aaron Ardvaark 1001 45000 > > ? <---- Test 4 complete, explicit object destruction trace should be above > ? this line > > ? BO destructor for Employee (2 references) > > ? Here's the first problem, just by using WITH instead of directly referencing > ? the object variables has caused the _free() method to not be called on > > ? $employee=NULL (I do see that it is called when the Test4 method exits > ? though, i.e. the runtime does know it has to free the references somehow. > ? But why is the explicit destruction ignored? > > ? ============================= > > ? ----> Test 5 creates a BO instance, loads it, uses it explicity and then > ? destroys it (repeat Test3) > > ? Employee Load got 3 rows > > ? Test 5 Ard01 Aaron Ardvaark 1001 45000 > > ? BO destructor for Employee (2 references) > > ? <---- Test 5 complete, explicit object destruction trace should be above > ? this line > > ? This was just included to prove to myself that everything is still ok. > > ? ============================= > > ? ----> Test 6 creates a BO instance, loads it, enumerates the set (using FOR > ? EACH & explicit property name) and then destroys it > > ? Employee Load got 3 rows > > ? Test 6 Ard01 Aaron Ardvaark 1001 45000 > > ? Test 6 Ban01 Bev Banana 1001 48500 > > ? Test 6 Fri01 Fanny Fricassee 1001 38920 > > ? <---- Test 6 complete, explicit object destruction trace should be above > ? this line > > ? Here the explicit and implicit destructions are both ignored ( and this > ? causes > > ? the final error below) > > ? ============================= > > ? ----> Test 7 creates a BO instance, loads it, enumerates the set (manually) > ? and then destroys it > > ? Employee Load got 3 rows > > ? Test 7 0 Ard01 Aaron Ardvaark 1001 45000 > > ? Test 7 1 Ban01 Bev Banana 1001 48500 > > ? Test 7 2 Fri01 Fanny Fricassee 1001 38920 > > ? BO destructor for Employee (2 references) > > ? <---- Test 7 complete, explicit object destruction trace should be above > ? this line > > ? In this final test, where I use MoveNext rather than FOR EACH, everything > ? appears OK. > > ? ============================= > > ? WARNING: circular references detected > > ? _pEmployee (1) > > ? Employee (1) > > ? WARNING: 49 allocation(s) non freed. > > ? When the program exits, I get the circular references problem > > ? Hopefully, I have packed up the test project correctly and some kind soul > ? will confirm the above and be able to reply with what it is that I am doing > ? wrong. > > ? The only thing I have been able to isolate is that the circular reference > ? appears the second time that Unmarshall is called from the Persistor _next() > ? method ?at ?line ?143. If this call is commented out then the circular > ? references ?do ?not happen. The ingorances of the $employee=NULL still > ? continue though. > > ? The test project is a very cut down version of the real dev project, so some > ? of the constructs used may appear odd, such as the use of dynamic object > ? creation. Please ignore the use of these as they do make sense in the real > ? project and have been proven OK in the other (single row) versions of this > ? design. The issues lie solely with "WITH" (where I cannot see how I have > ? disturbed it) and with FOR EACH (where I cannot understand what is causing > ? the circular references). > > ? Thank you for reading this and many thanks in advance if you could find time > > ? to help me with this. > > ? -- > > ? best regards > > ? Bruce Bruen > > ------------------------------------------------------------------------------ > Learn how Oracle Real Application Clusters (RAC) One Node allows customers > to consolidate database storage, standardize their database environment, and, > should the need arise, upgrade to a full multi-node Oracle RAC database > without downtime or disruption > http://p.sf.net/sfu/oracle-sfdevnl > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > Clearly, gambas miss a way to know the var name where are stored the unfreed ref... i can't find in your code where the free are not done.... -- Fabien Bodard From demosthenesk at ...626... Mon Dec 27 10:11:37 2010 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Mon, 27 Dec 2010 11:11:37 +0200 Subject: [Gambas-user] hProcess is NULL In-Reply-To: References: <1293385579.9388.1.camel@...2493...> Message-ID: <1293441097.3102.5.camel@...2493...> On Mon, 2010-12-27 at 10:20 +1100, Ian Haywood wrote: > On Mon, Dec 27, 2010 at 4:46 AM, Demosthenes Koptsis > wrote: > > Hello and merry Christmas, > > > > i have these lines of code > > > > ----------- > > sCommand = "/opt/avast4workstation-1.3.0/bin/avast -r " & > > txtVirusTempFolder.Text & "/avast-report.txt" & " -ac -t A " & > > txtVirusTempFolder.Text > > > > PRINT sCommand > > > > hProcess1 = SHELL sCommand WAIT FOR INPUT OUTPUT AS "AntiVirRun" > > ----------- > > > > After that line the hProcess1 is NULL and i get NULL object in > > > > PUBLIC SUB AntiVirRun_Read() > Drop the "WAIT" keyword. Actually i want the WAIT word. I want to WAIT until the command is finished but in meanwhile i want to be capable to read the stdout. i also tried a clumsy solution like that, hProcess1 = SHELL sCommand FOR INPUT OUTPUT AS "AntiVirRun" WHILE (hProcess1.Running) WEND but also have no success to read the stdout with AntiVirRun_Read() -- Regards, Demosthenes Koptsis. From demosthenesk at ...626... Mon Dec 27 10:17:15 2010 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Mon, 27 Dec 2010 11:17:15 +0200 Subject: [Gambas-user] [Fwd: Re: hProcess is NULL] Message-ID: <1293441435.3102.7.camel@...2493...> If i use only hProcess1 = SHELL sCommand WAIT i see in Gambas console the stdout. i try to find a way to keep hProcess1 = SHELL sCommand WAIT and read stdout as Gambas console does. -- Regards, Demosthenes Koptsis. -------------- next part -------------- An embedded message was scrubbed... From: Demosthenes Koptsis Subject: Re: [Gambas-user] hProcess is NULL Date: Mon, 27 Dec 2010 11:11:40 +0200 Size: 1607 URL: From ihaywood at ...1979... Mon Dec 27 10:21:11 2010 From: ihaywood at ...1979... (Ian Haywood) Date: Mon, 27 Dec 2010 20:21:11 +1100 Subject: [Gambas-user] hProcess is NULL In-Reply-To: <1293441097.3102.5.camel@...2493...> References: <1293385579.9388.1.camel@...2493...> <1293441097.3102.5.camel@...2493...> Message-ID: On Mon, Dec 27, 2010 at 8:11 PM, Demosthenes Koptsis wrote: > On Mon, 2010-12-27 at 10:20 +1100, Ian Haywood wrote: >> On Mon, Dec 27, 2010 at 4:46 AM, Demosthenes Koptsis >> wrote: >> > Hello and merry Christmas, >> > >> > i have these lines of code >> > >> > ----------- >> > ?sCommand = "/opt/avast4workstation-1.3.0/bin/avast -r " & >> > txtVirusTempFolder.Text & "/avast-report.txt" & " -ac -t A " & >> > txtVirusTempFolder.Text >> > >> > ?PRINT sCommand >> > >> > ?hProcess1 = SHELL sCommand WAIT FOR INPUT OUTPUT AS "AntiVirRun" >> > ----------- >> > >> > After that line the hProcess1 is NULL and i get NULL object in >> > >> > PUBLIC SUB AntiVirRun_Read() >> Drop the "WAIT" keyword. > > Actually i want the WAIT word. > > I want to WAIT until the command is finished but in meanwhile i want to > be capable to read the stdout. Use Shell...To as I described. Or read output and then when you are finished reading use hProcess.Wait() But you can't wait and read at the same time. Ian From ron at ...1740... Mon Dec 27 10:36:58 2010 From: ron at ...1740... (Ron) Date: Mon, 27 Dec 2010 10:36:58 +0100 Subject: [Gambas-user] hProcess is NULL In-Reply-To: References: <1293385579.9388.1.camel@...2493...> <1293441097.3102.5.camel@...2493...> Message-ID: Not clear why you want to wait exactly, but another way is not to wait but to continue when process is finished. AntiVirRun_Kill() is called when process is finished. So you can do other things in meantime (like parsing _Read) and call the code to run from _Kill to continue. See here for some code: http://www.domotiga.nl/browser/trunk/DomotiGa/Ping.module Regards, Ron_2nd. On Mon, Dec 27, 2010 at 10:21 AM, Ian Haywood wrote: > On Mon, Dec 27, 2010 at 8:11 PM, Demosthenes Koptsis > wrote: >> On Mon, 2010-12-27 at 10:20 +1100, Ian Haywood wrote: >>> On Mon, Dec 27, 2010 at 4:46 AM, Demosthenes Koptsis >>> wrote: >>> > Hello and merry Christmas, >>> > >>> > i have these lines of code >>> > >>> > ----------- >>> > ?sCommand = "/opt/avast4workstation-1.3.0/bin/avast -r " & >>> > txtVirusTempFolder.Text & "/avast-report.txt" & " -ac -t A " & >>> > txtVirusTempFolder.Text >>> > >>> > ?PRINT sCommand >>> > >>> > ?hProcess1 = SHELL sCommand WAIT FOR INPUT OUTPUT AS "AntiVirRun" >>> > ----------- >>> > >>> > After that line the hProcess1 is NULL and i get NULL object in >>> > >>> > PUBLIC SUB AntiVirRun_Read() >>> Drop the "WAIT" keyword. >> >> Actually i want the WAIT word. >> >> I want to WAIT until the command is finished but in meanwhile i want to >> be capable to read the stdout. > Use Shell...To as I described. > Or read output and then when you are finished reading use hProcess.Wait() > > But you can't wait and read at the same time. > > Ian > > ------------------------------------------------------------------------------ > Learn how Oracle Real Application Clusters (RAC) One Node allows customers > to consolidate database storage, standardize their database environment, and, > should the need arise, upgrade to a full multi-node Oracle RAC database > without downtime or disruption > http://p.sf.net/sfu/oracle-sfdevnl > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From demosthenesk at ...626... Mon Dec 27 11:23:29 2010 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Mon, 27 Dec 2010 12:23:29 +0200 Subject: [Gambas-user] hProcess is NULL In-Reply-To: References: <1293385579.9388.1.camel@...2493...> <1293441097.3102.5.camel@...2493...> Message-ID: <1293445409.3775.3.camel@...2493...> Well i found a way hProcess1 = SHELL sCommand FOR INPUT AS "AntiVirRun" WHILE (hProcess1.Running) WAIT 10 WEND yes there is a reason because i want to stop execution of next lines but i cant explain it right now. So with this code i can process _Read event of process and stop execution of code. Anyway thank you all for the help. On Mon, 2010-12-27 at 10:36 +0100, Ron wrote: > Not clear why you want to wait exactly, but another way is not to wait > but to continue when process is finished. > > AntiVirRun_Kill() is called when process is finished. > So you can do other things in meantime (like parsing _Read) and call > the code to run from _Kill to continue. > > See here for some code: > http://www.domotiga.nl/browser/trunk/DomotiGa/Ping.module > > Regards, > Ron_2nd. > On Mon, Dec 27, 2010 at 10:21 AM, Ian Haywood wrote: > > On Mon, Dec 27, 2010 at 8:11 PM, Demosthenes Koptsis > > wrote: > >> On Mon, 2010-12-27 at 10:20 +1100, Ian Haywood wrote: > >>> On Mon, Dec 27, 2010 at 4:46 AM, Demosthenes Koptsis > >>> wrote: > >>> > Hello and merry Christmas, > >>> > > >>> > i have these lines of code > >>> > > >>> > ----------- > >>> > sCommand = "/opt/avast4workstation-1.3.0/bin/avast -r " & > >>> > txtVirusTempFolder.Text & "/avast-report.txt" & " -ac -t A " & > >>> > txtVirusTempFolder.Text > >>> > > >>> > PRINT sCommand > >>> > > >>> > hProcess1 = SHELL sCommand WAIT FOR INPUT OUTPUT AS "AntiVirRun" > >>> > ----------- > >>> > > >>> > After that line the hProcess1 is NULL and i get NULL object in > >>> > > >>> > PUBLIC SUB AntiVirRun_Read() > >>> Drop the "WAIT" keyword. > >> > >> Actually i want the WAIT word. > >> > >> I want to WAIT until the command is finished but in meanwhile i want to > >> be capable to read the stdout. > > Use Shell...To as I described. > > Or read output and then when you are finished reading use hProcess.Wait() > > > > But you can't wait and read at the same time. > > > > Ian > > > > ------------------------------------------------------------------------------ > > Learn how Oracle Real Application Clusters (RAC) One Node allows customers > > to consolidate database storage, standardize their database environment, and, > > should the need arise, upgrade to a full multi-node Oracle RAC database > > without downtime or disruption > > http://p.sf.net/sfu/oracle-sfdevnl > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > ------------------------------------------------------------------------------ > Learn how Oracle Real Application Clusters (RAC) One Node allows customers > to consolidate database storage, standardize their database environment, and, > should the need arise, upgrade to a full multi-node Oracle RAC database > without downtime or disruption > http://p.sf.net/sfu/oracle-sfdevnl > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -- Regards, Demosthenes Koptsis. From shanep at ...2481... Mon Dec 27 11:25:53 2010 From: shanep at ...2481... (Shane) Date: Mon, 27 Dec 2010 21:25:53 +1100 Subject: [Gambas-user] Image to Picture Message-ID: <4D1869B1.4070703@...2481...> using Gambas 3 I'm trying to copy a image to a picturebox at a certain location using this code Draw.Begin(PictureBox1.Picture) Draw.Image(myimage,(PictureBox1.w-myimage.w)/2,(PictureBox1.h-myimage.w)/2) Draw.End But All I get Is Stray Data From The Screen what Am i Doing Wrong? From gambas.fr at ...626... Mon Dec 27 11:27:03 2010 From: gambas.fr at ...626... (Fabien Bodard) Date: Mon, 27 Dec 2010 11:27:03 +0100 Subject: [Gambas-user] hProcess is NULL In-Reply-To: <1293445409.3775.3.camel@...2493...> References: <1293385579.9388.1.camel@...2493...> <1293441097.3102.5.camel@...2493...> <1293445409.3775.3.camel@...2493...> Message-ID: 2010/12/27 Demosthenes Koptsis : > Well i found a way > > > hProcess1 = SHELL sCommand FOR INPUT AS "AntiVirRun" > WHILE (hProcess1.Running) > ?WAIT 10 > WEND > ?????? what is that ? > yes there is a reason because i want to stop execution of next lines but > i cant explain it right now. > > So with this code i can process _Read event of process and stop > execution of code. > > Anyway thank you all for the help. > > > On Mon, 2010-12-27 at 10:36 +0100, Ron wrote: >> Not clear why you want to wait exactly, but another way is not to wait >> but to continue when process is finished. >> >> AntiVirRun_Kill() is called when process is finished. >> So you can do other things in meantime (like parsing _Read) and call >> the code to run from _Kill to continue. >> >> See here for some code: >> http://www.domotiga.nl/browser/trunk/DomotiGa/Ping.module >> >> Regards, >> Ron_2nd. >> On Mon, Dec 27, 2010 at 10:21 AM, Ian Haywood wrote: >> > On Mon, Dec 27, 2010 at 8:11 PM, Demosthenes Koptsis >> > wrote: >> >> On Mon, 2010-12-27 at 10:20 +1100, Ian Haywood wrote: >> >>> On Mon, Dec 27, 2010 at 4:46 AM, Demosthenes Koptsis >> >>> wrote: >> >>> > Hello and merry Christmas, >> >>> > >> >>> > i have these lines of code >> >>> > >> >>> > ----------- >> >>> > ?sCommand = "/opt/avast4workstation-1.3.0/bin/avast -r " & >> >>> > txtVirusTempFolder.Text & "/avast-report.txt" & " -ac -t A " & >> >>> > txtVirusTempFolder.Text >> >>> > >> >>> > ?PRINT sCommand >> >>> > >> >>> > ?hProcess1 = SHELL sCommand WAIT FOR INPUT OUTPUT AS "AntiVirRun" >> >>> > ----------- >> >>> > >> >>> > After that line the hProcess1 is NULL and i get NULL object in >> >>> > >> >>> > PUBLIC SUB AntiVirRun_Read() >> >>> Drop the "WAIT" keyword. >> >> >> >> Actually i want the WAIT word. >> >> >> >> I want to WAIT until the command is finished but in meanwhile i want to >> >> be capable to read the stdout. >> > Use Shell...To as I described. >> > Or read output and then when you are finished reading use hProcess.Wait() >> > >> > But you can't wait and read at the same time. >> > >> > Ian >> > >> > ------------------------------------------------------------------------------ >> > Learn how Oracle Real Application Clusters (RAC) One Node allows customers >> > to consolidate database storage, standardize their database environment, and, >> > should the need arise, upgrade to a full multi-node Oracle RAC database >> > without downtime or disruption >> > http://p.sf.net/sfu/oracle-sfdevnl >> > _______________________________________________ >> > Gambas-user mailing list >> > Gambas-user at lists.sourceforge.net >> > https://lists.sourceforge.net/lists/listinfo/gambas-user >> > >> >> ------------------------------------------------------------------------------ >> Learn how Oracle Real Application Clusters (RAC) One Node allows customers >> to consolidate database storage, standardize their database environment, and, >> should the need arise, upgrade to a full multi-node Oracle RAC database >> without downtime or disruption >> http://p.sf.net/sfu/oracle-sfdevnl >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user > > -- > Regards, > Demosthenes Koptsis. > > > ------------------------------------------------------------------------------ > Learn how Oracle Real Application Clusters (RAC) One Node allows customers > to consolidate database storage, standardize their database environment, and, > should the need arise, upgrade to a full multi-node Oracle RAC database > without downtime or disruption > http://p.sf.net/sfu/oracle-sfdevnl > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Fabien Bodard From shanep at ...2481... Mon Dec 27 11:32:54 2010 From: shanep at ...2481... (Shane) Date: Mon, 27 Dec 2010 21:32:54 +1100 Subject: [Gambas-user] Image to Picture In-Reply-To: <4D1869B1.4070703@...2481...> References: <4D1869B1.4070703@...2481...> Message-ID: <4D186B56.80808@...2481...> On 27/12/10 21:25, Shane wrote: > using Gambas 3 I'm trying to copy a image to a picturebox at a certain > location using this code > Woops Forgot I also do PictureBox1.Picture = New Picture(PictureBox1.w,PictureBox1.h) > Draw.Begin(PictureBox1.Picture) > > Draw.Image(myimage,(PictureBox1.w-myimage.w)/2,(PictureBox1.h-myimage.w)/2) > Draw.End > > But All I get Is Stray Data From The Screen > > what Am i Doing Wrong? > > > ------------------------------------------------------------------------------ > Learn how Oracle Real Application Clusters (RAC) One Node allows customers > to consolidate database storage, standardize their database environment, and, > should the need arise, upgrade to a full multi-node Oracle RAC database > without downtime or disruption > http://p.sf.net/sfu/oracle-sfdevnl > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From gambas.fr at ...626... Mon Dec 27 11:34:43 2010 From: gambas.fr at ...626... (Fabien Bodard) Date: Mon, 27 Dec 2010 11:34:43 +0100 Subject: [Gambas-user] hProcess is NULL In-Reply-To: References: <1293385579.9388.1.camel@...2493...> <1293441097.3102.5.camel@...2493...> <1293445409.3775.3.camel@...2493...> Message-ID: Exec ["ls", "-a"] to sLig Print sLig To do what you want .... it's enought 2010/12/27 Fabien Bodard : > 2010/12/27 Demosthenes Koptsis : >> Well i found a way >> >> >> hProcess1 = SHELL sCommand FOR INPUT AS "AntiVirRun" >> WHILE (hProcess1.Running) >> ?WAIT 10 >> WEND >> > > ?????? what is that ? > > > >> yes there is a reason because i want to stop execution of next lines but >> i cant explain it right now. >> >> So with this code i can process _Read event of process and stop >> execution of code. >> >> Anyway thank you all for the help. >> >> >> On Mon, 2010-12-27 at 10:36 +0100, Ron wrote: >>> Not clear why you want to wait exactly, but another way is not to wait >>> but to continue when process is finished. >>> >>> AntiVirRun_Kill() is called when process is finished. >>> So you can do other things in meantime (like parsing _Read) and call >>> the code to run from _Kill to continue. >>> >>> See here for some code: >>> http://www.domotiga.nl/browser/trunk/DomotiGa/Ping.module >>> >>> Regards, >>> Ron_2nd. >>> On Mon, Dec 27, 2010 at 10:21 AM, Ian Haywood wrote: >>> > On Mon, Dec 27, 2010 at 8:11 PM, Demosthenes Koptsis >>> > wrote: >>> >> On Mon, 2010-12-27 at 10:20 +1100, Ian Haywood wrote: >>> >>> On Mon, Dec 27, 2010 at 4:46 AM, Demosthenes Koptsis >>> >>> wrote: >>> >>> > Hello and merry Christmas, >>> >>> > >>> >>> > i have these lines of code >>> >>> > >>> >>> > ----------- >>> >>> > ?sCommand = "/opt/avast4workstation-1.3.0/bin/avast -r " & >>> >>> > txtVirusTempFolder.Text & "/avast-report.txt" & " -ac -t A " & >>> >>> > txtVirusTempFolder.Text >>> >>> > >>> >>> > ?PRINT sCommand >>> >>> > >>> >>> > ?hProcess1 = SHELL sCommand WAIT FOR INPUT OUTPUT AS "AntiVirRun" >>> >>> > ----------- >>> >>> > >>> >>> > After that line the hProcess1 is NULL and i get NULL object in >>> >>> > >>> >>> > PUBLIC SUB AntiVirRun_Read() >>> >>> Drop the "WAIT" keyword. >>> >> >>> >> Actually i want the WAIT word. >>> >> >>> >> I want to WAIT until the command is finished but in meanwhile i want to >>> >> be capable to read the stdout. >>> > Use Shell...To as I described. >>> > Or read output and then when you are finished reading use hProcess.Wait() >>> > >>> > But you can't wait and read at the same time. >>> > >>> > Ian >>> > >>> > ------------------------------------------------------------------------------ >>> > Learn how Oracle Real Application Clusters (RAC) One Node allows customers >>> > to consolidate database storage, standardize their database environment, and, >>> > should the need arise, upgrade to a full multi-node Oracle RAC database >>> > without downtime or disruption >>> > http://p.sf.net/sfu/oracle-sfdevnl >>> > _______________________________________________ >>> > Gambas-user mailing list >>> > Gambas-user at lists.sourceforge.net >>> > https://lists.sourceforge.net/lists/listinfo/gambas-user >>> > >>> >>> ------------------------------------------------------------------------------ >>> Learn how Oracle Real Application Clusters (RAC) One Node allows customers >>> to consolidate database storage, standardize their database environment, and, >>> should the need arise, upgrade to a full multi-node Oracle RAC database >>> without downtime or disruption >>> http://p.sf.net/sfu/oracle-sfdevnl >>> _______________________________________________ >>> Gambas-user mailing list >>> Gambas-user at lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/gambas-user >> >> -- >> Regards, >> Demosthenes Koptsis. >> >> >> ------------------------------------------------------------------------------ >> Learn how Oracle Real Application Clusters (RAC) One Node allows customers >> to consolidate database storage, standardize their database environment, and, >> should the need arise, upgrade to a full multi-node Oracle RAC database >> without downtime or disruption >> http://p.sf.net/sfu/oracle-sfdevnl >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > > > -- > Fabien Bodard > -- Fabien Bodard From gambas.fr at ...626... Mon Dec 27 11:36:49 2010 From: gambas.fr at ...626... (Fabien Bodard) Date: Mon, 27 Dec 2010 11:36:49 +0100 Subject: [Gambas-user] Image to Picture In-Reply-To: <4D186B56.80808@...2481...> References: <4D1869B1.4070703@...2481...> <4D186B56.80808@...2481...> Message-ID: try to add Picturebox.Picture.Fill(gb.Transparent) after setting the new picture -- Fabien Bodard From shanep at ...2481... Mon Dec 27 11:46:00 2010 From: shanep at ...2481... (Shane) Date: Mon, 27 Dec 2010 21:46:00 +1100 Subject: [Gambas-user] Image to Picture In-Reply-To: References: <4D1869B1.4070703@...2481...> <4D186B56.80808@...2481...> Message-ID: <4D186E68.1030804@...2481...> On 27/12/10 21:36, Fabien Bodard wrote: > try to add > > > Picturebox.Picture.Fill(gb.Transparent) > > after setting the new picture > Tried This PictureBox1.Picture = New Picture(PictureBox1.w,PictureBox1.h) Draw.Begin(PictureBox1.Picture) Draw.Image(myimage,(PictureBox1.w-myimage.w)/2,(PictureBox1.h-myimage.w)/2) Draw.End PictureBox1.Picture.Fill(Color.Transparent) Their is no gb.transparent From demosthenesk at ...626... Mon Dec 27 11:44:36 2010 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Mon, 27 Dec 2010 12:44:36 +0200 Subject: [Gambas-user] hProcess is NULL In-Reply-To: References: <1293385579.9388.1.camel@...2493...> <1293441097.3102.5.camel@...2493...> <1293445409.3775.3.camel@...2493...> Message-ID: <1293446676.4727.3.camel@...2493...> This is a way not to continue the execution of next line codes until hProcess1 is finished and at the same time be able to process AntiVirRun_Read. Is there any other way? Everything is welcomed. On Mon, 2010-12-27 at 11:27 +0100, Fabien Bodard wrote: > 2010/12/27 Demosthenes Koptsis : > > Well i found a way > > > > > > hProcess1 = SHELL sCommand FOR INPUT AS "AntiVirRun" > > WHILE (hProcess1.Running) > > WAIT 10 > > WEND > > > > ?????? what is that ? > > > > > yes there is a reason because i want to stop execution of next lines but > > i cant explain it right now. > > > > So with this code i can process _Read event of process and stop > > execution of code. > > > > Anyway thank you all for the help. > > > > > > On Mon, 2010-12-27 at 10:36 +0100, Ron wrote: > >> Not clear why you want to wait exactly, but another way is not to wait > >> but to continue when process is finished. > >> > >> AntiVirRun_Kill() is called when process is finished. > >> So you can do other things in meantime (like parsing _Read) and call > >> the code to run from _Kill to continue. > >> > >> See here for some code: > >> http://www.domotiga.nl/browser/trunk/DomotiGa/Ping.module > >> > >> Regards, > >> Ron_2nd. > >> On Mon, Dec 27, 2010 at 10:21 AM, Ian Haywood wrote: > >> > On Mon, Dec 27, 2010 at 8:11 PM, Demosthenes Koptsis > >> > wrote: > >> >> On Mon, 2010-12-27 at 10:20 +1100, Ian Haywood wrote: > >> >>> On Mon, Dec 27, 2010 at 4:46 AM, Demosthenes Koptsis > >> >>> wrote: > >> >>> > Hello and merry Christmas, > >> >>> > > >> >>> > i have these lines of code > >> >>> > > >> >>> > ----------- > >> >>> > sCommand = "/opt/avast4workstation-1.3.0/bin/avast -r " & > >> >>> > txtVirusTempFolder.Text & "/avast-report.txt" & " -ac -t A " & > >> >>> > txtVirusTempFolder.Text > >> >>> > > >> >>> > PRINT sCommand > >> >>> > > >> >>> > hProcess1 = SHELL sCommand WAIT FOR INPUT OUTPUT AS "AntiVirRun" > >> >>> > ----------- > >> >>> > > >> >>> > After that line the hProcess1 is NULL and i get NULL object in > >> >>> > > >> >>> > PUBLIC SUB AntiVirRun_Read() > >> >>> Drop the "WAIT" keyword. > >> >> > >> >> Actually i want the WAIT word. > >> >> > >> >> I want to WAIT until the command is finished but in meanwhile i want to > >> >> be capable to read the stdout. > >> > Use Shell...To as I described. > >> > Or read output and then when you are finished reading use hProcess.Wait() > >> > > >> > But you can't wait and read at the same time. > >> > > >> > Ian > >> > > >> > ------------------------------------------------------------------------------ > >> > Learn how Oracle Real Application Clusters (RAC) One Node allows customers > >> > to consolidate database storage, standardize their database environment, and, > >> > should the need arise, upgrade to a full multi-node Oracle RAC database > >> > without downtime or disruption > >> > http://p.sf.net/sfu/oracle-sfdevnl > >> > _______________________________________________ > >> > Gambas-user mailing list > >> > Gambas-user at lists.sourceforge.net > >> > https://lists.sourceforge.net/lists/listinfo/gambas-user > >> > > >> > >> ------------------------------------------------------------------------------ > >> Learn how Oracle Real Application Clusters (RAC) One Node allows customers > >> to consolidate database storage, standardize their database environment, and, > >> should the need arise, upgrade to a full multi-node Oracle RAC database > >> without downtime or disruption > >> http://p.sf.net/sfu/oracle-sfdevnl > >> _______________________________________________ > >> Gambas-user mailing list > >> Gambas-user at lists.sourceforge.net > >> https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > -- > > Regards, > > Demosthenes Koptsis. > > > > > > ------------------------------------------------------------------------------ > > Learn how Oracle Real Application Clusters (RAC) One Node allows customers > > to consolidate database storage, standardize their database environment, and, > > should the need arise, upgrade to a full multi-node Oracle RAC database > > without downtime or disruption > > http://p.sf.net/sfu/oracle-sfdevnl > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > -- > Fabien Bodard > > ------------------------------------------------------------------------------ > Learn how Oracle Real Application Clusters (RAC) One Node allows customers > to consolidate database storage, standardize their database environment, and, > should the need arise, upgrade to a full multi-node Oracle RAC database > without downtime or disruption > http://p.sf.net/sfu/oracle-sfdevnl > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -- Regards, Demosthenes Koptsis. From gambas.fr at ...626... Mon Dec 27 11:48:09 2010 From: gambas.fr at ...626... (Fabien Bodard) Date: Mon, 27 Dec 2010 11:48:09 +0100 Subject: [Gambas-user] Image to Picture In-Reply-To: <4D186E68.1030804@...2481...> References: <4D1869B1.4070703@...2481...> <4D186B56.80808@...2481...> <4D186E68.1030804@...2481...> Message-ID: 2010/12/27 Shane : > On 27/12/10 21:36, Fabien Bodard wrote: >> try to add >> >> >> Picturebox.Picture.Fill(gb.Transparent) >> >> after setting the new picture >> > Tried This > > PictureBox1.Picture = New Picture(PictureBox1.w,PictureBox1.h) > > Draw.Begin(PictureBox1.Picture) > Draw.Image(myimage,(PictureBox1.w-myimage.w)/2,(PictureBox1.h-myimage.w)/2) > Draw.End > > PictureBox1.Picture.Fill(Color.Transparent) > > Their is no gb.transparent no gb.transparent but color.transparent http://gambasdoc.org/help/comp/gb.qt/color/transparent > > ------------------------------------------------------------------------------ > Learn how Oracle Real Application Clusters (RAC) One Node allows customers > to consolidate database storage, standardize their database environment, and, > should the need arise, upgrade to a full multi-node Oracle RAC database > without downtime or disruption > http://p.sf.net/sfu/oracle-sfdevnl > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Fabien Bodard From shanep at ...2481... Mon Dec 27 11:55:16 2010 From: shanep at ...2481... (Shane) Date: Mon, 27 Dec 2010 21:55:16 +1100 Subject: [Gambas-user] Image to Picture In-Reply-To: References: <4D1869B1.4070703@...2481...> <4D186B56.80808@...2481...> <4D186E68.1030804@...2481...> Message-ID: <4D187094.80705@...2481...> On 27/12/10 21:48, Fabien Bodard wrote: > 2010/12/27 Shane: >> On 27/12/10 21:36, Fabien Bodard wrote: >>> try to add >>> >>> >>> Picturebox.Picture.Fill(gb.Transparent) >>> >>> after setting the new picture >>> >> Tried This >> >> PictureBox1.Picture = New Picture(PictureBox1.w,PictureBox1.h) >> >> Draw.Begin(PictureBox1.Picture) >> Draw.Image(myimage,(PictureBox1.w-myimage.w)/2,(PictureBox1.h-myimage.w)/2) >> Draw.End >> >> PictureBox1.Picture.Fill(Color.Transparent) >> >> Their is no gb.transparent > no gb.transparent > but color.transparent > http://gambasdoc.org/help/comp/gb.qt/color/transparent >> ------------------------------------------------------------------------------ >> Learn how Oracle Real Application Clusters (RAC) One Node allows customers >> to consolidate database storage, standardize their database environment, and, >> should the need arise, upgrade to a full multi-node Oracle RAC database >> without downtime or disruption >> http://p.sf.net/sfu/oracle-sfdevnl >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > Sorry Fabian Should Have Said That The Result Was the Same From shanep at ...2481... Mon Dec 27 11:59:36 2010 From: shanep at ...2481... (Shane) Date: Mon, 27 Dec 2010 21:59:36 +1100 Subject: [Gambas-user] Image to Picture In-Reply-To: <4D187094.80705@...2481...> References: <4D1869B1.4070703@...2481...> <4D186B56.80808@...2481...> <4D186E68.1030804@...2481...> <4D187094.80705@...2481...> Message-ID: <4D187198.1070508@...2481...> On 27/12/10 21:55, Shane wrote: > On 27/12/10 21:48, Fabien Bodard wrote: >> 2010/12/27 Shane: >>> On 27/12/10 21:36, Fabien Bodard wrote: >>>> try to add >>>> >>>> >>>> Picturebox.Picture.Fill(gb.Transparent) >>>> >>>> after setting the new picture >>>> >>> Tried This >>> >>> PictureBox1.Picture = New Picture(PictureBox1.w,PictureBox1.h) >>> >>> Draw.Begin(PictureBox1.Picture) >>> Draw.Image(myimage,(PictureBox1.w-myimage.w)/2,(PictureBox1.h-myimage.w)/2) >>> Draw.End >>> >>> PictureBox1.Picture.Fill(Color.Transparent) >>> >>> Their is no gb.transparent >> no gb.transparent >> but color.transparent >> http://gambasdoc.org/help/comp/gb.qt/color/transparent >>> ------------------------------------------------------------------------------ >>> Learn how Oracle Real Application Clusters (RAC) One Node allows customers >>> to consolidate database storage, standardize their database environment, and, >>> should the need arise, upgrade to a full multi-node Oracle RAC database >>> without downtime or disruption >>> http://p.sf.net/sfu/oracle-sfdevnl >>> _______________________________________________ >>> Gambas-user mailing list >>> Gambas-user at lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>> >> > Sorry Fabian Should Have Said That The Result Was the Same > if i just set PictureBox1.Picture = myimage.Picture the Image is Displayed but in the top left corner > ------------------------------------------------------------------------------ > Learn how Oracle Real Application Clusters (RAC) One Node allows customers > to consolidate database storage, standardize their database environment, and, > should the need arise, upgrade to a full multi-node Oracle RAC database > without downtime or disruption > http://p.sf.net/sfu/oracle-sfdevnl > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From demosthenesk at ...626... Mon Dec 27 12:00:12 2010 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Mon, 27 Dec 2010 13:00:12 +0200 Subject: [Gambas-user] hProcess is NULL In-Reply-To: References: <1293385579.9388.1.camel@...2493...> <1293441097.3102.5.camel@...2493...> <1293445409.3775.3.camel@...2493...> Message-ID: <1293447612.4727.12.camel@...2493...> if i use SHELL sCommand to sVar i have to wait to complete execution of command. Right? In my case hProcess1 = SHELL sCommand FOR INPUT AS "AntiVirRun" sCommand is a scan command of an antivirus for 9000 files and more... This takes almost 10 minutes or more to be completed. i want in these 10 minutes to read the stdout from this sCommand because i get messages for each file if it is cleaned or has a virus. if i used hProcess1 = SHELL sCommand WAIT FOR INPUT AS "AntiVirRun" it wont work, i cant process AntiVirRun_Read the same is for SHELL sCommand to sVar. So i wanted a way to stop executiono program for the time the sCommand is executed and also to process AntiVirRun_Read this is worked with hProcess1 = SHELL sCommand FOR INPUT AS "AntiVirRun" WHILE (hProcess1.Running) WAIT 10 WEND On Mon, 2010-12-27 at 11:34 +0100, Fabien Bodard wrote: > Exec ["ls", "-a"] to sLig > > Print sLig > > > To do what you want .... it's enought > > 2010/12/27 Fabien Bodard : > > 2010/12/27 Demosthenes Koptsis : > >> Well i found a way > >> > >> > >> hProcess1 = SHELL sCommand FOR INPUT AS "AntiVirRun" > >> WHILE (hProcess1.Running) > >> WAIT 10 > >> WEND > >> > > > > ?????? what is that ? > > > > > > > >> yes there is a reason because i want to stop execution of next lines but > >> i cant explain it right now. > >> > >> So with this code i can process _Read event of process and stop > >> execution of code. > >> > >> Anyway thank you all for the help. > >> > >> > >> On Mon, 2010-12-27 at 10:36 +0100, Ron wrote: > >>> Not clear why you want to wait exactly, but another way is not to wait > >>> but to continue when process is finished. > >>> > >>> AntiVirRun_Kill() is called when process is finished. > >>> So you can do other things in meantime (like parsing _Read) and call > >>> the code to run from _Kill to continue. > >>> > >>> See here for some code: > >>> http://www.domotiga.nl/browser/trunk/DomotiGa/Ping.module > >>> > >>> Regards, > >>> Ron_2nd. > >>> On Mon, Dec 27, 2010 at 10:21 AM, Ian Haywood wrote: > >>> > On Mon, Dec 27, 2010 at 8:11 PM, Demosthenes Koptsis > >>> > wrote: > >>> >> On Mon, 2010-12-27 at 10:20 +1100, Ian Haywood wrote: > >>> >>> On Mon, Dec 27, 2010 at 4:46 AM, Demosthenes Koptsis > >>> >>> wrote: > >>> >>> > Hello and merry Christmas, > >>> >>> > > >>> >>> > i have these lines of code > >>> >>> > > >>> >>> > ----------- > >>> >>> > sCommand = "/opt/avast4workstation-1.3.0/bin/avast -r " & > >>> >>> > txtVirusTempFolder.Text & "/avast-report.txt" & " -ac -t A " & > >>> >>> > txtVirusTempFolder.Text > >>> >>> > > >>> >>> > PRINT sCommand > >>> >>> > > >>> >>> > hProcess1 = SHELL sCommand WAIT FOR INPUT OUTPUT AS "AntiVirRun" > >>> >>> > ----------- > >>> >>> > > >>> >>> > After that line the hProcess1 is NULL and i get NULL object in > >>> >>> > > >>> >>> > PUBLIC SUB AntiVirRun_Read() > >>> >>> Drop the "WAIT" keyword. > >>> >> > >>> >> Actually i want the WAIT word. > >>> >> > >>> >> I want to WAIT until the command is finished but in meanwhile i want to > >>> >> be capable to read the stdout. > >>> > Use Shell...To as I described. > >>> > Or read output and then when you are finished reading use hProcess.Wait() > >>> > > >>> > But you can't wait and read at the same time. > >>> > > >>> > Ian > >>> > > >>> > ------------------------------------------------------------------------------ > >>> > Learn how Oracle Real Application Clusters (RAC) One Node allows customers > >>> > to consolidate database storage, standardize their database environment, and, > >>> > should the need arise, upgrade to a full multi-node Oracle RAC database > >>> > without downtime or disruption > >>> > http://p.sf.net/sfu/oracle-sfdevnl > >>> > _______________________________________________ > >>> > Gambas-user mailing list > >>> > Gambas-user at lists.sourceforge.net > >>> > https://lists.sourceforge.net/lists/listinfo/gambas-user > >>> > > >>> > >>> ------------------------------------------------------------------------------ > >>> Learn how Oracle Real Application Clusters (RAC) One Node allows customers > >>> to consolidate database storage, standardize their database environment, and, > >>> should the need arise, upgrade to a full multi-node Oracle RAC database > >>> without downtime or disruption > >>> http://p.sf.net/sfu/oracle-sfdevnl > >>> _______________________________________________ > >>> Gambas-user mailing list > >>> Gambas-user at lists.sourceforge.net > >>> https://lists.sourceforge.net/lists/listinfo/gambas-user > >> > >> -- > >> Regards, > >> Demosthenes Koptsis. > >> > >> > >> ------------------------------------------------------------------------------ > >> Learn how Oracle Real Application Clusters (RAC) One Node allows customers > >> to consolidate database storage, standardize their database environment, and, > >> should the need arise, upgrade to a full multi-node Oracle RAC database > >> without downtime or disruption > >> http://p.sf.net/sfu/oracle-sfdevnl > >> _______________________________________________ > >> Gambas-user mailing list > >> Gambas-user at lists.sourceforge.net > >> https://lists.sourceforge.net/lists/listinfo/gambas-user > >> > > > > > > > > -- > > Fabien Bodard > > > > > -- Regards, Demosthenes Koptsis. From gambas.fr at ...626... Mon Dec 27 12:01:56 2010 From: gambas.fr at ...626... (Fabien Bodard) Date: Mon, 27 Dec 2010 12:01:56 +0100 Subject: [Gambas-user] Image to Picture In-Reply-To: <4D187198.1070508@...2481...> References: <4D1869B1.4070703@...2481...> <4D186B56.80808@...2481...> <4D186E68.1030804@...2481...> <4D187094.80705@...2481...> <4D187198.1070508@...2481...> Message-ID: 2010/12/27 Shane : > On 27/12/10 21:55, Shane wrote: >> On 27/12/10 21:48, Fabien Bodard wrote: >>> 2010/12/27 Shane: >>>> On 27/12/10 21:36, Fabien Bodard wrote: >>>>> try to add >>>>> >>>>> >>>>> Picturebox.Picture.Fill(gb.Transparent) >>>>> >>>>> after setting the new picture >>>>> >>>> Tried This >>>> >>>> PictureBox1.Picture = New Picture(PictureBox1.w,PictureBox1.h) >>>> >>>> Draw.Begin(PictureBox1.Picture) >>>> Draw.Image(myimage,(PictureBox1.w-myimage.w)/2,(PictureBox1.h-myimage.w)/2) >>>> Draw.End >>>> >>>> PictureBox1.Picture.Fill(Color.Transparent) >>>> >>>> Their is no gb.transparent >>> no gb.transparent >>> but color.transparent >>> http://gambasdoc.org/help/comp/gb.qt/color/transparent >>>> ------------------------------------------------------------------------------ >>>> Learn how Oracle Real Application Clusters (RAC) One Node allows customers >>>> to consolidate database storage, standardize their database environment, and, >>>> should the need arise, upgrade to a full multi-node Oracle RAC database >>>> without downtime or disruption >>>> http://p.sf.net/sfu/oracle-sfdevnl >>>> _______________________________________________ >>>> Gambas-user mailing list >>>> Gambas-user at lists.sourceforge.net >>>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>>> >>> >> Sorry Fabian Should Have Said That The Result Was the Same >> > if i just set PictureBox1.Picture = myimage.Picture the Image is Displayed > but in the top left corner and with the alignment ? >> ------------------------------------------------------------------------------ >> Learn how Oracle Real Application Clusters (RAC) One Node allows customers >> to consolidate database storage, standardize their database environment, and, >> should the need arise, upgrade to a full multi-node Oracle RAC database >> without downtime or disruption >> http://p.sf.net/sfu/oracle-sfdevnl >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user > > > ------------------------------------------------------------------------------ > Learn how Oracle Real Application Clusters (RAC) One Node allows customers > to consolidate database storage, standardize their database environment, and, > should the need arise, upgrade to a full multi-node Oracle RAC database > without downtime or disruption > http://p.sf.net/sfu/oracle-sfdevnl > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Fabien Bodard From shanep at ...2481... Mon Dec 27 12:14:18 2010 From: shanep at ...2481... (Shane) Date: Mon, 27 Dec 2010 22:14:18 +1100 Subject: [Gambas-user] Image to Picture In-Reply-To: References: <4D1869B1.4070703@...2481...> <4D186B56.80808@...2481...> <4D186E68.1030804@...2481...> <4D187094.80705@...2481...> <4D187198.1070508@...2481...> Message-ID: <4D18750A.20900@...2481...> On 27/12/10 22:01, Fabien Bodard wrote: > 2010/12/27 Shane: >> On 27/12/10 21:55, Shane wrote: >>> On 27/12/10 21:48, Fabien Bodard wrote: >>>> 2010/12/27 Shane: >>>>> On 27/12/10 21:36, Fabien Bodard wrote: >>>>>> try to add >>>>>> >>>>>> >>>>>> Picturebox.Picture.Fill(gb.Transparent) >>>>>> >>>>>> after setting the new picture >>>>>> >>>>> Tried This >>>>> >>>>> PictureBox1.Picture = New Picture(PictureBox1.w,PictureBox1.h) >>>>> >>>>> Draw.Begin(PictureBox1.Picture) >>>>> Draw.Image(myimage,(PictureBox1.w-myimage.w)/2,(PictureBox1.h-myimage.w)/2) >>>>> Draw.End >>>>> >>>>> PictureBox1.Picture.Fill(Color.Transparent) >>>>> >>>>> Their is no gb.transparent >>>> no gb.transparent >>>> but color.transparent >>>> http://gambasdoc.org/help/comp/gb.qt/color/transparent >>>>> ------------------------------------------------------------------------------ >>>>> Learn how Oracle Real Application Clusters (RAC) One Node allows customers >>>>> to consolidate database storage, standardize their database environment, and, >>>>> should the need arise, upgrade to a full multi-node Oracle RAC database >>>>> without downtime or disruption >>>>> http://p.sf.net/sfu/oracle-sfdevnl >>>>> _______________________________________________ >>>>> Gambas-user mailing list >>>>> Gambas-user at lists.sourceforge.net >>>>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>>>> >>> Sorry Fabian Should Have Said That The Result Was the Same >>> >> if i just set PictureBox1.Picture = myimage.Picture the Image is Displayed >> but in the top left corner > and with the alignment ? > Yep That Did It Thanks Very Much Fabian guess we don't need to to it the way I used to with gambas 2 did gambas 2 picturebox have an alignment Property? >>> ------------------------------------------------------------------------------ >>> Learn how Oracle Real Application Clusters (RAC) One Node allows customers >>> to consolidate database storage, standardize their database environment, and, >>> should the need arise, upgrade to a full multi-node Oracle RAC database >>> without downtime or disruption >>> http://p.sf.net/sfu/oracle-sfdevnl >>> _______________________________________________ >>> Gambas-user mailing list >>> Gambas-user at lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/gambas-user >> >> ------------------------------------------------------------------------------ >> Learn how Oracle Real Application Clusters (RAC) One Node allows customers >> to consolidate database storage, standardize their database environment, and, >> should the need arise, upgrade to a full multi-node Oracle RAC database >> without downtime or disruption >> http://p.sf.net/sfu/oracle-sfdevnl >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > From gambas.fr at ...626... Mon Dec 27 12:15:19 2010 From: gambas.fr at ...626... (Fabien Bodard) Date: Mon, 27 Dec 2010 12:15:19 +0100 Subject: [Gambas-user] Image to Picture In-Reply-To: <4D18750A.20900@...2481...> References: <4D1869B1.4070703@...2481...> <4D186B56.80808@...2481...> <4D186E68.1030804@...2481...> <4D187094.80705@...2481...> <4D187198.1070508@...2481...> <4D18750A.20900@...2481...> Message-ID: 2010/12/27 Shane : > On 27/12/10 22:01, Fabien Bodard wrote: >> 2010/12/27 Shane: >>> On 27/12/10 21:55, Shane wrote: >>>> On 27/12/10 21:48, Fabien Bodard wrote: >>>>> 2010/12/27 Shane: >>>>>> On 27/12/10 21:36, Fabien Bodard wrote: >>>>>>> try to add >>>>>>> >>>>>>> >>>>>>> Picturebox.Picture.Fill(gb.Transparent) >>>>>>> >>>>>>> after setting the new picture >>>>>>> >>>>>> Tried This >>>>>> >>>>>> PictureBox1.Picture = New Picture(PictureBox1.w,PictureBox1.h) >>>>>> >>>>>> Draw.Begin(PictureBox1.Picture) >>>>>> Draw.Image(myimage,(PictureBox1.w-myimage.w)/2,(PictureBox1.h-myimage.w)/2) >>>>>> Draw.End >>>>>> >>>>>> PictureBox1.Picture.Fill(Color.Transparent) >>>>>> >>>>>> Their is no gb.transparent >>>>> no gb.transparent >>>>> but color.transparent >>>>> http://gambasdoc.org/help/comp/gb.qt/color/transparent >>>>>> ------------------------------------------------------------------------------ >>>>>> Learn how Oracle Real Application Clusters (RAC) One Node allows customers >>>>>> to consolidate database storage, standardize their database environment, and, >>>>>> should the need arise, upgrade to a full multi-node Oracle RAC database >>>>>> without downtime or disruption >>>>>> http://p.sf.net/sfu/oracle-sfdevnl >>>>>> _______________________________________________ >>>>>> Gambas-user mailing list >>>>>> Gambas-user at lists.sourceforge.net >>>>>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>>>>> >>>> Sorry Fabian Should Have Said That The Result Was the Same >>>> >>> if i just set PictureBox1.Picture = myimage.Picture the Image is Displayed >>> but in the top left corner >> and with the alignment ? >> > Yep That Did It Thanks Very Much Fabian guess we don't need to to it the > way I used to with gambas 2 > did gambas 2 picturebox have an alignment Property? gambas3 ... yes > >>>> ------------------------------------------------------------------------------ >>>> Learn how Oracle Real Application Clusters (RAC) One Node allows customers >>>> to consolidate database storage, standardize their database environment, and, >>>> should the need arise, upgrade to a full multi-node Oracle RAC database >>>> without downtime or disruption >>>> http://p.sf.net/sfu/oracle-sfdevnl >>>> _______________________________________________ >>>> Gambas-user mailing list >>>> Gambas-user at lists.sourceforge.net >>>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>> >>> ------------------------------------------------------------------------------ >>> Learn how Oracle Real Application Clusters (RAC) One Node allows customers >>> to consolidate database storage, standardize their database environment, and, >>> should the need arise, upgrade to a full multi-node Oracle RAC database >>> without downtime or disruption >>> http://p.sf.net/sfu/oracle-sfdevnl >>> _______________________________________________ >>> Gambas-user mailing list >>> Gambas-user at lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>> >> >> > > > ------------------------------------------------------------------------------ > Learn how Oracle Real Application Clusters (RAC) One Node allows customers > to consolidate database storage, standardize their database environment, and, > should the need arise, upgrade to a full multi-node Oracle RAC database > without downtime or disruption > http://p.sf.net/sfu/oracle-sfdevnl > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Fabien Bodard From demosthenesk at ...626... Mon Dec 27 12:17:38 2010 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Mon, 27 Dec 2010 13:17:38 +0200 Subject: [Gambas-user] [Fwd: Re: hProcess is NULL] Message-ID: <1293448658.4727.14.camel@...2493...> oops Fabien you are right to complain i wanted hProcess1 = SHELL sCommand FOR INPUT AS "AntiVirRun" WHILE (hProcess1.State = hProcess1.Running) WAIT 10 WEND is it now ok? i think it is. -- Regards, Demosthenes Koptsis. -------------- next part -------------- An embedded message was scrubbed... From: Demosthenes Koptsis Subject: Re: [Gambas-user] hProcess is NULL Date: Mon, 27 Dec 2010 13:00:38 +0200 Size: 6272 URL: From gambas at ...1... Mon Dec 27 12:59:14 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Mon, 27 Dec 2010 12:59:14 +0100 Subject: [Gambas-user] Command line gambas compiler In-Reply-To: References: <201012161846.46665.wally@...2037...> <1293414848.3556.12.camel@...2506...> Message-ID: <201012271259.14747.gambas@...1...> > 2010/12/27 Ian Roper : > > Apologies if this is a double post - have been having trouble posting > > things to the forum. > > > > Question: > > Is there a way to compile a Gambas project from a command line ? > > ie: The Project > Make > Executable. process from the Development > > environment. > > yes > > go into the project directory root > > gbc3 -A Didn't know that option... :-) Better do: gbc3 -agt And gbc3 --help to know what the options are. > gba3 -o ~/mygambasprog.gambas > -- Beno?t Minisini From ihaywood at ...1979... Mon Dec 27 13:38:12 2010 From: ihaywood at ...1979... (Ian Haywood) Date: Mon, 27 Dec 2010 23:38:12 +1100 Subject: [Gambas-user] hProcess is NULL In-Reply-To: <1293447612.4727.12.camel@...2493...> References: <1293385579.9388.1.camel@...2493...> <1293441097.3102.5.camel@...2493...> <1293445409.3775.3.camel@...2493...> <1293447612.4727.12.camel@...2493...> Message-ID: On Mon, Dec 27, 2010 at 10:00 PM, Demosthenes Koptsis wrote: > ?hProcess1 = SHELL sCommand FOR INPUT AS "AntiVirRun" > ?WHILE (hProcess1.Running) > ?WAIT 10 > ?WEND This does work but is slow, potentially pointless wait of nine seconds at the end. Instead you could split this function into two: hProcess1 = SHELL sCommand FOR INPUT AS "AntiVirRun End Private Sub Continue_The_Function() .. . . . whatever you where doing Then use AntiVirRun_Kill event to call the continue function when the process ends. Ian From gambas.fr at ...626... Mon Dec 27 14:45:30 2010 From: gambas.fr at ...626... (Fabien Bodard) Date: Mon, 27 Dec 2010 14:45:30 +0100 Subject: [Gambas-user] Command line gambas compiler In-Reply-To: <201012271259.14747.gambas@...1...> References: <201012161846.46665.wally@...2037...> <1293414848.3556.12.camel@...2506...> <201012271259.14747.gambas@...1...> Message-ID: Le 27 d?cembre 2010 12:59, Beno?t Minisini a ?crit : >> 2010/12/27 Ian Roper : >> > Apologies if this is a double post - have been having trouble posting >> > things to the forum. >> > >> > Question: >> > Is there a way to compile a Gambas project from a command line ? >> > ie: The ?Project > Make > Executable. process from the Development >> > environment. >> >> yes >> >> go into the project directory root >> >> gbc3 -A well i mean -a > > Didn't know that option... :-) > > Better do: gbc3 -agt > > And gbc3 --help to know what the options are. > >> gba3 -o ~/mygambasprog.gambas >> > > -- > Beno?t Minisini > > ------------------------------------------------------------------------------ > Learn how Oracle Real Application Clusters (RAC) One Node allows customers > to consolidate database storage, standardize their database environment, and, > should the need arise, upgrade to a full multi-node Oracle RAC database > without downtime or disruption > http://p.sf.net/sfu/oracle-sfdevnl > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Fabien Bodard From demosthenesk at ...626... Mon Dec 27 16:12:22 2010 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Mon, 27 Dec 2010 17:12:22 +0200 Subject: [Gambas-user] hProcess is NULL In-Reply-To: References: <1293385579.9388.1.camel@...2493...> <1293441097.3102.5.camel@...2493...> <1293445409.3775.3.camel@...2493...> <1293447612.4727.12.camel@...2493...> Message-ID: <1293462742.10550.0.camel@...2493...> Thank you guys for the help. On Mon, 2010-12-27 at 23:38 +1100, Ian Haywood wrote: > On Mon, Dec 27, 2010 at 10:00 PM, Demosthenes Koptsis > wrote: > > > hProcess1 = SHELL sCommand FOR INPUT AS "AntiVirRun" > > WHILE (hProcess1.Running) > > WAIT 10 > > WEND > This does work but is slow, potentially pointless wait of nine seconds > at the end. > > Instead you could split this function into two: > > hProcess1 = SHELL sCommand FOR INPUT AS "AntiVirRun > End > > Private Sub Continue_The_Function() > > .. . . . whatever you where doing > > > Then use AntiVirRun_Kill event to call the continue function when the > process ends. > > Ian > > ------------------------------------------------------------------------------ > Learn how Oracle Real Application Clusters (RAC) One Node allows customers > to consolidate database storage, standardize their database environment, and, > should the need arise, upgrade to a full multi-node Oracle RAC database > without downtime or disruption > http://p.sf.net/sfu/oracle-sfdevnl > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -- Regards, Demosthenes Koptsis. From rterry at ...1946... Tue Dec 28 00:00:07 2010 From: rterry at ...1946... (richard terry) Date: Tue, 28 Dec 2010 10:00:07 +1100 Subject: [Gambas-user] Tooltip over icons in IDE toolbox Message-ID: <201012281000.07826.rterry@...1946...> Hi benoit, Wonder if it would be possible to put back the tooltips over the icons on the tabs in the toolbox - it can be hard to remember which icon = which control eg for lists/columnviews/grids/tableview. Regards richard From gambas at ...1... Tue Dec 28 00:04:09 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Tue, 28 Dec 2010 00:04:09 +0100 Subject: [Gambas-user] Tooltip over icons in IDE toolbox In-Reply-To: <201012281000.07826.rterry@...1946...> References: <201012281000.07826.rterry@...1946...> Message-ID: <201012280004.10000.gambas@...1...> > Hi benoit, > > Wonder if it would be possible to put back the tooltips over the icons on > the tabs in the toolbox - it can be hard to remember which icon = which > control eg for lists/columnviews/grids/tableview. > > Regards > > richard > I've never removed them. Are you sure that tooltips are enabled in the IDE configuration dialog? -- Beno?t Minisini From zachsmith022 at ...626... Tue Dec 28 00:22:24 2010 From: zachsmith022 at ...626... (Zach Smith) Date: Mon, 27 Dec 2010 17:22:24 -0600 Subject: [Gambas-user] problem with Key.Code and form focus In-Reply-To: <4D154563.909@...626...> References: <4D154563.909@...626...> Message-ID: On Fri, Dec 24, 2010 at 7:14 PM, zachsmith022 at ...626... wrote: > I'm having trouble having keypresses detected on a form. Sample code > attached. > Can someone please test this? Any feedback would be appreciated. From rterry at ...1946... Tue Dec 28 03:05:05 2010 From: rterry at ...1946... (richard terry) Date: Tue, 28 Dec 2010 13:05:05 +1100 Subject: [Gambas-user] Spelling error in textedit docs Message-ID: <201012281305.05735.rterry@...1946...> TextEdit.RichText (gb.qt4.ext) PROPERTY RichText AS String Returns or sets the rich text displayed in the control, i.e. the text ***will*** all the markups. should be 'with' Regards richard From dag.jarle.johansen at ...626... Tue Dec 28 03:15:52 2010 From: dag.jarle.johansen at ...626... (Dag-Jarle Johansen) Date: Mon, 27 Dec 2010 23:15:52 -0300 Subject: [Gambas-user] Drag and Drop Message-ID: Hi all, I have done it before, but just forgot it (and can't find any appropriate samples) At the moment using Gambas 2.19 shipped with Ubuntu 10.04, Gnome I have a container which I would like to move around on the form with the mouse, and can't figure out how I can do that. Does anyone have a simple sample for this? Thanks in advance and regards, Dag-Jarle. From gambas at ...1... Tue Dec 28 03:18:43 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Tue, 28 Dec 2010 03:18:43 +0100 Subject: [Gambas-user] Spelling error in textedit docs In-Reply-To: <201012281305.05735.rterry@...1946...> References: <201012281305.05735.rterry@...1946...> Message-ID: <201012280318.43704.gambas@...1...> > TextEdit.RichText (gb.qt4.ext) > PROPERTY RichText AS String > Returns or sets the rich text displayed in the control, i.e. the text > ***will*** all the markups. > > should be 'with' > > Regards > > richard > Funny, because gb.qt4.ext TextEdit is not yet documented in the wiki. :-? -- Beno?t Minisini From gambas at ...1... Tue Dec 28 03:24:34 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Tue, 28 Dec 2010 03:24:34 +0100 Subject: [Gambas-user] Drag and Drop In-Reply-To: References: Message-ID: <201012280324.34758.gambas@...1...> > Hi all, > > I have done it before, but just forgot it (and can't find any appropriate > samples) > At the moment using Gambas 2.19 shipped with Ubuntu 10.04, Gnome > > I have a container which I would like to move around on the form with the > mouse, and can't figure out how I can do that. > Does anyone have a simple sample for this? > > Thanks in advance and regards, > Dag-Jarle. Just a remark: this is not Drag & Drop, but just moving a control on a form. -- Beno?t Minisini From dag.jarle.johansen at ...626... Tue Dec 28 03:32:59 2010 From: dag.jarle.johansen at ...626... (Dag-Jarle Johansen) Date: Mon, 27 Dec 2010 23:32:59 -0300 Subject: [Gambas-user] Drag and Drop In-Reply-To: <201012280324.34758.gambas@...1...> References: <201012280324.34758.gambas@...1...> Message-ID: Hi Beno?t, Ok, Still it would be nice to find out how that works. It's such a long time since I have done such things, I'll have to start all over again, and then better do it right. Regards, Dag-Jarle 2010/12/27 Beno?t Minisini > > Hi all, > > > > I have done it before, but just forgot it (and can't find any appropriate > > samples) > > At the moment using Gambas 2.19 shipped with Ubuntu 10.04, Gnome > > > > I have a container which I would like to move around on the form with the > > mouse, and can't figure out how I can do that. > > Does anyone have a simple sample for this? > > > > Thanks in advance and regards, > > Dag-Jarle. > > Just a remark: this is not Drag & Drop, but just moving a control on a > form. > > -- > Beno?t Minisini > > > ------------------------------------------------------------------------------ > Learn how Oracle Real Application Clusters (RAC) One Node allows customers > to consolidate database storage, standardize their database environment, > and, > should the need arise, upgrade to a full multi-node Oracle RAC database > without downtime or disruption > http://p.sf.net/sfu/oracle-sfdevnl > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Tue Dec 28 03:34:39 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Tue, 28 Dec 2010 03:34:39 +0100 Subject: [Gambas-user] problem with Key.Code and form focus In-Reply-To: References: <4D154563.909@...626...> Message-ID: <201012280334.39929.gambas@...1...> > On Fri, Dec 24, 2010 at 7:14 PM, zachsmith022 at ...626... wrote: > > I'm having trouble having keypresses detected on a form. Sample code > > attached. > > Can someone please test this? > Any feedback would be appreciated. > Hey, it was Christmas. :-) I confirm the problems: - Windows with no borders are handled strangely with Qt4. - When a control is hidden with gb.gtk, it keeps the focus, and the form don't see the "a" key anymore. Must investigate then... Note: Don't use Quit in a GUI program. It stops the program somewhat brutally without freeing eveything most of the time. Regards, -- Beno?t Minisini From rterry at ...1946... Tue Dec 28 05:03:40 2010 From: rterry at ...1946... (richard terry) Date: Tue, 28 Dec 2010 15:03:40 +1100 Subject: [Gambas-user] Tooltip over icons in IDE toolbox In-Reply-To: <201012280004.10000.gambas@...1...> References: <201012281000.07826.rterry@...1946...> <201012280004.10000.gambas@...1...> Message-ID: <201012281503.40315.rterry@...1946...> On Tuesday 28 December 2010 10:04:09 Beno?t Minisini wrote: > > Hi benoit, > > > > Wonder if it would be possible to put back the tooltips over the icons on > > the tabs in the toolbox - it can be hard to remember which icon = which > > control eg for lists/columnviews/grids/tableview. > > > > Regards > > > > richard > > I've never removed them. Are you sure that tooltips are enabled in the IDE > configuration dialog? > Ah, thanks, didn't know that needed enabling, maybe I clicked it off accidentally Regards richard From rterry at ...1946... Tue Dec 28 05:04:52 2010 From: rterry at ...1946... (richard terry) Date: Tue, 28 Dec 2010 15:04:52 +1100 Subject: [Gambas-user] Spelling error in textedit docs In-Reply-To: <201012280318.43704.gambas@...1...> References: <201012281305.05735.rterry@...1946...> <201012280318.43704.gambas@...1...> Message-ID: <201012281504.53005.rterry@...1946...> On Tuesday 28 December 2010 13:18:43 Beno?t Minisini wrote: > > TextEdit.RichText (gb.qt4.ext) > > PROPERTY RichText AS String > > Returns or sets the rich text displayed in the control, i.e. the text > > ***will*** all the markups. > > > > should be 'with' > > > > Regards > > > > richard > > Funny, because gb.qt4.ext TextEdit is not yet documented in the wiki. :-? > Well, that's what comes up in the help browser window! From sotema at ...626... Tue Dec 28 13:15:27 2010 From: sotema at ...626... (Emanuele Sottocorno) Date: Tue, 28 Dec 2010 13:15:27 +0100 Subject: [Gambas-user] Form_KeyPress not raised on Gtk Message-ID: <1293538527.6987.20.camel@...2516...> Hi to all, the Event Form_keyPress is'n raised with Gtk library. The attached project uses a function to check the CapsLock status. The function is called on Form_Open and should be called at Form_KeyPress event, such event isn't raised at all. No matter the initial status (Visible / Hidden) of textlabel1. Thanks for help. Emanuele -------------- next part -------------- A non-text attachment was scrubbed... Name: keypress.tar.gz Type: application/x-compressed-tar Size: 5505 bytes Desc: not available URL: From gambas at ...1... Tue Dec 28 15:34:13 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Tue, 28 Dec 2010 15:34:13 +0100 Subject: [Gambas-user] Locking files - best method In-Reply-To: <499916B8.7060608@...221...> References: <4993CF56.80206@...221...> <200902141310.45405.gambas@...1...> <499916B8.7060608@...221...> Message-ID: <201012281534.13946.gambas@...1...> > Beno?t Minisini schrieb: > >> Sharing a file exclusively locked very briefly and getting everything > >> to work correctly amongst multiple programs can be brain-twisting. > >> With increasing use of mulit-cores, the possibility for sharing files > >> using any lock technique is more important than ever before > >> because all associated programs can execute simultaneously. > > > > You can use the LOCK/UNLOCK commands and a specific void file on the disk > > to create system exclusive sections in your code. > > > > Let's suppose you want to modify a file named "/tmp/foo". > > > > ... > > DIM hLock AS Stream > > DIM hFile AS Stream > > > > ' Try to acquire the lock > > TRY hLock = LOCK "/tmp/foo.lock" > > IF ERROR THEN > > > > PRINT "'foo' is being modified. Try again later." > > RETURN > > > > ENDIF > > > > ' Lock was acquired, you can modify the file now! > > hFile = OPEN "/tmp/foo" FOR OUTPUT > > ... > > CLOSE #hFile > > > > ' Do not forget to release the lock > > UNLOCK hLock > > ... > > IMHO "the one" drawback remains: foo.lock isn't foo. You cannot lock the > file itself, relying on the operating system / the file system to really > make sure nobody else is able to corrupt your file during your access. > > If there's some other app that doesn't care about .lock files, your > /tmp/foo will be lost. Of course, the same applies to my own methods > like lock directories or self-made lock files. > > > The only way to solve this would be a mechanism in the file system > itself, giving the opportunity to code something like > > hFile = OPEN "/tmp/foo" FOR OUTPUT LOCK > > which would unlock the file automagically when you CLOSE it (or the > instance of your application ends). > > Regards > > Rolf > I add that to my TODO file. Regards, -- Beno?t Minisini From gambas at ...1... Tue Dec 28 16:38:30 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Tue, 28 Dec 2010 16:38:30 +0100 Subject: [Gambas-user] Multiple TCP server sockets In-Reply-To: <6c208f950902190833q4ad45266paf76fe4c1509936e@...627...> References: <6c208f950902171126h37b0e12dl3bdffcc83178f5c1@...627...> <200902191656.21919.gambas@...1...> <6c208f950902190833q4ad45266paf76fe4c1509936e@...627...> Message-ID: <201012281638.30474.gambas@...1...> > > > > > > That is not the issue, you can do that, but they all use the same > > > socket_read sub. Or I my missing something here? > > > > Hem, you are right, I didn't notice. > > > > Internallly the Socket object knows which ServerSocket created it, but > > you don't have any access to it! > > > > As a workaround, I think you can use the port number to make the > > difference. > > I will look into that in the meantime. > > > Maybe I will make a "Server" property in the Socket class to get the > > ServerSocket object creator. > > > > And I can add an optional argument to the Accep() method to define the > > event name of the created socket. > > That would be great! Thanks. > > Regards, > Joe1962 > The Socket.Server property has been implemented in revision #3403. Regards, -- Beno?t Minisini From demosthenesk at ...626... Tue Dec 28 16:51:03 2010 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Tue, 28 Dec 2010 17:51:03 +0200 Subject: [Gambas-user] Label.Adjust Message-ID: <1293551463.7606.1.camel@...2493...> In wiki says Adjusts the Label dimensions to its contents. But in my tests only the height dimension is adjusted. The width dimension is not adjusted properly for a long text. -- Regards, Demosthenes Koptsis. From gambas at ...1... Tue Dec 28 16:59:54 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Tue, 28 Dec 2010 16:59:54 +0100 Subject: [Gambas-user] Label.Adjust In-Reply-To: <1293551463.7606.1.camel@...2493...> References: <1293551463.7606.1.camel@...2493...> Message-ID: <201012281659.54597.gambas@...1...> > In wiki says > > Adjusts the Label dimensions to its contents. > > But in my tests only the height dimension is adjusted. > > The width dimension is not adjusted properly for a long text. Which GUI do you use? What is the source code? -- Beno?t Minisini From dag.jarle.johansen at ...626... Tue Dec 28 17:07:03 2010 From: dag.jarle.johansen at ...626... (Dag-Jarle Johansen) Date: Tue, 28 Dec 2010 13:07:03 -0300 Subject: [Gambas-user] Drag and Drop In-Reply-To: References: <201012280324.34758.gambas@...1...> Message-ID: Hi Benoit, I figured it out, how to move something around... 2010/12/27 Dag-Jarle Johansen > Hi Beno?t, > > Ok, Still it would be nice to find out how that works. It's such a long > time since I have done such things, I'll have to start all over again, and > then better do it right. > > Regards, > Dag-Jarle > > 2010/12/27 Beno?t Minisini > > > Hi all, >> > >> > I have done it before, but just forgot it (and can't find any >> appropriate >> > samples) >> > At the moment using Gambas 2.19 shipped with Ubuntu 10.04, Gnome >> > >> > I have a container which I would like to move around on the form with >> the >> > mouse, and can't figure out how I can do that. >> > Does anyone have a simple sample for this? >> > >> > Thanks in advance and regards, >> > Dag-Jarle. >> >> Just a remark: this is not Drag & Drop, but just moving a control on a >> form. >> >> -- >> Beno?t Minisini >> >> >> ------------------------------------------------------------------------------ >> Learn how Oracle Real Application Clusters (RAC) One Node allows customers >> to consolidate database storage, standardize their database environment, >> and, >> should the need arise, upgrade to a full multi-node Oracle RAC database >> without downtime or disruption >> http://p.sf.net/sfu/oracle-sfdevnl >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > From ron at ...1740... Tue Dec 28 17:41:39 2010 From: ron at ...1740... (Ron) Date: Tue, 28 Dec 2010 17:41:39 +0100 Subject: [Gambas-user] Multiple TCP server sockets In-Reply-To: <201012281638.30474.gambas@...1...> References: <6c208f950902171126h37b0e12dl3bdffcc83178f5c1@...627...> <200902191656.21919.gambas@...1...> <6c208f950902190833q4ad45266paf76fe4c1509936e@...627...> <201012281638.30474.gambas@...1...> Message-ID: Do I miss something here? I have several server sockets on several ports for years in Gambas2... Regards, Ron_2nd. 2010/12/28 Beno?t Minisini : >> > ?> >> > ?> That is not the issue, you can do that, but they all use the same >> > ?> socket_read sub. Or I my missing something here? >> > >> > Hem, you are right, I didn't notice. >> > >> > ?Internallly the Socket object knows which ServerSocket created it, but >> > ?you don't have any access to it! >> > >> > ?As a workaround, I think you can use the port number to make the >> > ?difference. >> >> I will look into that in the meantime. >> >> > ?Maybe I will make a "Server" property in the Socket class to get the >> > ?ServerSocket object creator. >> > >> > ?And I can add an optional argument to the Accep() method to define the >> > ?event name of the created socket. >> >> That would be great! Thanks. >> >> Regards, >> Joe1962 >> > > The Socket.Server property has been implemented in revision #3403. > > Regards, > > -- > Beno?t Minisini > > ------------------------------------------------------------------------------ > Learn how Oracle Real Application Clusters (RAC) One Node allows customers > to consolidate database storage, standardize their database environment, and, > should the need arise, upgrade to a full multi-node Oracle RAC database > without downtime or disruption > http://p.sf.net/sfu/oracle-sfdevnl > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From jussi.lahtinen at ...626... Tue Dec 28 19:16:36 2010 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Tue, 28 Dec 2010 20:16:36 +0200 Subject: [Gambas-user] Some new features in Gambas 3 In-Reply-To: <201011271444.05812.gambas@...1...> References: <201011271444.05812.gambas@...1...> Message-ID: > 2) A new set of native functions named Mk$() to create a string from > the > memory representation of a value. For example, MkShort$(1234) returns > Chr$(210) & Chr$(4) (on a little endian machine). > I'm updating GambasTester to handle new commands and features. And I don't quite understand these new functions... MkByte$(65) returns "A" which is expected if string is created with ascii encoding. But MkBoolean(True) returns "^A", and according to documentation boolean value size is one byte in memory. This string occupies two bytes? But moreover, what is intended use of these functions? Can you provide some hint of practical usage? Jussi From math.eber at ...221... Tue Dec 28 19:36:04 2010 From: math.eber at ...221... (math.eber at ...221...) Date: Tue, 28 Dec 2010 19:36:04 +0100 Subject: [Gambas-user] DataControls with Visible = False Message-ID: <1PXeOz-1ZJwAq0@...2518...> Gambas 3 rev. 3390 I tried to make a data-bound form the lazy way, without SQL commands. Just a DataSource with some DataControls in it. Works fine. Then, for better layout of the form, I gave the values of the DataControls to TextLabels, Buttons and so on. Works also. But when I turn the DataControls to visible=false (because their content is shown somewhere else), they don't work anymore. I only get Null values from them. Is this by design? If so, I wonder what visibility has to do with functionality. Regards Matti From demosthenesk at ...626... Tue Dec 28 19:53:08 2010 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Tue, 28 Dec 2010 20:53:08 +0200 Subject: [Gambas-user] Label.Adjust In-Reply-To: <201012281659.54597.gambas@...1...> References: <1293551463.7606.1.camel@...2493...> <201012281659.54597.gambas@...1...> Message-ID: <1293562388.7983.6.camel@...2493...> On Tue, 2010-12-28 at 16:59 +0100, Beno?t Minisini wrote: > > In wiki says > > > > Adjusts the Label dimensions to its contents. > > > > But in my tests only the height dimension is adjusted. > > > > The width dimension is not adjusted properly for a long text. > > Which GUI do you use? What is the source code? > the code is ---------------- PUBLIC SUB Form_Open() Label1.Text = " This is a looooooooong text, sghssgh fshsfg dfg fdg sad gfsda asdg sdg " Label1.Adjust END --------------- i use these componets, gb.form, gb.gui on ubuntu 10.04 see pictures for design and running mode. -- Regards, Demosthenes Koptsis. -------------- next part -------------- A non-text attachment was scrubbed... Name: Project75_099.png Type: image/png Size: 7426 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Selection_098.png Type: image/png Size: 2468 bytes Desc: not available URL: From gambas at ...1... Wed Dec 29 01:12:51 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Wed, 29 Dec 2010 01:12:51 +0100 Subject: [Gambas-user] problem with Key.Code and form focus In-Reply-To: <4D154563.909@...626...> References: <4D154563.909@...626...> Message-ID: <201012290112.51239.gambas@...1...> > I'm having trouble having keypresses detected on a form. Sample code > attached. > > qt > FMain.border=true > Works - "a" keypress hides button, next "a" keypress makes button > visible > FMain.border=false > Fails - form can't receive focus > > GTK+ > FMain.border=true > Fails - "a" keypress hides button1, subsequent "a" keypresses do > nothing Works - if Quit button has focus > FMain.border=false > Fails - "a" keypress hides button1, subsequent "a" keypresses do > nothing Works - if Quit button has focus > > It seems that Key.Code won't work at all unless a control is visible > and/or has focus on the form - except for qt when the form has a border. > > > gambas 3 > xfce > qt 4.7.1 > gtk 1.2.10 OK, things should be better with revision #3405. Regards, -- Beno?t Minisini From gambas at ...1... Wed Dec 29 01:50:29 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Wed, 29 Dec 2010 01:50:29 +0100 Subject: [Gambas-user] Form_KeyPress not raised on Gtk In-Reply-To: <1293538527.6987.20.camel@...2516...> References: <1293538527.6987.20.camel@...2516...> Message-ID: <201012290150.30026.gambas@...1...> > Hi to all, > the Event Form_keyPress is'n raised with Gtk library. > The attached project uses a function to check the CapsLock status. > The function is called on Form_Open and should be called at > Form_KeyPress event, such event isn't raised at all. > No matter the initial status (Visible / Hidden) of textlabel1. > Thanks for help. > Emanuele It should be better with revision #3406. Regards, -- Beno?t Minisini From gambas at ...1... Wed Dec 29 02:06:42 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Wed, 29 Dec 2010 02:06:42 +0100 Subject: [Gambas-user] WITH and FOR EACH across .. STUB! In-Reply-To: <201012271256.57666.bbruen@...2308...> References: <201012271248.44409.bbruen@...2308...> <201012271256.57666.bbruen@...2308...> Message-ID: <201012290206.42392.gambas@...1...> > On Mon, 27 Dec 2010 12:48:40 pm Bruce Bruen wrote: > > a great deal > > p.s. please reply to this post rather than the original so we don't > incovenience zillions of electrons. Your project is not complete. I need a way to reproduce the bug on my machine! -- Beno?t Minisini From demosthenesk at ...626... Wed Dec 29 09:19:25 2010 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Wed, 29 Dec 2010 10:19:25 +0200 Subject: [Gambas-user] TextArea issues. Message-ID: <1293610765.18408.1.camel@...2493...> I made an example app with a TextArea on Ubuntu 10.04. When i stopped use the app suddenly i got *** glibc detected *** Project75: double free or corruption (!prev): 0x00000000012fa900 *** WARNING: CTEXTAREA_undo not yet implemented WARNING: CTEXTAREA_undo not yet implemented WARNING: CTEXTAREA_redo not yet implemented WARNING: CTEXTAREA_undo not yet implemented WARNING: CTEXTAREA_redo not yet implemented WARNING: CTEXTAREA_undo not yet implemented WARNING: CTEXTAREA_redo not yet implemented WARNING: CTEXTAREA_undo not yet implemented WARNING: CTEXTAREA_undo not yet implemented WARNING: CTEXTAREA_undo not yet implemented ======= Backtrace: ========= /lib/libc.so.6(+0x775b6)[0x7f43ca35d5b6] /lib/libc.so.6(cfree+0x73)[0x7f43ca363e83] /usr/local/lib/gambas2/gb.gtk.so(+0x3b1f0)[0x7f43c5d631f0] /usr/local/lib/gambas2/gb.gtk.so(+0x6bf78)[0x7f43c5d93f78] Project75[0x41bafd] /lib/libc.so.6(__libc_start_main+0xfd)[0x7f43ca304c4d] Project75[0x404089] ======= Memory map: ======== 00400000-00436000 r-xp 00000000 08:14 2377120 /usr/local/bin/gbx2 00636000-00637000 r--p 00036000 08:14 2377120 /usr/local/bin/gbx2 00637000-00640000 rw-p 00037000 08:14 2377120 /usr/local/bin/gbx2 00640000-00642000 rw-p 00000000 00:00 0 01083000-0131c000 rw-p 00000000 00:00 0 [heap] 7f43b8000000-7f43b8021000 rw-p 00000000 00:00 0 7f43b8021000-7f43bc000000 ---p 00000000 00:00 0 7f43bd7e1000-7f43bd7ec000 r-xp 00000000 08:14 1179701 /lib/libudev.so.0.6.1 7f43bd7ec000-7f43bd9eb000 ---p 0000b000 08:14 1179701 /lib/libudev.so.0.6.1 7f43bd9eb000-7f43bd9ec000 r--p 0000a000 08:14 1179701 /lib/libudev.so.0.6.1 7f43bd9ec000-7f43bd9ed000 rw-p 0000b000 08:14 1179701 /lib/libudev.so.0.6.1 7f43bd9ed000-7f43bda05000 r-xp 00000000 08:14 2228792 /usr/lib/libgvfscommon.so.0.0.0 7f43bda05000-7f43bdc04000 ---p 00018000 08:14 2228792 /usr/lib/libgvfscommon.so.0.0.0 7f43bdc04000-7f43bdc05000 r--p 00017000 08:14 2228792 /usr/lib/libgvfscommon.so.0.0.0 7f43bdc05000-7f43bdc06000 rw-p 00018000 08:14 2228792 /usr/lib/libgvfscommon.so.0.0.0 7f43bdc06000-7f43bdc2f000 r-xp 00000000 08:14 2230920 /usr/lib/gio/modules/libgvfsdbus.so 7f43bdc2f000-7f43bde2f000 ---p 00029000 08:14 2230920 /usr/lib/gio/modules/libgvfsdbus.so 7f43bde2f000-7f43bde30000 r--p 00029000 08:14 2230920 /usr/lib/gio/modules/libgvfsdbus.so 7f43bde30000-7f43bde31000 rw-p 0002a000 08:14 2230920 /usr/lib/gio/modules/libgvfsdbus.so 7f43bde31000-7f43bde6e000 r-xp 00000000 08:14 1179706 /lib/libdbus-1.so.3.4.0 7f43bde6e000-7f43be06e000 ---p 0003d000 08:14 1179706 /lib/libdbus-1.so.3.4.0 7f43be06e000-7f43be06f000 r--p 0003d000 08:14 1179706 /lib/libdbus-1.so.3.4.0 7f43be06f000-7f43be070000 rw-p 0003e000 08:14 1179706 /lib/libdbus-1.so.3.4.0 7f43be070000-7f43be0af000 r-xp 00000000 08:14 2231759 /usr/lib/libibus.so.1.0.0 7f43be0af000-7f43be2af000 ---p 0003f000 08:14 2231759 /usr/lib/libibus.so.1.0.0 7f43be2af000-7f43be2b1000 r--p 0003f000 08:14 2231759 /usr/lib/libibus.so.1.0.0 7f43be2b1000-7f43be2b2000 rw-p 00041000 08:14 2231759 /usr/lib/libibus.so.1.0.0 7f43be2b2000-7f43be2b3000 rw-p 00000000 00:00 0 7f43be2da000-7f43be2df000 r-xp 00000000 08:14 2235709 /usr/lib/gtk-2.0/2.10.0/immodules/im-ibus.so 7f43be2df000-7f43be4df000 ---p 00005000 08:14 2235709 /usr/lib/gtk-2.0/2.10.0/immodules/im-ibus.so 7f43be4df000-7f43be4e0000 r--p 00005000 08:14 2235709 /usr/lib/gtk-2.0/2.10.0/immodules/im-ibus.so 7f43be4e0000-7f43be4e1000 rw-p 00006000 08:14 2235709 /usr/lib/gtk-2.0/2.10.0/immodules/im-ibus.so 7f43be4e1000-7f43be541000 rw-s 00000000 00:04 59506799 /SYSV00000000 (deleted) 7f43be541000-7f43be5a1000 rw-s 00000000 00:04 59473984 /SYSV00000000 (deleted) 7f43be5a1000-7f43be5a6000 r-xp 00000000 08:14 2230812 /usr/lib/gtk-2.0/2.10.0/loaders/libpixbufloader-png.so 7f43be5a6000-7f43be7a5000 ---p 00005000 08:14 2230812 /usr/lib/gtk-2.0/2.10.0/loaders/libpixbufloader-png.so 7f43be7a5000-7f43be7a6000 r--p 00004000 08:14 2230812 /usr/lib/gtk-2.0/2.10.0/loaders/libpixbufloader-png.so 7f43be7a6000-7f43be7a7000 rw-p 00005000 08:14 2230812 /usr/lib/gtk-2.0/2.10.0/loaders/libpixbufloader-png.so 7f43be7a7000-7f43bf370000 r--p 00000000 08:14 2490763 /usr/share/icons/hicolor/icon-theme.cache 7f43bf370000-7f43bfa5b000 r--p 00000000 08:14 2521059 /usr/share/icons/gnome/icon-theme.cache 7f43bfa5b000-7f43c074f000 r--p 00000000 08:13 655674 /home/user/.icons/Neu/icon-theme.cache 7f43c074f000-7f43c0751000 r-xp 00000000 08:14 2361856 /usr/lib/pango/1.6.0/modules/pango-basic-fc.so 7f43c0751000-7f43c0950000 ---p 00002000 08:14 2361856 /usr/lib/pango/1.6.0/modules/pango-basic-fc.so 7f43c0950000-7f43c0951000 r--p 00001000 08:14 2361856 /usr/lib/pango/1.6.0/modules/pango-basic-fc.so 7f43c0951000-7f43c0952000 rw-p 00002000 08:14 2361856 /usr/lib/pango/1.6.0/modules/pango-basic-fc.so 7f43c0952000-7f43c09ea000 r--p 00000000 08:14 2391733 /usr/share/fonts/truetype/ttf-dejavu/DejaVuSans.ttf 7f43c09ea000-7f43c0a12000 r-xp 00000000 08:14 2235698 /usr/lib/gtk-2.0/2.10.0/engines/libmurrine.so 7f43c0a12000-7f43c0c11000 ---p 00028000 08:14 2235698 /usr/lib/gtk-2.0/2.10.0/engines/libmurrine.so 7f43c0c11000-7f43c0c12000 r--p 00027000 08:14 2235698 /usr/lib/gtk-2.0/2.10.0/engines/libmurrine.so 7f43c0c12000-7f43c0c13000 rw-p 00028000 08:14 2235698 /usr/lib/gtk-2.0/2.10.0/engines/libmurrine.so 7f43c0c13000-7f43c0c1b000 r-xp 00000000 08:14 2231844 /usr/lib/libltdl.so.7.2.1 7f43c0c1b000-7f43c0e1b000 ---p 00008000 08:14 2231844 /usr/lib/libltdl.so.7.2.1 7f43c0e1b000-7f43c0e1c000 r--p 00008000 08:14 2231844 /usr/lib/libltdl.so.7.2.1 7f43c0e1c000-7f43c0e1d000 rw-p 00009000 08:14 2231844 /usr/lib/libltdl.so.7.2.1 7f43c0e1d000-7f43c0e2b000 r-xp 00000000 08:14 2232117 /usr/lib/libtdb.so.1.2.0 7f43c0e2b000-7f43c102a000 ---p 0000e000 08:14 2232117 /usr/lib/libtdb.so.1.2.0 7f43c102a000-7f43c102b000 r--p 0000d000 08:14 2232117 /usr/lib/libtdb.so.1.2.0 7f43c102b000-7f43c102c000 rw-p 0000e000 08:14 2232117 /usr/lib/libtdb.so.1.2.0 7f43c102c000-7f43c1032000 r-xp 00000000 08:14 2231927 /usr/lib/libogg.so.0.6.0 7f43c1032000-7f43c1231000 ---p 00006000 08:14 2231927 /usr/lib/libogg.so.0.6.0 7f43c1231000-7f43c1232000 r--p 00005000 08:14 2231927 /usr/lib/libogg.so.0.6.0 7f43c1232000-7f43c1233000 rw-p 00006000 08:14 2231927 /usr/lib/libogg.so.0.6.0 7f43c1233000-7f43c125f000 r-xp 00000000 08:14 2232170 /usr/lib/libvorbis.so.0.4.3 7f43c125f000-7f43c145e000 ---p 0002c000 08:14 2232170 /usr/lib/libvorbis.so.0.4.3 7f43c145e000-7f43c145f000 r--p 0002b000 08:14 2232170 /usr/lib/libvorbis.so.0.4.3 7f43c145f000-7f43c1460000 rw-p 0002c000 08:14 2232170 /usr/lib/libvorbis.so.0.4.3 7f43c1460000-7f43c1467000 r-xp 00000000 08:14 2232174 /usr/lib/libvorbisfile.so.3.3.2 7f43c1467000-7f43c1666000 ---p 00007000 08:14 2232174 /usr/lib/libvorbisfile.so.3.3.2 7f43c1666000-7f43c1667000 r--p 00006000 08:14 2232174 /usr/lib/libvorbisfile.so.3.3.2 7f43c1667000-7f43c1668000 rw-p 00007000 08:14 2232174 /usr/lib/libvorbisfile.so.3.3.2 7f43c1668000-7f43c1677000 r-xp 00000000 08:14 2231342 /usr/lib/libcanberra.so.0.2.1 7f43c1677000-7f43c1876000 ---p 0000f000 08:14 2231342 /usr/lib/libcanberra.so.0.2.1 7f43c1876000-7f43c1877000 r--p 0000e000 08:14 2231342 /usr/lib/libcanberra.so.0.2.1 7f43c1877000-7f43c1878000 rw-p 0000f000 08:14 2231342 /usr/lib/libcanberra.so.0.2.1 7f43c1878000-7f43c187c000 r-xp 00000000 08:14 2231340 /usr/lib/libcanberra-gtk.so.0.1.5 7f43c187c000-7f43c1a7b000 ---p 00004000 08:14 2231340 /usr/lib/libcanberra-gtk.so.0.1.5 7f43c1a7b000-7f43c1a7c000 r--p 00003000 08:14 2231340 /usr/lib/libcanberra-gtk.so.0.1.5 7f43c1a7c000-7f43c1a7d000 rw-p 00004000 08:14 2231340 /usr/lib/libcanberra-gtk.so.0.1.5 7f43c1a7d000-7f43c1a82000 r-xp 00000000 08:14 2235746 /usr/lib/gtk-2.0/modules/libcanberra-gtk-module.so 7f43c1a82000-7f43c1c81000 ---p 00005000 08:14 2235746 /usr/lib/gtk-2.0/modules/libcanberra-gtk-module.so 7f43c1c81000-7f43c1c82000 r--p 00004000 08:14 2235746 /usr/lib/gtk-2.0/modules/libcanberra-gtk-module.so 7f43c1c82000-7f43c1c83000 rw-p 00005000 08:14 2235746 /usr/lib/gtk-2.0/modules/libcanberra-gtk-module.so 7f43c1c83000-7f43c1da1000 r--p 00000000 08:14 2239899 /usr/lib/locale/en_US.utf8/LC_COLLATE 7f43c1da1000-7f43c1dac000 r-xp 00000000 08:14 3170423 /usr/local/lib/gambas2/gb.eval.so.0.0.0 7f43c1dac000-7f43c1fab000 ---p 0000b000 08:14 3170423 /usr/local/lib/gambas2/gb.eval.so.0.0.0 7f43c1fab000-7f43c1fac000 r--p 0000a000 08:14 3170423 /usr/local/lib/gambas2/gb.eval.so.0.0.0 7f43c1fac000-7f43c1faf000 rw-p 0000b000 08:14 3170423 /usr/local/lib/gambas2/gb.eval.so.0.0.0 7f43c1faf000-7f43c1fb0000 rw-p 00000000 00:00 0 7f43c1fb0000-7f43c1fb5000 r-xp 00000000 08:14 3170413 /usr/local/lib/gambas2/gb.draw.so.0.0.0 7f43c1fb5000-7f43c21b4000 ---p 00005000 08:14 3170413 /usr/local/lib/gambas2/gb.draw.so.0.0.0 7f43c21b4000-7f43c21b5000 r--p 00004000 08:14 3170413 /usr/local/lib/gambas2/gb.draw.so.0.0.0 7f43c21b5000-7f43c21b6000 rw-p 00005000 08:14 3170413 /usr/local/lib/gambas2/gb.draw.so.0.0.0 7f43c21b6000-7f43c21b7000 rw-p 00000000 00:00 0 7f43c21b7000-7f43c21be000 r-xp 00000000 08:14 2232209 /usr/lib/libxcb-render.so.0.0.0 7f43c21be000-7f43c23be000 ---p 00007000 08:14 2232209 /usr/lib/libxcb-render.so.0.0.0 7f43c23be000-7f43c23bf000 r--p 00007000 08:14 2232209 /usr/lib/libxcb-render.so.0.0.0 7f43c23bf000-7f43c23c0000 rw-p 00008000 08:14 2232209 /usr/lib/libxcb-render.so.0.0.0 7f43c23c0000-7f43c23c3000 r-xp 00000000 08:14 2232207 /usr/lib/libxcb-render-util.so.0.0.0 7f43c23c3000-7f43c25c2000 ---p 00003000 08:14 2232207 /usr/lib/libxcb-render-util.so.0.0.0 7f43c25c2000-7f43c25c3000 r--p 00002000 08:14 2232207 /usr/lib/libxcb-render-util.so.0.0.0 7f43c25c3000-7f43c25c4000 rw-p 00003000 08:14 2232207 /usr/lib/libxcb-render-util.so.0.0.0 7f43c25c4000-7f43c25db000 r-xp 00000000 08:14 2231428 /usr/lib/libdirect-1.2.so.0.8.0 7f43c25db000-7f43c27da000 ---p 00017000 08:14 2231428 /usr/lib/libdirect-1.2.so.0.8.0 7f43c27da000-7f43c27db000 r--p 00016000 08:14 2231428 /usr/lib/libdirect-1.2.so.0.8.0 7f43c27db000-7f43c27dc000 rw-p 00017000 08:14 2231428 /usr/lib/libdirect-1.2.so.0.8.0 7f43c27dc000-7f43c27dd000 rw-p 00000000 00:00 0 7f43c27dd000-7f43c27e6000 r-xp 00000000 08:14 2231505 /usr/lib/libfusion-1.2.so.0.8.0 7f43c27e6000-7f43c29e5000 ---p 00009000 08:14 2231505 /usr/lib/libfusion-1.2.so.0.8.0 7f43c29e5000-7f43c29e6000 r--p 00008000 08:14 2231505 /usr/lib/libfusion-1.2.so.0.8.0 7f43c29e6000-7f43c29e7000 rw-p 00009000 08:14 2231505 /usr/lib/libfusion-1.2.so.0.8.0 7f43c29e7000-7f43c2a66000 r-xp 00000000 08:14 2231430 /usr/lib/libdirectfb-1.2.so.0.8.0 7f43c2a66000-7f43c2c65000 ---p 0007f000 08:14 2231430 /usr/lib/libdirectfb-1.2.so.0.8.0 7f43c2c65000-7f43c2c67000 r--p 0007e000 08:14 2231430 /usr/lib/libdirectfb-1.2.so.0.8.0 7f43c2c67000-7f43c2c69000 rw-p 00080000 08:14 2231430 /usr/lib/libdirectfb-1.2.so.0.8.0 7f43c2c69000-7f43c2c6a000 rw-p 00000000 00:00 0 7f43c2c6a000-7f43c2cbf000 r-xp 00000000 08:14 2231974 /usr/lib/libpixman-1.so.0.16.4 7f43c2cbf000-7f43c2ebf000 ---p 00055000 08:14 2231974 /usr/lib/libpixman-1.so.0.16.4 7f43c2ebf000-7f43c2ec2000 r--p 00055000 08:14 2231974 /usr/lib/libpixman-1.so.0.16.4 7f43c2ec2000-7f43c2ec3000 rw-p 00058000 08:14 2231974 /usr/lib/libpixman-1.so.0.16.4 7f43c2ec3000-7f43c2edf000 r-xp 00000000 08:14 1179810 /lib/libselinux.so.1 7f43c2edf000-7f43c30de000 ---p 0001c000 08:14 1179810 /lib/libselinux.so.1 7f43c30de000-7f43c30df000 r--p 0001b000 08:14 1179810 /lib/libselinux.so.1 7f43c30df000-7f43c30e0000 rw-p 0001c000 08:14 1179810 /lib/libselinux.so.1 7f43c30e0000-7f43c30e1000 rw-p 00000000 00:00 0 7f43c30e1000-7f43c30f7000 r-xp 00000000 08:14 1179990 /lib/libresolv-2.11.1.so 7f43c30f7000-7f43c32f6000 ---p 00016000 08:14 1179990 /lib/libresolv-2.11.1.so 7f43c32f6000-7f43c32f7000 r--p 00015000 08:14 1179990 /lib/libresolv-2.11.1.so 7f43c32f7000-7f43c32f8000 rw-p 00016000 08:14 1179990 /lib/libresolv-2.11.1.so 7f43c32f8000-7f43c32fa000 rw-p 00000000 00:00 0 7f43c32fa000-7f43c3327000 r-xp 00000000 08:14 1179786 /lib/libpcre.so.3.12.1 7f43c3327000-7f43c3526000 ---p 0002d000 08:14 1179786 /lib/libpcre.so.3.12.1 7f43c3526000-7f43c3527000 r--p 0002c000 08:14 1179786 /lib/libpcre.so.3.12.1 7f43c3527000-7f43c3528000 rw-p 0002d000 08:14 1179786 /lib/libpcre.so.3.12.1 7f43c3528000-7f43c352a000 r-xp 00000000 08:14 2231208 /usr/lib/libXdamage.so.1.1.0 7f43c352a000-7f43c3729000 ---p 00002000 08:14 2231208 /usr/lib/libXdamage.so.1.1.0 7f43c3729000-7f43c372a000 r--p 00001000 08:14 2231208 /usr/lib/libXdamage.so.1.1.0 7f43c372a000-7f43c372b000 rw-p 00002000 08:14 2231208 /usr/lib/libXdamage.so.1.1.0 7f43c372b000-7f43c372d000 r-xp 00000000 08:14 2231204 /usr/lib/libXcomposite.so.1.0.0 7f43c372d000-7f43c392c000 ---p 00002000 08:14 2231204 /usr/lib/libXcomposite.so.1.0.0 7f43c392c000-7f43c392d000 r--p 00001000 08:14 2231204 /usr/lib/libXcomposite.so.1.0.0 7f43c392d000-7f43c392e000 rw-p 00002000 08:14 2231204 /usr/lib/libXcomposite.so.1.0.0 7f43c392e000-7f43c3a09000 r-xp 00000000 08:14 1179672 /lib/libglib-2.0.so.0.2400.1 7f43c3a09000-7f43c3c09000 ---p 000db000 08:14 1179672 /lib/libglib-2.0.so.0.2400.1 7f43c3c09000-7f43c3c0a000 r--p 000db000 08:14 1179672 /lib/libglib-2.0.so.0.2400.1 7f43c3c0a000-7f43c3c0b000 rw-p 000dc000 08:14 1179672 /lib/libglib-2.0.so.0.2400.1 7f43c3c0b000-7f43c3c0c000 rw-p 00000000 00:00 0 7f43c3c0c000-7f43c3c13000 r-xp 00000000 08:14 1179989 /lib/librt-2.11.1.so 7f43c3c13000-7f43c3e12000 ---p 00007000 08:14 1179989 /lib/librt-2.11.1.so 7f43c3e12000-7f43c3e13000 r--p 00006000 08:14 1179989 /lib/librt-2.11.1.so 7f43c3e13000-7f43c3e14000 rw-p 00007000 08:14 1179989 /lib/librt-2.11.1.so 7f43c3e14000-7f43c3e18000 r-xp 00000000 08:14 2228365 /usr/lib/libgthread-2.0.so.0.2400.1 7f43c3e18000-7f43c4017000 ---p 00004000 08:14 2228365 /usr/lib/libgthread-2.0.so.0.2400.1 7f43c4017000-7f43c4018000 r--p 00003000 08:14 2228365 /usr/lib/libgthread-2.0.so.0.2400.1 7f43c4018000-7f43c4019000 rw-p 00004000 08:14 2228365 /usr/lib/libgthread-2.0.so.0.2400.1 7f43c4019000-7f43c401c000 r-xp 00000000 08:14 2228362 /usr/lib/libgmodule-2.0.so.0.2400.1 7f43c401c000-7f43c421b000 ---p 00003000 08:14 2228362 /usr/lib/libgmodule-2.0.so.0.2400.1 7f43c421b000-7f43c421c000 r--p 00002000 08:14 2228362 /usr/lib/libgmodule-2.0.so.0.2400.1 7f43c421c000-7f43c421d000 rw-p 00003000 08:14 2228362 /usr/lib/libgmodule-2.0.so.0.2400.1 7f43c421d000-7f43c4262000 r-xp 00000000 08:14 2228361 /usr/lib/libgobject-2.0.so.0.2400.1 7f43c4262000-7f43c4462000 ---p 00045000 08:14 2228361 /usr/lib/libgobject-2.0.so.0.2400.1 7f43c4462000-7f43c4463000 r--p 00045000 08:14 2228361 /usr/lib/libgobject-2.0.so.0.2400.1 7f43c4463000-7f43c4464000 rw-p 00046000 08:14 2228361 /usr/lib/libgobject-2.0.so.0.2400.1 7f43c4464000-7f43c4465000 rw-p 00000000 00:00 0 7f43c4465000-7f43c44ac000 r-xp 00000000 08:14 2241127 /usr/lib/libpango-1.0.so.0.2800.0 7f43c44ac000-7f43c46ac000 ---p 00047000 08:14 2241127 /usr/lib/libpango-1.0.so.0.2800.0 7f43c46ac000-7f43c46ae000 r--p 00047000 08:14 2241127 /usr/lib/libpango-1.0.so.0.2800.0 7f43c46ae000-7f43c46af000 rw-p 00049000 08:14 2241127 /usr/lib/libpango-1.0.so.0.2800.0 7f43c46af000-7f43c472e000 r-xp 00000000 08:14 2231332 /usr/lib/libcairo.so.2.10800.10 7f43c472e000-7f43c492e000 ---p 0007f000 08:14 2231332 /usr/lib/libcairo.so.2.10800.10 7f43c492e000-7f43c4930000 r--p 0007f000 08:14 2231332 /usr/lib/libcairo.so.2.10800.10 7f43c4930000-7f43c4931000 rw-p 00081000 08:14 2231332 /usr/lib/libcairo.so.2.10800.10 7f43c4931000-7f43c4932000 rw-p 00000000 00:00 0 7f43c4932000-7f43c493d000 r-xp 00000000 08:14 2255295 /usr/lib/libpangocairo-1.0.so.0.2800.0 7f43c493d000-7f43c4b3d000 ---p 0000b000 08:14 2255295 /usr/lib/libpangocairo-1.0.so.0.2800.0 7f43c4b3d000-7f43c4b3e000 r--p 0000b000 08:14 2255295 /usr/lib/libpangocairo-1.0.so.0.2800.0 7f43c4b3e000-7f43c4b3f000 rw-p 0000c000 08:14 2255295 /usr/lib/libpangocairo-1.0.so.0.2800.0 7f43c4b3f000-7f43c4b5a000 r-xp 00000000 08:14 2236608 /usr/lib/libgdk_pixbuf-2.0.so.0.2000.1 7f43c4b5a000-7f43c4d59000 ---p 0001b000 08:14 2236608 /usr/lib/libgdk_pixbuf-2.0.so.0.2000.1 7f43c4d59000-7f43c4d5a000 r--p 0001a000 08:14 2236608 /usr/lib/libgdk_pixbuf-2.0.so.0.2000.1 7f43c4d5a000-7f43c4d5b000 rw-p 0001b000 08:14 2236608 /usr/lib/libgdk_pixbuf-2.0.so.0.2000.1 7f43c4d5b000-7f43c4d83000 r-xp 00000000 08:14 2255297 /usr/lib/libpangoft2-1.0.so.0.2800.0 7f43c4d83000-7f43c4f83000 ---p 00028000 08:14 2255297 /usr/lib/libpangoft2-1.0.so.0.2800.0 7f43c4f83000-7f43c4f84000 r--p 00028000 08:14 2255297 /usr/lib/libpangoft2-1.0.so.0.2800.0 7f43c4f84000-7f43c4f85000 rw-p 00029000 08:14 2255297 /usr/lib/libpangoft2-1.0.so.0.2800.0 7f43c4f85000-7f43c5034000 r-xp 00000000 08:14 2228366 /usr/lib/libgio-2.0.so.0.2400.1 7f43c5034000-7f43c5233000 ---p 000af000 08:14 2228366 /usr/lib/libgio-2.0.so.0.2400.1 7f43c5233000-7f43c5235000 r--p 000ae000 08:14 2228366 /usr/lib/libgio-2.0.so.0.2400.1 7f43c5235000-7f43c5237000 rw-p 000b0000 08:14 2228366 /usr/lib/libgio-2.0.so.0.2400.1 7f43c5237000-7f43c5238000 rw-p 00000000 00:00 0 7f43c5238000-7f43c5256000 r-xp 00000000 08:14 2228741 /usr/lib/libatk-1.0.so.0.3009.1 7f43c5256000-7f43c5456000 ---p 0001e000 08:14 2228741 /usr/lib/libatk-1.0.so.0.3009.1 7f43c5456000-7f43c5458000 r--p 0001e000 08:14 2228741 /usr/lib/libatk-1.0.so.0.3009.1 7f43c5458000-7f43c5459000 rw-p 00020000 08:14 2228741 /usr/lib/libatk-1.0.so.0.3009.1 7f43c5459000-7f43c5501000 r-xp 00000000 08:14 2236607 /usr/lib/libgdk-x11-2.0.so.0.2000.1 7f43c5501000-7f43c5700000 ---p 000a8000 08:14 2236607 /usr/lib/libgdk-x11-2.0.so.0.2000.1 7f43c5700000-7f43c5704000 r--p 000a7000 08:14 2236607 /usr/lib/libgdk-x11-2.0.so.0.2000.1 7f43c5704000-7f43c5706000 rw-p 000ab000 08:14 2236607 /usr/lib/libgdk-x11-2.0.so.0.2000.1 7f43c5706000-7f43c5b1b000 r-xp 00000000 08:14 2236606 /usr/lib/libgtk-x11-2.0.so.0.2000.1 7f43c5b1b000-7f43c5d1b000 ---p 00415000 08:14 2236606 /usr/lib/libgtk-x11-2.0.so.0.2000.1 7f43c5d1b000-7f43c5d22000 r--p 00415000 08:14 2236606 /usr/lib/libgtk-x11-2.0.so.0.2000.1 7f43c5d22000-7f43c5d26000 rw-p 0041c000 08:14 2236606 /usr/lib/libgtk-x11-2.0.so.0.2000.1 7f43c5d26000-7f43c5d28000 rw-p 00000000 00:00 0 7f43c5d28000-7f43c5db6000 r-xp 00000000 08:14 3170371 /usr/local/lib/gambas2/gb.gtk.so.0.0.0 7f43c5db6000-7f43c5fb6000 ---p 0008e000 08:14 3170371 /usr/local/lib/gambas2/gb.gtk.so.0.0.0 7f43c5fb6000-7f43c5fba000 r--p 0008e000 08:14 3170371 /usr/local/lib/gambas2/gb.gtk.so.0.0.0 7f43c5fba000-7f43c5fd1000 rw-p 00092000 08:14 3170371 /usr/local/lib/gambas2/gb.gtk.so.0.0.0 7f43c5fd1000-7f43c5fd2000 rw-p 00000000 00:00 0 7f43c5fd2000-7f43c5fd3000 r-xp 00000000 08:14 3170315 /usr/local/lib/gambas2/gb.gui.so.0.0.0 7f43c5fd3000-7f43c61d2000 ---p 00001000 08:14 3170315 /usr/local/lib/gambas2/gb.gui.so.0.0.0 7f43c61d2000-7f43c61d3000 r--p 00000000 08:14 3170315 /usr/local/lib/gambas2/gb.gui.so.0.0.0 7f43c61d3000-7f43c61d4000 rw-p 00001000 08:14 3170315 /usr/local/lib/gambas2/gb.gui.so.0.0.0 7f43c61d4000-7f43c61d9000 r-xp 00000000 08:14 3170308 /usr/local/lib/gambas2/gb.debug.so.0.0.0 7f43c61d9000-7f43c63d8000 ---p 00005000 08:14 3170308 /usr/local/lib/gambas2/gb.debug.so.0.0.0 7f43c63d8000-7f43c63d9000 r--p 00004000 08:14 3170308 /usr/local/lib/gambas2/gb.debug.so.0.0.0 7f43c63d9000-7f43c63da000 rw-p 00005000 08:14 3170308 /usr/local/lib/gambas2/gb.debug.so.0.0.0 7f43c63da000-7f43c63e6000 r-xp 00000000 08:14 1180007 /lib/libnss_files-2.11.1.so 7f43c63e6000-7f43c65e5000 ---p 0000c000 08:14 1180007 /lib/libnss_files-2.11.1.so 7f43c65e5000-7f43c65e6000 r--p 0000b000 08:14 1180007 /lib/libnss_files-2.11.1.so 7f43c65e6000-7f43c65e7000 rw-p 0000c000 08:14 1180007 /lib/libnss_files-2.11.1.so 7f43c65e7000-7f43c65f1000 r-xp 00000000 08:14 1179995 /lib/libnss_nis-2.11.1.so 7f43c65f1000-7f43c67f0000 ---p 0000a000 08:14 1179995 /lib/libnss_nis-2.11.1.so 7f43c67f0000-7f43c67f1000 r--p 00009000 08:14 1179995 /lib/libnss_nis-2.11.1.so 7f43c67f1000-7f43c67f2000 rw-p 0000a000 08:14 1179995 /lib/libnss_nis-2.11.1.so 7f43c67f2000-7f43c6809000 r-xp 00000000 08:14 1179984 /lib/libnsl-2.11.1.so 7f43c6809000-7f43c6a08000 ---p 00017000 08:14 1179984 /lib/libnsl-2.11.1.so 7f43c6a08000-7f43c6a09000 r--p 00016000 08:14 1179984 /lib/libnsl-2.11.1.so 7f43c6a09000-7f43c6a0a000 rw-p 00017000 08:14 1179984 /lib/libnsl-2.11.1.so 7f43c6a0a000-7f43c6a0c000 rw-p 00000000 00:00 0 7f43c6a0c000-7f43c6a14000 r-xp 00000000 08:14 1179994 /lib/libnss_compat-2.11.1.so 7f43c6a14000-7f43c6c13000 ---p 00008000 08:14 1179994 /lib/libnss_compat-2.11.1.so 7f43c6c13000-7f43c6c14000 r--p 00007000 08:14 1179994 /lib/libnss_compat-2.11.1.so 7f43c6c14000-7f43c6c15000 rw-p 00008000 08:14 1179994 /lib/libnss_compat-2.11.1.so 7f43c6c15000-7f43c6c1a000 r-xp 00000000 08:14 2231210 /usr/lib/libXdmcp.so.6.0.0 7f43c6c1a000-7f43c6e19000 ---p 00005000 08:14 2231210 /usr/lib/libXdmcp.so.6.0.0 7f43c6e19000-7f43c6e1a000 r--p 00004000 08:14 2231210 /usr/lib/libXdmcp.so.6.0.0 7f43c6e1a000-7f43c6e1b000 rw-p 00005000 08:14 2231210 /usr/lib/libXdmcp.so.6.0.0 7f43c6e1b000-7f43c6e1f000 r-xp 00000000 08:14 1179836 /lib/libuuid.so.1.3.0 7f43c6e1f000-7f43c701e000 ---p 00004000 08:14 1179836 /lib/libuuid.so.1.3.0 7f43c701e000-7f43c701f000 r--p 00003000 08:14 1179836 /lib/libuuid.so.1.3.0 7f43c701f000-7f43c7020000 rw-p 00004000 08:14 1179836 /lib/libuuid.so.1.3.0 7f43c7020000-7f43c703b000 r-xp 00000000 08:14 2232211 /usr/lib/libxcb.so.1.1.0 7f43c703b000-7f43c723a000 ---p 0001b000 08:14 2232211 /usr/lib/libxcb.so.1.1.0 7f43c723a000-7f43c723b000 r--p 0001a000 08:14 2232211 /usr/lib/libxcb.so.1.1.0 7f43c723b000-7f43c723c000 rw-p 0001b000 08:14 2232211 /usr/lib/libxcb.so.1.1.0 7f43c723c000-7f43c7241000 r-xp 00000000 08:14 2231214 /usr/lib/libXfixes.so.3.1.0 7f43c7241000-7f43c7440000 ---p 00005000 08:14 2231214 /usr/lib/libXfixes.so.3.1.0 7f43c7440000-7f43c7441000 r--p 00004000 08:14 2231214 /usr/lib/libXfixes.so.3.1.0 7f43c7441000-7f43c7442000 rw-p 00005000 08:14 2231214 /usr/lib/libXfixes.so.3.1.0 7f43c7442000-7f43c7444000 r-xp 00000000 08:14 2231199 /usr/lib/libXau.so.6.0.0 7f43c7444000-7f43c7644000 ---p 00002000 08:14 2231199 /usr/lib/libXau.so.6.0.0 7f43c7644000-7f43c7645000 r--p 00002000 08:14 2231199 /usr/lib/libXau.so.6.0.0 7f43c7645000-7f43c7646000 rw-p 00003000 08:14 2231199 /usr/lib/libXau.so.6.0.0 7f43c7646000-7f43c766c000 r-xp 00000000 08:14 1179721 /lib/libexpat.so.1.5.2 7f43c766c000-7f43c786c000 ---p 00026000 08:14 1179721 /lib/libexpat.so.1.5.2 7f43c786c000-7f43c786e000 r--p 00026000 08:14 1179721 /lib/libexpat.so.1.5.2 7f43c786e000-7f43c786f000 rw-p 00028000 08:14 1179721 /lib/libexpat.so.1.5.2 7f43c786f000-7f43c7885000 r-xp 00000000 08:14 1179728 /lib/libgcc_s.so.1 7f43c7885000-7f43c7a84000 ---p 00016000 08:14 1179728 /lib/libgcc_s.so.1 7f43c7a84000-7f43c7a85000 r--p 00015000 08:14 1179728 /lib/libgcc_s.so.1 7f43c7a85000-7f43c7a86000 rw-p 00016000 08:14 1179728 /lib/libgcc_s.so.1 7f43c7a86000-7f43c7b7c000 r-xp 00000000 08:14 2232108 /usr/lib/libstdc++.so.6.0.13 7f43c7b7c000-7f43c7d7c000 ---p 000f6000 08:14 2232108 /usr/lib/libstdc++.so.6.0.13 7f43c7d7c000-7f43c7d83000 r--p 000f6000 08:14 2232108 /usr/lib/libstdc++.so.6.0.13 7f43c7d83000-7f43c7d85000 rw-p 000fd000 08:14 2232108 /usr/lib/libstdc++.so.6.0.13 7f43c7d85000-7f43c7d9a000 rw-p 00000000 00:00 0 7f43c7d9a000-7f43c7db1000 r-xp 00000000 08:14 2231164 /usr/lib/libICE.so.6.3.0 7f43c7db1000-7f43c7fb0000 ---p 00017000 08:14 2231164 /usr/lib/libICE.so.6.3.0 7f43c7fb0000-7f43c7fb1000 r--p 00016000 08:14 2231164 /usr/lib/libICE.so.6.3.0 7f43c7fb1000-7f43c7fb2000 rw-p 00017000 08:14 2231164 /usr/lib/libICE.so.6.3.0 7f43c7fb2000-7f43c7fb5000 rw-p 00000000 00:00 0 7f43c7fb5000-7f43c7fbd000 r-xp 00000000 08:14 2231193 /usr/lib/libSM.so.6.0.1 7f43c7fbd000-7f43c81bc000 ---p 00008000 08:14 2231193 /usr/lib/libSM.so.6.0.1 7f43c81bc000-7f43c81bd000 r--p 00007000 08:14 2231193 /usr/lib/libSM.so.6.0.1 7f43c81bd000-7f43c81be000 rw-p 00008000 08:14 2231193 /usr/lib/libSM.so.6.0.1 7f43c81be000-7f43c82ef000 r-xp 00000000 08:14 2231195 /usr/lib/libX11.so.6.3.0 7f43c82ef000-7f43c84ef000 ---p 00131000 08:14 2231195 /usr/lib/libX11.so.6.3.0 7f43c84ef000-7f43c84f0000 r--p 00131000 08:14 2231195 /usr/lib/libX11.so.6.3.0 7f43c84f0000-7f43c84f4000 rw-p 00132000 08:14 2231195 /usr/lib/libX11.so.6.3.0 7f43c84f4000-7f43c8505000 r-xp 00000000 08:14 2231212 /usr/lib/libXext.so.6.4.0 7f43c8505000-7f43c8704000 ---p 00011000 08:14 2231212 /usr/lib/libXext.so.6.4.0 7f43c8704000-7f43c8705000 r--p 00010000 08:14 2231212 /usr/lib/libXext.so.6.4.0 7f43c8705000-7f43c8706000 rw-p 00011000 08:14 2231212 /usr/lib/libXext.so.6.4.0 7f43c8706000-7f43c8786000 r-xp 00000000 08:14 2235539 /usr/lib/libfreetype.so.6.3.22 7f43c8786000-7f43c8986000 ---p 00080000 08:14 2235539 /usr/lib/libfreetype.so.6.3.22 7f43c8986000-7f43c898b000 r--p 00080000 08:14 2235539 /usr/lib/libfreetype.so.6.3.22 7f43c898b000-7f43c898c000 rw-p 00085000 08:14 2235539 /usr/lib/libfreetype.so.6.3.22 7f43c898c000-7f43c89a0000 r-xp 00000000 08:14 2231218 /usr/lib/libXft.so.2.1.13 7f43c89a0000-7f43c8b9f000 ---p 00014000 08:14 2231218 /usr/lib/libXft.so.2.1.13 7f43c8b9f000-7f43c8ba0000 r--p 00013000 08:14 2231218 /usr/lib/libXft.so.2.1.13 7f43c8ba0000-7f43c8ba1000 rw-p 00014000 08:14 2231218 /usr/lib/libXft.so.2.1.13 7f43c8ba1000-7f43c8ba3000 r-xp 00000000 08:14 2231222 /usr/lib/libXinerama.so.1.0.0 7f43c8ba3000-7f43c8da2000 ---p 00002000 08:14 2231222 /usr/lib/libXinerama.so.1.0.0 7f43c8da2000-7f43c8da3000 r--p 00001000 08:14 2231222 /usr/lib/libXinerama.so.1.0.0 7f43c8da3000-7f43c8da4000 rw-p 00002000 08:14 2231222 /usr/lib/libXinerama.so.1.0.0 7f43c8da4000-7f43c8dad000 r-xp 00000000 08:14 2231206 /usr/lib/libXcursor.so.1.0.2 7f43c8dad000-7f43c8fac000 ---p 00009000 08:14 2231206 /usr/lib/libXcursor.so.1.0.2 7f43c8fac000-7f43c8fad000 r--p 00008000 08:14 2231206 /usr/lib/libXcursor.so.1.0.2 7f43c8fad000-7f43c8fae000 rw-p 00009000 08:14 2231206 /usr/lib/libXcursor.so.1.0.2 7f43c8fae000-7f43c8fb6000 r-xp 00000000 08:14 2231232 /usr/lib/libXrandr.so.2.2.0 7f43c8fb6000-7f43c91b5000 ---p 00008000 08:14 2231232 /usr/lib/libXrandr.so.2.2.0 7f43c91b5000-7f43c91b6000 r--p 00007000 08:14 2231232 /usr/lib/libXrandr.so.2.2.0 7f43c91b6000-7f43c91b7000 rw-p 00008000 08:14 2231232 /usr/lib/libXrandr.so.2.2.0 7f43c91b7000-7f43c91c0000 r-xp 00000000 08:14 2231234 /usr/lib/libXrender.so.1.3.0 7f43c91c0000-7f43c93bf000 ---p 00009000 08:14 2231234 /usr/lib/libXrender.so.1.3.0 7f43c93bf000-7f43c93c0000 r--p 00008000 08:14 2231234 /usr/lib/libXrender.so.1.3.0 7f43c93c0000-7f43c93c1000 rw-p 00009000 08:14 2231234 /usr/lib/libXrender.so.1.3.0 7f43c93c1000-7f43c93d0000 r-xp 00000000 08:14 2231220 /usr/lib/libXi.so.6.1.0 7f43c93d0000-7f43c95cf000 ---p 0000f000 08:14 2231220 /usr/lib/libXi.so.6.1.0 7f43c95cf000-7f43c95d0000 r--p 0000e000 08:14 2231220 /usr/lib/libXi.so.6.1.0 7f43c95d0000-7f43c95d1000 rw-p 0000f000 08:14 2231220 /usr/lib/libXi.so.6.1.0 7f43c95d1000-7f43c95e7000 r-xp 00000000 08:14 1179843 /lib/libz.so.1.2.3.3 7f43c95e7000-7f43c97e6000 ---p 00016000 08:14 1179843 /lib/libz.so.1.2.3.3 7f43c97e6000-7f43c97e7000 r--p 00015000 08:14 1179843 /lib/libz.so.1.2.3.3 7f43c97e7000-7f43c97e8000 rw-p 00016000 08:14 1179843 /lib/libz.so.1.2.3.3 7f43c97e8000-7f43c980d000 r-xp 00000000 08:14 1179780 /lib/libpng12.so.0.42.0 7f43c980d000-7f43c9a0d000 ---p 00025000 08:14 1179780 /lib/libpng12.so.0.42.0 7f43c9a0d000-7f43c9a0e000 r--p 00025000 08:14 1179780 /lib/libpng12.so.0.42.0 7f43c9a0e000-7f43c9a0f000 rw-p 00026000 08:14 1179780 /lib/libpng12.so.0.42.0 7f43c9a0f000-7f43c9a32000 r-xp 00000000 08:14 2231812 /usr/lib/libjpeg.so.62.0.0 7f43c9a32000-7f43c9c31000 ---p 00023000 08:14 2231812 /usr/lib/libjpeg.so.62.0.0 7f43c9c31000-7f43c9c32000 r--p 00022000 08:14 2231812 /usr/lib/libjpeg.so.62.0.0 7f43c9c32000-7f43c9c33000 rw-p 00023000 08:14 2231812 /usr/lib/libjpeg.so.62.0.0 7f43c9c33000-7f43c9c91000 r-xp 00000000 08:14 2231238 /usr/lib/libXt.so.6.0.0 7f43c9c91000-7f43c9e91000 ---p 0005e000 08:14 2231238 /usr/lib/libXt.so.6.0.0 7f43c9e91000-7f43c9e92000 r--p 0005e000 08:14 2231238 /usr/lib/libXt.so.6.0.0 7f43c9e92000-7f43c9e97000 rw-p 0005f000 08:14 2231238 /usr/lib/libXt.so.6.0.0 7f43c9e97000-7f43c9e98000 rw-p 00000000 00:00 0 7f43c9e98000-7f43c9eb0000 r-xp 00000000 08:14 2230323 /usr/lib/libaudio.so.2.4 7f43c9eb0000-7f43ca0af000 ---p 00018000 08:14 2230323 /usr/lib/libaudio.so.2.4 7f43ca0af000-7f43ca0b0000 r--p 00017000 08:14 2230323 /usr/lib/libaudio.so.2.4 7f43ca0b0000-7f43ca0b1000 rw-p 00018000 08:14 2230323 /usr/lib/libaudio.so.2.4 7f43ca0b1000-7f43ca0e4000 r-xp 00000000 08:14 2231493 /usr/lib/libfontconfig.so.1.4.4 7f43ca0e4000-7f43ca2e4000 ---p 00033000 08:14 2231493 /usr/lib/libfontconfig.so.1.4.4 7f43ca2e4000-7f43ca2e5000 r--p 00033000 08:14 2231493 /usr/lib/libfontconfig.so.1.4.4 7f43ca2e5000-7f43ca2e6000 rw-p 00034000 08:14 2231493 /usr/lib/libfontconfig.so.1.4.4 7f43ca2e6000-7f43ca460000 r-xp 00000000 08:14 1180003 /lib/libc-2.11.1.so 7f43ca460000-7f43ca65f000 ---p 0017a000 08:14 1180003 /lib/libc-2.11.1.so 7f43ca65f000-7f43ca663000 r--p 00179000 08:14 1180003 /lib/libc-2.11.1.so 7f43ca663000-7f43ca664000 rw-p 0017d000 08:14 1180003 /lib/libc-2.11.1.so 7f43ca664000-7f43ca669000 rw-p 00000000 00:00 0 7f43ca669000-7f43ca670000 r-xp 00000000 08:14 2231491 /usr/lib/libffi.so.5.0.10 7f43ca670000-7f43ca86f000 ---p 00007000 08:14 2231491 /usr/lib/libffi.so.5.0.10 7f43ca86f000-7f43ca870000 r--p 00006000 08:14 2231491 /usr/lib/libffi.so.5.0.10 7f43ca870000-7f43ca871000 rw-p 00007000 08:14 2231491 /usr/lib/libffi.so.5.0.10 7f43ca871000-7f43ca889000 r-xp 00000000 08:14 1180001 /lib/libpthread-2.11.1.so 7f43ca889000-7f43caa88000 ---p 00018000 08:14 1180001 /lib/libpthread-2.11.1.so 7f43caa88000-7f43caa89000 r--p 00017000 08:14 1180001 /lib/libpthread-2.11.1.so 7f43caa89000-7f43caa8a000 rw-p 00018000 08:14 1180001 /lib/libpthread-2.11.1.so 7f43caa8a000-7f43caa8e000 rw-p 00000000 00:00 0 7f43caa8e000-7f43caa90000 r-xp 00000000 08:14 1180008 /lib/libdl-2.11.1.so 7f43caa90000-7f43cac90000 ---p 00002000 08:14 1180008 /lib/libdl-2.11.1.so 7f43cac90000-7f43cac91000 r--p 00002000 08:14 1180008 /lib/libdl-2.11.1.so 7f43cac91000-7f43cac92000 rw-p 00003000 08:14 1180008 /lib/libdl-2.11.1.so 7f43cac92000-7f43cad14000 r-xp 00000000 08:14 1179958 /lib/libm-2.11.1.so 7f43cad14000-7f43caf13000 ---p 00082000 08:14 1179958 /lib/libm-2.11.1.so 7f43caf13000-7f43caf14000 r--p 00081000 08:14 1179958 /lib/libm-2.11.1.so 7f43caf14000-7f43caf15000 rw-p 00082000 08:14 1179958 /lib/libm-2.11.1.so 7f43caf15000-7f43cb71d000 r-xp 00000000 08:14 2236420 /usr/lib/libqt-mt.so.3.3.8 7f43cb71d000-7f43cb91c000 ---p 00808000 08:14 2236420 /usr/lib/libqt-mt.so.3.3.8 7f43cb91c000-7f43cb989000 r--p 00807000 08:14 2236420 /usr/lib/libqt-mt.so.3.3.8 7f43cb989000-7f43cb999000 rw-p 00874000 08:14 2236420 /usr/lib/libqt-mt.so.3.3.8 7f43cb999000-7f43cb99f000 rw-p 00000000 00:00 0 7f43cb99f000-7f43cb9bf000 r-xp 00000000 08:14 1179985 /lib/ld-2.11.1.so 7f43cb9c8000-7f43cb9c9000 r--s 00000000 08:14 2629727 /var/cache/fontconfig/26de28bc8622bbc1fb67fd234c21975f-le64.cache-3 7f43cb9c9000-7f43cb9ca000 r--s 00000000 08:14 2653829 /var/cache/fontconfig/c05880de57d1f5e948fdfacc138775d9-le64.cache-3 7f43cb9ca000-7f43cb9d3000 r--s 00000000 08:14 2653824 /var/cache/fontconfig/945677eb7aeaf62f1d50efc3fb3ec7d8-le64.cache-3 7f43cb9d3000-7f43cb9d5000 r--s 00000000 08:14 2622420 /var/cache/fontconfig/99e8ed0e538f840c565b6ed5dad60d56-le64.cache-3 7f43cb9d5000-7f43cb9d8000 r--s 00000000 08:14 2622441 /var/cache/fontconfig/e383d7ea5fbe662a33d9b44caf393297-le64.cache-3 7f43cb9d8000-7f43cb9d9000 r--s 00000000 08:14 2653843 /var/cache/fontconfig/e7071f4a29fa870f4323321c154eba04-le64.cache-3 7f43cb9d9000-7f43cb9de000 r--s 00000000 08:14 2654687 /var/cache/fontconfig/921a30a17f0be15c70ac14043cb7a739-le64.cache-3 7f43cb9de000-7f43cb9e2000 r--s 00000000 08:14 2653818 /var/cache/fontconfig/6eb3985aa4124903f6ff08ba781cd364-le64.cache-3 7f43cb9e2000-7f43cb9e3000 r--s 00000000 08:14 2653810 /var/cache/fontconfig/4c73fe0c47614734b17d736dbde7580a-le64.cache-3 7f43cb9e3000-7f43cb9e4000 r--s 00000000 08:14 2653802 /var/cache/fontconfig/0d8c3b2ac0904cb8a57a757ad11a4a08-le64.cache-3 7f43cb9e4000-7f43cb9e5000 r--s 00000000 08:14 2653816 /var/cache/fontconfig/6a53c69dea097a2d716e069445527da8-le64.cache-3 7f43cb9e5000-7f43cb9eb000 r--s 00000000 08:14 2653828 /var/cache/fontconfig/a755afe4a08bf5b97852ceb7400b47bc-le64.cache-3 7f43cb9eb000-7f43cb9f4000 r--s 00000000 08:14 2633988 /var/cache/fontconfig/6d41288fd70b0be22e8c3a91e032eec0-le64.cache-3 7f43cb9f4000-7f43cba04000 r--s 00000000 08:14 2642813 /var/cache/fontconfig/0f34bcd4b6ee430af32735b75db7f02b-le64.cache-3 7f43cba04000-7f43cba32000 r--s 00000000 08:14 2633000 /var/cache/fontconfig/365b55f210c0a22e9a19e35191240f32-le64.cache-3 7f43cba32000-7f43cba3c000 r--s 00000000 08:14 2653835 /var/cache/fontconfig/d52a8644073d54c13679302ca1180695-le64.cache-3 7f43cba3c000-7f43cba47000 r--s 00000000 08:14 2627302 /var/cache/fontconfig/e13b20fdb08344e0e664864cc2ede53d-le64.cache-3 7f43cba47000-7f43cba86000 r--p 00000000 08:14 2237984 /usr/lib/locale/en_US.utf8/LC_CTYPE 7f43cba86000-7f43cbb86000 r--p 00000000 08:14 3170314 /usr/local/lib/gambas2/gb.form.gambas 7f43cbb86000-7f43cbb95000 rw-p 00000000 00:00 0 7f43cbb96000-7f43cbb97000 rw-p 00000000 00:00 0 7f43cbb97000-7f43cbb9a000 r--s 00000000 08:14 2622398 /var/cache/fontconfig/d60319d88cac85ba9e1a07bd06cfbb8c-le64.cache-3 7f43cbb9a000-7f43cbb9b000 r--s 00000000 08:14 2634019 /var/cache/fontconfig/4794a0821666d79190d59a36cb4f44b5-le64.cache-3 7f43cbb9b000-7f43cbb9e000 r--s 00000000 08:14 2634617 /var/cache/fontconfig/2c5ba8142dffc8bf0377700342b8ca1a-le64.cache-3 7f43cbb9e000-7f43cbb9f000 r--s 00000000 08:14 2633019 /var/cache/fontconfig/ec648e9a1aea82bddd4bd6050028158d-le64.cache-3 7f43cbb9f000-7f43cbba3000 r--s 00000000 08:14 2633013 /var/cache/fontconfig/7ef2298fde41cc6eeb7af42e48b7d293-le64.cache-3 7f43cbba3000-7f43cbba5000 r--s 00000000 08:13 686668 /home/user/.fontconfig/65615e97947156be5d60d3d2459d17f8-le64.cache-3 7f43cbba5000-7f43cbba6000 r--p 00000000 08:14 2237989 /usr/lib/locale/en_US.utf8/LC_NUMERIC 7f43cbba6000-7f43cbba7000 r--p 00000000 08:14 2232077 /usr/lib/locale/en_US.utf8/LC_TIME 7f43cbba7000-7f43cbba8000 r--p 00000000 08:14 2234328 /usr/lib/locale/en_US.utf8/LC_MONETARY 7f43cbba8000-7f43cbba9000 r--p 00000000 08:14 2235935 /usr/lib/locale/en_US.utf8/LC_MESSAGES/SYS_LC_MESSAGES 7f43cbba9000-7f43cbbaa000 r--p 00000000 08:14 2237938 /usr/lib/locale/en_US.utf8/LC_PAPER 7f43cbbaa000-7f43cbbab000 r--p 00000000 08:14 2237858 /usr/lib/locale/en_US.utf8/LC_NAME 7f43cbbab000-7f43cbbac000 r--p 00000000 08:14 2235936 /usr/lib/locale/en_US.utf8/LC_ADDRESS 7f43cbbac000-7f43cbbad000 r--p 00000000 08:14 2235937 /usr/lib/locale/en_US.utf8/LC_TELEPHONE 7f43cbbad000-7f43cbbae000 r--p 00000000 08:14 2239858 /usr/lib/locale/en_US.utf8/LC_MEASUREMENT 7f43cbbae000-7f43cbbb5000 r--s 00000000 08:14 2233563 /usr/lib/gconv/gconv-modules.cache 7f43cbbb5000-7f43cbbb6000 r--p 00000000 08:14 2235940 /usr/lib/locale/en_US.utf8/LC_IDENTIFICATION 7f43cbbb6000-7f43cbbba000 r--p 00000000 08:14 3170402 /usr/local/lib/gambas2/gb.gtk.gambas 7f43cbbba000-7f43cbbbe000 rw-p 00000000 00:00 0 7f43cbbbe000-7f43cbbbf000 r--p 0001f000 08:14 1179985 /lib/ld-2.11.1.so 7f43cbbbf000-7f43cbbc0000 rw-p 00020000 08:14 1179985 /lib/ld-2.11.1.so 7f43cbbc0000-7f43cbbc1000 rw-p 00000000 00:00 0 7fff8abdc000-7fff8abf1000 rw-p 00000000 00:00 0 [stack] 7fff8abff000-7fff8ac00000 r-xp 00000000 00:00 0 [vdso] ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0 [vsyscall] -- Regards, Demosthenes Koptsis. From gambas at ...1... Wed Dec 29 09:26:25 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Wed, 29 Dec 2010 09:26:25 +0100 Subject: [Gambas-user] TextArea issues. In-Reply-To: <1293610765.18408.1.camel@...2493...> References: <1293610765.18408.1.camel@...2493...> Message-ID: <201012290926.25417.gambas@...1...> > I made an example app with a TextArea on Ubuntu 10.04. > > When i stopped use the app suddenly i got > > *** glibc detected *** Project75: double free or corruption (!prev): > 0x00000000012fa900 *** > WARNING: CTEXTAREA_undo not yet implemented > WARNING: CTEXTAREA_undo not yet implemented > WARNING: CTEXTAREA_redo not yet implemented > WARNING: CTEXTAREA_undo not yet implemented > WARNING: CTEXTAREA_redo not yet implemented > WARNING: CTEXTAREA_undo not yet implemented > WARNING: CTEXTAREA_redo not yet implemented > WARNING: CTEXTAREA_undo not yet implemented > WARNING: CTEXTAREA_undo not yet implemented > WARNING: CTEXTAREA_undo not yet implemented > ... As usual, I need the app to fix the bug. Note that undoing is not implemented by GTK+. I cannot do anything against that! -- Beno?t Minisini From demosthenesk at ...626... Wed Dec 29 09:38:43 2010 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Wed, 29 Dec 2010 10:38:43 +0200 Subject: [Gambas-user] TextArea issues. In-Reply-To: <201012290926.25417.gambas@...1...> References: <1293610765.18408.1.camel@...2493...> <201012290926.25417.gambas@...1...> Message-ID: <1293611923.18408.4.camel@...2493...> Benoit here is the app. It is not something special it just implements the methods of a textarea. On Wed, 2010-12-29 at 09:26 +0100, Beno?t Minisini wrote: > > I made an example app with a TextArea on Ubuntu 10.04. > > > > When i stopped use the app suddenly i got > > > > *** glibc detected *** Project75: double free or corruption (!prev): > > 0x00000000012fa900 *** > > WARNING: CTEXTAREA_undo not yet implemented > > WARNING: CTEXTAREA_undo not yet implemented > > WARNING: CTEXTAREA_redo not yet implemented > > WARNING: CTEXTAREA_undo not yet implemented > > WARNING: CTEXTAREA_redo not yet implemented > > WARNING: CTEXTAREA_undo not yet implemented > > WARNING: CTEXTAREA_redo not yet implemented > > WARNING: CTEXTAREA_undo not yet implemented > > WARNING: CTEXTAREA_undo not yet implemented > > WARNING: CTEXTAREA_undo not yet implemented > > ... > > As usual, I need the app to fix the bug. > > Note that undoing is not implemented by GTK+. I cannot do anything against > that! > -- Regards, Demosthenes Koptsis. -------------- next part -------------- A non-text attachment was scrubbed... Name: Project75.tar.gz Type: application/x-compressed-tar Size: 23105 bytes Desc: not available URL: From gambas at ...1... Wed Dec 29 09:39:07 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Wed, 29 Dec 2010 09:39:07 +0100 Subject: [Gambas-user] TextArea issues. In-Reply-To: <201012290926.25417.gambas@...1...> References: <1293610765.18408.1.camel@...2493...> <201012290926.25417.gambas@...1...> Message-ID: <201012290939.07728.gambas@...1...> > > Note that undoing is not implemented by GTK+. I cannot do anything against > that! ...unless implementing it myself of course. -- Beno?t Minisini From gambas at ...1... Wed Dec 29 09:52:02 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Wed, 29 Dec 2010 09:52:02 +0100 Subject: [Gambas-user] TextArea issues. In-Reply-To: <1293611923.18408.4.camel@...2493...> References: <1293610765.18408.1.camel@...2493...> <201012290926.25417.gambas@...1...> <1293611923.18408.4.camel@...2493...> Message-ID: <201012290952.02412.gambas@...1...> > Benoit here is the app. > > It is not something special it just implements the methods of a > textarea. > What should I do to reproduce the bug? -- Beno?t Minisini From gambas at ...1... Wed Dec 29 10:06:15 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Wed, 29 Dec 2010 10:06:15 +0100 Subject: [Gambas-user] TextArea issues. In-Reply-To: <201012290952.02412.gambas@...1...> References: <1293610765.18408.1.camel@...2493...> <1293611923.18408.4.camel@...2493...> <201012290952.02412.gambas@...1...> Message-ID: <201012291006.15196.gambas@...1...> > > Benoit here is the app. > > > > It is not something special it just implements the methods of a > > textarea. > > What should I do to reproduce the bug? OK, I got it. The bug should be fixed in revision #3408 for Gambas 2 and in revision #3409 for Gambas 3. Regards, -- Beno?t Minisini From gambas at ...1... Wed Dec 29 10:07:16 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Wed, 29 Dec 2010 10:07:16 +0100 Subject: [Gambas-user] Label.Adjust In-Reply-To: <1293562388.7983.6.camel@...2493...> References: <1293551463.7606.1.camel@...2493...> <201012281659.54597.gambas@...1...> <1293562388.7983.6.camel@...2493...> Message-ID: <201012291007.16369.gambas@...1...> > On Tue, 2010-12-28 at 16:59 +0100, Beno?t Minisini wrote: > > > In wiki says > > > > > > Adjusts the Label dimensions to its contents. > > > > > > But in my tests only the height dimension is adjusted. > > > > > > The width dimension is not adjusted properly for a long text. > > > > Which GUI do you use? What is the source code? > > the code is > > ---------------- > PUBLIC SUB Form_Open() > > Label1.Text = " This is a looooooooong text, sghssgh fshsfg dfg fdg sad > gfsda asdg sdg " > Label1.Adjust > > END > > --------------- > > i use these componets, gb.form, gb.gui on ubuntu 10.04 > > see pictures for design and running mode. Please can you send the project? -- Beno?t Minisini From gambas at ...1... Wed Dec 29 10:13:11 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Wed, 29 Dec 2010 10:13:11 +0100 Subject: [Gambas-user] Gambas 2 question In-Reply-To: <4CFF2FEF.8090705@...221...> References: <20101207174420.M38235@...951...> <20101207185626.M7932@...951...> <4CFF2FEF.8090705@...221...> Message-ID: <201012291013.11992.gambas@...1...> > Am 07.12.2010 19:56, schrieb nando: > > Correct. > > > > > > ---------- Original Message ----------- > > From: Beno?t Minisini > > To: nando_f at ...951..., mailing list for gambas users > > > > Sent: Tue, 7 Dec 2010 18:52:03 +0100 > > Subject: Re: [Gambas-user] Gambas 2 question > > > >>> Benoit > >>> > >>> In my debugging, I was doing... > >>> > >>> PRINT "IN", 'at the beginning of a routine > >>> . . . > >>> . . . > >>> PRINT "OUT" 'at the end > >>> > >>> so I could track and detect flow. > >>> > >>> the first line does a \n in all cases even though it has a trailing > >>> comma. Normally, the comma didn't do a New Line. > >>> It correctly does a tab. > >>> > >>> ?? > >>> -Fernando > >> > >> You mean that a comma at the end should does like a semicolon at the > >> end: not printing a new line? > >> > >> -- > >> Beno?t Minisini > > A tab AND no new line would be most correct :-) > > Regards > > Rolf > Done in revision #3410 for Gambas 3. Regards, -- Beno?t Minisini From demosthenesk at ...626... Wed Dec 29 11:18:26 2010 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Wed, 29 Dec 2010 12:18:26 +0200 Subject: [Gambas-user] Label.Adjust In-Reply-To: <201012291007.16369.gambas@...1...> References: <1293551463.7606.1.camel@...2493...> <201012281659.54597.gambas@...1...> <1293562388.7983.6.camel@...2493...> <201012291007.16369.gambas@...1...> Message-ID: <1293617907.20116.0.camel@...2493...> Of caurse Benoit, i did it in previous email but here it is again. On Wed, 2010-12-29 at 10:07 +0100, Beno?t Minisini wrote: > > On Tue, 2010-12-28 at 16:59 +0100, Beno?t Minisini wrote: > > > > In wiki says > > > > > > > > Adjusts the Label dimensions to its contents. > > > > > > > > But in my tests only the height dimension is adjusted. > > > > > > > > The width dimension is not adjusted properly for a long text. > > > > > > Which GUI do you use? What is the source code? > > > > the code is > > > > ---------------- > > PUBLIC SUB Form_Open() > > > > Label1.Text = " This is a looooooooong text, sghssgh fshsfg dfg fdg sad > > gfsda asdg sdg " > > Label1.Adjust > > > > END > > > > --------------- > > > > i use these componets, gb.form, gb.gui on ubuntu 10.04 > > > > see pictures for design and running mode. > > Please can you send the project? > -- Regards, Demosthenes Koptsis. -------------- next part -------------- A non-text attachment was scrubbed... Name: Project75.tar.gz Type: application/x-compressed-tar Size: 23105 bytes Desc: not available URL: From gambas at ...1... Wed Dec 29 11:23:55 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Wed, 29 Dec 2010 11:23:55 +0100 Subject: [Gambas-user] Label.Adjust In-Reply-To: <1293617907.20116.0.camel@...2493...> References: <1293551463.7606.1.camel@...2493...> <201012291007.16369.gambas@...1...> <1293617907.20116.0.camel@...2493...> Message-ID: <201012291123.55300.gambas@...1...> > Of caurse Benoit, i did it in previous email but here it is again. > Sorry, but there is no call to the Adjust() method in that project... -- Beno?t Minisini From demosthenesk at ...626... Wed Dec 29 11:24:42 2010 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Wed, 29 Dec 2010 12:24:42 +0200 Subject: [Gambas-user] Label.Adjust In-Reply-To: <201012291007.16369.gambas@...1...> References: <1293551463.7606.1.camel@...2493...> <201012281659.54597.gambas@...1...> <1293562388.7983.6.camel@...2493...> <201012291007.16369.gambas@...1...> Message-ID: <1293618282.20116.3.camel@...2493...> sorry Benoit i send you wrong project here it is the corect, but it is not something special. the code is --------- PUBLIC SUB Form_Open() PRINT Label1.Height PRINT Label1.Width Label1.Text = " This is a looooooooong text, sghssgh fshsfg dfg fdg sad gfsda asdg sd" Label1.Adjust PRINT Label1.Height PRINT Label1.Width END --------- in my machine with ubuntu 10.04 i get 117 72 19 72 On Wed, 2010-12-29 at 10:07 +0100, Beno?t Minisini wrote: > > On Tue, 2010-12-28 at 16:59 +0100, Beno?t Minisini wrote: > > > > In wiki says > > > > > > > > Adjusts the Label dimensions to its contents. > > > > > > > > But in my tests only the height dimension is adjusted. > > > > > > > > The width dimension is not adjusted properly for a long text. > > > > > > Which GUI do you use? What is the source code? > > > > the code is > > > > ---------------- > > PUBLIC SUB Form_Open() > > > > Label1.Text = " This is a looooooooong text, sghssgh fshsfg dfg fdg sad > > gfsda asdg sdg " > > Label1.Adjust > > > > END > > > > --------------- > > > > i use these componets, gb.form, gb.gui on ubuntu 10.04 > > > > see pictures for design and running mode. > > Please can you send the project? > -- Regards, Demosthenes Koptsis. -------------- next part -------------- A non-text attachment was scrubbed... Name: LabelAdjust.tar.gz Type: application/x-compressed-tar Size: 8119 bytes Desc: not available URL: From demosthenesk at ...626... Wed Dec 29 11:28:24 2010 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Wed, 29 Dec 2010 12:28:24 +0200 Subject: [Gambas-user] TextArea issues. In-Reply-To: <201012290939.07728.gambas@...1...> References: <1293610765.18408.1.camel@...2493...> <201012290926.25417.gambas@...1...> <201012290939.07728.gambas@...1...> Message-ID: <1293618504.20116.6.camel@...2493...> in my case it is like this... i have a text in clipboard. i press paste i press undo i press redo voila the bug....signal 11 or may be signal 6, i am not remeber for the second, but i think i saw it. sometimes i get the long message of memory i sent already but not always. On Wed, 2010-12-29 at 09:39 +0100, Beno?t Minisini wrote: > > > > Note that undoing is not implemented by GTK+. I cannot do anything against > > that! > > ...unless implementing it myself of course. > -- Regards, Demosthenes Koptsis. From wally at ...2037... Wed Dec 29 13:34:00 2010 From: wally at ...2037... (wally) Date: Wed, 29 Dec 2010 13:34:00 +0100 Subject: [Gambas-user] time measure msec ? Message-ID: <201012291334.00320.wally@...2037...> I have some general questions to the attached code. routine A works nice. why B gives a "bad formatstring" error ? Is there a possibility to make DateDiff return msec ? Since SVN 3410 my error balloon are shown too short to read them. How can i change this ? I there a pool for example contributions ? I want to send a _draw_event example code. wally -------------- next part -------------- A non-text attachment was scrubbed... Name: timeMeasure_g3b_001-0.0.1.tar.gz Type: application/x-compressed-tar Size: 4708 bytes Desc: not available URL: From sotema at ...626... Wed Dec 29 13:36:13 2010 From: sotema at ...626... (Emanuele Sottocorno) Date: Wed, 29 Dec 2010 13:36:13 +0100 Subject: [Gambas-user] Form_KeyPress not raised on Gtk In-Reply-To: <201012290150.30026.gambas@...1...> References: <1293538527.6987.20.camel@...2516...> <201012290150.30026.gambas@...1...> Message-ID: <1293626173.8080.6.camel@...2516...> Tanks Beno?t, Yes it's better but only if there isn't others container in the form. In the case ya have a container the event still does not raise. Of course I can remove the Panel, but will be better if the component behaves equally regardless the library used in the project. See the attached project, it works fine with QT. Tanks again, Emanuele Il giorno mer, 29/12/2010 alle 01.50 +0100, Beno?t Minisini ha scritto: > > Hi to all, > > the Event Form_keyPress is'n raised with Gtk library. > > The attached project uses a function to check the CapsLock status. > > The function is called on Form_Open and should be called at > > Form_KeyPress event, such event isn't raised at all. > > No matter the initial status (Visible / Hidden) of textlabel1. > > Thanks for help. > > Emanuele > > It should be better with revision #3406. > > Regards, > -------------- next part -------------- A non-text attachment was scrubbed... Name: keypress.tar.gz Type: application/x-compressed-tar Size: 5975 bytes Desc: not available URL: From admhardsoft at ...253... Wed Dec 29 15:41:08 2010 From: admhardsoft at ...253... (admhardsoft at ...253...) Date: Wed, 29 Dec 2010 14:41:08 +0000 Subject: [Gambas-user] Linuxmint and gambas Message-ID: <929929376-1293633665-cardhu_decombobulator_blackberry.rim.net-1088509358-@...2521...> Hi friends. Can I install gambas2 y 3 for linux mint? Thanks Tomas Sent on the TELUS Mobility network with BlackBerry From wdahn at ...1000... Wed Dec 29 16:36:06 2010 From: wdahn at ...1000... (Werner) Date: Wed, 29 Dec 2010 23:36:06 +0800 Subject: [Gambas-user] Linuxmint and gambas In-Reply-To: <929929376-1293633665-cardhu_decombobulator_blackberry.rim.net-1088509358-@...2521...> References: <929929376-1293633665-cardhu_decombobulator_blackberry.rim.net-1088509358-@...2521...> Message-ID: <4D1B5566.40908@...1000...> On 29/12/10 22:41, admhardsoft at ...253... wrote: > Hi friends. > Can I install gambas2 y 3 for linux mint? > > Thanks > Tomas > You can propably proceed the same way as with Ubuntu. Regards Werner From firman.isb at ...626... Wed Dec 29 16:59:53 2010 From: firman.isb at ...626... (firman) Date: Wed, 29 Dec 2010 07:59:53 -0800 (PST) Subject: [Gambas-user] Did anyone have a script to record webcame picture in video files In-Reply-To: References: <30442622.post@...1379...> <30496252.post@...1379...> <30510255.post@...1379...> <30512324.post@...1379...> <30513973.post@...1379...> <30517734.post@...1379...> <30527087.post@...1379...> <30536752.post@...1379...> Message-ID: <30552084.post@...1379...> OK Mr. Fabien.. I have a project for make a cctv monitoring system, then i used webcam for simulation my project. When i tried to make program using gambas3, the program has working but one button could not work.. that was record button, files record can create but zero (0 bytes).. I need to record video picture from webcam 1 to 4 in avi, mpg or any other video format. So i need help for solve my problem... and now i send u again source archive that i had make from gambas3... if u or anybody have a good script or source for solving my problem, i hope... http://old.nabble.com/file/p30552084/TACAMCCTVrev2-0.0.1.tar.gz TACAMCCTVrev2-0.0.1.tar.gz Fabien Bodard-4 wrote: > > the problem is that i dn't really understand what you want to do .... > > Can you explaint exactly what you are trying ? and by what way > > > 2010/12/27 firman : >> >> ok.. i'll try to make source archieve, i really need faster for finishing >> my >> project, not just a record but i must try to make this program can open >> in >> browser too, but my close target now is a recorded... i'll send u a >> source >> archive after i reinstall my ubuntu and my gambas.. thanks.. > > > >> >> >> >> >> Fabien Bodard-4 wrote: >>> >>> ok i've success to open your tarball ... but not simply... i've need >>> to gunzip and then untar >>> >>> >>> >>> -- >>> Fabien Bodard >>> >>> ------------------------------------------------------------------------------ >>> Learn how Oracle Real Application Clusters (RAC) One Node allows >>> customers >>> to consolidate database storage, standardize their database environment, >>> and, >>> should the need arise, upgrade to a full multi-node Oracle RAC database >>> without downtime or disruption >>> http://p.sf.net/sfu/oracle-sfdevnl >>> _______________________________________________ >>> Gambas-user mailing list >>> Gambas-user at lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>> >>> >> >> -- >> View this message in context: >> http://old.nabble.com/Did-anyone-have-a-script-to-record-webcame-picture-in-video-files-tp30442622p30536752.html >> Sent from the gambas-user mailing list archive at Nabble.com. >> >> >> ------------------------------------------------------------------------------ >> Learn how Oracle Real Application Clusters (RAC) One Node allows >> customers >> to consolidate database storage, standardize their database environment, >> and, >> should the need arise, upgrade to a full multi-node Oracle RAC database >> without downtime or disruption >> http://p.sf.net/sfu/oracle-sfdevnl >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > > > -- > Fabien Bodard > > ------------------------------------------------------------------------------ > Learn how Oracle Real Application Clusters (RAC) One Node allows customers > to consolidate database storage, standardize their database environment, > and, > should the need arise, upgrade to a full multi-node Oracle RAC database > without downtime or disruption > http://p.sf.net/sfu/oracle-sfdevnl > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > -- View this message in context: http://old.nabble.com/Did-anyone-have-a-script-to-record-webcame-picture-in-video-files-tp30442622p30552084.html Sent from the gambas-user mailing list archive at Nabble.com. From admhardsoft at ...253... Wed Dec 29 16:59:27 2010 From: admhardsoft at ...253... (admhardsoft at ...253...) Date: Wed, 29 Dec 2010 15:59:27 +0000 Subject: [Gambas-user] Linuxmint and gambas In-Reply-To: <4D1B5566.40908@...1000...> References: <929929376-1293633665-cardhu_decombobulator_blackberry.rim.net-1088509358-@...2521...><4D1B5566.40908@...1000...> Message-ID: <393551260-1293638364-cardhu_decombobulator_blackberry.rim.net-583608432-@...2521...> Somebody have experience in gambaas with linux mint? Thanks Tomas Sent on the TELUS Mobility network with BlackBerry -----Original Message----- From: Werner Date: Wed, 29 Dec 2010 23:36:06 To: Reply-To: mailing list for gambas users Subject: Re: [Gambas-user] Linuxmint and gambas On 29/12/10 22:41, admhardsoft at ...253... wrote: > Hi friends. > Can I install gambas2 y 3 for linux mint? > > Thanks > Tomas > You can propably proceed the same way as with Ubuntu. Regards Werner ------------------------------------------------------------------------------ Learn how Oracle Real Application Clusters (RAC) One Node allows customers to consolidate database storage, standardize their database environment, and, should the need arise, upgrade to a full multi-node Oracle RAC database without downtime or disruption http://p.sf.net/sfu/oracle-sfdevnl _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From matteo.pasotti at ...626... Wed Dec 29 17:46:45 2010 From: matteo.pasotti at ...626... (Matteo Pasotti) Date: Wed, 29 Dec 2010 17:46:45 +0100 Subject: [Gambas-user] Linuxmint and gambas In-Reply-To: <393551260-1293638364-cardhu_decombobulator_blackberry.rim.net-583608432-@...2521...> References: <929929376-1293633665-cardhu_decombobulator_blackberry.rim.net-1088509358-@...2521...><4D1B5566.40908@...1000...> <393551260-1293638364-cardhu_decombobulator_blackberry.rim.net-583608432-@...2521...> Message-ID: <4D1B65F5.30806@...626...> Il 29/12/2010 16:59, admhardsoft at ...253... ha scritto: > Somebody have experience in gambaas with linux mint? > Thanks > Tomas As Werner said, the installation procedure is exactly the same of ubuntu. Some time ago I've used the repo from madnessmike, but if you need gambas3 the only way I know is to compile the sources (follow the instructions provided into the online gambas documentation). Gambas (2 and 3) works fine on mint. Regards, -- Matteo From kevinfishburne at ...1887... Wed Dec 29 18:18:32 2010 From: kevinfishburne at ...1887... (Kevin Fishburne) Date: Wed, 29 Dec 2010 12:18:32 -0500 Subject: [Gambas-user] Linuxmint and gambas In-Reply-To: <4D1B65F5.30806@...626...> References: <929929376-1293633665-cardhu_decombobulator_blackberry.rim.net-1088509358-@...2521...><4D1B5566.40908@...1000...> <393551260-1293638364-cardhu_decombobulator_blackberry.rim.net-583608432-@...2521...> <4D1B65F5.30806@...626...> Message-ID: <4D1B6D68.10204@...1887...> On 12/29/2010 11:46 AM, Matteo Pasotti wrote: > Il 29/12/2010 16:59, admhardsoft at ...253... ha scritto: >> Somebody have experience in gambaas with linux mint? >> Thanks >> Tomas > As Werner said, the installation procedure is exactly the same of ubuntu. > Some time ago I've used the repo from madnessmike, but if you need > gambas3 the only way I know is to compile the sources (follow the > instructions provided into the online gambas documentation). > Gambas (2 and 3) works fine on mint. > Regards, I made these scripts a while back, which work in Ubuntu 10.10 and possibly 10.04. Mint is based on Ubuntu and may even use the same repositories for packages, so you could give them a try if you like. The dependency scripts install the packages you need to compile GAMBAS, while the install scripts download, compile and install the latest revisions. Execute the dependency scripts first, install scripts second. You may re-execute the install scripts any time you want to refresh your install to the latest revision. And as always, read the scripts before executing. -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sales at ...1887... phone: (770) 853-6271 -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: gb2.x_compilation_dependencies URL: -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: gb3.x_compilation_dependencies URL: -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: install_gb2 URL: -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: install_gb3 URL: From gambas at ...1... Wed Dec 29 18:58:42 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Wed, 29 Dec 2010 18:58:42 +0100 Subject: [Gambas-user] Did anyone have a script to record webcame picture in video files In-Reply-To: <30552084.post@...1379...> References: <30442622.post@...1379...> <30552084.post@...1379...> Message-ID: <201012291858.43095.gambas@...1...> > OK Mr. Fabien.. I have a project for make a cctv monitoring system, then i > used webcam for simulation my project. When i tried to make program using > gambas3, the program has working but one button could not work.. that was > record button, files record can create but zero (0 bytes).. I need to > record video picture from webcam 1 to 4 in avi, mpg or any other video > format. So i need help for solve my problem... and now i send u again > source archive that i had make from gambas3... if u or anybody have a good > script or source for solving my problem, i hope... > http://old.nabble.com/file/p30552084/TACAMCCTVrev2-0.0.1.tar.gz > TACAMCCTVrev2-0.0.1.tar.gz > Maybe I will say something stupid, but did you google "linux how to record webcam"? Hint: the answer is the "mencoder" program. -- Beno?t Minisini From wspinto at ...1405... Wed Dec 29 19:09:05 2010 From: wspinto at ...1405... (Wellington de Souza Pinto) Date: Wed, 29 Dec 2010 16:09:05 -0200 Subject: [Gambas-user] Bug in gb2 and gb3 in float Message-ID: <1293646145.4d1b7941c64c1@...1547...> Hi! I sent isolate program to test the error. execute the program and follow this steps: 1 - Click in "Cheque" button Using the mouse click in "Valor Cheque" textbox type 20000 and press tab key The Resta show 5123,56 2 - click in button "Lan?ar" 3 - Click in "Dinheiro" button Using the mouse click in "Valor Dinheiro" textbox type 5123,56 and press key tab The error is. Resta = 5123,56 (float) mskVALOR = 5123,56 The breakpoint in 162 in debug window: ? vrresta -> show(5123,56) ? tmpvalor -> show(5123,56) ? vrresta = tmpvalor ->show(FALSE) PRESS Shift+F8 to continue to next line Again in debug windo type: ? vrResta 9,094947017729E-13 ???????????? I'm use fc13, fc14 and ubuntu 10.10 in my computer for tests. Reguards, Wellington ___________________________________________________________________________________ Para fazer uma liga??o DDD pra perto ou pra longe, faz um 21. A Embratel tem tarifas muito baratas esperando por voc?. Aproveite! -------------- next part -------------- A non-text attachment was scrubbed... Name: Calcula-0.0.2.tar.gz Type: application/x-gzip Size: 71134 bytes Desc: not available URL: From gambas at ...1... Wed Dec 29 19:25:50 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Wed, 29 Dec 2010 19:25:50 +0100 Subject: [Gambas-user] Form_KeyPress not raised on Gtk In-Reply-To: <1293626173.8080.6.camel@...2516...> References: <1293538527.6987.20.camel@...2516...> <201012290150.30026.gambas@...1...> <1293626173.8080.6.camel@...2516...> Message-ID: <201012291925.50301.gambas@...1...> > Tanks Beno?t, > Yes it's better but only if there isn't others container in the form. > In the case ya have a container the event still does not raise. > Of course I can remove the Panel, but will be better if the component > behaves equally regardless the library used in the project. > See the attached project, it works fine with QT. > Tanks again, > Emanuele > Fixed again in revision #3412! Regards, -- Beno?t Minisini From gambas at ...1... Wed Dec 29 19:37:01 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Wed, 29 Dec 2010 19:37:01 +0100 Subject: [Gambas-user] Bug in gb2 and gb3 in float In-Reply-To: <1293646145.4d1b7941c64c1@...1547...> References: <1293646145.4d1b7941c64c1@...1547...> Message-ID: <201012291937.01357.gambas@...1...> > Hi! > > I sent isolate program to test the error. > > execute the program and follow this steps: > > 1 - Click in "Cheque" button > Using the mouse click in "Valor Cheque" textbox > type 20000 and press tab key > > The Resta show 5123,56 > > 2 - click in button "Lan?ar" > > 3 - Click in "Dinheiro" button > Using the mouse click in "Valor Dinheiro" textbox > type 5123,56 and press key tab > > The error is. > > Resta = 5123,56 (float) > mskVALOR = 5123,56 > The breakpoint in 162 > in debug window: > ? vrresta -> show(5123,56) > ? tmpvalor -> show(5123,56) > ? vrresta = tmpvalor ->show(FALSE) > PRESS Shift+F8 to continue to next line > > Again in debug windo type: > ? vrResta > 9,094947017729E-13 > > ???????????? > > I'm use fc13, fc14 and ubuntu 10.10 in my computer for tests. > > Reguards, > > Wellington I don't see a bug there, just a floating-point number rounding error. You can see it by typing '?Frac(25123,56)' Why? Because 0.56 cannot be written in binary, and floating point numbers are stored in binary. Regards, -- Beno?t Minisini From wspinto at ...1405... Wed Dec 29 19:44:57 2010 From: wspinto at ...1405... (Wellington de Souza Pinto) Date: Wed, 29 Dec 2010 16:44:57 -0200 Subject: [Gambas-user] Bug in convetion values Message-ID: <1293648297.4d1b81a9f19ed@...1825...> Hi again! Create one new project and in u class type ' Gambas class file PUBLIC vrDOCTO AS Single PUBLIC SUB Form_Open() vrDOCTO = 0.1 PRINT vrDOCTO END Run the program and in debug window show: 0,10000000149 (teste:17087): GLib-GObject-WARNING **: instance with invalid (NULL) class pointer (teste:17087): GLib-GObject-CRITICAL **: g_signal_handlers_disconnect_matched: assertion `G_TYPE_CHECK_INSTANCE (instance)' failed Reguards, Wellington ___________________________________________________________________________________ Para fazer uma liga??o DDD pra perto ou pra longe, faz um 21. A Embratel tem tarifas muito baratas esperando por voc?. Aproveite! From gambas at ...1... Wed Dec 29 19:48:02 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Wed, 29 Dec 2010 19:48:02 +0100 Subject: [Gambas-user] Bug in gb2 and gb3 in float In-Reply-To: <201012291937.01357.gambas@...1...> References: <1293646145.4d1b7941c64c1@...1547...> <201012291937.01357.gambas@...1...> Message-ID: <201012291948.02696.gambas@...1...> > > Hi! > > > > I sent isolate program to test the error. > > > > execute the program and follow this steps: > > > > 1 - Click in "Cheque" button > > > > Using the mouse click in "Valor Cheque" textbox > > type 20000 and press tab key > > > > The Resta show 5123,56 > > > > 2 - click in button "Lan?ar" > > > > 3 - Click in "Dinheiro" button > > > > Using the mouse click in "Valor Dinheiro" textbox > > type 5123,56 and press key tab > > > > The error is. > > > > Resta = 5123,56 (float) > > mskVALOR = 5123,56 > > The breakpoint in 162 > > > > in debug window: > > ? vrresta -> show(5123,56) > > ? tmpvalor -> show(5123,56) > > ? vrresta = tmpvalor ->show(FALSE) > > > > PRESS Shift+F8 to continue to next line > > > > Again in debug windo type: > > ? vrResta > > 9,094947017729E-13 > > > > ???????????? > > > > I'm use fc13, fc14 and ubuntu 10.10 in my computer for tests. > > > > Reguards, > > > > Wellington > > I don't see a bug there, just a floating-point number rounding error. > > You can see it by typing '?Frac(25123,56)' > > Why? Because 0.56 cannot be written in binary, and floating point numbers > are stored in binary. > > Regards, $ python -c "print 25123.56 - 25123 - 0.56" 1.30961907985e-12 $ gbx3 -e "25123.56 - 25123 - 0.56" 1,3096E-12 -- Beno?t Minisini From gambas at ...1... Wed Dec 29 19:49:29 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Wed, 29 Dec 2010 19:49:29 +0100 Subject: [Gambas-user] Bug in convetion values In-Reply-To: <1293648297.4d1b81a9f19ed@...1825...> References: <1293648297.4d1b81a9f19ed@...1825...> Message-ID: <201012291949.29992.gambas@...1...> > Hi again! > > Create one new project and in u class type > > ' Gambas class file > PUBLIC vrDOCTO AS Single > > PUBLIC SUB Form_Open() > vrDOCTO = 0.1 > PRINT vrDOCTO > END > > > Run the program and in debug window show: > > 0,10000000149 > > (teste:17087): GLib-GObject-WARNING **: instance with invalid (NULL) class > pointer > > (teste:17087): GLib-GObject-CRITICAL **: > g_signal_handlers_disconnect_matched: assertion `G_TYPE_CHECK_INSTANCE > (instance)' failed > > > Reguards, > > Wellington Again, this is not a bug, this is normal floating-point values rounding. Search on the mailing-list, there are already posts that will explain you everything about that. Regards, -- Beno?t Minisini From jussi.lahtinen at ...626... Wed Dec 29 19:57:26 2010 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Wed, 29 Dec 2010 20:57:26 +0200 Subject: [Gambas-user] Bug in gb2 and gb3 in float In-Reply-To: <1293646145.4d1b7941c64c1@...1547...> References: <1293646145.4d1b7941c64c1@...1547...> Message-ID: http://en.wikipedia.org/wiki/Floating_point#Accuracy_problems http://en.wikipedia.org/wiki/Floating_point#Minimizing_the_effect_of_accuracy_problems Benoit, maybe you can add datatype 'decimal' in wish list? Jussi On Wed, Dec 29, 2010 at 20:09, Wellington de Souza Pinto < wspinto at ...1405...> wrote: > Hi! > > I sent isolate program to test the error. > > execute the program and follow this steps: > > 1 - Click in "Cheque" button > Using the mouse click in "Valor Cheque" textbox > type 20000 and press tab key > > The Resta show 5123,56 > > 2 - click in button "Lan?ar" > > 3 - Click in "Dinheiro" button > Using the mouse click in "Valor Dinheiro" textbox > type 5123,56 and press key tab > > The error is. > > Resta = 5123,56 (float) > mskVALOR = 5123,56 > The breakpoint in 162 > in debug window: > ? vrresta -> show(5123,56) > ? tmpvalor -> show(5123,56) > ? vrresta = tmpvalor ->show(FALSE) > PRESS Shift+F8 to continue to next line > > Again in debug windo type: > ? vrResta > 9,094947017729E-13 > > ???????????? > > I'm use fc13, fc14 and ubuntu 10.10 in my computer for tests. > > Reguards, > > Wellington > > ___________________________________________________________________________________ > Para fazer uma liga??o DDD pra perto ou pra longe, faz um 21. A Embratel > tem > tarifas muito baratas esperando por voc?. Aproveite! > > > ------------------------------------------------------------------------------ > Learn how Oracle Real Application Clusters (RAC) One Node allows customers > to consolidate database storage, standardize their database environment, > and, > should the need arise, upgrade to a full multi-node Oracle RAC database > without downtime or disruption > http://p.sf.net/sfu/oracle-sfdevnl > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > From zachsmith022 at ...626... Wed Dec 29 20:24:25 2010 From: zachsmith022 at ...626... (Zach Smith) Date: Wed, 29 Dec 2010 13:24:25 -0600 Subject: [Gambas-user] value of single variable always shows as 1E-315 Message-ID: Run the following code and then look in the "local variables" tab. The integer and string values are correct but the value of e is 1E-315. The same is true when you highlight the variable in the code to see the current value. Dim i As Integer Dim e As Single Dim s As String i = 123 e = 1.23 s = "123" gambas 3 rev. 3412 From ihaywood at ...1979... Wed Dec 29 22:17:15 2010 From: ihaywood at ...1979... (Ian Haywood) Date: Thu, 30 Dec 2010 08:17:15 +1100 Subject: [Gambas-user] Linuxmint and gambas In-Reply-To: <4D1B65F5.30806@...626...> References: <929929376-1293633665-cardhu_decombobulator_blackberry.rim.net-1088509358-@...2521...> <4D1B5566.40908@...1000...> <393551260-1293638364-cardhu_decombobulator_blackberry.rim.net-583608432-@...2521...> <4D1B65F5.30806@...626...> Message-ID: On Thu, Dec 30, 2010 at 3:46 AM, Matteo Pasotti wrote: > Il 29/12/2010 16:59, admhardsoft at ...253... ha scritto: >> Somebody have experience in gambaas with linux mint? >> Thanks >> Tomas > As Werner said, the installation procedure is exactly the same of ubuntu. > Some time ago I've used the repo from madnessmike, but if you need > gambas3 the only way I know is to compile the sources (follow the > instructions provided into the online gambas documentation). > Gambas (2 and 3) works fine on mint. > Regards, there are some draft gambas3 packages available for ubuntu at https://launchpad.net/~ihaywood3/+archive/gambas3 there are packages for "lucid" and"maverick" the two latest ubuntu versions. It depends which linux mint is based on, I have no idea, but try "maverick" first Ian From math.eber at ...221... Wed Dec 29 22:35:53 2010 From: math.eber at ...221... (math.eber at ...221...) Date: Wed, 29 Dec 2010 22:35:53 +0100 Subject: [Gambas-user] ProgressBar(gb.qt4) Message-ID: <1PY3gX-161xBo0@...2522...> ProgressBar.Background works ok (but the colors are somewhat dark-grey). But ProgressBar.Foreground does nothing. The bar is always blue, and the label stays black/white. Shouldn't it be possible to change the color of the bar? Regards Matti From linux at ...1904... Wed Dec 29 22:36:21 2010 From: linux at ...1904... (Dr. Martin Senftleben) Date: Wed, 29 Dec 2010 22:36:21 +0100 Subject: [Gambas-user] Linuxmint and gambas In-Reply-To: <4D1B65F5.30806@...626...> References: <929929376-1293633665-cardhu_decombobulator_blackberry.rim.net-1088509358-@...2521...><4D1B5566.40908@...1000...> <393551260-1293638364-cardhu_decombobulator_blackberry.rim.net-583608432-@...2521...> <4D1B65F5.30806@...626...> Message-ID: <4D1BA9D5.8020102@...1904...> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Am 29.12.2010 17:46, schrieb Matteo Pasotti: > Il 29/12/2010 16:59, admhardsoft at ...253... ha scritto: >> Somebody have experience in gambaas with linux mint? >> Thanks >> Tomas I have LinuxMint 10 and use this ppa: http://ppa.launchpad.net/ihaywood3/gambas3/ubuntu maverick main -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iEYEARECAAYFAk0bqdUACgkQUmmuY48ByEhcUgCfeQGK5UKWaQoFOw1aFcq3tT/f H4QAoJZyWpp+aeZxJel8+gphktwFaPi8 =Upzr -----END PGP SIGNATURE----- From gambas.fr at ...626... Thu Dec 30 00:53:59 2010 From: gambas.fr at ...626... (Fabien Bodard) Date: Thu, 30 Dec 2010 00:53:59 +0100 Subject: [Gambas-user] Linuxmint and gambas In-Reply-To: <4D1BA9D5.8020102@...1904...> References: <929929376-1293633665-cardhu_decombobulator_blackberry.rim.net-1088509358-@...2521...> <4D1B5566.40908@...1000...> <393551260-1293638364-cardhu_decombobulator_blackberry.rim.net-583608432-@...2521...> <4D1B65F5.30806@...626...> <4D1BA9D5.8020102@...1904...> Message-ID: no problem on mint 10 :-) for both version 2010/12/29 Dr. Martin Senftleben : > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Am 29.12.2010 17:46, schrieb Matteo Pasotti: >> Il 29/12/2010 16:59, admhardsoft at ...253... ha scritto: >>> Somebody have experience in gambaas with linux mint? >>> Thanks >>> Tomas > > I have LinuxMint 10 and use this ppa: > > http://ppa.launchpad.net/ihaywood3/gambas3/ubuntu maverick main > > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.10 (GNU/Linux) > > iEYEARECAAYFAk0bqdUACgkQUmmuY48ByEhcUgCfeQGK5UKWaQoFOw1aFcq3tT/f > H4QAoJZyWpp+aeZxJel8+gphktwFaPi8 > =Upzr > -----END PGP SIGNATURE----- > > ------------------------------------------------------------------------------ > Learn how Oracle Real Application Clusters (RAC) One Node allows customers > to consolidate database storage, standardize their database environment, and, > should the need arise, upgrade to a full multi-node Oracle RAC database > without downtime or disruption > http://p.sf.net/sfu/oracle-sfdevnl > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Fabien Bodard From mdavies5 at ...169... Thu Dec 30 02:00:08 2010 From: mdavies5 at ...169... (Michael) Date: Thu, 30 Dec 2010 12:00:08 +1100 Subject: [Gambas-user] Porting Gambas 2 projects to Gambas 3 In-Reply-To: References: <201012241329.13582.gambas@...1...> Message-ID: <4D1BD998.20600@...169...> When going to this link I get "This documentation page does not exist in version 2.0." Regards Michael On 25/12/10 01:07, Fabien Bodard wrote: > the good link is : http://gambasdoc.org/help/doc/gb2togb3 > > > From gambas at ...1... Thu Dec 30 02:06:06 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Thu, 30 Dec 2010 02:06:06 +0100 Subject: [Gambas-user] Porting Gambas 2 projects to Gambas 3 In-Reply-To: <4D1BD998.20600@...169...> References: <201012241329.13582.gambas@...1...> <4D1BD998.20600@...169...> Message-ID: <201012300206.06106.gambas@...1...> > When going to this link I get "This documentation page does not exist in > version 2.0." > > Regards > Michael > Click on the "[3.0]" link on the top of the page to switch the documentation to "3.0" mode. Regards, -- Beno?t Minisini From gambas at ...1... Thu Dec 30 04:17:43 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Thu, 30 Dec 2010 04:17:43 +0100 Subject: [Gambas-user] value of single variable always shows as 1E-315 In-Reply-To: References: Message-ID: <201012300417.43641.gambas@...1...> > Run the following code and then look in the "local variables" tab. > The integer and string values are correct but the value of e is > 1E-315. The same is true when you highlight the variable in the code > to see the current value. > > Dim i As Integer > Dim e As Single > Dim s As String > > i = 123 > e = 1.23 > s = "123" > > > gambas 3 rev. 3412 > Fixed in revision #3414. Regards, -- Beno?t Minisini From mdavies5 at ...169... Thu Dec 30 06:02:32 2010 From: mdavies5 at ...169... (Michael) Date: Thu, 30 Dec 2010 16:02:32 +1100 Subject: [Gambas-user] Gambas 3 advancement In-Reply-To: <201012191758.36143.gambas@...1...> References: <201012191758.36143.gambas@...1...> Message-ID: <4D1C1268.20308@...169...> I have done more experimentation with a date Valuebox. If "Expand" is set to false then no major problem but if the Valuebox is housed in a container which resizes it's children and "Expand" is set to True then the text is not visible. You can make it visible by having a large "Height" value and you will see the text bottom aligned. If you now reduce the height of the container in live mode then the text will remain visible. Regards Michael On 20/12/10 03:58, Beno?t Minisini wrote: > Hi, > > I have currently the feeling that I have to correctly fix the "ValueBox" > problem (the way it is implemented, and more generally the way compound > controls raise events), and then I will able to make a release candidate of > Gambas 3. > > Tell me the important things I forgot, because I am sure I have forgotten > things. > > Not the small bugs, but the features that may change the language syntax or > the interface of some components. > > Thanks in advance! > From mdavies5 at ...169... Thu Dec 30 07:26:31 2010 From: mdavies5 at ...169... (Michael) Date: Thu, 30 Dec 2010 17:26:31 +1100 Subject: [Gambas-user] Gambas3 Printing In-Reply-To: <201012041706.23464.gambas@...1...> References: <15973_1291285925_4CF775A5_15973_37998_2_168370D075CE7F4EBFEEF36949F895472A85DC1F43@...2515...> <4CFA2A17.90302@...169...> <201012041706.23464.gambas@...1...> Message-ID: <4D1C2617.9070401@...169...> Benoit, Have you managed to look at the GTK+ printer dialog problems? With further testing I set the orientation to "Landscape" in code and the paper was correctly oriented. IE The long edge was horizontal but the Paint.Width and Paint.Height did not change so the printing was truncated in width to 210mm (on A4 paper). Also if I set my printer defaults to "Landscape" this did not affect the printer dialog. Orientation was still "Portrait" and disabled. Other defaults, such as "quality" or "Double Sided", could be changed in printer setup and correctly reflected in the Gambas printer dialog. Regards Michael On 05/12/10 03:06, Beno?t Minisini wrote: >> Hi Fabien, >> I've got printing to work ok but positioning objects on the page is >> difficult compared to Gambas2. The Paint.Width and Paint.Height values >> seem to bear no relation to pixels or mm. On A4 paper I get values of >> 559 and 760 approx. What units are used here? (My printer resolution is >> 300) Also in the hPrinter.Configure() dialog I cannot set all the printer >> options, specifically 'Orientation' is disabled. I set it in code with >> hPrinter.Orientation = Printer.Landscape but the Paint component still >> outputs in Portrait mode. >> Would appreciate any assistance. >> Regards >> Michael >> > The Printing example comes from Gambas 2. I removed it as it does not work > anymore with Gambas 3. If Timothy wants to port it to Gambas 3, he's welcome! > > You should do all your drawings relatively to Paint.Width and Paint.Height, > whatever their values. See it as a number of pixels, even if it is not > necessarily true. They are floating point values, so they don't have to be > true pixels. > > The unit of an horizontal "pixel" is the width of the paper divided by > Paint.Width. For an A4 paper on Portrait mode, it's 21 cm / Paint.Width. > > The unit of a vertical "pixel" is the height of the paper divided by > Paint.Height. For an A4 paper on Portrait mode, it's 29,7 cm / Paint.Height. > > I will fix one GTK warning in next revision. But I have another one that is > not triggered by Gambas, but by a GTK+ internal library named "libappmenu.so". > I don't know what it is. > > As you, when calling the GTK+ printer configuration dialog, I cannot change > the orientation and the paper size. I don't know why! I must investigate... > > And there is another bug in gb.qt4 printing: the font size is not resolution > independant, whereas it should be the contrary according the documentation > (i.e. a 50 points font is very small, as if its height is actually 50 > pixels.). I must investigate too... > > Regards, > From wally at ...2037... Fri Dec 31 08:40:33 2010 From: wally at ...2037... (wally) Date: Fri, 31 Dec 2010 08:40:33 +0100 Subject: [Gambas-user] time measure milliseconds ? Message-ID: <201012310840.33529.wally@...2037...> (aded the code here, maybe easier now) I have some general questions to the attached code. 'A: this works ok DIM result_T as Date result_T = Now - start_T ValueBox1.Value = Format$(result_T, "uu") 'B: bad fornmat string 'ValueBox1.Value = Format$(Now - start_T, "uu") 'C: no msec possible ? 'ValueBox1.Value = DateDiff(start_T, Now, 1) why B gives a "bad formatstring" error ? Is there a possibility to make DateDiff return msec ? Since SVN 3410 my error balloon are shown too short to read them. How can i change this ? I there a pool for example contributions ? I want to send a _draw_event example code. wally -------------- next part -------------- A non-text attachment was scrubbed... Name: timeMeasure_g3b_001-0.0.1.tar.gz Type: application/x-compressed-tar Size: 4708 bytes Desc: not available URL: From demosthenesk at ...626... Fri Dec 31 09:32:51 2010 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Fri, 31 Dec 2010 10:32:51 +0200 Subject: [Gambas-user] Images and Pictures Message-ID: <1293784371.21301.7.camel@...2493...> Good morning to all, i make an example for the Image class. i want to demostrate the methods of Image class. the example will Clear Copy Draw Fill Flip Mirror Replace Resize Rotate Save Stretch a picture in an Image class and put the result in a PictureBox. Firstly i want the picture from an Image object to put it in a Picturebox without modify image. i use the following code: ------------------------------ PRIVATE hImage AS Image PUBLIC SUB Form_Open() ME.Center hImage = NEW Image(500, 375, FALSE) hImage.Load(Application.Path & "/nature.png") PictureBox1.Picture = hImage.Picture END ------------------------------ but the PictureBox1 at runtime is empty. Why? what am i doing wrong? -- Regards, Demosthenes Koptsis. From gambas at ...1... Fri Dec 31 14:43:24 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Fri, 31 Dec 2010 14:43:24 +0100 Subject: [Gambas-user] Images and Pictures In-Reply-To: <1293784371.21301.7.camel@...2493...> References: <1293784371.21301.7.camel@...2493...> Message-ID: <201012311443.24052.gambas@...1...> > Good morning to all, > > i make an example for the Image class. > i want to demostrate the methods of Image class. > the example will Clear Copy Draw Fill Flip Mirror Replace Resize > Rotate Save Stretch a picture in an Image class and put the result in > a PictureBox. > > Firstly i want the picture from an Image object to put it in a > Picturebox without modify image. > i use the following code: > > ------------------------------ > PRIVATE hImage AS Image > > PUBLIC SUB Form_Open() > > ME.Center > hImage = NEW Image(500, 375, FALSE) > hImage.Load(Application.Path & "/nature.png") > PictureBox1.Picture = hImage.Picture > > END > ------------------------------ > > but the PictureBox1 at runtime is empty. > Why? what am i doing wrong? I guess you didn't read the documentation of the Image class :-). Image.Load() is a static method. So: hImage = Image.Load(Application.Path &/ "nature.png") And you didn't specify which version of gambas you use. Please do make an example for Gambas 3! Regards, -- Beno?t Minisini From gambas at ...1... Fri Dec 31 14:45:53 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Fri, 31 Dec 2010 14:45:53 +0100 Subject: [Gambas-user] time measure milliseconds ? In-Reply-To: <201012310840.33529.wally@...2037...> References: <201012310840.33529.wally@...2037...> Message-ID: <201012311445.53929.gambas@...1...> > (aded the code here, maybe easier now) > I have some general questions to the attached code. > > 'A: this works ok > > DIM result_T as Date > result_T = Now - start_T > ValueBox1.Value = Format$(result_T, "uu") > > 'B: bad fornmat string > 'ValueBox1.Value = Format$(Now - start_T, "uu") > > 'C: no msec possible ? > 'ValueBox1.Value = DateDiff(start_T, Now, 1) > > why B gives a "bad formatstring" error ? Because Now - start_T is not a date. Arithmetic operators always convert date to float at the moment. > Is there a possibility to make DateDiff return msec ? In Gambas 3, I could add an option for that. > > Since SVN 3410 my error balloon are shown too short to read them. > How can i change this ? Is it better with the last revision? > > I there a pool for example contributions ? > I want to send a _draw_event example code. Send them to the mailing-list, I will tell you if they are good enough! Or post them to Fabien's Gambas web site, if it is ready. Regards, -- Beno?t Minisini From gambas at ...1... Fri Dec 31 14:58:53 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Fri, 31 Dec 2010 14:58:53 +0100 Subject: [Gambas-user] ProgressBar(gb.qt4) In-Reply-To: <1PY3gX-161xBo0@...2522...> References: <1PY3gX-161xBo0@...2522...> Message-ID: <201012311458.53448.gambas@...1...> > ProgressBar.Background works ok (but the colors are somewhat dark-grey). > But ProgressBar.Foreground does nothing. > The bar is always blue, and the label stays black/white. > Shouldn't it be possible to change the color of the bar? > Regards > Matti Maybe not. This is controlled by the underlying widget style. Regards, -- Beno?t Minisini From gambas at ...1... Fri Dec 31 15:46:45 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Fri, 31 Dec 2010 15:46:45 +0100 Subject: [Gambas-user] Label.Adjust In-Reply-To: <1293618282.20116.3.camel@...2493...> References: <1293551463.7606.1.camel@...2493...> <201012291007.16369.gambas@...1...> <1293618282.20116.3.camel@...2493...> Message-ID: <201012311546.45480.gambas@...1...> > sorry Benoit i send you wrong project > > here it is the corect, but it is not something special. > > the code is > > --------- > PUBLIC SUB Form_Open() > > PRINT Label1.Height > PRINT Label1.Width > Label1.Text = " This is a looooooooong text, sghssgh fshsfg dfg fdg sad > gfsda asdg sd" > Label1.Adjust > PRINT Label1.Height > PRINT Label1.Width > > END > --------- > > > in my machine with ubuntu 10.04 i get > > 117 > 72 > > 19 > 72 > Is it better with revision #3417? -- Beno?t Minisini From demosthenesk at ...626... Fri Dec 31 19:13:41 2010 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Fri, 31 Dec 2010 20:13:41 +0200 Subject: [Gambas-user] Label.Adjust In-Reply-To: <201012311546.45480.gambas@...1...> References: <1293551463.7606.1.camel@...2493...> <201012291007.16369.gambas@...1...> <1293618282.20116.3.camel@...2493...> <201012311546.45480.gambas@...1...> Message-ID: <1293819221.28559.1.camel@...2493...> i'll check it next year (tomorrow :)...)... for now i'll leave for a while the computer and celebrate the new year festival. Best wishes to all Gambas friends and happy new year! On Fri, 2010-12-31 at 15:46 +0100, Beno?t Minisini wrote: > > sorry Benoit i send you wrong project > > > > here it is the corect, but it is not something special. > > > > the code is > > > > --------- > > PUBLIC SUB Form_Open() > > > > PRINT Label1.Height > > PRINT Label1.Width > > Label1.Text = " This is a looooooooong text, sghssgh fshsfg dfg fdg sad > > gfsda asdg sd" > > Label1.Adjust > > PRINT Label1.Height > > PRINT Label1.Width > > > > END > > --------- > > > > > > in my machine with ubuntu 10.04 i get > > > > 117 > > 72 > > > > 19 > > 72 > > > > Is it better with revision #3417? > -- Regards, Demosthenes Koptsis. From ea7dfh at ...2382... Fri Dec 31 21:08:01 2010 From: ea7dfh at ...2382... (EA7DFH) Date: Fri, 31 Dec 2010 21:08:01 +0100 Subject: [Gambas-user] [OT]gambas 3 release or otherwise as binary package In-Reply-To: <201009170209.30196.gambas@...1...> References: <201009170209.30196.gambas@...1...> Message-ID: <4D1E3821.4050102@...2382...> El 17/09/10 02:09, Beno?t Minisini escribi?: > > I want to make at least a first release candidate before the end of the year. > ... > > So is the plan! > Finally, 2010 is over and we have not an RC of Gambas3. No problem at all, no rush here. I only want to wish you guys all the best for the New Year 2011. Many thanks to Beno?t and to all developers for your hard work. HNY 2011 !! Sincerely -- Jesus, EA7DFH From wally at ...2037... Fri Dec 31 22:27:02 2010 From: wally at ...2037... (wally) Date: Fri, 31 Dec 2010 22:27:02 +0100 Subject: [Gambas-user] time measure milliseconds ? In-Reply-To: <201012311445.53929.gambas@...1...> References: <201012310840.33529.wally@...2037...> <201012311445.53929.gambas@...1...> Message-ID: <201012312227.02215.wally@...2037...> On Friday 31 December 2010 14:45:53 Beno?t Minisini wrote: > > Since SVN 3410 my error balloon are shown too short to read them. > > How can i change this ? > > Is it better with the last revision? > Yes, much better. Thank you