From gambas at ...2524... Wed Jan 1 00:13:30 2014 From: gambas at ...2524... (gambas at ...2524...) Date: Tue, 31 Dec 2013 23:13:30 +0000 Subject: [Gambas-user] Issue 491 in gambas: LIKE operator bug again In-Reply-To: <5-6813199134517018827-7703999629376476177-gambas=googlecode.com@...2524...> References: <5-6813199134517018827-7703999629376476177-gambas=googlecode.com@...2524...> <0-6813199134517018827-7703999629376476177-gambas=googlecode.com@...2524...> Message-ID: <6-6813199134517018827-7703999629376476177-gambas=googlecode.com@...2524...> Comment #6 on issue 491 by krisztiankende: LIKE operator bug again http://code.google.com/p/gambas/issues/detail?id=491 Thoroughly tested, but now it really looks good. Thanks, and Happy New Year! -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From nemh at ...2007... Wed Jan 1 00:22:07 2014 From: nemh at ...2007... (=?ISO-8859-1?Q?Kende_Kriszti=E1n?=) Date: Wed, 01 Jan 2014 00:22:07 +0100 Subject: [Gambas-user] svn build problem 6035 In-Reply-To: <1388443875692-44937.post@...3046...> References: <6676337.bkD9YO6BVz@...3040...> <52C13F8D.8090806@...1...> <14616153.KQyMftklnT@...3040...> <52C15C67.4030304@...1...> <12180389.XTR5E6Nemp@...3040...> <1388443875692-44937.post@...3046...> Message-ID: <52C3519F.3030309@...2007...> 2013-12-30 23:51 keltez?ssel, Kendek ?rta: > I confirm this. Build log on Ubuntu 14.04 with GTK+3 3.10.6: > > https://launchpadlibrarian.net/161114453/buildlog_ubuntu-trusty-amd64.gambas3_3.5.99.1%2Bsvn20131230%2Bbuild7~ubuntu14.04.1_FAILEDTOBUILD.txt.gz > > See the very end. > > > And build again with revision #6044, but failed. See the log end lines: https://launchpadlibrarian.net/161323227/buildlog_ubuntu-trusty-i386.gambas3_3.5.99.1%2Bsvn20131231%2Bbuild7~ubuntu14.04.1_FAILEDTOBUILD.txt.gz Many deprecated things, again. From shanep1967 at ...169... Thu Jan 2 04:34:34 2014 From: shanep1967 at ...169... (Shane) Date: Thu, 02 Jan 2014 14:34:34 +1100 Subject: [Gambas-user] Gridview Message-ID: <52C4DE4A.7000603@...169...> what is needed to get word warp height resizing working ? this is what i have GridView1.Rows[Index].Height = -1 GridView1[Index, 0].WordWrap = True so wordwarp works but the height is not resized From bbruen at ...2308... Thu Jan 2 05:23:13 2014 From: bbruen at ...2308... (Bruce) Date: Thu, 02 Jan 2014 14:53:13 +1030 Subject: [Gambas-user] Gridview In-Reply-To: <52C4DE4A.7000603@...169...> References: <52C4DE4A.7000603@...169...> Message-ID: <1388636593.3239.3.camel@...2688...> On Thu, 2014-01-02 at 14:34 +1100, Shane wrote: > what is needed to get > word warp height resizing working ? this is what i have > > GridView1.Rows[Index].Height = -1 > GridView1[Index, 0].WordWrap = True > > so wordwarp works but the height is not resized > > ------------------------------------------------------------------------------ You have to set the row height to -1 in the Arrange event, not when you load a cell. This is because of something like the runtime does not know what to do with the row heights until it is all loaded. I had the same problem some months ago, Beniot's explanation is somewhere in the mailing list archives. I can only suggest you search it for "gridview row height", but I do not remember the topic, sorry. hth Bruce From bbruen at ...2308... Thu Jan 2 05:28:14 2014 From: bbruen at ...2308... (Bruce) Date: Thu, 02 Jan 2014 14:58:14 +1030 Subject: [Gambas-user] Gridview In-Reply-To: <1388636593.3239.3.camel@...2688...> References: <52C4DE4A.7000603@...169...> <1388636593.3239.3.camel@...2688...> Message-ID: <1388636894.3239.5.camel@...2688...> On Thu, 2014-01-02 at 14:53 +1030, Bruce wrote: > On Thu, 2014-01-02 at 14:34 +1100, Shane wrote: > > what is needed to get > > word warp height resizing working ? this is what i have > > > > GridView1.Rows[Index].Height = -1 > > GridView1[Index, 0].WordWrap = True > > > > so wordwarp works but the height is not resized > > > > ------------------------------------------------------------------------------ > > You have to set the row height to -1 in the Arrange event, not when you > load a cell. > > This is because of something like the runtime does not know what to do > with the row heights until it is all loaded. > > I had the same problem some months ago, Beniot's explanation is > somewhere in the mailing list archives. I can only suggest you search it > for "gridview row height", but I do not remember the topic, sorry. > > hth > Bruce > > Aha, found it! Topic is "gridview row heights when cell is wrapped" and Benoit's answers on the 1st May 2013 are germaine. B From nemh at ...2007... Thu Jan 2 11:18:18 2014 From: nemh at ...2007... (=?ISO-8859-1?Q?Kende_Kriszti=E1n?=) Date: Thu, 02 Jan 2014 11:18:18 +0100 Subject: [Gambas-user] svn build problem 6035 In-Reply-To: <52C3519F.3030309@...2007...> References: <6676337.bkD9YO6BVz@...3040...> <52C13F8D.8090806@...1...> <14616153.KQyMftklnT@...3040...> <52C15C67.4030304@...1...> <12180389.XTR5E6Nemp@...3040...> <1388443875692-44937.post@...3046...> <52C3519F.3030309@...2007...> Message-ID: <52C53CEA.90405@...2007...> 2014-01-01 00:22 keltez?ssel, Kende Kriszti?n ?rta: > 2013-12-30 23:51 keltez?ssel, Kendek ?rta: >> I confirm this. Build log on Ubuntu 14.04 with GTK+3 3.10.6: >> >> https://launchpadlibrarian.net/161114453/buildlog_ubuntu-trusty-amd64.gambas3_3.5.99.1%2Bsvn20131230%2Bbuild7~ubuntu14.04.1_FAILEDTOBUILD.txt.gz >> >> >> See the very end. >> >> >> > > And build again with revision #6044, but failed. See the log end lines: > > https://launchpadlibrarian.net/161323227/buildlog_ubuntu-trusty-i386.gambas3_3.5.99.1%2Bsvn20131231%2Bbuild7~ubuntu14.04.1_FAILEDTOBUILD.txt.gz > > > Many deprecated things, again. > And build again with revision #6049, but failed. See the log last lines: https://launchpadlibrarian.net/161403429/buildlog_ubuntu-trusty-amd64.gambas3_3.5.99.1%2Bsvn20140102%2Bbuild7~ubuntu14.04.1_FAILEDTOBUILD.txt.gz Many deprecated things, again. From VonZorch at ...626... Thu Jan 2 20:06:55 2014 From: VonZorch at ...626... (VonZorch) Date: Thu, 2 Jan 2014 11:06:55 -0800 (PST) Subject: [Gambas-user] Where did the Help Files Go? Message-ID: <1388689615141-44965.post@...3046...> Where are there english help files? Gambasdocs.org has been down since mid September. -- View this message in context: http://gambas.8142.n7.nabble.com/Where-did-the-Help-Files-Go-tp44965.html Sent from the gambas-user mailing list archive at Nabble.com. From taboege at ...626... Thu Jan 2 20:11:57 2014 From: taboege at ...626... (Tobias Boege) Date: Thu, 2 Jan 2014 20:11:57 +0100 Subject: [Gambas-user] Where did the Help Files Go? In-Reply-To: <1388689615141-44965.post@...3046...> References: <1388689615141-44965.post@...3046...> Message-ID: <20140102191156.GG514@...2774...> On Thu, 02 Jan 2014, VonZorch wrote: > Where are there english help files? Gambasdocs.org has been down since mid > September. > You should look at gambasdoc.org (without the "s"). -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From gambas at ...1... Thu Jan 2 20:13:43 2014 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Thu, 02 Jan 2014 20:13:43 +0100 Subject: [Gambas-user] Where did the Help Files Go? In-Reply-To: <1388689615141-44965.post@...3046...> References: <1388689615141-44965.post@...3046...> Message-ID: <52C5BA67.7070608@...1...> Le 02/01/2014 20:06, VonZorch a ?crit : > Where are there english help files? Gambasdocs.org has been down since mid > September. > gambasdoc.org seems to not be accessible from all DNS. Try the IP address: http://64.128.110.55 Or try to change your DNS, maybe it could help. Regards, -- Beno?t Minisini From VonZorch at ...626... Thu Jan 2 20:22:08 2014 From: VonZorch at ...626... (VonZorch) Date: Thu, 2 Jan 2014 11:22:08 -0800 (PST) Subject: [Gambas-user] Can't compile 3.5.2 Message-ID: <1388690528173-44968.post@...3046...> Running Mint 16, in console as root. When I enter ./configure it returns "No such file or directory". What do I need to do here. -- View this message in context: http://gambas.8142.n7.nabble.com/Can-t-compile-3-5-2-tp44968.html Sent from the gambas-user mailing list archive at Nabble.com. From gambas at ...1... Thu Jan 2 20:33:46 2014 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Thu, 02 Jan 2014 20:33:46 +0100 Subject: [Gambas-user] Can't compile 3.5.2 In-Reply-To: <1388690528173-44968.post@...3046...> References: <1388690528173-44968.post@...3046...> Message-ID: <52C5BF1A.6030207@...1...> Le 02/01/2014 20:22, VonZorch a ?crit : > Running Mint 16, in console as root. When I enter ./configure it returns "No > such file or directory". > What do I need to do here. > Everything is explained in the 'INSTALL.html' file. You can get the latest version of that file on gambasdoc.org, but if you can't access it... :-/ -- Beno?t Minisini From VonZorch at ...626... Thu Jan 2 20:41:36 2014 From: VonZorch at ...626... (VonZorch) Date: Thu, 2 Jan 2014 11:41:36 -0800 (PST) Subject: [Gambas-user] Cotrols don't show. Message-ID: <1388691696007-44970.post@...3046...> Running Gambas 3.1.1 on Mint Linux 16. The code ' Gambas class file Private lblHt[11] As Label Public Sub _new() Dim Loop1 As Byte For Loop1 = 0 To 10 lblHt[Loop1] = New Label(Me) lblHt[Loop1].x = 20 lblHt[Loop1].y = 20 + (Loop1 * 30) lblHt[Loop1].Text = Str(Loop1) lblHt[Loop1].Show Next End This runs without errors but nothing displays on the form. What do I need to do to display this? -- View this message in context: http://gambas.8142.n7.nabble.com/Cotrols-don-t-show-tp44970.html Sent from the gambas-user mailing list archive at Nabble.com. From VonZorch at ...626... Thu Jan 2 20:48:44 2014 From: VonZorch at ...626... (VonZorch) Date: Thu, 2 Jan 2014 11:48:44 -0800 (PST) Subject: [Gambas-user] Controls on form do not respond. Message-ID: <1388692124738-44971.post@...3046...> I have a form called from the main program. When called it opens and does everything in SUB _new(). However using the controls on it does not cause any event. I have tried using all varieties of .Show. Any help will be greatly appreciated. -- View this message in context: http://gambas.8142.n7.nabble.com/Controls-on-form-do-not-respond-tp44971.html Sent from the gambas-user mailing list archive at Nabble.com. From iss_boss at ...770... Thu Jan 2 20:49:33 2014 From: iss_boss at ...770... (ISS Boss) Date: Thu, 02 Jan 2014 14:49:33 -0500 Subject: [Gambas-user] Cotrols don't show. In-Reply-To: <1388691696007-44970.post@...3046...> References: <1388691696007-44970.post@...3046...> Message-ID: <52C5C2CD.5050406@...770...> Would a "lblHt[Loop1].Visible = True" help? VonZorch wrote, On 01/02/2014 14:41: Running Gambas 3.1.1 on Mint Linux 16. The code ' Gambas class file Private lblHt[11] As Label Public Sub _new() Dim Loop1 As Byte For Loop1 = 0 To 10 lblHt[Loop1] = New Label(Me) lblHt[Loop1].x = 20 lblHt[Loop1].y = 20 + (Loop1 * 30) lblHt[Loop1].Text = Str(Loop1) lblHt[Loop1].Show Next End This runs without errors but nothing displays on the form. What do I need to do to display this? -- View this message in context: [1]http://gambas.8142.n7.nabble.com/Cotrols-don-t -show-tp44970.html Sent from the gambas-user mailing list archive at Nabble.com. ------------------------------------------------------------------------------ Rapidly troubleshoot problems before they affect your business. Most IT organizations don't have a clear picture of how application performance affects their revenue. With AppDynamics, you get 100% visibility into your Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! [2]http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk _______________________________________________ Gambas-user mailing list [3]Gambas-user at lists.sourceforge.net [4]https://lists.sourceforge.net/lists/listinfo/gambas-user References 1. http://gambas.8142.n7.nabble.com/Cotrols-don-t-show-tp44970.html 2. http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk 3. mailto:Gambas-user at lists.sourceforge.net 4. https://lists.sourceforge.net/lists/listinfo/gambas-user From VonZorch at ...626... Thu Jan 2 21:00:23 2014 From: VonZorch at ...626... (VonZorch) Date: Thu, 2 Jan 2014 12:00:23 -0800 (PST) Subject: [Gambas-user] Cotrols don't show. In-Reply-To: <52C5C2CD.5050406@...770...> References: <1388691696007-44970.post@...3046...> <52C5C2CD.5050406@...770...> Message-ID: <1388692823498-44973.post@...3046...> "lblHt[Loop1].Visible = True" that was the first thing I tried, didn't help. Thanks for the quick reply. -- View this message in context: http://gambas.8142.n7.nabble.com/Cotrols-don-t-show-tp44970p44973.html Sent from the gambas-user mailing list archive at Nabble.com. From taboege at ...626... Thu Jan 2 21:01:06 2014 From: taboege at ...626... (Tobias Boege) Date: Thu, 2 Jan 2014 21:01:06 +0100 Subject: [Gambas-user] gb.gsl Polynomial segfault Message-ID: <20140102200106.GI514@...2774...> Hi, I get a segfault from gb.gsl when running the attached project. I looked at the source and it seems I am allowed to do this... Even if I'm not, a segfault isn't the most charming way to tell me ;-) GDB output: (gdb) r Starting program: /usr/bin/gbx3 warning: no loadable sections found in added symbol-file system-supplied DSO at 0x7ffff7ffa000 warning: Could not load shared library symbols for linux-vdso.so.1. Do you need "set solib-search-path" or "set sysroot"? [Thread debugging using libthread_db enabled] Using host libthread_db library "/usr/lib/libthread_db.so.1". Program received signal SIGSEGV, Segmentation fault. 0x0000000000406aff in ARRAY_insert_many (p_data=0x695c20, pos=-1, count=1) at ../share/gb_array_temp.h:166 166 pos = array->count; (gdb) bt #0 0x0000000000406aff in ARRAY_insert_many (p_data=0x695c20, pos=-1, count=1) at ../share/gb_array_temp.h:166 #1 0x00007ffff66ff0fc in ensure_size (_object=0x695c08, size=1) at c_polynomial.c:93 #2 0x00007ffff6700be6 in Polynomial_put (_object=0x695c08, _param=0x7ffff6907040) at c_polynomial.c:680 #3 0x000000000041244e in EXEC_native () at gbx_exec.c:1344 #4 0x00000000004133f5 in EXEC_special (special=3, class=0x693998, object=0x695c08, nparam=2, drop=1 '\001') at gbx_exec.c:1652 #5 0x0000000000417e86 in EXEC_pop_array (code=2818) at gbx_exec_pop.c:400 #6 0x000000000045b835 in EXEC_loop () at gbx_exec_loop.c:662 #7 0x00000000004106ed in EXEC_function_loop () at gbx_exec.c:909 #8 0x0000000000410344 in EXEC_function_real () at gbx_exec.c:873 #9 0x000000000041326d in EXEC_public_desc (class=0x695598, object=0x0, desc=0x695758, nparam=0) at gbx_exec.c:1594 #10 0x00000000004436f5 in main (argc=1, argv=0x7fffffffe968) at gbx.c:391 valgrind output: ==18869== Invalid read of size 4 ==18869== at 0x406AFF: ARRAY_insert_many (gb_array_temp.h:166) ==18869== by 0x67170FB: ensure_size (c_polynomial.c:93) ==18869== by 0x6718BE5: Polynomial_put (c_polynomial.c:680) ==18869== by 0x41244D: EXEC_native (gbx_exec.c:1344) ==18869== by 0x4133F4: EXEC_special (gbx_exec.c:1652) ==18869== by 0x417E85: EXEC_pop_array (gbx_exec_pop.c:400) ==18869== by 0x45B834: EXEC_loop (gbx_exec_loop.c:662) ==18869== by 0x4106EC: EXEC_function_loop (gbx_exec.c:909) ==18869== by 0x410343: EXEC_function_real (gbx_exec.c:873) ==18869== by 0x41326C: EXEC_public_desc (gbx_exec.c:1594) ==18869== by 0x4436F4: main (gbx.c:391) ==18869== Address 0xfffffffffffffff0 is not stack'd, malloc'd or (recently) free'd ==18869== ==18869== ==18869== Process terminating with default action of signal 11 (SIGSEGV): dumping core ==18869== Access not within mapped region at address 0xFFFFFFFFFFFFFFF0 ==18869== at 0x406AFF: ARRAY_insert_many (gb_array_temp.h:166) ==18869== by 0x67170FB: ensure_size (c_polynomial.c:93) ==18869== by 0x6718BE5: Polynomial_put (c_polynomial.c:680) ==18869== by 0x41244D: EXEC_native (gbx_exec.c:1344) ==18869== by 0x4133F4: EXEC_special (gbx_exec.c:1652) ==18869== by 0x417E85: EXEC_pop_array (gbx_exec_pop.c:400) ==18869== by 0x45B834: EXEC_loop (gbx_exec_loop.c:662) ==18869== by 0x4106EC: EXEC_function_loop (gbx_exec.c:909) ==18869== by 0x410343: EXEC_function_real (gbx_exec.c:873) ==18869== by 0x41326C: EXEC_public_desc (gbx_exec.c:1594) ==18869== by 0x4436F4: main (gbx.c:391) ==18869== If you believe this happened as a result of a stack ==18869== overflow in your program's main thread (unlikely but ==18869== possible), you can try to increase the size of the ==18869== main thread stack using the --main-stacksize= flag. ==18869== The main thread stack size used in this run was 8388608. Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk -------------- next part -------------- A non-text attachment was scrubbed... Name: gb-gsl-polynomial-segfault-0.0.1.tar.gz Type: application/octet-stream Size: 4548 bytes Desc: not available URL: From VonZorch at ...626... Thu Jan 2 21:03:26 2014 From: VonZorch at ...626... (VonZorch) Date: Thu, 2 Jan 2014 12:03:26 -0800 (PST) Subject: [Gambas-user] Where did the Help Files Go? In-Reply-To: <52C5BA67.7070608@...1...> References: <1388689615141-44965.post@...3046...> <52C5BA67.7070608@...1...> Message-ID: <1388693006310-44975.post@...3046...> That works fine. Thanks for the help and swift response. -- View this message in context: http://gambas.8142.n7.nabble.com/Where-did-the-Help-Files-Go-tp44965p44975.html Sent from the gambas-user mailing list archive at Nabble.com. From taboege at ...626... Thu Jan 2 21:04:37 2014 From: taboege at ...626... (Tobias Boege) Date: Thu, 2 Jan 2014 21:04:37 +0100 Subject: [Gambas-user] Controls on form do not respond. In-Reply-To: <1388692124738-44971.post@...3046...> References: <1388692124738-44971.post@...3046...> Message-ID: <20140102200437.GJ514@...2774...> On Thu, 02 Jan 2014, VonZorch wrote: > I have a form called from the main program. > When called it opens and does everything in SUB _new(). However using the > controls on it does not cause any event. I have tried using all varieties > of .Show. > Any help will be greatly appreciated. > There are too many potential causes for us to guess the correct one. Please send the project. Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From iss_boss at ...770... Thu Jan 2 21:06:32 2014 From: iss_boss at ...770... (ISS Boss) Date: Thu, 02 Jan 2014 15:06:32 -0500 Subject: [Gambas-user] Cotrols don't show. In-Reply-To: <1388692823498-44973.post@...3046...> References: <1388691696007-44970.post@...3046...> <52C5C2CD.5050406@...770...> <1388692823498-44973.post@...3046...> Message-ID: <52C5C6C8.50902@...770...> Are you telling the Labels WHERE to show? In VB you'd have to do something like: With frmMainForm ' put your loop here End With VonZorch wrote, On 01/02/2014 15:00: "lblHt[Loop1].Visible = True" that was the first thing I tried, didn't help. Thanks for the quick reply. -- View this message in context: [1]http://gambas.8142.n7.nabble.com/Cotrols-don-t -show-tp44970p44973.html Sent from the gambas-user mailing list archive at Nabble.com. ------------------------------------------------------------------------------ Rapidly troubleshoot problems before they affect your business. Most IT organizations don't have a clear picture of how application performance affects their revenue. With AppDynamics, you get 100% visibility into your Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! [2]http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk _______________________________________________ Gambas-user mailing list [3]Gambas-user at lists.sourceforge.net [4]https://lists.sourceforge.net/lists/listinfo/gambas-user References 1. http://gambas.8142.n7.nabble.com/Cotrols-don-t-show-tp44970p44973.html 2. http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk 3. mailto:Gambas-user at lists.sourceforge.net 4. https://lists.sourceforge.net/lists/listinfo/gambas-user From bbruen at ...2308... Thu Jan 2 21:20:17 2014 From: bbruen at ...2308... (Bruce) Date: Fri, 03 Jan 2014 06:50:17 +1030 Subject: [Gambas-user] Cotrols don't show. In-Reply-To: <52C5C6C8.50902@...770...> References: <1388691696007-44970.post@...3046...> <52C5C2CD.5050406@...770...> <1388692823498-44973.post@...3046...> <52C5C6C8.50902@...770...> Message-ID: <1388694017.3239.8.camel@...2688...> On Thu, 2014-01-02 at 15:06 -0500, ISS Boss wrote: > Are you telling the Labels WHERE to show? In VB you'd have to do something > like: > With frmMainForm > ' put your loop here > End With > VonZorch wrote, On 01/02/2014 15:00: > > "lblHt[Loop1].Visible = True" that was the first thing I tried, didn't help. > Thanks for the quick reply. > Dim Loop1 As Byte For Loop1 = 0 To 10 lblHt[Loop1] = New Label(Me) ' A few other bits might help!! lblHt[Loop1].width = 37 lblHt[Loop1].H = 28 ' and optionally lblHt[Loop1].Alignment = Align.Center lblHt[Loop1].Border = Border.Raised lblHt[Loop1].x = 20 lblHt[Loop1].y = 20 + (Loop1 * 30) lblHt[Loop1].Text = Str(Loop1) lblHt[Loop1].Show Next hth Bruce From VonZorch at ...626... Thu Jan 2 21:23:05 2014 From: VonZorch at ...626... (VonZorch) Date: Thu, 2 Jan 2014 12:23:05 -0800 (PST) Subject: [Gambas-user] Cotrols don't show. In-Reply-To: <52C5C6C8.50902@...770...> References: <1388691696007-44970.post@...3046...> <52C5C2CD.5050406@...770...> <1388692823498-44973.post@...3046...> <52C5C6C8.50902@...770...> Message-ID: <1388694185040-44979.post@...3046...> This line "lblHt[Loop1] = New Label(Me)" tells the program where to put the control in Gambas. In this case it puts the control on the calling form. Oddly on my main form I can display compound controls built on their own form. -- View this message in context: http://gambas.8142.n7.nabble.com/Cotrols-don-t-show-tp44970p44979.html Sent from the gambas-user mailing list archive at Nabble.com. From iss_boss at ...770... Thu Jan 2 22:08:05 2014 From: iss_boss at ...770... (ISS Boss) Date: Thu, 02 Jan 2014 16:08:05 -0500 Subject: [Gambas-user] Cotrols don't show. In-Reply-To: <1388694185040-44979.post@...3046...> References: <1388691696007-44970.post@...3046...> <52C5C2CD.5050406@...770...> <1388692823498-44973.post@...3046...> <52C5C6C8.50902@...770...> <1388694185040-44979.post@...3046...> Message-ID: <52C5D535.7000900@...770...> Ah. I wasn't aware of that. I've only newly arrived from VB.NET VonZorch wrote, On 01/02/2014 15:23: This line "lblHt[Loop1] = New Label(Me)" tells the program where to put the control in Gambas. In this case it puts the control on the calling form. Oddly on my main form I can display compound controls built on their own form. -- View this message in context: [1]http://gambas.8142.n7.nabble.com/Cotrols-don-t -show-tp44970p44979.html Sent from the gambas-user mailing list archive at Nabble.com. ------------------------------------------------------------------------------ Rapidly troubleshoot problems before they affect your business. Most IT organizations don't have a clear picture of how application performance affects their revenue. With AppDynamics, you get 100% visibility into your Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! [2]http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk _______________________________________________ Gambas-user mailing list [3]Gambas-user at lists.sourceforge.net [4]https://lists.sourceforge.net/lists/listinfo/gambas-user References 1. http://gambas.8142.n7.nabble.com/Cotrols-don-t-show-tp44970p44979.html 2. http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk 3. mailto:Gambas-user at lists.sourceforge.net 4. https://lists.sourceforge.net/lists/listinfo/gambas-user From gambas at ...1... Thu Jan 2 22:19:01 2014 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Thu, 02 Jan 2014 22:19:01 +0100 Subject: [Gambas-user] gb.gsl Polynomial segfault In-Reply-To: <20140102200106.GI514@...2774...> References: <20140102200106.GI514@...2774...> Message-ID: <52C5D7C5.3090600@...1...> Le 02/01/2014 21:01, Tobias Boege a ?crit : > Hi, > > I get a segfault from gb.gsl when running the attached project. I looked at > the source and it seems I am allowed to do this... Even if I'm not, a > segfault isn't the most charming way to tell me ;-) > > GDB output: > > (gdb) r > Starting program: /usr/bin/gbx3 > warning: no loadable sections found in added symbol-file system-supplied DSO at 0x7ffff7ffa000 > warning: Could not load shared library symbols for linux-vdso.so.1. > Do you need "set solib-search-path" or "set sysroot"? > [Thread debugging using libthread_db enabled] > Using host libthread_db library "/usr/lib/libthread_db.so.1". > > Program received signal SIGSEGV, Segmentation fault. > 0x0000000000406aff in ARRAY_insert_many (p_data=0x695c20, pos=-1, count=1) at ../share/gb_array_temp.h:166 > 166 pos = array->count; > (gdb) bt > #0 0x0000000000406aff in ARRAY_insert_many (p_data=0x695c20, pos=-1, count=1) at ../share/gb_array_temp.h:166 > #1 0x00007ffff66ff0fc in ensure_size (_object=0x695c08, size=1) at c_polynomial.c:93 > #2 0x00007ffff6700be6 in Polynomial_put (_object=0x695c08, _param=0x7ffff6907040) at c_polynomial.c:680 > #3 0x000000000041244e in EXEC_native () at gbx_exec.c:1344 > #4 0x00000000004133f5 in EXEC_special (special=3, class=0x693998, object=0x695c08, nparam=2, drop=1 '\001') at gbx_exec.c:1652 > #5 0x0000000000417e86 in EXEC_pop_array (code=2818) at gbx_exec_pop.c:400 > #6 0x000000000045b835 in EXEC_loop () at gbx_exec_loop.c:662 > #7 0x00000000004106ed in EXEC_function_loop () at gbx_exec.c:909 > #8 0x0000000000410344 in EXEC_function_real () at gbx_exec.c:873 > #9 0x000000000041326d in EXEC_public_desc (class=0x695598, object=0x0, desc=0x695758, nparam=0) at gbx_exec.c:1594 > #10 0x00000000004436f5 in main (argc=1, argv=0x7fffffffe968) at gbx.c:391 > > valgrind output: > > ==18869== Invalid read of size 4 > ==18869== at 0x406AFF: ARRAY_insert_many (gb_array_temp.h:166) > ==18869== by 0x67170FB: ensure_size (c_polynomial.c:93) > ==18869== by 0x6718BE5: Polynomial_put (c_polynomial.c:680) > ==18869== by 0x41244D: EXEC_native (gbx_exec.c:1344) > ==18869== by 0x4133F4: EXEC_special (gbx_exec.c:1652) > ==18869== by 0x417E85: EXEC_pop_array (gbx_exec_pop.c:400) > ==18869== by 0x45B834: EXEC_loop (gbx_exec_loop.c:662) > ==18869== by 0x4106EC: EXEC_function_loop (gbx_exec.c:909) > ==18869== by 0x410343: EXEC_function_real (gbx_exec.c:873) > ==18869== by 0x41326C: EXEC_public_desc (gbx_exec.c:1594) > ==18869== by 0x4436F4: main (gbx.c:391) > ==18869== Address 0xfffffffffffffff0 is not stack'd, malloc'd or (recently) free'd > ==18869== > ==18869== > ==18869== Process terminating with default action of signal 11 (SIGSEGV): dumping core > ==18869== Access not within mapped region at address 0xFFFFFFFFFFFFFFF0 > ==18869== at 0x406AFF: ARRAY_insert_many (gb_array_temp.h:166) > ==18869== by 0x67170FB: ensure_size (c_polynomial.c:93) > ==18869== by 0x6718BE5: Polynomial_put (c_polynomial.c:680) > ==18869== by 0x41244D: EXEC_native (gbx_exec.c:1344) > ==18869== by 0x4133F4: EXEC_special (gbx_exec.c:1652) > ==18869== by 0x417E85: EXEC_pop_array (gbx_exec_pop.c:400) > ==18869== by 0x45B834: EXEC_loop (gbx_exec_loop.c:662) > ==18869== by 0x4106EC: EXEC_function_loop (gbx_exec.c:909) > ==18869== by 0x410343: EXEC_function_real (gbx_exec.c:873) > ==18869== by 0x41326C: EXEC_public_desc (gbx_exec.c:1594) > ==18869== by 0x4436F4: main (gbx.c:391) > ==18869== If you believe this happened as a result of a stack > ==18869== overflow in your program's main thread (unlikely but > ==18869== possible), you can try to increase the size of the > ==18869== main thread stack using the --main-stacksize= flag. > ==18869== The main thread stack size used in this run was 8388608. > > Regards, > Tobi > Fixed in revision #6055. Regards, -- Beno?t Minisini From taboege at ...626... Thu Jan 2 22:20:50 2014 From: taboege at ...626... (Tobias Boege) Date: Thu, 2 Jan 2014 22:20:50 +0100 Subject: [Gambas-user] gb.gsl Polynomial segfault In-Reply-To: <20140102200106.GI514@...2774...> References: <20140102200106.GI514@...2774...> Message-ID: <20140102212050.GL514@...2774...> On Thu, 02 Jan 2014, Tobias Boege wrote: > Hi, > > I get a segfault from gb.gsl when running the attached project. I looked at > the source and it seems I am allowed to do this... Even if I'm not, a > segfault isn't the most charming way to tell me ;-) > I compile faster than my own shadow ;-) Your fix works. -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From gambas.fr at ...626... Thu Jan 2 22:29:22 2014 From: gambas.fr at ...626... (Fabien Bodard) Date: Thu, 2 Jan 2014 22:29:22 +0100 Subject: [Gambas-user] Can't compile rev 6055 Message-ID: Problem on compiling gtk3 : GTK3 Version : 3.10.6 on Arch [fabien at ...3278... gb.gtk3]$ make make all-recursive make[1]: Entering directory '/home/fabien/Documents/Developpement/trunk/gb.gtk3' Making all in src make[2]: Entering directory '/home/fabien/Documents/Developpement/trunk/gb.gtk3/src' CXX gb_gtk3_la-gcontrol.lo gcontrol.cpp: In function 'void cb_update_font(GtkWidget*, gpointer)': gcontrol.cpp:738:2: warning: 'void gtk_widget_modify_font(GtkWidget*, PangoFontDescription*)' is deprecated (declared at /usr/include/gtk-3.0/gtk/deprecated/gtkstyle.h:699): Use 'gtk_widget_override_font' instead [-Wdeprecated-declarations] gtk_widget_modify_font(widget, desc); ^ gcontrol.cpp:738:37: warning: 'void gtk_widget_modify_font(GtkWidget*, PangoFontDescription*)' is deprecated (declared at /usr/include/gtk-3.0/gtk/deprecated/gtkstyle.h:699): Use 'gtk_widget_override_font' instead [-Wdeprecated-declarations] gtk_widget_modify_font(widget, desc); ^ gcontrol.cpp: In member function 'virtual void gControl::updateFont()': gcontrol.cpp:744:2: warning: 'void gtk_widget_modify_font(GtkWidget*, PangoFontDescription*)' is deprecated (declared at /usr/include/gtk-3.0/gtk/deprecated/gtkstyle.h:699): Use 'gtk_widget_override_font' instead [-Wdeprecated-declarations] gtk_widget_modify_font(widget, font()->desc()); ^ gcontrol.cpp:744:47: warning: 'void gtk_widget_modify_font(GtkWidget*, PangoFontDescription*)' is deprecated (declared at /usr/include/gtk-3.0/gtk/deprecated/gtkstyle.h:699): Use 'gtk_widget_override_font' instead [-Wdeprecated-declarations] gtk_widget_modify_font(widget, font()->desc()); ^ gcontrol.cpp: In function 'int gt_get_preferred_width(GtkWidget*)': gcontrol.cpp:1514:13: error: 'GtkWidgetClass' has no member named '_gtk_reserved2' if (klass->_gtk_reserved2) ^ gcontrol.cpp:1515:51: error: 'GtkWidgetClass' has no member named '_gtk_reserved2' (*(void (*)(GtkWidget *, gint *, gint *))klass->_gtk_reserved2)(widget, &m, &n); ^ gcontrol.cpp: In member function 'bool gControl::grab()': gcontrol.cpp:2084:6: warning: 'GdkGrabStatus gdk_pointer_grab(GdkWindow*, gboolean, GdkEventMask, GdkWindow*, GdkCursor*, guint32)' is deprecated (declared at /usr/include/gtk-3.0/gdk/gdkmain.h:86): Use 'gdk_device_grab' instead [-Wdeprecated-declarations] if (gdk_pointer_grab(win, FALSE, (GdkEventMask)(GDK_POINTER_MOTION_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK), NULL, ^ gcontrol.cpp:2090:33: warning: 'GdkGrabStatus gdk_pointer_grab(GdkWindow*, gboolean, GdkEventMask, GdkWindow*, GdkCursor*, guint32)' is deprecated (declared at /usr/include/gtk-3.0/gdk/gdkmain.h:86): Use 'gdk_device_grab' instead [-Wdeprecated-declarations] gApplication::lastEventTime()) != GDK_GRAB_SUCCESS) ^ gcontrol.cpp:2095:6: warning: 'GdkGrabStatus gdk_keyboard_grab(GdkWindow*, gboolean, guint32)' is deprecated (declared at /usr/include/gtk-3.0/gdk/gdkmain.h:93): Use 'gdk_device_grab' instead [-Wdeprecated-declarations] if (gdk_keyboard_grab(win, FALSE, gApplication::lastEventTime()) != GDK_GRAB_SUCCESS) ^ gcontrol.cpp:2095:65: warning: 'GdkGrabStatus gdk_keyboard_grab(GdkWindow*, gboolean, guint32)' is deprecated (declared at /usr/include/gtk-3.0/gdk/gdkmain.h:93): Use 'gdk_device_grab' instead [-Wdeprecated-declarations] if (gdk_keyboard_grab(win, FALSE, gApplication::lastEventTime()) != GDK_GRAB_SUCCESS) ^ gcontrol.cpp:2097:3: warning: 'void gdk_pointer_ungrab(guint32)' is deprecated (declared at /usr/include/gtk-3.0/gdk/gdkmain.h:102): Use 'gdk_device_ungrab' instead [-Wdeprecated-declarations] gdk_pointer_ungrab(GDK_CURRENT_TIME); ^ gcontrol.cpp:2097:38: warning: 'void gdk_pointer_ungrab(guint32)' is deprecated (declared at /usr/include/gtk-3.0/gdk/gdkmain.h:102): Use 'gdk_device_ungrab' instead [-Wdeprecated-declarations] gdk_pointer_ungrab(GDK_CURRENT_TIME); ^ gcontrol.cpp:2113:2: warning: 'void gdk_pointer_ungrab(guint32)' is deprecated (declared at /usr/include/gtk-3.0/gdk/gdkmain.h:102): Use 'gdk_device_ungrab' instead [-Wdeprecated-declarations] gdk_pointer_ungrab(GDK_CURRENT_TIME); ^ gcontrol.cpp:2113:37: warning: 'void gdk_pointer_ungrab(guint32)' is deprecated (declared at /usr/include/gtk-3.0/gdk/gdkmain.h:102): Use 'gdk_device_ungrab' instead [-Wdeprecated-declarations] gdk_pointer_ungrab(GDK_CURRENT_TIME); ^ gcontrol.cpp:2114:2: warning: 'void gdk_keyboard_ungrab(guint32)' is deprecated (declared at /usr/include/gtk-3.0/gdk/gdkmain.h:104): Use 'gdk_device_ungrab' instead [-Wdeprecated-declarations] gdk_keyboard_ungrab(GDK_CURRENT_TIME); ^ gcontrol.cpp:2114:38: warning: 'void gdk_keyboard_ungrab(guint32)' is deprecated (declared at /usr/include/gtk-3.0/gdk/gdkmain.h:104): Use 'gdk_device_ungrab' instead [-Wdeprecated-declarations] gdk_keyboard_ungrab(GDK_CURRENT_TIME); ^ Makefile:754: recipe for target 'gb_gtk3_la-gcontrol.lo' failed make[2]: *** [gb_gtk3_la-gcontrol.lo] Error 1 make[2]: Leaving directory '/home/fabien/Documents/Developpement/trunk/gb.gtk3/src' Makefile:428: recipe for target 'all-recursive' failed make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory '/home/fabien/Documents/Developpement/trunk/gb.gtk3' Makefile:359: recipe for target 'all' failed make: *** [all] Error 2 [fabien at ...3278... gb.gtk3]$ -- Fabien Bodard From gambas at ...1... Thu Jan 2 22:39:22 2014 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Thu, 02 Jan 2014 22:39:22 +0100 Subject: [Gambas-user] Can't compile rev 6055 In-Reply-To: References: Message-ID: <52C5DC8A.7030907@...1...> Le 02/01/2014 22:29, Fabien Bodard a ?crit : > Problem on compiling gtk3 : > > GTK3 Version : 3.10.6 on Arch > It should be good with r6055! -- Beno?t Minisini From gambas at ...1... Thu Jan 2 22:39:29 2014 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Thu, 02 Jan 2014 22:39:29 +0100 Subject: [Gambas-user] Can't compile rev 6055 In-Reply-To: References: Message-ID: <52C5DC91.9040002@...1...> Le 02/01/2014 22:29, Fabien Bodard a ?crit : > Problem on compiling gtk3 : > > GTK3 Version : 3.10.6 on Arch > It should be good with r6057! -- Beno?t Minisini From gambas.fr at ...626... Thu Jan 2 22:48:30 2014 From: gambas.fr at ...626... (Fabien Bodard) Date: Thu, 2 Jan 2014 22:48:30 +0100 Subject: [Gambas-user] Can't compile rev 6055 In-Reply-To: <52C5DC91.9040002@...1...> References: <52C5DC91.9040002@...1...> Message-ID: thanks ... it's ok now 2014/1/2 Beno?t Minisini : > Le 02/01/2014 22:29, Fabien Bodard a ?crit : >> Problem on compiling gtk3 : >> >> GTK3 Version : 3.10.6 on Arch >> > > It should be good with r6057! > > -- > Beno?t Minisini > > ------------------------------------------------------------------------------ > Rapidly troubleshoot problems before they affect your business. Most IT > organizations don't have a clear picture of how application performance > affects their revenue. With AppDynamics, you get 100% visibility into your > Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! > http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -- Fabien Bodard From Karl.Reinl at ...2345... Thu Jan 2 23:20:52 2014 From: Karl.Reinl at ...2345... (Charlie Reinl) Date: Thu, 02 Jan 2014 23:20:52 +0100 Subject: [Gambas-user] GridView question Message-ID: <1388701252.3037.2.camel@...40...> oh, Michael said 'you are not alone', may be I am? Nobody ? Salut, where can I find the Row-headers.Width and Column-headers.Height, for finally place my Editor right to the cell... Or missed I something? This With GV1[GV1.Row, 1] cbxFName.Move(GV1.X + .X , GV1.Y + .Y , .Width, .Height) works well without headers. -- Amicalement Charlie From gambas at ...1... Fri Jan 3 01:19:14 2014 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Fri, 03 Jan 2014 01:19:14 +0100 Subject: [Gambas-user] GridView question In-Reply-To: <1388701252.3037.2.camel@...40...> References: <1388701252.3037.2.camel@...40...> Message-ID: <52C60202.4080109@...1...> Le 02/01/2014 23:20, Charlie Reinl a ?crit : > oh, Michael said 'you are not alone', may be I am? > Nobody ? > > > Salut, > > where can I find the Row-headers.Width and Column-headers.Height, for > finally place my Editor right to the cell... > Or missed I something? > This > > With GV1[GV1.Row, 1] > cbxFName.Move(GV1.X + .X , GV1.Y + .Y , .Width, .Height) > > works well without headers. > Look at the Rows.Width and Columns.Height properties. I thought it was not hard to find... -- Beno?t Minisini From VonZorch at ...626... Fri Jan 3 02:01:08 2014 From: VonZorch at ...626... (VonZorch) Date: Thu, 2 Jan 2014 17:01:08 -0800 (PST) Subject: [Gambas-user] Cotrols don't show. In-Reply-To: <52C5D535.7000900@...770...> References: <1388691696007-44970.post@...3046...> <52C5C2CD.5050406@...770...> <1388692823498-44973.post@...3046...> <52C5C6C8.50902@...770...> <1388694185040-44979.post@...3046...> <52C5D535.7000900@...770...> Message-ID: <1388710868529-44989.post@...3046...> I finally found the solution. "Private lblHt[11] As Label" should be Private lblHt[11] As New Label It's amazing how easy it is to fix a problem when you can access the help files. -- View this message in context: http://gambas.8142.n7.nabble.com/Cotrols-don-t-show-tp44970p44989.html Sent from the gambas-user mailing list archive at Nabble.com. From VonZorch at ...626... Fri Jan 3 03:25:34 2014 From: VonZorch at ...626... (VonZorch) Date: Thu, 2 Jan 2014 18:25:34 -0800 (PST) Subject: [Gambas-user] Controls on form do not respond. In-Reply-To: <20140102200437.GJ514@...2774...> References: <1388692124738-44971.post@...3046...> <20140102200437.GJ514@...2774...> Message-ID: <1388715934161-44990.post@...3046...> My archivers are being balky, I couldn't send the entire project. What follows is the class files for the main form and the opened form. ' Gambas class file frmMain Private Names As String[] Private Stats As New FrmStat[] Private strHtQ[2] As String Private strWtQ[2] As String Private Hx As String[] Private Wx As String[] Public Sub _new() Dim Loop1 As Byte Dim Loop2 As Byte Dim Base As Byte = 50 Dim NewStat As FrmStat Names = Split("STR,CON,DFT,AGL,SPD,INT,WILL,APR,EMP,VOI,CHA,TEK,SCI,PIO,RWA,MCA,EST,PSI,MAG") For Loop1 = 0 To 18 If Loop1 > 16 Then Base = 0 NewStat = New FrmStat(Names[Loop1], Base, Loop1, TabStrip1) Stats.Add(NewStat) Stats[Loop1].X = 0 Stats[Loop1].Y = (Loop1 + 1) * 23 If Names[Loop1] = "INT" Then Stats[Loop1].CostX = 2 If Loop1 > 16 Then Stats[Loop1].ULimit = 50 If Loop1 = 17 Then Stats[Loop1].LLimit = -50 Next cmbRace.Index = 1 strHtQ[0] = "2,172" strHtQ[1] = "2,166" spnSize_Change() End Public Sub Form_Open() End Public Sub StatChanged(Index As Byte) End Public Sub UpdateCost() Dim Cost As Integer Dim Loop1 As Byte For Loop1 = 0 To 16 Cost += Stats[Loop1].Cost Next lblCost.Text = Cost lblPointsLeft.Text = lblPoints.Text - lblCost.Text If Val(lblPointsLeft.Text) < 0 Then lblPointsLeft.Foreground = Color.Red Else lblPointsLeft.Foreground = Color.Black Endif End Public Sub spnSize_Change() Dim Ht As Float Dim S As Byte = cmbSex.Index Dim HH As String Hx = Split(strHtQ[S]) Ht = Round((spnSize.Value / Hx[0]) + Hx[1], -1) vbxMetricHT.Value = Ht tbxFeet.Text = Conversions.cm2Ft(Ht, 1) End Public Sub btnCurve_Click() frmCurve.Show End frmCurve.Class ' Gambas class file Private Ht As Float[] Private Wt As Float[] Public lblHt As New Label[] Public lblWt As New Label[] Public Sub _new() Dim Loop1 As Byte Dim This As Label This = New Label(Me) This.X = 0 This.Y = 660 This.Width = 35 This.Height = 21 This.Text = "0" This.Alignment = Align.Right lblHt.Add(This, 0) This = New Label(Me) This.X = 0 This.Y = 21 This.Width = 35 This.Height = 21 This.Alignment = Align.Right This.Text = "10" lblHt.Add(This, 10) This = New Label(Me) This.X = 677 This.Y = 0 This.Width = 35 This.Height = 21 This.Alignment = Align.Center This.Text = "10" lblHt.Add(This, 10) Draw.Begin(drwPlot) For Loop1 = 0 To 10 This = New Label(Me) This.X = 18 + (Loop1 * 66) This.Y = 0 This.Width = 35 This.Height = 21 This.Text = Str(Loop1) This.Alignment = Align.Center If Loop1 = 10 Then This.X = 677 lblWt.Add(This, 0) If Loop1 > 0 And Loop1 < 10 Then This = New Label(Me) This.X = 0 This.Y = 670 - (Loop1 * 66) This.Width = 35 This.Height = 21 This.Alignment = Align.Right This.Text = Str(Loop1) lblHt.Add(This, Loop1) Draw.Line(0, Loop1 * 66, 660, Loop1 * 66) Draw.Line(Loop1 * 66, 0, Loop1 * 66, 660) Endif Next Draw.End End Public Sub Form_Open() Dim Loop1 As Integer End Private Sub btnPlot_Click() Dim H As Float = (Ht[Ht.Count - 1] - Ht[0]) / 10 Dim W As Float = (Wt[Wt.Count - 1] - Wt[0]) / 10 Dim Loop1 As Byte For Loop1 = 0 To 10 lblHt[Loop1].Text = Str(Ht[0] + (H * Loop1)) lblWt[Loop1].Text = Str(Wt[0] + (W * Loop1)) Next End Private Sub btnSet_Click() Dim H As Float Dim W As Float If rbtEnglish.True Then H = Conversions.Ft2CM(tbxHt.Text, 1) W = Conversions.Lb2Kilo(vbxWt.Value, 1) Else H = Val(tbxHt.Text) W = vbxWt.Value Endif Ht.Add(H) Wt.Add(W) vbxCount.Value = Ht.Count tbxHt.Text = "" vbxWt.Value = 0 End I have breakpoints in every Sub, nothing catches. -- View this message in context: http://gambas.8142.n7.nabble.com/Controls-on-form-do-not-respond-tp44971p44990.html Sent from the gambas-user mailing list archive at Nabble.com. From gambas.fr at ...626... Fri Jan 3 09:26:18 2014 From: gambas.fr at ...626... (Fabien Bodard) Date: Fri, 3 Jan 2014 09:26:18 +0100 Subject: [Gambas-user] Spinner Message-ID: Is Spinner the best name for this control ?... in usual UI naming, Spinner is the same as our SpinButton. I suggest ... BulletTime, TimeShadow, WaitMe, ProgressTime, "Clepsydra", "hourglass" J'aime bien "Clepsydra" -- Fabien Bodard From gambas.fr at ...626... Fri Jan 3 09:43:59 2014 From: gambas.fr at ...626... (Fabien Bodard) Date: Fri, 3 Jan 2014 09:43:59 +0100 Subject: [Gambas-user] Spinner In-Reply-To: References: Message-ID: Quoi que : au cin?ma, un spinner est une voiture volante dans le film Blade Runner ; automobile: un spinner est un enjoliveur comportant des ?l?ments rotatifs; It's maybe not so bad ... after all 2014/1/3 Fabien Bodard : > Is Spinner the best name for this control ?... in usual UI naming, > Spinner is the same as our SpinButton. > > > > I suggest ... BulletTime, TimeShadow, WaitMe, ProgressTime, > "Clepsydra", "hourglass" > > J'aime bien "Clepsydra" > -- > Fabien Bodard -- Fabien Bodard From gambas.fr at ...626... Fri Jan 3 09:44:47 2014 From: gambas.fr at ...626... (Fabien Bodard) Date: Fri, 3 Jan 2014 09:44:47 +0100 Subject: [Gambas-user] Spinner In-Reply-To: References: Message-ID: Can we purpose multiple style for spinner decoration ? Le 3 janvier 2014 09:43, Fabien Bodard a ?crit : > Quoi que : > au cin?ma, un spinner est une voiture volante dans le film Blade Runner ; > automobile: un spinner est un enjoliveur comportant des ?l?ments rotatifs; > > It's maybe not so bad ... after all > > 2014/1/3 Fabien Bodard : >> Is Spinner the best name for this control ?... in usual UI naming, >> Spinner is the same as our SpinButton. >> >> >> >> I suggest ... BulletTime, TimeShadow, WaitMe, ProgressTime, >> "Clepsydra", "hourglass" >> >> J'aime bien "Clepsydra" >> -- >> Fabien Bodard > > > > -- > Fabien Bodard -- Fabien Bodard From gambas.fr at ...626... Fri Jan 3 10:20:12 2014 From: gambas.fr at ...626... (Fabien Bodard) Date: Fri, 3 Jan 2014 10:20:12 +0100 Subject: [Gambas-user] Controls on form do not respond. In-Reply-To: <1388715934161-44990.post@...3046...> References: <1388692124738-44971.post@...3046...> <20140102200437.GJ514@...2774...> <1388715934161-44990.post@...3046...> Message-ID: You must to be more explicit ... where is the problem ? you are lauching the MainForm and then you call ... StatForm ? where is the code of the widget you want to be active ? which one ? is it a dynamiquely created widget ? You have an incredibely too complex code ... for a Gambas one... why there is a need to store all the label instances ? can't you use a .Tag index ? 2014/1/3 VonZorch : > My archivers are being balky, I couldn't send the entire project. What > follows is the class files for the main form and the opened form. > > ' Gambas class file frmMain > > Private Names As String[] > Private Stats As New FrmStat[] > Private strHtQ[2] As String > Private strWtQ[2] As String > Private Hx As String[] > Private Wx As String[] > > > Public Sub _new() > Dim Loop1 As Byte > Dim Loop2 As Byte > Dim Base As Byte = 50 > Dim NewStat As FrmStat > Names = > Split("STR,CON,DFT,AGL,SPD,INT,WILL,APR,EMP,VOI,CHA,TEK,SCI,PIO,RWA,MCA,EST,PSI,MAG") > For Loop1 = 0 To 18 > If Loop1 > 16 Then Base = 0 > NewStat = New FrmStat(Names[Loop1], Base, Loop1, TabStrip1) > Stats.Add(NewStat) > Stats[Loop1].X = 0 > Stats[Loop1].Y = (Loop1 + 1) * 23 > If Names[Loop1] = "INT" Then Stats[Loop1].CostX = 2 > If Loop1 > 16 Then Stats[Loop1].ULimit = 50 > If Loop1 = 17 Then Stats[Loop1].LLimit = -50 > Next > cmbRace.Index = 1 > strHtQ[0] = "2,172" > strHtQ[1] = "2,166" > spnSize_Change() > End > > Public Sub Form_Open() > End > Public Sub StatChanged(Index As Byte) > > > > End > > Public Sub UpdateCost() > Dim Cost As Integer > Dim Loop1 As Byte > For Loop1 = 0 To 16 > Cost += Stats[Loop1].Cost > Next > lblCost.Text = Cost > lblPointsLeft.Text = lblPoints.Text - lblCost.Text > If Val(lblPointsLeft.Text) < 0 Then > lblPointsLeft.Foreground = Color.Red > Else > lblPointsLeft.Foreground = Color.Black > Endif > End > > Public Sub spnSize_Change() > Dim Ht As Float > Dim S As Byte = cmbSex.Index > Dim HH As String > Hx = Split(strHtQ[S]) > Ht = Round((spnSize.Value / Hx[0]) + Hx[1], -1) > vbxMetricHT.Value = Ht > tbxFeet.Text = Conversions.cm2Ft(Ht, 1) > End > > Public Sub btnCurve_Click() > frmCurve.Show > End > > frmCurve.Class > ' Gambas class file > > Private Ht As Float[] > Private Wt As Float[] > Public lblHt As New Label[] > Public lblWt As New Label[] > > Public Sub _new() > Dim Loop1 As Byte > Dim This As Label > This = New Label(Me) > This.X = 0 > This.Y = 660 > This.Width = 35 > This.Height = 21 > This.Text = "0" > This.Alignment = Align.Right > lblHt.Add(This, 0) > This = New Label(Me) > This.X = 0 > This.Y = 21 > This.Width = 35 > This.Height = 21 > This.Alignment = Align.Right > This.Text = "10" > lblHt.Add(This, 10) > This = New Label(Me) > This.X = 677 > This.Y = 0 > This.Width = 35 > This.Height = 21 > This.Alignment = Align.Center > This.Text = "10" > lblHt.Add(This, 10) > Draw.Begin(drwPlot) > For Loop1 = 0 To 10 > This = New Label(Me) > This.X = 18 + (Loop1 * 66) > This.Y = 0 > This.Width = 35 > This.Height = 21 > This.Text = Str(Loop1) > This.Alignment = Align.Center > If Loop1 = 10 Then This.X = 677 > lblWt.Add(This, 0) > If Loop1 > 0 And Loop1 < 10 Then > This = New Label(Me) > This.X = 0 > This.Y = 670 - (Loop1 * 66) > This.Width = 35 > This.Height = 21 > This.Alignment = Align.Right > This.Text = Str(Loop1) > lblHt.Add(This, Loop1) > Draw.Line(0, Loop1 * 66, 660, Loop1 * 66) > Draw.Line(Loop1 * 66, 0, Loop1 * 66, 660) > Endif > Next > Draw.End > End > > > Public Sub Form_Open() > > Dim Loop1 As Integer > > > End > Private Sub btnPlot_Click() > Dim H As Float = (Ht[Ht.Count - 1] - Ht[0]) / 10 > Dim W As Float = (Wt[Wt.Count - 1] - Wt[0]) / 10 > Dim Loop1 As Byte > For Loop1 = 0 To 10 > lblHt[Loop1].Text = Str(Ht[0] + (H * Loop1)) > lblWt[Loop1].Text = Str(Wt[0] + (W * Loop1)) > Next > > > End > > Private Sub btnSet_Click() > Dim H As Float > Dim W As Float > If rbtEnglish.True Then > H = Conversions.Ft2CM(tbxHt.Text, 1) > W = Conversions.Lb2Kilo(vbxWt.Value, 1) > Else > H = Val(tbxHt.Text) > W = vbxWt.Value > Endif > Ht.Add(H) > Wt.Add(W) > vbxCount.Value = Ht.Count > tbxHt.Text = "" > vbxWt.Value = 0 > End > > I have breakpoints in every Sub, nothing catches. > > > > -- > View this message in context: http://gambas.8142.n7.nabble.com/Controls-on-form-do-not-respond-tp44971p44990.html > Sent from the gambas-user mailing list archive at Nabble.com. > > ------------------------------------------------------------------------------ > Rapidly troubleshoot problems before they affect your business. Most IT > organizations don't have a clear picture of how application performance > affects their revenue. With AppDynamics, you get 100% visibility into your > Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! > http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -- Fabien Bodard From gambas at ...1... Fri Jan 3 13:57:08 2014 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Fri, 03 Jan 2014 13:57:08 +0100 Subject: [Gambas-user] Spinner In-Reply-To: References: Message-ID: <52C6B3A4.4080108@...1...> Le 03/01/2014 09:26, Fabien Bodard a ?crit : > Is Spinner the best name for this control ?... in usual UI naming, > Spinner is the same as our SpinButton. > > > > I suggest ... BulletTime, TimeShadow, WaitMe, ProgressTime, > "Clepsydra", "hourglass" > > J'aime bien "Clepsydra" > Spinner is the name of that widget in GTK+, so... -- Beno?t Minisini From gambas.fr at ...626... Fri Jan 3 17:25:53 2014 From: gambas.fr at ...626... (Fabien Bodard) Date: Fri, 3 Jan 2014 17:25:53 +0100 Subject: [Gambas-user] Spinner In-Reply-To: <52C6B3A4.4080108@...1...> References: <52C6B3A4.4080108@...1...> Message-ID: > > Spinner is the name of that widget in GTK+, so... > > -- > Beno?t Minisini It's ok... it was the freak of the morning -- Fabien Bodard From dquinter at ...626... Fri Jan 3 18:55:00 2014 From: dquinter at ...626... (Daniel Quintero) Date: Fri, 3 Jan 2014 11:55:00 -0600 Subject: [Gambas-user] Drag & drop from Nautilus Message-ID: Hi all I want to drag a file from Nautilus (I'm using Ubuntu) and drop it into an IconView, but I don't know how to do it. Then, I want to load the icon associated with the file extension, it's possible? Thank for any help Regards _________________________ Lic. Daniel Quintero Rojas ?Saludos desde M?xico!________ From Karl.Reinl at ...2345... Fri Jan 3 21:19:38 2014 From: Karl.Reinl at ...2345... (Charlie Reinl) Date: Fri, 03 Jan 2014 21:19:38 +0100 Subject: [Gambas-user] GridView question In-Reply-To: <52C60202.4080109@...1...> References: <1388701252.3037.2.camel@...40...> <52C60202.4080109@...1...> Message-ID: <1388780378.3376.10.camel@...40...> Am Freitag, den 03.01.2014, 01:19 +0100 schrieb Beno?t Minisini: > Look at the Rows.Width and Columns.Height properties. I thought it was > not hard to find... but it was, if you don't search 'gambas3 height of the column header' but 'gambas3 column header height' Thanks for the advice. -- Amicalement Charlie From VonZorch at ...626... Fri Jan 3 21:32:03 2014 From: VonZorch at ...626... (VonZorch) Date: Fri, 3 Jan 2014 12:32:03 -0800 (PST) Subject: [Gambas-user] Controls on form do not respond. In-Reply-To: References: <1388692124738-44971.post@...3046...> <20140102200437.GJ514@...2774...> <1388715934161-44990.post@...3046...> Message-ID: <1388781123373-44999.post@...3046...> I am calling frmCurve from frmMain, frmStat works fine. As for the Label array, I am doing an X,Y plot, the array allows me to quickly and easily change the labels text when the data range changes. I think the problem was a glitch in the form editor. I tried to use an inelegant brute force approach and write it as a separate application. When I added frmCurve from the main project it didn't work there. I started the Curve project over, made the exact same form and used the same code and it works properly even when brought back into the main project. Thanks to everybody for the suggestions. -- View this message in context: http://gambas.8142.n7.nabble.com/Controls-on-form-do-not-respond-tp44971p44999.html Sent from the gambas-user mailing list archive at Nabble.com. From wally at ...2037... Sat Jan 4 05:33:56 2014 From: wally at ...2037... (wally) Date: Sat, 04 Jan 2014 05:33:56 +0100 Subject: [Gambas-user] start GB3 from prefix=... Message-ID: <2535799.eRaWWoiZeE@...3040...> Hi, let say i used ./configure --prefix=/opt/gambas3svn -C during build process. How to start IDE of this version from this location ? /opt/gambas3svn/bin> ./gambas3 [2] Cannot load class 'Shortcut': Unable to load class file. FMain.FMain.0 /opt/gambas3svn/bin> ./gambas3.gambas [2] Cannot load class 'Shortcut': Unable to load class file. FMain.FMain.0 wally From greg.raffaelle at ...2755... Sat Jan 4 12:04:17 2014 From: greg.raffaelle at ...2755... (Greg Raffaelle) Date: Sat, 04 Jan 2014 05:04:17 -0600 Subject: [Gambas-user] Forcenewpage in report component Message-ID: <52C7EAB1.8040903@...2755...> I am having a problem getting automatic page numbers on a report using the new "Forcenewpage" setting in the report component. My report consists of X number of pages with tables that are repeated Y number of times with new data each time (the report is then X times Y pages long). For example a report may consist of two pages of data in tables that are repeated three times to create a six page report. The page numbers now only show up on the last X number of pages in the report (the last two pages in the example - the first four pages do not get numbered). Any help fixing this would be appreciated. I have attached the class and report files for the code used to create the report. Thanks, Greg -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: OutputReport.class URL: -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: OutputReport.report URL: From gambas.fr at ...626... Sat Jan 4 16:53:50 2014 From: gambas.fr at ...626... (Fabien Bodard) Date: Sat, 4 Jan 2014 16:53:50 +0100 Subject: [Gambas-user] Forcenewpage in report component In-Reply-To: <52C7EAB1.8040903@...2755...> References: <52C7EAB1.8040903@...2755...> Message-ID: Le 4 janv. 2014 06:05, "Greg Raffaelle" a ?crit : > > I am having a problem getting automatic page numbers on a report using the new "Forcenewpage" setting in the report component. > > My report consists of X number of pages with tables that are repeated Y number of times with new data each time (the report is then X times Y pages long). For example a report may consist of two pages of data in tables that are repeated three times to create a six page report. The page numbers now only show up on the last X number of pages in the report (the last two pages in the example - the first four pages do not get numbered). > > Any help fixing this would be appreciated. I have attached the class and report files for the code used to create the report. > > Thanks, > I will take a look From gambas.fr at ...626... Sat Jan 4 20:14:55 2014 From: gambas.fr at ...626... (Fabien Bodard) Date: Sat, 4 Jan 2014 20:14:55 +0100 Subject: [Gambas-user] Drag & drop from Nautilus In-Reply-To: References: Message-ID: Yes I will send you an example Le 3 janv. 2014 18:56, "Daniel Quintero" a ?crit : > Hi all > > I want to drag a file from Nautilus (I'm using Ubuntu) and drop it > into an IconView, but I don't know how to do it. > > Then, I want to load the icon associated with the file extension, it's > possible? > > Thank for any help > > Regards > > _________________________ > Lic. Daniel Quintero Rojas > > ?Saludos desde M?xico!________ > > > ------------------------------------------------------------------------------ > Rapidly troubleshoot problems before they affect your business. Most IT > organizations don't have a clear picture of how application performance > affects their revenue. With AppDynamics, you get 100% visibility into your > Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics > Pro! > http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas.fr at ...626... Sat Jan 4 21:21:51 2014 From: gambas.fr at ...626... (Fabien Bodard) Date: Sat, 4 Jan 2014 21:21:51 +0100 Subject: [Gambas-user] Forcenewpage in report component In-Reply-To: References: <52C7EAB1.8040903@...2755...> Message-ID: can you send me a pdf with the output ? 2014/1/4 Fabien Bodard : > > Le 4 janv. 2014 06:05, "Greg Raffaelle" a ?crit : > > >> >> I am having a problem getting automatic page numbers on a report using the >> new "Forcenewpage" setting in the report component. >> >> My report consists of X number of pages with tables that are repeated Y >> number of times with new data each time (the report is then X times Y pages >> long). For example a report may consist of two pages of data in tables that >> are repeated three times to create a six page report. The page numbers now >> only show up on the last X number of pages in the report (the last two pages >> in the example - the first four pages do not get numbered). >> >> Any help fixing this would be appreciated. I have attached the class and >> report files for the code used to create the report. >> >> Thanks, >> > > I will take a look -- Fabien Bodard From gambas.fr at ...626... Sat Jan 4 21:54:01 2014 From: gambas.fr at ...626... (Fabien Bodard) Date: Sat, 4 Jan 2014 21:54:01 +0100 Subject: [Gambas-user] Drag & drop from Nautilus In-Reply-To: References: Message-ID: This is the demo 2014/1/4 Fabien Bodard : > Yes I will send you an example > > Le 3 janv. 2014 18:56, "Daniel Quintero" a ?crit : > >> Hi all >> >> I want to drag a file from Nautilus (I'm using Ubuntu) and drop it >> into an IconView, but I don't know how to do it. >> >> Then, I want to load the icon associated with the file extension, it's >> possible? >> >> Thank for any help >> >> Regards >> >> _________________________ >> Lic. Daniel Quintero Rojas >> >> ?Saludos desde M?xico!________ >> >> >> ------------------------------------------------------------------------------ >> Rapidly troubleshoot problems before they affect your business. Most IT >> organizations don't have a clear picture of how application performance >> affects their revenue. With AppDynamics, you get 100% visibility into your >> Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics >> Pro! >> >> http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk >> _______________________________________________ >> 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: DemoDD-0.0.1.tar.gz Type: application/x-gzip Size: 5234 bytes Desc: not available URL: From greg.raffaelle at ...2755... Sun Jan 5 08:14:44 2014 From: greg.raffaelle at ...2755... (Greg Raffaelle) Date: Sun, 05 Jan 2014 01:14:44 -0600 Subject: [Gambas-user] Forcenewpage in report component - part 2 of 2 Message-ID: <52C90664.3000101@...2755...> Remaining three pages of sample report pdf. Thanks, Greg -------------- next part -------------- A non-text attachment was scrubbed... Name: report_pages4-6.pdf Type: application/pdf Size: 327099 bytes Desc: not available URL: From greg.raffaelle at ...2755... Sun Jan 5 08:20:53 2014 From: greg.raffaelle at ...2755... (Greg Raffaelle) Date: Sun, 05 Jan 2014 01:20:53 -0600 Subject: [Gambas-user] Forcenewpage in report component - part 1 of 2 Message-ID: <52C907D5.9000608@...2755...> Attached is a pdf of the first three pages of a sample report using the Forcenewpage setting. I had to break the report into two parts because of file size limitations. I will send the last 3 pages in the next message. Notice only page numbers are shown on pages 5 and 6. I appreciate the assistance. Thanks, Greg -------------- next part -------------- A non-text attachment was scrubbed... Name: report_pages1-3.pdf Type: application/pdf Size: 373331 bytes Desc: not available URL: From dquinter at ...626... Sun Jan 5 02:55:02 2014 From: dquinter at ...626... (Daniel Quintero) Date: Sat, 4 Jan 2014 19:55:02 -0600 Subject: [Gambas-user] Drag & drop from Nautilus In-Reply-To: References: Message-ID: Oh :D Thanks a lot _________________________ Lic. Daniel Quintero Rojas ?Saludos desde M?xico!________ On Sat, Jan 4, 2014 at 2:54 PM, Fabien Bodard wrote: > This is the demo > > 2014/1/4 Fabien Bodard : >> Yes I will send you an example >> >> Le 3 janv. 2014 18:56, "Daniel Quintero" a ?crit : >> >>> Hi all >>> >>> I want to drag a file from Nautilus (I'm using Ubuntu) and drop it >>> into an IconView, but I don't know how to do it. >>> >>> Then, I want to load the icon associated with the file extension, it's >>> possible? >>> >>> Thank for any help >>> >>> Regards >>> >>> _________________________ >>> Lic. Daniel Quintero Rojas >>> >>> ?Saludos desde M?xico!________ >>> >>> >>> ------------------------------------------------------------------------------ >>> Rapidly troubleshoot problems before they affect your business. Most IT >>> organizations don't have a clear picture of how application performance >>> affects their revenue. With AppDynamics, you get 100% visibility into your >>> Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics >>> Pro! >>> >>> http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk >>> _______________________________________________ >>> Gambas-user mailing list >>> Gambas-user at lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > -- > Fabien Bodard > > ------------------------------------------------------------------------------ > Rapidly troubleshoot problems before they affect your business. Most IT > organizations don't have a clear picture of how application performance > affects their revenue. With AppDynamics, you get 100% visibility into your > Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! > http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...2524... Sun Jan 5 10:44:43 2014 From: gambas at ...2524... (gambas at ...2524...) Date: Sun, 05 Jan 2014 09:44:43 +0000 Subject: [Gambas-user] Issue 491 in gambas: LIKE operator bug again In-Reply-To: <6-6813199134517018827-7703999629376476177-gambas=googlecode.com@...2524...> References: <6-6813199134517018827-7703999629376476177-gambas=googlecode.com@...2524...> <0-6813199134517018827-7703999629376476177-gambas=googlecode.com@...2524...> Message-ID: <7-6813199134517018827-7703999629376476177-gambas=googlecode.com@...2524...> Updates: Status: Fixed Comment #7 on issue 491 by benoit.m... at ...626...: LIKE operator bug again http://code.google.com/p/gambas/issues/detail?id=491 Happy new year! -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From gambas at ...2524... Sun Jan 5 10:48:03 2014 From: gambas at ...2524... (gambas at ...2524...) Date: Sun, 05 Jan 2014 09:48:03 +0000 Subject: [Gambas-user] Issue 355 in gambas: gb.gtk still uses gtk2 In-Reply-To: <3-6813199134517018827-2755329248504962869-gambas=googlecode.com@...2524...> References: <3-6813199134517018827-2755329248504962869-gambas=googlecode.com@...2524...> <0-6813199134517018827-2755329248504962869-gambas=googlecode.com@...2524...> Message-ID: <4-6813199134517018827-2755329248504962869-gambas=googlecode.com@...2524...> Updates: Status: Started Comment #4 on issue 355 by benoit.m... at ...626...: gb.gtk still uses gtk2 http://code.google.com/p/gambas/issues/detail?id=355 (No comment was entered for this change.) -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From gambas at ...2524... Sun Jan 5 10:49:03 2014 From: gambas at ...2524... (gambas at ...2524...) Date: Sun, 05 Jan 2014 09:49:03 +0000 Subject: [Gambas-user] Issue 412 in gambas: Wish: Add a "picture" property to the panel container In-Reply-To: <0-6813199134517018827-11404429258308187080-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-11404429258308187080-gambas=googlecode.com@...2524...> Message-ID: <1-6813199134517018827-11404429258308187080-gambas=googlecode.com@...2524...> Updates: Labels: -Version -Type-Bug Version-TRUNK Type-Enhancement Comment #1 on issue 412 by benoit.m... at ...626...: Wish: Add a "picture" property to the panel container http://code.google.com/p/gambas/issues/detail?id=412 (No comment was entered for this change.) -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From gambas.fr at ...626... Sun Jan 5 11:45:57 2014 From: gambas.fr at ...626... (Fabien Bodard) Date: Sun, 5 Jan 2014 11:45:57 +0100 Subject: [Gambas-user] Forcenewpage in report component - part 1 of 2 In-Reply-To: <52C907D5.9000608@...2755...> References: <52C907D5.9000608@...2755...> Message-ID: there is a bug 2014/1/5 Greg Raffaelle : > Attached is a pdf of the first three pages of a sample report using the > Forcenewpage setting. I had to break the report into two parts because of > file size limitations. I will send the last 3 pages in the next message. > Notice only page numbers are shown on pages 5 and 6. > > I appreciate the assistance. > > Thanks, > Greg > > > > > > > > ------------------------------------------------------------------------------ > Rapidly troubleshoot problems before they affect your business. Most IT > organizations don't have a clear picture of how application performance > affects their revenue. With AppDynamics, you get 100% visibility into your > Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics > Pro! > http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Fabien Bodard From gambas at ...2524... Sun Jan 5 11:51:10 2014 From: gambas at ...2524... (gambas at ...2524...) Date: Sun, 05 Jan 2014 10:51:10 +0000 Subject: [Gambas-user] Issue 428 in gambas: Combobox doesn't change foreground colour using gb.qt4 In-Reply-To: <3-6813199134517018827-9022443989513455336-gambas=googlecode.com@...2524...> References: <3-6813199134517018827-9022443989513455336-gambas=googlecode.com@...2524...> <0-6813199134517018827-9022443989513455336-gambas=googlecode.com@...2524...> Message-ID: <4-6813199134517018827-9022443989513455336-gambas=googlecode.com@...2524...> Updates: Status: Fixed Comment #4 on issue 428 by benoit.m... at ...626...: Combobox doesn't change foreground colour using gb.qt4 http://code.google.com/p/gambas/issues/detail?id=428 Finally fixed in revision #6062. -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From shordi at ...626... Sun Jan 5 12:06:16 2014 From: shordi at ...626... (=?ISO-8859-1?Q?Jorge_Carri=F3n?=) Date: Sun, 5 Jan 2014 12:06:16 +0100 Subject: [Gambas-user] Drag & drop from Nautilus In-Reply-To: References: Message-ID: Thanks Fabien. I've been searching the way to do this for a long time. Regards. 2014/1/4 Fabien Bodard > This is the demo > > 2014/1/4 Fabien Bodard : > > Yes I will send you an example > > > > Le 3 janv. 2014 18:56, "Daniel Quintero" a ?crit : > > > >> Hi all > >> > >> I want to drag a file from Nautilus (I'm using Ubuntu) and drop it > >> into an IconView, but I don't know how to do it. > >> > >> Then, I want to load the icon associated with the file extension, it's > >> possible? > >> > >> Thank for any help > >> > >> Regards > >> > >> _________________________ > >> Lic. Daniel Quintero Rojas > >> > >> ?Saludos desde M?xico!________ > >> > >> > >> > ------------------------------------------------------------------------------ > >> Rapidly troubleshoot problems before they affect your business. Most IT > >> organizations don't have a clear picture of how application performance > >> affects their revenue. With AppDynamics, you get 100% visibility into > your > >> Java,.NET, & PHP application. Start your 15-day FREE TRIAL of > AppDynamics > >> Pro! > >> > >> > http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk > >> _______________________________________________ > >> Gambas-user mailing list > >> Gambas-user at lists.sourceforge.net > >> https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > -- > Fabien Bodard > > > ------------------------------------------------------------------------------ > Rapidly troubleshoot problems before they affect your business. Most IT > organizations don't have a clear picture of how application performance > affects their revenue. With AppDynamics, you get 100% visibility into your > Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics > Pro! > http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > From willy at ...2734... Sun Jan 5 15:15:32 2014 From: willy at ...2734... (Willy Raets) Date: Sun, 05 Jan 2014 15:15:32 +0100 Subject: [Gambas-user] gb.map question Message-ID: <1388931332.2731.19.camel@...3024...> Hi all, I have a Fmain with a MapView1. Following code gives error: "Unknown symbol in 'AddPoint' in Class '_MapLayer'" The code is from an example shown on YouTube from may 2013 and there it seems to work. This is the code I used on FMain: Public Sub _new() MapView1.Map.AddTile("OpenStreet", "http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png") MapView1.Map!OpenStreet.CopyRight = "OpenStreetMap Contributors" MapView1.Map.AddShape("MyShape") MapView1.Map!MyShape.AddPoint("Test", MapPoint(52.0, 5.10)) '<--ERROR MapView1.Map.Center = MapView1.Map!MyShape!Test.Points MapView1.Map.Zoom = 10 End Public Sub Form_Open() Me.Center End I'm using Gambas 3.4.2. Has the AddPoint symbol been added in a later Gambas version? -- Kind regards, Willy (aka gbWilly) http://gambasshowcase.org/ http://howtogambas.org http://gambos.org From gambas.fr at ...626... Sun Jan 5 22:31:15 2014 From: gambas.fr at ...626... (Fabien Bodard) Date: Sun, 5 Jan 2014 22:31:15 +0100 Subject: [Gambas-user] gb.map question In-Reply-To: <1388931332.2731.19.camel@...3024...> References: <1388931332.2731.19.camel@...3024...> Message-ID: This is a bug i have corrected later. Normally now you can us 2014/1/5 Willy Raets : > Hi all, > > I have a Fmain with a MapView1. > > Following code gives error: "Unknown symbol in 'AddPoint' in Class > '_MapLayer'" > > The code is from an example shown on YouTube from may 2013 and there it > seems to work. > > This is the code I used on FMain: > > Public Sub _new() > > MapView1.Map.AddTile("OpenStreet", > "http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png") > MapView1.Map!OpenStreet.CopyRight = "OpenStreetMap Contributors" > > MapView1.Map.AddShape("MyShape") > MapView1.Map!MyShape.AddPoint("Test", MapPoint(52.0, 5.10)) '<--ERROR > > MapView1.Map.Center = MapView1.Map!MyShape!Test.Points > MapView1.Map.Zoom = 10 > > > End > > Public Sub Form_Open() > > Me.Center > > End > > I'm using Gambas 3.4.2. Has the AddPoint symbol been added in a later > Gambas version? > > > -- > Kind regards, > > Willy (aka gbWilly) > > http://gambasshowcase.org/ > http://howtogambas.org > http://gambos.org > > > > > > ------------------------------------------------------------------------------ > Rapidly troubleshoot problems before they affect your business. Most IT > organizations don't have a clear picture of how application performance > affects their revenue. With AppDynamics, you get 100% visibility into your > Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! > http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk > _______________________________________________ > 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... Sun Jan 5 22:33:14 2014 From: gambas.fr at ...626... (Fabien Bodard) Date: Sun, 5 Jan 2014 22:33:14 +0100 Subject: [Gambas-user] gb.map question In-Reply-To: References: <1388931332.2731.19.camel@...3024...> Message-ID: You can use it on the 3.5 version AS a workaround try dim hShape as object hShape = Map!Myshape hshape.addpoint... 2014/1/5 Fabien Bodard : > This is a bug i have corrected later. Normally now you can us > > 2014/1/5 Willy Raets : >> Hi all, >> >> I have a Fmain with a MapView1. >> >> Following code gives error: "Unknown symbol in 'AddPoint' in Class >> '_MapLayer'" >> >> The code is from an example shown on YouTube from may 2013 and there it >> seems to work. >> >> This is the code I used on FMain: >> >> Public Sub _new() >> >> MapView1.Map.AddTile("OpenStreet", >> "http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png") >> MapView1.Map!OpenStreet.CopyRight = "OpenStreetMap Contributors" >> >> MapView1.Map.AddShape("MyShape") >> MapView1.Map!MyShape.AddPoint("Test", MapPoint(52.0, 5.10)) '<--ERROR >> >> MapView1.Map.Center = MapView1.Map!MyShape!Test.Points >> MapView1.Map.Zoom = 10 >> >> >> End >> >> Public Sub Form_Open() >> >> Me.Center >> >> End >> >> I'm using Gambas 3.4.2. Has the AddPoint symbol been added in a later >> Gambas version? >> >> >> -- >> Kind regards, >> >> Willy (aka gbWilly) >> >> http://gambasshowcase.org/ >> http://howtogambas.org >> http://gambos.org >> >> >> >> >> >> ------------------------------------------------------------------------------ >> Rapidly troubleshoot problems before they affect your business. Most IT >> organizations don't have a clear picture of how application performance >> affects their revenue. With AppDynamics, you get 100% visibility into your >> Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! >> http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > -- > Fabien Bodard -- Fabien Bodard From willy at ...2734... Sun Jan 5 22:42:32 2014 From: willy at ...2734... (Willy Raets) Date: Sun, 05 Jan 2014 22:42:32 +0100 Subject: [Gambas-user] gb.map question In-Reply-To: References: <1388931332.2731.19.camel@...3024...> Message-ID: <1388958152.6246.0.camel@...3024...> On Sun, 2014-01-05 at 22:31 +0100, Fabien Bodard wrote: > This is a bug i have corrected later. Normally now you can us Okay, I'll install Gambas 3.5.1 in a VM to see it work :) > > 2014/1/5 Willy Raets : > > Hi all, > > > > I have a Fmain with a MapView1. > > > > Following code gives error: "Unknown symbol in 'AddPoint' in Class > > '_MapLayer'" > > > > The code is from an example shown on YouTube from may 2013 and there it > > seems to work. > > > > This is the code I used on FMain: > > > > Public Sub _new() > > > > MapView1.Map.AddTile("OpenStreet", > > "http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png") > > MapView1.Map!OpenStreet.CopyRight = "OpenStreetMap Contributors" > > > > MapView1.Map.AddShape("MyShape") > > MapView1.Map!MyShape.AddPoint("Test", MapPoint(52.0, 5.10)) '<--ERROR > > > > MapView1.Map.Center = MapView1.Map!MyShape!Test.Points > > MapView1.Map.Zoom = 10 > > > > > > End > > > > Public Sub Form_Open() > > > > Me.Center > > > > End > > > > I'm using Gambas 3.4.2. Has the AddPoint symbol been added in a later > > Gambas version? > > > > > > -- > > Kind regards, > > > > Willy (aka gbWilly) > > > > http://gambasshowcase.org/ > > http://howtogambas.org > > http://gambos.org > > -- Kind regards, Willy (aka gbWilly) http://gambasshowcase.org/ http://howtogambas.org http://gambos.org From gambas at ...1... Sun Jan 5 23:31:01 2014 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Sun, 05 Jan 2014 23:31:01 +0100 Subject: [Gambas-user] Gambas 3.5.2 pre-release Message-ID: <52C9DD25.3070903@...1...> Hi, I have uploaded a Gambas 3.5.2 pre-release package on sourceforge, so that people can test it before the official release. http://sourceforge.net/projects/gambas/files/gambas3/gambas3-3.5.2.tar.bz2/download I tried to backport as many bug fixes as possible, so I hope nothing has been broken! So please check it and report any problem. I will update the wiki with the list of bug fixes soon. Enjoy it! Regards, -- Beno?t Minisini From vuott at ...325... Mon Jan 6 00:37:22 2014 From: vuott at ...325... (Ru Vuott) Date: Sun, 5 Jan 2014 23:37:22 +0000 (GMT) Subject: [Gambas-user] An error with gb.gtk3 by using ListBox Message-ID: <1388965042.41364.YahooMailBasic@...3269...> Hello, on a Form I have a ListBox object, and I actived gb.gtk3 component. My code is simply: Public Sub Form_Open() ListBox1.Add("Scripta manent") End Well, when I start the application, in console I obtain this warning: Gtk-WARNING **: /tmp/buildd/gtk+3.0-3.8.7~1+petra/./gtk/gtkstylecontext.c:2470: can't get style properties for non-widget class `void' '''''''''''''''''''''''''''''''''''''''''''''''' My actual system (Gambas revision #6067): [System] Gambas=3.5.90 OperatingSystem=Linux Kernel=3.11.0-12-generic Architecture=x86_64 Distribution=Linux Mint 16 Petra Desktop=GNOME Theme=QCleanlooks Language=it_IT.UTF-8 Memory=3954M [Libraries] Cairo=libcairo.so.2.11200.16 DBus=libdbus-1.so.3.7.4 GStreamer=libgstreamer-0.10.so.0.30.0 GStreamer=libgstreamer-1.0.so.0.200.0 GTK+3=libgtk-3.so.0.803.4 GTK+=libgtk-x11-2.0.so.0.2400.20 OpenGL=libGL.so.1.2.0 Poppler=libpoppler.so.43.0.0 Qt4=libQtCore.so.4.8.4 SDL=libSDL-1.2.so.0.11.4 Best regards vuott From gambas at ...1... Mon Jan 6 01:51:27 2014 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Mon, 06 Jan 2014 01:51:27 +0100 Subject: [Gambas-user] An error with gb.gtk3 by using ListBox In-Reply-To: <1388965042.41364.YahooMailBasic@...3269...> References: <1388965042.41364.YahooMailBasic@...3269...> Message-ID: <52C9FE0F.1080804@...1...> Le 06/01/2014 00:37, Ru Vuott a ?crit : > Hello, > > on a Form I have a ListBox object, and I actived gb.gtk3 component. > > My code is simply: > > Public Sub Form_Open() > > ListBox1.Add("Scripta manent") > > End > > > Well, when I start the application, in console I obtain this warning: > > Gtk-WARNING **: /tmp/buildd/gtk+3.0-3.8.7~1+petra/./gtk/gtkstylecontext.c:2470: can't get style properties for non-widget class `void' > > Crash fixed in revision #6068. But all controls written in Gambas having a border cannot draw their focus state anymore. I don't know why, but the focus frame drawn by the GTK+3 routine covers the control entirely, whereas it should just highlight the control border. -- Beno?t Minisini From ihaywood3 at ...626... Mon Jan 6 01:59:10 2014 From: ihaywood3 at ...626... (Ian Haywood) Date: Mon, 06 Jan 2014 11:59:10 +1100 Subject: [Gambas-user] debian repository: another try Message-ID: <52C9FFDE.1080309@...626...> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 I have had another go at a repository for debian packages add the following lines to /etc/apt/sources.list deb ftp://ozdocit.org/pub/ gambas3 main deb-src ftp://ozdocit.org/pub/ gambas3 main it contains version 3.5.1-1.1, which has a couple of bugfixes on the version currently in debian (3.5.1-1) please let me know if there are any problems builds for i386 and amd64 are available. Ian -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iD8DBQFSyf/eKPy8UudQZS4RAoc6AJ9DNSTrYDHzRKbDmNYQc2eTR1Jn4ACfY7kk 7PWUhQDUVk8Ey2C1PJrF41U= =OpNc -----END PGP SIGNATURE----- From wally at ...2037... Mon Jan 6 18:21:57 2014 From: wally at ...2037... (wally) Date: Mon, 06 Jan 2014 18:21:57 +0100 Subject: [Gambas-user] gbx3: unable to find startup file Message-ID: <19030413.8xQljfYuOg@...3040...> Hi, got problem with OpenSuse repository installation 3.5.1 > gambas3 what is a clever first step to fix this problem ? thx wally From wally at ...2037... Mon Jan 6 18:27:42 2014 From: wally at ...2037... (wally) Date: Mon, 06 Jan 2014 18:27:42 +0100 Subject: [Gambas-user] gbx3: unable to find startup file In-Reply-To: <19030413.8xQljfYuOg@...3040...> References: <19030413.8xQljfYuOg@...3040...> Message-ID: <2528127.pa7ZEhsz7U@...3040...> On Monday 06 January 2014 18:21:57 wally wrote: > Hi, > > got problem with OpenSuse repository installation 3.5.1 > > gambas3 > gbx3: unable to find startup file > what is a clever first step to fix this problem ? > > thx wally > > ---------------------------------------------------------------------------- > -- Rapidly troubleshoot problems before they affect your business. Most IT > organizations don't have a clear picture of how application performance > affects their revenue. With AppDynamics, you get 100% visibility into your > Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics > Pro! > http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user sorry ! > gambas 3 gbx3: unable to find startup file From gambas at ...1... Mon Jan 6 18:35:18 2014 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Mon, 06 Jan 2014 18:35:18 +0100 Subject: [Gambas-user] Solving the Gambas packaging problem psychologically (!) Message-ID: <52CAE956.4050001@...1...> Yeah, great mail subject! I think it will be more difficult for Linux distributions to fail packaging Gambas correctly if there is a useful tool made in Gambas (other than the IDE) that will be integrated inside package repositories because people use it. What do you think about that? Do you think that extracting the image editor of the IDE and make a simple but powerful "Paint" program from it could be a good idea? That tool should be QT4/GTK+ agnostic of course. Regards, -- Beno?t Minisini From matti.eber at ...3240... Mon Jan 6 19:02:43 2014 From: matti.eber at ...3240... (Matti) Date: Mon, 06 Jan 2014 19:02:43 +0100 Subject: [Gambas-user] gbx3: unable to find startup file In-Reply-To: <2528127.pa7ZEhsz7U@...3040...> References: <19030413.8xQljfYuOg@...3040...> <2528127.pa7ZEhsz7U@...3040...> Message-ID: <52CAEFC3.7020204@...3240...> Which repository do you use? Here, with http://download.opensuse.org/repositories/Education/openSUSE_12.3/ there are no problems with the last updates of 3.5.1. Am 06.01.2014 18:27, schrieb wally: > On Monday 06 January 2014 18:21:57 wally wrote: >> Hi, >> >> got problem with OpenSuse repository installation 3.5.1 >>> gambas3 >> gbx3: unable to find startup file >> what is a clever first step to fix this problem ? >> >> thx wally >> >> ---------------------------------------------------------------------------- >> -- Rapidly troubleshoot problems before they affect your business. Most IT >> organizations don't have a clear picture of how application performance >> affects their revenue. With AppDynamics, you get 100% visibility into your >> Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics >> Pro! >> http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user > sorry ! > >> gambas 3 > gbx3: unable to find startup file > > > > > > ------------------------------------------------------------------------------ > Rapidly troubleshoot problems before they affect your business. Most IT > organizations don't have a clear picture of how application performance > affects their revenue. With AppDynamics, you get 100% visibility into your > Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! > http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From wally at ...2037... Mon Jan 6 19:40:13 2014 From: wally at ...2037... (wally) Date: Mon, 06 Jan 2014 19:40:13 +0100 Subject: [Gambas-user] gbx3: unable to find startup file In-Reply-To: <52CAEFC3.7020204@...3240...> References: <19030413.8xQljfYuOg@...3040...> <2528127.pa7ZEhsz7U@...3040...> <52CAEFC3.7020204@...3240...> Message-ID: <2902481.xmeU4oMaie@...3040...> I used : http://download.opensuse.org/repositories/home:/munix9:/gambas/openSUSE_13.1/ because its only repo i know which provides alure libs and devel for the svn version to build gb.openal. I removed and the Edu -repo works now again thx On Monday 06 January 2014 19:02:43 Matti wrote: > Which repository do you use? > Here, with > http://download.opensuse.org/repositories/Education/openSUSE_12.3/ > there are no problems with the last updates of 3.5.1. > > Am 06.01.2014 18:27, schrieb wally: > > On Monday 06 January 2014 18:21:57 wally wrote: > >> Hi, > >> > >> got problem with OpenSuse repository installation 3.5.1 > >> > >>> gambas3 > >> > >> gbx3: unable to find startup file > >> what is a clever first step to fix this problem ? > >> > >> thx wally > >> > >> ------------------------------------------------------------------------- > >> --- -- Rapidly troubleshoot problems before they affect your business. > >> Most IT organizations don't have a clear picture of how application > >> performance affects their revenue. With AppDynamics, you get 100% > >> visibility into your Java,.NET, & PHP application. Start your 15-day > >> FREE TRIAL of AppDynamics Pro! > >> http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clkt > >> rk > >> _______________________________________________ > >> Gambas-user mailing list > >> Gambas-user at lists.sourceforge.net > >> https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > sorry ! > > > >> gambas 3 > > > > gbx3: unable to find startup file > > > > > > > > > > > > -------------------------------------------------------------------------- > > ---- Rapidly troubleshoot problems before they affect your business. Most > > IT organizations don't have a clear picture of how application > > performance affects their revenue. With AppDynamics, you get 100% > > visibility into your Java,.NET, & PHP application. Start your 15-day FREE > > TRIAL of AppDynamics Pro! > > http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clkt > > rk _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > ---------------------------------------------------------------------------- > -- Rapidly troubleshoot problems before they affect your business. Most IT > organizations don't have a clear picture of how application performance > affects their revenue. With AppDynamics, you get 100% visibility into your > Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics > Pro! > http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From matti.eber at ...3240... Mon Jan 6 19:49:12 2014 From: matti.eber at ...3240... (Matti) Date: Mon, 06 Jan 2014 19:49:12 +0100 Subject: [Gambas-user] gbx3: unable to find startup file In-Reply-To: <2902481.xmeU4oMaie@...3040...> References: <19030413.8xQljfYuOg@...3040...> <2528127.pa7ZEhsz7U@...3040...> <52CAEFC3.7020204@...3240...> <2902481.xmeU4oMaie@...3040...> Message-ID: <52CAFAA8.4020605@...3240...> Yes, it's strange: sometimes the one repo works, sometimes the other. And sometimes both don't work... Am 06.01.2014 19:40, schrieb wally: > > I used : > http://download.opensuse.org/repositories/home:/munix9:/gambas/openSUSE_13.1/ > > because its only repo i know which provides alure libs and devel for the svn > version to build gb.openal. > > I removed and the Edu -repo works now again > > thx > > > On Monday 06 January 2014 19:02:43 Matti wrote: >> Which repository do you use? >> Here, with >> http://download.opensuse.org/repositories/Education/openSUSE_12.3/ >> there are no problems with the last updates of 3.5.1. >> >> Am 06.01.2014 18:27, schrieb wally: >>> On Monday 06 January 2014 18:21:57 wally wrote: >>>> Hi, >>>> >>>> got problem with OpenSuse repository installation 3.5.1 >>>> >>>>> gambas3 >>>> gbx3: unable to find startup file >>>> what is a clever first step to fix this problem ? >>>> >>>> thx wally >>>> >>>> ------------------------------------------------------------------------- >>>> --- -- Rapidly troubleshoot problems before they affect your business. >>>> Most IT organizations don't have a clear picture of how application >>>> performance affects their revenue. With AppDynamics, you get 100% >>>> visibility into your Java,.NET, & PHP application. Start your 15-day >>>> FREE TRIAL of AppDynamics Pro! >>>> http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clkt >>>> rk >>>> _______________________________________________ >>>> Gambas-user mailing list >>>> Gambas-user at lists.sourceforge.net >>>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>> sorry ! >>> >>>> gambas 3 >>> gbx3: unable to find startup file >>> >>> >>> >>> >>> >>> -------------------------------------------------------------------------- >>> ---- Rapidly troubleshoot problems before they affect your business. Most >>> IT organizations don't have a clear picture of how application >>> performance affects their revenue. With AppDynamics, you get 100% >>> visibility into your Java,.NET, & PHP application. Start your 15-day FREE >>> TRIAL of AppDynamics Pro! >>> http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clkt >>> rk _______________________________________________ >>> Gambas-user mailing list >>> Gambas-user at lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/gambas-user >> ---------------------------------------------------------------------------- >> -- Rapidly troubleshoot problems before they affect your business. Most IT >> organizations don't have a clear picture of how application performance >> affects their revenue. With AppDynamics, you get 100% visibility into your >> Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics >> Pro! >> http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user > > ------------------------------------------------------------------------------ > Rapidly troubleshoot problems before they affect your business. Most IT > organizations don't have a clear picture of how application performance > affects their revenue. With AppDynamics, you get 100% visibility into your > Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! > http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas.fr at ...626... Mon Jan 6 21:28:18 2014 From: gambas.fr at ...626... (Fabien Bodard) Date: Mon, 6 Jan 2014 21:28:18 +0100 Subject: [Gambas-user] Solving the Gambas packaging problem psychologically (!) In-Reply-To: <52CAE956.4050001@...1...> References: <52CAE956.4050001@...1...> Message-ID: hum ... yes it can be an idea... but it must be a tip top tool 2014/1/6 Beno?t Minisini : > Yeah, great mail subject! > > I think it will be more difficult for Linux distributions to fail > packaging Gambas correctly if there is a useful tool made in Gambas > (other than the IDE) that will be integrated inside package repositories > because people use it. > > What do you think about that? > > Do you think that extracting the image editor of the IDE and make a > simple but powerful "Paint" program from it could be a good idea? > > That tool should be QT4/GTK+ agnostic of course. > > Regards, > > -- > Beno?t Minisini > > ------------------------------------------------------------------------------ > Rapidly troubleshoot problems before they affect your business. Most IT > organizations don't have a clear picture of how application performance > affects their revenue. With AppDynamics, you get 100% visibility into your > Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! > http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -- Fabien Bodard From dl7nb at ...17... Tue Jan 7 11:45:26 2014 From: dl7nb at ...17... (Wolfgang) Date: Tue, 07 Jan 2014 11:45:26 +0100 Subject: [Gambas-user] Memory leak... Message-ID: <52CBDAC6.1080400@...17...> Hello all, I am using Gambas 3.5.1 on a Ubuntu 12.04.3 LTS system with 2Gb of RAM. I made a short example to show my problem. Not a very useful code, but it shows my problem! In the form I habe a Button called "ButtonStart" and a Picturebox1. Here is the code: Public Img As New Image Public Sub ButtonStart_Click() Img.Clear Img = Image.Load("data/img.png") PictureBox1.Picture = Img.picture End Every time I click the button an image is loaded (Size is app. 465kB) and it is shown in the Picturebox1. That is working fine, but for this image of 465Kb Gambas needs app. 1.3Mb. I could easily live with that, but when I click again I could get nuts: Img.clear "Clears the image". That should implement that the memory in no longer allocated and released! But it does not work as I expect. (??) And thus the memory is very soon gone and the program crashes! How can I release the memory??? I tired this problem with "Picture" instead of "Image". Even Picture.flush brought the same results. Of course I have used Google already. What I found was that the problem is/was known and solved. What am I doing wrong?????? Thank you for reading! Wolfgang From gambas at ...1... Tue Jan 7 11:50:57 2014 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Tue, 07 Jan 2014 11:50:57 +0100 Subject: [Gambas-user] Memory leak... In-Reply-To: <52CBDAC6.1080400@...17...> References: <52CBDAC6.1080400@...17...> Message-ID: <52CBDC11.7020006@...1...> Le 07/01/2014 11:45, Wolfgang a ?crit : > Hello all, > > I am using Gambas 3.5.1 on a Ubuntu 12.04.3 LTS system with 2Gb of RAM. > > I made a short example to show my problem. Not a very useful code, but > it shows my problem! > > In the form I habe a Button called "ButtonStart" and a Picturebox1. > > Here is the code: > > Public Img As New Image > > Public Sub ButtonStart_Click() > Img.Clear > Img = Image.Load("data/img.png") > PictureBox1.Picture = Img.picture > End > > Every time I click the button an image is loaded (Size is app. 465kB) > and it is shown in the Picturebox1. > That is working fine, but for this image of 465Kb Gambas needs app. 1.3Mb. > I could easily live with that, but when I click again I could get nuts: > > Img.clear "Clears the image". That should implement that the memory in > no longer allocated and released! But it does not work as I expect. (??) > > And thus the memory is very soon gone and the program crashes! > > > How can I release the memory??? > > I tired this problem with "Picture" instead of "Image". Even > Picture.flush brought the same results. > > Of course I have used Google already. What I found was that the problem > is/was known and solved. > > What am I doing wrong?????? > > Thank you for reading! > > Wolfgang > Please send your project even if it is obvious. Thanks. -- Beno?t Minisini From bbruen at ...2308... Tue Jan 7 12:08:14 2014 From: bbruen at ...2308... (Bruce) Date: Tue, 07 Jan 2014 21:38:14 +1030 Subject: [Gambas-user] Solving the Gambas packaging problem psychologically (!) In-Reply-To: <52CAE956.4050001@...1...> References: <52CAE956.4050001@...1...> Message-ID: <1389092894.26248.20.camel@...2688...> On Mon, 2014-01-06 at 18:35 +0100, Beno?t Minisini wrote: > Yeah, great mail subject! > > I think it will be more difficult for Linux distributions to fail > packaging Gambas correctly if there is a useful tool made in Gambas > (other than the IDE) that will be integrated inside package repositories > because people use it. > > What do you think about that? > > Do you think that extracting the image editor of the IDE and make a > simple but powerful "Paint" program from it could be a good idea? > > That tool should be QT4/GTK+ agnostic of course. > > Regards, > No matter how many times I have tried to reply to this, I keep coming back to this diagram : http://gambas.sourceforge.net/architecture.png Which is beautiful. But, it begs the question, "which bit are we trying to create a tool for"? B From dl7nb at ...17... Tue Jan 7 12:46:02 2014 From: dl7nb at ...17... (Wolfgang) Date: Tue, 07 Jan 2014 12:46:02 +0100 Subject: [Gambas-user] Memory leak... In-Reply-To: <52CBDAC6.1080400@...17...> References: <52CBDAC6.1080400@...17...> Message-ID: <52CBE8FA.8090901@...17...> Hello Beno?t, I have sent it, but it says: "Your mail to 'Gambas-user' with the subject Re: [Gambas-user] Memory leak... Is being held until the list moderator can review it for approval." Wolfgang From eilert-sprachen at ...221... Tue Jan 7 13:17:49 2014 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Tue, 07 Jan 2014 13:17:49 +0100 Subject: [Gambas-user] Solving the Gambas packaging problem psychologically (!) In-Reply-To: <52CAE956.4050001@...1...> References: <52CAE956.4050001@...1...> Message-ID: <52CBF06D.5040304@...221...> Am 06.01.2014 18:35, schrieb Beno?t Minisini: > Yeah, great mail subject! > > I think it will be more difficult for Linux distributions to fail > packaging Gambas correctly if there is a useful tool made in Gambas > (other than the IDE) that will be integrated inside package repositories > because people use it. > > What do you think about that? > > Do you think that extracting the image editor of the IDE and make a > simple but powerful "Paint" program from it could be a good idea? > > That tool should be QT4/GTK+ agnostic of course. > > Regards, > Hmmm - if you think of graphics, what about a tool like TerraGen / TerraMaker? I know it's been made with VB, and a lot of people use it for designing landscapes. TerraMaker has an export to POV and Blender, so this would be something similar to our universe. At least this is not #600 image editing software :) And if not graphics, what about a tool for serial letters which simply runs reliably (in contrary to the usual text crunchers available)? It could include an easy-to-operate interface to different data sources (from simple tables to database etc.) and combine these with a text (from the richtext editor) to PDF output. Regards Rolf From gambas at ...1... Tue Jan 7 13:29:37 2014 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Tue, 07 Jan 2014 13:29:37 +0100 Subject: [Gambas-user] Solving the Gambas packaging problem psychologically (!) In-Reply-To: <52CBF06D.5040304@...221...> References: <52CAE956.4050001@...1...> <52CBF06D.5040304@...221...> Message-ID: <52CBF331.5060906@...1...> Le 07/01/2014 13:17, Rolf-Werner Eilert a ?crit : > > > Am 06.01.2014 18:35, schrieb Beno?t Minisini: >> Yeah, great mail subject! >> >> I think it will be more difficult for Linux distributions to fail >> packaging Gambas correctly if there is a useful tool made in Gambas >> (other than the IDE) that will be integrated inside package repositories >> because people use it. >> >> What do you think about that? >> >> Do you think that extracting the image editor of the IDE and make a >> simple but powerful "Paint" program from it could be a good idea? >> >> That tool should be QT4/GTK+ agnostic of course. >> >> Regards, >> > > Hmmm - if you think of graphics, what about a tool like TerraGen / > TerraMaker? I know it's been made with VB, and a lot of people use it > for designing landscapes. TerraMaker has an export to POV and Blender, > so this would be something similar to our universe. At least this is not > #600 image editing software :) > > And if not graphics, what about a tool for serial letters which simply > runs reliably (in contrary to the usual text crunchers available)? It > could include an easy-to-operate interface to different data sources > (from simple tables to database etc.) and combine these with a text > (from the richtext editor) to PDF output. > > Regards > Rolf > Well... I have no idea of you are talking about, but it seems great. :-) As for the 601th image editor, there is no simple image editor on Linux that I like. What I did in the IDE is sort of one I want, but not perfect yet. -- Beno?t Minisini From nemh at ...2007... Tue Jan 7 14:21:19 2014 From: nemh at ...2007... (=?ISO-8859-1?Q?Kende_Kriszti=E1n?=) Date: Tue, 07 Jan 2014 14:21:19 +0100 Subject: [Gambas-user] Gambas 3.5.2 pre-release In-Reply-To: <52C9DD25.3070903@...1...> References: <52C9DD25.3070903@...1...> Message-ID: <52CBFF4F.5040906@...2007...> 2014-01-05 23:31 keltez?ssel, Beno?t Minisini ?rta: > Hi, > > I have uploaded a Gambas 3.5.2 pre-release package on sourceforge, so > that people can test it before the official release. > > http://sourceforge.net/projects/gambas/files/gambas3/gambas3-3.5.2.tar.bz2/download > > I tried to backport as many bug fixes as possible, so I hope nothing has > been broken! So please check it and report any problem. > > I will update the wiki with the list of bug fixes soon. > > Enjoy it! > > Regards, > I found this Like operator bug: Print " " Like " " or Print "a a" Like "* *" or... with double space Output: False From nemh at ...2007... Tue Jan 7 14:26:38 2014 From: nemh at ...2007... (=?ISO-8859-1?Q?Kende_Kriszti=E1n?=) Date: Tue, 07 Jan 2014 14:26:38 +0100 Subject: [Gambas-user] Gambas 3.5.2 pre-release In-Reply-To: <52CBFF4F.5040906@...2007...> References: <52C9DD25.3070903@...1...> <52CBFF4F.5040906@...2007...> Message-ID: <52CC008E.7080802@...2007...> 2014-01-07 14:21 keltez?ssel, Kende Kriszti?n ?rta: > I found this Like operator bug: > > Print " " Like " " With double space: Print " " Like " " > > or > > Print "a a" Like "* *" > > or... with double space > > Output: False > From gambas at ...1... Tue Jan 7 14:28:20 2014 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Tue, 07 Jan 2014 14:28:20 +0100 Subject: [Gambas-user] Gambas 3.5.2 pre-release In-Reply-To: <52CC008E.7080802@...2007...> References: <52C9DD25.3070903@...1...> <52CBFF4F.5040906@...2007...> <52CC008E.7080802@...2007...> Message-ID: <52CC00F4.9080008@...1...> Le 07/01/2014 14:26, Kende Kriszti?n a ?crit : > 2014-01-07 14:21 keltez?ssel, Kende Kriszti?n ?rta: >> I found this Like operator bug: >> >> Print " " Like " " > > With double space: > > Print " " Like " " > >> >> or >> >> Print "a a" Like "* *" >> >> or... with double space >> >> Output: False >> > Damn it. :-( -- Beno?t Minisini From gambas at ...1... Tue Jan 7 14:30:35 2014 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Tue, 07 Jan 2014 14:30:35 +0100 Subject: [Gambas-user] Gambas 3.5.2 pre-release In-Reply-To: <52CC00F4.9080008@...1...> References: <52C9DD25.3070903@...1...> <52CBFF4F.5040906@...2007...> <52CC008E.7080802@...2007...> <52CC00F4.9080008@...1...> Message-ID: <52CC017B.8040302@...1...> Le 07/01/2014 14:28, Beno?t Minisini a ?crit : > Le 07/01/2014 14:26, Kende Kriszti?n a ?crit : >> 2014-01-07 14:21 keltez?ssel, Kende Kriszti?n ?rta: >>> I found this Like operator bug: >>> >>> Print " " Like " " >> >> With double space: >> >> Print " " Like " " >> >>> >>> or >>> >>> Print "a a" Like "* *" >>> >>> or... with double space >>> >>> Output: False >>> >> > > Damn it. :-( > Actually, a single space in a pattern eats all corresponding spaces in the string. So two spaces in the pattern never match... -- Beno?t Minisini From nemh at ...2007... Tue Jan 7 14:36:55 2014 From: nemh at ...2007... (=?ISO-8859-1?Q?Kende_Kriszti=E1n?=) Date: Tue, 07 Jan 2014 14:36:55 +0100 Subject: [Gambas-user] Gambas 3.5.2 pre-release In-Reply-To: <52CC017B.8040302@...1...> References: <52C9DD25.3070903@...1...> <52CBFF4F.5040906@...2007...> <52CC008E.7080802@...2007...> <52CC00F4.9080008@...1...> <52CC017B.8040302@...1...> Message-ID: <52CC02F7.8070701@...2007...> 2014-01-07 14:30 keltez?ssel, Beno?t Minisini ?rta: > Le 07/01/2014 14:28, Beno?t Minisini a ?crit : >> Le 07/01/2014 14:26, Kende Kriszti?n a ?crit : >>> 2014-01-07 14:21 keltez?ssel, Kende Kriszti?n ?rta: >>>> I found this Like operator bug: >>>> >>>> Print " " Like " " >>> With double space: >>> >>> Print " " Like " " >>> >>>> or >>>> >>>> Print "a a" Like "* *" >>>> >>>> or... with double space >>>> >>>> Output: False >>>> >> Damn it. :-( >> > Actually, a single space in a pattern eats all corresponding spaces in > the string. So two spaces in the pattern never match... > Never mind. I use this code: Print InStr(string, " ") = 0 From gambas at ...1... Tue Jan 7 14:38:10 2014 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Tue, 07 Jan 2014 14:38:10 +0100 Subject: [Gambas-user] Gambas 3.5.2 pre-release In-Reply-To: <52CC02F7.8070701@...2007...> References: <52C9DD25.3070903@...1...> <52CBFF4F.5040906@...2007...> <52CC008E.7080802@...2007...> <52CC00F4.9080008@...1...> <52CC017B.8040302@...1...> <52CC02F7.8070701@...2007...> Message-ID: <52CC0342.8080602@...1...> Le 07/01/2014 14:36, Kende Kriszti?n a ?crit : > 2014-01-07 14:30 keltez?ssel, Beno?t Minisini ?rta: >> Le 07/01/2014 14:28, Beno?t Minisini a ?crit : >>> Le 07/01/2014 14:26, Kende Kriszti?n a ?crit : >>>> 2014-01-07 14:21 keltez?ssel, Kende Kriszti?n ?rta: >>>>> I found this Like operator bug: >>>>> >>>>> Print " " Like " " >>>> With double space: >>>> >>>> Print " " Like " " >>>> >>>>> or >>>>> >>>>> Print "a a" Like "* *" >>>>> >>>>> or... with double space >>>>> >>>>> Output: False >>>>> >>> Damn it. :-( >>> >> Actually, a single space in a pattern eats all corresponding spaces in >> the string. So two spaces in the pattern never match... >> > > Never mind. I use this code: > > Print InStr(string, " ") = 0 > If you want to match a single space, use "[ ]" in the pattern. Regards, -- Beno?t Minisini From nemh at ...2007... Tue Jan 7 14:47:40 2014 From: nemh at ...2007... (=?ISO-8859-1?Q?Kende_Kriszti=E1n?=) Date: Tue, 07 Jan 2014 14:47:40 +0100 Subject: [Gambas-user] Gambas 3.5.2 pre-release In-Reply-To: <52CC0342.8080602@...1...> References: <52C9DD25.3070903@...1...> <52CBFF4F.5040906@...2007...> <52CC008E.7080802@...2007...> <52CC00F4.9080008@...1...> <52CC017B.8040302@...1...> <52CC02F7.8070701@...2007...> <52CC0342.8080602@...1...> Message-ID: <52CC057C.3070005@...2007...> 2014-01-07 14:38 keltez?ssel, Beno?t Minisini ?rta: > Le 07/01/2014 14:36, Kende Kriszti?n a ?crit : >> 2014-01-07 14:30 keltez?ssel, Beno?t Minisini ?rta: >>> Le 07/01/2014 14:28, Beno?t Minisini a ?crit : >>>> Le 07/01/2014 14:26, Kende Kriszti?n a ?crit : >>>>> 2014-01-07 14:21 keltez?ssel, Kende Kriszti?n ?rta: >>>>>> I found this Like operator bug: >>>>>> >>>>>> Print " " Like " " >>>>> With double space: >>>>> >>>>> Print " " Like " " >>>>> >>>>>> or >>>>>> >>>>>> Print "a a" Like "* *" >>>>>> >>>>>> or... with double space >>>>>> >>>>>> Output: False >>>>>> >>>> Damn it. :-( >>>> >>> Actually, a single space in a pattern eats all corresponding spaces in >>> the string. So two spaces in the pattern never match... >>> >> Never mind. I use this code: >> >> Print InStr(string, " ") = 0 >> > If you want to match a single space, use "[ ]" in the pattern. > > Regards, > I want to find double or more space. But the Like with one space (Like "* *") is works normally. From eilert-sprachen at ...221... Tue Jan 7 16:29:35 2014 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Tue, 07 Jan 2014 16:29:35 +0100 Subject: [Gambas-user] Printing with gb.gui not same result as qt4 Message-ID: <52CC1D5F.5030002@...221...> Hi, Guess I found a feature :) When running a program with printing into PDF, gb.gui and NOT on a Qt4 system (like Lxde or KDE3), the positions on the page aren't delivered correctly. When reducing myPrinter.Resolution to 75, it is ok in X direction, but Font.Height keeps being measured too big. This cost me around 4 hours this morning to find out, as I had the same project from my laptop on my office system. There's KDE4 running on the laptop and KDE3 in the office, and printing resulted in wrong positions until I found that I had to uncheck gb.gui and check gb.qt4 instead. Both on latest stable Gambas3. I don't think this is wanted, is it? At least it's confusing... Regards Rolf From gambas at ...1... Tue Jan 7 16:59:15 2014 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Tue, 07 Jan 2014 16:59:15 +0100 Subject: [Gambas-user] Printing with gb.gui not same result as qt4 In-Reply-To: <52CC1D5F.5030002@...221...> References: <52CC1D5F.5030002@...221...> Message-ID: <52CC2453.8050503@...1...> Le 07/01/2014 16:29, Rolf-Werner Eilert a ?crit : > Hi, > > Guess I found a feature :) > > When running a program with printing into PDF, gb.gui and NOT on a Qt4 > system (like Lxde or KDE3), the positions on the page aren't delivered > correctly. When reducing myPrinter.Resolution to 75, it is ok in X > direction, but Font.Height keeps being measured too big. > > This cost me around 4 hours this morning to find out, as I had the same > project from my laptop on my office system. There's KDE4 running on the > laptop and KDE3 in the office, and printing resulted in wrong positions > until I found that I had to uncheck gb.gui and check gb.qt4 instead. > Both on latest stable Gambas3. > > I don't think this is wanted, is it? At least it's confusing... > > Regards > Rolf > gb.gui just loads gb.qt4 if you run KDE, gb.gtk otherwise. Can you send me some code that allows me to compare and debug the printing differences between gb.qt4 and gb.gtk? -- Beno?t Minisini From eilert-sprachen at ...221... Tue Jan 7 17:53:20 2014 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Tue, 07 Jan 2014 17:53:20 +0100 Subject: [Gambas-user] Solving the Gambas packaging problem psychologically (!) In-Reply-To: <52CBF331.5060906@...1...> References: <52CAE956.4050001@...1...> <52CBF06D.5040304@...221...> <52CBF331.5060906@...1...> Message-ID: <52CC3100.2060303@...221...> Am 07.01.2014 13:29, schrieb Beno?t Minisini: > Le 07/01/2014 13:17, Rolf-Werner Eilert a ?crit : >> >> >> Am 06.01.2014 18:35, schrieb Beno?t Minisini: >>> Yeah, great mail subject! >>> >>> I think it will be more difficult for Linux distributions to fail >>> packaging Gambas correctly if there is a useful tool made in Gambas >>> (other than the IDE) that will be integrated inside package repositories >>> because people use it. >>> >>> What do you think about that? >>> >>> Do you think that extracting the image editor of the IDE and make a >>> simple but powerful "Paint" program from it could be a good idea? >>> >>> That tool should be QT4/GTK+ agnostic of course. >>> >>> Regards, >>> >> >> Hmmm - if you think of graphics, what about a tool like TerraGen / >> TerraMaker? I know it's been made with VB, and a lot of people use it >> for designing landscapes. TerraMaker has an export to POV and Blender, >> so this would be something similar to our universe. At least this is not >> #600 image editing software :) >> >> And if not graphics, what about a tool for serial letters which simply >> runs reliably (in contrary to the usual text crunchers available)? It >> could include an easy-to-operate interface to different data sources >> (from simple tables to database etc.) and combine these with a text >> (from the richtext editor) to PDF output. >> >> Regards >> Rolf >> > > Well... I have no idea of you are talking about, but it seems great. :-) > > As for the 601th image editor, there is no simple image editor on Linux > that I like. What I did in the IDE is sort of one I want, but not > perfect yet. > As for TerraGen: http://planetside.co.uk/products/terragen3 But those guys have been programming it for years, so it would be hard to come up with anything near to its perfection... The serial letter thing is (in a very simple form) the project I just sent you. This image editor in the Gambas IDE, where is it? How can I access it? From dl7nb at ...17... Tue Jan 7 19:39:23 2014 From: dl7nb at ...17... (Wolfgang) Date: Tue, 07 Jan 2014 19:39:23 +0100 Subject: [Gambas-user] Memory leak... In-Reply-To: <52CBEF4C.2050802@...1...> References: <52CBDAC6.1080400@...17...> <52CBDC11.7020006@...1...> <52CBE1EC.70001@...17...> <52CBEF4C.2050802@...1...> Message-ID: <52CC49DB.1040309@...17...> Am 07.01.2014 13:13, schrieb Beno?t Minisini: > Le 07/01/2014 12:15, Wolfgang a ?crit : > >> Sure, here it is. Just want to save memory space (again ;-) > > Please send the contents of the system information dialog of the IDE. > As i am not sure if my last post came through I send it again : [System] Gambas=3.5.1 OperatingSystem=Linux Kernel=3.5.0-45-generic Architecture=x86 Distribution=Ubuntu 12.04.3 LTS Desktop=GNOME Theme=QGtk Language=de_DE.UTF-8 Memory=2000M [Libraries] Cairo=libcairo.so.0.0.0 Cairo=libcairo.so.2.11000.2 Curl=libcurl.so.4.2.0 DBus=libdbus-1.so.3.5.8 GStreamer=libgstreamer-0.10.so.0.30.0 GStreamer=libgstreamer-1.0.so.0.1.0 GTK+=libgtk-x11-2.0.so.0.2400.10 OpenGL=libGL.so.1.2.0 Poppler=libpoppler.so.19.0.0 Qt4=libQtCore.so.4.8.1 SDL=libSDL-1.2.so.0.11.3 Wolfgang From tercoide at ...67... Tue Jan 7 20:03:06 2014 From: tercoide at ...67... (terco IDE) Date: Tue, 7 Jan 2014 19:03:06 +0000 Subject: [Gambas-user] OpenGL's getString(mode) not returning string In-Reply-To: References: Message-ID: Hi all: the openGL funcion getString( name ) as string gives error when using it like: Dim s As String s = gl.GetString(gl.VENDOR) Error: not returning value as if were defined like a sub I'm using Gambas 3.5.90 Saludos Martin From sc at ...3282... Tue Jan 7 21:03:29 2014 From: sc at ...3282... (Sebastian Claus) Date: Tue, 07 Jan 2014 21:03:29 +0100 Subject: [Gambas-user] SDL Crash Message-ID: <52CC5D91.7020700@...3282...> Dear all, I've a strange problem and I'm not sure whether it's a bug or an unlucky configuration of my system. Unfortunately, the built-in project sender didn't work as well, so I manualy packed it. The crash occurs during the implicit call of Draw.End() in the Window-Event handler for the draw event. But the crash will also occur, if you are calling the Draw.Begin() and then Draw.End() function manualy. Crash reason is a double free of heap memory: *** Error in `sdl-test': double free or corruption (fasttop): 0x0000000000ac10e0 *** I included everything that seems to be useful to me. Thanks in advance. Regards, Sebastian --- INFO --- [System] Gambas=3.5.2 OperatingSystem=Linux Kernel=3.12.6-1-ARCH Architecture=x86_64 Distribution=Arch Linux Desktop=? Theme=QWindows Language=de_DE.UTF-8 Memory=7988M [Libraries] Cairo=libcairo.so.2.11200.16 Curl=libcurl.so.4.3.0 DBus=libdbus-1.so.3.7.6 GStreamer=libgstreamer-0.10.so.0.30.0 GStreamer=libgstreamer-1.0.so.0.201.0 GTK+=libgtk-x11-2.0.so.0.2400.22 Poppler=libpoppler.so.44.0.0 Qt4=libQtCore.so.4.8.5 SDL=libSDL-1.2.so.0.11.4 --- /INFO --- --- gdb output --- Starting program: /usr/bin/gbx3 warning: no loadable sections found in added symbol-file system-supplied DSO at 0x7ffff7ffa000 warning: Could not load shared library symbols for linux-vdso.so.1. Do you need "set solib-search-path" or "set sysroot"? [Thread debugging using libthread_db enabled] Using host libthread_db library "/usr/lib/libthread_db.so.1". [New Thread 0x7fffee408700 (LWP 32590)] [New Thread 0x7fffeb830700 (LWP 32591)] MMain.screen_Draw.17: Drawing... *** Error in `sdl-test': double free or corruption (fasttop): 0x0000000000ac10e0 *** --- /gdb output --- --- back trace --- (gdb) bt #0 0x00007ffff713c319 in raise () from /usr/lib/libc.so.6 #1 0x00007ffff713d718 in abort () from /usr/lib/libc.so.6 #2 0x00007ffff7179da4 in __libc_message () from /usr/lib/libc.so.6 #3 0x00007ffff717f56e in malloc_printerr () from /usr/lib/libc.so.6 #4 0x00007ffff7180247 in _int_free () from /usr/lib/libc.so.6 #5 0x00007ffff478999c in TTF_CloseFont () from /usr/lib/libSDL_ttf-2.0.so.0 #6 0x00007ffff4995d73 in SDLfont::~SDLfont (this=0xa88aa0, __in_chrg=) at SDLfont.cpp:165 #7 0x00007ffff499861e in CFONT_free (_object=, _param=) at Cfont.cpp:109 #8 0x000000000040b14c in EXEC_native () at gbx_exec.c:1334 #9 0x000000000040b833 in EXEC_special (special=32586, special at ...2861...=1, class=0x0, object=0x6, object at ...2861...=0x6659b8, nparam=0, drop=0 '\000') at gbx_exec.c:1642 #10 0x000000000040bb2b in EXEC_special_inheritance (special=special at ...2861...=1, class=class at ...2861...=0x685438, object=object at ...2861...=0x6659b8, nparam=nparam at ...2861...=0, drop=drop at ...2861...=1 '\001') at gbx_exec.c:1698 #11 0x000000000040f20e in CLASS_free (object=0x6659b8) at gbx_class.c:739 #12 0x00007ffff4998472 in DRAW_end () at Cdraw.cpp:113 #13 0x00007ffff499a32f in myWin::Update (this=0x823d60) at Cwindow.cpp:340 #14 0x00007ffff499579a in SDLapplication::ManageEvents (this=, no_input=no_input at ...2861...=false) at SDLapp.cpp:189 #15 0x00007ffff499a5b0 in my_loop () at main.cpp:146 #16 0x000000000040469b in main (argc=1, argv=0x7fffffffe838) at gbx.c:409 --- /back trace --- -------------- next part -------------- A non-text attachment was scrubbed... Name: sdl-test.tar.bz2 Type: application/x-bzip Size: 5656 bytes Desc: not available URL: From gambas at ...1... Tue Jan 7 21:38:42 2014 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Tue, 07 Jan 2014 21:38:42 +0100 Subject: [Gambas-user] Solving the Gambas packaging problem psychologically (!) In-Reply-To: <52CC3100.2060303@...221...> References: <52CAE956.4050001@...1...> <52CBF06D.5040304@...221...> <52CBF331.5060906@...1...> <52CC3100.2060303@...221...> Message-ID: <52CC65D2.2060108@...1...> Le 07/01/2014 17:53, Rolf-Werner Eilert a ?crit : > As for TerraGen: http://planetside.co.uk/products/terragen3 > > But those guys have been programming it for years, so it would be hard > to come up with anything near to its perfection... > > The serial letter thing is (in a very simple form) the project I just > sent you. > > This image editor in the Gambas IDE, where is it? How can I access it? > Just put any image file (jpg, png, gif or xpm) in your project and double-click on it from the IDE. -- Beno?t Minisini From gambas at ...1... Tue Jan 7 21:48:09 2014 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Tue, 07 Jan 2014 21:48:09 +0100 Subject: [Gambas-user] OpenGL's getString(mode) not returning string In-Reply-To: References: Message-ID: <52CC6809.4030500@...1...> Le 07/01/2014 20:03, terco IDE a ?crit : > Hi all: > > the openGL funcion > > getString( name ) as string > > gives error when using it like: > Dim s As String > s = gl.GetString(gl.VENDOR) > > Error: not returning value > > as if were defined like a sub > > I'm using Gambas 3.5.90 > > Saludos > Martin > Is it better with revision #6070? Normally now you will get an "Unknown name" error instead. But normally with gl.VENDOR, gl.GetString() should always return a valid string. When do you call that method exactly? I'm not an OpenGL expert, but maybe some things must be initialized before? -- Beno?t Minisini From gambas at ...1... Wed Jan 8 01:06:15 2014 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Wed, 08 Jan 2014 01:06:15 +0100 Subject: [Gambas-user] Memory leak... In-Reply-To: <52CC49DB.1040309@...17...> References: <52CBDAC6.1080400@...17...> <52CBDC11.7020006@...1...> <52CBE1EC.70001@...17...> <52CBEF4C.2050802@...1...> <52CC49DB.1040309@...17...> Message-ID: <52CC9677.8020709@...1...> Le 07/01/2014 19:39, Wolfgang a ?crit : > Am 07.01.2014 13:13, schrieb Beno?t Minisini: >> Le 07/01/2014 12:15, Wolfgang a ?crit : >> >>> Sure, here it is. Just want to save memory space (again ;-) >> >> Please send the contents of the system information dialog of the IDE. >> > As i am not sure if my last post came through I send it again : > > [System] > Gambas=3.5.1 > OperatingSystem=Linux > Kernel=3.5.0-45-generic > Architecture=x86 > Distribution=Ubuntu 12.04.3 LTS > Desktop=GNOME > Theme=QGtk > Language=de_DE.UTF-8 > Memory=2000M > [Libraries] > Cairo=libcairo.so.0.0.0 > Cairo=libcairo.so.2.11000.2 > Curl=libcurl.so.4.2.0 > DBus=libdbus-1.so.3.5.8 > GStreamer=libgstreamer-0.10.so.0.30.0 > GStreamer=libgstreamer-1.0.so.0.1.0 > GTK+=libgtk-x11-2.0.so.0.2400.10 > OpenGL=libGL.so.1.2.0 > Poppler=libpoppler.so.19.0.0 > Qt4=libQtCore.so.4.8.1 > SDL=libSDL-1.2.so.0.11.3 > > Wolfgang > Hi, The memory leak has been fixed in revision #6071. I will merge it with the 3.5.2 coming soon. Regards, -- Beno?t Minisini From greg.raffaelle at ...2755... Wed Jan 8 02:56:58 2014 From: greg.raffaelle at ...2755... (Greg Raffaelle) Date: Tue, 07 Jan 2014 19:56:58 -0600 Subject: [Gambas-user] Menu Show Event with Unity desktop Message-ID: <52CCB06A.7010408@...2755...> The menu show event does not appear to be working with the global unity menu in Ubuntu. When a program menu is displayed from the top global menu it does not send a show event to the main program class. My program menu only appears in the top global menu bar and not at the top of the main form. Is there a way to get the menu show event from the global menu? Is there a work around to get the program menu back on the main form? Thanks, Greg From gambas at ...1... Wed Jan 8 03:13:19 2014 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Wed, 08 Jan 2014 03:13:19 +0100 Subject: [Gambas-user] Menu Show Event with Unity desktop In-Reply-To: <52CCB06A.7010408@...2755...> References: <52CCB06A.7010408@...2755...> Message-ID: <52CCB43F.4090705@...1...> Le 08/01/2014 02:56, Greg Raffaelle a ?crit : > The menu show event does not appear to be working with the global unity > menu in Ubuntu. When a program menu is displayed from the top global > menu it does not send a show event to the main program class. My > program menu only appears in the top global menu bar and not at the top > of the main form. Is there a way to get the menu show event from the > global menu? If it not automatically managed by the GUI toolkit (i.e. it should make no difference to the program if its menu has been put somewhere else) I don't think so. > Is there a work around to get the program menu back on the > main form? Normally, that environment variable: APPMENU_DISPLAY_BOTH=1 Test it and tell me if it works for you. Regards, -- Beno?t Minisini From gambas at ...1... Wed Jan 8 03:38:17 2014 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Wed, 08 Jan 2014 03:38:17 +0100 Subject: [Gambas-user] New pre-release of Gambas 3.5.2 Message-ID: <52CCBA19.2060003@...1...> You can download it from the same place: http://sourceforge.net/projects/gambas/files/gambas3/gambas3-3.5.2.tar.bz2/download I just added three last minutes fixes. If you tell me that compiling that package works for you, I will release it officially. Regards, -- Beno?t Minisini From gambas at ...2524... Wed Jan 8 04:28:57 2014 From: gambas at ...2524... (gambas at ...2524...) Date: Wed, 08 Jan 2014 03:28:57 +0000 Subject: [Gambas-user] Issue 493 in gambas: IDE Refresh Project button doesn't reload symbolic links Message-ID: <0-6813199134517018827-9562321926249786820-gambas=googlecode.com@...2524...> Status: New Owner: ---- Labels: Version Type-Bug Priority-Medium OpSys-Any Dist-Any Arch-Any Desktop-Any GUI-Any New issue 493 by adamn... at ...626...: IDE Refresh Project button doesn't reload symbolic links http://code.google.com/p/gambas/issues/detail?id=493 1) Describe the problem. We have a set of pop-up forms in a set of related projects that we re-use in each project simply by creating a symbolic link to the form. If I am editting the pop-up in the project it lives in and save it, then go to another project that uses that form and click the refresh button, it doesn't reload the linked form. In other words it still uses the version it loaded when the project was opened. 2) GIVE THE FOLLOWING INFORMATIONS (if they are appropriate): Version: TRUNK Revision: r6068 Operating system: Linux Distribution: PCLinuxOS Architecture: x86 GUI component: QT4 Desktop used: LXDE 3) Provide a little project that reproduces the bug or the crash. 4) If your project needs a database, try to provide it, or part of it. NA 5) Explain clearly how to reproduce the bug or the crash. Open two IDEs, one for project "AAA" and one for "BBB" Create a Form in project AAA Save it (or save the project) In project BBB link the form In project AAA, change something in the form, say the title and save it In project BBB click the project refresh button and open the linked form. --> the title has not changed. -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From gambas at ...2524... Wed Jan 8 04:32:16 2014 From: gambas at ...2524... (gambas at ...2524...) Date: Wed, 08 Jan 2014 03:32:16 +0000 Subject: [Gambas-user] Issue 493 in gambas: IDE Refresh Project button doesn't reload symbolic links In-Reply-To: <0-6813199134517018827-9562321926249786820-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-9562321926249786820-gambas=googlecode.com@...2524...> Message-ID: <1-6813199134517018827-9562321926249786820-gambas=googlecode.com@...2524...> Comment #1 on issue 493 by adamn... at ...626...: IDE Refresh Project button doesn't reload symbolic links http://code.google.com/p/gambas/issues/detail?id=493 As an aside, there is no reload button on the form designer not the class editor for linked files either. This problem would be alleviated if there were such buttons. -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From gambas at ...2524... Wed Jan 8 04:37:18 2014 From: gambas at ...2524... (gambas at ...2524...) Date: Wed, 08 Jan 2014 03:37:18 +0000 Subject: [Gambas-user] Issue 484 in gambas: IDE and Runtime show different stock icons In-Reply-To: <1-6813199134517018827-6655334807421817230-gambas=googlecode.com@...2524...> References: <1-6813199134517018827-6655334807421817230-gambas=googlecode.com@...2524...> <0-6813199134517018827-6655334807421817230-gambas=googlecode.com@...2524...> Message-ID: <2-6813199134517018827-6655334807421817230-gambas=googlecode.com@...2524...> Comment #2 on issue 484 by adamn... at ...626...: IDE and Runtime show different stock icons http://code.google.com/p/gambas/issues/detail?id=484 Interesting, the IDE is using "Tango" theme, the Application.Theme is "lxde", which is in fact pointing to "Tango". Maybe this is an OpenBox/LXDE issue? -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From dl7nb at ...17... Wed Jan 8 06:26:08 2014 From: dl7nb at ...17... (Wolfgang) Date: Wed, 08 Jan 2014 06:26:08 +0100 Subject: [Gambas-user] Memory leak... In-Reply-To: <52CC9677.8020709@...1...> References: <52CBDAC6.1080400@...17...> <52CBDC11.7020006@...1...> <52CBE1EC.70001@...17...> <52CBEF4C.2050802@...1...> <52CC49DB.1040309@...17...> <52CC9677.8020709@...1...> Message-ID: <52CCE170.2090805@...17...> Am 08.01.2014 01:06, schrieb Beno?t Minisini: > Le 07/01/2014 19:39, Wolfgang a ?crit : >> Am 07.01.2014 13:13, schrieb Beno?t Minisini: >>> Le 07/01/2014 12:15, Wolfgang a ?crit : >>> >>>> Sure, here it is. Just want to save memory space (again ;-) >>> Please send the contents of the system information dialog of the IDE. >>> >> As i am not sure if my last post came through I send it again : >> >> [System] >> Gambas=3.5.1 >> OperatingSystem=Linux >> Kernel=3.5.0-45-generic >> Architecture=x86 >> Distribution=Ubuntu 12.04.3 LTS >> Desktop=GNOME >> Theme=QGtk >> Language=de_DE.UTF-8 >> Memory=2000M >> [Libraries] >> Cairo=libcairo.so.0.0.0 >> Cairo=libcairo.so.2.11000.2 >> Curl=libcurl.so.4.2.0 >> DBus=libdbus-1.so.3.5.8 >> GStreamer=libgstreamer-0.10.so.0.30.0 >> GStreamer=libgstreamer-1.0.so.0.1.0 >> GTK+=libgtk-x11-2.0.so.0.2400.10 >> OpenGL=libGL.so.1.2.0 >> Poppler=libpoppler.so.19.0.0 >> Qt4=libQtCore.so.4.8.1 >> SDL=libSDL-1.2.so.0.11.3 >> >> Wolfgang >> > Hi, > > The memory leak has been fixed in revision #6071. > > I will merge it with the 3.5.2 coming soon. > > Regards, > Good morning Beno?t! Thank you for solving my problem. And sorry for waiting your time. I have used Google a lot but somehow I must have overlooked this #6071. btw. I used "some" commercial compilers but I have never seen that support that you give!!! I think that is a real benefit for all Gambas users! Thank you!!! Wolfgang From bbruen at ...2308... Wed Jan 8 08:24:28 2014 From: bbruen at ...2308... (Bruce) Date: Wed, 08 Jan 2014 17:54:28 +1030 Subject: [Gambas-user] Report component - variable height items Message-ID: <1389165868.20936.18.camel@...2688...> Hiya Fabien, Guess what, I have jumped on the gb.report user list at long last (had to, we have a new client who wants "pretty" reports rather than the text ones we have used since forever.) One thing that I do not understand is, is how to make a variable height label. That is, one that will expand it's height to accommodate either a) strings with "\n" in them, and/or b) strings that are too wide for the constrained width. Any clues gratefully received. regards Bruce From eilert-sprachen at ...221... Wed Jan 8 08:50:14 2014 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Wed, 08 Jan 2014 08:50:14 +0100 Subject: [Gambas-user] Solving the Gambas packaging problem psychologically (!) In-Reply-To: <52CC65D2.2060108@...1...> References: <52CAE956.4050001@...1...> <52CBF06D.5040304@...221...> <52CBF331.5060906@...1...> <52CC3100.2060303@...221...> <52CC65D2.2060108@...1...> Message-ID: <52CD0336.3000107@...221...> Am 07.01.2014 21:38, schrieb Beno?t Minisini: > Le 07/01/2014 17:53, Rolf-Werner Eilert a ?crit : >> As for TerraGen: http://planetside.co.uk/products/terragen3 >> >> But those guys have been programming it for years, so it would be hard >> to come up with anything near to its perfection... >> >> The serial letter thing is (in a very simple form) the project I just >> sent you. >> >> This image editor in the Gambas IDE, where is it? How can I access it? >> > > Just put any image file (jpg, png, gif or xpm) in your project and > double-click on it from the IDE. > Aah ok - never saw it before... Nice thing, and there are a lot of standard function already included. And what do you think is still missing? From bbruen at ...2308... Wed Jan 8 08:55:13 2014 From: bbruen at ...2308... (Bruce) Date: Wed, 08 Jan 2014 18:25:13 +1030 Subject: [Gambas-user] A "statusbar" control In-Reply-To: <20131222135636.GA513@...2774...> References: <1387588936.29214.1.camel@...2688...> <20131221094613.GA511@...2774...> <1387686670.9293.31.camel@...2688...> <20131222135636.GA513@...2774...> Message-ID: <1389167713.20936.20.camel@...2688...> I have had some joy over the last few days doing this from scratch using the gb.form.mdi ToolBar as the base control. It's still a long way from "the answer" and also a long way from being a fully developed IDE useable control. but I thought you may like to see the progress so far. I mocked up a prototype in the test form using just native controls to act as a guide for what I wanted. Then started creating the actual "Real" custom control. There are still a lot of things that need attention, the least of which is using the ToolBar as a base. Unfortunately, I do not have time at the moment to start converting it to use a drawing whatsit and thus eliminate the reliance on gb.form.mdi, but I have got the "number of sub-panels" thing worked out to the extent that adding new panels can be done on the fly, removing them is a bit of a different fish though. So I've limited the removals to only those that are added at runtime. The design ones must stay there. The automatic layout is sort- of OK. I am still fighting with the padding necessary to make the variable length text work properly. User interaction is still far in the future, but the "biggie" went away by itself as the sub-panel controls are addressable (although not as simply as I'd like) from the main form. Things that arose in the development were: I want to have non-"text" items in the bar. This turned out to be easy, so now we have "Text" sub-panels (a Label), "Icon" sub-panels (a pictureBox) and "Progress" sub-panels (a progressBar). Anyway, have a look. As always, any suggestions or criticisms gratefully received. regards Bruce (p.s. resent, I forgot to remove a large doco file) -------------- next part -------------- A non-text attachment was scrubbed... Name: statusbar-0.0.11.tar.gz Type: application/x-compressed-tar Size: 10508 bytes Desc: not available URL: From gambas at ...2524... Wed Jan 8 11:21:04 2014 From: gambas at ...2524... (gambas at ...2524...) Date: Wed, 08 Jan 2014 10:21:04 +0000 Subject: [Gambas-user] Issue 484 in gambas: IDE and Runtime show different stock icons In-Reply-To: <2-6813199134517018827-6655334807421817230-gambas=googlecode.com@...2524...> References: <2-6813199134517018827-6655334807421817230-gambas=googlecode.com@...2524...> <0-6813199134517018827-6655334807421817230-gambas=googlecode.com@...2524...> Message-ID: <3-6813199134517018827-6655334807421817230-gambas=googlecode.com@...2524...> Comment #3 on issue 484 by benoit.m... at ...626...: IDE and Runtime show different stock icons http://code.google.com/p/gambas/issues/detail?id=484 What do you mean by "pointing" exactly? Is it really the same? -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From tercoide at ...67... Wed Jan 8 16:50:50 2014 From: tercoide at ...67... (terco IDE) Date: Wed, 8 Jan 2014 15:50:50 +0000 Subject: [Gambas-user] Gambas-user Digest, Vol 92, Issue 14 In-Reply-To: References: Message-ID: > > Hi all: > > > > the openGL funcion > > > > getString( name ) as string > > > > gives error when using it like: > > Dim s As String > > s = gl.GetString(gl.VENDOR) > > > > Error: not returning value > > > > as if were defined like a sub > > > > I'm using Gambas 3.5.90 > > > > Saludos > > Martin > > > > Is it better with revision #6070? Normally now you will get an "Unknown > name" error instead. But normally with gl.VENDOR, gl.GetString() should > always return a valid string. > > When do you call that method exactly? I'm not an OpenGL expert, but > maybe some things must be initialized before? > > -- > Beno?t Minisini > > > you're rigth! tnx From fernando at ...3175... Wed Jan 8 20:39:03 2014 From: fernando at ...3175... (Fernando Martins) Date: Wed, 08 Jan 2014 20:39:03 +0100 Subject: [Gambas-user] Solving the Gambas packaging problem psychologically (!) In-Reply-To: <52CC65D2.2060108@...1...> References: <52CAE956.4050001@...1...> <52CBF06D.5040304@...221...> <52CBF331.5060906@...1...> <52CC3100.2060303@...221...> <52CC65D2.2060108@...1...> Message-ID: <52CDA957.5050900@...3175...> On 01/07/2014 09:38 PM, Beno?t Minisini wrote: > Le 07/01/2014 17:53, Rolf-Werner Eilert a ?crit : >> As for TerraGen: http://planetside.co.uk/products/terragen3 >> >> But those guys have been programming it for years, so it would be hard >> to come up with anything near to its perfection... >> >> The serial letter thing is (in a very simple form) the project I just >> sent you. >> >> This image editor in the Gambas IDE, where is it? How can I access it? >> > Just put any image file (jpg, png, gif or xpm) in your project and > double-click on it from the IDE. > I haven't checked it myself but your idea might not be so far fetched :) I have not seen the latest versions of bitmap editors in Linux, but all of those I have checked a couple of years ago, I always missed some critical feature when compared to good old MS Paint Brush!! That's how low my standard was. Amazing and very frustrating. My uses were actually quite simple: grab some screenshot with PrtScn (or Alt+PrtScn), paste into MS PB, do some basic image manipulation, but including pixel level manipulation with a zoom, add some text, and then use it in a presentation or the web. I remember the only feature I missed in PB was to set the transparency color and some file format. Plenty of Linux bitmap editors would fail on the clipboard requirement. Others in the zoom, or the text, IIRC. The only one that worked decently was the very old x-paint (IIRC the name) a pure X app, ugly as it could be but solid and fairly deep stuff. (gimp was not for me) Fernando From gambas.fr at ...626... Wed Jan 8 21:53:28 2014 From: gambas.fr at ...626... (Fabien Bodard) Date: Wed, 8 Jan 2014 21:53:28 +0100 Subject: [Gambas-user] Report component - variable height items In-Reply-To: <1389165868.20936.18.camel@...2688...> References: <1389165868.20936.18.camel@...2688...> Message-ID: Normally it willwork with the last rev... So you can write multiline label with \n. 2014/1/8 Bruce : > Hiya Fabien, > > Guess what, I have jumped on the gb.report user list at long last (had > to, we have a new client who wants "pretty" reports rather than the text > ones we have used since forever.) > > One thing that I do not understand is, is how to make a variable height > label. That is, one that will expand it's height to accommodate either > a) strings with "\n" in them, and/or > b) strings that are too wide for the constrained width. > > Any clues gratefully received. > > regards > Bruce > > > ------------------------------------------------------------------------------ > Rapidly troubleshoot problems before they affect your business. Most IT > organizations don't have a clear picture of how application performance > affects their revenue. With AppDynamics, you get 100% visibility into your > Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! > http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk > _______________________________________________ > 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... Wed Jan 8 22:18:31 2014 From: gambas.fr at ...626... (Fabien Bodard) Date: Wed, 8 Jan 2014 22:18:31 +0100 Subject: [Gambas-user] Forcenewpage in report component - part 1 of 2 In-Reply-To: References: <52C907D5.9000608@...2755...> Message-ID: Can you try with the last rev ? 2014/1/5 Fabien Bodard : > there is a bug > > 2014/1/5 Greg Raffaelle : >> Attached is a pdf of the first three pages of a sample report using the >> Forcenewpage setting. I had to break the report into two parts because of >> file size limitations. I will send the last 3 pages in the next message. >> Notice only page numbers are shown on pages 5 and 6. >> >> I appreciate the assistance. >> >> Thanks, >> Greg >> >> >> >> >> >> >> >> ------------------------------------------------------------------------------ >> Rapidly troubleshoot problems before they affect your business. Most IT >> organizations don't have a clear picture of how application performance >> affects their revenue. With AppDynamics, you get 100% visibility into your >> Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics >> Pro! >> http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > > > -- > Fabien Bodard -- Fabien Bodard From bbruen at ...2308... Thu Jan 9 02:20:58 2014 From: bbruen at ...2308... (Bruce) Date: Thu, 09 Jan 2014 11:50:58 +1030 Subject: [Gambas-user] gb.Report : Setting label colors Message-ID: <1389230458.20936.41.camel@...2688...> More learning curve! I am trying to set the foreground and background colors for a report label: 8 Dim lblType as new ReportLabel 17 lblType.Text = $currProblem.ProblemType.Value 18 lblType.Brush = Report.Color($currProblem.ProblemType.ForeColor) 19 lblType.BackGround = Report.Color($currProblem.ProblemType.BackColor) $currProblem.ProblemType.Forecolor is 22015 (i.e.mid blue) I get ---------------------------------------- ERR: Unknown symbol '_iValue' in class 'ReportBrush' (11) Report.Color.365 RProblemDetail._new.18 MTEST.Main.9 ---------------------------------------- What am I doing wrong? tia Bruce From greg.raffaelle at ...2755... Thu Jan 9 05:07:19 2014 From: greg.raffaelle at ...2755... (Greg Raffaelle) Date: Wed, 08 Jan 2014 22:07:19 -0600 Subject: [Gambas-user] Menu Show Event with Unity desktop Message-ID: <52CE2077.3050407@...2755...> I set the environment variable APPMENU_DISPLAY_BOTH=1 as suggested and the program menu is now displayed on both the global unity menu at the top of the screen and on the main form. However, I still believe the program main class is only receiving show menu events from the menu on the main form. The attached pdf shows two screen shots with the program file menu displayed. The image on the left is the file menu displayed from the top menu and the one of the right is the file menu displayed from the main form. In the main class I use the file menu _show() event to displayed recently opened file names as items 1 through 5 at the bottom of the file menu. On the left image you can see that item 1 is blank but on the right image the file name test2.bps appears besides item 1. I did not perform any other program operations between these two screen shots so the file menus should have been displayed the same. Also note the underlining of short cut letters (keys) does not show on the file menu in the right image. When I set a breakpoint on the show menu event sub in the main class the program does not stop when the file menu is selected from the top menu, but it does stop when the same menu is selected on the main form. Any suggestions on getting the two menu to display the same would be appreciated. Thanks, Greg -------------- next part -------------- A non-text attachment was scrubbed... Name: menushow.pdf Type: application/pdf Size: 215156 bytes Desc: not available URL: From bbruen at ...2308... Thu Jan 9 08:17:16 2014 From: bbruen at ...2308... (Bruce) Date: Thu, 09 Jan 2014 17:47:16 +1030 Subject: [Gambas-user] Report component - variable height items In-Reply-To: References: <1389165868.20936.18.camel@...2688...> Message-ID: <1389251836.20936.42.camel@...2688...> On Wed, 2014-01-08 at 21:53 +0100, Fabien Bodard wrote: > Normally it willwork with the last rev... > > So you can write multiline label with \n. > > 2014/1/8 Bruce : > > Hiya Fabien, > > > > Guess what, I have jumped on the gb.report user list at long last (had > > to, we have a new client who wants "pretty" reports rather than the text > > ones we have used since forever.) > > > > One thing that I do not understand is, is how to make a variable height > > label. That is, one that will expand it's height to accommodate either > > a) strings with "\n" in them, and/or > > b) strings that are too wide for the constrained width. > > > > Any clues gratefully received. > > > > regards > > Bruce > > > > Thanks Fabien, Works like an old rag! cheers Bruce From eilert-sprachen at ...221... Thu Jan 9 08:58:01 2014 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Thu, 09 Jan 2014 08:58:01 +0100 Subject: [Gambas-user] Solving the Gambas packaging problem psychologically (!) In-Reply-To: <52CDA957.5050900@...3175...> References: <52CAE956.4050001@...1...> <52CBF06D.5040304@...221...> <52CBF331.5060906@...1...> <52CC3100.2060303@...221...> <52CC65D2.2060108@...1...> <52CDA957.5050900@...3175...> Message-ID: <52CE5689.6000105@...221...> Am 08.01.2014 20:39, schrieb Fernando Martins: > On 01/07/2014 09:38 PM, Beno?t Minisini wrote: >> Le 07/01/2014 17:53, Rolf-Werner Eilert a ?crit : >>> As for TerraGen: http://planetside.co.uk/products/terragen3 >>> >>> But those guys have been programming it for years, so it would be hard >>> to come up with anything near to its perfection... >>> >>> The serial letter thing is (in a very simple form) the project I just >>> sent you. >>> >>> This image editor in the Gambas IDE, where is it? How can I access it? >>> >> Just put any image file (jpg, png, gif or xpm) in your project and >> double-click on it from the IDE. >> > I haven't checked it myself but your idea might not be so far fetched :) > I have not seen the latest versions of bitmap editors in Linux, but all > of those I have checked a couple of years ago, I always missed some > critical feature when compared to good old MS Paint Brush!! That's how > low my standard was. Amazing and very frustrating. My uses were actually > quite simple: grab some screenshot with PrtScn (or Alt+PrtScn), paste > into MS PB, do some basic image manipulation, but including pixel level > manipulation with a zoom, add some text, and then use it in a > presentation or the web. I remember the only feature I missed in PB was > to set the transparency color and some file format. > > Plenty of Linux bitmap editors would fail on the clipboard requirement. > Others in the zoom, or the text, IIRC. The only one that worked decently > was the very old x-paint (IIRC the name) a pure X app, ugly as it could > be but solid and fairly deep stuff. (gimp was not for me) > > Fernando > Yes, I think this is a good starting point: a practical tool, not a functional dinosaur, but with the most important tools in it. Gwenview for instance is a good viewer, but only a viewer. IrfanView in the Windows world tries to be a viewer with a set of most important manipulation tools, but is mostly used as a viewer. And the latest MS Paint thing just drives me nuts with its unsorted surface. Rolf From gambas.fr at ...626... Thu Jan 9 10:11:26 2014 From: gambas.fr at ...626... (Fabien Bodard) Date: Thu, 9 Jan 2014 10:11:26 +0100 Subject: [Gambas-user] Report component - variable height items In-Reply-To: <1389251836.20936.42.camel@...2688...> References: <1389165868.20936.18.camel@...2688...> <1389251836.20936.42.camel@...2688...> Message-ID: I have some work to do on the textlabel so then it will have wordwrap option and a possibility to generate a new page if the text can't be fully displayed. I think about a way to make texts with fields to allow mailing and pre filled parts. From gambas.fr at ...626... Thu Jan 9 10:13:19 2014 From: gambas.fr at ...626... (Fabien Bodard) Date: Thu, 9 Jan 2014 10:13:19 +0100 Subject: [Gambas-user] Report component - variable height items In-Reply-To: <1389251836.20936.42.camel@...2688...> References: <1389165868.20936.18.camel@...2688...> <1389251836.20936.42.camel@...2688...> Message-ID: Le 9 janv. 2014 08:19, "Bruce" a ?crit : > > On Wed, 2014-01-08 at 21:53 +0100, Fabien Bodard wrote: > > Normally it willwork with the last rev... > > > > So you can write multiline label with \n. > > > > 2014/1/8 Bruce : > > > Hiya Fabien, > > > > > > Guess what, I have jumped on the gb.report user list at long last (had > > > to, we have a new client who wants "pretty" reports rather than the text > > > ones we have used since forever.) > > > > > > One thing that I do not understand is, is how to make a variable height > > > label. That is, one that will expand it's height to accommodate either > > > a) strings with "\n" in them, and/or > > > b) strings that are too wide for the constrained width. > > > > > > Any clues gratefully received. > > > > > > regards > > > Bruce > > > > > > > > Thanks Fabien, > > Works like an old rag! Is it good or bad ? > > cheers > Bruce > > > ------------------------------------------------------------------------------ > CenturyLink Cloud: The Leader in Enterprise Cloud Services. > Learn Why More Businesses Are Choosing CenturyLink Cloud For > Critical Workloads, Development Environments & Everything In Between. > Get a Quote or Start a Free Trial Today. > http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From gambas at ...1... Thu Jan 9 10:53:03 2014 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Thu, 09 Jan 2014 10:53:03 +0100 Subject: [Gambas-user] Problem with web site and wiki Message-ID: <52CE717F.1050308@...1...> Hi, The DNS problem with gambasdoc.org seems to not be solved. As a temporary workaround before I find a solution, add the following line to your /etc/hosts file: 64.128.110.55 gambasdoc.org Rob, if you read that: can you give me the ownership of 'gambasdoc.org' name so that I make it point to another server? -- Beno?t Minisini From gambas.fr at ...626... Thu Jan 9 11:05:33 2014 From: gambas.fr at ...626... (Fabien Bodard) Date: Thu, 9 Jan 2014 11:05:33 +0100 Subject: [Gambas-user] gb.Report : Setting label colors In-Reply-To: <1389230458.20936.41.camel@...2688...> References: <1389230458.20936.41.camel@...2688...> Message-ID: You are one of the first advanced user of gb.report... Thank you So bugs are... I will see what I can do ... I have no many time today Le 9 janv. 2014 02:22, "Bruce" a ?crit : > More learning curve! I am trying to set the foreground and background > colors for a report label: > > 8 Dim lblType as new ReportLabel > > 17 lblType.Text = $currProblem.ProblemType.Value > 18 lblType.Brush = Report.Color($currProblem.ProblemType.ForeColor) > 19 lblType.BackGround = Report.Color($currProblem.ProblemType.BackColor) > > > > $currProblem.ProblemType.Forecolor is 22015 (i.e.mid blue) > > I get > ---------------------------------------- > ERR: Unknown symbol '_iValue' in class 'ReportBrush' (11) > Report.Color.365 > RProblemDetail._new.18 > MTEST.Main.9 > ---------------------------------------- > > What am I doing wrong? > > tia > Bruce > > > > > ------------------------------------------------------------------------------ > CenturyLink Cloud: The Leader in Enterprise Cloud Services. > Learn Why More Businesses Are Choosing CenturyLink Cloud For > Critical Workloads, Development Environments & Everything In Between. > Get a Quote or Start a Free Trial Today. > > http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From sourceforge-raindog2 at ...94... Thu Jan 9 13:43:35 2014 From: sourceforge-raindog2 at ...94... (Rob Kudla) Date: Thu, 09 Jan 2014 07:43:35 -0500 Subject: [Gambas-user] Problem with web site and wiki In-Reply-To: <52CE717F.1050308@...1...> References: <52CE717F.1050308@...1...> Message-ID: <52CE9977.2090304@...94...> On 01/09/2014 04:53 AM, Beno?t Minisini wrote: > Rob, if you read that: can you give me the ownership of 'gambasdoc.org' > name so that I make it point to another server? Sure. I've asked twice on the list for the last few years and not gotten any offers of a new home, but if you can find hosting I'll be happy to give it to you. Let me know when you're ready for the transfer code and I'll email it to you privately. Rob From vuott at ...325... Thu Jan 9 14:23:24 2014 From: vuott at ...325... (Ru Vuott) Date: Thu, 9 Jan 2014 13:23:24 +0000 (GMT) Subject: [Gambas-user] .Run() method of DesktopFile Class... How to ? Message-ID: <1389273804.25607.YahooMailBasic@...3275...> Hello, I wrote this simple code to try DesktopFile.Run() method: ************************************** Private pr As Process Public Sub Form_Open() Dim df As DesktopFile With df = New DesktopFile("/path/of/my/file.wav") pr = .Run("totem") End With End ************************************ So, I thought that, starting the application, it played also wav file. Instead, the application did not played the wav file. Perhaps the code should be written differently? Regards vuott From jscops at ...11... Thu Jan 9 14:51:07 2014 From: jscops at ...11... (Jack) Date: Thu, 09 Jan 2014 14:51:07 +0100 Subject: [Gambas-user] .Run() method of DesktopFile Class... How to ? In-Reply-To: <1389273804.25607.YahooMailBasic@...3275...> References: <1389273804.25607.YahooMailBasic@...3275...> Message-ID: <52CEA94B.2000200@...11...> Le 09/01/2014 14:23, Ru Vuott a ?crit : > Hello, > > I wrote this simple code to try DesktopFile.Run() method: > > ************************************** > Private pr As Process > > > Public Sub Form_Open() > > Dim df As DesktopFile > > > With df = New DesktopFile("/path/of/my/file.wav") > pr = .Run("totem") > End With > > End > ************************************ hello why not use sdl component ? Public Sub Form_Open() Music.Load("/path/of/my/file.wav") Music.Play End it's more simple, no ? -- Cordialement Jacky Tripoteau From gambas at ...2524... Thu Jan 9 15:12:30 2014 From: gambas at ...2524... (gambas at ...2524...) Date: Thu, 09 Jan 2014 14:12:30 +0000 Subject: [Gambas-user] Issue 494 in gambas: 100% cpu use when using SHELL (FOR READ) and on a process that redirects stdout Message-ID: <0-6813199134517018827-18017008611081196936-gambas=googlecode.com@...2524...> Status: New Owner: ---- Labels: Version Type-Bug Priority-Medium OpSys-Any Dist-Any Arch-Any Desktop-Any GUI-Any New issue 494 by Kokok... at ...626...: 100% cpu use when using SHELL (FOR READ) and on a process that redirects stdout http://code.google.com/p/gambas/issues/detail?id=494 1) i get 100% cpu use when using SHELL (FOR READ) and on a process that redirects stdout 2) Version: 3.5.1 Operating system: Linux Distribution: ArchLinux Architecture: x86 GUI component: no gui Desktop used: KDE Just try this code on a cli project: ' Gambas module file Public myprocess As Process Public Sub Main() myprocess = Shell "ls >/dev/null" For Read As "myprocess" End ' And you will get 100% cpu use indefinitely. By replacing "For READ" with "FOR INPUT", the issue is gone; maybe this is not a bug, but expected, but in previous gambas versions i've never encountered this issue. -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From gambas.fr at ...626... Thu Jan 9 15:25:37 2014 From: gambas.fr at ...626... (Fabien Bodard) Date: Thu, 9 Jan 2014 15:25:37 +0100 Subject: [Gambas-user] .Run() method of DesktopFile Class... How to ? In-Reply-To: <52CEA94B.2000200@...11...> References: <1389273804.25607.YahooMailBasic@...3275...> <52CEA94B.2000200@...11...> Message-ID: Or the media one Le 9 janv. 2014 15:10, "Jack" a ?crit : > Le 09/01/2014 14:23, Ru Vuott a ?crit : > > Hello, > > > > I wrote this simple code to try DesktopFile.Run() method: > > > > ************************************** > > Private pr As Process > > > > > > Public Sub Form_Open() > > > > Dim df As DesktopFile > > > > > > With df = New DesktopFile("/path/of/my/file.wav") > > pr = .Run("totem") > > End With > > > > End > > ************************************ > > hello > > why not use sdl component ? > > Public Sub Form_Open() > Music.Load("/path/of/my/file.wav") > Music.Play > End > > it's more simple, no ? > > > -- > Cordialement > > Jacky Tripoteau > > > ------------------------------------------------------------------------------ > CenturyLink Cloud: The Leader in Enterprise Cloud Services. > Learn Why More Businesses Are Choosing CenturyLink Cloud For > Critical Workloads, Development Environments & Everything In Between. > Get a Quote or Start a Free Trial Today. > > http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From dl7nb at ...17... Thu Jan 9 15:28:47 2014 From: dl7nb at ...17... (Wolfgang) Date: Thu, 09 Jan 2014 15:28:47 +0100 Subject: [Gambas-user] Memory leak... In-Reply-To: <52CCE170.2090805@...17...> References: <52CBDAC6.1080400@...17...> <52CBDC11.7020006@...1...> <52CBE1EC.70001@...17...> <52CBEF4C.2050802@...1...> <52CC49DB.1040309@...17...> <52CC9677.8020709@...1...> <52CCE170.2090805@...17...> Message-ID: <52CEB21F.8070100@...17...> Hello Beno?t! With using the Gambas3.5.2-1precise1 the leak is gone! Thank you very much! Now the sun is beaming again!!! Wolfgang Am 08.01.2014 06:26, schrieb Wolfgang: >> >> Hi, >> >> The memory leak has been fixed in revision #6071. >> >> I will merge it with the 3.5.2 coming soon. >> >> Regards, >> > Good morning Beno?t! > > Thank you for solving my problem. And sorry for waiting your time. I > have used Google a lot but somehow I must have overlooked this #6071. > > btw. I used "some" commercial compilers but I have never seen that > support that you give!!! > I think that is a real benefit for all Gambas users! Thank you!!! > > Wolfgang > > ------------------------------------------------------------------------------ > Rapidly troubleshoot problems before they affect your business. Most IT > organizations don't have a clear picture of how application performance > affects their revenue. With AppDynamics, you get 100% visibility into your > Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! > http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > From vuott at ...325... Thu Jan 9 15:53:47 2014 From: vuott at ...325... (Ru Vuott) Date: Thu, 9 Jan 2014 14:53:47 +0000 (GMT) Subject: [Gambas-user] .Run() method of DesktopFile Class... How to ? In-Reply-To: <52CEA94B.2000200@...11...> Message-ID: <1389279227.3900.YahooMailBasic@...3273...> Hi Jacky, yes, I know, but.... I like to experiment. :-) Bye vuotttt -------------------------------------------- Gio 9/1/14, Jack ha scritto: Oggetto: Re: [Gambas-user] .Run() method of DesktopFile Class... How to ? A: "mailing list for gambas users" Data: Gioved? 9 gennaio 2014, 14:51 Le 09/01/2014 14:23, Ru Vuott a ?crit : > Hello, > > I wrote this simple code to try DesktopFile.Run() method: > > ************************************** > Private pr As Process > > > Public Sub Form_Open() > >? ? Dim df As DesktopFile > > >? ???With df = New DesktopFile("/path/of/my/file.wav") >? ? ???pr = .Run("totem") >? ???End With > > End > ************************************ hello why not use sdl component ? Public Sub Form_Open() ? ? Music.Load("/path/of/my/file.wav") ? ? Music.Play End it's more simple, no ? -- Cordialement Jacky Tripoteau ------------------------------------------------------------------------------ CenturyLink Cloud: The Leader in Enterprise Cloud Services. Learn Why More Businesses Are Choosing CenturyLink Cloud For Critical Workloads, Development Environments & Everything In Between. Get a Quote or Start a Free Trial Today. http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From vuott at ...325... Thu Jan 9 15:55:10 2014 From: vuott at ...325... (Ru Vuott) Date: Thu, 9 Jan 2014 14:55:10 +0000 (GMT) Subject: [Gambas-user] .Run() method of DesktopFile Class... How to ? In-Reply-To: Message-ID: <1389279310.59453.YahooMailBasic@...3268...> Hello Fabien, ..I'ld like simply to understand how that method works. Bye vuottt -------------------------------------------- Gio 9/1/14, Fabien Bodard ha scritto: Oggetto: Re: [Gambas-user] .Run() method of DesktopFile Class... How to ? A: "mailing list for gambas users" Data: Gioved? 9 gennaio 2014, 15:25 Or the media one Le 9 janv. 2014 15:10, "Jack" a ?crit : > Le 09/01/2014 14:23, Ru Vuott a ?crit : > > Hello, > > > > I wrote this simple code to try DesktopFile.Run() method: > > > > ************************************** > > Private pr As Process > > > > > > Public Sub Form_Open() > > > >? ? Dim df As DesktopFile > > > > > >? ???With df = New DesktopFile("/path/of/my/file.wav") > >? ? ???pr = .Run("totem") > >? ???End With > > > > End > > ************************************ > > hello > > why not use sdl component ? > > Public Sub Form_Open() >? ???Music.Load("/path/of/my/file.wav") >? ???Music.Play > End > > it's more simple, no ? > > > -- > Cordialement > > Jacky Tripoteau > > > ------------------------------------------------------------------------------ > CenturyLink Cloud: The Leader in Enterprise Cloud Services. > Learn Why More Businesses Are Choosing CenturyLink Cloud For > Critical Workloads, Development Environments & Everything In Between. > Get a Quote or Start a Free Trial Today. > > http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > ------------------------------------------------------------------------------ CenturyLink Cloud: The Leader in Enterprise Cloud Services. Learn Why More Businesses Are Choosing CenturyLink Cloud For Critical Workloads, Development Environments & Everything In Between. Get a Quote or Start a Free Trial Today. http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From gambas at ...2524... Thu Jan 9 17:47:24 2014 From: gambas at ...2524... (gambas at ...2524...) Date: Thu, 09 Jan 2014 16:47:24 +0000 Subject: [Gambas-user] Issue 494 in gambas: 100% cpu use when using SHELL (FOR READ) and on a process that redirects stdout In-Reply-To: <0-6813199134517018827-18017008611081196936-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-18017008611081196936-gambas=googlecode.com@...2524...> Message-ID: <1-6813199134517018827-18017008611081196936-gambas=googlecode.com@...2524...> Comment #1 on issue 494 by Kokok... at ...626...: 100% cpu use when using SHELL (FOR READ) and on a process that redirects stdout http://code.google.com/p/gambas/issues/detail?id=494 As a side note, i'm unable to parse the standard error stream if using "for input" instead of "for read". To explain better, this: -- Public myprocess As Process Public Sub Main() myprocess = Shell "/bin/ls /does/not/exist" For Input As "myprocess" End Public Sub myprocess_error(MyError As String) Print myerror End --- Does not produce any output. So, by now: If one wants to start an external command and redirect the standard output to a file: 1- using "FOR READ" makes the cpu jumps to 100% and the interpreter hangs on exit. 2- using "FOR INPUT" makes impossible to parse error messages in the stderr stream. -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From gambas at ...1... Thu Jan 9 18:03:50 2014 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Thu, 09 Jan 2014 18:03:50 +0100 Subject: [Gambas-user] Problem with web site and wiki In-Reply-To: <52CE9977.2090304@...94...> References: <52CE717F.1050308@...1...> <52CE9977.2090304@...94...> Message-ID: <52CED676.8060707@...1...> Le 09/01/2014 13:43, Rob Kudla a ?crit : > On 01/09/2014 04:53 AM, Beno?t Minisini wrote: >> Rob, if you read that: can you give me the ownership of 'gambasdoc.org' >> name so that I make it point to another server? > > Sure. I've asked twice on the list for the last few years and not gotten > any offers of a new home, but if you can find hosting I'll be happy to give > it to you. Let me know when you're ready for the transfer code and I'll > email it to you privately. > > Rob > Thanks. I will ask my boss tomorrow if I can host the Gambas documentation on a server. Maybe he will ask me how much traffic the server will generate, so if you have the information... -- Beno?t Minisini From sourceforge-raindog2 at ...94... Thu Jan 9 18:09:18 2014 From: sourceforge-raindog2 at ...94... (Rob Kudla) Date: Thu, 09 Jan 2014 12:09:18 -0500 Subject: [Gambas-user] Problem with web site and wiki In-Reply-To: <52CED676.8060707@...1...> References: <52CE717F.1050308@...1...> <52CE9977.2090304@...94...> <52CED676.8060707@...1...> Message-ID: <52CED7BE.8070009@...94...> On 01/09/2014 12:03 PM, Beno?t Minisini wrote: > Maybe he will ask me how much traffic the server will generate, so if > you have the information... Last time I checked (when I last asked the Gambas list for someone to step up, maybe a year and a half ago) it was about 25GB per month. Drop in the bucket for a hosting service, but I don't know what your bandwidth there is like. I've actually been trying to rsync my personal stuff off of the server in question since last night, so it's not just you who's sick of the situation, believe me. Rob From gambas at ...1... Thu Jan 9 19:11:37 2014 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Thu, 09 Jan 2014 19:11:37 +0100 Subject: [Gambas-user] .Run() method of DesktopFile Class... How to ? In-Reply-To: <1389273804.25607.YahooMailBasic@...3275...> References: <1389273804.25607.YahooMailBasic@...3275...> Message-ID: <52CEE659.1060805@...1...> Le 09/01/2014 14:23, Ru Vuott a ?crit : > Hello, > > I wrote this simple code to try DesktopFile.Run() method: > > ************************************** > Private pr As Process > > > Public Sub Form_Open() > > Dim df As DesktopFile > > > With df = New DesktopFile("/path/of/my/file.wav") > pr = .Run("totem") > End With > > End > ************************************ > > So, I thought that, starting the application, it played also wav file. > Instead, the application did not played the wav file. > > Perhaps the code should be written differently? > > Regards > vuott > A desktop file is a file with the *.desktop extension following the format described on freedesktop.org. A *.wav file is not a desktop file. Here is what to do: 1) Get the mime type of the file with DesktopMime.FromFile() -> String 2) Get the list of programs that are associated with that file with DesktopFile.FromMime() -> DesktopFile[]. 3) Choose a program among the array of DesktopFile returned by DesktopFile.FromMime(). 4) Run the program with hDesktopFile.Run(sPath). Otherwise, a faster but less clever way of opening a file is using Desktop.Open(). Regards, -- Beno?t Minisini From floryn90.linux at ...626... Thu Jan 9 22:04:37 2014 From: floryn90.linux at ...626... (Floryn90) Date: Thu, 09 Jan 2014 22:04:37 +0100 Subject: [Gambas-user] Translating forms in gambas Message-ID: <52CF0EE5.2070300@...626...> Hi everyone, I'm making an app and i need to translate it in various languages. From Project->Translate i made the translations. Now i made some menu entry for some languages and i need to set that language (that was selected from user by clicking on its name). How can i set the language and refresh the form with translated labels ? Thanks in advance, Florin From Karl.Reinl at ...2345... Thu Jan 9 22:15:32 2014 From: Karl.Reinl at ...2345... (Charlie Reinl) Date: Thu, 09 Jan 2014 22:15:32 +0100 Subject: [Gambas-user] Translating forms in gambas In-Reply-To: <52CF0EE5.2070300@...626...> References: <52CF0EE5.2070300@...626...> Message-ID: <1389302132.2516.9.camel@...40...> Am Donnerstag, den 09.01.2014, 22:04 +0100 schrieb Floryn90: > Hi everyone, > I'm making an app and i need to translate it in various languages. From > Project->Translate i made the translations. Now i made some menu entry > for some languages and i need to set that language (that was selected > from user by clicking on its name). How can i set the language and > refresh the form with translated labels ? > > Thanks in advance, > Florin Salut Florin, normally the used language depends on the users language on the box, if not found the default language, fixed in the project is used (see project/properties). But if you want to change to any of these languages at start up, you'll find in the mailing list archives the answer. -- Amicalement Charlie From floryn90.linux at ...626... Thu Jan 9 22:20:19 2014 From: floryn90.linux at ...626... (Floryn90) Date: Thu, 09 Jan 2014 22:20:19 +0100 Subject: [Gambas-user] Translating forms in gambas In-Reply-To: <1389302132.2516.9.camel@...40...> References: <52CF0EE5.2070300@...626...> <1389302132.2516.9.camel@...40...> Message-ID: <52CF1293.3090300@...626...> Hi Charlie, I need to change the language when user click on Menu->Languages->"Language Name". Nella citazione in data gio 09 gen 2014 22:15:32 CET, Charlie Reinl ha scritto: > Am Donnerstag, den 09.01.2014, 22:04 +0100 schrieb Floryn90: >> Hi everyone, >> I'm making an app and i need to translate it in various languages. From >> Project->Translate i made the translations. Now i made some menu entry >> for some languages and i need to set that language (that was selected >> from user by clicking on its name). How can i set the language and >> refresh the form with translated labels ? >> >> Thanks in advance, >> Florin > > Salut Florin, > > normally the used language depends on the users language on the box, if > not found the default language, fixed in the project is used (see > project/properties). > > But if you want to change to any of these languages at start up, you'll > find in the mailing list archives the answer. > From Karl.Reinl at ...2345... Thu Jan 9 23:55:55 2014 From: Karl.Reinl at ...2345... (Charlie Reinl) Date: Thu, 09 Jan 2014 23:55:55 +0100 Subject: [Gambas-user] Translating forms in gambas In-Reply-To: <52CF1293.3090300@...626...> References: <52CF0EE5.2070300@...626...> <1389302132.2516.9.camel@...40...> <52CF1293.3090300@...626...> Message-ID: <1389308155.3186.11.camel@...40...> Am Donnerstag, den 09.01.2014, 22:20 +0100 schrieb Floryn90: > Hi Charlie, > I need to change the language when user click on > Menu->Languages->"Language Name". > > Nella citazione in data gio 09 gen 2014 22:15:32 CET, Charlie Reinl ha > scritto: > > Am Donnerstag, den 09.01.2014, 22:04 +0100 schrieb Floryn90: > >> Hi everyone, > >> I'm making an app and i need to translate it in various languages. From > >> Project->Translate i made the translations. Now i made some menu entry > >> for some languages and i need to set that language (that was selected > >> from user by clicking on its name). How can i set the language and > >> refresh the form with translated labels ? > >> > >> Thanks in advance, > >> Florin > > > > Salut Florin, > > > > normally the used language depends on the users language on the box, if > > not found the default language, fixed in the project is used (see > > project/properties). > > > > But if you want to change to any of these languages at start up, you'll > > find in the mailing list archives the answer. > > Salut Florin, if you want to change at any moment the user want the project language, so you have to program that by your own. As I said, the gettext behind Project->Translate acts at start up. -- Amicalement Charlie From bbruen at ...2308... Fri Jan 10 04:07:47 2014 From: bbruen at ...2308... (Bruce) Date: Fri, 10 Jan 2014 13:37:47 +1030 Subject: [Gambas-user] Report component - variable height items In-Reply-To: References: <1389165868.20936.18.camel@...2688...> <1389251836.20936.42.camel@...2688...> Message-ID: <1389323268.20936.87.camel@...2688...> > > Works like an old rag! > Is it good or bad ? Sorry! A bit of "Australian" crept in there. It means good. Now, here is a couple of new problems (and hopefully an answer). We have an audit requirement to create a "hard copy" of a thing when its' data is first entered into the system. Since there will be hundreds, if not thousands, of these things I have convinced the auditors to let us create a read-only pdf file rather than chewing up so much paper. Fine, so the requirement now becomes a technical requirement: When a thing is first inserted into the database, automatically print-to-file a gb.report of the data and set its' attribs to -r--r--r-- The first and last bits are not a problem, it's that middle bit "automatically print-to-file a gb.report of the data". Why it is a problem is a bit hard to explain, but here goes. We want no user interaction. So instead of showing the preview form, it has just got to print. In fact we don't even want to see the printer selection form (but I'll get to that later). Tracing through the call stack, I get to CPrint.PrintReport: 7 Public Sub PrintReport(hReport As Report) 8 9 Dim hSizeParse As TSizeParse 10 11 $hPrint = hReport.Clone() 12 hPrinter.Paper = $hPrint.Paper 13 hPrinter.Orientation = $hPrint.Orientation 14 If $hPrint.Paper = Printer.Custom Then 15 hSizeParse = New TSizeParse($hPrint.Width) 16 hPrinter.PaperWidth = hSizeParse.ToCm() / 10 17 hSizeParse = New TSizeParse($hPrint.Height) 18 hPrinter.PaperHeight = hSizeParse.ToCm() / 10 19 Endif 20 If Not hPrinter.Configure() Then 21 hPrinter.Print 22 Endif 23 24 End The first issue is at line 11, I can't understand why you create a clone of the report object and it creates a problem as follows: Report.Clone invokes the _new() method in the actual report class. However, our _new method requires a parameter, the database record id for the "thing" we want to print. So we get a "not enough parameters" error. (I tried getting around this by using a "Run(id)" method, but of course this never gets invoked in the cloned object and thus we get a blank report.) I have changed line 11 to 11 $hPrint = hReport '.Clone() locally and everything still works. But I am a bit scared that there is something I don't know about that requires that cloning to occur. Is there? Now we get to line 20. This is a bit unconditional! We need a way to skip running the preview. Anyway, after a bit of mucking about I decided that Report needed two new properties (DefaultPrinter and ShowPreview) and CPrint needed some changes. I have attached a gzip of these classes. See what you think about adding these changes to the base. (Note: it does have that line 11 change.) Basically, ShowPreview defaults to True and since DefaultPrinter will be null, there should be no side effects on existing reports. ShowPreview is set to appear in the IDE Report designer, so it is a simple matter to turn it off or on. DefaultPrinter doesn't appear in the IDE, it is a "code-only" property. What turned out to be "cool" is that just by creating a DefaultPrinter, it automatically selects the users actual default printer (or the system default if the user hasn't got one). So that makes it possible to bypass the Printer.Configure() call and the report will go to the default printer automagically. What I found to be even "cooler" is how to set it to print-to-file. Me.DefaultPrinter = New Printer With Me.DefaultPrinter .Name = "" .OutputFile = "~/print1.pdf" End With in the myreport.class and bingo! i.e. just set the printer name to null and the OutputFile property to wherever you want the report to go. Setting the filename extension magically produces a pdf file, setting it to anything else magically produces a postscript file. regards Bruce -------------- next part -------------- A non-text attachment was scrubbed... Name: changes.tar.gz Type: application/x-compressed-tar Size: 3864 bytes Desc: not available URL: From eilert-sprachen at ...221... Fri Jan 10 08:50:15 2014 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Fri, 10 Jan 2014 08:50:15 +0100 Subject: [Gambas-user] Solving the Gambas packaging problem psychologically (!) In-Reply-To: <52CDA957.5050900@...3175...> References: <52CAE956.4050001@...1...> <52CBF06D.5040304@...221...> <52CBF331.5060906@...1...> <52CC3100.2060303@...221...> <52CC65D2.2060108@...1...> <52CDA957.5050900@...3175...> Message-ID: <52CFA637.9080605@...221...> Am 08.01.2014 20:39, schrieb Fernando Martins: > On 01/07/2014 09:38 PM, Beno?t Minisini wrote: >> Le 07/01/2014 17:53, Rolf-Werner Eilert a ?crit : >>> As for TerraGen: http://planetside.co.uk/products/terragen3 >>> >>> But those guys have been programming it for years, so it would be hard >>> to come up with anything near to its perfection... >>> >>> The serial letter thing is (in a very simple form) the project I just >>> sent you. >>> >>> This image editor in the Gambas IDE, where is it? How can I access it? >>> >> Just put any image file (jpg, png, gif or xpm) in your project and >> double-click on it from the IDE. >> > I haven't checked it myself but your idea might not be so far fetched :) > I have not seen the latest versions of bitmap editors in Linux, but all > of those I have checked a couple of years ago, I always missed some > critical feature when compared to good old MS Paint Brush!! That's how > low my standard was. Amazing and very frustrating. My uses were actually > quite simple: grab some screenshot with PrtScn (or Alt+PrtScn), paste > into MS PB, do some basic image manipulation, but including pixel level > manipulation with a zoom, add some text, and then use it in a > presentation or the web. I remember the only feature I missed in PB was > to set the transparency color and some file format. > > Plenty of Linux bitmap editors would fail on the clipboard requirement. > Others in the zoom, or the text, IIRC. The only one that worked decently > was the very old x-paint (IIRC the name) a pure X app, ugly as it could > be but solid and fairly deep stuff. (gimp was not for me) > > Fernando > A few minutes ago, I wanted to do just the thing you mentioned (take a web graphic / screenshot, draw some lines, add a few comments, and put it back into a forum article). Gimp is way too sophisticated to do such things quick-and-dirty, and I didn't know what to use else. So: 100 % agree. On my distro, some mtPaint has been installed (and I hadn't even noticed yet). It seems it's older stuff, so it might have come in together with KDE3 (although it's GTK+). If you can find it, take a look at it. Or I could make a screenshot... It offers a lot of functions via the menues, much too many in my opinion. But it was delevoped to work on icon bitmaps, according to the impressum text. Anyway, its functions would mark the limit for me in such a tool. At a first glance, I would change the toolbars to a "minimum necessary" and a "show it all" version to not scare away beginners. And one might add a customizing function that allows icons/functions to swap between the two modes for usability. What I wanted to say is, the more I keep thinking about it, the more I begin to like this idea. Rolf From bbruen at ...2308... Fri Jan 10 09:21:31 2014 From: bbruen at ...2308... (Bruce) Date: Fri, 10 Jan 2014 18:51:31 +1030 Subject: [Gambas-user] Solving the Gambas packaging problem psychologically (!) In-Reply-To: <52CFA637.9080605@...221...> References: <52CAE956.4050001@...1...> <52CBF06D.5040304@...221...> <52CBF331.5060906@...1...> <52CC3100.2060303@...221...> <52CC65D2.2060108@...1...> <52CDA957.5050900@...3175...> <52CFA637.9080605@...221...> Message-ID: <1389342091.29682.1.camel@...2688...> On Fri, 2014-01-10 at 08:50 +0100, Rolf-Werner Eilert wrote: > > Am 08.01.2014 20:39, schrieb Fernando Martins: > > On 01/07/2014 09:38 PM, Beno?t Minisini wrote: > >> Le 07/01/2014 17:53, Rolf-Werner Eilert a ?crit : > >>> As for TerraGen: http://planetside.co.uk/products/terragen3 > >>> > >>> But those guys have been programming it for years, so it would be hard > >>> to come up with anything near to its perfection... > >>> > >>> The serial letter thing is (in a very simple form) the project I just > >>> sent you. > >>> > >>> This image editor in the Gambas IDE, where is it? How can I access it? > >>> > >> Just put any image file (jpg, png, gif or xpm) in your project and > >> double-click on it from the IDE. > >> > > I haven't checked it myself but your idea might not be so far fetched :) > > I have not seen the latest versions of bitmap editors in Linux, but all > > of those I have checked a couple of years ago, I always missed some > > critical feature when compared to good old MS Paint Brush!! That's how > > low my standard was. Amazing and very frustrating. My uses were actually > > quite simple: grab some screenshot with PrtScn (or Alt+PrtScn), paste > > into MS PB, do some basic image manipulation, but including pixel level > > manipulation with a zoom, add some text, and then use it in a > > presentation or the web. I remember the only feature I missed in PB was > > to set the transparency color and some file format. > > > > Plenty of Linux bitmap editors would fail on the clipboard requirement. > > Others in the zoom, or the text, IIRC. The only one that worked decently > > was the very old x-paint (IIRC the name) a pure X app, ugly as it could > > be but solid and fairly deep stuff. (gimp was not for me) > > > > Fernando > > > > A few minutes ago, I wanted to do just the thing you mentioned (take a > web graphic / screenshot, draw some lines, add a few comments, and put > it back into a forum article). Gimp is way too sophisticated to do such > things quick-and-dirty, and I didn't know what to use else. So: 100 % agree. > > On my distro, some mtPaint has been installed (and I hadn't even noticed > yet). It seems it's older stuff, so it might have come in together with > KDE3 (although it's GTK+). If you can find it, take a look at it. Or I > could make a screenshot... It offers a lot of functions via the menues, > much too many in my opinion. But it was delevoped to work on icon > bitmaps, according to the impressum text. > > Anyway, its functions would mark the limit for me in such a tool. At a > first glance, I would change the toolbars to a "minimum necessary" and a > "show it all" version to not scare away beginners. And one might add a > customizing function that allows icons/functions to swap between the two > modes for usability. > > What I wanted to say is, the more I keep thinking about it, the more I > begin to like this idea. > > Rolf > Rolf, Not trying to kill any good ideas at all, but given what you said have you ever had a look at "Shutter"? Here's a sample, it took about 30 seconds. regards Bruce -------------- next part -------------- A non-text attachment was scrubbed... Name: 023.png Type: image/png Size: 39937 bytes Desc: not available URL: From gambas.fr at ...626... Fri Jan 10 10:59:42 2014 From: gambas.fr at ...626... (Fabien Bodard) Date: Fri, 10 Jan 2014 10:59:42 +0100 Subject: [Gambas-user] gb.Report : Setting label colors In-Reply-To: References: <1389230458.20936.41.camel@...2688...> Message-ID: Use reportbrush.color instead Report.color is deprecated buggy and need to be removed. Le 9 janv. 2014 11:05, "Fabien Bodard" a ?crit : > You are one of the first advanced user of gb.report... Thank you > > So bugs are... I will see what I can do ... I have no many time today > Le 9 janv. 2014 02:22, "Bruce" a ?crit : > >> More learning curve! I am trying to set the foreground and background >> colors for a report label: >> >> 8 Dim lblType as new ReportLabel >> >> 17 lblType.Text = $currProblem.ProblemType.Value >> 18 lblType.Brush = Report.Color($currProblem.ProblemType.ForeColor) >> 19 lblType.BackGround = Report.Color($currProblem.ProblemType.BackColor) >> >> >> >> $currProblem.ProblemType.Forecolor is 22015 (i.e.mid blue) >> >> I get >> ---------------------------------------- >> ERR: Unknown symbol '_iValue' in class 'ReportBrush' (11) >> Report.Color.365 >> RProblemDetail._new.18 >> MTEST.Main.9 >> ---------------------------------------- >> >> What am I doing wrong? >> >> tia >> Bruce >> >> >> >> >> ------------------------------------------------------------------------------ >> CenturyLink Cloud: The Leader in Enterprise Cloud Services. >> Learn Why More Businesses Are Choosing CenturyLink Cloud For >> Critical Workloads, Development Environments & Everything In Between. >> Get a Quote or Start a Free Trial Today. >> >> http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > From VonZorch at ...626... Fri Jan 10 14:10:37 2014 From: VonZorch at ...626... (VonZorch) Date: Fri, 10 Jan 2014 05:10:37 -0800 (PST) Subject: [Gambas-user] Can't compile 3.5.2 In-Reply-To: <52C5BF1A.6030207@...1...> References: <1388690528173-44968.post@...3046...> <52C5BF1A.6030207@...1...> Message-ID: <1389359436849-45101.post@...3046...> Beno?t Minisini wrote > Le 02/01/2014 20:22, VonZorch a ?crit : >> Running Mint 16, in console as root. When I enter ./configure it returns >> "No >> such file or directory". >> What do I need to do here. >> > > Everything is explained in the 'INSTALL.html' file. > > You can get the latest version of that file on gambasdoc.org, but if you > can't access it... :-/ > > -- > Beno?t Minisini > > Checked the INSTALL.html, still doesn't compile. > Doing this as root from terminal, output follows. > > Grumpy gambas # ./reconf-all > libtoolize: putting auxiliary files in `.'. > libtoolize: copying file `./ltmain.sh' > libtoolize: You should add the contents of the following files to > `aclocal.m4': > libtoolize: `/usr/share/aclocal/libtool.m4' > libtoolize: `/usr/share/aclocal/ltoptions.m4' > libtoolize: `/usr/share/aclocal/ltversion.m4' > libtoolize: `/usr/share/aclocal/ltsugar.m4' > libtoolize: `/usr/share/aclocal/lt~obsolete.m4' > libtoolize: Remember to add `LT_INIT' to configure.ac. > libtoolize: Consider adding `AC_CONFIG_MACRO_DIR([m4])' to configure.ac > and > libtoolize: rerunning libtoolize, to keep the correct libtool macros > in-tree. > libtoolize: Consider adding `-I m4' to ACLOCAL_AMFLAGS in Makefile.am. > autoreconf: Entering directory `.' > autoreconf: configure.ac: not using Gettext > autoreconf: running: aclocal > autoreconf: configure.ac: tracing > autoreconf: configure.ac: adding subdirectory main to autoreconf > autoreconf: Entering directory `main' > autoreconf: running: aclocal -I m4 --install > autoreconf: running: libtoolize --copy > autoreconf: running: /usr/bin/autoconf > autoreconf: running: /usr/bin/autoheader > autoreconf: running: automake --add-missing --copy --no-force > configure.ac:6: warning: AM_INIT_AUTOMAKE: two- and three-arguments forms > are deprecated. For more info, see: > configure.ac:6: > http://www.gnu.org/software/automake/manual/automake.html#Modernize-AM_005fINIT_005fAUTOMAKE-invocation > autoreconf: Leaving directory `main' > autoreconf: configure.ac: adding subdirectory gb.compress.bzlib2 to > autoreconf > autoreconf: Entering directory `gb.compress.bzlib2' > configure.ac:5: warning: AM_INIT_AUTOMAKE: two- and three-arguments forms > are deprecated. For more info, see: > configure.ac:5: > http://www.gnu.org/software/automake/manual/automake.html#Modernize-AM_005fINIT_005fAUTOMAKE-invocation > autoreconf: Leaving directory `gb.compress.bzlib2' > autoreconf: configure.ac: adding subdirectory gb.compress.zlib to > autoreconf > autoreconf: Entering directory `gb.compress.zlib' > aclocal: installing 'm4/libtool.m4' from '/usr/share/aclocal/libtool.m4' > aclocal: installing 'm4/ltoptions.m4' from > '/usr/share/aclocal/ltoptions.m4' > aclocal: installing 'm4/ltsugar.m4' from '/usr/share/aclocal/ltsugar.m4' > aclocal: installing 'm4/ltversion.m4' from > '/usr/share/aclocal/ltversion.m4' > aclocal: installing 'm4/lt~obsolete.m4' from > '/usr/share/aclocal/lt~obsolete.m4' > libtoolize: putting auxiliary files in `.'. > libtoolize: copying file `./ltmain.sh' > configure:4200: error: possibly undefined macro: AC_LIBLTDL_CONVENIENCE > If this token and others are legitimate, please use > m4_pattern_allow. > See the Autoconf documentation. > autoreconf: /usr/bin/autoconf failed with exit status: 1 > > Unfortunately I do not have enough experience with compiling to understand > what the terms in the error message mean. > ------------------------------------------------------------------------------ > Rapidly troubleshoot problems before they affect your business. Most IT > organizations don't have a clear picture of how application performance > affects their revenue. With AppDynamics, you get 100% visibility into your > Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics > Pro! > http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at ...3286... > https://lists.sourceforge.net/lists/listinfo/gambas-user -- View this message in context: http://gambas.8142.n7.nabble.com/Can-t-compile-3-5-2-tp44968p45101.html Sent from the gambas-user mailing list archive at Nabble.com. From greg.raffaelle at ...2755... Fri Jan 10 20:24:58 2014 From: greg.raffaelle at ...2755... (Greg Raffaelle) Date: Fri, 10 Jan 2014 13:24:58 -0600 Subject: [Gambas-user] Forcenewpage in report component - part 1 of 2 Message-ID: <52D0490A.1040900@...2755...> Fabien, I tried the latest trunk version of Gambas3.5.90 and the pages on my report are now displaying. However the numpages is not correct. When the pages are first displayed in preview they are numbered like this: Page 1 of 2 Page 2 of 3 Page 3 of 4 Page 4 of 5 Page 5 of 6 Page 6 of 6 But after you scroll through all the pages (display each page in preview) the numpages corrects as follows: Page 1 of 6 Page 2 of 6 Page 3 of 6 Page 4 of 6 Page 5 of 6 Page 6 of 6 Seems like a bug in determining the number of pages when the preview form is first displayed. Thanks, Greg From floryn90.linux at ...626... Fri Jan 10 15:32:38 2014 From: floryn90.linux at ...626... (Floryn90) Date: Fri, 10 Jan 2014 15:32:38 +0100 Subject: [Gambas-user] How to delete a xml node Message-ID: <52D00486.8030505@...626...> Hi everyone, How can i delete a xml node if the node atribute name is the same as given name? Thanks in advance for answers! From gambas.fr at ...626... Fri Jan 10 15:43:50 2014 From: gambas.fr at ...626... (Fabien Bodard) Date: Fri, 10 Jan 2014 15:43:50 +0100 Subject: [Gambas-user] Forcenewpage in report component - part 1 of 2 In-Reply-To: <52D0490A.1040900@...2755...> References: <52D0490A.1040900@...2755...> Message-ID: This isn't a bug it's because the computing is done page by page for the viewer so 3 page no need more time than 3000 on the preview. For printing, all the pages are computed before. Le 10 janv. 2014 14:26, "Greg Raffaelle" a ?crit : > Fabien, > > I tried the latest trunk version of Gambas3.5.90 and the pages on my > report are now displaying. However the numpages is not correct. When > the pages are first displayed in preview they are numbered like this: > > Page 1 of 2 > Page 2 of 3 > Page 3 of 4 > Page 4 of 5 > Page 5 of 6 > Page 6 of 6 > > But after you scroll through all the pages (display each page in > preview) the numpages corrects as follows: > > Page 1 of 6 > Page 2 of 6 > Page 3 of 6 > Page 4 of 6 > Page 5 of 6 > Page 6 of 6 > > Seems like a bug in determining the number of pages when the preview > form is first displayed. > > Thanks, > Greg > > > > > > > > > ------------------------------------------------------------------------------ > CenturyLink Cloud: The Leader in Enterprise Cloud Services. > Learn Why More Businesses Are Choosing CenturyLink Cloud For > Critical Workloads, Development Environments & Everything In Between. > Get a Quote or Start a Free Trial Today. > > http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas.fr at ...626... Fri Jan 10 15:56:55 2014 From: gambas.fr at ...626... (Fabien Bodard) Date: Fri, 10 Jan 2014 15:56:55 +0100 Subject: [Gambas-user] How to delete a xml node In-Reply-To: <52D00486.8030505@...626...> References: <52D00486.8030505@...626...> Message-ID: In what component.. with what class (xmldocument ?) Le 10 janv. 2014 15:33, "Floryn90" a ?crit : > Hi everyone, > How can i delete a xml node if the node atribute name is the same as > given name? > > Thanks in advance for answers! > > > ------------------------------------------------------------------------------ > CenturyLink Cloud: The Leader in Enterprise Cloud Services. > Learn Why More Businesses Are Choosing CenturyLink Cloud For > Critical Workloads, Development Environments & Everything In Between. > Get a Quote or Start a Free Trial Today. > > http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From floryn90.linux at ...626... Fri Jan 10 16:01:17 2014 From: floryn90.linux at ...626... (Floryn90) Date: Fri, 10 Jan 2014 16:01:17 +0100 Subject: [Gambas-user] How to delete a xml node In-Reply-To: References: <52D00486.8030505@...626...> Message-ID: <52D00B3D.1090607@...626...> I'm using Xmlreader for reading the xml file and xmlwriter for writing the xml file but don't work properly I need to read the xml file, find node attribute name, delete node element if the name is the same with name given by user. Nella citazione in data ven 10 gen 2014 15:56:55 CET, Fabien Bodard ha scritto: > In what component.. with what class (xmldocument ?) > Le 10 janv. 2014 15:33, "Floryn90" a ?crit : > >> Hi everyone, >> How can i delete a xml node if the node atribute name is the same as >> given name? >> >> Thanks in advance for answers! >> >> >> ------------------------------------------------------------------------------ >> CenturyLink Cloud: The Leader in Enterprise Cloud Services. >> Learn Why More Businesses Are Choosing CenturyLink Cloud For >> Critical Workloads, Development Environments & Everything In Between. >> Get a Quote or Start a Free Trial Today. >> >> http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > ------------------------------------------------------------------------------ > CenturyLink Cloud: The Leader in Enterprise Cloud Services. > Learn Why More Businesses Are Choosing CenturyLink Cloud For > Critical Workloads, Development Environments & Everything In Between. > Get a Quote or Start a Free Trial Today. > http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From floryn90.linux at ...626... Fri Jan 10 16:06:05 2014 From: floryn90.linux at ...626... (Floryn90) Date: Fri, 10 Jan 2014 16:06:05 +0100 Subject: [Gambas-user] How to delete a xml node In-Reply-To: References: <52D00486.8030505@...626...> Message-ID: <52D00C5D.2060501@...626...> Gambas 3.5.2 on Ubuntu Nella citazione in data ven 10 gen 2014 15:56:55 CET, Fabien Bodard ha scritto: > In what component.. with what class (xmldocument ?) > Le 10 janv. 2014 15:33, "Floryn90" a ?crit : > >> Hi everyone, >> How can i delete a xml node if the node atribute name is the same as >> given name? >> >> Thanks in advance for answers! >> >> >> ------------------------------------------------------------------------------ >> CenturyLink Cloud: The Leader in Enterprise Cloud Services. >> Learn Why More Businesses Are Choosing CenturyLink Cloud For >> Critical Workloads, Development Environments & Everything In Between. >> Get a Quote or Start a Free Trial Today. >> >> http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > ------------------------------------------------------------------------------ > CenturyLink Cloud: The Leader in Enterprise Cloud Services. > Learn Why More Businesses Are Choosing CenturyLink Cloud For > Critical Workloads, Development Environments & Everything In Between. > Get a Quote or Start a Free Trial Today. > http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From bill-lancaster at ...2231... Fri Jan 10 16:52:32 2014 From: bill-lancaster at ...2231... (bill-lancaster) Date: Fri, 10 Jan 2014 07:52:32 -0800 (PST) Subject: [Gambas-user] Anotating a pdf image Message-ID: <1389369152114-45108.post@...3046...> I have a number of files in pdf format and I'd like to add some text to the image and save as a pdf file. Is this possible? If so, some hints as to how would be appreciated. Gambas 3.5.1 Kubuntu 13.04 -- View this message in context: http://gambas.8142.n7.nabble.com/Anotating-a-pdf-image-tp45108.html Sent from the gambas-user mailing list archive at Nabble.com. From tercoide at ...67... Fri Jan 10 16:56:42 2014 From: tercoide at ...67... (terco IDE) Date: Fri, 10 Jan 2014 15:56:42 +0000 Subject: [Gambas-user] Rendering text with OpenGL example In-Reply-To: References: Message-ID: Hi, does anyone has an example on rendering some text in a glArea with (or without) openGL? tnx! Saludos Martin From floryn90.linux at ...626... Fri Jan 10 17:22:37 2014 From: floryn90.linux at ...626... (Floryn90) Date: Fri, 10 Jan 2014 17:22:37 +0100 Subject: [Gambas-user] How to convert .XmlElementAttributes into string Message-ID: <52D01E4D.5020103@...626...> How can i convert a .XmlElementAttributes into string From nemh at ...2007... Fri Jan 10 17:36:10 2014 From: nemh at ...2007... (=?ISO-8859-1?Q?Kende_Kriszti=E1n?=) Date: Fri, 10 Jan 2014 17:36:10 +0100 Subject: [Gambas-user] How to convert .XmlElementAttributes into string In-Reply-To: <52D01E4D.5020103@...626...> References: <52D01E4D.5020103@...626...> Message-ID: <52D0217A.9080005@...2007...> 2014-01-10 17:22 keltez?ssel, Floryn90 ?rta: > How can i convert a .XmlElementAttributes into string > > http://www.gambasdoc.org/help/comp/gb.xml/.xmlelementattributes/_next?v3 http://www.gambasdoc.org/help/comp/gb.xml/xmlnode/tostring?v3 From floryn90.linux at ...626... Fri Jan 10 17:54:17 2014 From: floryn90.linux at ...626... (Floryn90) Date: Fri, 10 Jan 2014 17:54:17 +0100 Subject: [Gambas-user] How to convert .XmlElementAttributes into string In-Reply-To: <52D0217A.9080005@...2007...> References: <52D01E4D.5020103@...626...> <52D0217A.9080005@...2007...> Message-ID: <52D025B9.8060604@...626...> When declaring Dim hXmlElementAttributes As .XmlElementAttributes gambas tell me "Unexpected '.' " Nella citazione in data ven 10 gen 2014 17:36:10 CET, Kende Kriszti?n ha scritto: > 2014-01-10 17:22 keltez?ssel, Floryn90 ?rta: >> How can i convert a .XmlElementAttributes into string >> >> > > http://www.gambasdoc.org/help/comp/gb.xml/.xmlelementattributes/_next?v3 > > http://www.gambasdoc.org/help/comp/gb.xml/xmlnode/tostring?v3 > > > ------------------------------------------------------------------------------ > CenturyLink Cloud: The Leader in Enterprise Cloud Services. > Learn Why More Businesses Are Choosing CenturyLink Cloud For > Critical Workloads, Development Environments & Everything In Between. > Get a Quote or Start a Free Trial Today. > http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From gambas at ...1... Fri Jan 10 18:20:17 2014 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Fri, 10 Jan 2014 18:20:17 +0100 Subject: [Gambas-user] Rendering text with OpenGL example In-Reply-To: References: Message-ID: <52D02BD1.8020406@...1...> Le 10/01/2014 16:56, terco IDE a ?crit : > Hi, does anyone has an example on rendering some text in a glArea with (or without) openGL? > > tnx! > > Saludos > Martin > Look at the PdfPresentation example, it uses a GLArea. And I don't know what you mean by *not* using OpenGL to draw in a GLArea. -- Beno?t Minisini From gambas at ...1... Fri Jan 10 21:40:38 2014 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Fri, 10 Jan 2014 21:40:38 +0100 Subject: [Gambas-user] Menu Show Event with Unity desktop In-Reply-To: <52CE2077.3050407@...2755...> References: <52CE2077.3050407@...2755...> Message-ID: <52D05AC6.4030008@...1...> Le 09/01/2014 05:07, Greg Raffaelle a ?crit : > I set the environment variable APPMENU_DISPLAY_BOTH=1 as suggested and > the program menu is now displayed on both the global unity menu at the > top of the screen and on the main form. > > However, I still believe the program main class is only receiving show > menu events from the menu on the main form. The attached pdf shows two > screen shots with the program file menu displayed. The image on the > left is the file menu displayed from the top menu and the one of the > right is the file menu displayed from the main form. In the main class > I use the file menu _show() event to displayed recently opened file > names as items 1 through 5 at the bottom of the file menu. On the left > image you can see that item 1 is blank but on the right image the file > name test2.bps appears besides item 1. I did not perform any other > program operations between these two screen shots so the file menus > should have been displayed the same. Also note the underlining of short > cut letters (keys) does not show on the file menu in the right image. > When I set a breakpoint on the show menu event sub in the main class the > program does not stop when the file menu is selected from the top menu, > but it does stop when the same menu is selected on the main form. > > Any suggestions on getting the two menu to display the same would be > appreciated. > > Thanks, > Greg > I'm afraid there is no solution. The "AppMenu" protocol made by Ubuntu is poorly documented, and it seems that there is no way to be warned when a external menu is shown. Regards, -- Beno?t Minisini From taboege at ...626... Fri Jan 10 21:57:52 2014 From: taboege at ...626... (Tobias Boege) Date: Fri, 10 Jan 2014 21:57:52 +0100 Subject: [Gambas-user] Anotating a pdf image In-Reply-To: <1389369152114-45108.post@...3046...> References: <1389369152114-45108.post@...3046...> Message-ID: <20140110205752.GA468@...2774...> On Fri, 10 Jan 2014, bill-lancaster wrote: > I have a number of files in pdf format and I'd like to add some text to the > image and save as a pdf file. > Is this possible? > If so, some hints as to how would be appreciated. > Hmm. I've personally used a tool called pdftk for manipulating PDFs - but it was at least time consuming to install on Arch Linux but that's what we love Arch for, isn't it? :-) Anyway, seems that it's not suitable for your purpose and I see a pure Gambas way, too: - Instantiate a new Image[], named myNewPdfImages, which will contain your new annotated pages as Image objects; - Define some Annotate() method (just for the purpose of this algorithm) which takes a pristine Image, annotates (using Paint) and then returns it; - Use gb.pdf. Load your PDF and loop through the pages: For iInd = 0 To myPdf.Count - 1 myNewPdfImages[iInd] = Annotate(myPdf[iInd].GetImage()) Next The key is myPdf[iInd].GetImage() to get an image of the iInd-th page; - Now use gb.cairo or the like to coalesce your new Images into a new PDF. Nice application by the way. I can't wait to write it myself :-) Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From tercoide at ...67... Fri Jan 10 22:28:49 2014 From: tercoide at ...67... (terco IDE) Date: Fri, 10 Jan 2014 21:28:49 +0000 Subject: [Gambas-user] rendering text in a GLArea In-Reply-To: References: Message-ID: > Le 10/01/2014 16:56, terco IDE a ?crit : > > Hi, does anyone has an example on rendering some text in a glArea with (or without) openGL? > > > > tnx! > > > > Saludos > > Martin > > > > Look at the PdfPresentation example, it uses a GLArea. And I don't know > what you mean by *not* using OpenGL to draw in a GLArea. > > -- > Beno?t Minisini > funny, it's the only OpenGL example I can't run: program freezes while showing the Openfile dialog. Tried this workaround: Dialog.Title = ("Select a PDF file") Dialog.Filter = ["*.pdf", ("PDF files")] 'If Dialog.OpenFile() Then Return ' FREEZES HERE 'workaround (its a valid path) sPath = User.home &/ "CIRSOC tablas de perfiles.pdf" 'Dialog.Path txtPath.Text = sPath but only shows a rotating cube with the gambas logo. I meant using another control inside (or on top) the GLArea, like a label or something. But it doesn't work, it only shows the contents of the GLArea. From gambas.fr at ...626... Fri Jan 10 22:38:16 2014 From: gambas.fr at ...626... (Fabien Bodard) Date: Fri, 10 Jan 2014 22:38:16 +0100 Subject: [Gambas-user] How to convert .XmlElementAttributes into string In-Reply-To: <52D025B9.8060604@...626...> References: <52D01E4D.5020103@...626...> <52D0217A.9080005@...2007...> <52D025B9.8060604@...626...> Message-ID: well it seem you have to learn how gambas work Dim hELm as XmlElement Dim hNode as xmlNode hElm = For each hElm in hDoc.GetElementByTag("MyTag") For each hNode in hElm.Attributes Print "Attribute: " & hNode.Name & " = " & hNode.Value Next Next 2014/1/10 Floryn90 : > When declaring Dim hXmlElementAttributes As .XmlElementAttributes > gambas tell me "Unexpected '.' " > > Nella citazione in data ven 10 gen 2014 17:36:10 CET, Kende Kriszti?n > ha scritto: >> 2014-01-10 17:22 keltez?ssel, Floryn90 ?rta: >>> How can i convert a .XmlElementAttributes into string >>> >>> >> >> http://www.gambasdoc.org/help/comp/gb.xml/.xmlelementattributes/_next?v3 >> >> http://www.gambasdoc.org/help/comp/gb.xml/xmlnode/tostring?v3 >> >> >> ------------------------------------------------------------------------------ >> CenturyLink Cloud: The Leader in Enterprise Cloud Services. >> Learn Why More Businesses Are Choosing CenturyLink Cloud For >> Critical Workloads, Development Environments & Everything In Between. >> Get a Quote or Start a Free Trial Today. >> http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user > > ------------------------------------------------------------------------------ > CenturyLink Cloud: The Leader in Enterprise Cloud Services. > Learn Why More Businesses Are Choosing CenturyLink Cloud For > Critical Workloads, Development Environments & Everything In Between. > Get a Quote or Start a Free Trial Today. > http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -- Fabien Bodard From gambas at ...1... Fri Jan 10 22:40:54 2014 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Fri, 10 Jan 2014 22:40:54 +0100 Subject: [Gambas-user] rendering text in a GLArea In-Reply-To: References: Message-ID: <52D068E6.7040807@...1...> Le 10/01/2014 22:28, terco IDE a ?crit : > >> Le 10/01/2014 16:56, terco IDE a ?crit : >>> Hi, does anyone has an example on rendering some text in a glArea with (or without) openGL? >>> >>> tnx! >>> >>> Saludos >>> Martin >>> >> >> Look at the PdfPresentation example, it uses a GLArea. And I don't know >> what you mean by *not* using OpenGL to draw in a GLArea. >> >> -- >> Beno?t Minisini >> > > funny, it's the only OpenGL example I can't run: program freezes while showing the Openfile dialog. Indeed, with gb.gtk. But it works with gb.qt4... > Tried this workaround: > > Dialog.Title = ("Select a PDF file") > Dialog.Filter = ["*.pdf", ("PDF files")] > 'If Dialog.OpenFile() Then Return ' FREEZES HERE > 'workaround (its a valid path) > sPath = User.home &/ "CIRSOC tablas de perfiles.pdf" 'Dialog.Path > txtPath.Text = sPath > > but only shows a rotating cube with the gambas logo. You must press the SPACE key then. -- Beno?t Minisini From gambas.fr at ...626... Fri Jan 10 22:42:37 2014 From: gambas.fr at ...626... (Fabien Bodard) Date: Fri, 10 Jan 2014 22:42:37 +0100 Subject: [Gambas-user] Translating forms in gambas In-Reply-To: <1389308155.3186.11.camel@...40...> References: <52CF0EE5.2070300@...626...> <1389302132.2516.9.camel@...40...> <52CF1293.3090300@...626...> <1389308155.3186.11.camel@...40...> Message-ID: http://www.gambasdoc.org/help/comp/gb/system/language?v3 A the begining of your app 2014/1/9 Charlie Reinl : > Am Donnerstag, den 09.01.2014, 22:20 +0100 schrieb Floryn90: >> Hi Charlie, >> I need to change the language when user click on >> Menu->Languages->"Language Name". >> >> Nella citazione in data gio 09 gen 2014 22:15:32 CET, Charlie Reinl ha >> scritto: >> > Am Donnerstag, den 09.01.2014, 22:04 +0100 schrieb Floryn90: >> >> Hi everyone, >> >> I'm making an app and i need to translate it in various languages. From >> >> Project->Translate i made the translations. Now i made some menu entry >> >> for some languages and i need to set that language (that was selected >> >> from user by clicking on its name). How can i set the language and >> >> refresh the form with translated labels ? >> >> >> >> Thanks in advance, >> >> Florin >> > >> > Salut Florin, >> > >> > normally the used language depends on the users language on the box, if >> > not found the default language, fixed in the project is used (see >> > project/properties). >> > >> > But if you want to change to any of these languages at start up, you'll >> > find in the mailing list archives the answer. >> > > > Salut Florin, > > if you want to change at any moment the user want the project language, > so you have to program that by your own. > As I said, the gettext behind Project->Translate acts at start up. > > > -- > Amicalement > Charlie > > > ------------------------------------------------------------------------------ > CenturyLink Cloud: The Leader in Enterprise Cloud Services. > Learn Why More Businesses Are Choosing CenturyLink Cloud For > Critical Workloads, Development Environments & Everything In Between. > Get a Quote or Start a Free Trial Today. > http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -- Fabien Bodard From taboege at ...626... Fri Jan 10 22:55:36 2014 From: taboege at ...626... (Tobias Boege) Date: Fri, 10 Jan 2014 22:55:36 +0100 Subject: [Gambas-user] How to convert .XmlElementAttributes into string In-Reply-To: <52D025B9.8060604@...626...> References: <52D01E4D.5020103@...626...> <52D0217A.9080005@...2007...> <52D025B9.8060604@...626...> Message-ID: <20140110215535.GB468@...2774...> On Fri, 10 Jan 2014, Floryn90 wrote: > When declaring Dim hXmlElementAttributes As .XmlElementAttributes > gambas tell me "Unexpected '.' " > I see you don't really understand what you're typing so let me explain this first: .XmlElementAttributes is a virtual class (which is IMHO one of the best features in Gambas, at least, from a C component writer's perspective). This means that you cannot declare a variable of this class nor instantiate an object of it because it wraps a portion of the state of an already existing object in a convenient interface. (The most prominent example for me is the Editor.Styles interface (gb.qt4.ext) which basically implements flags in an OO manner without being too heavy on resources internally.) So you cannot save a reference to an .XmlElementAttributes because it doesn't really mean anything. Oh, and I see, Fabien just answered your actual question. Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From mmcg29440 at ...3163... Fri Jan 10 23:43:01 2014 From: mmcg29440 at ...3163... (Marty) Date: Fri, 10 Jan 2014 17:43:01 -0500 Subject: [Gambas-user] How to change the colors on a menu created with the Menu Editor Message-ID: <52D07775.3010606@...3163...> Hello, I'd like to change the background color on a menu created with the Menu Editor. It appears to be a light gray now and it looks poor compared to other controls. It would look better (IMHO) if I could change the background to light blue. Is this possible? I have not found any such properties for a menu. All suggestions welcome. Marty From gambas at ...1... Fri Jan 10 23:50:50 2014 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Fri, 10 Jan 2014 23:50:50 +0100 Subject: [Gambas-user] How to change the colors on a menu created with the Menu Editor In-Reply-To: <52D07775.3010606@...3163...> References: <52D07775.3010606@...3163...> Message-ID: <52D0794A.8090604@...1...> Le 10/01/2014 23:43, Marty a ?crit : > Hello, > > I'd like to change the background color on a menu created with the Menu > Editor. It appears to be a light gray now and it looks poor compared to > other controls. It would look better (IMHO) if I could change the > background to light blue. Is this possible? I have not found any such > properties for a menu. > > All suggestions welcome. > > Marty > The background color of menus (and the foreground color) are defined in the underlying widget theme. Gambas cannot change it by itself. -- Beno?t Minisini From gambas at ...1... Sat Jan 11 01:46:31 2014 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Sat, 11 Jan 2014 01:46:31 +0100 Subject: [Gambas-user] Release of Gambas 3.5.2 Message-ID: <52D09467.1070301@...1...> Hi, Gambas 3.5.2 has been released, with 67 bug fixes backported from the development version. The detail is there: http://gambasdoc.org/help/doc/release/3.5.2?view A last-minute bug has been fixed in the gb.gtk component, so those who already have made packages of Gambas 3.5.2 must redone it. Enjoy it! -- Beno?t Minisini From tercoide at ...67... Sat Jan 11 02:18:40 2014 From: tercoide at ...67... (terco IDE) Date: Sat, 11 Jan 2014 01:18:40 +0000 Subject: [Gambas-user] rendering text in a GLArea In-Reply-To: References: Message-ID: > >> Le 10/01/2014 16:56, terco IDE a ?crit : > >>> Hi, does anyone has an example on rendering some text in a glArea with (or without) openGL? > >>> > >>> tnx! > >>> > >>> Saludos > >>> Martin > >>> > >> > >> Look at the PdfPresentation example, it uses a GLArea. And I don't know > >> what you mean by *not* using OpenGL to draw in a GLArea. > >> > >> -- > >> Beno?t Minisini > >> > > > > funny, it's the only OpenGL example I can't run: program freezes while showing the Openfile dialog. > > Indeed, with gb.gtk. But it works with gb.qt4... > > > Tried this workaround: > > > > Dialog.Title = ("Select a PDF file") > > Dialog.Filter = ["*.pdf", ("PDF files")] > > 'If Dialog.OpenFile() Then Return ' FREEZES HERE > > 'workaround (its a valid path) > > sPath = User.home &/ "CIRSOC tablas de perfiles.pdf" 'Dialog.Path > > txtPath.Text = sPath > > > > but only shows a rotating cube with the gambas logo. > > You must press the SPACE key then. > > -- > Beno?t Minisini Got it working after moving code from glaPresentation_KeyPress to Form_KeyPress, but it's not the kind of text rendering I need because the GLArea will be a mixed between a structure (a building) some text data. From tercoide at ...67... Sat Jan 11 02:28:45 2014 From: tercoide at ...67... (terco IDE) Date: Sat, 11 Jan 2014 01:28:45 +0000 Subject: [Gambas-user] rendering text in a GLArea In-Reply-To: References: Message-ID: > >> Le 10/01/2014 16:56, terco IDE a ?crit : > >>> Hi, does anyone has an example on rendering some text in a glArea with (or without) openGL? > >>> > >>> tnx! > >>> > >>> Saludos > >>> Martin > >>> > >> > >> Look at the PdfPresentation example, it uses a GLArea. And I don't know > >> what you mean by *not* using OpenGL to draw in a GLArea. > >> > >> -- > >> Beno?t Minisini > >> > > > > funny, it's the only OpenGL example I can't run: program freezes while showing the Openfile dialog. > > Indeed, with gb.gtk. But it works with gb.qt4... > > > Tried this workaround: > > > > Dialog.Title = ("Select a PDF file") > > Dialog.Filter = ["*.pdf", ("PDF files")] > > 'If Dialog.OpenFile() Then Return ' FREEZES HERE > > 'workaround (its a valid path) > > sPath = User.home &/ "CIRSOC tablas de perfiles.pdf" 'Dialog.Path > > txtPath.Text = sPath > > > > but only shows a rotating cube with the gambas logo. > > You must press the SPACE key then. > > -- > Beno?t Minisini > Just thougt about a little hidden Picturebox to print the text with usual methods and then past the image from memory into the GLArea when rendering. Do you think that would work? From kevinfishburne at ...1887... Sat Jan 11 09:14:20 2014 From: kevinfishburne at ...1887... (Kevin Fishburne) Date: Sat, 11 Jan 2014 03:14:20 -0500 Subject: [Gambas-user] Rendering text with OpenGL example In-Reply-To: References: Message-ID: <52D0FD5C.3030402@...1887...> On 01/10/2014 10:56 AM, terco IDE wrote: > Hi, does anyone has an example on rendering some text in a glArea with (or without) openGL? > > tnx! > > Saludos > Martin Yes (using OpenGL), but it's rather involved. I had an epic failure of hardware and human logic this week and am just wrapping up restoring sanity to my server and workstation, but give me a day or so and I'll give you the source code. It's my understanding that OpenGL has no native support of rendering text, that it must be done manually. I can also provide you with a couple of "fonts" that I created from ttf. Basically you take a ttf, type out all the characters you want in GIMP (I recommend keeping them in line with an ASCII table), then save each character into a separate png file with alpha. You then load these into OpenGL textures and render them as quads. The horrible bit (as if it weren't horrible enough) is getting the spacing right for different combinations of characters. You'll want to add drop shadows, beveling, etc. in GIMP as I don't know of a way to do this in OpenGL other than perhaps by using shaders (zero knowledge there). Using Gambas's native software text rendering libraries is slower but easier. Kevin From nemh at ...2007... Sat Jan 11 11:02:19 2014 From: nemh at ...2007... (=?ISO-8859-1?Q?Kende_Kriszti=E1n?=) Date: Sat, 11 Jan 2014 11:02:19 +0100 Subject: [Gambas-user] Release of Gambas 3.5.2 In-Reply-To: <52D09467.1070301@...1...> References: <52D09467.1070301@...1...> Message-ID: <52D116AB.4080302@...2007...> 2014-01-11 01:46 keltez?ssel, Beno?t Minisini ?rta: > Hi, > > Gambas 3.5.2 has been released, with 67 bug fixes backported from the > development version. > > The detail is there: http://gambasdoc.org/help/doc/release/3.5.2?view > > A last-minute bug has been fixed in the gb.gtk component, so those who > already have made packages of Gambas 3.5.2 must redone it. > > Enjoy it! > Thanks, I recreated the packages in nemh/gambas3 PPA. So the 3.5.2-2 is the final version. Kendek From gambas at ...1... Sat Jan 11 11:59:53 2014 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Sat, 11 Jan 2014 11:59:53 +0100 Subject: [Gambas-user] Rendering text with OpenGL example In-Reply-To: <52D0FD5C.3030402@...1887...> References: <52D0FD5C.3030402@...1887...> Message-ID: <52D12429.4070208@...1...> Le 11/01/2014 09:14, Kevin Fishburne a ?crit : > On 01/10/2014 10:56 AM, terco IDE wrote: >> Hi, does anyone has an example on rendering some text in a glArea with (or without) openGL? >> >> tnx! >> >> Saludos >> Martin > > Yes (using OpenGL), but it's rather involved. I had an epic failure of > hardware and human logic this week and am just wrapping up restoring > sanity to my server and workstation, but give me a day or so and I'll > give you the source code. > > It's my understanding that OpenGL has no native support of rendering > text, that it must be done manually. I can also provide you with a > couple of "fonts" that I created from ttf. > > Basically you take a ttf, type out all the characters you want in GIMP > (I recommend keeping them in line with an ASCII table), then save each > character into a separate png file with alpha. You then load these into > OpenGL textures and render them as quads. The horrible bit (as if it > weren't horrible enough) is getting the spacing right for different > combinations of characters. You'll want to add drop shadows, beveling, > etc. in GIMP as I don't know of a way to do this in OpenGL other than > perhaps by using shaders (zero knowledge there). > > Using Gambas's native software text rendering libraries is slower but > easier. > > Kevin Why slower? You can use Gambas to create the font characters texture, and maintain a texture cache to not do that each time a character is drawn. -- Beno?t Minisini From admin at ...2701... Sat Jan 11 13:55:11 2014 From: admin at ...2701... (J. Mischke) Date: Sat, 11 Jan 2014 13:55:11 +0100 Subject: [Gambas-user] Howto make a newpage with gb.report Message-ID: <1389444911.4189.1.camel@...3288...> I have a little problem with gb.report. My list is a mysql select with a group by command, and i want to print any group separatly. At the moment I have no idea how to tell gb.report after the cahnging of the group to build anew page. Any hints? Best regads Juergen From gambas.fr at ...626... Sat Jan 11 17:29:35 2014 From: gambas.fr at ...626... (Fabien Bodard) Date: Sat, 11 Jan 2014 17:29:35 +0100 Subject: [Gambas-user] Howto make a newpage with gb.report In-Reply-To: <1389444911.4189.1.camel@...3288...> References: <1389444911.4189.1.camel@...3288...> Message-ID: Can you send me an example of your report... Do you use fill repeaters ? Le 11 janv. 2014 14:13, "J. Mischke" a ?crit : > I have a little problem with gb.report. My list is a mysql select with a > group by command, and i want to print any group separatly. > > At the moment I have no idea how to tell gb.report after the cahnging of > the group to build anew page. Any hints? > > Best regads > > Juergen > > > > ------------------------------------------------------------------------------ > CenturyLink Cloud: The Leader in Enterprise Cloud Services. > Learn Why More Businesses Are Choosing CenturyLink Cloud For > Critical Workloads, Development Environments & Everything In Between. > Get a Quote or Start a Free Trial Today. > > http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Sat Jan 11 18:00:14 2014 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Sat, 11 Jan 2014 18:00:14 +0100 Subject: [Gambas-user] Gambas ARM/Innodb issue In-Reply-To: References: <52D1375D.3090905@...1...> Message-ID: <52D1789E.20400@...1...> Le 11/01/2014 17:25, Ron a ?crit : > You are right, only some comments on transactions, but no code differences. > > Wha we see happening is a disconnect from client when running on ARM, > and gambas mysql reconnect option seems to reconnect most of the > times, but sometimes it crashes. > > When db i MyISAM and arch ARM we see no disconnects, so no reconnects needed. > That runs ok with same database. > When we convert fields to Innodb, and restart program the issues happen. > > How can I debug/log mysql queries on highest level from gambas? > > Maybe goog to run valgrind to detect memory issues? > Which bug caused most of the ARM bugs so far? > Does it have to do with memory alignment? > When compiling a C source code on an ARM architecture, you can get a running program that could crash without any warning from the compiler. Why? On ARM, you can read a N-bytes words from memory (N being 1, 2 or 4) only if the memory address is a multiple of N. Otherwise you get a crash. The Gnu C compiler ensure that. -But- if you declare a "packed" structure, i.e. a structure whose fields are "sticked" in memory (usually not to waste memory, or because you want to be sure of the total structure size), then the compiler does what you ask, tells nothing, and your program crashed at runtime, or have completely strange behaviours. And you usually get that sort of problems on low-level programs like an interpreter (hum...) or a database server/driver. They need to do some weird things sometimes. Of course, you can write your code carefully... if you know that ten years later a new CPU architecture will become popular. :-) Try to use valgrind, you will get some clues if the problem is in the database driver. Regards, -- Beno?t Minisini From taboege at ...626... Sat Jan 11 19:05:49 2014 From: taboege at ...626... (Tobias Boege) Date: Sat, 11 Jan 2014 19:05:49 +0100 Subject: [Gambas-user] Swap expressions with side effects Message-ID: <20140111180549.GA610@...2774...> Hi, I just spent two good hours over my implementation of an algorithm to arrange some PointFs in an array so that the distance between P[i] and P[i+1] is the smallest possible among all points P[j], j > i. I don't want to bother you with details (well, I think I already did, sorry) but the comparison of two points is not only a function of these two points but also of some other reference point. So I used a line like this: Swap $aPoints[iInd + 1], $aPoints[GetNearest(iInd)] which means: get me the index of the nearest point to $aPoints[iInd] and swap $aPoints[iInd + 1] with the value there. This effectively sorts my array into the desired order (For iInd = 0 To $aPoints.Max - 1). Well, not really. Because Swap is not immune to side effects induced by the expressions to swap. The wiki states that implicitly by saying that Swap A, B is equivalent to tmp = A A = B B = tmp So my code really was: tmp = $aPoints[iInd + 1] $aPoints[iInd + 1] = $aPoints[GetNearest(iInd)] $aPoints[GetNearest(iInd)] = tmp which leads to an erroneous array because GetNearest() is a function of $aPoints[iInd + 1] which changed between the two invocations. [ The funny thing is that, due to the nature of GetNearest(), the result of the above three lines for all iInd is that the array remains unchanged. ] To cut a long story short, is this by design? Do you think it's worth changing that behaviour (it wouldn't break any sane use of Swap)? If not it's equivalently fine. I'll add a clear warning to the wiki, then. Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From gambas at ...1... Sat Jan 11 19:26:44 2014 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Sat, 11 Jan 2014 19:26:44 +0100 Subject: [Gambas-user] Swap expressions with side effects In-Reply-To: <20140111180549.GA610@...2774...> References: <20140111180549.GA610@...2774...> Message-ID: <52D18CE4.1030704@...1...> Le 11/01/2014 19:05, Tobias Boege a ?crit : > Hi, > > I just spent two good hours over my implementation of an algorithm to > arrange some PointFs in an array so that the distance between P[i] and > P[i+1] is the smallest possible among all points P[j], j > i. I don't > want to bother you with details (well, I think I already did, sorry) but > the comparison of two points is not only a function of these two points > but also of some other reference point. So I used a line like this: > > Swap $aPoints[iInd + 1], $aPoints[GetNearest(iInd)] > > which means: get me the index of the nearest point to $aPoints[iInd] and > swap $aPoints[iInd + 1] with the value there. This effectively sorts my > array into the desired order (For iInd = 0 To $aPoints.Max - 1). > > Well, not really. Because Swap is not immune to side effects induced by > the expressions to swap. The wiki states that implicitly by saying that > > Swap A, B > > is equivalent to > > tmp = A > A = B > B = tmp > > So my code really was: > > tmp = $aPoints[iInd + 1] > $aPoints[iInd + 1] = $aPoints[GetNearest(iInd)] > $aPoints[GetNearest(iInd)] = tmp > > which leads to an erroneous array because GetNearest() is a function of > $aPoints[iInd + 1] which changed between the two invocations. [ The funny > thing is that, due to the nature of GetNearest(), the result of the above > three lines for all iInd is that the array remains unchanged. ] > > To cut a long story short, is this by design? Do you think it's worth > changing that behaviour (it wouldn't break any sane use of Swap)? If not > it's equivalently fine. I'll add a clear warning to the wiki, then. > > Regards, > Tobi > As stated by the documentation, 'Swap' is just syntactic sugar for: tmp = A A = B B = tmp Each Swap expression will be evaluated twice (once as an expression, and once as an assignment). It's like a C macro. So I'm afraid it won't change! -- Beno?t Minisini From taboege at ...626... Sat Jan 11 19:43:08 2014 From: taboege at ...626... (Tobias Boege) Date: Sat, 11 Jan 2014 19:43:08 +0100 Subject: [Gambas-user] Swap expressions with side effects In-Reply-To: <52D18CE4.1030704@...1...> References: <20140111180549.GA610@...2774...> <52D18CE4.1030704@...1...> Message-ID: <20140111184308.GB610@...2774...> On Sat, 11 Jan 2014, Beno?t Minisini wrote: > Le 11/01/2014 19:05, Tobias Boege a ?crit : > > Hi, > > > > I just spent two good hours over my implementation of an algorithm to > > arrange some PointFs in an array so that the distance between P[i] and > > P[i+1] is the smallest possible among all points P[j], j > i. I don't > > want to bother you with details (well, I think I already did, sorry) but > > the comparison of two points is not only a function of these two points > > but also of some other reference point. So I used a line like this: > > > > Swap $aPoints[iInd + 1], $aPoints[GetNearest(iInd)] > > > > which means: get me the index of the nearest point to $aPoints[iInd] and > > swap $aPoints[iInd + 1] with the value there. This effectively sorts my > > array into the desired order (For iInd = 0 To $aPoints.Max - 1). > > > > Well, not really. Because Swap is not immune to side effects induced by > > the expressions to swap. The wiki states that implicitly by saying that > > > > Swap A, B > > > > is equivalent to > > > > tmp = A > > A = B > > B = tmp > > > > So my code really was: > > > > tmp = $aPoints[iInd + 1] > > $aPoints[iInd + 1] = $aPoints[GetNearest(iInd)] > > $aPoints[GetNearest(iInd)] = tmp > > > > which leads to an erroneous array because GetNearest() is a function of > > $aPoints[iInd + 1] which changed between the two invocations. [ The funny > > thing is that, due to the nature of GetNearest(), the result of the above > > three lines for all iInd is that the array remains unchanged. ] > > > > To cut a long story short, is this by design? Do you think it's worth > > changing that behaviour (it wouldn't break any sane use of Swap)? If not > > it's equivalently fine. I'll add a clear warning to the wiki, then. > > > > Regards, > > Tobi > > > > As stated by the documentation, 'Swap' is just syntactic sugar for: > > tmp = A > A = B > B = tmp > > Each Swap expression will be evaluated twice (once as an expression, and > once as an assignment). It's like a C macro. > > So I'm afraid it won't change! > OK, I wrote an explicit warning into the wiki. -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From admin at ...2701... Sat Jan 11 19:45:25 2014 From: admin at ...2701... (J. Mischke) Date: Sat, 11 Jan 2014 19:45:25 +0100 Subject: [Gambas-user] Howto make a newpage with gb.report In-Reply-To: References: <1389444911.4189.1.camel@...3288...> Message-ID: <1389465925.7034.6.camel@...3288...> On Sa, 2014-01-11 at 17:29 +0100, Fabien Bodard wrote: > Can you send me an example of your report... Do you use fill repeaters ? > Le 11 janv. 2014 14:13, "J. Mischke" a ?crit : I use a part of the report example of Gambas and make some modifacation. I use it like: For Each R Rlbl = New ReportLabel(RVBCont) Rlbl.Autoresize = True Rlbl.Font.Name = "Courier" Rlbl.Font.Size = 7 .... some sourcecode more.in which a write my databasefields to rlbl.text. ( One Label for each line ) It work well, but I see no possibility to say at one point ( in my example if a group of data from my SQL statement make it neccessary to create a new page ) Best regards juergen ( hope my exampe is useful ) From bbruen at ...2308... Sun Jan 12 00:09:17 2014 From: bbruen at ...2308... (Bruce) Date: Sun, 12 Jan 2014 09:39:17 +1030 Subject: [Gambas-user] Starting a Process and forgetting about it In-Reply-To: <20130813101540.GC833@...2774...> References: <20130807080842.GA860@...2774...> <52096FC0.8090405@...1...> <20130813092248.GB833@...2774...> <5209FCE7.5020005@...1...> <20130813101540.GC833@...2774...> Message-ID: <1389481758.5709.36.camel@...2688...> On Tue, 2013-08-13 at 12:15 +0200, Tobias Boege wrote: > On Tue, 13 Aug 2013, Beno?t Minisini wrote: > > > However, I don't think this is a common enough scenario to have it > > > implemented directly in the Process object. I got by by using Shell > > > "setsid ... &". Whereas automatically killing background child processes > > > seems to be a nice addition. Thanks for your effort anyway. > > > > > > Regards, > > > Tobi > > > > > > > I could call setsid() for the child process, but I have no syntax in the > > EXEC/SHELL instruction for that. I will think about it... > > > > Besides the syntax, there is another thing to be aware of: If there is a > pipe from child -> parent (write -> read) and after the parent dies, the > child writes to the pipe, it will receive a SIGPIPE and die, too, if it > doesnt't catch this signal. > > It means if whatever flag to enable setsid() is set, the user must carefully > think about adding For Read/Write/Input/Output. > > Regards, > Tobi Good morning, Did this ever get taken further? (Another long post sorry!) I now find myself in a similar situation to Tobi, a little simpler but with an added twist. Basically, we have about 8 projects that can shell each other in a certain heirarchy. Each of these provides functionality based on a "log-in role" matching the role that the user wants to assume for that session. So a simple example of a hierarchy would be manager-->analyst-->tester-->testdeveloper. That is the manager role can shell the analyst role project which can shell the tester role etc. There are other more complex heirarchies. What I need to provide is two exit strategies, "Quit" and "Quit All" that would nicely close down either the current project leaving any child processes running or close the current project and all child processes respectively. The "twist" is that they want the "Quit All" to also close any parent processes, in other words to work both up and down the chain at every level. I think these are two different things from the Gambas point of view (and on further consideration, lets leave that out of this.) I thought that the 1) hProc.Ignore=True could provide the "Quit All" for the first matter, and I think hProc.Ignore=False might provide the "Quit" but it would leave the parent process running which in turn wont exit until the remaining child processes exit. Here's the issue: Re 1) Since the user could start multiple child processes I use a global array $processes of type Process[] and add the hProc every time they start a new child. The two handlers for the Quit menu items are: Public Sub mnuExit_Click() Me.Close End Public Sub ExitAll_Click() Dim hProc As Process For Each hProc In $Processes $hProc.Ignore = True Next Me.Close End When I run this inside the IDE it all works, no matter how many child processes they kick off. ps f -U bb -o pid,ppid,args shows (abridged output): PID PPID COMMAND 17447 1 gbr3 /usr/bin/gambas3 18411 17447 \_ /usr/bin/gbx3 -g -f 17447 /.../atestmgr/tmmanager 18439 18411 \_ gbr3 /.../atestmgr/tmttester/tmttester.gambas 18449 18411 \_ gbr3 /.../atestmgr/tmdeveloper/tmdeveloper.gambas 18468 18411 \_ gbr3 /.../atestmgr/tmanalyst/tmanalyst.gambas and when I "Quit All" from proc 18411 they all close down. Now if I run the compiled tmmanager from a vterminal I get: PID PPID COMMAND 17187 1 lxterminal 17872 17187 \_ /bin/bash 18722 17872 \_ gbr3 ./tmmanager.gambas 18739 18722 \_gbr3 /.../atestmgr/tmdeveloper/tmdeveloper.gambas 18744 18722 \_ gbr3 /.../atestmgr/tmttester/tmttester.gambas 18751 18722 \_ gbr3 /../atestmgr/tmanalyst/tmanalyst.gambas as expected, BUT when I "Quit All" (from 18772) the children stay alive: PID PPID COMMAND 18751 1 gbr3 /.../atestmgr/tmanalyst/tmanalyst.gambas 18744 1 gbr3 /.../atestmgr/tmttester/tmttester.gambas 18739 1 gbr3 /.../atestmgr/tmdeveloper/tmdeveloper.gambas 17187 1 lxterminal 17872 17187 \_ /bin/bash and magically they have moved to the init proc. Finally, If I just "Quit" from either the IDE debug mode or from the vterminal the expected occurs - the original process stays alive until the last child process exits. So, it appears gbx3 and gbr3 are doing different things? regards Bruce From gambas at ...2524... Sun Jan 12 01:03:25 2014 From: gambas at ...2524... (gambas at ...2524...) Date: Sun, 12 Jan 2014 00:03:25 +0000 Subject: [Gambas-user] Issue 484 in gambas: IDE and Runtime show different stock icons In-Reply-To: <3-6813199134517018827-6655334807421817230-gambas=googlecode.com@...2524...> References: <3-6813199134517018827-6655334807421817230-gambas=googlecode.com@...2524...> <0-6813199134517018827-6655334807421817230-gambas=googlecode.com@...2524...> Message-ID: <4-6813199134517018827-6655334807421817230-gambas=googlecode.com@...2524...> Comment #4 on issue 484 by adamn... at ...626...: IDE and Runtime show different stock icons http://code.google.com/p/gambas/issues/detail?id=484 OK, I think I've got to the bottom of this. It is an LXDE (and Mageia (whatever)) issue. It relates how it handles "not finding" an icon in /usr/share/icons/theme/... (I had to nearly delete every theme off these boxes in order to find where the different icons lived.) Whatever you are doing in the toolbox CalcIconSize() method (and GetIcon) or perhaps way down deep inside Picture if you refer to an icon file that doesn't exist at the location specified, "it" whatever it is inside LXDE/Openbox goes and finds something it deems suitable. How it does that is beyond me, but it looks like it could have something to do with the mime database. Anyway, having found that neither box had a Tango/16/package.png it got the one it displayed from somewhere else. I have made a 16/package.png by copying the one in the IDE version and now it all works. Sorry, about the noise, but close this one. B -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From bbruen at ...2308... Sun Jan 12 01:53:30 2014 From: bbruen at ...2308... (Bruce) Date: Sun, 12 Jan 2014 11:23:30 +1030 Subject: [Gambas-user] Starting a Process and forgetting about it In-Reply-To: <1389481758.5709.36.camel@...2688...> References: <20130807080842.GA860@...2774...> <52096FC0.8090405@...1...> <20130813092248.GB833@...2774...> <5209FCE7.5020005@...1...> <20130813101540.GC833@...2774...> <1389481758.5709.36.camel@...2688...> Message-ID: <1389488010.5709.37.camel@...2688...> On Sun, 2014-01-12 at 09:39 +1030, Bruce wrote: > On Tue, 2013-08-13 at 12:15 +0200, Tobias Boege wrote: > > On Tue, 13 Aug 2013, Beno?t Minisini wrote: > > > > However, I don't think this is a common enough scenario to have it > > > > implemented directly in the Process object. I got by by using Shell > > > > "setsid ... &". Whereas automatically killing background child processes > > > > seems to be a nice addition. Thanks for your effort anyway. > > > > > > > > Regards, > > > > Tobi > > > > > > > > > > I could call setsid() for the child process, but I have no syntax in the > > > EXEC/SHELL instruction for that. I will think about it... > > > > > > > Besides the syntax, there is another thing to be aware of: If there is a > > pipe from child -> parent (write -> read) and after the parent dies, the > > child writes to the pipe, it will receive a SIGPIPE and die, too, if it > > doesnt't catch this signal. > > > > It means if whatever flag to enable setsid() is set, the user must carefully > > think about adding For Read/Write/Input/Output. > > > > Regards, > > Tobi > > Good morning, > > Did this ever get taken further? (Another long post sorry!) > > I now find myself in a similar situation to Tobi, a little simpler but > with an added twist. > > Basically, we have about 8 projects that can shell each other in a > certain heirarchy. Each of these provides functionality based on a > "log-in role" matching the role that the user wants to assume for that > session. So a simple example of a hierarchy would be > manager-->analyst-->tester-->testdeveloper. That is the manager role > can shell the analyst role project which can shell the tester role etc. > There are other more complex heirarchies. > > What I need to provide is two exit strategies, "Quit" and "Quit All" > that would nicely close down either the current project leaving any > child processes running or close the current project and all child > processes respectively. The "twist" is that they want the "Quit All" to > also close any parent processes, in other words to work both up and down > the chain at every level. I think these are two different things from > the Gambas point of view (and on further consideration, lets leave that > out of this.) > > I thought that the 1) hProc.Ignore=True could provide the "Quit All" for > the first matter, and I think hProc.Ignore=False might provide the > "Quit" but it would leave the parent process running which in turn wont > exit until the remaining child processes exit. > > Here's the issue: > Re 1) Since the user could start multiple child processes I use a global > array $processes of type Process[] and add the hProc every time they > start a new child. The two handlers for the Quit menu items are: > > Public Sub mnuExit_Click() > > Me.Close > > End > > Public Sub ExitAll_Click() > > Dim hProc As Process > > For Each hProc In $Processes > $hProc.Ignore = True > Next > > Me.Close > > End > > When I run this inside the IDE it all works, no matter how many child > processes they kick off. ps f -U bb -o pid,ppid,args shows (abridged > output): > PID PPID COMMAND > 17447 1 gbr3 /usr/bin/gambas3 > 18411 17447 \_ /usr/bin/gbx3 -g -f 17447 /.../atestmgr/tmmanager > 18439 18411 \_ gbr3 /.../atestmgr/tmttester/tmttester.gambas > 18449 18411 \_ gbr3 /.../atestmgr/tmdeveloper/tmdeveloper.gambas > 18468 18411 \_ gbr3 /.../atestmgr/tmanalyst/tmanalyst.gambas > > and when I "Quit All" from proc 18411 they all close down. > > Now if I run the compiled tmmanager from a vterminal I get: > PID PPID COMMAND > 17187 1 lxterminal > 17872 17187 \_ /bin/bash > 18722 17872 \_ gbr3 ./tmmanager.gambas > 18739 18722 \_gbr3 /.../atestmgr/tmdeveloper/tmdeveloper.gambas > 18744 18722 \_ gbr3 /.../atestmgr/tmttester/tmttester.gambas > 18751 18722 \_ gbr3 /../atestmgr/tmanalyst/tmanalyst.gambas > > as expected, BUT when I "Quit All" (from 18772) the children stay alive: > > PID PPID COMMAND > 18751 1 gbr3 /.../atestmgr/tmanalyst/tmanalyst.gambas > 18744 1 gbr3 /.../atestmgr/tmttester/tmttester.gambas > 18739 1 gbr3 /.../atestmgr/tmdeveloper/tmdeveloper.gambas > 17187 1 lxterminal > 17872 17187 \_ /bin/bash > > and magically they have moved to the init proc. > > Finally, If I just "Quit" from either the IDE debug mode or from the > vterminal the expected occurs - the original process stays alive until > the last child process exits. > > So, it appears gbx3 and gbr3 are doing different things? > > regards > Bruce > Before you ask, here it is. B -------------- next part -------------- A non-text attachment was scrubbed... Name: multiproc.tar.gz Type: application/x-compressed-tar Size: 283325 bytes Desc: not available URL: From gambas at ...2524... Sun Jan 12 02:22:35 2014 From: gambas at ...2524... (gambas at ...2524...) Date: Sun, 12 Jan 2014 01:22:35 +0000 Subject: [Gambas-user] Issue 495 in gambas: Toolbar config doesn't set button width properly Message-ID: <0-6813199134517018827-8713430213962951612-gambas=googlecode.com@...2524...> Status: New Owner: ---- Labels: Version Type-Bug Priority-Medium OpSys-Any Dist-Any Arch-Any Desktop-Any GUI-Any New issue 495 by adamn... at ...626...: Toolbar config doesn't set button width properly http://code.google.com/p/gambas/issues/detail?id=495 1) Describe the problem. Changing the IconSize in a toolbar doesn't recalc the button widths. This results in either the Text partially showing for Small or truncated icons for Large. 2) GIVE THE FOLLOWING INFORMATIONS (if they are appropriate): Version: TRUNK Revision: r6076 Operating system: Linux Distribution: PCLinuxOS Architecture: x86 GUI component: QT4 / GTK+ Desktop used: LXDE 3) Provide a little project that reproduces the bug or the crash. Attached 4) If your project needs a database, try to provide it, or part of it. N/A 5) Explain clearly how to reproduce the bug or the crash. a) Just use the toolbar configure menu to change the icon sizes ==> truncated icons in both Medium and Large b) Change the button widths in the IDE to 35 and rerun ==> text visible in both small and medium The book button will print the button sizes to stderr Attachments: toolbuttons-0.0.1.tar.gz 5.1 KB -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From bill-lancaster at ...2231... Sun Jan 12 09:02:17 2014 From: bill-lancaster at ...2231... (bill-lancaster) Date: Sun, 12 Jan 2014 00:02:17 -0800 (PST) Subject: [Gambas-user] Anotating a pdf image In-Reply-To: <20140110205752.GA468@...2774...> References: <1389369152114-45108.post@...3046...> <20140110205752.GA468@...2774...> Message-ID: <1389513737631-45140.post@...3046...> Thanks for the ideas and encouragement Tobi I've got something working now. -- View this message in context: http://gambas.8142.n7.nabble.com/Anotating-a-pdf-image-tp45108p45140.html Sent from the gambas-user mailing list archive at Nabble.com. From taboege at ...626... Sun Jan 12 10:50:14 2014 From: taboege at ...626... (Tobias Boege) Date: Sun, 12 Jan 2014 10:50:14 +0100 Subject: [Gambas-user] Anotating a pdf image In-Reply-To: <1389513737631-45140.post@...3046...> References: <1389369152114-45108.post@...3046...> <20140110205752.GA468@...2774...> <1389513737631-45140.post@...3046...> Message-ID: <20140112095014.GA555@...2774...> On Sun, 12 Jan 2014, bill-lancaster wrote: > Thanks for the ideas and encouragement Tobi > I've got something working now. > But be cautious with this... I wrote a proof-of-concept program and it turned out that PdfDocument[Page].GetImage() returns images with obvious quality loss and in the PDF I used for testing, some (not all) text magically disappeared. I'll file bug reports once I have the time to prepare them. Maybe we can do something about it. Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From taboege at ...626... Sun Jan 12 11:04:09 2014 From: taboege at ...626... (Tobias Boege) Date: Sun, 12 Jan 2014 11:04:09 +0100 Subject: [Gambas-user] Anotating a pdf image In-Reply-To: <20140112095014.GA555@...2774...> References: <1389369152114-45108.post@...3046...> <20140110205752.GA468@...2774...> <1389513737631-45140.post@...3046...> <20140112095014.GA555@...2774...> Message-ID: <20140112100409.GD555@...2774...> On Sun, 12 Jan 2014, Tobias Boege wrote: > On Sun, 12 Jan 2014, bill-lancaster wrote: > > Thanks for the ideas and encouragement Tobi > > I've got something working now. > > > > But be cautious with this... I wrote a proof-of-concept program and it > turned out that PdfDocument[Page].GetImage() returns images with obvious > quality loss and in the PDF I used for testing, some (not all) text > magically disappeared. Of course, this doesn't mean that the text disappeared in the original file but it wasn't present in the Image returned by GetImage()! -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From gambas.fr at ...626... Sun Jan 12 14:28:12 2014 From: gambas.fr at ...626... (Fabien Bodard) Date: Sun, 12 Jan 2014 14:28:12 +0100 Subject: [Gambas-user] Howto make a newpage with gb.report In-Reply-To: <1389465925.7034.6.camel@...3288...> References: <1389444911.4189.1.camel@...3288...> <1389465925.7034.6.camel@...3288...> Message-ID: Le 11 janv. 2014 19:46, "J. Mischke" a ?crit : > > On Sa, 2014-01-11 at 17:29 +0100, Fabien Bodard wrote: > > Can you send me an example of your report... Do you use fill repeaters ? > > Le 11 janv. 2014 14:13, "J. Mischke" a ?crit : > > I use a part of the report example of Gambas and make some modifacation. > > I use it like: > > For Each R > Rlbl = New ReportLabel(RVBCont) > Rlbl.Autoresize = True > Rlbl.Font.Name = "Courier" > Rlbl.Font.Size = 7 > .... some sourcecode more.in which a write my databasefields to > rlbl.text. ( One Label for each line ) > > It work well, but I see no possibility to say at one point ( in my > example if a group of data from my SQL statement make it neccessary to > create a new page ) > > Best regards > > juergen > > ( hope my exampe is useful ) > I will add quickly a new widget ReportPageBreak That will force the new page when the arranger see this > > > ------------------------------------------------------------------------------ > CenturyLink Cloud: The Leader in Enterprise Cloud Services. > Learn Why More Businesses Are Choosing CenturyLink Cloud For > Critical Workloads, Development Environments & Everything In Between. > Get a Quote or Start a Free Trial Today. > http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From admin at ...2701... Sun Jan 12 16:17:58 2014 From: admin at ...2701... (J. Mischke) Date: Sun, 12 Jan 2014 16:17:58 +0100 Subject: [Gambas-user] Howto make a newpage with gb.report In-Reply-To: References: <1389444911.4189.1.camel@...3288...> <1389465925.7034.6.camel@...3288...> Message-ID: <1389539878.9501.1.camel@...3288...> > > I will add quickly a new widget ReportPageBreak > That will force the new page when the arranger see this > > Yes, good idea. Many thanks for that. Greeting Juergen From lists at ...2828... Mon Jan 13 05:48:46 2014 From: lists at ...2828... (CJ) Date: Mon, 13 Jan 2014 05:48:46 +0100 Subject: [Gambas-user] Release of Gambas 3.5.2 In-Reply-To: <52D09467.1070301@...1...> Message-ID: <000001cf101a$c1e15d40$0f00a8c0@...2829...> > Gambas 3.5.2 has been released, with 67 bug fixes backported from the > development version. Altho I'm heavily backlogged with 1200+ unread messages this caught my eye and I just wants to say thank you to everyone in the Gambas team for you hard work and dedication! Looking forward to test 3.5.2 when a free timeslot arrives... Seasons Greetings! /CJ From kevinfishburne at ...1887... Mon Jan 13 06:32:45 2014 From: kevinfishburne at ...1887... (Kevin Fishburne) Date: Mon, 13 Jan 2014 00:32:45 -0500 Subject: [Gambas-user] Rendering text with OpenGL example In-Reply-To: <52D12429.4070208@...1...> References: <52D0FD5C.3030402@...1887...> <52D12429.4070208@...1...> Message-ID: <52D37A7D.9020405@...1887...> On 01/11/2014 05:59 AM, Beno?t Minisini wrote: > Le 11/01/2014 09:14, Kevin Fishburne a ?crit : >> On 01/10/2014 10:56 AM, terco IDE wrote: >>> Hi, does anyone has an example on rendering some text in a glArea with (or without) openGL? >>> >>> tnx! >>> >>> Saludos >>> Martin >> Yes (using OpenGL), but it's rather involved. I had an epic failure of >> hardware and human logic this week and am just wrapping up restoring >> sanity to my server and workstation, but give me a day or so and I'll >> give you the source code. >> >> It's my understanding that OpenGL has no native support of rendering >> text, that it must be done manually. I can also provide you with a >> couple of "fonts" that I created from ttf. >> >> Basically you take a ttf, type out all the characters you want in GIMP >> (I recommend keeping them in line with an ASCII table), then save each >> character into a separate png file with alpha. You then load these into >> OpenGL textures and render them as quads. The horrible bit (as if it >> weren't horrible enough) is getting the spacing right for different >> combinations of characters. You'll want to add drop shadows, beveling, >> etc. in GIMP as I don't know of a way to do this in OpenGL other than >> perhaps by using shaders (zero knowledge there). >> >> Using Gambas's native software text rendering libraries is slower but >> easier. >> >> Kevin > Why slower? You can use Gambas to create the font characters texture, > and maintain a texture cache to not do that each time a character is drawn. > That's a good point. It's actually exactly what I do with the the landscape tiles for my game using the DrawAlpha function. Composite each tile using Gambas software operations, then offload it to an array of OpenGL textures for on-screen rendering. I never thought the same could be done with text. In any case, let me know Martin if you're interested in my text rendering code and bitmaps. I finally got everything up and running here. -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sales at ...1887... phone: (770) 853-6271 From dl7nb at ...17... Mon Jan 13 09:06:10 2014 From: dl7nb at ...17... (Wolfgang) Date: Mon, 13 Jan 2014 09:06:10 +0100 Subject: [Gambas-user] Memory leak 2 Message-ID: <52D39E72.50008@...17...> Hello Beno?t, I found another strange behaviour: ==== snip Dim i As Long Dim s As String s = "1234567890abcdefghij1234567890abcdefghij1234567890abcdefghij1234567890abcdefghij1234567890abcdefghi" ' s has 99 Bytes plus the "\n", so we have 100Bytes for each line For i = 1 To 1000 TextArea1.Text &= s & "\n" Next ==== snip This builts a TextArea1.Text that has a length of 100kB. In my RAM it allocates app. 130MB! My fault or did I find a bug? ExampleProject and sysinfo in the attachment! Greetings from Bavaria Wolfgang -------------- next part -------------- A non-text attachment was scrubbed... Name: test.tar.gz Type: application/x-gzip Size: 6239 bytes Desc: not available URL: From eilert-sprachen at ...221... Mon Jan 13 12:14:10 2014 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Mon, 13 Jan 2014 12:14:10 +0100 Subject: [Gambas-user] TableView Column.Width quick adjust? Message-ID: <52D3CA82.4090709@...221...> When I want to adapt the Column.Width of all Columns in a TableView, will I still have to build this into the Data event or iterate through the whole thing, or is there meanwhile a quicker way to programmatically start the fast adaptation (the one which I get when double-clicking on the column header separators)? I ask because I haven't programmed tables for some time, and there might be changes. (By the way, in the tooltip help of 1.5.2, most of the texts end with dead links.) Thanks for your advice. Rolf From tercoide at ...67... Mon Jan 13 12:35:24 2014 From: tercoide at ...67... (terco IDE) Date: Mon, 13 Jan 2014 11:35:24 +0000 Subject: [Gambas-user] Rendering text with OpenGL example In-Reply-To: References: Message-ID: > >> Yes (using OpenGL), but it's rather involved. I had an epic failure of > >> hardware and human logic this week and am just wrapping up restoring > >> sanity to my server and workstation, but give me a day or so and I'll > >> give you the source code. > >> > >> It's my understanding that OpenGL has no native support of rendering > >> text, that it must be done manually. I can also provide you with a > >> couple of "fonts" that I created from ttf. > >> > >> Basically you take a ttf, type out all the characters you want in GIMP > >> (I recommend keeping them in line with an ASCII table), then save each > >> character into a separate png file with alpha. You then load these into > >> OpenGL textures and render them as quads. The horrible bit (as if it > >> weren't horrible enough) is getting the spacing right for different > >> combinations of characters. You'll want to add drop shadows, beveling, > >> etc. in GIMP as I don't know of a way to do this in OpenGL other than > >> perhaps by using shaders (zero knowledge there). > >> > >> Using Gambas's native software text rendering libraries is slower but > >> easier. > >> > >> Kevin > > Why slower? You can use Gambas to create the font characters texture, > > and maintain a texture cache to not do that each time a character is drawn. > > > That's a good point. It's actually exactly what I do with the the > landscape tiles for my game using the DrawAlpha function. Composite each > tile using Gambas software operations, then offload it to an array of > OpenGL textures for on-screen rendering. I never thought the same could > be done with text. > > In any case, let me know Martin if you're interested in my text > rendering code and bitmaps. I finally got everything up and running here. > > -- Of course I am! And I need no speed as my goal is a static view of a structure. I managed to get this code worrking but results are odd, because I cant make the text match the size of everithing else: Public Sub txtRendering2D(texto As String, p As Punto3d, Optional Altura As Single = 12, Optional _color As Long = Color.Blue, _BackColor As Long = -1) Dim rectangulo As RectF Dim imagen As New Image, pR As New Punto3d imagen.Resize(200, 200) 'so Paint.Begin gives no error Paint.Begin(imagen) Paint.Font.Size = Altura Paint.Brush = Paint.Color(_color) rectangulo = Paint.TextSize(texto) Paint.End 'this can't go into the Paint loop imagen.resize(rectangulo.w, rectangulo.h) imagen.Transparent(Color.Black) If _backcolor > 0 Then imagen.Fill(_BackColor) Paint.Begin(imagen) Paint.Font.Size = Altura Paint.Brush = Paint.Color(_color) Paint.Text(texto, 0, rectangulo.h) Paint.Fill Paint.End 'imagen.Save("imagen.png") ' this is to check the Paint worked (and works!) rotar3d(p, pr) ' custom rotation gl.Enable(gl.TEXTURE_2D) Gl.TexImage2D(imagen) Glu.Build2DMipmaps(imagen) Gl.TexParameteri(Gl.TEXTURE_2D, Gl.TEXTURE_MIN_FILTER, Gl.LINEAR_MIPMAP_NEAREST) Gl.TexParameteri(Gl.TEXTURE_2D, Gl.TEXTURE_MAG_FILTER, Gl.LINEAR) gl.Enable(gl.TEXTURE_2D) gl.BindTexture(gl.TEXTURE_2D, hText[0]) Gl.Begin(Gl.QUADS) gl.color3f(1, 1, 1) ' Bottom Left OF The Texture AND Quad Gl.TexCoordf(0.0, 1.0) Gl.Vertex3f(pr.x, pr.y, pr.z) ' Bottom Right OF The Texture AND Quad Gl.TexCoordf(1.0, 1.0) Gl.Vertex3f(pr.x + rectangulo.w, pr.y, pr.z) ' Top Right OF The Texture AND Quad Gl.TexCoordf(1.0, 0.0) Gl.Vertex3f(pr.x + rectangulo.w, pr.y + rectangulo.h, pr.z) ' Top Left OF The Texture AND Quad Gl.TexCoordf(0.0, 0.0) Gl.Vertex3f(pr.x, pr.y + rectangulo.h, pr.z) Gl.End() From greg.raffaelle at ...2755... Mon Jan 13 20:15:46 2014 From: greg.raffaelle at ...2755... (Greg Raffaelle) Date: Mon, 13 Jan 2014 13:15:46 -0600 Subject: [Gambas-user] Menu Show Event with Unity desktop Message-ID: <52D43B62.8050909@...2755...> >Le 09/01/2014 05:07, Greg Raffaelle a ?crit : > I set the environment variable APPMENU_DISPLAY_BOTH=1 as suggested and > the program menu is now displayed on both the global unity menu at the > top of the screen and on the main form. > > However, I still believe the program main class is only receiving show > menu events from the menu on the main form. The attached pdf shows two > screen shots with the program file menu displayed. The image on the > left is the file menu displayed from the top menu and the one of the > right is the file menu displayed from the main form. In the main class > I use the file menu _show() event to displayed recently opened file > names as items 1 through 5 at the bottom of the file menu. On the left > image you can see that item 1 is blank but on the right image the file > name test2.bps appears besides item 1. I did not perform any other > program operations between these two screen shots so the file menus > should have been displayed the same. Also note the underlining of short > cut letters (keys) does not show on the file menu in the right image. > When I set a breakpoint on the show menu event sub in the main class the > program does not stop when the file menu is selected from the top menu, > but it does stop when the same menu is selected on the main form. > > Any suggestions on getting the two menu to display the same would be > appreciated. > > Thanks, > Greg > > >I'm afraid there is no solution. > >The "AppMenu" protocol made by Ubuntu is poorly documented, and it >seems >that there is no way to be warned when a external menu is shown. > >Regards, > >-- >Beno?t Minisini I was using the gb.gui component in my project when I reported the menu problems with Ubuntu Unity Desktop in my email above. However, when I switched to using gb.qt4 instead of gb.gui the showmenu event and underlining of shortcut menu letters works correctly. Thanks, Greg From gambas at ...1... Mon Jan 13 15:36:42 2014 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Mon, 13 Jan 2014 15:36:42 +0100 Subject: [Gambas-user] Menu Show Event with Unity desktop In-Reply-To: <52D43B62.8050909@...2755...> References: <52D43B62.8050909@...2755...> Message-ID: <52D3F9FA.4020107@...1...> Le 13/01/2014 20:15, Greg Raffaelle a ?crit : > >Le 09/01/2014 05:07, Greg Raffaelle a ?crit : > > I set the environment variable APPMENU_DISPLAY_BOTH=1 as suggested and > > the program menu is now displayed on both the global unity menu at the > > top of the screen and on the main form. > > > > However, I still believe the program main class is only receiving show > > menu events from the menu on the main form. The attached pdf shows two > > screen shots with the program file menu displayed. The image on the > > left is the file menu displayed from the top menu and the one of the > > right is the file menu displayed from the main form. In the main class > > I use the file menu _show() event to displayed recently opened file > > names as items 1 through 5 at the bottom of the file menu. On the left > > image you can see that item 1 is blank but on the right image the file > > name test2.bps appears besides item 1. I did not perform any other > > program operations between these two screen shots so the file menus > > should have been displayed the same. Also note the underlining of short > > cut letters (keys) does not show on the file menu in the right image. > > When I set a breakpoint on the show menu event sub in the main class the > > program does not stop when the file menu is selected from the top menu, > > but it does stop when the same menu is selected on the main form. > > > > Any suggestions on getting the two menu to display the same would be > > appreciated. > > > > Thanks, > > Greg > > > > > >I'm afraid there is no solution. > > > >The "AppMenu" protocol made by Ubuntu is poorly documented, and it >seems > >that there is no way to be warned when a external menu is shown. > > > >Regards, > > > >-- > >Beno?t Minisini > > I was using the gb.gui component in my project when I reported the menu > problems with Ubuntu Unity Desktop in my email above. > > However, when I switched to using gb.qt4 instead of gb.gui the showmenu > event and underlining of shortcut menu letters works correctly. > > Thanks, > Greg > Hu hu !? Do you have a little project for me that I can use for testing? -- Beno?t Minisini From gambas at ...2524... Mon Jan 13 19:43:26 2014 From: gambas at ...2524... (gambas at ...2524...) Date: Mon, 13 Jan 2014 18:43:26 +0000 Subject: [Gambas-user] Issue 496 in gambas: The Null constant and the slash Message-ID: <0-6813199134517018827-2845465493424546069-gambas=googlecode.com@...2524...> Status: New Owner: ---- Labels: Version-3.5.0 Type-Bug Priority-Medium OpSys-Any Dist-Any Arch-Any Desktop-Any GUI-Any New issue 496 by krisztiankende: The Null constant and the slash http://code.google.com/p/gambas/issues/detail?id=496 The Null constant is represent a zero length string, but these codes do not work: Print Null &/ "alma" Print "" &/ "alma" Print "alma" &/ Null Which normally would not be a problem, but it still doesn't work: Dim rootdir As String Dim subdir As String = "alma" Print rootdir &/ subdir All output: alma (without "/") The latter can be a real case. -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From gambas at ...2524... Mon Jan 13 19:49:49 2014 From: gambas at ...2524... (gambas at ...2524...) Date: Mon, 13 Jan 2014 18:49:49 +0000 Subject: [Gambas-user] Issue 496 in gambas: The Null constant and the slash In-Reply-To: <0-6813199134517018827-2845465493424546069-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-2845465493424546069-gambas=googlecode.com@...2524...> Message-ID: <1-6813199134517018827-2845465493424546069-gambas=googlecode.com@...2524...> Comment #1 on issue 496 by benoit.m... at ...626...: The Null constant and the slash http://code.google.com/p/gambas/issues/detail?id=496 I don't see any problem with those codes. -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From gambas at ...2524... Mon Jan 13 20:16:08 2014 From: gambas at ...2524... (gambas at ...2524...) Date: Mon, 13 Jan 2014 19:16:08 +0000 Subject: [Gambas-user] Issue 496 in gambas: The Null constant and the slash In-Reply-To: <1-6813199134517018827-2845465493424546069-gambas=googlecode.com@...2524...> References: <1-6813199134517018827-2845465493424546069-gambas=googlecode.com@...2524...> <0-6813199134517018827-2845465493424546069-gambas=googlecode.com@...2524...> Message-ID: <2-6813199134517018827-2845465493424546069-gambas=googlecode.com@...2524...> Comment #2 on issue 496 by krisztiankende: The Null constant and the slash http://code.google.com/p/gambas/issues/detail?id=496 Normally: Print "alma" &/ "szilva" Output: alma/szilva But if "alma" is Null, the output doesn't contain a slash. Example: Dim rootdir As String Dim subdir As String = "szilva" If True = False Then rootdir = "/mnt" File.Save(rootdir &/ subdir, Null) If True = True, the code is works, otherwise, no, because rootdir isn't "/". -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From gambas at ...2524... Mon Jan 13 20:20:00 2014 From: gambas at ...2524... (gambas at ...2524...) Date: Mon, 13 Jan 2014 19:20:00 +0000 Subject: [Gambas-user] Issue 496 in gambas: The Null constant and the slash In-Reply-To: <2-6813199134517018827-2845465493424546069-gambas=googlecode.com@...2524...> References: <2-6813199134517018827-2845465493424546069-gambas=googlecode.com@...2524...> <0-6813199134517018827-2845465493424546069-gambas=googlecode.com@...2524...> Message-ID: <3-6813199134517018827-2845465493424546069-gambas=googlecode.com@...2524...> Comment #3 on issue 496 by benoit.m... at ...626...: The Null constant and the slash http://code.google.com/p/gambas/issues/detail?id=496 &/ is for concatenating directory paths and file names. A void string is ignored because it cannot be a directory or a file name. -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From gambas at ...2524... Mon Jan 13 20:40:48 2014 From: gambas at ...2524... (gambas at ...2524...) Date: Mon, 13 Jan 2014 19:40:48 +0000 Subject: [Gambas-user] Issue 496 in gambas: The Null constant and the slash In-Reply-To: <3-6813199134517018827-2845465493424546069-gambas=googlecode.com@...2524...> References: <3-6813199134517018827-2845465493424546069-gambas=googlecode.com@...2524...> <0-6813199134517018827-2845465493424546069-gambas=googlecode.com@...2524...> Message-ID: <4-6813199134517018827-2845465493424546069-gambas=googlecode.com@...2524...> Comment #4 on issue 496 by krisztiankende: The Null constant and the slash http://code.google.com/p/gambas/issues/detail?id=496 Let's just say good, because there is no double slash: Print "/" &/ "alma" Output: /alma Just the "rootdir" value cannot be Null. After all, it really is so logical. :-) -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From gambas at ...2524... Mon Jan 13 20:49:50 2014 From: gambas at ...2524... (gambas at ...2524...) Date: Mon, 13 Jan 2014 19:49:50 +0000 Subject: [Gambas-user] Issue 496 in gambas: The Null constant and the slash In-Reply-To: <4-6813199134517018827-2845465493424546069-gambas=googlecode.com@...2524...> References: <4-6813199134517018827-2845465493424546069-gambas=googlecode.com@...2524...> <0-6813199134517018827-2845465493424546069-gambas=googlecode.com@...2524...> Message-ID: <5-6813199134517018827-2845465493424546069-gambas=googlecode.com@...2524...> Comment #5 on issue 496 by benoit.m... at ...626...: The Null constant and the slash http://code.google.com/p/gambas/issues/detail?id=496 I don't understand what you thought the '&/' operator should do. It is really an operator that aims at concatenating path elements. -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From gambas at ...2524... Mon Jan 13 21:09:17 2014 From: gambas at ...2524... (gambas at ...2524...) Date: Mon, 13 Jan 2014 20:09:17 +0000 Subject: [Gambas-user] Issue 496 in gambas: The Null constant and the slash In-Reply-To: <5-6813199134517018827-2845465493424546069-gambas=googlecode.com@...2524...> References: <5-6813199134517018827-2845465493424546069-gambas=googlecode.com@...2524...> <0-6813199134517018827-2845465493424546069-gambas=googlecode.com@...2524...> Message-ID: <6-6813199134517018827-2845465493424546069-gambas=googlecode.com@...2524...> Comment #6 on issue 496 by krisztiankende: The Null constant and the slash http://code.google.com/p/gambas/issues/detail?id=496 That's why it would be logical to me that: Null &/ "alma" enter the following value: "/alma" Because this is a path. But no problem, just didn't understand at first why it doesn't work. -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From gambas at ...2524... Mon Jan 13 21:19:39 2014 From: gambas at ...2524... (gambas at ...2524...) Date: Mon, 13 Jan 2014 20:19:39 +0000 Subject: [Gambas-user] Issue 496 in gambas: The Null constant and the slash In-Reply-To: <6-6813199134517018827-2845465493424546069-gambas=googlecode.com@...2524...> References: <6-6813199134517018827-2845465493424546069-gambas=googlecode.com@...2524...> <0-6813199134517018827-2845465493424546069-gambas=googlecode.com@...2524...> Message-ID: <7-6813199134517018827-2845465493424546069-gambas=googlecode.com@...2524...> Updates: Status: WontFix Comment #7 on issue 496 by benoit.m... at ...626...: The Null constant and the slash http://code.google.com/p/gambas/issues/detail?id=496 `Null` is not a path, so `Null &/ "alma"` means nothing. I just chose to ignore the null values instead of raising errors. -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From gambas at ...2524... Mon Jan 13 21:36:35 2014 From: gambas at ...2524... (gambas at ...2524...) Date: Mon, 13 Jan 2014 20:36:35 +0000 Subject: [Gambas-user] Issue 496 in gambas: The Null constant and the slash In-Reply-To: <7-6813199134517018827-2845465493424546069-gambas=googlecode.com@...2524...> References: <7-6813199134517018827-2845465493424546069-gambas=googlecode.com@...2524...> <0-6813199134517018827-2845465493424546069-gambas=googlecode.com@...2524...> Message-ID: <8-6813199134517018827-2845465493424546069-gambas=googlecode.com@...2524...> Comment #8 on issue 496 by krisztiankende: The Null constant and the slash http://code.google.com/p/gambas/issues/detail?id=496 In such exceptional case, the Null value represent the root directory. Because the absolute paths begin with a slash. If he were in the middle of the path, really don't mean anything, in fact only cause trouble. But this is not necessarily an error, just operating characteristic. -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From gambas at ...2524... Mon Jan 13 21:40:17 2014 From: gambas at ...2524... (gambas at ...2524...) Date: Mon, 13 Jan 2014 20:40:17 +0000 Subject: [Gambas-user] Issue 496 in gambas: The Null constant and the slash In-Reply-To: <8-6813199134517018827-2845465493424546069-gambas=googlecode.com@...2524...> References: <8-6813199134517018827-2845465493424546069-gambas=googlecode.com@...2524...> <0-6813199134517018827-2845465493424546069-gambas=googlecode.com@...2524...> Message-ID: <9-6813199134517018827-2845465493424546069-gambas=googlecode.com@...2524...> Comment #9 on issue 496 by krisztiankende: The Null constant and the slash http://code.google.com/p/gambas/issues/detail?id=496 Sorry, I correct myself, Null value and "&/" represents the root directory. That is what I meant. -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From gambas at ...2524... Tue Jan 14 08:45:57 2014 From: gambas at ...2524... (gambas at ...2524...) Date: Tue, 14 Jan 2014 07:45:57 +0000 Subject: [Gambas-user] Issue 497 in gambas: When date is formatted in gridview then right click pop up menu doesnot work Message-ID: <0-6813199134517018827-5148484893610216006-gambas=googlecode.com@...2524...> Status: New Owner: ---- Labels: 3.5.2 Type-Bug Priority-Medium OpSys-Any Dist-Any Arch-Any Desktop-Any GUI-Any New issue 497 by isaf... at ...626...: When date is formatted in gridview then right click pop up menu doesnot work http://code.google.com/p/gambas/issues/detail?id=497 1) Fill a gridview. When the date is formatted in Gridview_Data (e.g. GridView1[Row, 2].Text = Format($hres["flddate"], "mmm dd yyyy")) then right click on a row shows popup menu but clicking the menu does not execute. 2) GIVE THE FOLLOWING INFORMATIONS (if they are appropriate): Version: 3.5.2 (PPA for ubuntu) Operating system: Linux Distribution: Ubuntu Architecture: x86 GUI component: GTK+ Desktop used: Gnome 3) Provide a little project that reproduces the bug or the crash. Attached a project 4) If your project needs a database, try to provide it, or part of it. Required 5) Explain clearly how to reproduce the bug or the crash. As in attached project 6) By doing that carefully, you have done 50% of the bug fix job! IMPORTANT NOTE: if you encounter several different problems or bugs, (for example, a bug in your project, and an interpreter crash while debugging it), please create distinct issues! Attachments: menu.tar.gz 5.6 KB -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From gambas at ...2524... Tue Jan 14 09:28:42 2014 From: gambas at ...2524... (gambas at ...2524...) Date: Tue, 14 Jan 2014 08:28:42 +0000 Subject: [Gambas-user] Issue 498 in gambas: Cant line break Select lists Message-ID: <0-6813199134517018827-2932717713457080232-gambas=googlecode.com@...2524...> Status: New Owner: ---- Labels: Version Type-Bug Priority-Medium OpSys-Any Dist-Any Arch-Any Desktop-Any GUI-Any New issue 498 by adamn... at ...626...: Cant line break Select lists http://code.google.com/p/gambas/issues/detail?id=498 1) Describe the problem. The list of matches for the Case statement is toooo long but trying to run it with line breaks gives an "Unexpected end of line" error. 2) GIVE THE FOLLOWING INFORMATIONS (if they are appropriate): Version: TRUNK Revision: r6076 Operating system: Linux Distribution: PCLinuxOS Architecture: x86 GUI component: QT4 (IDE) Desktop used: LXDE 3) Provide a little project that reproduces the bug or the crash. Case "Expand", "Margin", "Spacing", "Arrangement", "Count", "Index", "Border", "Alignment", "Font", "Background", "NoTabFocus", "ReadOnly", "Mode", "Header", "Sorted", "Maxlength", "Visible", "ShowAll", "Default" 4) If your project needs a database, try to provide it, or part of it. N/A 5) Explain clearly how to reproduce the bug or the crash. Just try line breaking a case list somewhere 6) By doing that carefully, you have done 50% of the bug fix job! Bah! -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From willy at ...2734... Tue Jan 14 09:50:47 2014 From: willy at ...2734... (Willy Raets) Date: Tue, 14 Jan 2014 09:50:47 +0100 Subject: [Gambas-user] multi document interface Message-ID: <1389689447.3402.5.camel@...3024...> Hi all, Does anyone have a small example of working with a multi document interface. I need one toolbar that works with all opened documents? For example a toolbar with a copy and paste button that can copy a text from one of the opened documents and paste it into an other opened document in the multi document interface. What is the best approach of achieving this? Any suggestions or a small example would be appreciated. -- Kind regards, Willy (aka gbWilly) http://gambasshowcase.org/ http://howtogambas.org http://gambos.org From willy at ...2734... Tue Jan 14 10:04:51 2014 From: willy at ...2734... (Willy Raets) Date: Tue, 14 Jan 2014 10:04:51 +0100 Subject: [Gambas-user] Printing text vertically (using printing or gb.report) Message-ID: <1389690291.3402.18.camel@...3024...> Hi all, I have a Dymo Label writer at work and need to print address labels. Thing is that the labels are in portrait and the text needs to be printed vertically instead of horizontally as it happens now. I have tried with both printing and reports but don't manage to get the job done. Text aways gets printed horizontal and thus the addresses don't fit the width or the Dymo Label. The size of the Dymo labels that need to be printed is: PaperWidth = 35.630555 PaperHeight = 88.9 Both sizes are in milimeters (mm). I used to do this with reports from MS Access and there you can simply set the textlabels on the report vertically instead of horizontally. Didn't find a manner to achieve that with gb.report. Does that exist? The project itself is a rebuilt in Gambas of MS Access clients apps currently used. I can't send the code because: a. it is too big a project b. it contains specific inside company information that is not meant for the public. I'll try and make a printed pdf of the result later today to show you what I mean. Any suggestions would be appreciated. -- Kind regards, Willy (aka gbWilly) http://gambasshowcase.org/ http://howtogambas.org http://gambos.org From willy at ...2734... Tue Jan 14 10:20:02 2014 From: willy at ...2734... (Willy Raets) Date: Tue, 14 Jan 2014 10:20:02 +0100 Subject: [Gambas-user] A Gambas-MySql question -> Query the result of a query and a table Message-ID: <1389691202.3402.28.camel@...3024...> Hi all, In MS Access it was possible to make a query based on a query. I am in the middle of porting all MS Access clients to Gambas 3 and all tables have been migrated to MySql. Is it possible in Gambas to do a query and next do another query on the result of the previous query combined with some extra tables? Or, do I need to do the query, store the result in a table and next query this table combined with the extra tables. I know this last option would work, but I am just wondering if there are any better ways of doing this, without having to create a table with the query result. Suggestions are appreciated. -- Kind regards, Willy (aka gbWilly) http://gambasshowcase.org/ http://howtogambas.org http://gambos.org From gambas at ...2524... Tue Jan 14 13:03:00 2014 From: gambas at ...2524... (gambas at ...2524...) Date: Tue, 14 Jan 2014 12:03:00 +0000 Subject: [Gambas-user] Issue 494 in gambas: 100% cpu use when using SHELL (FOR READ) and on a process that redirects stdout In-Reply-To: <1-6813199134517018827-18017008611081196936-gambas=googlecode.com@...2524...> References: <1-6813199134517018827-18017008611081196936-gambas=googlecode.com@...2524...> <0-6813199134517018827-18017008611081196936-gambas=googlecode.com@...2524...> Message-ID: <2-6813199134517018827-18017008611081196936-gambas=googlecode.com@...2524...> Updates: Status: Accepted Labels: -Version Version-3.5.0 Comment #2 on issue 494 by benoit.m... at ...626...: 100% cpu use when using SHELL (FOR READ) and on a process that redirects stdout http://code.google.com/p/gambas/issues/detail?id=494 (No comment was entered for this change.) -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From gambas at ...2524... Tue Jan 14 13:04:00 2014 From: gambas at ...2524... (gambas at ...2524...) Date: Tue, 14 Jan 2014 12:04:00 +0000 Subject: [Gambas-user] Issue 494 in gambas: 100% cpu use when using SHELL (FOR READ) and on a process that redirects stdout In-Reply-To: <2-6813199134517018827-18017008611081196936-gambas=googlecode.com@...2524...> References: <2-6813199134517018827-18017008611081196936-gambas=googlecode.com@...2524...> <0-6813199134517018827-18017008611081196936-gambas=googlecode.com@...2524...> Message-ID: <3-6813199134517018827-18017008611081196936-gambas=googlecode.com@...2524...> Comment #3 on issue 494 by benoit.m... at ...626...: 100% cpu use when using SHELL (FOR READ) and on a process that redirects stdout http://code.google.com/p/gambas/issues/detail?id=494 Please don't post two issues inside one! -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From gambas at ...2524... Tue Jan 14 13:05:11 2014 From: gambas at ...2524... (gambas at ...2524...) Date: Tue, 14 Jan 2014 12:05:11 +0000 Subject: [Gambas-user] Issue 499 in gambas: Unable to parse the standard error stream if using "Shell ... For Input" instead of "Shell ... For Read" Message-ID: <0-6813199134517018827-10267412130662131065-gambas=googlecode.com@...2524...> Status: New Owner: benoit.m... at ...626... Labels: Version-3.5.0 Type-Bug Priority-Medium OpSys-Any Dist-Any Arch-Any Desktop-Any GUI-Any New issue 499 by benoit.m... at ...626...: Unable to parse the standard error stream if using "Shell ... For Input" instead of "Shell ... For Read" http://code.google.com/p/gambas/issues/detail?id=499 1) Describe the problem. I'm unable to parse the standard error stream if using "for input" instead of "for read". To explain better, this: -- Public myprocess As Process Public Sub Main() myprocess = Shell "/bin/ls /does/not/exist" For Input As "myprocess" End Public Sub myprocess_error(MyError As String) Print myerror End --- Does not produce any output. So, by now: If one wants to start an external command and redirect the standard output to a file: 1- using "FOR READ" makes the cpu jumps to 100% and the interpreter hangs on exit. 2- using "FOR INPUT" makes impossible to parse error messages in the stderr stream. -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From gambas at ...2524... Tue Jan 14 13:06:51 2014 From: gambas at ...2524... (gambas at ...2524...) Date: Tue, 14 Jan 2014 12:06:51 +0000 Subject: [Gambas-user] Issue 494 in gambas: 100% cpu use when using SHELL (FOR READ) and on a process that redirects stdout In-Reply-To: <3-6813199134517018827-18017008611081196936-gambas=googlecode.com@...2524...> References: <3-6813199134517018827-18017008611081196936-gambas=googlecode.com@...2524...> <0-6813199134517018827-18017008611081196936-gambas=googlecode.com@...2524...> Message-ID: <4-6813199134517018827-18017008611081196936-gambas=googlecode.com@...2524...> Updates: Status: Fixed Comment #4 on issue 494 by benoit.m... at ...626...: 100% cpu use when using SHELL (FOR READ) and on a process that redirects stdout http://code.google.com/p/gambas/issues/detail?id=494 The bug has been fixed in revision #6081. -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From gambas at ...2524... Tue Jan 14 13:15:14 2014 From: gambas at ...2524... (gambas at ...2524...) Date: Tue, 14 Jan 2014 12:15:14 +0000 Subject: [Gambas-user] Issue 499 in gambas: Unable to parse the standard error stream if using "Shell ... For Input" instead of "Shell ... For Read" In-Reply-To: <0-6813199134517018827-10267412130662131065-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-10267412130662131065-gambas=googlecode.com@...2524...> Message-ID: <1-6813199134517018827-10267412130662131065-gambas=googlecode.com@...2524...> Updates: Status: WontFix Comment #1 on issue 499 by benoit.m... at ...626...: Unable to parse the standard error stream if using "Shell ... For Input" instead of "Shell ... For Read" http://code.google.com/p/gambas/issues/detail?id=499 When a process is run through a virtual terminal, (FOR INPUT), you have only one file descriptor for both standard output and standard error output. The file descriptor of the terminal. So everything is received through the Read event. The Error event sees nothing. I will explain that on the documentation. -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From gambas at ...2524... Tue Jan 14 18:13:51 2014 From: gambas at ...2524... (gambas at ...2524...) Date: Tue, 14 Jan 2014 17:13:51 +0000 Subject: [Gambas-user] Issue 500 in gambas: Cannot install rev 6081 Message-ID: <0-6813199134517018827-9662103622684612055-gambas=googlecode.com@...2524...> Status: New Owner: ---- Labels: Version Type-Bug Priority-Medium OpSys-Any Dist-Any Arch-Any Desktop-Any GUI-Any New issue 500 by sot... at ...626...: Cannot install rev 6081 http://code.google.com/p/gambas/issues/detail?id=500 1) Describe the problem. Revision 6081 fails in make install. 2) GIVE THE FOLLOWING INFORMATIONS (if they are appropriate): Version: TRUNK Revision: r6081 Operating system: Linux Distribution: Ubuntu Architecture: x86_64 GUI component: Desktop used: unity 3) Provide a little project that reproduces the bug or the crash. NA 4) If your project needs a database, try to provide it, or part of it. NA 5) Explain clearly how to reproduce the bug or the crash. Attached all config, make , install logs 6) By doing that carefully, you have done 50% of the bug fix job! Attachments: 6081_install_log.tar.gz 23.3 KB -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From gambas at ...2524... Tue Jan 14 18:14:51 2014 From: gambas at ...2524... (gambas at ...2524...) Date: Tue, 14 Jan 2014 17:14:51 +0000 Subject: [Gambas-user] Issue 500 in gambas: Cannot install rev 6081 In-Reply-To: <0-6813199134517018827-9662103622684612055-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-9662103622684612055-gambas=googlecode.com@...2524...> Message-ID: <1-6813199134517018827-9662103622684612055-gambas=googlecode.com@...2524...> Comment #1 on issue 500 by sot... at ...626...: Cannot install rev 6081 http://code.google.com/p/gambas/issues/detail?id=500 System information : System] Gambas=3.5.90 OperatingSystem=Linux Kernel=3.8.0-35-generic Architecture=x86_64 Distribution=Ubuntu 13.04 Desktop=GNOME Theme=QGtk Language=it_IT.UTF-8 Memory=7837M [Libraries] Cairo=libcairo.so.2.11200.14 Curl=libcurl.so.4.3.0 DBus=libdbus-1.so.3.7.2 GStreamer=libgstreamer-0.10.so.0.30.0 GStreamer=libgstreamer-1.0.so.0.6.0 GTK+3=libgtk-3.so.0.600.4 GTK+=libgtk-x11-2.0.so.0.2400.17 OpenGL=libGL.so.1.2.0 Poppler=libpoppler.so.28.0.0 Qt4=libQtCore.so.4.8.4 SDL=libSDL-1.2.so.0.11.4 -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From gambas at ...2524... Tue Jan 14 20:51:42 2014 From: gambas at ...2524... (gambas at ...2524...) Date: Tue, 14 Jan 2014 19:51:42 +0000 Subject: [Gambas-user] Issue 500 in gambas: Cannot install rev 6081 In-Reply-To: <1-6813199134517018827-9662103622684612055-gambas=googlecode.com@...2524...> References: <1-6813199134517018827-9662103622684612055-gambas=googlecode.com@...2524...> <0-6813199134517018827-9662103622684612055-gambas=googlecode.com@...2524...> Message-ID: <2-6813199134517018827-9662103622684612055-gambas=googlecode.com@...2524...> Updates: Status: Invalid Comment #2 on issue 500 by benoit.m... at ...626...: Cannot install rev 6081 http://code.google.com/p/gambas/issues/detail?id=500 Please don't post compilation failures for development version there, but on the mailing-list instead. It is usually fixed quickly, stay tuned! -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From gambas at ...2524... Wed Jan 15 00:45:53 2014 From: gambas at ...2524... (gambas at ...2524...) Date: Tue, 14 Jan 2014 23:45:53 +0000 Subject: [Gambas-user] Issue 498 in gambas: Cant line break Select lists In-Reply-To: <2-6813199134517018827-2932717713457080232-gambas=googlecode.com@...2524...> References: <2-6813199134517018827-2932717713457080232-gambas=googlecode.com@...2524...> <0-6813199134517018827-2932717713457080232-gambas=googlecode.com@...2524...> Message-ID: <3-6813199134517018827-2932717713457080232-gambas=googlecode.com@...2524...> Comment #3 on issue 498 by adamn... at ...626...: Cant line break Select lists http://code.google.com/p/gambas/issues/detail?id=498 Thanks Benoit! B -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From bbruen at ...2308... Wed Jan 15 01:20:29 2014 From: bbruen at ...2308... (Bruce) Date: Wed, 15 Jan 2014 10:50:29 +1030 Subject: [Gambas-user] What does ... in a menu name signify? Message-ID: <1389745229.5369.18.camel@...2688...> For example, in the IDE menu there are lot's of them, like File|New Project... The reason I ask is that the form definition for those types is "different" - e.g. { Menu5 Menu Text = ("Menu5") & "..." } I first thought that it was simply to remove the "..." from the translation strings but I keep thinking why go to all that trouble. tia Bruce p.s. In our new project someone slipped a conformance clause into the requirements without me noticing. Things like "all toolbuttons shall have a tooltip" etc. I thought that it was going to take days to go through all the forms and check nearly every control for conformance. Then I had a "good idea" (HAH!) to write a utility to parse the form definition file and show all the conformance items, tooltips, shortcuts etc. I thought that may take a few hours to build - HAH! Three days later I am still only part way there. Essentially it's turning the IDE Properties tab around 90 degrees, i.e. a list of the properties of interest for all the controls, menus etc in the form. A couple of shots attached. Originally I thought it would be possible to add editors to "fix" the form definition files directly, avoiding the IDE. HAH! The complexity of those files is astonishing! Is there a defined grammar for it? -------------- next part -------------- A non-text attachment was scrubbed... Name: GB3 Form Definition : Shortcuts.png Type: image/png Size: 69219 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: GB3 Form Definition : Toolbars.png Type: image/png Size: 66183 bytes Desc: not available URL: From bbruen at ...2308... Wed Jan 15 01:44:53 2014 From: bbruen at ...2308... (Bruce) Date: Wed, 15 Jan 2014 11:14:53 +1030 Subject: [Gambas-user] Positioning the editor to a specific line and making it visible Message-ID: <1389746693.5369.28.camel@...2688...> I can't work out how to do this. I have an Editor control with a form definition (xyz.form) in it, I am trying to search for the definition of, say, a toolbar called "tbrProjectEdit" which starts at line 220. This is initiated by a double click on a gridview on the "Toolbars" tab in the screenshot. Public Sub gvwToolbars_Activate() Dim sKey As String = gvwToolbars[gvwToolbars.Row, gvwToolbars.Column].Text Dim iLine As Integer ... If gvwToolbars.Column = 1 Then iLine = edtFormDef.FindNextWord(skey, 0) <-- 1 edtFormDef.Select(iLine, 0, iLine, 999) <-- 2 edtFormDef.CurrentLine = iLine <-- 3 ' edtFormDef.Lines[iline].Expanded = True ' edtFormDef.Scroll(edtFormDef.ToPosX(0, iLine), 0) edtFormDef.SetFocus TabStrip1.Index = 0 Endif End 1) Finds the line fine. 2) Sets the selection fine. 3) and the next two lines are my attempts at making that line visible in the editor. To no avail. It just remains at the top of the text. But, if I just adjust the size of the form a touch, the editor is redisplayed exactly where I want it, as in the 2nd screenshot. What am I missing? tia Bruce -------------- next part -------------- A non-text attachment was scrubbed... Name: GB3 Form Definition : Def.png Type: image/png Size: 45981 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: GB3 Form Definition : -Def2.png Type: image/png Size: 56083 bytes Desc: not available URL: From bbruen at ...2308... Wed Jan 15 01:56:33 2014 From: bbruen at ...2308... (Bruce) Date: Wed, 15 Jan 2014 11:26:33 +1030 Subject: [Gambas-user] Editor / Highlight - creating fold points Message-ID: <1389747393.5369.36.camel@...2688...> (Same picture) Setting Editor.Highlight to Gambas gives me 99% of what I want to display these form defintions. The missing 1% is "it would be nice to be able to fold each definition (and its' children) by matching {}'s. The css highlighter style sort of does this, but gets it "wrong" as it just folds to the first }. i.e. it doesn't understand heirarchical/tree grammars. I have read every help file available and have waded through the source for these highlighters but don't understand how it is done. So, 1) is the highlighter, in general, capable of understanding heirarchical/tree grammars? 2) is there a way, short of encoding an entire custom highlighter, to set the folding points to say, any line beginning with {? tia Bruce -------------- next part -------------- A non-text attachment was scrubbed... Name: GB3 Form Definition : Def.png Type: image/png Size: 45981 bytes Desc: not available URL: From Gambas at ...1950... Wed Jan 15 02:00:08 2014 From: Gambas at ...1950... (Caveat) Date: Wed, 15 Jan 2014 02:00:08 +0100 Subject: [Gambas-user] What does ... in a menu name signify? In-Reply-To: <1389745229.5369.18.camel@...2688...> References: <1389745229.5369.18.camel@...2688...> Message-ID: <52D5DD98.2030006@...1950...> It's a 'standard decoration' signifying there's more behind the chosen item...or that the item needs user confirmation or additional input on a dialogue... http://msdn.microsoft.com/en-us/library/aa511502.aspx#ellipses Kind regards, Caveat On 15/01/14 01:20, Bruce wrote: > For example, in the IDE menu there are lot's of > them, like File|New Project... > > The reason I ask is that the form definition for those types is > "different" - e.g. > { Menu5 Menu > Text = ("Menu5") & "..." > } > > I first thought that it was simply to remove the "..." from the > translation strings but I keep thinking why go to all that trouble. > > tia > Bruce > > p.s. In our new project someone slipped a conformance clause into the > requirements without me noticing. Things like "all toolbuttons shall > have a tooltip" etc. I thought that it was going to take days to go > through all the forms and check nearly every control for conformance. > Then I had a "good idea" (HAH!) to write a utility to parse the form > definition file and show all the conformance items, tooltips, shortcuts > etc. I thought that may take a few hours to build - HAH! Three days > later I am still only part way there. > Essentially it's turning the IDE Properties tab around 90 degrees, i.e. > a list of the properties of interest for all the controls, menus etc in > the form. A couple of shots attached. > Originally I thought it would be possible to add editors to "fix" the > form definition files directly, avoiding the IDE. HAH! The complexity of > those files is astonishing! Is there a defined grammar for it? > > > ------------------------------------------------------------------------------ > CenturyLink Cloud: The Leader in Enterprise Cloud Services. > Learn Why More Businesses Are Choosing CenturyLink Cloud For > Critical Workloads, Development Environments & Everything In Between. > Get a Quote or Start a Free Trial Today. > http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk > > > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From bbruen at ...2308... Wed Jan 15 02:11:24 2014 From: bbruen at ...2308... (Bruce) Date: Wed, 15 Jan 2014 11:41:24 +1030 Subject: [Gambas-user] What does ... in a menu name signify? In-Reply-To: <52D5DD98.2030006@...1950...> References: <1389745229.5369.18.camel@...2688...> <52D5DD98.2030006@...1950...> Message-ID: <1389748284.5369.40.camel@...2688...> On Wed, 2014-01-15 at 02:00 +0100, Caveat wrote: > It's a 'standard decoration' signifying there's more behind the chosen > item...or that the item needs user confirmation or additional input on a > dialogue... > > http://msdn.microsoft.com/en-us/library/aa511502.aspx#ellipses > > Kind regards, > Caveat Well I never... In 40 years of working with computers I never heard of that. thanks Caveat! So, it doesn't have any functional meaning then? Back to Benoit: so why go to the bother of splitting the Text = lines like that? B From kevinfishburne at ...1887... Wed Jan 15 03:33:14 2014 From: kevinfishburne at ...1887... (Kevin Fishburne) Date: Tue, 14 Jan 2014 21:33:14 -0500 Subject: [Gambas-user] sdl Draw event overhead is killing frame rate Message-ID: <52D5F36A.30801@...1887...> I noticed a month or two ago that the frame rate on the server side of my game went from around 300 to 50. I assumed it was an OpenGL driver issue or that I'd added some really inefficient code. It appears this is not the case, but rather it seems the Draw event raised by opening a screen using SDL is executing some heavy (and hopefully unnecessary) lifting that it wasn't previously. I've attached a project which is essentially an empty SDL screen draw event loop that calculates a frame rate once per second and outputs the results to the console. Any idea what's going on here? Any empty loop on my reasonably modern PC and brand new video card running the binary NVIDIA drivers should be producing frame rates in the thousands, at least. -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sales at ...1887... phone: (770) 853-6271 -------------- next part -------------- A non-text attachment was scrubbed... Name: SDL_Draw_Event_Test.tar.gz Type: application/gzip Size: 10258 bytes Desc: not available URL: From gambas at ...1... Wed Jan 15 03:44:34 2014 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Wed, 15 Jan 2014 03:44:34 +0100 Subject: [Gambas-user] Positioning the editor to a specific line and making it visible In-Reply-To: <1389746693.5369.28.camel@...2688...> References: <1389746693.5369.28.camel@...2688...> Message-ID: <52D5F612.2000105@...1...> Le 15/01/2014 01:44, Bruce a ?crit : > I can't work out how to do this. > > I have an Editor control with a form definition (xyz.form) in it, I am > trying to search for the definition of, say, a toolbar called > "tbrProjectEdit" which starts at line 220. This is initiated by a > double click on a gridview on the "Toolbars" tab in the screenshot. > > Public Sub gvwToolbars_Activate() > > Dim sKey As String = gvwToolbars[gvwToolbars.Row, > gvwToolbars.Column].Text > Dim iLine As Integer > > ... > > If gvwToolbars.Column = 1 Then > iLine = edtFormDef.FindNextWord(skey, 0) <-- 1 > edtFormDef.Select(iLine, 0, iLine, 999) <-- 2 > edtFormDef.CurrentLine = iLine <-- 3 > ' edtFormDef.Lines[iline].Expanded = True > ' edtFormDef.Scroll(edtFormDef.ToPosX(0, iLine), 0) > edtFormDef.SetFocus > TabStrip1.Index = 0 > Endif > > End > > 1) Finds the line fine. > 2) Sets the selection fine. > 3) and the next two lines are my attempts at making that line visible in > the editor. To no avail. It just remains at the top of the text. > But, if I just adjust the size of the form a touch, the editor is > redisplayed exactly where I want it, as in the 2nd screenshot. > > What am I missing? > > tia > Bruce > The CurrentLine is for highlighting the current line of code during a debugging session. Use the Editor.Goto() method instead. Regards, -- Beno?t Minisini From gambas at ...1... Wed Jan 15 03:56:53 2014 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Wed, 15 Jan 2014 03:56:53 +0100 Subject: [Gambas-user] What does ... in a menu name signify? In-Reply-To: <1389745229.5369.18.camel@...2688...> References: <1389745229.5369.18.camel@...2688...> Message-ID: <52D5F8F5.8000502@...1...> Le 15/01/2014 01:20, Bruce a ?crit : > For example, in the IDE menu there are lot's of > them, like File|New Project... > > The reason I ask is that the form definition for those types is > "different" - e.g. > { Menu5 Menu > Text = ("Menu5") & "..." > } > > I first thought that it was simply to remove the "..." from the > translation strings but I keep thinking why go to all that trouble. > > tia > Bruce > > p.s. In our new project someone slipped a conformance clause into the > requirements without me noticing. Things like "all toolbuttons shall > have a tooltip" etc. I thought that it was going to take days to go > through all the forms and check nearly every control for conformance. > Then I had a "good idea" (HAH!) to write a utility to parse the form > definition file and show all the conformance items, tooltips, shortcuts > etc. I thought that may take a few hours to build - HAH! Three days > later I am still only part way there. > Essentially it's turning the IDE Properties tab around 90 degrees, i.e. > a list of the properties of interest for all the controls, menus etc in > the form. A couple of shots attached. > Originally I thought it would be possible to add editors to "fix" the > form definition files directly, avoiding the IDE. HAH! The complexity of > those files is astonishing! Is there a defined grammar for it? > > This is a well-known GUI convention. "..." after a menu or button label means that clicking on it will not have an immediate effect, but will open a dialog instead. I don't want to document the form file format, because I want to be able to change it freely. But here are a few tips... The format of the form file is extremely simple. The simplest I could actually. :-) Each line of a form file is more or less translated to Gambas code by the compiler. `{ ` --> ` = New ()` Note: is the parent object defined by the embedding { ... } ` = ` --> `. = ` Note: is a Gambas expression. Note: if the property starts with a '#', it is a "virtual" property. It is just for the IDE, it won't generate any code. At the end of the form file, you will find the description of all "actions" defined in the form (through the Action property), and the description of all toolbars with their default arrangment. If you want all the information, everything is in the `/main/gbc/gbc_form.c` source file. Hope it helped... Regards, -- Beno?t Minisini From gambas at ...1... Wed Jan 15 04:19:42 2014 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Wed, 15 Jan 2014 04:19:42 +0100 Subject: [Gambas-user] sdl Draw event overhead is killing frame rate In-Reply-To: <52D5F36A.30801@...1887...> References: <52D5F36A.30801@...1887...> Message-ID: <52D5FE4E.5050800@...1...> Le 15/01/2014 03:33, Kevin Fishburne a ?crit : > I noticed a month or two ago that the frame rate on the server side of > my game went from around 300 to 50. I assumed it was an OpenGL driver > issue or that I'd added some really inefficient code. It appears this is > not the case, but rather it seems the Draw event raised by opening a > screen using SDL is executing some heavy (and hopefully unnecessary) > lifting that it wasn't previously. > > I've attached a project which is essentially an empty SDL screen draw > event loop that calculates a frame rate once per second and outputs the > results to the console. Any idea what's going on here? Any empty loop on > my reasonably modern PC and brand new video card running the binary > NVIDIA drivers should be producing frame rates in the thousands, at least. > You must know that the event loop of the SDL library cannot be shared, so you get instead a busy waiting loop that repeatedly checks SDL events and calls one loop of the Gambas event loop with a 10 ms timeout. Each time that loop is run, the "Draw" event is raised. Unless you call "Stop Event" during the Draw event handler, gb.sdl assumes that something has be drawn, and so refreshes the window. Refreshing a window takes a lot of CPU, depending on its size and what your window manager is. If the window is refreshed, your framerate may be limited by the GPU (through the monitor vsync, which is emultated now on LCD monitors), check that. If you call Stop Event, the Draw event will be called again and again without refreshing, and so the CPU will be spent most of the time there. Note that a small CPU time is given back to the OS then, so that not 100% of the CPU is used. Just check the CPU usage and the framerate in the different cases (small window, big window, with a 3D window manager, without...), and report! -- Beno?t Minisini From kevinfishburne at ...1887... Wed Jan 15 06:17:09 2014 From: kevinfishburne at ...1887... (Kevin Fishburne) Date: Wed, 15 Jan 2014 00:17:09 -0500 Subject: [Gambas-user] sdl Draw event overhead is killing frame rate In-Reply-To: <52D5FE4E.5050800@...1...> References: <52D5F36A.30801@...1887...> <52D5FE4E.5050800@...1...> Message-ID: <52D619D5.2030409@...1887...> On 01/14/2014 10:19 PM, Beno?t Minisini wrote: > Le 15/01/2014 03:33, Kevin Fishburne a ?crit : >> I noticed a month or two ago that the frame rate on the server side of >> my game went from around 300 to 50. I assumed it was an OpenGL driver >> issue or that I'd added some really inefficient code. It appears this is >> not the case, but rather it seems the Draw event raised by opening a >> screen using SDL is executing some heavy (and hopefully unnecessary) >> lifting that it wasn't previously. >> >> I've attached a project which is essentially an empty SDL screen draw >> event loop that calculates a frame rate once per second and outputs the >> results to the console. Any idea what's going on here? Any empty loop on >> my reasonably modern PC and brand new video card running the binary >> NVIDIA drivers should be producing frame rates in the thousands, at least. >> > You must know that the event loop of the SDL library cannot be shared, > so you get instead a busy waiting loop that repeatedly checks SDL events > and calls one loop of the Gambas event loop with a 10 ms timeout. > > Each time that loop is run, the "Draw" event is raised. Unless you call > "Stop Event" during the Draw event handler, gb.sdl assumes that > something has be drawn, and so refreshes the window. > > Refreshing a window takes a lot of CPU, depending on its size and what > your window manager is. > > If the window is refreshed, your framerate may be limited by the GPU > (through the monitor vsync, which is emultated now on LCD monitors), > check that. > > If you call Stop Event, the Draw event will be called again and again > without refreshing, and so the CPU will be spent most of the time there. > Note that a small CPU time is given back to the OS then, so that not > 100% of the CPU is used. > > Just check the CPU usage and the framerate in the different cases (small > window, big window, with a 3D window manager, without...), and report! > That is interesting. I'm trying to wrap my head around it. My question at this point is if something changed on my system or in Gambas. I've tried this on two different PCs with two different video cards (with and without the binary NVIDIA driver and with vsync and desktop compositing disabled), and even ran the server code from several months ago with the same effect. I placed a "Stop Event" after the "Inc FPS_Frames" statement in the Screen_Draw procedure in the test project and it actually reduced the frame rate from 236 to 157. That's the opposite of what I would have expected based on your description of what is happening. I think I understand the logic. Basically, if stuff doesn't need to be drawn on screen, call "Stop Event" at the beginning of the Screen_Draw procedure (the SDL draw event) to avoid its unneeded overhead. It doesn't work as expected unfortunately (unless I'm too thick to understand what you're saying of course!). I just installed the mesa-utils and ran glxgears, which is reporting about 677 FPS at approximately 1920x1080. Running GambasGears at resolutions between 128x128 and 1920x1080 all produce a frame rate of 233. Running it with everything but the frame rate calculation removed from the Screen_Draw procedure produces a frame rate of 237 (similar to my test project), which I tested through resolutions between 128x128 and 1920x1080. BeastScroll's FPS maxes out at 227 FPS at any resolution. In order to see if it's something in Gambas or on my system I decided to try some native games using SDL and OpenGL. I installed OpenArena from the repositories and it runs around between 800 and 1000 FPS at 640x480 and around 200-300 FPS at 1920x1080 with all settings on high. I installed Nexuiz and on default settings at 1920x1080 get between 150 and 200 FPS, which is pretty damn good for Nexuiz. I think something funky is going on with gb.sdl at this point, as it seems to affect any SDL/OpenGL application including the example programs, while non-Gambas SDL/OpenGL applications achieve remarkable frame rates even under heavy load. I don't need Gambas to change, but some sort of documented workaround may be in order if I'm correct in my suspicions. All these tests were performed using NVIDIA driver 304.108 with vsync disabled on a GeForce GTX 650 with 1024 MB of VRAM in Kubuntu 13.04 ia64, latest daily Gambas build. -- Kevin Fishburne Eight Virtues www:http://sales.eightvirtues.com e-mail:sales at ...1887... phone: (770) 853-6271 From bbruen at ...2308... Wed Jan 15 08:31:25 2014 From: bbruen at ...2308... (Bruce) Date: Wed, 15 Jan 2014 18:01:25 +1030 Subject: [Gambas-user] Positioning the editor to a specific line and making it visible In-Reply-To: <52D5F612.2000105@...1...> References: <1389746693.5369.28.camel@...2688...> <52D5F612.2000105@...1...> Message-ID: <1389771085.5369.51.camel@...2688...> On Wed, 2014-01-15 at 03:44 +0100, Beno?t Minisini wrote: > Le 15/01/2014 01:44, Bruce a ?crit : > > I can't work out how to do this. blah, blah, blah > > tia > > Bruce > > > > The CurrentLine is for highlighting the current line of code during a > debugging session. > > Use the Editor.Goto() method instead. > > Regards, > Well, that makes sense. But I tried it and it still didn't show the indicated line. I tried a work-around as follows: If gvwToolbars.Column = 1 Then iLine = edtFormDef.FindNextWord(skey, 0) edtFormDef.Goto(iline, 0, True) Desktop.SendKeys("[Begin]{[Shift_L][End]}") <== this works TabStrip1.Index = IDX_DEFFILE Endif Then suddenly, while I was writing this, I had a brainwave! This works: If gvwToolbars.Column = 1 Then iLine = edtFormDef.FindNextWord(skey, 0) TabStrip1.Index = IDX_DEFFILE <== This is the trick edtFormDef.Goto(iline, 0, True) Endif by making the editor control active (its the only control on the TabStrip1[IDX_DEFFILE] tab) BEFORE doing the Goto all of a sudden it all becomes magic again. Phew! I was getting (more) worry lines reading the IDE code and seeing the FGotoLine work but I couldn't. Cest la vie! Bruce p.s. Probably suggests a help file comment, but I'm two days behind schedule now. I'll see to it when I catch up. From bbruen at ...2308... Wed Jan 15 15:15:30 2014 From: bbruen at ...2308... (Bruce) Date: Thu, 16 Jan 2014 00:45:30 +1030 Subject: [Gambas-user] A Gambas-MySql question -> Query the result of a query and a table In-Reply-To: <1389691202.3402.28.camel@...3024...> References: <1389691202.3402.28.camel@...3024...> Message-ID: <1389795330.5369.85.camel@...2688...> Hi Willy, I have been thinking about this for the last day (amongst 20,000 other things) and I really don't have an easy answer. On Tue, 2014-01-14 at 10:20 +0100, Willy Raets wrote: > Hi all, > > In MS Access it was possible to make a query based on a query. I am in > the middle of porting all MS Access clients to Gambas 3 and all tables > have been migrated to MySql. > I do sort of remember this. We used to make a lot of use of it. But I can't remember how it was done. Could you post a simple example? > Is it possible in Gambas to do a query and next do another query on the > result of the previous query combined with some extra tables? (Without the example, the answer is) Well not really, but there are a lot of options. > > Or, do I need to do the query, store the result in a table and next > query this table combined with the extra tables. No, you need not go this far! A Gambas "result" is not a "cursor" in the true sense of the word. The best way I can explain it is that it is sort of a live collection of rows. You can iterate through it using the short form of the For Each method, but you cant refer to it in another query as the dbms has no idea what you could be talking about. There are a few options that leap to mind without remembering how this stuff was done, but they all involve using direct SQL calls rather than the clever stuff Benout has provided. Also be very aware that you will be writing dbms specific code and so lose the database "agnosticity" that normal use of gb.db provides. (And as you seem intent on using that dog of a dbms, MySQL, I can't really be entirely specific as to how to go about it.) Generally, it works like this. The SQL standard requires a SELECT statement to refer in the FROM clause to either: - real tables - views - embedded queries. So we can SELECT (blah..) FROM aTable as A, aView as B, (SELECT Martians FROM somewhere WHERE etc) AS C WHERE A.Joe= b.Mary AND B.Sausages = C.Martians; (Note, I am cleverly avoiding JOINS here :-) ) This is standard (and I mean Standard!) SQL. But you can't do that using the normal Gambas db stuff, you have to do a Connection.Exec(query) call and that is a) dbms specific and b) not updatable. So to cut a long story short, consider this approach: 1) Convert your Access queries to views and store them in your MySQL (Ack, spit) database, but only store the Keying information 2) Use those views, which are "visible" in gambas as Tables 3) Use the view result as a list of keys in your gambas app to do real table updates. We do this every day, let me check todays stats... pic attached hmm a pretty slow day really. > > I know this last option would work, but I am just wondering if there are > any better ways of doing this, without having to create a table with the > query result. > > Suggestions are appreciated. > hth Bruce -------------- next part -------------- A non-text attachment was scrubbed... Name: Selection_030.png Type: image/png Size: 10356 bytes Desc: not available URL: From gambas at ...1... Wed Jan 15 16:07:17 2014 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Wed, 15 Jan 2014 16:07:17 +0100 Subject: [Gambas-user] sdl Draw event overhead is killing frame rate In-Reply-To: <52D619D5.2030409@...1887...> References: <52D5F36A.30801@...1887...> <52D5FE4E.5050800@...1...> <52D619D5.2030409@...1887...> Message-ID: <52D6A425.8080007@...1...> Le 15/01/2014 06:17, Kevin Fishburne a ?crit : > On 01/14/2014 10:19 PM, Beno?t Minisini wrote: >> Le 15/01/2014 03:33, Kevin Fishburne a ?crit : >>> I noticed a month or two ago that the frame rate on the server side of >>> my game went from around 300 to 50. I assumed it was an OpenGL driver >>> issue or that I'd added some really inefficient code. It appears this is >>> not the case, but rather it seems the Draw event raised by opening a >>> screen using SDL is executing some heavy (and hopefully unnecessary) >>> lifting that it wasn't previously. >>> >>> I've attached a project which is essentially an empty SDL screen draw >>> event loop that calculates a frame rate once per second and outputs the >>> results to the console. Any idea what's going on here? Any empty loop on >>> my reasonably modern PC and brand new video card running the binary >>> NVIDIA drivers should be producing frame rates in the thousands, at least. >>> >> You must know that the event loop of the SDL library cannot be shared, >> so you get instead a busy waiting loop that repeatedly checks SDL events >> and calls one loop of the Gambas event loop with a 10 ms timeout. >> >> Each time that loop is run, the "Draw" event is raised. Unless you call >> "Stop Event" during the Draw event handler, gb.sdl assumes that >> something has be drawn, and so refreshes the window. >> >> Refreshing a window takes a lot of CPU, depending on its size and what >> your window manager is. >> >> If the window is refreshed, your framerate may be limited by the GPU >> (through the monitor vsync, which is emultated now on LCD monitors), >> check that. >> >> If you call Stop Event, the Draw event will be called again and again >> without refreshing, and so the CPU will be spent most of the time there. >> Note that a small CPU time is given back to the OS then, so that not >> 100% of the CPU is used. >> >> Just check the CPU usage and the framerate in the different cases (small >> window, big window, with a 3D window manager, without...), and report! >> > > That is interesting. I'm trying to wrap my head around it. My question > at this point is if something changed on my system or in Gambas. I've > tried this on two different PCs with two different video cards (with and > without the binary NVIDIA driver and with vsync and desktop compositing > disabled), and even ran the server code from several months ago with the > same effect. > > I placed a "Stop Event" after the "Inc FPS_Frames" statement in the > Screen_Draw procedure in the test project and it actually reduced the > frame rate from 236 to 157. That's the opposite of what I would have > expected based on your description of what is happening. > > I think I understand the logic. Basically, if stuff doesn't need to be > drawn on screen, call "Stop Event" at the beginning of the Screen_Draw > procedure (the SDL draw event) to avoid its unneeded overhead. It > doesn't work as expected unfortunately (unless I'm too thick to > understand what you're saying of course!). > > I just installed the mesa-utils and ran glxgears, which is reporting > about 677 FPS at approximately 1920x1080. Running GambasGears at > resolutions between 128x128 and 1920x1080 all produce a frame rate of > 233. Running it with everything but the frame rate calculation removed > from the Screen_Draw procedure produces a frame rate of 237 (similar to > my test project), which I tested through resolutions between 128x128 and > 1920x1080. BeastScroll's FPS maxes out at 227 FPS at any resolution. > > In order to see if it's something in Gambas or on my system I decided to > try some native games using SDL and OpenGL. I installed OpenArena from > the repositories and it runs around between 800 and 1000 FPS at 640x480 > and around 200-300 FPS at 1920x1080 with all settings on high. I > installed Nexuiz and on default settings at 1920x1080 get between 150 > and 200 FPS, which is pretty damn good for Nexuiz. > > I think something funky is going on with gb.sdl at this point, as it > seems to affect any SDL/OpenGL application including the example > programs, while non-Gambas SDL/OpenGL applications achieve remarkable > frame rates even under heavy load. > > I don't need Gambas to change, but some sort of documented workaround > may be in order if I'm correct in my suspicions. All these tests were > performed using NVIDIA driver 304.108 with vsync disabled on a GeForce > GTX 650 with 1024 MB of VRAM in Kubuntu 13.04 ia64, latest daily Gambas > build. > My problem is that nothing has changed for a long time in the way gb.sdl manages things... Which version of Gambas do you use? Can you make me a little project with something actually drawn and give me your stats if you call Stop Event, if you don't call it? Can you try on your machine if you replace the NVIDIA driver by Nouveau? Thanks! -- Beno?t Minisini From kevinfishburne at ...1887... Thu Jan 16 06:03:42 2014 From: kevinfishburne at ...1887... (Kevin Fishburne) Date: Thu, 16 Jan 2014 00:03:42 -0500 Subject: [Gambas-user] sdl Draw event overhead is killing frame rate In-Reply-To: <52D6A425.8080007@...1...> References: <52D5F36A.30801@...1887...> <52D5FE4E.5050800@...1...> <52D619D5.2030409@...1887...> <52D6A425.8080007@...1...> Message-ID: <52D7682E.4030405@...1887...> On 01/15/2014 10:07 AM, Beno?t Minisini wrote: > Le 15/01/2014 06:17, Kevin Fishburne a ?crit : >> On 01/14/2014 10:19 PM, Beno?t Minisini wrote: >>> Le 15/01/2014 03:33, Kevin Fishburne a ?crit : >>>> I noticed a month or two ago that the frame rate on the server side of >>>> my game went from around 300 to 50. I assumed it was an OpenGL driver >>>> issue or that I'd added some really inefficient code. It appears this is >>>> not the case, but rather it seems the Draw event raised by opening a >>>> screen using SDL is executing some heavy (and hopefully unnecessary) >>>> lifting that it wasn't previously. >>>> >>>> I've attached a project which is essentially an empty SDL screen draw >>>> event loop that calculates a frame rate once per second and outputs the >>>> results to the console. Any idea what's going on here? Any empty loop on >>>> my reasonably modern PC and brand new video card running the binary >>>> NVIDIA drivers should be producing frame rates in the thousands, at least. >>>> >>> You must know that the event loop of the SDL library cannot be shared, >>> so you get instead a busy waiting loop that repeatedly checks SDL events >>> and calls one loop of the Gambas event loop with a 10 ms timeout. >>> >>> Each time that loop is run, the "Draw" event is raised. Unless you call >>> "Stop Event" during the Draw event handler, gb.sdl assumes that >>> something has be drawn, and so refreshes the window. >>> >>> Refreshing a window takes a lot of CPU, depending on its size and what >>> your window manager is. >>> >>> If the window is refreshed, your framerate may be limited by the GPU >>> (through the monitor vsync, which is emultated now on LCD monitors), >>> check that. >>> >>> If you call Stop Event, the Draw event will be called again and again >>> without refreshing, and so the CPU will be spent most of the time there. >>> Note that a small CPU time is given back to the OS then, so that not >>> 100% of the CPU is used. >>> >>> Just check the CPU usage and the framerate in the different cases (small >>> window, big window, with a 3D window manager, without...), and report! >>> >> That is interesting. I'm trying to wrap my head around it. My question >> at this point is if something changed on my system or in Gambas. I've >> tried this on two different PCs with two different video cards (with and >> without the binary NVIDIA driver and with vsync and desktop compositing >> disabled), and even ran the server code from several months ago with the >> same effect. >> >> I placed a "Stop Event" after the "Inc FPS_Frames" statement in the >> Screen_Draw procedure in the test project and it actually reduced the >> frame rate from 236 to 157. That's the opposite of what I would have >> expected based on your description of what is happening. >> >> I think I understand the logic. Basically, if stuff doesn't need to be >> drawn on screen, call "Stop Event" at the beginning of the Screen_Draw >> procedure (the SDL draw event) to avoid its unneeded overhead. It >> doesn't work as expected unfortunately (unless I'm too thick to >> understand what you're saying of course!). >> >> I just installed the mesa-utils and ran glxgears, which is reporting >> about 677 FPS at approximately 1920x1080. Running GambasGears at >> resolutions between 128x128 and 1920x1080 all produce a frame rate of >> 233. Running it with everything but the frame rate calculation removed >> from the Screen_Draw procedure produces a frame rate of 237 (similar to >> my test project), which I tested through resolutions between 128x128 and >> 1920x1080. BeastScroll's FPS maxes out at 227 FPS at any resolution. >> >> In order to see if it's something in Gambas or on my system I decided to >> try some native games using SDL and OpenGL. I installed OpenArena from >> the repositories and it runs around between 800 and 1000 FPS at 640x480 >> and around 200-300 FPS at 1920x1080 with all settings on high. I >> installed Nexuiz and on default settings at 1920x1080 get between 150 >> and 200 FPS, which is pretty damn good for Nexuiz. >> >> I think something funky is going on with gb.sdl at this point, as it >> seems to affect any SDL/OpenGL application including the example >> programs, while non-Gambas SDL/OpenGL applications achieve remarkable >> frame rates even under heavy load. >> >> I don't need Gambas to change, but some sort of documented workaround >> may be in order if I'm correct in my suspicions. All these tests were >> performed using NVIDIA driver 304.108 with vsync disabled on a GeForce >> GTX 650 with 1024 MB of VRAM in Kubuntu 13.04 ia64, latest daily Gambas >> build. >> > My problem is that nothing has changed for a long time in the way gb.sdl > manages things... > > Which version of Gambas do you use? > > Can you make me a little project with something actually drawn and give > me your stats if you call Stop Event, if you don't call it? > > Can you try on your machine if you replace the NVIDIA driver by Nouveau? > > Thanks! The results are in, and they don't tell me much. :( I attached the updated test project, which includes the test results in comments at the top. They are: ' No Stop Event | No Geometry | Binary NVIDIA driver | 236 FPS ' Stop Event | No Geometry | Binary NVIDIA driver | 158 FPS ' No Stop Event | No Geometry | Nouveau driver | 238 FPS ' Stop Event | No Geometry | Nouveau driver | 159 FPS ' No Stop Event | Geometry | Binary NVIDIA driver | 236 FPS ' Stop Event | Geometry | Binary NVIDIA driver | 155 FPS ' No Stop Event | Geometry | Nouveau driver | 218 FPS ' Stop Event | Geometry | Nouveau driver | 161 FPS Adding "Stop Event" reduces thread CPU usage from 100% to 84%. The frame rate is consistently lower when using Stop Event. That 16% difference in CPU also doesn't seem to correlate with the difference in frame rates, as the frame rate difference has a significantly larger discrepancy. Factors unknown to me could be contributing to that of course... Perhaps this has nothing to do with SDL, but events in general? I just modified the project to do a Do...Loop with just the FPS calculation and it's executing over 6.6 million FPS. What's a quick way to create an event that executes as fast as possible? I'd like to calculate its frame rate to see how it compares to SDL's Draw event and the Do...Loop. Then we'd know if it's all events or if it's SDL's Draw event in particular. Also (and this needs a new thread), I just discovered that if you comment out the ".Show()" line signal 11 is raised upon executing the "Glu.Build2DMipmaps(TextureImage)" line. -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sales at ...1887... phone: (770) 853-6271 -------------- next part -------------- A non-text attachment was scrubbed... Name: SDL_Draw_Event_Test.tar.gz Type: application/gzip Size: 41211 bytes Desc: not available URL: From wally at ...2037... Thu Jan 16 09:27:19 2014 From: wally at ...2037... (wally) Date: Thu, 16 Jan 2014 09:27:19 +0100 Subject: [Gambas-user] GB3 write Byte[] question Message-ID: <52D797E7.9010405@...2037...> Hello, i want to send some data bytes to serialport using below code: Public Sub Button2_Click() Dim arr As Byte[] arr = [&Haa, &H15, &H00, &Hfe, &H0a, &H00, &H00, &H00, &Hff, &Hff, &Hff, &Hff, &H00, &H00, &H0a, &H00, &H00, &H00, &H10, &H27, &H00, &H42] If SP1.Status = Net.Active Then SP1.Begin Write #SP1, arr As Byte[] SP1.Send Endif End Problem is that this code sends all byte but with leading 3 Bytes i do not want to be sent. (hex values) " 41 02 16 aa 15 00 fe 0a 00 00 00 ff ff ff ff 00 00 0a 00 00 00 10 27 00 42 " I assume " 41 02 " is identifer for Byte-Array and hex 16 i(dec22) s the length of array How can i send this array without these leading 3 bytes ? Do i need the Begin/ Send Method for a single array to be sent ? thx wally From gambas at ...1... Thu Jan 16 09:30:26 2014 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Thu, 16 Jan 2014 09:30:26 +0100 Subject: [Gambas-user] GB3 write Byte[] question In-Reply-To: <52D797E7.9010405@...2037...> References: <52D797E7.9010405@...2037...> Message-ID: <52D798A2.7090107@...1...> Le 16/01/2014 09:27, wally a ?crit : > Hello, > > i want to send some data bytes to serialport using below code: > > Public Sub Button2_Click() > > Dim arr As Byte[] > arr = [&Haa, &H15, &H00, &Hfe, &H0a, &H00, &H00, &H00, &Hff, &Hff, > &Hff, &Hff, > &H00, &H00, &H0a, &H00, &H00, &H00, &H10, &H27, &H00, &H42] > > > If SP1.Status = Net.Active Then > SP1.Begin > Write #SP1, arr As Byte[] > SP1.Send > Endif > > End > > Problem is that this code sends all byte but with leading 3 Bytes i do > not want to be sent. > (hex values) > > " 41 02 16 aa 15 00 fe 0a 00 00 00 ff ff ff ff 00 00 0a 00 00 00 10 27 > 00 42 " > > I assume " 41 02 " is identifer for Byte-Array and hex 16 i(dec22) s the > length of array > > > How can i send this array without these leading 3 bytes ? > > Do i need the Begin/ Send Method for a single array to be sent ? > > thx wally > Use the Write() method of the Byte[] class. Regards, -- Beno?t Minisini From wally at ...2037... Thu Jan 16 09:35:20 2014 From: wally at ...2037... (wally) Date: Thu, 16 Jan 2014 09:35:20 +0100 Subject: [Gambas-user] GB3 write Byte[] question In-Reply-To: <52D798A2.7090107@...1...> References: <52D797E7.9010405@...2037...> <52D798A2.7090107@...1...> Message-ID: <52D799C8.1050901@...2037...> On 01/16/2014 09:30 AM, Beno?t Minisini wrote: > Le 16/01/2014 09:27, wally a ?crit : >> Hello, >> >> i want to send some data bytes to serialport using below code: >> >> Public Sub Button2_Click() >> >> Dim arr As Byte[] >> arr = [&Haa, &H15, &H00, &Hfe, &H0a, &H00, &H00, &H00, &Hff, &Hff, >> &Hff, &Hff, >> &H00, &H00, &H0a, &H00, &H00, &H00, &H10, &H27, &H00, &H42] >> >> >> If SP1.Status = Net.Active Then >> SP1.Begin >> Write #SP1, arr As Byte[] >> SP1.Send >> Endif >> >> End >> >> Problem is that this code sends all byte but with leading 3 Bytes i do >> not want to be sent. >> (hex values) >> >> " 41 02 16 aa 15 00 fe 0a 00 00 00 ff ff ff ff 00 00 0a 00 00 00 10 27 >> 00 42 " >> >> I assume " 41 02 " is identifer for Byte-Array and hex 16 i(dec22) s the >> length of array >> >> >> How can i send this array without these leading 3 bytes ? >> >> Do i need the Begin/ Send Method for a single array to be sent ? >> >> thx wally >> > Use the Write() method of the Byte[] class. > > Regards, > :) thanks a lot From willy at ...2734... Thu Jan 16 10:29:24 2014 From: willy at ...2734... (Willy Raets) Date: Thu, 16 Jan 2014 10:29:24 +0100 Subject: [Gambas-user] A Gambas-MySql question -> Query the result of a query and a table In-Reply-To: <1389795330.5369.85.camel@...2688...> References: <1389691202.3402.28.camel@...3024...> <1389795330.5369.85.camel@...2688...> Message-ID: <1389864564.2332.10.camel@...3024...> On Thu, 2014-01-16 at 00:45 +1030, Bruce wrote: > Hi Willy, > I have been thinking about this for the last day (amongst 20,000 other > things) and I really don't have an easy answer. > > On Tue, 2014-01-14 at 10:20 +0100, Willy Raets wrote: > > Hi all, > > > > In MS Access it was possible to make a query based on a query. I am in > > the middle of porting all MS Access clients to Gambas 3 and all tables > > have been migrated to MySql. > > > I do sort of remember this. We used to make a lot of use of it. But I > can't remember how it was done. Could you post a simple example? Do you mean a MS Access example of a query based on a query and some tables? > > > Is it possible in Gambas to do a query and next do another query on the > > result of the previous query combined with some extra tables? > > (Without the example, the answer is) Well not really, but there are a > lot of options. > > > > Or, do I need to do the query, store the result in a table and next > > query this table combined with the extra tables. > > No, you need not go this far! > A Gambas "result" is not a "cursor" in the true sense of the word. The > best way I can explain it is that it is sort of a live collection of > rows. You can iterate through it using the short form of the For Each > method, but you cant refer to it in another query as the dbms has no > idea what you could be talking about. > > There are a few options that leap to mind without remembering how this > stuff was done, but they all involve using direct SQL calls rather than > the clever stuff Benout has provided. Also be very aware that you will > be writing dbms specific code and so lose the database "agnosticity" > that normal use of gb.db provides. (And as you seem intent on using that > dog of a dbms, MySQL, I can't really be entirely specific as to how to > go about it.) > > Generally, it works like this. The SQL standard requires a SELECT > statement to refer in the FROM clause to either: > - real tables > - views > - embedded queries. > > So we can > SELECT (blah..) > FROM aTable as A, aView as B, (SELECT Martians FROM > somewhere WHERE etc) AS C > WHERE A.Joe= b.Mary AND B.Sausages = C.Martians; > (Note, I am cleverly avoiding JOINS here :-) ) > > This is standard (and I mean Standard!) SQL. > > But you can't do that using the normal Gambas db stuff, you have to do a > Connection.Exec(query) call and that is > a) dbms specific and > b) not updatable. I am using Connection.Exec(query) often in the application as there are so many specific things that need to be done (a lot of INNER, LEFT and RIGHT JOINS) that the normal db stuff can't handle (I think). That means a lot of SQL calls in Gambas code, so a bit harder to maintain. But that is okay, as I made a separate file in the Gambas project documenting where in the code I use what SQL calls, so I have some overview of what is going on for maintenance purposed later on. > > So to cut a long story short, consider this approach: > 1) Convert your Access queries to views and store them in your MySQL > (Ack, spit) database, but only store the Keying information > 2) Use those views, which are "visible" in gambas as Tables > 3) Use the view result as a list of keys in your gambas app to do real > table updates. > > We do this every day, let me check todays stats... pic attached > hmm a pretty slow day really. I'll have a look at how to make these views in MySql (so back to research) and see what I can get working. The queries in question are again quite extensive and with all kinds of JOINS. Thanks for sharing your suggestions and insight. > > > > > > I know this last option would work, but I am just wondering if there are > > any better ways of doing this, without having to create a table with the > > query result. > > > > Suggestions are appreciated. > > > > hth > Bruce -- Kind regards, Willy (aka gbWilly) http://gambasshowcase.org/ http://howtogambas.org http://gambos.org From willy at ...2734... Thu Jan 16 10:30:28 2014 From: willy at ...2734... (Willy Raets) Date: Thu, 16 Jan 2014 10:30:28 +0100 Subject: [Gambas-user] Printing text vertically (using printing or gb.report) In-Reply-To: <1389690291.3402.18.camel@...3024...> References: <1389690291.3402.18.camel@...3024...> Message-ID: <1389864628.2332.11.camel@...3024...> On Tue, 2014-01-14 at 10:04 +0100, Willy Raets wrote: > Hi all, > > I have a Dymo Label writer at work and need to print address labels. > Thing is that the labels are in portrait and the text needs to be > printed vertically instead of horizontally as it happens now. > > I have tried with both printing and reports but don't manage to get the > job done. Text aways gets printed horizontal and thus the addresses > don't fit the width or the Dymo Label. > > The size of the Dymo labels that need to be printed is: > PaperWidth = 35.630555 > PaperHeight = 88.9 > Both sizes are in milimeters (mm). > > I used to do this with reports from MS Access and there you can simply > set the textlabels on the report vertically instead of horizontally. > Didn't find a manner to achieve that with gb.report. Does that exist? > > The project itself is a rebuilt in Gambas of MS Access clients apps > currently used. I can't send the code because: > a. it is too big a project > b. it contains specific inside company information that is not meant for > the public. > I'll try and make a printed pdf of the result later today to show you > what I mean. > > Any suggestions would be appreciated. > Anyone any suggestion as I really need this to work somehow. -- Kind regards, Willy (aka gbWilly) http://gambasshowcase.org/ http://howtogambas.org http://gambos.org From eilert-sprachen at ...221... Thu Jan 16 10:44:02 2014 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Thu, 16 Jan 2014 10:44:02 +0100 Subject: [Gambas-user] Printing text vertically (using printing or gb.report) In-Reply-To: <1389864628.2332.11.camel@...3024...> References: <1389690291.3402.18.camel@...3024...> <1389864628.2332.11.camel@...3024...> Message-ID: <52D7A9E2.4090601@...221...> Am 16.01.2014 10:30, schrieb Willy Raets: > On Tue, 2014-01-14 at 10:04 +0100, Willy Raets wrote: >> Hi all, >> >> I have a Dymo Label writer at work and need to print address labels. >> Thing is that the labels are in portrait and the text needs to be >> printed vertically instead of horizontally as it happens now. >> >> I have tried with both printing and reports but don't manage to get the >> job done. Text aways gets printed horizontal and thus the addresses >> don't fit the width or the Dymo Label. >> >> The size of the Dymo labels that need to be printed is: >> PaperWidth = 35.630555 >> PaperHeight = 88.9 >> Both sizes are in milimeters (mm). >> >> I used to do this with reports from MS Access and there you can simply >> set the textlabels on the report vertically instead of horizontally. >> Didn't find a manner to achieve that with gb.report. Does that exist? >> >> The project itself is a rebuilt in Gambas of MS Access clients apps >> currently used. I can't send the code because: >> a. it is too big a project >> b. it contains specific inside company information that is not meant for >> the public. >> I'll try and make a printed pdf of the result later today to show you >> what I mean. >> >> Any suggestions would be appreciated. >> > > Anyone any suggestion as I really need this to work somehow. > It should be possible to make the page (pdf painting surface) landscape: myPrinter.Orientation = Printer.Landscape Does this help? It runs flawlessly here on my system... If it doesn't react, try setting gb.qt4 instead of gb.gui for the components to load. I had a problem here with it the other day, and I don't know if Benoit has already fixed it. Rolf From willy at ...2734... Thu Jan 16 10:55:49 2014 From: willy at ...2734... (Willy Raets) Date: Thu, 16 Jan 2014 10:55:49 +0100 Subject: [Gambas-user] Printing text vertically (using printing or gb.report) In-Reply-To: <52D7A9E2.4090601@...221...> References: <1389690291.3402.18.camel@...3024...> <1389864628.2332.11.camel@...3024...> <52D7A9E2.4090601@...221...> Message-ID: <1389866149.2332.17.camel@...3024...> On Thu, 2014-01-16 at 10:44 +0100, Rolf-Werner Eilert wrote: > > Am 16.01.2014 10:30, schrieb Willy Raets: > > On Tue, 2014-01-14 at 10:04 +0100, Willy Raets wrote: > >> Hi all, > >> > >> I have a Dymo Label writer at work and need to print address labels. > >> Thing is that the labels are in portrait and the text needs to be > >> printed vertically instead of horizontally as it happens now. > >> > >> I have tried with both printing and reports but don't manage to get the > >> job done. Text aways gets printed horizontal and thus the addresses > >> don't fit the width or the Dymo Label. > >> > >> The size of the Dymo labels that need to be printed is: > >> PaperWidth = 35.630555 > >> PaperHeight = 88.9 > >> Both sizes are in milimeters (mm). > >> > >> I used to do this with reports from MS Access and there you can simply > >> set the textlabels on the report vertically instead of horizontally. > >> Didn't find a manner to achieve that with gb.report. Does that exist? > >> > >> The project itself is a rebuilt in Gambas of MS Access clients apps > >> currently used. I can't send the code because: > >> a. it is too big a project > >> b. it contains specific inside company information that is not meant for > >> the public. > >> I'll try and make a printed pdf of the result later today to show you > >> what I mean. > >> > >> Any suggestions would be appreciated. > >> > > > > Anyone any suggestion as I really need this to work somehow. > > > > It should be possible to make the page (pdf painting surface) landscape: Are you talking gb.cairo component here as you mention a pdf painting surface as I haven't had a go at that. I was playing with the printer object and had a go with gb.reports. > > myPrinter.Orientation = Printer.Landscape > This suggestion sets me to think. The Dymo labels are in portrait in the Dymo label printer. So making a landscape label on a pdf surface and next print this in landscape (so actually giving the landscape design a twist to being printed in portrait) could do the job. I'am going to give this a try as soon as I am at work. > Does this help? It runs flawlessly here on my system... If it doesn't > react, try setting gb.qt4 instead of gb.gui for the components to load. > I had a problem here with it the other day, and I don't know if Benoit > has already fixed it. I'm using gb.qt4 in the project so that should be okay. I'll let you know if I managed to get it done. Thanks for the suggestion. > > Rolf -- Kind regards, Willy (aka gbWilly) http://gambasshowcase.org/ http://howtogambas.org http://gambos.org From eilert-sprachen at ...221... Thu Jan 16 11:30:58 2014 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Thu, 16 Jan 2014 11:30:58 +0100 Subject: [Gambas-user] Printing text vertically (using printing or gb.report) In-Reply-To: <1389866149.2332.17.camel@...3024...> References: <1389690291.3402.18.camel@...3024...> <1389864628.2332.11.camel@...3024...> <52D7A9E2.4090601@...221...> <1389866149.2332.17.camel@...3024...> Message-ID: <52D7B4E2.6080207@...221...> Am 16.01.2014 10:55, schrieb Willy Raets: > On Thu, 2014-01-16 at 10:44 +0100, Rolf-Werner Eilert wrote: >> >> Am 16.01.2014 10:30, schrieb Willy Raets: >>> On Tue, 2014-01-14 at 10:04 +0100, Willy Raets wrote: >>>> Hi all, >>>> >>>> I have a Dymo Label writer at work and need to print address labels. >>>> Thing is that the labels are in portrait and the text needs to be >>>> printed vertically instead of horizontally as it happens now. >>>> >>>> I have tried with both printing and reports but don't manage to get the >>>> job done. Text aways gets printed horizontal and thus the addresses >>>> don't fit the width or the Dymo Label. >>>> >>>> The size of the Dymo labels that need to be printed is: >>>> PaperWidth = 35.630555 >>>> PaperHeight = 88.9 >>>> Both sizes are in milimeters (mm). >>>> >>>> I used to do this with reports from MS Access and there you can simply >>>> set the textlabels on the report vertically instead of horizontally. >>>> Didn't find a manner to achieve that with gb.report. Does that exist? >>>> >>>> The project itself is a rebuilt in Gambas of MS Access clients apps >>>> currently used. I can't send the code because: >>>> a. it is too big a project >>>> b. it contains specific inside company information that is not meant for >>>> the public. >>>> I'll try and make a printed pdf of the result later today to show you >>>> what I mean. >>>> >>>> Any suggestions would be appreciated. >>>> >>> >>> Anyone any suggestion as I really need this to work somehow. >>> >> >> It should be possible to make the page (pdf painting surface) landscape: > > Are you talking gb.cairo component here as you mention a pdf painting > surface as I haven't had a go at that. I was playing with the printer > object and had a go with gb.reports. No, not Cairo, but you can print into pdf with the printer object, too. I admit, that was a bit of a wrong expression. It's what I use it for exclusively: Just printing into a pdf, then using the pdf-loading function to show a preview or simply copying the pdf to the printer. Fast, easy... > >> >> myPrinter.Orientation = Printer.Landscape >> > > This suggestion sets me to think. The Dymo labels are in portrait in the > Dymo label printer. So making a landscape label on a pdf surface and > next print this in landscape (so actually giving the landscape design a > twist to being printed in portrait) could do the job. I'am going to give > this a try as soon as I am at work. Yes, sometimes things can be tricky :-) > >> Does this help? It runs flawlessly here on my system... If it doesn't >> react, try setting gb.qt4 instead of gb.gui for the components to load. >> I had a problem here with it the other day, and I don't know if Benoit >> has already fixed it. > > I'm using gb.qt4 in the project so that should be okay. I'll let you > know if I managed to get it done. Thanks for the suggestion. > >> >> Rolf > > From willy at ...2734... Thu Jan 16 12:50:24 2014 From: willy at ...2734... (Willy Raets) Date: Thu, 16 Jan 2014 12:50:24 +0100 Subject: [Gambas-user] Printing text vertically (using printing or gb.report) In-Reply-To: <52D7B4E2.6080207@...221...> References: <1389690291.3402.18.camel@...3024...> <1389864628.2332.11.camel@...3024...> <52D7A9E2.4090601@...221...> <1389866149.2332.17.camel@...3024...> <52D7B4E2.6080207@...221...> Message-ID: <1389873024.2383.16.camel@...3024...> On Thu, 2014-01-16 at 11:30 +0100, Rolf-Werner Eilert wrote: > > Am 16.01.2014 10:55, schrieb Willy Raets: > > On Thu, 2014-01-16 at 10:44 +0100, Rolf-Werner Eilert wrote: > >> > >> Am 16.01.2014 10:30, schrieb Willy Raets: > >>> On Tue, 2014-01-14 at 10:04 +0100, Willy Raets wrote: > >>>> Hi all, > >>>> > >>>> I have a Dymo Label writer at work and need to print address labels. > >>>> Thing is that the labels are in portrait and the text needs to be > >>>> printed vertically instead of horizontally as it happens now. > >>>> > >>>> I have tried with both printing and reports but don't manage to get the > >>>> job done. Text aways gets printed horizontal and thus the addresses > >>>> don't fit the width or the Dymo Label. > >>>> > >>>> The size of the Dymo labels that need to be printed is: > >>>> PaperWidth = 35.630555 > >>>> PaperHeight = 88.9 > >>>> Both sizes are in milimeters (mm). > >>>> > >>>> I used to do this with reports from MS Access and there you can simply > >>>> set the textlabels on the report vertically instead of horizontally. > >>>> Didn't find a manner to achieve that with gb.report. Does that exist? > >>>> > >>>> The project itself is a rebuilt in Gambas of MS Access clients apps > >>>> currently used. I can't send the code because: > >>>> a. it is too big a project > >>>> b. it contains specific inside company information that is not meant for > >>>> the public. > >>>> I'll try and make a printed pdf of the result later today to show you > >>>> what I mean. > >>>> > >>>> Any suggestions would be appreciated. > >>>> > >>> > >>> Anyone any suggestion as I really need this to work somehow. > >>> > >> > >> It should be possible to make the page (pdf painting surface) landscape: > > > > Are you talking gb.cairo component here as you mention a pdf painting > > surface as I haven't had a go at that. I was playing with the printer > > object and had a go with gb.reports. > > No, not Cairo, but you can print into pdf with the printer object, too. > I admit, that was a bit of a wrong expression. It's what I use it for > exclusively: Just printing into a pdf, then using the pdf-loading > function to show a preview or simply copying the pdf to the printer. > Fast, easy... That is not what I want end users to do, they need to print directly to the DymoLabel Writer without even a preview. Having them first make a pdf and reset orientation is way too much for them (some of them are really no computer experts whatsoever) and things need to be kept simple for them :( I added some screenshots of how it is implemented at the moment in MS Access. As you can see the report designer of MS Access allows for labels to be placed vertically on the design (there is a property named vertical for textlabels that can be set to yes, it is as simple as that). The second screenshot is a print preview and that is the result I would need. As you can see the layout of the Dymo Address Label is portrait, the text is printed vertical on the Address Label. As I am porting this application to Gambas, I need to figure out how this can be done in Gambas, as the Dymo Label Writer doesn't have any other options to print this. gb.report doesn't seem to have this possibility and neither does using the printer object. Or maybe they can but I haven't discovered it yet. > > > > >> > >> myPrinter.Orientation = Printer.Landscape > >> > > > > This suggestion sets me to think. The Dymo labels are in portrait in the > > Dymo label printer. So making a landscape label on a pdf surface and > > next print this in landscape (so actually giving the landscape design a > > twist to being printed in portrait) could do the job. I'am going to give > > this a try as soon as I am at work. > > Yes, sometimes things can be tricky :-) I do think I will try with gb.cairo to see what I can come up with, just curious if that would work. But having this option in gb.report would of course be much easier :) Thanks for the suggestions. -- Kind regards, Willy (aka gbWilly) http://gambasshowcase.org/ http://howtogambas.org http://gambos.org -------------- next part -------------- A non-text attachment was scrubbed... Name: DymoAdressLabel-ReportDesign.PNG Type: image/png Size: 66308 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: DymoAdressLabel-PrintPreview.PNG Type: image/png Size: 70526 bytes Desc: not available URL: From gambas at ...2524... Thu Jan 16 19:39:56 2014 From: gambas at ...2524... (gambas at ...2524...) Date: Thu, 16 Jan 2014 18:39:56 +0000 Subject: [Gambas-user] Issue 501 in gambas: IDE does only run code when started from console as superuser Message-ID: <0-6813199134517018827-10002323997835936341-gambas=googlecode.com@...2524...> Status: New Owner: ---- Labels: Version-3.5.2 Type-Bug Priority-Medium Usability Dist-Gentoo Arch-Any Desktop-XFCE GUI-Any New issue 501 by xpistian... at ...626...: IDE does only run code when started from console as superuser http://code.google.com/p/gambas/issues/detail?id=501 1) Gambas starts up fine, but any code written won't run or rather won't show anything. It seems to run in the background i.e. you can use the play, forward, backward, pause etc. buttons. Starting gambas from a terminal as a superuser the IDE works perfectly. Strangely enough, starting gambas as root shows the same problems as starting it as a normal user. This problem did not occur with previous versions as far as I am aware System information Version: 3.5.2 Operating system: Linux Distribution: Gentoo Architecture: x86_64 GUI component: QT4 / GTK+ Desktop used: XFCE 4.10 Reproduce: Compile Gambas 3.5.2 from source (no ebuilds available) on your Gentoo machine, start a new project, write some code, run it. -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From gambas at ...2524... Thu Jan 16 19:45:28 2014 From: gambas at ...2524... (gambas at ...2524...) Date: Thu, 16 Jan 2014 18:45:28 +0000 Subject: [Gambas-user] Issue 501 in gambas: IDE does only run code when started from console as superuser In-Reply-To: <0-6813199134517018827-10002323997835936341-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-10002323997835936341-gambas=googlecode.com@...2524...> Message-ID: <1-6813199134517018827-10002323997835936341-gambas=googlecode.com@...2524...> Updates: Status: NeedsInfo Labels: -Version-3.5.2 Version-3.5.0 Comment #1 on issue 501 by benoit.m... at ...626...: IDE does only run code when started from console as superuser http://code.google.com/p/gambas/issues/detail?id=501 I guess you compiled Gambas incorrectly, but you don't give any details. Please provide the full output of the compilation and installation process. -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From taboege at ...626... Thu Jan 16 22:30:23 2014 From: taboege at ...626... (Tobias Boege) Date: Thu, 16 Jan 2014 22:30:23 +0100 Subject: [Gambas-user] Starting a Process and forgetting about it In-Reply-To: <1389488010.5709.37.camel@...2688...> References: <20130807080842.GA860@...2774...> <52096FC0.8090405@...1...> <20130813092248.GB833@...2774...> <5209FCE7.5020005@...1...> <20130813101540.GC833@...2774...> <1389481758.5709.36.camel@...2688...> <1389488010.5709.37.camel@...2688...> Message-ID: <20140116213023.GB513@...2774...> On Sun, 12 Jan 2014, Bruce wrote: > > Good morning, > > > > Did this ever get taken further? (Another long post sorry!) > > Indeed... > > [...] I'll certainly find time to respond on this topic more elaborately than this: Maybe you want to create a new session using setsid() with your programs and then use kill() with a negative argument to kill all processes in your session together... (it's all in the manpages, section 2). This mail is just to let you know that I care about this ;-) Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From gambas at ...1... Thu Jan 16 22:40:12 2014 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Thu, 16 Jan 2014 22:40:12 +0100 Subject: [Gambas-user] sdl Draw event overhead is killing frame rate In-Reply-To: <52D7682E.4030405@...1887...> References: <52D5F36A.30801@...1887...> <52D5FE4E.5050800@...1...> <52D619D5.2030409@...1887...> <52D6A425.8080007@...1...> <52D7682E.4030405@...1887...> Message-ID: <52D851BC.7010802@...1...> Le 16/01/2014 06:03, Kevin Fishburne a ?crit : > > The results are in, and they don't tell me much. :( I attached the > updated test project, which includes the test results in comments at the > top. They are: > > ' No Stop Event | No Geometry | Binary NVIDIA driver | 236 FPS > ' Stop Event | No Geometry | Binary NVIDIA driver | 158 FPS > ' No Stop Event | No Geometry | Nouveau driver | 238 FPS > ' Stop Event | No Geometry | Nouveau driver | 159 FPS > ' No Stop Event | Geometry | Binary NVIDIA driver | 236 FPS > ' Stop Event | Geometry | Binary NVIDIA driver | 155 FPS > ' No Stop Event | Geometry | Nouveau driver | 218 FPS > ' Stop Event | Geometry | Nouveau driver | 161 FPS > > Adding "Stop Event" reduces thread CPU usage from 100% to 84%. The frame > rate is consistently lower when using Stop Event. That 16% difference in > CPU also doesn't seem to correlate with the difference in frame rates, > as the frame rate difference has a significantly larger discrepancy. > Factors unknown to me could be contributing to that of course... It's actually simple: when 'Stop Event' is used, the process is paused during a little delay (about 10 ms according to the SDL_Delay function documentation). So it acts as a frame rate limitation. If you don't use 'Stop Event', there is no such delay. But you get in both cases a call to the Gambas event loop with a 10 ms timeout (yes, 10 ms again. This is usually the smallest delay a Linux Kernel can handle). That means if there is no Gambas event to process, the process is paused during 10 ms. If there is a Gambas event to process, there is no pause. I will try to remove all this delays, and you will tell me if it helps you. -- Beno?t Minisini From gambas at ...1... Thu Jan 16 23:07:11 2014 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Thu, 16 Jan 2014 23:07:11 +0100 Subject: [Gambas-user] sdl Draw event overhead is killing frame rate In-Reply-To: <52D851BC.7010802@...1...> References: <52D5F36A.30801@...1887...> <52D5FE4E.5050800@...1...> <52D619D5.2030409@...1887...> <52D6A425.8080007@...1...> <52D7682E.4030405@...1887...> <52D851BC.7010802@...1...> Message-ID: <52D8580F.3060001@...1...> Le 16/01/2014 22:40, Beno?t Minisini a ?crit : > Le 16/01/2014 06:03, Kevin Fishburne a ?crit : >> >> The results are in, and they don't tell me much. :( I attached the >> updated test project, which includes the test results in comments at the >> top. They are: >> >> ' No Stop Event | No Geometry | Binary NVIDIA driver | 236 FPS >> ' Stop Event | No Geometry | Binary NVIDIA driver | 158 FPS >> ' No Stop Event | No Geometry | Nouveau driver | 238 FPS >> ' Stop Event | No Geometry | Nouveau driver | 159 FPS >> ' No Stop Event | Geometry | Binary NVIDIA driver | 236 FPS >> ' Stop Event | Geometry | Binary NVIDIA driver | 155 FPS >> ' No Stop Event | Geometry | Nouveau driver | 218 FPS >> ' Stop Event | Geometry | Nouveau driver | 161 FPS >> >> Adding "Stop Event" reduces thread CPU usage from 100% to 84%. The frame >> rate is consistently lower when using Stop Event. That 16% difference in >> CPU also doesn't seem to correlate with the difference in frame rates, >> as the frame rate difference has a significantly larger discrepancy. >> Factors unknown to me could be contributing to that of course... > > It's actually simple: when 'Stop Event' is used, the process is paused > during a little delay (about 10 ms according to the SDL_Delay function > documentation). So it acts as a frame rate limitation. > > If you don't use 'Stop Event', there is no such delay. But you get in > both cases a call to the Gambas event loop with a 10 ms timeout (yes, 10 > ms again. This is usually the smallest delay a Linux Kernel can handle). > That means if there is no Gambas event to process, the process is paused > during 10 ms. If there is a Gambas event to process, there is no pause. > > I will try to remove all this delays, and you will tell me if it helps you. > Please test revision #6085, and tell me if it changes anything in your framerate. I removed the delay if Stop Event is called, and I lower the timeout of the Gambas event loop call to 1 ms instead of 10 ms, which force Gambas to use a busy loop instead of sleeping the process. Regards, -- Beno?t Minisini From ihaywood3 at ...626... Thu Jan 16 23:12:12 2014 From: ihaywood3 at ...626... (Ian Haywood) Date: Fri, 17 Jan 2014 09:12:12 +1100 Subject: [Gambas-user] Error.Backtrace Message-ID: <52D8593C.20001@...626...> I have discovered that Error.Backtrace is not always correctly set. if an error occurs in a TRY expression Error.Backtrace remains with the previous error. Error.Where and Error.Text are set correctly. This caused us a lot of problems as we log Error.backtrace to find errors on user systems. I attach a mini-project that demonstrates this. -------------- next part -------------- A non-text attachment was scrubbed... Name: backtrace-lies-0.0.1.tar.gz Type: application/x-gzip Size: 4540 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 190 bytes Desc: OpenPGP digital signature URL: From gambas at ...1... Fri Jan 17 00:11:40 2014 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Fri, 17 Jan 2014 00:11:40 +0100 Subject: [Gambas-user] Error.Backtrace In-Reply-To: <52D8593C.20001@...626...> References: <52D8593C.20001@...626...> Message-ID: <52D8672C.7050802@...1...> Le 16/01/2014 23:12, Ian Haywood a ?crit : > I have discovered that Error.Backtrace is not always correctly set. > if an error occurs in a TRY expression Error.Backtrace remains with the > previous error. > Error.Where and Error.Text are set correctly. > > This caused us a lot of problems as we log Error.backtrace to find > errors on user systems. > > I attach a mini-project that demonstrates this. > > This is for performance reasons. Storing the stack backtrace can be an heavy process, so it is only done if there is a CATCH or a FINALLY or no error handler in the function. For a TRY that does not call functions, it is not computed, so you get the previous stack backtrace. I admit it is actually a bit weird, but I don't understand why it is a problem. You should use TRY when you really don't care with the error. Anyway I will think about it. How to get a stack backtrace in all cases without having to copy the entire stack, most of the time for nothing. -- Beno?t Minisini From tercoide at ...67... Fri Jan 17 00:15:03 2014 From: tercoide at ...67... (martin p cristia) Date: Thu, 16 Jan 2014 20:15:03 -0300 Subject: [Gambas-user] Matrices byref In-Reply-To: References: Message-ID: I need this global matrix: Public MatRigGlo[12, 12] As Float that in some cases it needs to be [3,3] or [6,6] I pass that matrix to a C library: Public Extern M8simetrizarSQ(matriz As Float[], lOrden As Long) and the call is M8simetrizarSQ(MatRigGlo, 12) wich works perfectly. But its ineficient because if matrix is 3x3, the routine still need to process it like 12x12, and that matrix it's filled like 1M times. Will it work like this? Public Mat3[3,3] as Float Public Mat12[12,12] as Float Public MatRigGlo as Float[] ' Module MatrigGlo = Mat3 and the use MatRigGlo like a 3x3 matrix? wich other ways to do this? tnx From ihaywood3 at ...626... Fri Jan 17 02:33:49 2014 From: ihaywood3 at ...626... (Ian Haywood) Date: Fri, 17 Jan 2014 12:33:49 +1100 Subject: [Gambas-user] Error.Backtrace In-Reply-To: <52D8672C.7050802@...1...> References: <52D8593C.20001@...626...> <52D8672C.7050802@...1...> Message-ID: <52D8887D.4070202@...626...> On 17/01/14 10:11, Beno?t Minisini wrote: > Le 16/01/2014 23:12, Ian Haywood a ?crit : > For a TRY that does not call functions, it is not computed, so you get > the previous stack backtrace. not computing it is OK (as the combination of Error.Text and Error.Where gives us all the information anyway). The problem is leaving old data in there, there is no way to detect this is bogus data and leads to many hours trying to debug the wrong bit of code (our project has 200k SLOC so we need to know where to look!) Surely it wouldn't slow performance to set Error.Backtrace to NULL? > I admit it is actually a bit weird, but I don't understand why it is a > problem. You should use TRY when you really don't care with the error. Hmm, because Catch only operates at the level of a whole function we do use TRY and test for errors a fair bit. Ian From gambas at ...2524... Fri Jan 17 09:21:52 2014 From: gambas at ...2524... (gambas at ...2524...) Date: Fri, 17 Jan 2014 08:21:52 +0000 Subject: [Gambas-user] Issue 501 in gambas: IDE does only run code when started from console as superuser In-Reply-To: <1-6813199134517018827-10002323997835936341-gambas=googlecode.com@...2524...> References: <1-6813199134517018827-10002323997835936341-gambas=googlecode.com@...2524...> <0-6813199134517018827-10002323997835936341-gambas=googlecode.com@...2524...> Message-ID: <2-6813199134517018827-10002323997835936341-gambas=googlecode.com@...2524...> Comment #2 on issue 501 by xpistian... at ...626...: IDE does only run code when started from console as superuser http://code.google.com/p/gambas/issues/detail?id=501 I didn't know what details you might need. And since the compiler didn't throw any errors (as far as I am aware) I thought it would be something else, probably privilege related. I'll attach the output of reconf-all, configure, make and make install later. Or don't you need all of that stuff? -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From gambas at ...2524... Fri Jan 17 14:53:51 2014 From: gambas at ...2524... (gambas at ...2524...) Date: Fri, 17 Jan 2014 13:53:51 +0000 Subject: [Gambas-user] Issue 501 in gambas: IDE does only run code when started from console as superuser In-Reply-To: <2-6813199134517018827-10002323997835936341-gambas=googlecode.com@...2524...> References: <2-6813199134517018827-10002323997835936341-gambas=googlecode.com@...2524...> <0-6813199134517018827-10002323997835936341-gambas=googlecode.com@...2524...> Message-ID: <3-6813199134517018827-10002323997835936341-gambas=googlecode.com@...2524...> Comment #3 on issue 501 by xpistian... at ...626...: IDE does only run code when started from console as superuser http://code.google.com/p/gambas/issues/detail?id=501 Attached output of ( ./configure -C; make; make install ) > output.txt 2>&1 Attachments: output.txt 498 KB -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From gambas.fr at ...626... Fri Jan 17 21:50:42 2014 From: gambas.fr at ...626... (Fabien Bodard) Date: Fri, 17 Jan 2014 21:50:42 +0100 Subject: [Gambas-user] Printing text vertically (using printing or gb.report) In-Reply-To: <1389873024.2383.16.camel@...3024...> References: <1389690291.3402.18.camel@...3024...> <1389864628.2332.11.camel@...3024...> <52D7A9E2.4090601@...221...> <1389866149.2332.17.camel@...3024...> <52D7B4E2.6080207@...221...> <1389873024.2383.16.camel@...3024...> Message-ID: 2014/1/16 Willy Raets : > On Thu, 2014-01-16 at 11:30 +0100, Rolf-Werner Eilert wrote: >> >> Am 16.01.2014 10:55, schrieb Willy Raets: >> > On Thu, 2014-01-16 at 10:44 +0100, Rolf-Werner Eilert wrote: >> >> >> >> Am 16.01.2014 10:30, schrieb Willy Raets: >> >>> On Tue, 2014-01-14 at 10:04 +0100, Willy Raets wrote: >> >>>> Hi all, >> >>>> >> >>>> I have a Dymo Label writer at work and need to print address labels. >> >>>> Thing is that the labels are in portrait and the text needs to be >> >>>> printed vertically instead of horizontally as it happens now. >> >>>> >> >>>> I have tried with both printing and reports but don't manage to get the >> >>>> job done. Text aways gets printed horizontal and thus the addresses >> >>>> don't fit the width or the Dymo Label. >> >>>> >> >>>> The size of the Dymo labels that need to be printed is: >> >>>> PaperWidth = 35.630555 >> >>>> PaperHeight = 88.9 >> >>>> Both sizes are in milimeters (mm). >> >>>> >> >>>> I used to do this with reports from MS Access and there you can simply >> >>>> set the textlabels on the report vertically instead of horizontally. >> >>>> Didn't find a manner to achieve that with gb.report. Does that exist? >> >>>> >> >>>> The project itself is a rebuilt in Gambas of MS Access clients apps >> >>>> currently used. I can't send the code because: >> >>>> a. it is too big a project >> >>>> b. it contains specific inside company information that is not meant for >> >>>> the public. >> >>>> I'll try and make a printed pdf of the result later today to show you >> >>>> what I mean. >> >>>> >> >>>> Any suggestions would be appreciated. >> >>>> >> >>> >> >>> Anyone any suggestion as I really need this to work somehow. >> >>> >> >> >> >> It should be possible to make the page (pdf painting surface) landscape: >> > >> > Are you talking gb.cairo component here as you mention a pdf painting >> > surface as I haven't had a go at that. I was playing with the printer >> > object and had a go with gb.reports. >> >> No, not Cairo, but you can print into pdf with the printer object, too. >> I admit, that was a bit of a wrong expression. It's what I use it for >> exclusively: Just printing into a pdf, then using the pdf-loading >> function to show a preview or simply copying the pdf to the printer. >> Fast, easy... > > That is not what I want end users to do, they need to print directly to > the DymoLabel Writer without even a preview. > Having them first make a pdf and reset orientation is way too much for > them (some of them are really no computer experts whatsoever) and things > need to be kept simple for them :( > > I added some screenshots of how it is implemented at the moment in MS > Access. As you can see the report designer of MS Access allows for > labels to be placed vertically on the design (there is a property named > vertical for textlabels that can be set to yes, it is as simple as > that). > > The second screenshot is a print preview and that is the result I would > need. As you can see the layout of the Dymo Address Label is portrait, > the text is printed vertical on the Address Label. > > As I am porting this application to Gambas, I need to figure out how > this can be done in Gambas, as the Dymo Label Writer doesn't have any > other options to print this. > > gb.report doesn't seem to have this possibility and neither does using > the printer object. Or maybe they can but I haven't discovered it yet. > >> >> > >> >> >> >> myPrinter.Orientation = Printer.Landscape >> >> >> > >> > This suggestion sets me to think. The Dymo labels are in portrait in the >> > Dymo label printer. So making a landscape label on a pdf surface and >> > next print this in landscape (so actually giving the landscape design a >> > twist to being printed in portrait) could do the job. I'am going to give >> > this a try as soon as I am at work. >> >> Yes, sometimes things can be tricky :-) > > I do think I will try with gb.cairo to see what I can come up with, just > curious if that would work. But having this option in gb.report would of > course be much easier :) it is in the code of report but it seem i have a bug with path extents. and the editor don't show the rotation. i will correct that. > Thanks for the suggestions. > > > -- > Kind regards, > > Willy (aka gbWilly) > > http://gambasshowcase.org/ > http://howtogambas.org > http://gambos.org > > > > > ------------------------------------------------------------------------------ > CenturyLink Cloud: The Leader in Enterprise Cloud Services. > Learn Why More Businesses Are Choosing CenturyLink Cloud For > Critical Workloads, Development Environments & Everything In Between. > Get a Quote or Start a Free Trial Today. > http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Fabien Bodard From kevinfishburne at ...1887... Sat Jan 18 05:00:51 2014 From: kevinfishburne at ...1887... (Kevin Fishburne) Date: Fri, 17 Jan 2014 23:00:51 -0500 Subject: [Gambas-user] sdl Draw event overhead is killing frame rate In-Reply-To: <52D8580F.3060001@...1...> References: <52D5F36A.30801@...1887...> <52D5FE4E.5050800@...1...> <52D619D5.2030409@...1887...> <52D6A425.8080007@...1...> <52D7682E.4030405@...1887...> <52D851BC.7010802@...1...> <52D8580F.3060001@...1...> Message-ID: <52D9FC73.4070400@...1887...> On 01/16/2014 05:07 PM, Beno?t Minisini wrote: > Le 16/01/2014 22:40, Beno?t Minisini a ?crit : >> Le 16/01/2014 06:03, Kevin Fishburne a ?crit : >>> The results are in, and they don't tell me much. :( I attached the >>> updated test project, which includes the test results in comments at the >>> top. They are: >>> >>> ' No Stop Event | No Geometry | Binary NVIDIA driver | 236 FPS >>> ' Stop Event | No Geometry | Binary NVIDIA driver | 158 FPS >>> ' No Stop Event | No Geometry | Nouveau driver | 238 FPS >>> ' Stop Event | No Geometry | Nouveau driver | 159 FPS >>> ' No Stop Event | Geometry | Binary NVIDIA driver | 236 FPS >>> ' Stop Event | Geometry | Binary NVIDIA driver | 155 FPS >>> ' No Stop Event | Geometry | Nouveau driver | 218 FPS >>> ' Stop Event | Geometry | Nouveau driver | 161 FPS >>> >>> Adding "Stop Event" reduces thread CPU usage from 100% to 84%. The frame >>> rate is consistently lower when using Stop Event. That 16% difference in >>> CPU also doesn't seem to correlate with the difference in frame rates, >>> as the frame rate difference has a significantly larger discrepancy. >>> Factors unknown to me could be contributing to that of course... >> It's actually simple: when 'Stop Event' is used, the process is paused >> during a little delay (about 10 ms according to the SDL_Delay function >> documentation). So it acts as a frame rate limitation. >> >> If you don't use 'Stop Event', there is no such delay. But you get in >> both cases a call to the Gambas event loop with a 10 ms timeout (yes, 10 >> ms again. This is usually the smallest delay a Linux Kernel can handle). >> That means if there is no Gambas event to process, the process is paused >> during 10 ms. If there is a Gambas event to process, there is no pause. >> >> I will try to remove all this delays, and you will tell me if it helps you. >> > Please test revision #6085, and tell me if it changes anything in your > framerate. > > I removed the delay if Stop Event is called, and I lower the timeout of > the Gambas event loop call to 1 ms instead of 10 ms, which force Gambas > to use a busy loop instead of sleeping the process. > The FPS are the same when not calling Stop Event, but are now faster when calling Stop Event. Either way they still max out between 230-240 FPS. I set up a VM so I can compile specific revisions of Gambas and will see if older versions exhibit different behavior. I'll let you know what I find, and hopefully will be able to narrow it down to a specific revision. If I can't do anything to get a higher frame rate on an empty SDL loop then something's gone horribly wrong on my end. -- Kevin Fishburne Eight Virtues www:http://sales.eightvirtues.com e-mail:sales at ...1887... phone: (770) 853-6271 From kevinfishburne at ...1887... Sat Jan 18 06:09:00 2014 From: kevinfishburne at ...1887... (Kevin Fishburne) Date: Sat, 18 Jan 2014 00:09:00 -0500 Subject: [Gambas-user] how to delete all traces of Gambas? In-Reply-To: <52D9FC73.4070400@...1887...> References: <52D5F36A.30801@...1887...> <52D5FE4E.5050800@...1...> <52D619D5.2030409@...1887...> <52D6A425.8080007@...1...> <52D7682E.4030405@...1887...> <52D851BC.7010802@...1...> <52D8580F.3060001@...1...> <52D9FC73.4070400@...1887...> Message-ID: <52DA0C6C.40709@...1887...> Quick question. How do you manually delete all traces of Gambas from your system? I need to add that to my compilation script as it's having some trouble running older revisions of Gambas and I think that's the reason why. I'm using Kubuntu 13.10. Thanks all. -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sales at ...1887... phone: (770) 853-6271 From gambas.fr at ...626... Sat Jan 18 08:54:12 2014 From: gambas.fr at ...626... (Fabien Bodard) Date: Sat, 18 Jan 2014 08:54:12 +0100 Subject: [Gambas-user] how to delete all traces of Gambas? In-Reply-To: <52DA0C6C.40709@...1887...> References: <52D5F36A.30801@...1887...> <52D5FE4E.5050800@...1...> <52D619D5.2030409@...1887...> <52D6A425.8080007@...1...> <52D7682E.4030405@...1887...> <52D851BC.7010802@...1...> <52D8580F.3060001@...1...> <52D9FC73.4070400@...1887...> <52DA0C6C.40709@...1887...> Message-ID: /usr/bin/gb* /usr/lib/gambas/ /usr/share/gambas/ /home/.config/gambas It can be sometime in /usr/local/ prefix I'm not on my pc so theses path need to be confirmed Le 18 janv. 2014 06:10, "Kevin Fishburne" a ?crit : > Quick question. How do you manually delete all traces of Gambas from > your system? I need to add that to my compilation script as it's having > some trouble running older revisions of Gambas and I think that's the > reason why. I'm using Kubuntu 13.10. Thanks all. > > -- > Kevin Fishburne > Eight Virtues > www: http://sales.eightvirtues.com > e-mail: sales at ...1887... > phone: (770) 853-6271 > > > > ------------------------------------------------------------------------------ > CenturyLink Cloud: The Leader in Enterprise Cloud Services. > Learn Why More Businesses Are Choosing CenturyLink Cloud For > Critical Workloads, Development Environments & Everything In Between. > Get a Quote or Start a Free Trial Today. > > http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From jussi.lahtinen at ...626... Sat Jan 18 13:33:33 2014 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Sat, 18 Jan 2014 14:33:33 +0200 Subject: [Gambas-user] how to delete all traces of Gambas? In-Reply-To: <52DA0C6C.40709@...1887...> References: <52D5F36A.30801@...1887...> <52D5FE4E.5050800@...1...> <52D619D5.2030409@...1887...> <52D6A425.8080007@...1...> <52D7682E.4030405@...1887...> <52D851BC.7010802@...1...> <52D8580F.3060001@...1...> <52D9FC73.4070400@...1887...> <52DA0C6C.40709@...1887...> Message-ID: These should do it: 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 sudo rm -f /usr/local/bin/gambas3 sudo rm -f /usr/local/bin/gambas3.gambas sudo rm -f /usr/bin/gbx3 /usr/bin/gbc3 /usr/bin/gba3 /usr/bin/gbi3 sudo rm -rf /usr/lib/gambas3 sudo rm -rf /usr/share/gambas3 sudo rm -f /usr/bin/gambas3 sudo rm -f /usr/bin/gambas3.gambas Jussi On Sat, Jan 18, 2014 at 7:09 AM, Kevin Fishburne < kevinfishburne at ...1887...> wrote: > Quick question. How do you manually delete all traces of Gambas from > your system? I need to add that to my compilation script as it's having > some trouble running older revisions of Gambas and I think that's the > reason why. I'm using Kubuntu 13.10. Thanks all. > > -- > Kevin Fishburne > Eight Virtues > www: http://sales.eightvirtues.com > e-mail: sales at ...1887... > phone: (770) 853-6271 > > > > ------------------------------------------------------------------------------ > CenturyLink Cloud: The Leader in Enterprise Cloud Services. > Learn Why More Businesses Are Choosing CenturyLink Cloud For > Critical Workloads, Development Environments & Everything In Between. > Get a Quote or Start a Free Trial Today. > > http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From eilert-sprachen at ...221... Sat Jan 18 13:34:03 2014 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Sat, 18 Jan 2014 13:34:03 +0100 Subject: [Gambas-user] how to delete all traces of Gambas? In-Reply-To: <52DA0C6C.40709@...1887...> References: <52D5F36A.30801@...1887...> <52D5FE4E.5050800@...1...> <52D619D5.2030409@...1887...> <52D6A425.8080007@...1...> <52D7682E.4030405@...1887...> <52D851BC.7010802@...1...> <52D8580F.3060001@...1...> <52D9FC73.4070400@...1887...> <52DA0C6C.40709@...1887...> Message-ID: <52DA74BB.6030809@...221...> Am 18.01.2014 06:09, schrieb Kevin Fishburne: > Quick question. How do you manually delete all traces of Gambas from > your system? I need to add that to my compilation script as it's having > some trouble running older revisions of Gambas and I think that's the > reason why. I'm using Kubuntu 13.10. Thanks all. > Maybe you had set another prefix when compiling and don't remember it? On my systems, make uninstall has always done the job flawlessly. Rolf From gambas.fr at ...626... Sat Jan 18 17:19:44 2014 From: gambas.fr at ...626... (Fabien Bodard) Date: Sat, 18 Jan 2014 17:19:44 +0100 Subject: [Gambas-user] Two suggestions about TabPanel Message-ID: The move left/right arrows must be at the left, because when we are changing doc from code to form. the arrow place position depend of the presence of right property panel. I think the tabs need to have all the same size if the close button is used. It ca be the size of the longest one. so when clicking on the close button colosing can be done recursively without moving the mouse. One thing funny can be a resisign on the first tab closed with a timer of 2 or 3 sec. so durring this time all the tabs at the right of the current tab have the same size than the current tab. And retreive theire size after the Last click + delay. . -- Fabien Bodard From gambas.fr at ...626... Sat Jan 18 17:21:16 2014 From: gambas.fr at ...626... (Fabien Bodard) Date: Sat, 18 Jan 2014 17:21:16 +0100 Subject: [Gambas-user] TabPanel Edition Message-ID: Is it normal that changing the count property in the property windows don't change the edited tabpanel in the form editor ? -- Fabien Bodard From bbruen at ...2308... Sat Jan 18 22:30:57 2014 From: bbruen at ...2308... (Bruce) Date: Sun, 19 Jan 2014 08:00:57 +1030 Subject: [Gambas-user] TabPanel Edition In-Reply-To: References: Message-ID: <1390080657.30151.1.camel@...2688...> On Sat, 2014-01-18 at 17:21 +0100, Fabien Bodard wrote: > Is it normal that changing the count property in the property windows > don't change the edited tabpanel in the form editor ? > If by "normal" you mean does it happen here too, then yes. [System] Gambas=3.5.90 OperatingSystem=Linux Kernel=3.4.59-pclos1 Architecture=x86 Distribution=PCLinuxOS Desktop=LXDE/Openbox Theme=QWindows Language=en_AU.UTF-8 Bruce From bbruen at ...2308... Sat Jan 18 23:01:51 2014 From: bbruen at ...2308... (Bruce) Date: Sun, 19 Jan 2014 08:31:51 +1030 Subject: [Gambas-user] Two suggestions about TabPanel + 2 more In-Reply-To: References: Message-ID: <1390082511.30151.6.camel@...2688...> On Sat, 2014-01-18 at 17:19 +0100, Fabien Bodard wrote: > The move left/right arrows must be at the left, because when we are > changing doc from code to form. > the arrow place position depend of the presence of right property panel. > > I think the tabs need to have all the same size if the close button is > used. It ca be the size of the longest one. so when clicking on the > close button colosing can be done recursively without moving the > mouse. > > One thing funny can be a resisign on the first tab closed with a timer > of 2 or 3 sec. so durring this time all the tabs at the right of the > current tab have the same size than the current tab. And retreive > theire size after the Last click + delay. > I don't understand your first one but agree with the second. Two more though. 3) You cannot set accelerator keys for TabPanel tab titles like you can for TabStrips 4) Mousewheel scrolling through TabPanel tabs only works when the TabPanel itself has the focus. (TabStrip scrolling happens when the mouse is over the tabstrip tab area, i.e. it doesn't need to have focus. This is really handy.) Bruce From willy at ...2734... Sun Jan 19 00:00:13 2014 From: willy at ...2734... (Willy Raets) Date: Sun, 19 Jan 2014 00:00:13 +0100 Subject: [Gambas-user] Printing text vertically (using printing or gb.report) In-Reply-To: References: <1389690291.3402.18.camel@...3024...> <1389864628.2332.11.camel@...3024...> <52D7A9E2.4090601@...221...> <1389866149.2332.17.camel@...3024...> <52D7B4E2.6080207@...221...> <1389873024.2383.16.camel@...3024...> Message-ID: <1390086013.3564.1.camel@...3024...> On Fri, 2014-01-17 at 21:50 +0100, Fabien Bodard wrote: > 2014/1/16 Willy Raets : > > > > I added some screenshots of how it is implemented at the moment in MS > > Access. As you can see the report designer of MS Access allows for > > labels to be placed vertically on the design (there is a property named > > vertical for textlabels that can be set to yes, it is as simple as > > that). > > > > The second screenshot is a print preview and that is the result I would > > need. As you can see the layout of the Dymo Address Label is portrait, > > the text is printed vertical on the Address Label. > > > > As I am porting this application to Gambas, I need to figure out how > > this can be done in Gambas, as the Dymo Label Writer doesn't have any > > other options to print this. > > > > gb.report doesn't seem to have this possibility and neither does using > > the printer object. Or maybe they can but I haven't discovered it yet. > > > >> > >> > > >> >> > >> >> myPrinter.Orientation = Printer.Landscape > >> >> > >> > > >> > This suggestion sets me to think. The Dymo labels are in portrait in the > >> > Dymo label printer. So making a landscape label on a pdf surface and > >> > next print this in landscape (so actually giving the landscape design a > >> > twist to being printed in portrait) could do the job. I'am going to give > >> > this a try as soon as I am at work. > >> > >> Yes, sometimes things can be tricky :-) > > > > I do think I will try with gb.cairo to see what I can come up with, just > > curious if that would work. But having this option in gb.report would of > > course be much easier :) > > it is in the code of report but it seem i have a bug with path > extents. and the editor don't show the rotation. > > i will correct that. > That would be great. Thanks -- Kind regards, Willy (aka gbWilly) http://gambasshowcase.org/ http://howtogambas.org http://gambos.org From gambas at ...1... Sun Jan 19 02:56:39 2014 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Sun, 19 Jan 2014 02:56:39 +0100 Subject: [Gambas-user] TabPanel Edition In-Reply-To: References: Message-ID: <52DB30D7.1010807@...1...> Le 18/01/2014 17:21, Fabien Bodard a ?crit : > Is it normal that changing the count property in the property windows > don't change the edited tabpanel in the form editor ? > Yes, I don't see the problem there. -- Beno?t Minisini From bbruen at ...2308... Sun Jan 19 03:23:42 2014 From: bbruen at ...2308... (Bruce) Date: Sun, 19 Jan 2014 12:53:42 +1030 Subject: [Gambas-user] EXPORT OPTIONAL Message-ID: <1390098222.30151.8.camel@...2688...> I have just noticed that I can specify EXPORT OPTIONAL at the top of a component class. I understand what it does, but just wanted to ask what is the advantage of specifying that? regards Bruce From bbruen at ...2308... Sun Jan 19 04:20:40 2014 From: bbruen at ...2308... (Bruce) Date: Sun, 19 Jan 2014 13:50:40 +1030 Subject: [Gambas-user] include/exclude lists for executables, source archives and (autotools) packages Message-ID: <1390101640.30151.49.camel@...2688...> Some comments and questions and requests. 1) the gambasdoc "Project Directory Structure" page ( http://gambasdoc.org/help/doc/project_structure?v3 ) says that a) "Other files and directories" i.e. the Data folder are not included in the executable. Surely this cannot be right? b) "[.hidden] stuff are not included in the executables. Inadvertently, a few weeks ago I created a symbolic link in the Data folder of a utility project to a file in the hidden folder. This project is (so far) only on my PC. What I am wondering is did the archiver include the symbolic link or did it snap it? 2) On the packaging tab of the Preferences popup, there is that list of files that are ignored when creating source archives. I have never really paid too much attention to it but now I am wondering what the entries in this list mean. We have a long list of "documentation" and modelling files in .hidden that are very often temporary in nature and can be very large. Is there a way to exclude entire directories from the archives? For example, we have a Modellio workspace in .hidden/Design/ that could and usually does contain a bunch of subdirs of metadata built by the Modellio tool with stuff in them that does not need to be archived as it is rebuilt everytime the Modellio tool is loaded. I would like to exclude these specific paths from archives (they are dozens of Mbytes) Another example is our code generators leave a lot of "temporary" metadata files and sqlite files here and there in .hidden. These are useful to keep in the live copy as we frequently dive in and out of the tools. But when the project is archived these files are all generally rendered useless. Again I'd just like to exclude these files from the archives. Why do I want to keep all this stuff inside the project? Even with a team of three and two "major" products to support, we created a documentation nightmare. The projects are on a shared network drive, the documentation and models were wherever and there were multiple copies and variants of everything. It has taken us almost two months to clean up the horse auctions docos and move it all into the gambas project directories. This is a "good" thing. But at the moment we are creating source archives that are approaching the limits of a DVD and need to slim them down. We are docing this manually at the moment and that is NOT a good thing. If there is not a way to exclude specific paths then fine, we will have to come up with an answer here. 3) Packages and I am only talking about autotool packing here again. I thought somewhere there was a way to exclude and include specific directories in the package archives. By "somewhere" I mean that I am not sure whether it was in Gambas or in something I wrote myself back in the Gambas2 days or even somewhere else, so this is really a "please help if you can" request. Given the above, there is a lot of stuff we are now keeping in the .hidden directory that should or should not go in the package. Can you think of a way I could achieve this? Paddys-Hill is (hopefully) going to expand shortly with, for us, a very large project. It is a bespoke development but the customer seems quite happy to have it released under GPL (as long as they get what they want). I am currently in a bit of a panic as I haven't had to cope with a team of 15'ish for some years, hence these and no doubt other weird questions that will arise shortly. Thanks in advance for any input you can provide. best regards Bruce From kevinfishburne at ...1887... Sun Jan 19 04:59:02 2014 From: kevinfishburne at ...1887... (Kevin Fishburne) Date: Sat, 18 Jan 2014 22:59:02 -0500 Subject: [Gambas-user] how to delete all traces of Gambas? In-Reply-To: References: <52D5F36A.30801@...1887...> <52D5FE4E.5050800@...1...> <52D619D5.2030409@...1887...> <52D6A425.8080007@...1...> <52D7682E.4030405@...1887...> <52D851BC.7010802@...1...> <52D8580F.3060001@...1...> <52D9FC73.4070400@...1887...> <52DA0C6C.40709@...1887...> Message-ID: <52DB4D86.1000309@...1887...> On 01/18/2014 07:33 AM, Jussi Lahtinen wrote: > These should do it: > > 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 > sudo rm -f /usr/local/bin/gambas3 > sudo rm -f /usr/local/bin/gambas3.gambas > > sudo rm -f /usr/bin/gbx3 /usr/bin/gbc3 /usr/bin/gba3 /usr/bin/gbi3 > sudo rm -rf /usr/lib/gambas3 > sudo rm -rf /usr/share/gambas3 > sudo rm -f /usr/bin/gambas3 > sudo rm -f /usr/bin/gambas3.gambas Awesome, that works great. Thanks everyone. I'd lost my old Gambas installation script, so I've attached my new one. It still requires that all the dependency packages be installed...it just does the download and compiling and uses the svn -r parameter to specify a revision. -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sales at ...1887... phone: (770) 853-6271 -------------- next part -------------- # Gambas installation script, tested on Kubuntu 13.10. # Still requires the installation of packages such as Gambas dependencies, subversion, etc. # Delete old Gambas. 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 sudo rm -f /usr/local/bin/gambas3 sudo rm -f /usr/local/bin/gambas3.gambas sudo rm -f /usr/bin/gbx3 /usr/bin/gbc3 /usr/bin/gba3 /usr/bin/gbi3 sudo rm -rf /usr/lib/gambas3 sudo rm -rf /usr/share/gambas3 sudo rm -f /usr/bin/gambas3 sudo rm -f /usr/bin/gambas3.gambas # Download specified revision of Gambas. mkdir gb3 cd gb3 rm -fr trunk svn checkout -r 5750 svn://svn.code.sf.net/p/gambas/code/gambas/trunk cd trunk # Configure Gambas. ./reconf-all ./configure -C # Compile Gambas. make # Install Gambas. sudo make install cd .. cd .. # Run Gambas. gambas3 From gambas.fr at ...626... Sun Jan 19 07:55:17 2014 From: gambas.fr at ...626... (Fabien Bodard) Date: Sun, 19 Jan 2014 07:55:17 +0100 Subject: [Gambas-user] TabPanel Edition In-Reply-To: <52DB30D7.1010807@...1...> References: <52DB30D7.1010807@...1...> Message-ID: I mean the numbers of shown tabs don't change so i can't edit theire content. 2014/1/19 Beno?t Minisini : > Le 18/01/2014 17:21, Fabien Bodard a ?crit : >> Is it normal that changing the count property in the property windows >> don't change the edited tabpanel in the form editor ? >> > > Yes, I don't see the problem there. > > -- > Beno?t Minisini > > ------------------------------------------------------------------------------ > CenturyLink Cloud: The Leader in Enterprise Cloud Services. > Learn Why More Businesses Are Choosing CenturyLink Cloud For > Critical Workloads, Development Environments & Everything In Between. > Get a Quote or Start a Free Trial Today. > http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -- Fabien Bodard From kevinfishburne at ...1887... Sun Jan 19 09:11:46 2014 From: kevinfishburne at ...1887... (Kevin Fishburne) Date: Sun, 19 Jan 2014 03:11:46 -0500 Subject: [Gambas-user] sdl Draw event overhead is killing frame rate In-Reply-To: <52D9FC73.4070400@...1887...> References: <52D5F36A.30801@...1887...> <52D5FE4E.5050800@...1...> <52D619D5.2030409@...1887...> <52D6A425.8080007@...1...> <52D7682E.4030405@...1887...> <52D851BC.7010802@...1...> <52D8580F.3060001@...1...> <52D9FC73.4070400@...1887...> Message-ID: <52DB88C2.3030203@...1887...> On 01/17/2014 11:00 PM, Kevin Fishburne wrote: > On 01/16/2014 05:07 PM, Beno?t Minisini wrote: >> Le 16/01/2014 22:40, Beno?t Minisini a ?crit : >>> Le 16/01/2014 06:03, Kevin Fishburne a ?crit : >>>> The results are in, and they don't tell me much. :( I attached the >>>> updated test project, which includes the test results in comments at the >>>> top. They are: >>>> >>>> ' No Stop Event | No Geometry | Binary NVIDIA driver | 236 FPS >>>> ' Stop Event | No Geometry | Binary NVIDIA driver | 158 FPS >>>> ' No Stop Event | No Geometry | Nouveau driver | 238 FPS >>>> ' Stop Event | No Geometry | Nouveau driver | 159 FPS >>>> ' No Stop Event | Geometry | Binary NVIDIA driver | 236 FPS >>>> ' Stop Event | Geometry | Binary NVIDIA driver | 155 FPS >>>> ' No Stop Event | Geometry | Nouveau driver | 218 FPS >>>> ' Stop Event | Geometry | Nouveau driver | 161 FPS >>>> >>>> Adding "Stop Event" reduces thread CPU usage from 100% to 84%. The frame >>>> rate is consistently lower when using Stop Event. That 16% difference in >>>> CPU also doesn't seem to correlate with the difference in frame rates, >>>> as the frame rate difference has a significantly larger discrepancy. >>>> Factors unknown to me could be contributing to that of course... >>> It's actually simple: when 'Stop Event' is used, the process is paused >>> during a little delay (about 10 ms according to the SDL_Delay function >>> documentation). So it acts as a frame rate limitation. >>> >>> If you don't use 'Stop Event', there is no such delay. But you get in >>> both cases a call to the Gambas event loop with a 10 ms timeout (yes, 10 >>> ms again. This is usually the smallest delay a Linux Kernel can handle). >>> That means if there is no Gambas event to process, the process is paused >>> during 10 ms. If there is a Gambas event to process, there is no pause. >>> >>> I will try to remove all this delays, and you will tell me if it helps you. >>> >> Please test revision #6085, and tell me if it changes anything in your >> framerate. >> >> I removed the delay if Stop Event is called, and I lower the timeout of >> the Gambas event loop call to 1 ms instead of 10 ms, which force Gambas >> to use a busy loop instead of sleeping the process. >> > The FPS are the same when not calling Stop Event, but are now faster > when calling Stop Event. Either way they still max out between 230-240 FPS. > > I set up a VM so I can compile specific revisions of Gambas and will see > if older versions exhibit different behavior. I'll let you know what I > find, and hopefully will be able to narrow it down to a specific > revision. If I can't do anything to get a higher frame rate on an empty > SDL loop then something's gone horribly wrong on my end. > Here are the results of my test ("---" means similar to the results below): -=- Revision Version Status FPS FPS 1280x720 Minimized 5938 3.5.90 Bad --- --- 5937 3.5.90 Bad 160 187 5936 3.5.90 Good --- --- 5931 3.5 Good --- --- 5923 3.5 Good --- --- 5907 3.5 Good --- --- 5875 3.5 Good 530 2595 5750 3.4.90 Good 490 2405 5500 3.4 Good 488 2545 -=- It seems the change slowing the SDL Draw event (or whatever is happening) appeared in revision 5937 and later, with the change absent in 5936 and earlier. What's interesting is that the SDL window being minimized in 5936 or earlier greatly increases the frame rate, though it makes no difference in later revisions. Regardless, the FPS in 5936 and earlier are significantly higher than those of revisions 5937 and newer with both empty and populated Draw event procedures. That would effect any program using SDL to create/manage a window. -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sales at ...1887... phone: (770) 853-6271 From gambas at ...2524... Sun Jan 19 11:21:10 2014 From: gambas at ...2524... (gambas at ...2524...) Date: Sun, 19 Jan 2014 10:21:10 +0000 Subject: [Gambas-user] Issue 501 in gambas: IDE does only run code when started from console as superuser In-Reply-To: <3-6813199134517018827-10002323997835936341-gambas=googlecode.com@...2524...> References: <3-6813199134517018827-10002323997835936341-gambas=googlecode.com@...2524...> <0-6813199134517018827-10002323997835936341-gambas=googlecode.com@...2524...> Message-ID: <4-6813199134517018827-10002323997835936341-gambas=googlecode.com@...2524...> Comment #4 on issue 501 by xpistian... at ...626...: IDE does only run code when started from console as superuser http://code.google.com/p/gambas/issues/detail?id=501 Resolved by compiling from stable branch of SVN instead of download from website. Maybe some files were corrupted? Sorry for bothering you people. -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From gambas.fr at ...626... Sun Jan 19 14:13:36 2014 From: gambas.fr at ...626... (Fabien Bodard) Date: Sun, 19 Jan 2014 14:13:36 +0100 Subject: [Gambas-user] Two suggestions about TabPanel + 2 more In-Reply-To: <1390082511.30151.6.camel@...2688...> References: <1390082511.30151.6.camel@...2688...> Message-ID: 2014/1/18 Bruce : > On Sat, 2014-01-18 at 17:19 +0100, Fabien Bodard wrote: >> The move left/right arrows must be at the left, because when we are >> changing doc from code to form. >> the arrow place position depend of the presence of right property panel. >> >> I think the tabs need to have all the same size if the close button is >> used. It ca be the size of the longest one. so when clicking on the >> close button colosing can be done recursively without moving the >> mouse. >> >> One thing funny can be a resisign on the first tab closed with a timer >> of 2 or 3 sec. so durring this time all the tabs at the right of the >> current tab have the same size than the current tab. And retreive >> theire size after the Last click + delay. >> > > I don't understand your first one but agree with the second. It is simply that : When the space to show all the tabs is too short, then an arrow is shown at the right of the tabstrip and more or less on the left when you are not on the first tab. The problem come when you use the right arrow to change tabs, is you are changing from editor to form editor, the side panel appear and the width of the tabpanel change, so the mouse then isn't stay on the button ... or better, the button isn't stay under the mouse. So to scroll trough all the tab you have to move the mouse many times... and i think it's not a good experience for me. > Two more though. > > 3) You cannot set accelerator keys for TabPanel tab titles like you can > for TabStrips > > 4) Mousewheel scrolling through TabPanel tabs only works when the > TabPanel itself has the focus. (TabStrip scrolling happens when the > mouse is over the tabstrip tab area, i.e. it doesn't need to have focus. > This is really handy.) > > Bruce > > > ------------------------------------------------------------------------------ > CenturyLink Cloud: The Leader in Enterprise Cloud Services. > Learn Why More Businesses Are Choosing CenturyLink Cloud For > Critical Workloads, Development Environments & Everything In Between. > Get a Quote or Start a Free Trial Today. > http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk > _______________________________________________ > 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... Sun Jan 19 14:25:34 2014 From: gambas.fr at ...626... (Fabien Bodard) Date: Sun, 19 Jan 2014 14:25:34 +0100 Subject: [Gambas-user] EXPORT OPTIONAL In-Reply-To: <1390098222.30151.8.camel@...2688...> References: <1390098222.30151.8.camel@...2688...> Message-ID: For example if you have a class that use a componant like gb.gui for some use ... but that can work without ... but you need absolutly the align const for example. You can define an Align Class that is loaded only when there is not other existing. 2014/1/19 Bruce : > I have just noticed that I can specify EXPORT OPTIONAL at the top of a > component class. I understand what it does, but just wanted to ask what > is the advantage of specifying that? > > regards > Bruce > > > ------------------------------------------------------------------------------ > CenturyLink Cloud: The Leader in Enterprise Cloud Services. > Learn Why More Businesses Are Choosing CenturyLink Cloud For > Critical Workloads, Development Environments & Everything In Between. > Get a Quote or Start a Free Trial Today. > http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk > _______________________________________________ > 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... Sun Jan 19 14:33:24 2014 From: gambas.fr at ...626... (Fabien Bodard) Date: Sun, 19 Jan 2014 14:33:24 +0100 Subject: [Gambas-user] Report label rotate Message-ID: Does the value need to be in Degre or Radian ? For me european ... degre is beter ... but what is the standard ? -- Fabien Bodard From jussi.lahtinen at ...626... Sun Jan 19 15:03:30 2014 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Sun, 19 Jan 2014 16:03:30 +0200 Subject: [Gambas-user] how to delete all traces of Gambas? In-Reply-To: <52DB4D86.1000309@...1887...> References: <52D5F36A.30801@...1887...> <52D5FE4E.5050800@...1...> <52D619D5.2030409@...1887...> <52D6A425.8080007@...1...> <52D7682E.4030405@...1887...> <52D851BC.7010802@...1...> <52D8580F.3060001@...1...> <52D9FC73.4070400@...1887...> <52DA0C6C.40709@...1887...> <52DB4D86.1000309@...1887...> Message-ID: You don't have to edit the script for every revision if you make this little change: svn checkout -r 5750 svn://svn.code.sf.net/p/gambas/code/gambas/trunk ---> svn checkout -r $1 svn://svn.code.sf.net/p/gambas/code/gambas/trunk Then run your script example like this: installgb3 5750 Jussi On Sun, Jan 19, 2014 at 5:59 AM, Kevin Fishburne < kevinfishburne at ...1887...> wrote: > On 01/18/2014 07:33 AM, Jussi Lahtinen wrote: > >> These should do it: >> >> 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 >> sudo rm -f /usr/local/bin/gambas3 >> sudo rm -f /usr/local/bin/gambas3.gambas >> >> sudo rm -f /usr/bin/gbx3 /usr/bin/gbc3 /usr/bin/gba3 /usr/bin/gbi3 >> sudo rm -rf /usr/lib/gambas3 >> sudo rm -rf /usr/share/gambas3 >> sudo rm -f /usr/bin/gambas3 >> sudo rm -f /usr/bin/gambas3.gambas >> > > Awesome, that works great. Thanks everyone. I'd lost my old Gambas > installation script, so I've attached my new one. It still requires that > all the dependency packages be installed...it just does the download and > compiling and uses the svn -r parameter to specify a revision. > > > -- > Kevin Fishburne > Eight Virtues > www: http://sales.eightvirtues.com > e-mail: sales at ...1887... > phone: (770) 853-6271 > > > > ------------------------------------------------------------------------------ > CenturyLink Cloud: The Leader in Enterprise Cloud Services. > Learn Why More Businesses Are Choosing CenturyLink Cloud For > Critical Workloads, Development Environments & Everything In Between. > Get a Quote or Start a Free Trial Today. > > http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > From jussi.lahtinen at ...626... Sun Jan 19 15:09:29 2014 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Sun, 19 Jan 2014 16:09:29 +0200 Subject: [Gambas-user] Report label rotate In-Reply-To: References: Message-ID: Radian is SI unit and so I would prefer it. Jussi On Sun, Jan 19, 2014 at 3:33 PM, Fabien Bodard wrote: > Does the value need to be in Degre or Radian ? > > For me european ... degre is beter ... but what is the standard ? > > -- > Fabien Bodard > > > ------------------------------------------------------------------------------ > CenturyLink Cloud: The Leader in Enterprise Cloud Services. > Learn Why More Businesses Are Choosing CenturyLink Cloud For > Critical Workloads, Development Environments & Everything In Between. > Get a Quote or Start a Free Trial Today. > > http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Sun Jan 19 16:01:29 2014 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Sun, 19 Jan 2014 16:01:29 +0100 Subject: [Gambas-user] include/exclude lists for executables, source archives and (autotools) packages In-Reply-To: <1390101640.30151.49.camel@...2688...> References: <1390101640.30151.49.camel@...2688...> Message-ID: <52DBE8C9.5090405@...1...> Le 19/01/2014 04:20, Bruce a ?crit : > Some comments and questions and requests. > > 1) the gambasdoc "Project Directory Structure" page > ( http://gambasdoc.org/help/doc/project_structure?v3 ) says that > a) "Other files and directories" i.e. the Data folder are not included > in the executable. Surely this cannot be right? It is not. They are included of course. > b) "[.hidden] stuff are not included in the executables. Inadvertently, > a few weeks ago I created a symbolic link in the Data folder of a > utility project to a file in the hidden folder. This project is (so far) > only on my PC. What I am wondering is did the archiver include the > symbolic link or did it snap it? The archiver cannot store symbolic links, so I think it will store a copy of the file. By doing that, you are killing the goal of the ".hidden" directory. > > 2) On the packaging tab of the Preferences popup, there is that list of > files that are ignored when creating source archives. I have never > really paid too much attention to it but now I am wondering what the > entries in this list mean. We have a long list of "documentation" and > modelling files in .hidden that are very often temporary in nature and > can be very large. Is there a way to exclude entire directories from the > archives? No, but everything in ".hidden" is not included in the archive, so I don't see the problem. > For example, we have a Modellio workspace in .hidden/Design/ that could > and usually does contain a bunch of subdirs of metadata built by the > Modellio tool with stuff in them that does not need to be archived as it > is rebuilt everytime the Modellio tool is loaded. I would like to > exclude these specific paths from archives (they are dozens of Mbytes) > > Another example is our code generators leave a lot of "temporary" > metadata files and sqlite files here and there in .hidden. These are > useful to keep in the live copy as we frequently dive in and out of the > tools. But when the project is archived these files are all generally > rendered useless. Again I'd just like to exclude these files from the > archives. > > Why do I want to keep all this stuff inside the project? Even with a > team of three and two "major" products to support, we created a > documentation nightmare. The projects are on a shared network drive, the > documentation and models were wherever and there were multiple copies > and variants of everything. It has taken us almost two months to clean > up the horse auctions docos and move it all into the gambas project > directories. This is a "good" thing. But at the moment we are creating > source archives that are approaching the limits of a DVD and need to > slim them down. We are docing this manually at the moment and that is > NOT a good thing. > > If there is not a way to exclude specific paths then fine, we will have > to come up with an answer here. > > 3) Packages and I am only talking about autotool packing here again. > I thought somewhere there was a way to exclude and include specific > directories in the package archives. By "somewhere" I mean that I am > not sure whether it was in Gambas or in something I wrote myself back in > the Gambas2 days or even somewhere else, so this is really a "please > help if you can" request. Given the above, there is a lot of stuff we > are now keeping in the .hidden directory that should or should not go in > the package. Can you think of a way I could achieve this? > > Paddys-Hill is (hopefully) going to expand shortly with, for us, a very > large project. It is a bespoke development but the customer seems quite > happy to have it released under GPL (as long as they get what they > want). I am currently in a bit of a panic as I haven't had to cope with > a team of 15'ish for some years, hence these and no doubt other weird > questions that will arise shortly. > > Thanks in advance for any input you can provide. > > best regards > Bruce > Project files that won't go into the executable must be stored in the Project (i.e. '.hidden') directory. Project files that will go into the executable are stored in the Data directory (every other non-hidden directories). ...except the files matching the patterns referenced in the Preferences dialog. Regards, -- Beno?t Minisini From gambas.fr at ...626... Sun Jan 19 16:01:47 2014 From: gambas.fr at ...626... (Fabien Bodard) Date: Sun, 19 Jan 2014 16:01:47 +0100 Subject: [Gambas-user] Report label rotate In-Reply-To: References: Message-ID: you say radian is what ?... unit 2014/1/19 Jussi Lahtinen : > Radian is SI unit and so I would prefer it. > > Jussi > > > On Sun, Jan 19, 2014 at 3:33 PM, Fabien Bodard wrote: > >> Does the value need to be in Degre or Radian ? >> >> For me european ... degre is beter ... but what is the standard ? >> >> -- >> Fabien Bodard >> >> >> ------------------------------------------------------------------------------ >> CenturyLink Cloud: The Leader in Enterprise Cloud Services. >> Learn Why More Businesses Are Choosing CenturyLink Cloud For >> Critical Workloads, Development Environments & Everything In Between. >> Get a Quote or Start a Free Trial Today. >> >> http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > ------------------------------------------------------------------------------ > CenturyLink Cloud: The Leader in Enterprise Cloud Services. > Learn Why More Businesses Are Choosing CenturyLink Cloud For > Critical Workloads, Development Environments & Everything In Between. > Get a Quote or Start a Free Trial Today. > http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -- Fabien Bodard From gambas at ...2524... Sun Jan 19 16:08:24 2014 From: gambas at ...2524... (gambas at ...2524...) Date: Sun, 19 Jan 2014 15:08:24 +0000 Subject: [Gambas-user] Issue 501 in gambas: IDE does only run code when started from console as superuser In-Reply-To: <4-6813199134517018827-10002323997835936341-gambas=googlecode.com@...2524...> References: <4-6813199134517018827-10002323997835936341-gambas=googlecode.com@...2524...> <0-6813199134517018827-10002323997835936341-gambas=googlecode.com@...2524...> Message-ID: <5-6813199134517018827-10002323997835936341-gambas=googlecode.com@...2524...> Updates: Status: WontFix Comment #5 on issue 501 by benoit.m... at ...626...: IDE does only run code when started from console as superuser http://code.google.com/p/gambas/issues/detail?id=501 I don't think so, as apparently you are the only one having a problem. Note that your output.txt must be generated from scratch (i.e. issue a 'make clean' before), otherwise it won't include the output of the compilation process. And that you get an error on the 'libLLVM-3.1.so' file, so I guess there is a problem with LLVM on your system. -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From jussi.lahtinen at ...626... Sun Jan 19 16:19:14 2014 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Sun, 19 Jan 2014 17:19:14 +0200 Subject: [Gambas-user] Report label rotate In-Reply-To: References: Message-ID: http://en.wikipedia.org/wiki/International_System_of_Units It's originating from France. Jussi On Sun, Jan 19, 2014 at 5:01 PM, Fabien Bodard wrote: > you say radian is what ?... unit > > 2014/1/19 Jussi Lahtinen : > > Radian is SI unit and so I would prefer it. > > > > Jussi > > > > > > On Sun, Jan 19, 2014 at 3:33 PM, Fabien Bodard > wrote: > > > >> Does the value need to be in Degre or Radian ? > >> > >> For me european ... degre is beter ... but what is the standard ? > >> > >> -- > >> Fabien Bodard > >> > >> > >> > ------------------------------------------------------------------------------ > >> CenturyLink Cloud: The Leader in Enterprise Cloud Services. > >> Learn Why More Businesses Are Choosing CenturyLink Cloud For > >> Critical Workloads, Development Environments & Everything In Between. > >> Get a Quote or Start a Free Trial Today. > >> > >> > http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk > >> _______________________________________________ > >> Gambas-user mailing list > >> Gambas-user at lists.sourceforge.net > >> https://lists.sourceforge.net/lists/listinfo/gambas-user > >> > > > ------------------------------------------------------------------------------ > > CenturyLink Cloud: The Leader in Enterprise Cloud Services. > > Learn Why More Businesses Are Choosing CenturyLink Cloud For > > Critical Workloads, Development Environments & Everything In Between. > > Get a Quote or Start a Free Trial Today. > > > http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > -- > Fabien Bodard > > > ------------------------------------------------------------------------------ > CenturyLink Cloud: The Leader in Enterprise Cloud Services. > Learn Why More Businesses Are Choosing CenturyLink Cloud For > Critical Workloads, Development Environments & Everything In Between. > Get a Quote or Start a Free Trial Today. > > http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Sun Jan 19 16:36:17 2014 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Sun, 19 Jan 2014 16:36:17 +0100 Subject: [Gambas-user] sdl Draw event overhead is killing frame rate In-Reply-To: <52DB88C2.3030203@...1887...> References: <52D5F36A.30801@...1887...> <52D5FE4E.5050800@...1...> <52D619D5.2030409@...1887...> <52D6A425.8080007@...1...> <52D7682E.4030405@...1887...> <52D851BC.7010802@...1...> <52D8580F.3060001@...1...> <52D9FC73.4070400@...1887...> <52DB88C2.3030203@...1887...> Message-ID: <52DBF0F1.90106@...1...> Le 19/01/2014 09:11, Kevin Fishburne a ?crit : > On 01/17/2014 11:00 PM, Kevin Fishburne wrote: >> On 01/16/2014 05:07 PM, Beno?t Minisini wrote: >>> Le 16/01/2014 22:40, Beno?t Minisini a ?crit : >>>> Le 16/01/2014 06:03, Kevin Fishburne a ?crit : >>>>> The results are in, and they don't tell me much. :( I attached the >>>>> updated test project, which includes the test results in comments at the >>>>> top. They are: >>>>> >>>>> ' No Stop Event | No Geometry | Binary NVIDIA driver | 236 FPS >>>>> ' Stop Event | No Geometry | Binary NVIDIA driver | 158 FPS >>>>> ' No Stop Event | No Geometry | Nouveau driver | 238 FPS >>>>> ' Stop Event | No Geometry | Nouveau driver | 159 FPS >>>>> ' No Stop Event | Geometry | Binary NVIDIA driver | 236 FPS >>>>> ' Stop Event | Geometry | Binary NVIDIA driver | 155 FPS >>>>> ' No Stop Event | Geometry | Nouveau driver | 218 FPS >>>>> ' Stop Event | Geometry | Nouveau driver | 161 FPS >>>>> >>>>> Adding "Stop Event" reduces thread CPU usage from 100% to 84%. The frame >>>>> rate is consistently lower when using Stop Event. That 16% difference in >>>>> CPU also doesn't seem to correlate with the difference in frame rates, >>>>> as the frame rate difference has a significantly larger discrepancy. >>>>> Factors unknown to me could be contributing to that of course... >>>> It's actually simple: when 'Stop Event' is used, the process is paused >>>> during a little delay (about 10 ms according to the SDL_Delay function >>>> documentation). So it acts as a frame rate limitation. >>>> >>>> If you don't use 'Stop Event', there is no such delay. But you get in >>>> both cases a call to the Gambas event loop with a 10 ms timeout (yes, 10 >>>> ms again. This is usually the smallest delay a Linux Kernel can handle). >>>> That means if there is no Gambas event to process, the process is paused >>>> during 10 ms. If there is a Gambas event to process, there is no pause. >>>> >>>> I will try to remove all this delays, and you will tell me if it helps you. >>>> >>> Please test revision #6085, and tell me if it changes anything in your >>> framerate. >>> >>> I removed the delay if Stop Event is called, and I lower the timeout of >>> the Gambas event loop call to 1 ms instead of 10 ms, which force Gambas >>> to use a busy loop instead of sleeping the process. >>> >> The FPS are the same when not calling Stop Event, but are now faster >> when calling Stop Event. Either way they still max out between 230-240 FPS. >> >> I set up a VM so I can compile specific revisions of Gambas and will see >> if older versions exhibit different behavior. I'll let you know what I >> find, and hopefully will be able to narrow it down to a specific >> revision. If I can't do anything to get a higher frame rate on an empty >> SDL loop then something's gone horribly wrong on my end. >> > Here are the results of my test ("---" means similar to the results below): > > -=- > > Revision Version Status FPS FPS > 1280x720 Minimized > > 5938 3.5.90 Bad --- --- > 5937 3.5.90 Bad 160 187 > 5936 3.5.90 Good --- --- > 5931 3.5 Good --- --- > 5923 3.5 Good --- --- > 5907 3.5 Good --- --- > 5875 3.5 Good 530 2595 > 5750 3.4.90 Good 490 2405 > 5500 3.4 Good 488 2545 > > -=- > > It seems the change slowing the SDL Draw event (or whatever is > happening) appeared in revision 5937 and later, with the change absent > in 5936 and earlier. > > What's interesting is that the SDL window being minimized in 5936 or > earlier greatly increases the frame rate, though it makes no difference > in later revisions. Regardless, the FPS in 5936 and earlier are > significantly higher than those of revisions 5937 and newer with both > empty and populated Draw event procedures. That would effect any program > using SDL to create/manage a window. > It's weird, as the only thing that has changed in the replacement of the default SDL font. Up to r5936 it was a TTF font, and I replaced it by a bitmap font I have made. If you don't print text, how can that change the global framerate? -- Beno?t Minisini From gambas at ...2524... Sun Jan 19 16:39:57 2014 From: gambas at ...2524... (gambas at ...2524...) Date: Sun, 19 Jan 2014 15:39:57 +0000 Subject: [Gambas-user] Issue 501 in gambas: IDE does only run code when started from console as superuser In-Reply-To: <5-6813199134517018827-10002323997835936341-gambas=googlecode.com@...2524...> References: <5-6813199134517018827-10002323997835936341-gambas=googlecode.com@...2524...> <0-6813199134517018827-10002323997835936341-gambas=googlecode.com@...2524...> Message-ID: <6-6813199134517018827-10002323997835936341-gambas=googlecode.com@...2524...> Comment #6 on issue 501 by xpistian... at ...626...: IDE does only run code when started from console as superuser http://code.google.com/p/gambas/issues/detail?id=501 What I meant was that the file was downloaded incorrectly, not that the package per se was corrupted. Thanks for having a look, though. -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From gambas.fr at ...626... Sun Jan 19 17:39:21 2014 From: gambas.fr at ...626... (Fabien Bodard) Date: Sun, 19 Jan 2014 17:39:21 +0100 Subject: [Gambas-user] Report label rotate In-Reply-To: References: Message-ID: 2014/1/19 Jussi Lahtinen : > http://en.wikipedia.org/wiki/International_System_of_Units > It's originating from France. > > Jussi Yes but the current up to date units is Grade ... well it is used only from a few time in the French projection. 360 deg = 2PI Rad = 400 gon Ok i set up in Rad From jussi.lahtinen at ...626... Sun Jan 19 17:52:59 2014 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Sun, 19 Jan 2014 18:52:59 +0200 Subject: [Gambas-user] Report label rotate In-Reply-To: References: Message-ID: > Yes but the current up to date units is Grade Opposite. Grade (now gon) was old unit in French metric system, but it was never international (SI) unit (which is largely same old metric system). Jussi From gambas at ...1... Sun Jan 19 23:09:20 2014 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Sun, 19 Jan 2014 23:09:20 +0100 Subject: [Gambas-user] Two suggestions about TabPanel In-Reply-To: References: Message-ID: <52DC4D10.9070105@...1...> Le 18/01/2014 17:19, Fabien Bodard a ?crit : > The move left/right arrows must be at the left, because when we are > changing doc from code to form. > the arrow place position depend of the presence of right property panel. > > I think the tabs need to have all the same size if the close button is > used. It ca be the size of the longest one. so when clicking on the > close button colosing can be done recursively without moving the > mouse. I don't like that : which common size should be used? I prefer seeing all tab titles. -- Beno?t Minisini From gambas at ...1... Sun Jan 19 23:13:23 2014 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Sun, 19 Jan 2014 23:13:23 +0100 Subject: [Gambas-user] Two suggestions about TabPanel + 2 more In-Reply-To: <1390082511.30151.6.camel@...2688...> References: <1390082511.30151.6.camel@...2688...> Message-ID: <52DC4E03.8070203@...1...> Le 18/01/2014 23:01, Bruce a ?crit : > > 3) You cannot set accelerator keys for TabPanel tab titles like you can > for TabStrips I'm afraid it is not easy to implement... > > 4) Mousewheel scrolling through TabPanel tabs only works when the > TabPanel itself has the focus. (TabStrip scrolling happens when the > mouse is over the tabstrip tab area, i.e. it doesn't need to have focus. > This is really handy.) I don't understand: it works perfectly there, with gb.qt4, gb.gtk or gb.gtk3. -- Beno?t Minisini From gambas at ...1... Sun Jan 19 23:16:07 2014 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Sun, 19 Jan 2014 23:16:07 +0100 Subject: [Gambas-user] Matrices byref In-Reply-To: References: Message-ID: <52DC4EA7.5090607@...1...> Le 17/01/2014 00:15, martin p cristia a ?crit : > I need this global matrix: > > Public MatRigGlo[12, 12] As Float > > that in some cases it needs to be [3,3] or [6,6] > I pass that matrix to a C library: > > Public Extern M8simetrizarSQ(matriz As Float[], lOrden As Long) > > and the call is > > M8simetrizarSQ(MatRigGlo, 12) > > wich works perfectly. But its ineficient because if matrix is 3x3, the > routine still need to process it like 12x12, and that matrix it's filled > like 1M times. Will it work like this? > > Public Mat3[3,3] as Float > Public Mat12[12,12] as Float > Public MatRigGlo as Float[] > > ' Module > MatrigGlo = Mat3 > > and the use MatRigGlo like a 3x3 matrix? > wich other ways to do this? > > tnx > No, because Mat3 and Mat12 are not normal Float arrays, but embedded Float arrays. You must declare them that way: Public Mat3 As Float[3, 3] Public Mat12 As Float[12, 12] Or dynamically: Public MatRigGlo as Float[] MatRigGlo = New Float[iSize, iSize] Regards, -- Beno?t Minisini From gambas at ...1... Sun Jan 19 23:19:30 2014 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Sun, 19 Jan 2014 23:19:30 +0100 Subject: [Gambas-user] TableView Column.Width quick adjust? In-Reply-To: <52D3CA82.4090709@...221...> References: <52D3CA82.4090709@...221...> Message-ID: <52DC4F72.3060602@...1...> Le 13/01/2014 12:14, Rolf-Werner Eilert a ?crit : > When I want to adapt the Column.Width of all Columns in a TableView, > will I still have to build this into the Data event or iterate through > the whole thing, or is there meanwhile a quicker way to programmatically > start the fast adaptation (the one which I get when double-clicking on > the column header separators)? > > I ask because I haven't programmed tables for some time, and there might > be changes. (By the way, in the tooltip help of 1.5.2, most of the texts > end with dead links.) > > Thanks for your advice. > > Rolf > Set the column width to -1, and it will adjust its size to the first 1000 rows after the first visible row. -- Beno?t Minisini From bbruen at ...2308... Mon Jan 20 00:43:07 2014 From: bbruen at ...2308... (Bruce) Date: Mon, 20 Jan 2014 10:13:07 +1030 Subject: [Gambas-user] Two suggestions about TabPanel + 2 more In-Reply-To: <52DC4E03.8070203@...1...> References: <1390082511.30151.6.camel@...2688...> <52DC4E03.8070203@...1...> Message-ID: <1390174987.17182.12.camel@...2688...> On Sun, 2014-01-19 at 23:13 +0100, Beno?t Minisini wrote: > Le 18/01/2014 23:01, Bruce a ?crit : > > > > 3) You cannot set accelerator keys for TabPanel tab titles like you can > > for TabStrips > > I'm afraid it is not easy to implement... Oh well, never mind. (It was just an observation) > > > > > 4) Mousewheel scrolling through TabPanel tabs only works when the > > TabPanel itself has the focus. (TabStrip scrolling happens when the > > mouse is over the tabstrip tab area, i.e. it doesn't need to have focus. > > This is really handy.) > > I don't understand: it works perfectly there, with gb.qt4, gb.gtk or > gb.gtk3. > hmmm, You are right. Don't know why I thought it... ah wait a moment, it steals the focus whereas wheeling over the tabstrip doesn't. I have attached a (badly put together) example of this. 1. Go to the Bhab tab 2. Set focus on Textbox10 3. Use mousewheel to roll through the tabs and back to Bhab => focus is still on Textbox 10 4. Go to CHab tab 5. Set focus on the yellow text box. (This might explain a bit better: the Users focus is also on the yellow box, he want to scroll through the "sub" information on the Tabstrip2 tabstrip but still is maintaining the yellow box text. Using the mousewheel he can roll through the sub information pages without the cursor moving out of the yellow box.) 6 Go to the Dhab tab, here we have the tabpanel. 7. Set focus on the orange text box 8. Mouse wheel over the tabpanel => focus on the orange box is lost! regards B -------------- next part -------------- A non-text attachment was scrubbed... Name: 3LNav-0.0.1.tar.gz Type: application/x-compressed-tar Size: 5808 bytes Desc: not available URL: From gambas at ...1... Mon Jan 20 01:06:05 2014 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Mon, 20 Jan 2014 01:06:05 +0100 Subject: [Gambas-user] Error.Backtrace In-Reply-To: <52D8887D.4070202@...626...> References: <52D8593C.20001@...626...> <52D8672C.7050802@...1...> <52D8887D.4070202@...626...> Message-ID: <52DC686D.4070002@...1...> Le 17/01/2014 02:33, Ian Haywood a ?crit : > On 17/01/14 10:11, Beno?t Minisini wrote: >> Le 16/01/2014 23:12, Ian Haywood a ?crit : > >> For a TRY that does not call functions, it is not computed, so you get >> the previous stack backtrace. > not computing it is OK (as the combination of Error.Text and Error.Where > gives > us all the information anyway). The problem is leaving old data in > there, there is no way to detect this is bogus data and leads to many > hours trying to debug the wrong bit of code (our project has 200k SLOC > so we need to know where to look!) > Surely it wouldn't slow performance to set Error.Backtrace to NULL? > >> I admit it is actually a bit weird, but I don't understand why it is a >> problem. You should use TRY when you really don't care with the error. > Hmm, because Catch only operates at the level of a whole function we do use > TRY and test for errors a fair bit. > > Ian > Done in revision #6090: when the stack backtrace is not computed, the Error.Backtrace property is now always set to NULL. Regards, -- Beno?t Minisini From gambas at ...1... Mon Jan 20 01:15:28 2014 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Mon, 20 Jan 2014 01:15:28 +0100 Subject: [Gambas-user] multi document interface In-Reply-To: <1389689447.3402.5.camel@...3024...> References: <1389689447.3402.5.camel@...3024...> Message-ID: <52DC6AA0.2070805@...1...> Le 14/01/2014 09:50, Willy Raets a ?crit : > Hi all, > > Does anyone have a small example of working with a multi document > interface. I need one toolbar that works with all opened documents? > > For example a toolbar with a copy and paste button that can copy a text > from one of the opened documents and paste it into an other opened > document in the multi document interface. > > What is the best approach of achieving this? Any suggestions or a small > example would be appreciated. > The IDE does not fit your needs? It has a main window with a main toolbar, and MDI child windows with their own private toolbars. Then you create your Toolbar, fill them with ToolButton, ComboBox... The toolbar Key property must be set. The Action property of all toolbar controls must be set too. If a toolbar button has a corresponding menu, the menu must have the same action. If an action is local to a MDI window (for example, in the IDE, two form editors have its own instance of the same toolbar), it must start with a dot. Read all the documentation of the Action class. Regards, -- Beno?t Minisini From kevinfishburne at ...1887... Mon Jan 20 05:28:02 2014 From: kevinfishburne at ...1887... (Kevin Fishburne) Date: Sun, 19 Jan 2014 23:28:02 -0500 Subject: [Gambas-user] sdl Draw event overhead is killing frame rate In-Reply-To: <52DBF0F1.90106@...1...> References: <52D5F36A.30801@...1887...> <52D5FE4E.5050800@...1...> <52D619D5.2030409@...1887...> <52D6A425.8080007@...1...> <52D7682E.4030405@...1887...> <52D851BC.7010802@...1...> <52D8580F.3060001@...1...> <52D9FC73.4070400@...1887...> <52DB88C2.3030203@...1887...> <52DBF0F1.90106@...1...> Message-ID: <52DCA5D2.2040503@...1887...> On 01/19/2014 10:36 AM, Beno?t Minisini wrote: > Le 19/01/2014 09:11, Kevin Fishburne a ?crit : >> On 01/17/2014 11:00 PM, Kevin Fishburne wrote: >>> On 01/16/2014 05:07 PM, Beno?t Minisini wrote: >>>> Le 16/01/2014 22:40, Beno?t Minisini a ?crit : >>>>> Le 16/01/2014 06:03, Kevin Fishburne a ?crit : >>>>>> The results are in, and they don't tell me much. :( I attached the >>>>>> updated test project, which includes the test results in comments at the >>>>>> top. They are: >>>>>> >>>>>> ' No Stop Event | No Geometry | Binary NVIDIA driver | 236 FPS >>>>>> ' Stop Event | No Geometry | Binary NVIDIA driver | 158 FPS >>>>>> ' No Stop Event | No Geometry | Nouveau driver | 238 FPS >>>>>> ' Stop Event | No Geometry | Nouveau driver | 159 FPS >>>>>> ' No Stop Event | Geometry | Binary NVIDIA driver | 236 FPS >>>>>> ' Stop Event | Geometry | Binary NVIDIA driver | 155 FPS >>>>>> ' No Stop Event | Geometry | Nouveau driver | 218 FPS >>>>>> ' Stop Event | Geometry | Nouveau driver | 161 FPS >>>>>> >>>>>> Adding "Stop Event" reduces thread CPU usage from 100% to 84%. The frame >>>>>> rate is consistently lower when using Stop Event. That 16% difference in >>>>>> CPU also doesn't seem to correlate with the difference in frame rates, >>>>>> as the frame rate difference has a significantly larger discrepancy. >>>>>> Factors unknown to me could be contributing to that of course... >>>>> It's actually simple: when 'Stop Event' is used, the process is paused >>>>> during a little delay (about 10 ms according to the SDL_Delay function >>>>> documentation). So it acts as a frame rate limitation. >>>>> >>>>> If you don't use 'Stop Event', there is no such delay. But you get in >>>>> both cases a call to the Gambas event loop with a 10 ms timeout (yes, 10 >>>>> ms again. This is usually the smallest delay a Linux Kernel can handle). >>>>> That means if there is no Gambas event to process, the process is paused >>>>> during 10 ms. If there is a Gambas event to process, there is no pause. >>>>> >>>>> I will try to remove all this delays, and you will tell me if it helps you. >>>>> >>>> Please test revision #6085, and tell me if it changes anything in your >>>> framerate. >>>> >>>> I removed the delay if Stop Event is called, and I lower the timeout of >>>> the Gambas event loop call to 1 ms instead of 10 ms, which force Gambas >>>> to use a busy loop instead of sleeping the process. >>>> >>> The FPS are the same when not calling Stop Event, but are now faster >>> when calling Stop Event. Either way they still max out between 230-240 FPS. >>> >>> I set up a VM so I can compile specific revisions of Gambas and will see >>> if older versions exhibit different behavior. I'll let you know what I >>> find, and hopefully will be able to narrow it down to a specific >>> revision. If I can't do anything to get a higher frame rate on an empty >>> SDL loop then something's gone horribly wrong on my end. >>> >> Here are the results of my test ("---" means similar to the results below): >> >> -=- >> >> Revision Version Status FPS FPS >> 1280x720 Minimized >> >> 5938 3.5.90 Bad --- --- >> 5937 3.5.90 Bad 160 187 >> 5936 3.5.90 Good --- --- >> 5931 3.5 Good --- --- >> 5923 3.5 Good --- --- >> 5907 3.5 Good --- --- >> 5875 3.5 Good 530 2595 >> 5750 3.4.90 Good 490 2405 >> 5500 3.4 Good 488 2545 >> >> -=- >> >> It seems the change slowing the SDL Draw event (or whatever is >> happening) appeared in revision 5937 and later, with the change absent >> in 5936 and earlier. >> >> What's interesting is that the SDL window being minimized in 5936 or >> earlier greatly increases the frame rate, though it makes no difference >> in later revisions. Regardless, the FPS in 5936 and earlier are >> significantly higher than those of revisions 5937 and newer with both >> empty and populated Draw event procedures. That would effect any program >> using SDL to create/manage a window. >> > It's weird, as the only thing that has changed in the replacement of the > default SDL font. Up to r5936 it was a TTF font, and I replaced it by a > bitmap font I have made. > > If you don't print text, how can that change the global framerate? > It must provoke some acid reflux deep within the bowels of SDL. :) I don't know...it's damn strange for sure. I also find it strange that the FPS is around 500, but when you minimize the window it jumps to over 2000. Even if it's just refreshing the window itself, you'd think on a modern system with hardware acceleration it would be faster than that. I attached my test app. It has all the OpenGL commands and variable declarations commented out, so it's running just an empty SDL loop with the frame rate calculation and console printout. Feel free to test the two revisions yourself to see the difference. Just thought of something...how can you change the current font SDL is using? I wonder if changing it from the bitmap to an arbitrary TTF (even though no text is being rendered) would make a difference? -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sales at ...1887... phone: (770) 853-6271 -------------- next part -------------- A non-text attachment was scrubbed... Name: SDL_Draw_Event_Test.tar.gz Type: application/gzip Size: 40723 bytes Desc: not available URL: From gambas at ...2524... Mon Jan 20 08:52:43 2014 From: gambas at ...2524... (gambas at ...2524...) Date: Mon, 20 Jan 2014 07:52:43 +0000 Subject: [Gambas-user] Issue 502 in gambas: IDE code highlighting Message-ID: <0-6813199134517018827-17961485463799286267-gambas=googlecode.com@...2524...> Status: New Owner: ---- Labels: Version-3.5.0 Type-Bug Priority-Medium OpSys-Any Dist-Any Arch-Any Desktop-Any GUI-Any New issue 502 by krisztiankende: IDE code highlighting http://code.google.com/p/gambas/issues/detail?id=502 The Gambas code editor doesn't highlight the following codes: String.Instr String.RInstr String.Left String.Right String.Mid String.Len ... So all if beginning 'String.'. Visually bit hurtful. -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From gambas at ...2524... Mon Jan 20 11:27:09 2014 From: gambas at ...2524... (gambas at ...2524...) Date: Mon, 20 Jan 2014 10:27:09 +0000 Subject: [Gambas-user] Issue 502 in gambas: IDE code highlighting In-Reply-To: <0-6813199134517018827-17961485463799286267-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-17961485463799286267-gambas=googlecode.com@...2524...> Message-ID: <1-6813199134517018827-17961485463799286267-gambas=googlecode.com@...2524...> Comment #1 on issue 502 by benoit.m... at ...626...: IDE code highlighting http://code.google.com/p/gambas/issues/detail?id=502 What do you want the IDE to highlight? "String" is a class, it is not highlighted in that context, like any other class. -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From eilert-sprachen at ...221... Mon Jan 20 12:31:22 2014 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Mon, 20 Jan 2014 12:31:22 +0100 Subject: [Gambas-user] TableView Column.Width quick adjust? In-Reply-To: <52DC4F72.3060602@...1...> References: <52D3CA82.4090709@...221...> <52DC4F72.3060602@...1...> Message-ID: <52DD090A.2030102@...221...> Am 19.01.2014 23:19, schrieb Beno?t Minisini: > Le 13/01/2014 12:14, Rolf-Werner Eilert a ?crit : >> When I want to adapt the Column.Width of all Columns in a TableView, >> will I still have to build this into the Data event or iterate through >> the whole thing, or is there meanwhile a quicker way to programmatically >> start the fast adaptation (the one which I get when double-clicking on >> the column header separators)? >> >> I ask because I haven't programmed tables for some time, and there might >> be changes. (By the way, in the tooltip help of 1.5.2, most of the texts >> end with dead links.) >> >> Thanks for your advice. >> >> Rolf >> > > Set the column width to -1, and it will adjust its size to the first > 1000 rows after the first visible row. > Ahh! :) Great! Thank you so much! rolf From nemh at ...2007... Mon Jan 20 12:50:36 2014 From: nemh at ...2007... (=?ISO-8859-1?Q?Kende_Kriszti=E1n?=) Date: Mon, 20 Jan 2014 12:50:36 +0100 Subject: [Gambas-user] Issue 502 in gambas: IDE code highlighting In-Reply-To: <1-6813199134517018827-17961485463799286267-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-17961485463799286267-gambas=googlecode.com@...2524...> <1-6813199134517018827-17961485463799286267-gambas=googlecode.com@...2524...> Message-ID: <52DD0D8C.4040708@...2007...> 2014-01-20 11:27 keltez?ssel, gambas at ...2524... ?rta: > Comment #1 on issue 502 by benoit.m... at ...626...: IDE code highlighting > http://code.google.com/p/gambas/issues/detail?id=502 > > What do you want the IDE to highlight? "String" is a class, it is not > highlighted in that context, like any other class. > Hm, indeed. I just watched this: http://gambasdoc.org/help/cat/string?v3 And if I use Instr(), just highlighted, but if I want to use UTF-8 equivalent (why class?), then not highlighted. But evidently it's good. From gambas at ...1... Mon Jan 20 12:53:50 2014 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Mon, 20 Jan 2014 12:53:50 +0100 Subject: [Gambas-user] Issue 502 in gambas: IDE code highlighting In-Reply-To: <52DD0D8C.4040708@...2007...> References: <0-6813199134517018827-17961485463799286267-gambas=googlecode.com@...2524...> <1-6813199134517018827-17961485463799286267-gambas=googlecode.com@...2524...> <52DD0D8C.4040708@...2007...> Message-ID: <52DD0E4E.3030304@...1...> Le 20/01/2014 12:50, Kende Kriszti?n a ?crit : > 2014-01-20 11:27 keltez?ssel, gambas at ...2524... ?rta: >> Comment #1 on issue 502 by benoit.m... at ...626...: IDE code highlighting >> http://code.google.com/p/gambas/issues/detail?id=502 >> >> What do you want the IDE to highlight? "String" is a class, it is not >> highlighted in that context, like any other class. >> > > Hm, indeed. I just watched this: > > http://gambasdoc.org/help/cat/string?v3 > > And if I use Instr(), just highlighted, but if I want to use UTF-8 > equivalent (why class?), then not highlighted. But evidently it's good. > Why "why class?"? -- Beno?t Minisini From gambas at ...2524... Mon Jan 20 12:54:03 2014 From: gambas at ...2524... (gambas at ...2524...) Date: Mon, 20 Jan 2014 11:54:03 +0000 Subject: [Gambas-user] Issue 502 in gambas: IDE code highlighting In-Reply-To: <1-6813199134517018827-17961485463799286267-gambas=googlecode.com@...2524...> References: <1-6813199134517018827-17961485463799286267-gambas=googlecode.com@...2524...> <0-6813199134517018827-17961485463799286267-gambas=googlecode.com@...2524...> Message-ID: <2-6813199134517018827-17961485463799286267-gambas=googlecode.com@...2524...> Updates: Status: WontFix Comment #2 on issue 502 by benoit.m... at ...626...: IDE code highlighting http://code.google.com/p/gambas/issues/detail?id=502 (No comment was entered for this change.) -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From bbruen at ...2308... Mon Jan 20 13:23:57 2014 From: bbruen at ...2308... (Bruce) Date: Mon, 20 Jan 2014 22:53:57 +1030 Subject: [Gambas-user] Could not determine mimetype for file: http:// Message-ID: <1390220637.17182.18.camel@...2688...> Would anyone care to guess where the above message comes from. It has started to appear on the console output when I use Desktop.Open("http://" & $somevar) I have searched what I think are the logical places in gb.Desktop to no avail and have grepped the entire trunk with no results. It is definitely not in any of my projects, libraries or components. Bewildered Bruce From gambas at ...1... Mon Jan 20 13:41:35 2014 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Mon, 20 Jan 2014 13:41:35 +0100 Subject: [Gambas-user] Could not determine mimetype for file: http:// In-Reply-To: <1390220637.17182.18.camel@...2688...> References: <1390220637.17182.18.camel@...2688...> Message-ID: <52DD197F.90602@...1...> Le 20/01/2014 13:23, Bruce a ?crit : > Would anyone care to guess where the above message comes from. > > It has started to appear on the console output when I use > Desktop.Open("http://" & $somevar) > > I have searched what I think are the logical places in gb.Desktop to no > avail and have grepped the entire trunk with no results. It is > definitely not in any of my projects, libraries or components. > > Bewildered > Bruce > Desktop.Open() calls the xdg-open shell script. This script is installed on your system, and if not, there is a copy inside the gb.desktop sources. -- Beno?t Minisini From bbruen at ...2308... Mon Jan 20 14:47:16 2014 From: bbruen at ...2308... (Bruce) Date: Tue, 21 Jan 2014 00:17:16 +1030 Subject: [Gambas-user] Could not determine mimetype for file: http:// In-Reply-To: <52DD197F.90602@...1...> References: <1390220637.17182.18.camel@...2688...> <52DD197F.90602@...1...> Message-ID: <1390225636.17182.19.camel@...2688...> On Mon, 2014-01-20 at 13:41 +0100, Beno?t Minisini wrote: > Le 20/01/2014 13:23, Bruce a ?crit : > > Would anyone care to guess where the above message comes from. > > > > It has started to appear on the console output when I use > > Desktop.Open("http://" & $somevar) > > > > I have searched what I think are the logical places in gb.Desktop to no > > avail and have grepped the entire trunk with no results. It is > > definitely not in any of my projects, libraries or components. > > > > Bewildered > > Bruce > > > > Desktop.Open() calls the xdg-open shell script. This script is installed > on your system, and if not, there is a copy inside the gb.desktop sources. > From bbruen at ...2308... Mon Jan 20 14:49:41 2014 From: bbruen at ...2308... (Bruce) Date: Tue, 21 Jan 2014 00:19:41 +1030 Subject: [Gambas-user] Could not determine mimetype for file: http:// In-Reply-To: <52DD197F.90602@...1...> References: <1390220637.17182.18.camel@...2688...> <52DD197F.90602@...1...> Message-ID: <1390225781.17182.21.camel@...2688...> On Mon, 2014-01-20 at 13:41 +0100, Beno?t Minisini wrote: > Le 20/01/2014 13:23, Bruce a ?crit : > > Would anyone care to guess where the above message comes from. > > > > It has started to appear on the console output when I use > > Desktop.Open("http://" & $somevar) > > > > I have searched what I think are the logical places in gb.Desktop to no > > avail and have grepped the entire trunk with no results. It is > > definitely not in any of my projects, libraries or components. > > > > Bewildered > > Bruce > > > > Desktop.Open() calls the xdg-open shell script. This script is installed > on your system, and if not, there is a copy inside the gb.desktop sources. > Found it! It comes from /usr/bin/mimeopen ( I had to grep the entire /usr/bin to find it ) thanks Benoit From bbruen at ...2308... Mon Jan 20 14:56:18 2014 From: bbruen at ...2308... (Bruce) Date: Tue, 21 Jan 2014 00:26:18 +1030 Subject: [Gambas-user] When does prefernces get saved? Message-ID: <1390226178.17182.27.camel@...2688...> (back to more serious stuff) Some preferences get saved to the .project file, but when does this occur? An example being the URL string on the Packaging tab. If I change that string and then generate an executable, the .project file in the executable contains the old URL= value. It similarly happens if I save the project before generating the executable. regards Bruce From ualex73 at ...626... Mon Jan 20 16:44:57 2014 From: ualex73 at ...626... (Alexie) Date: Mon, 20 Jan 2014 16:44:57 +0100 Subject: [Gambas-user] Gambas and TCP "PSH" (push) flag? Message-ID: Hi, I am writing a client and server application to send data, only for some "raw" TCP communication I need to use the "PSH" (push) flag. This notifies the other side no data will come and the other side can send a response. I tried with the gb.net sockets, but I never get the PSH flag in my TCP traffic. Is it possible to do this in Gambas? Some information about the PSH: http://stackoverflow.com/questions/6835216/how-to-push-i-e-flush-data-sent-to-a-tcp-stream Regards, Alex From taboege at ...626... Mon Jan 20 17:06:43 2014 From: taboege at ...626... (Tobias Boege) Date: Mon, 20 Jan 2014 17:06:43 +0100 Subject: [Gambas-user] gb.logging: out of bounds error with certain fields Message-ID: <20140120160643.GG512@...2774...> Hi Sebastian, I get an "Out of bounds" error with the attached project. I haven't used gb.logging myself yet, so I can't say more. I'm just mediating the report to you... Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk -------------- next part -------------- A non-text attachment was scrubbed... Name: logtest-0.0.1.tar.gz Type: application/octet-stream Size: 4768 bytes Desc: not available URL: From johny.provoost at ...27... Mon Jan 20 19:06:12 2014 From: johny.provoost at ...27... (Johny Provoost) Date: Mon, 20 Jan 2014 19:06:12 +0100 Subject: [Gambas-user] send 'pgup' to process Message-ID: <52DD6594.1020404@...27...> Hi, I adapted the example Movieplayer from Beno?t . It's about sending keys to mplayer. I can send "+" and "-' to the process with success, but when want to send "PageUp", "PageDown", "Up", "Down","Left", and 'right', I get stuck. the line is If Not $hProcess Then Return Print #$hProcess,-here comes the key to send- ; I tried key.PageUp, Desktop.Sendkeys("[PageUp"]), with and without the quotes. PgUp instead of PageUp Nothing helped. I found nothing about this specific case in the help, nor by googling. -- *Vriendelijke Groeten* *Johny Provoost* *mailto: johny.provoost at ...27... * *mailto: johny.provoost at ...626... * *Website:* *http://www.johnyprovoost.net* From gambas at ...1... Mon Jan 20 20:33:04 2014 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Mon, 20 Jan 2014 20:33:04 +0100 Subject: [Gambas-user] Two suggestions about TabPanel + 2 more In-Reply-To: <1390174987.17182.12.camel@...2688...> References: <1390082511.30151.6.camel@...2688...> <52DC4E03.8070203@...1...> <1390174987.17182.12.camel@...2688...> Message-ID: <52DD79F0.1030302@...1...> Le 20/01/2014 00:43, Bruce a ?crit : > On Sun, 2014-01-19 at 23:13 +0100, Beno?t Minisini wrote: >> Le 18/01/2014 23:01, Bruce a ?crit : >>> >>> 3) You cannot set accelerator keys for TabPanel tab titles like you can >>> for TabStrips >> >> I'm afraid it is not easy to implement... > Oh well, never mind. (It was just an observation) > >> >>> >>> 4) Mousewheel scrolling through TabPanel tabs only works when the >>> TabPanel itself has the focus. (TabStrip scrolling happens when the >>> mouse is over the tabstrip tab area, i.e. it doesn't need to have focus. >>> This is really handy.) >> >> I don't understand: it works perfectly there, with gb.qt4, gb.gtk or >> gb.gtk3. >> > hmmm, You are right. Don't know why I thought it... ah wait a moment, it > steals the focus whereas wheeling over the tabstrip doesn't. I have > attached a (badly put together) example of this. > > 1. Go to the Bhab tab > 2. Set focus on Textbox10 > 3. Use mousewheel to roll through the tabs and back to Bhab => focus is > still on Textbox 10 > 4. Go to CHab tab > 5. Set focus on the yellow text box. (This might explain a bit better: > the Users focus is also on the yellow box, he want to scroll through the > "sub" information on the Tabstrip2 tabstrip but still is maintaining the > yellow box text. Using the mousewheel he can roll through the sub > information pages without the cursor moving out of the yellow box.) > 6 Go to the Dhab tab, here we have the tabpanel. > 7. Set focus on the orange text box > 8. Mouse wheel over the tabpanel => focus on the orange box is lost! > > regards > B > In revision #6091, focus is not stolen anymore. -- Beno?t Minisini From sebikul at ...626... Mon Jan 20 20:57:45 2014 From: sebikul at ...626... (Sebastian Kulesz) Date: Mon, 20 Jan 2014 17:57:45 -0200 Subject: [Gambas-user] gb.logging: out of bounds error with certain fields In-Reply-To: <20140120160643.GG512@...2774...> References: <20140120160643.GG512@...2774...> Message-ID: It should be fixed in revision #6092. Please let me know how it went! On Jan 20, 2014 1:08 PM, "Tobias Boege" wrote: > Hi Sebastian, > > I get an "Out of bounds" error with the attached project. I haven't used > gb.logging myself yet, so I can't say more. I'm just mediating the report > to you... > > Regards, > Tobi > > -- > "There's an old saying: Don't change anything... ever!" -- Mr. Monk > > > ------------------------------------------------------------------------------ > CenturyLink Cloud: The Leader in Enterprise Cloud Services. > Learn Why More Businesses Are Choosing CenturyLink Cloud For > Critical Workloads, Development Environments & Everything In Between. > Get a Quote or Start a Free Trial Today. > > http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > From tercoide at ...67... Mon Jan 20 21:29:34 2014 From: tercoide at ...67... (martin p cristia) Date: Mon, 20 Jan 2014 17:29:34 -0300 Subject: [Gambas-user] Matrices byref In-Reply-To: References: Message-ID: On 20/01/14 01:28, gambas-user-request at lists.sourceforge.net wrote: >> I need this global matrix: >> > >> >Public MatRigGlo[12, 12] As Float >> > >> >that in some cases it needs to be [3,3] or [6,6] >> >I pass that matrix to a C library: >> > >> >Public Extern M8simetrizarSQ(matriz As Float[], lOrden As Long) >> > >> >and the call is >> > >> > M8simetrizarSQ(MatRigGlo, 12) >> > >> >wich works perfectly. But its ineficient because if matrix is 3x3, the >> >routine still need to process it like 12x12, and that matrix it's filled >> >like 1M times. Will it work like this? >> > >> >Public Mat3[3,3] as Float >> >Public Mat12[12,12] as Float >> >Public MatRigGlo as Float[] >> > >> >' Module >> >MatrigGlo = Mat3 >> > >> >and the use MatRigGlo like a 3x3 matrix? >> >wich other ways to do this? >> > >> >tnx >> > > No, because Mat3 and Mat12 are not normal Float arrays, but embedded > Float arrays. > > You must declare them that way: > > Public Mat3 As Float[3, 3] > Public Mat12 As Float[12, 12] > > Or dynamically: > > Public MatRigGlo as Float[] > > MatRigGlo = New Float[iSize, iSize] I'm embarrassed on it being that simple :s tnx, Martin From dosida at ...626... Tue Jan 21 12:44:46 2014 From: dosida at ...626... (Dimitris Anogiatis) Date: Tue, 21 Jan 2014 04:44:46 -0700 Subject: [Gambas-user] How can I detect left or right click on TrayIcon Message-ID: Hey guys, I'm using Gambas 3.5.1 on Debian jessie (Gnome 3.8.4) and I was wondering how can one detect a left or right click on the TrayIcon control. What do I need to do that? Can anyone give me some pointers? Thanks in Advance Sincerely Dimitris From taboege at ...626... Tue Jan 21 12:58:00 2014 From: taboege at ...626... (Tobias Boege) Date: Tue, 21 Jan 2014 12:58:00 +0100 Subject: [Gambas-user] send 'pgup' to process In-Reply-To: <52DD6594.1020404@...27...> References: <52DD6594.1020404@...27...> Message-ID: <20140121115800.GB513@...2774...> On Mon, 20 Jan 2014, Johny Provoost wrote: > Hi, > > I adapted the example Movieplayer from Beno?t . > It's about sending keys to mplayer. > I can send "+" and "-' to the process with success, but when want to > send "PageUp", "PageDown", "Up", "Down","Left", and 'right', I get stuck. > > > the line is > > If Not $hProcess Then Return > Print #$hProcess,-here comes the key to send- ; > > I tried > key.PageUp, > Desktop.Sendkeys("[PageUp"]), with and without the quotes. > PgUp instead of PageUp > You are talking to mplayer via its text-interactive interface when you are using Print #$hProcess. You don't need to figure out how to send some key codes because mplayer understands *commands* via this channel. It's a shame that we haven't found time to finally prepare our mplayer-based web radio program for public (or did we and just don't find it?). However, you can start mplayer with its -slave switch and then look at the command reference[0]. To, e.g., set the volume to 90%, do: Print $hProcess, "set_property volume 90" To emulate PageUp, which is, by default, to seek forward by 10 minutes, you may do Print $hProcess, "seek +600" but it's really all in the docs. Regards, Tobi [0] http://www.mplayerhq.hu/DOCS/tech/slave.txt -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From taboege at ...626... Tue Jan 21 13:02:13 2014 From: taboege at ...626... (Tobias Boege) Date: Tue, 21 Jan 2014 13:02:13 +0100 Subject: [Gambas-user] gb.logging: out of bounds error with certain fields In-Reply-To: References: <20140120160643.GG512@...2774...> Message-ID: <20140121120213.GC513@...2774...> On Mon, 20 Jan 2014, Sebastian Kulesz wrote: > It should be fixed in revision #6092. Please let me know how it went! Works! Thanks. -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From johny.provoost at ...27... Tue Jan 21 14:33:23 2014 From: johny.provoost at ...27... (Johny Provoost) Date: Tue, 21 Jan 2014 14:33:23 +0100 Subject: [Gambas-user] send 'pgup' to process In-Reply-To: <20140121115800.GB513@...2774...> References: <52DD6594.1020404@...27...> <20140121115800.GB513@...2774...> Message-ID: <52DE7723.4090600@...27...> op 21-01-14 12:58, Tobias Boege schreef: On Mon, 20 Jan 2014, Johny Provoost wrote: Hi, I adapted the example Movieplayer from Beno?t . It's about sending keys to mplayer. I can send "+" and "-' to the process with success, but when want to send "PageUp", "PageDown", "Up", "Down","Left", and 'right', I get stuck. the line is If Not $hProcess Then Return Print #$hProcess,-here comes the key to send- ; I tried key.PageUp, Desktop.Sendkeys("[PageUp"]), with and without the quotes. PgUp instead of PageUp You are talking to mplayer via its text-interactive interface when you are using Print #$hProcess. You don't need to figure out how to send some key codes because mplayer understands *commands* via this channel. It's a shame that we haven't found time to finally prepare our mplayer-based web radio program for public (or did we and just don't find it?). However, you can start mplayer with its -slave switch and then look at the command reference[0]. To, e.g., set the volume to 90%, do: Print $hProcess, "set_property volume 90" To emulate PageUp, which is, by default, to seek forward by 10 minutes, you may do Print $hProcess, "seek +600" but it's really all in the docs. Regards, Tobi [0] [1]http://www.mplayerhq.hu/DOCS/tech/slave.txt Ok, thanks will look in to this -- Vriendelijke Groeten Johny Provoost mailto: [2]johny.provoost at ...27... mailto: [3]johny.provoost at ...626... Website: [4]http://www.johnyprovoost.net References 1. http://www.mplayerhq.hu/DOCS/tech/slave.txt 2. mailto:johny.provoost at ...27... 3. mailto:johny.provoost at ...626... 4. http://www.johnyprovoost.net/ From tercoide at ...67... Tue Jan 21 21:57:41 2014 From: tercoide at ...67... (martin p cristia) Date: Tue, 21 Jan 2014 17:57:41 -0300 Subject: [Gambas-user] Gambas Future or what kind of Gambas we want. In-Reply-To: References: Message-ID: Stepping in this old conversation to point out my take: -computers nowadays are fast enough to run a VM that's fast enough to run a normal aplication -If Benoit says it's complicated, what's left for us ?????????????????? - so instead of trying to port gambas, why not making a installer that sets everything up for the inexperinced user??? Something like the SmallTalk approach. Making a small footprint VM+Linux+Gambas...they're all opensource, we can get rid of everyhing that Gambas dont need...even more, making a ligth weight Gambas or tagging components as "portable" and others "not" Say it's a 500MB installer? C'mon my android phone has "Hello world" like apps that weight 30MB, half giga is 15m download...even here in the ass of the world (small town Argentina) As for porting Gambas, it will be really good. I have the time (but not the brain) to help anyone that joins the party and has the know-how for a start. > Le 01/11/2013 11:33, Fran?ois Gallo a ?crit : > > > > > Le 01/11/2013 11:15, Fabien Bodard a ?crit : > >> After long talk with many gambas developpers, after years of joy on > the use > >> of this language, I want to talk about its future... its persistance. > >> > >> > >> Benoit for me is a little bit like our Linus. He have done > something for > >> itself and it's today one of the better tool ever see. (Umm ... ;-)) > >> > >> Now, for me one thing lock down Gambas... why can't it be more known ? > >> Because it is close to Linux world. Theire is no possibility to use it > >> natively on other system ... this problem what explicitely exposed > by RMS > >> in the past in a mail sended to us. Yes in his request he wanted us > to make > >> the interpreter generate a cil code for interpreter like java/.net or > >> parrot. Well today we know java isn't a sure way, and we can do > things too > >> without. > >> > >> I have a request to Benoit, and i know it's time is precious and > like mine > >> rare. I want him to concentrate on make it's code portable... separate > >> specific linux part to allow all our friend that want to help to port > >> gambas to stars to make theire job. > >> > >> By doing this, most people can participate on compiler/interpreter > code, by > >> having Gambas on other system we can have more component > maker/maintainer. > >> At the end Benoit can take hollidays and come take a Cognac at home > . :-) > >> > >> I know this is a huge job as he/we need to take the time to mark > all part > >> of the code that is hard linked on Linux system, and then choose a > way to > >> separate it to symplify the maintainment > >> > >> Same thing for the toolkits but it's at a first time not the > subject of > >> today. > >> > >> Now we have hands that can help... but it can't be done if the code > is not > >> structured for. > >> > >> So for the Undred time ... Benoit ... Please, let us helping you. > >> > >> > >> > >> > >> To all, the gambas user/dev, this exchange is for you so even if it > take > >> thouthen of mail, please give us your impress and your ideas, your > support. > >> > >> > >> > >> Please, don't look at the spelling fault, it will take to many time > to you > >> ;-) > >> > >> > >> > > > > Fabien's right! > > > > i worked on gambas' portability (OS X and *BSD) and i can say > > we need a new structure of code to make a good portability > > but mainly a proper maintenance. > > > > Gambas is too linked to Linux. I can understand Benoit isn't > > interesting to spend time in the developing to port Gambas, > > but Benoit MUST review its code. > > > > At the moment, Gambas is not coded to port properly on > > others OS. > > a lot of routines is too linked to Linux (i say it again). > > > > Add new components and features is great, but it is > > preferable to focus time to make it better. > > > > i hope a work will be done in the gambas code to have > > a "modular code". Separate X11 in a single code is > > better for us, developers who wants to work on > > portability of Gambas! > > > > in this manner, each developer can works on a code > > for OS X, for Windows and so on ... > > X11 for OS X is ugly. > > X11 for Windows is ugly. > > Use translated X11 routines are ugly. > > > > Benoit, we don't ask you to port Gambas to OS X & Windows, > > just to re-structure code of Gambas so that we can works > > efficiently! > > > > While this change will not be applied, > > i would not be motivated to work on any Gambas port again... > > > ? [hide part of quote > ] > > To port Gambas on non-X11 systems, the problems are the following: > > 1) The interpreter relies on some kernel features that are not exactly > implemented in the Windows kernel, especially the fork() system call. > The Cygwin emulation layer is too slow. > > 2) I don't care about Windows. Doing the port is a big job. I started to > did it on Windows XP + Cygwin years ago. It worked, but there was the > fork() system call emulation that was slow. > > 3) There is X11 code in gb.gtk, gb.qt4 and gb.desktop. > > 4) For gb.gtk: as GTK+ 2 is deprecated, gb.gtk should be ported to GTK+ > 3. This implies removing all the X11 specific code. > > 5) For gb.qt4: the X11 specific code is there to workaround some > problems, but should not exist theoritically. > > 6) For gb.desktop: the desktop routines relies on the X11 window manager > protocols and freedesktop.org standards. A lot of things cannot be > ported, but some things can. > > 7) Many components are interfaces to libraries that do not necessarily > exist on other systems. It could be a problem. > > I think there is not a lot of thing to do to port the interpreter, the > compiler and the other tools, as I already did that on Windows. > > As for the X11 stuff, of course you're right. It must be encapsulated > somewhere so that it can be easily replaced. I already planned to do > that, but never had the time. > > At the moment, I'm busy with fixing Gambas packager as soon as possible, > so that a Gambas 3.5.1 could be released. > > -- > Beno?t Minisini From nilsson at ...1979... Tue Jan 21 23:50:16 2014 From: nilsson at ...1979... (Carl Nilsson) Date: Wed, 22 Jan 2014 09:50:16 +1100 Subject: [Gambas-user] Gambas Future or what kind of Gambas we want. In-Reply-To: References: Message-ID: <64e542$c0ucl8@...3015...> The Future and what kind of Gambas do we want? Well, this is a question general enough that I can understand it and put in my modest contribution: I have just started using Gambas. A year ago I started asking a question or two on this forum about using it to write for an embedded system on small aircraft. It is the application I wish to concentrate my limited time on, not Gambas and certainly not Linux, both of which I wanted to use. My questions were pretty naive and simple, like how to set up and use multiple serial ports for a processing system. I was previously and still am using a Windows 2000 lite sytem with software I have written in VB6, about which I know enough to get by. I also know enough about Windows to know it was not ideal. My system is not commercial (though I thought it might become one 10 years ago). But I was not going to pay for Windows Embedded. In the meantime along come boards like the Raspberry Pi and the Beaglebone Black. Raspberry Pi has about 2 million boards sold. That's where the future lies for Gambas - not with computer experts on desktops, but with people who want to use cheap systems largely for educational and hobby projects. People like myself who were prepared to dig into VB6, but not go with successive versions of VB.net and Embedded Windows. Yesterday, working on Gambas 3.5.1 running on OpenSUSE 13.1 running on VM under Windows 7, I finally got as far as writing a small program that actually received data over a serial port. I was almost there several days ago - thanks to the Gambas examples and helpful input from this forum. However, I got held up , as an ordinary (non-root) user, by not being able to open the serial port! A trivial matter, you might think, but I had to dig into Linux to join the network group that had permission to access the serial port! For me, Linux is simply there as the carrier of Gambas and I do not have the time in which to become a happy chappie forever playing with Linux. I note there is GambOS. I have not yet looked at it, but I get the intent. For home automation, it seems the right idea. I have little doubt that boards like Raspberry Pi and Beaglebone, and tablets and smart phones will dominate the market in future. Right now, Gambas and Linux go together. But if you want a much greater takeup of Gambas, you must make the installation and use of an O/S with Gambas easier and more transparent. Look at the hardware and users it is likely needed for. Here's an image, burn it on an SD card and away you go. Right now I would love to be able to download a current installation image for the Raspberry Pi that had Gambas and Wiring Pi integrated. Similarly for the Beaglebone Black. So that the user can get right down to programming his device using a custom version of Gambas that suits the hardware. I should not have to purchase a small library of books on Linux. I would advocate more effort towards the non-expert user who wants to use popular and inexpensive hardware. That's my take. Carl At 07:57 AM 22/01/2014, you wrote: >Stepping in this old conversation to point out my take: > >-computers nowadays are fast enough to run a VM that's fast enough to >run a normal aplication > >-If Benoit says it's complicated, what's left for us ?????????????????? > >- so instead of trying to port gambas, why not making a installer that >sets everything up for the inexperinced user??? Something like the >SmallTalk approach. > >Making a small footprint VM+Linux+Gambas...they're all opensource, we >can get rid of everyhing that Gambas dont need...even more, making a >ligth weight Gambas or tagging components as "portable" and others "not" >Say it's a 500MB installer? C'mon my android phone has "Hello world" >like apps that weight 30MB, half giga is 15m download...even here in the >ass of the world (small town Argentina) > >As for porting Gambas, it will be really good. I have the time (but not >the brain) to help anyone that joins the party and has the know-how for >a start. > > > > Le 01/11/2013 11:33, Fran?ois Gallo a ?crit : > > > > > > > > Le 01/11/2013 11:15, Fabien Bodard a ?crit : > > >> After long talk with many gambas developpers, after years of joy on > > the use > > >> of this language, I want to talk about its future... its persistance. > > >> > > >> > > >> Benoit for me is a little bit like our Linus. He have done > > something for > > >> itself and it's today one of the better tool ever see. (Umm ... ;-)) > > >> > > >> Now, for me one thing lock down Gambas... why can't it be more known ? > > >> Because it is close to Linux world. Theire is no possibility to use it > > >> natively on other system ... this problem what explicitely exposed > > by RMS > > >> in the past in a mail sended to us. Yes in his request he wanted us > > to make > > >> the interpreter generate a cil code for interpreter like java/.net or > > >> parrot. Well today we know java isn't a sure way, and we can do > > things too > > >> without. > > >> > > >> I have a request to Benoit, and i know it's time is precious and > > like mine > > >> rare. I want him to concentrate on make it's code portable... separate > > >> specific linux part to allow all our friend that want to help to port > > >> gambas to stars to make theire job. > > >> > > >> By doing this, most people can participate on compiler/interpreter > > code, by > > >> having Gambas on other system we can have more component > > maker/maintainer. > > >> At the end Benoit can take hollidays and come take a Cognac at home > > . :-) > > >> > > >> I know this is a huge job as he/we need to take the time to mark > > all part > > >> of the code that is hard linked on Linux system, and then choose a > > way to > > >> separate it to symplify the maintainment > > >> > > >> Same thing for the toolkits but it's at a first time not the > > subject of > > >> today. > > >> > > >> Now we have hands that can help... but it can't be done if the code > > is not > > >> structured for. > > >> > > >> So for the Undred time ... Benoit ... Please, let us helping you. > > >> > > >> > > >> > > >> > > >> To all, the gambas user/dev, this exchange is for you so even if it > > take > > >> thouthen of mail, please give us your impress and your ideas, your > > support. > > >> > > >> > > >> > > >> Please, don't look at the spelling fault, it will take to many time > > to you > > >> ;-) > > >> > > >> > > >> > > > > > > Fabien's right! > > > > > > i worked on gambas' portability (OS X and *BSD) and i can say > > > we need a new structure of code to make a good portability > > > but mainly a proper maintenance. > > > > > > Gambas is too linked to Linux. I can understand Benoit isn't > > > interesting to spend time in the developing to port Gambas, > > > but Benoit MUST review its code. > > > > > > At the moment, Gambas is not coded to port properly on > > > others OS. > > > a lot of routines is too linked to Linux (i say it again). > > > > > > Add new components and features is great, but it is > > > preferable to focus time to make it better. > > > > > > i hope a work will be done in the gambas code to have > > > a "modular code". Separate X11 in a single code is > > > better for us, developers who wants to work on > > > portability of Gambas! > > > > > > in this manner, each developer can works on a code > > > for OS X, for Windows and so on ... > > > X11 for OS X is ugly. > > > X11 for Windows is ugly. > > > Use translated X11 routines are ugly. > > > > > > Benoit, we don't ask you to port Gambas to OS X & Windows, > > > just to re-structure code of Gambas so that we can works > > > efficiently! > > > > > > While this change will not be applied, > > > i would not be motivated to work on any Gambas port again... > > > > > ? [hide part of quote > > > ] > > > > To port Gambas on non-X11 systems, the problems are the following: > > > > 1) The interpreter relies on some kernel features that are not exactly > > implemented in the Windows kernel, especially the fork() system call. > > The Cygwin emulation layer is too slow. > > > > 2) I don't care about Windows. Doing the port is a big job. I started to > > did it on Windows XP + Cygwin years ago. It worked, but there was the > > fork() system call emulation that was slow. > > > > 3) There is X11 code in gb.gtk, gb.qt4 and gb.desktop. > > > > 4) For gb.gtk: as GTK+ 2 is deprecated, gb.gtk should be ported to GTK+ > > 3. This implies removing all the X11 specific code. > > > > 5) For gb.qt4: the X11 specific code is there to workaround some > > problems, but should not exist theoritically. > > > > 6) For gb.desktop: the desktop routines relies on the X11 window manager > > protocols and freedesktop.org standards. A lot of things cannot be > > ported, but some things can. > > > > 7) Many components are interfaces to libraries that do not necessarily > > exist on other systems. It could be a problem. > > > > I think there is not a lot of thing to do to port the interpreter, the > > compiler and the other tools, as I already did that on Windows. > > > > As for the X11 stuff, of course you're right. It must be encapsulated > > somewhere so that it can be easily replaced. I already planned to do > > that, but never had the time. > > > > At the moment, I'm busy with fixing Gambas packager as soon as possible, > > so that a Gambas 3.5.1 could be released. > > > > -- > > Beno?t Minisini > >------------------------------------------------------------------------------ >CenturyLink Cloud: The Leader in Enterprise Cloud Services. >Learn Why More Businesses Are Choosing CenturyLink Cloud For >Critical Workloads, Development Environments & Everything In Between. >Get a Quote or Start a Free Trial Today. >http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk >_______________________________________________ >Gambas-user mailing list >Gambas-user at lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/gambas-user Carl S Nilsson 137 Gordons Hill Road Lindisfarne, Tas. Australia 7015 From kevinfishburne at ...1887... Tue Jan 21 23:58:52 2014 From: kevinfishburne at ...1887... (Kevin Fishburne) Date: Tue, 21 Jan 2014 17:58:52 -0500 Subject: [Gambas-user] Gambas Future or what kind of Gambas we want. In-Reply-To: References: Message-ID: <52DEFBAC.9000401@...1887...> On 01/21/2014 03:57 PM, martin p cristia wrote: > Stepping in this old conversation to point out my take: > > -computers nowadays are fast enough to run a VM that's fast enough to > run a normal aplication > > -If Benoit says it's complicated, what's left for us ?????????????????? > > - so instead of trying to port gambas, why not making a installer that > sets everything up for the inexperinced user??? Something like the > SmallTalk approach. > > Making a small footprint VM+Linux+Gambas...they're all opensource, we > can get rid of everyhing that Gambas dont need...even more, making a > ligth weight Gambas or tagging components as "portable" and others "not" > Say it's a 500MB installer? C'mon my android phone has "Hello world" > like apps that weight 30MB, half giga is 15m download...even here in the > ass of the world (small town Argentina) > > As for porting Gambas, it will be really good. I have the time (but not > the brain) to help anyone that joins the party and has the know-how for > a start. Sounds like a good idea to me. I'm planning on creating my own LiveCD to allow users to run my game on Windows and OSX. Not a great solution, but there aren't many options that the average user will stomach. For your idea I think we'd need to set up a script or small executable that would: 1. Install VirtualBox. 2. Extract a premade vdi (Virtual Disk Image) containing only what Gambas needs to run its components (probably a lot). 3. Extract a premade vbox file (VirtualBox Machine Definition) so VirtualBox knows about the VM and all its settings. 4. Create desktop and menu shortcuts to launch the VM. I remember Windows had self-extracting executables, like a zip file with an .exe extension. Perhaps there's an open source program that can create those on Windows and then run a script afterward? If so that would take care of everything except creating the Gambas VM. From my experience with doing the latter, the image always ends up around 7-8 GB. I think getting the file size down to 1-2 GB is going to be tough. -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sales at ...1887... phone: (770) 853-6271 From gambas at ...1... Wed Jan 22 03:23:11 2014 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Wed, 22 Jan 2014 03:23:11 +0100 Subject: [Gambas-user] How can I detect left or right click on TrayIcon In-Reply-To: References: Message-ID: <52DF2B8F.8020501@...1...> Le 21/01/2014 12:44, Dimitris Anogiatis a ?crit : > Hey guys, > > I'm using Gambas 3.5.1 on Debian jessie (Gnome 3.8.4) and I was wondering > how can one > detect a left or right click on the TrayIcon control. > > What do I need to do that? Can anyone give me some pointers? > > Thanks in Advance > > Sincerely > Dimitris The TrayIcon object raises mouse events. -- Beno?t Minisini From gambas at ...1... Wed Jan 22 03:39:42 2014 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Wed, 22 Jan 2014 03:39:42 +0100 Subject: [Gambas-user] When does prefernces get saved? In-Reply-To: <1390226178.17182.27.camel@...2688...> References: <1390226178.17182.27.camel@...2688...> Message-ID: <52DF2F6E.7010808@...1...> Le 20/01/2014 14:56, Bruce a ?crit : > (back to more serious stuff) > > Some preferences get saved to the .project file, but when does this > occur? > > An example being the URL string on the Packaging tab. > > If I change that string and then generate an executable, the .project > file in the executable contains the old URL= value. It similarly > happens if I save the project before generating the executable. > > regards > Bruce > It should be fixed in revision #6096. Regards, -- Beno?t Minisini From dosida at ...626... Wed Jan 22 05:01:01 2014 From: dosida at ...626... (Dimitris Anogiatis) Date: Tue, 21 Jan 2014 21:01:01 -0700 Subject: [Gambas-user] How can I detect left or right click on TrayIcon In-Reply-To: <52DF2B8F.8020501@...1...> References: <52DF2B8F.8020501@...1...> Message-ID: Hey Beno?t, Thanks for the tip. I was able to use the MouseDown event on the Trayicon object to popup different menus on left and right click which is what I really wanted. You guys ROCK :) Keep up the great work :) Dimitris On Tue, Jan 21, 2014 at 7:23 PM, Beno?t Minisini < gambas at ...1...> wrote: > Le 21/01/2014 12:44, Dimitris Anogiatis a ?crit : > > Hey guys, > > > > I'm using Gambas 3.5.1 on Debian jessie (Gnome 3.8.4) and I was wondering > > how can one > > detect a left or right click on the TrayIcon control. > > > > What do I need to do that? Can anyone give me some pointers? > > > > Thanks in Advance > > > > Sincerely > > Dimitris > > The TrayIcon object raises mouse events. > > -- > Beno?t Minisini > > > ------------------------------------------------------------------------------ > CenturyLink Cloud: The Leader in Enterprise Cloud Services. > Learn Why More Businesses Are Choosing CenturyLink Cloud For > Critical Workloads, Development Environments & Everything In Between. > Get a Quote or Start a Free Trial Today. > > http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From willy at ...2734... Wed Jan 22 09:29:10 2014 From: willy at ...2734... (Willy Raets) Date: Wed, 22 Jan 2014 09:29:10 +0100 Subject: [Gambas-user] Gambas Future or what kind of Gambas we want. In-Reply-To: <52DEFBAC.9000401@...1887...> References: <52DEFBAC.9000401@...1887...> Message-ID: <1390379350.2620.21.camel@...3024...> On Tue, 2014-01-21 at 17:58 -0500, Kevin Fishburne wrote: > On 01/21/2014 03:57 PM, martin p cristia wrote: > > Stepping in this old conversation to point out my take: > > > > -computers nowadays are fast enough to run a VM that's fast enough to > > run a normal aplication > > > > -If Benoit says it's complicated, what's left for us ?????????????????? > > > > - so instead of trying to port gambas, why not making a installer that > > sets everything up for the inexperinced user??? Something like the > > SmallTalk approach. > > > > Making a small footprint VM+Linux+Gambas...they're all opensource, we > > can get rid of everyhing that Gambas dont need...even more, making a > > ligth weight Gambas or tagging components as "portable" and others "not" > > Say it's a 500MB installer? C'mon my android phone has "Hello world" > > like apps that weight 30MB, half giga is 15m download...even here in the > > ass of the world (small town Argentina) > > > > As for porting Gambas, it will be really good. I have the time (but not > > the brain) to help anyone that joins the party and has the know-how for > > a start. > > Sounds like a good idea to me. I'm planning on creating my own LiveCD to > allow users to run my game on Windows and OSX. Not a great solution, but > there aren't many options that the average user will stomach. > > For your idea I think we'd need to set up a script or small executable > that would: > > 1. Install VirtualBox. > 2. Extract a premade vdi (Virtual Disk Image) containing only what > Gambas needs to run its components (probably a lot). > 3. Extract a premade vbox file (VirtualBox Machine Definition) so > VirtualBox knows about the VM and all its settings. > 4. Create desktop and menu shortcuts to launch the VM. > > I remember Windows had self-extracting executables, like a zip file with > an .exe extension. Perhaps there's an open source program that can > create those on Windows and then run a script afterward? If so that > would take care of everything except creating the Gambas VM. From my > experience with doing the latter, the image always ends up around 7-8 > GB. I think getting the file size down to 1-2 GB is going to be tough. > Hi, That seems like what we try to do with GambOS. It is primarily meant as a learning environment, a Lubuntu 12.04 dressed down of all the excessive applications and with Gambas pre-installed and some guides to start learning. Exporting it to a pre-made Virtual Disk Image gives a .ova file of about 2.6 GB, but I believe that this can be brought down a bit more. Making an installation .iso of GambOS (for those who want to install it themselves) is about 1.2 GB. I have tested importing the .ova file into a Virtual Box running on Widows XP and that worked just fine. So for those running Widows and with little to no know how on Linux, this is an easy approach for running Gambas. If there would be a decent Gambas repository for Debain, I would love to base GambOS on Debian (instead of Lubuntu), so that a Raspberry Pi version of GambOS could be made. This would be a pre installed Debian/Gambas on a SD card. All the ideas are there, but the lack of some needed experts is missing in the project. I'm still hoping for a Debian packager who can make a recent Gambas repository (the Debain ones suck), as all it would take is a ftp location at gambos.org, to put all the stuff and from there all can be installed and updated. But I'm no Debian packager. I still need to buy a Raspberry Pi, to see what is possible there and figure out how to make the OS on SD card. But again, GambOS needs to have a repository with Gambas for that as compiling Gambas is no option. People need to be able to easily update Gambas, not compile every new version, as that seems to take ages on Raspberry. At the moment I'm about the only one working on the project. The initiator of the project somehow got to busy, and the person making the iso has received the latest GambOS.ova to make the iso over a month ago, but I haven't heard of him yet. So the project is kind of stuck and meanwhile I'm attempting to make the iso myself (first run in making an iso ended in a no longer working GambOS VM). If anyone is willing to work with me, that would be great. -- Kind regards, Willy (aka gbWilly) http://gambasshowcase.org/ http://howtogambas.org http://gambos.org From willy at ...2734... Wed Jan 22 09:48:54 2014 From: willy at ...2734... (Willy Raets) Date: Wed, 22 Jan 2014 09:48:54 +0100 Subject: [Gambas-user] multi document interface In-Reply-To: <52DC6AA0.2070805@...1...> References: <1389689447.3402.5.camel@...3024...> <52DC6AA0.2070805@...1...> Message-ID: <1390380534.2620.31.camel@...3024...> On Mon, 2014-01-20 at 01:15 +0100, Beno?t Minisini wrote: > Le 14/01/2014 09:50, Willy Raets a ?crit : > > Hi all, > > > > Does anyone have a small example of working with a multi document > > interface. I need one toolbar that works with all opened documents? > > > > For example a toolbar with a copy and paste button that can copy a text > > from one of the opened documents and paste it into an other opened > > document in the multi document interface. > > > > What is the best approach of achieving this? Any suggestions or a small > > example would be appreciated. > > > > The IDE does not fit your needs? It has a main window with a main > toolbar, and MDI child windows with their own private toolbars. Haven't thought about looking a the source code of the IDE, but I will definitely have a look. Need to download it anyway for checking if any more Dutch translations are needed. > > Then you create your Toolbar, fill them with ToolButton, ComboBox... > > The toolbar Key property must be set. > > The Action property of all toolbar controls must be set too. > > If a toolbar button has a corresponding menu, the menu must have the > same action. > > If an action is local to a MDI window (for example, in the IDE, two form > editors have its own instance of the same toolbar), it must start with a > dot. Read all the documentation of the Action class. I'll have a look at that too. Back to research :) > > Regards, > Thanks for leading me into the right direction. -- Kind regards, Willy (aka gbWilly) http://gambasshowcase.org/ http://howtogambas.org http://gambos.org From wally at ...2037... Wed Jan 22 10:15:21 2014 From: wally at ...2037... (wally) Date: Wed, 22 Jan 2014 10:15:21 +0100 Subject: [Gambas-user] How to handle unsigned Integer, Short, Long Message-ID: <52DF8C29.902@...2037...> Hello, Where can i find information and example code on: How to declare and handle *_unsigned_*__Integer, Short, Long in Gambas3 ? thank you wally From nero78 at ...43... Wed Jan 22 11:28:53 2014 From: nero78 at ...43... (nero) Date: Wed, 22 Jan 2014 02:28:53 -0800 (PST) Subject: [Gambas-user] Printing report Message-ID: <1390386533.58455.YahooMailNeo@...3291...> Hi all, I can print directly to pdf using priner component without any problem using somethink like: printer.Paper = Printer.A4 printer.OutputFile = "~/print.pdf" p1.Print() Now I've made some report using report component but I can't understand how to obtain the same, I can made pdf using : Dim r As Report r = New Rtest r.Preview() But it will popup the preview and I need to select print and pdf output. I need to made it automatic. How ? Thank's in advance, Marco. From nero78 at ...43... Wed Jan 22 11:32:12 2014 From: nero78 at ...43... (nero) Date: Wed, 22 Jan 2014 02:32:12 -0800 (PST) Subject: [Gambas-user] Report control label color Message-ID: <1390386732.16949.YahooMailNeo@...3292...> Hi all, I'm starting using report control but cannot find a way to set a label color , I've try with something like: lblID.Brush = ReportBrush.Color(Color.red) lblID.BackGround = ReportBrush.Color(Color.Yellow) It don't show error but don't change anythink. any idea ? Thank's in advance, Marco. From jussi.lahtinen at ...626... Wed Jan 22 12:43:35 2014 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Wed, 22 Jan 2014 13:43:35 +0200 Subject: [Gambas-user] How to handle unsigned Integer, Short, Long In-Reply-To: <52DF8C29.902@...2037...> References: <52DF8C29.902@...2037...> Message-ID: Instead of unsigned integer and short, why not just normal signed long? It can hold same values. Integer is variable of 32 bits and it's declaration determines how the first bit is interpreted. So in some cases it doesn't matter. Where do you need these exactly? Jussi On Wed, Jan 22, 2014 at 11:15 AM, wally wrote: > Hello, > > Where can i find information and example code on: > > How to declare and handle *_unsigned_*__Integer, Short, Long in Gambas3 ? > > thank you wally > > > ------------------------------------------------------------------------------ > CenturyLink Cloud: The Leader in Enterprise Cloud Services. > Learn Why More Businesses Are Choosing CenturyLink Cloud For > Critical Workloads, Development Environments & Everything In Between. > Get a Quote or Start a Free Trial Today. > > http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From tercoide at ...67... Wed Jan 22 13:17:52 2014 From: tercoide at ...67... (martin p cristia) Date: Wed, 22 Jan 2014 09:17:52 -0300 Subject: [Gambas-user] Gambas Future or what kind of Gambas we, want. In-Reply-To: References: Message-ID: > If anyone is willing to work with me, that would be great. > I do. I'm a experienced VB6 user, have a very little C knowledge and 60% Gambas, but learning fast. From gambas at ...1... Wed Jan 22 14:05:30 2014 From: gambas at ...1... (=?UTF-8?B?QmVub8OudCBNaW5pc2luaQ==?=) Date: Wed, 22 Jan 2014 14:05:30 +0100 Subject: [Gambas-user] multi document interface In-Reply-To: <1390380534.2620.31.camel@...3024...> References: <1389689447.3402.5.camel@...3024...> <52DC6AA0.2070805@...1...> <1390380534.2620.31.camel@...3024...> Message-ID: <52DFC21A.1070307@...1...> Le 22/01/2014 09:48, Willy Raets a ?crit : >> >> Then you create your Toolbar, fill them with ToolButton, ComboBox... >> >> The toolbar Key property must be set. >> >> The Action property of all toolbar controls must be set too. >> >> If a toolbar button has a corresponding menu, the menu must have the >> same action. >> >> If an action is local to a MDI window (for example, in the IDE, two form >> editors have its own instance of the same toolbar), it must start with a >> dot. Read all the documentation of the Action class. > > I'll have a look at that too. Back to research :) >> >> Regards, >> > > Thanks for leading me into the right direction. > If you have other questions, don't hesitate. I never had the time to write a explanation of how toolbars work... By the way, by defining all Toolbar keys and actions correctly, you have automatic toolbar configuration and shortcut configuration, like in the IDE. Regards, -- Beno?t Minisini From gambas at ...1... Wed Jan 22 14:06:49 2014 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Wed, 22 Jan 2014 14:06:49 +0100 Subject: [Gambas-user] How to handle unsigned Integer, Short, Long In-Reply-To: <52DF8C29.902@...2037...> References: <52DF8C29.902@...2037...> Message-ID: <52DFC269.80501@...1...> Le 22/01/2014 10:15, wally a ?crit : > Hello, > > Where can i find information and example code on: > > How to declare and handle *_unsigned_*__Integer, Short, Long in Gambas3 ? > > thank you wally > Alas you have no unsigned datatypes in Gambas. Maybe in a future Gambas 4? You have to use signed version, and be careful with the arithmetic you are doing. Regards, -- Beno?t Minisini From wally at ...2037... Wed Jan 22 14:19:31 2014 From: wally at ...2037... (wally) Date: Wed, 22 Jan 2014 14:19:31 +0100 Subject: [Gambas-user] How to handle unsigned Integer, Short, Long In-Reply-To: References: <52DF8C29.902@...2037...> Message-ID: <52DFC563.4070102@...2037...> Hello @Jussi, i must handle a lot of 4byte uint32_t values which represents node IP addresses of devices in a rs232 ring network. I know i might use long instead of unsigned 4byte integer, but i expected there is a keyword "unsigned" somewhere to declare as needed. The "long" approach for uint32_t is not very elegant solution. So answer seems to be, Gambas3 does not allow to declare unsigned variables as there are e.g. : uint32_t andd friends. Is this correct so far ? <-- seems yes, as Benoit wrote. @Benoit: Alas you have no unsigned datatypes in Gambas. Maybe in a future Gambas 4? You have to use signed version, and be careful with the arithmetic you are doing. If it is not too much work it would be nice to have unsigned in version 4. Yes, exactly, the maths is the problem. In c i get overflow warnings at lest. wally On 01/22/2014 12:43 PM, Jussi Lahtinen wrote: > Instead of unsigned integer and short, why not just normal signed long? It > can hold same values. Integer is variable of 32 bits and it's declaration > determines how the first bit is interpreted. So in some cases it doesn't > matter. > Where do you need these exactly? > > Jussi > > > On Wed, Jan 22, 2014 at 11:15 AM, wally wrote: > >> Hello, >> >> Where can i find information and example code on: >> >> How to declare and handle *_unsigned_*__Integer, Short, Long in Gambas3 ? >> >> thank you wally >> >> >> ------------------------------------------------------------------------------ >> CenturyLink Cloud: The Leader in Enterprise Cloud Services. >> Learn Why More Businesses Are Choosing CenturyLink Cloud For >> Critical Workloads, Development Environments & Everything In Between. >> Get a Quote or Start a Free Trial Today. >> >> http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > ------------------------------------------------------------------------------ > CenturyLink Cloud: The Leader in Enterprise Cloud Services. > Learn Why More Businesses Are Choosing CenturyLink Cloud For > Critical Workloads, Development Environments & Everything In Between. > Get a Quote or Start a Free Trial Today. > http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From bbruen at ...2308... Wed Jan 22 14:24:14 2014 From: bbruen at ...2308... (Bruce) Date: Wed, 22 Jan 2014 23:54:14 +1030 Subject: [Gambas-user] A few things about linked source files Message-ID: <1390397055.17182.60.camel@...2688...> I have not raised these as bugs because I don't believe anyone else would be mad enough to use linked source files as much as I have in the prototype I built recently to "win" our new project. I also believe there are more important things for the core developer(s) to concentrate on. So it's just a heads up list of "quirks" for later on when linked sources become more important. (For the sake of brevity, project A has the real file (say a form) and project B has the link.) 1) When the linked form is opened in B the form designer shows a short form of its toolbar, OK but the "locked" button state is false. This has effects lower down this list. It should be true. This also means there an inconsistent metaphor on the tabs for the form and the class. With the class the [read-only] "tag" is visible, with the class it isn't. But see 4) below. 2) (Trivial) If you inadvertently make the form the start-up class for B (Alt+s or a nervous twitch on the mouse) then B correctly starts the form on an F5. OK. But after getting over the initial heart attack it is very difficult to see the triangular start-up indicator in the project browser panel as it is almost totally obscured by the linked file adornment on the form icon. 3) The form designer reload button is hidden. It would be handy to have this button available as, if I have both projects open and change something on the form in project A and save it, there is no way short of closing B completely and re-opening it in a new IDE instance to see the changes. 4) (I lied! There is a way to do 3), but it has side effects.) If, on the form designer, I click on the Lock Form button the following occurs: a) the tab now correctly shows the [read-only] tag. But b) the link adornment in the project browser panel has disappeared. (and, what is weird is, it appears to be gone forever! Closing the IDE and starting a new instance doesn't even bring it back.) Oh. I just had a look at the .src directory. The link to the .form file has been snapped! This is probably a very bad thing. There are a few more but I am really tired tonight. I probably should raise a bug report on that last one - maybe tomorrow. regards Bruce From jussi.lahtinen at ...626... Wed Jan 22 14:36:33 2014 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Wed, 22 Jan 2014 15:36:33 +0200 Subject: [Gambas-user] How to handle unsigned Integer, Short, Long In-Reply-To: <52DFC563.4070102@...2037...> References: <52DF8C29.902@...2037...> <52DFC563.4070102@...2037...> Message-ID: If you declare variable as integer in Gambas and pass it as unsigned 32bit variable to lib made with C, then I don't think the lib will notice any difference. It's just that Gambas will show large values of that variable as negative numbers. Jussi On Wed, Jan 22, 2014 at 3:19 PM, wally wrote: > Hello > > @Jussi, > > i must handle a lot of 4byte uint32_t values which represents > node IP addresses of devices in a rs232 ring network. > I know i might use long instead of unsigned 4byte integer, > but i expected there is a keyword "unsigned" somewhere to > declare as needed. > The "long" approach for uint32_t is not very elegant solution. > > So answer seems to be, Gambas3 does not allow to declare > unsigned variables as there are e.g. : uint32_t andd friends. > > Is this correct so far ? <-- seems yes, as Benoit wrote. > > @Benoit: > > Alas you have no unsigned datatypes in Gambas. Maybe in a future Gambas 4? > > You have to use signed version, and be careful with the arithmetic you > are doing. > > > If it is not too much work it would be nice to have unsigned in version 4. > Yes, exactly, the maths is the problem. In c i get overflow warnings at > lest. > > wally > > > On 01/22/2014 12:43 PM, Jussi Lahtinen wrote: > > Instead of unsigned integer and short, why not just normal signed long? > It > > can hold same values. Integer is variable of 32 bits and it's declaration > > determines how the first bit is interpreted. So in some cases it doesn't > > matter. > > Where do you need these exactly? > > > > Jussi > > > > > > On Wed, Jan 22, 2014 at 11:15 AM, wally wrote: > > > >> Hello, > >> > >> Where can i find information and example code on: > >> > >> How to declare and handle *_unsigned_*__Integer, Short, Long in Gambas3 > ? > >> > >> thank you wally > >> > >> > >> > ------------------------------------------------------------------------------ > >> CenturyLink Cloud: The Leader in Enterprise Cloud Services. > >> Learn Why More Businesses Are Choosing CenturyLink Cloud For > >> Critical Workloads, Development Environments & Everything In Between. > >> Get a Quote or Start a Free Trial Today. > >> > >> > http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk > >> _______________________________________________ > >> Gambas-user mailing list > >> Gambas-user at lists.sourceforge.net > >> https://lists.sourceforge.net/lists/listinfo/gambas-user > >> > > > ------------------------------------------------------------------------------ > > CenturyLink Cloud: The Leader in Enterprise Cloud Services. > > Learn Why More Businesses Are Choosing CenturyLink Cloud For > > Critical Workloads, Development Environments & Everything In Between. > > Get a Quote or Start a Free Trial Today. > > > http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > ------------------------------------------------------------------------------ > CenturyLink Cloud: The Leader in Enterprise Cloud Services. > Learn Why More Businesses Are Choosing CenturyLink Cloud For > Critical Workloads, Development Environments & Everything In Between. > Get a Quote or Start a Free Trial Today. > > http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From nilsson at ...1979... Wed Jan 22 15:17:00 2014 From: nilsson at ...1979... (Carl Nilsson) Date: Thu, 23 Jan 2014 01:17:00 +1100 Subject: [Gambas-user] Gambas Future or what kind of Gambas we want. In-Reply-To: <1390379350.2620.21.camel@...3024...> References: <52DEFBAC.9000401@...1887...> <1390379350.2620.21.camel@...3024...> Message-ID: <006b4c$c1f855@...3239...> Wally: To return to the RPi and the like: As I posted on the Raspberrypi.org/phpBB3/ site on 22 Nov 2013 , I gratefully used an image file loaded into dropbox by "fuller" (see his post on 11 Aug 2012) for my wheezy-gambas3.img file - i.e. Debian wheezy with pre-installed Gambas3.2.1. Any attempt to update the Gambas to 3.5 failed. I did update my Linux, but any attempt to upgrade also failed. Using the .img file to load the CD card was easy. Then there was some messing around getting Gordon's Wiring Pi installed and finally, using a script from "Brian's Life" and info from Brian Hensley's site, I got the SPI working. I spent a great deal of time hunting around on the 'net. As you note, I'm stuck with those versions, but I do have a working image at that level which should do me for a few years!. You bet I've backed it up and I'm grateful for the help and assist i received from those sources mentioned. Burning a new image is so simple even I can do it! The lack is a way of keeping current with the developments of both Gambas3 and Linux, not to mention necessary add-ons like Wiring Pi (with SPI) that are necessary to properly utilise the attributes of the RPi. The same thing would/will apply if and when I get a BeagleBone Black, which considerably out-performs the RPi. I know it takes away some of the important free aspects of Linux and gambas and the other components, but I do pay for the hardware and I would not hesitate to pay for a supported OS image which combined at least the Linux, Gambas and "Wiring Pi" for these boards, so long as the price was commensurate with the philosophy of the boards themselves i.e. low. You only have to see how the few dollars cost of the apps for smartphones and tablets gets multiplied by the take up to see how just a few dollars for software can even make a lot of money. When you can multiply a very small cost by a million you get quite a large sum!. That seems reasonable to me. Otherwise I'm more of a parasite user than anything else. I'll never be able to usefully contribute to the sort of software development which occupies most of this mailing group. I'm not sure if that contradicts the basic licences for Gambas and Linux, and all, but maybe shareware "donations" would help the take up of all this marvellous work by dedicated enthusiasts. Just thoughts, Carl At 07:29 PM 22/01/2014, you wrote: >On Tue, 2014-01-21 at 17:58 -0500, Kevin Fishburne wrote: > > On 01/21/2014 03:57 PM, martin p cristia wrote: > > > Stepping in this old conversation to point out my take: > > > > > > -computers nowadays are fast enough to run a VM that's fast enough to > > > run a normal aplication > > > > > > -If Benoit says it's complicated, what's left for us ?????????????????? > > > > > >(snip) > >If there would be a decent Gambas repository for Debain, I would love to >base GambOS on Debian (instead of Lubuntu), so that a Raspberry Pi >version of GambOS could be made. This would be a pre installed >Debian/Gambas on a SD card. All the ideas are there, but the lack of >some needed experts is missing in the project. > >I'm still hoping for a Debian packager who can make a recent Gambas >repository (the Debain ones suck), as all it would take is a ftp >location at gambos.org, to put all the stuff and from there all can be >installed and updated. But I'm no Debian packager. > >I still need to buy a Raspberry Pi, to see what is possible there and >figure out how to make the OS on SD card. But again, GambOS needs to >have a repository with Gambas for that as compiling Gambas is no option. >People need to be able to easily update Gambas, not compile every new >version, as that seems to take ages on Raspberry. > >At the moment I'm about the only one working on the project. (snip) >-- >Kind regards, > >Willy (aka gbWilly) > >http://gambasshowcase.org/ >http://howtogambas.org >http://gambos.org > > > > > >------------------------------------------------------------------------------ >CenturyLink Cloud: The Leader in Enterprise Cloud Services. >Learn Why More Businesses Are Choosing CenturyLink Cloud For >Critical Workloads, Development Environments & Everything In Between. >Get a Quote or Start a Free Trial Today. >http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk >_______________________________________________ >Gambas-user mailing list >Gambas-user at lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/gambas-user Carl S Nilsson 137 Gordons Hill Road Lindisfarne, Tas. Australia 7015 From taboege at ...626... Wed Jan 22 16:24:58 2014 From: taboege at ...626... (Tobias Boege) Date: Wed, 22 Jan 2014 16:24:58 +0100 Subject: [Gambas-user] gb.inotify to capture filesystem events Message-ID: <20140122152458.GA514@...2774...> Hi all, a new component, gb.inotify, is public since some time (30th Dec 2013) but I never told you... It is about monitoring filesystem events on Linux as you may have already guessed from its name. Since it lacks time over here to write documentation, ATM, I'll simply give you a sample project which works with revision #6097. No! I'll give you TWO sample projects: one small (watch-gambas-directory), one rather bloated but more "elaborate" about the interface (test-inotify). Note that race conditions are for free by the nature of the matter: external events. There can be thousands of them before the kernel decides to run your Gambas application to process them all. Files can be created, modified and deleted; they may be long gone when your Gambas program gets to know they are created! I would like to hear about improvements for the interface (from the ones who actually understand how it works) since we don't have any compatibility requirements for this component yet. (Hint: the source code is small, so you may look there if you are interested and the samples don't help you much.) Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk -------------- next part -------------- A non-text attachment was scrubbed... Name: test-inotify-0.0.1.tar.gz Type: application/octet-stream Size: 5981 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: watch-gambas-directory-0.0.1.tar.gz Type: application/octet-stream Size: 5137 bytes Desc: not available URL: From rterry at ...1823... Wed Jan 22 23:00:44 2014 From: rterry at ...1823... (richard terry) Date: Thu, 23 Jan 2014 09:00:44 +1100 Subject: [Gambas-user] gambas pdf viewer does not show landscape pdf's Message-ID: <52E03F8C.2030105@...1823...> Hi List, Benoit, I've noted this for a long while and it is annoying, not sure if it is fixable. Enclosed is a pdf to show the problem - try the gambas example to see what happens. I wondered if anyone was capable of fixing this as I wouldn't know where to start. Regards richard -------------- next part -------------- A non-text attachment was scrubbed... Name: gpchartlowalbumin.pdf Type: application/pdf Size: 4404 bytes Desc: not available URL: From gambas at ...1... Thu Jan 23 01:00:23 2014 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Thu, 23 Jan 2014 01:00:23 +0100 Subject: [Gambas-user] gambas pdf viewer does not show landscape pdf's In-Reply-To: <52E03F8C.2030105@...1823...> References: <52E03F8C.2030105@...1823...> Message-ID: <52E05B97.4070909@...1...> Le 22/01/2014 23:00, richard terry a ?crit : > Hi List, Benoit, > > > I've noted this for a long while and it is annoying, not sure if it is > fixable. > > Enclosed is a pdf to show the problem - try the gambas example to see > what happens. > > I wondered if anyone was capable of fixing this as I wouldn't know > where to start. > > Regards > > richard > What's the problem? -- Beno?t Minisini From nilsson at ...1979... Thu Jan 23 02:19:35 2014 From: nilsson at ...1979... (Carl Nilsson) Date: Thu, 23 Jan 2014 12:19:35 +1100 Subject: [Gambas-user] Gambas Future or what kind of Gambas we want. Message-ID: <64e542$c10ugb@...3015...> Willy: My apologies - also to Wally. My previous on this subject should have been addressed to you. It was in the early hours! I suppose the more basic answer as to getting a greater take up on this lovely language is that you have to identify and satisfy the target market. I would guess by far the largest number of potential - not current - users are those who have come from Windows and VB6. If they are long-standing users of Linux, then they are probably conversant with C, etc. and don't particularly need/want a Basic derivative. There has to be some imperative for them to switch to Linux. but once that decision is made, their troubles begin! It's all in the installation, maintenance and use of Linux and added components that a novice gets bogged down, not in Gambas itself. Well, all that can be done there is to offer a packaged installation that's as simple as possible to support and maintain. After all, the user had some reason to switch to Linux, so has to expect some learning process, just as with Windows. Most smartphone users do not know much about Android - he/she just immediately starts to use it and learns that way. I can't see Linux ever becoming that simple - it's a different ball game - but there's no doubt that the present process of getting Gambas up and running on a popular board like RPi and using all the latter's attributes is just too cumbersome and time consuming. If I hadn't been retired, I would not have stuck to it so far. Gambas is not the end in itself - you have to look at the end product and make Gambas a part of the package the user is wanting to use. I'll get off the air now! Carl From jussi.lahtinen at ...626... Thu Jan 23 02:31:56 2014 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Thu, 23 Jan 2014 03:31:56 +0200 Subject: [Gambas-user] Gambas Future or what kind of Gambas we want. In-Reply-To: <64e542$c10ugb@...3015...> References: <64e542$c10ugb@...3015...> Message-ID: I would guess by far the largest number of potential > - not current - users are those who have come from Windows and > VB6. If they are long-standing users of Linux, then they are > probably conversant with C, etc. and don't particularly need/want a > Basic derivative. I strongly disagree here. C is not for same purposes than basic languages. C is good for system programming and things that require fast execution speed. Gambas is better for just about everything else. > There has to be some imperative for them to switch > to Linux. but once that decision is made, their troubles begin! Well my troubles only decreased. Jussi From gambas at ...2524... Thu Jan 23 11:14:33 2014 From: gambas at ...2524... (gambas at ...2524...) Date: Thu, 23 Jan 2014 10:14:33 +0000 Subject: [Gambas-user] Issue 493 in gambas: IDE Refresh Project button doesn't reload symbolic links In-Reply-To: <1-6813199134517018827-9562321926249786820-gambas=googlecode.com@...2524...> References: <1-6813199134517018827-9562321926249786820-gambas=googlecode.com@...2524...> <0-6813199134517018827-9562321926249786820-gambas=googlecode.com@...2524...> Message-ID: <2-6813199134517018827-9562321926249786820-gambas=googlecode.com@...2524...> Updates: Status: Accepted Labels: -Version Version-3.5.0 Comment #2 on issue 493 by benoit.m... at ...626...: IDE Refresh Project button doesn't reload symbolic links http://code.google.com/p/gambas/issues/detail?id=493 (No comment was entered for this change.) -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From gambas at ...2524... Thu Jan 23 11:15:33 2014 From: gambas at ...2524... (gambas at ...2524...) Date: Thu, 23 Jan 2014 10:15:33 +0000 Subject: [Gambas-user] Issue 493 in gambas: IDE Refresh Project button doesn't reload symbolic links In-Reply-To: <2-6813199134517018827-9562321926249786820-gambas=googlecode.com@...2524...> References: <2-6813199134517018827-9562321926249786820-gambas=googlecode.com@...2524...> <0-6813199134517018827-9562321926249786820-gambas=googlecode.com@...2524...> Message-ID: <3-6813199134517018827-9562321926249786820-gambas=googlecode.com@...2524...> Updates: Status: Fixed Comment #3 on issue 493 by benoit.m... at ...626...: IDE Refresh Project button doesn't reload symbolic links http://code.google.com/p/gambas/issues/detail?id=493 It should be fixed in revision #6098. The linked form will be updated by the "reload" button, not by the "refresh project" action. -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From gambas at ...2524... Thu Jan 23 11:17:44 2014 From: gambas at ...2524... (gambas at ...2524...) Date: Thu, 23 Jan 2014 10:17:44 +0000 Subject: [Gambas-user] Issue 495 in gambas: Toolbar config doesn't set button width properly In-Reply-To: <0-6813199134517018827-8713430213962951612-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-8713430213962951612-gambas=googlecode.com@...2524...> Message-ID: <1-6813199134517018827-8713430213962951612-gambas=googlecode.com@...2524...> Updates: Status: WontFix Labels: -Version Version-TRUNK Comment #1 on issue 495 by benoit.m... at ...626...: Toolbar config doesn't set button width properly http://code.google.com/p/gambas/issues/detail?id=495 You must set the AutoResize property of your toolbar buttons to TRUE. -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From gambas.fr at ...626... Thu Jan 23 11:33:44 2014 From: gambas.fr at ...626... (Fabien Bodard) Date: Thu, 23 Jan 2014 11:33:44 +0100 Subject: [Gambas-user] Report control label color In-Reply-To: <1390386732.16949.YahooMailNeo@...3292...> References: <1390386732.16949.YahooMailNeo@...3292...> Message-ID: Thank you for the advise... it's corrected in the last rev 6099. 2014/1/22 nero : > Hi all, > > I'm starting using report control but cannot find a way to set a label color , I've try with something like: > > lblID.Brush = ReportBrush.Color(Color.red) > lblID.BackGround = ReportBrush.Color(Color.Yellow) > > It don't show error but don't change anythink. > > any idea ? > > Thank's in advance, > Marco. > > > ------------------------------------------------------------------------------ > CenturyLink Cloud: The Leader in Enterprise Cloud Services. > Learn Why More Businesses Are Choosing CenturyLink Cloud For > Critical Workloads, Development Environments & Everything In Between. > Get a Quote or Start a Free Trial Today. > http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -- Fabien Bodard From taboege at ...626... Thu Jan 23 12:49:31 2014 From: taboege at ...626... (Tobias Boege) Date: Thu, 23 Jan 2014 12:49:31 +0100 Subject: [Gambas-user] Gambas Future or what kind of Gambas we want. In-Reply-To: References: <64e542$c10ugb@...3015...> Message-ID: <20140123114931.GA519@...2774...> On Thu, 23 Jan 2014, Jussi Lahtinen wrote: > I would guess by far the largest number of potential > > - not current - users are those who have come from Windows and > > VB6. If they are long-standing users of Linux, then they are > > probably conversant with C, etc. and don't particularly need/want a > > Basic derivative. > > > I strongly disagree here. C is not for same purposes than basic languages. > C is good for system programming and things that require fast execution > speed. Gambas is better for just about everything else. > > > > > There has to be some imperative for them to switch > > to Linux. but once that decision is made, their troubles begin! > > > Well my troubles only decreased. > Well said! I'm personally mostly using C for every day programming (because I like to exploit my machine's characteristics and mix in assembly here and there). My "every day programming" may not be everyone's "every day programming", anyway. But there is a time and place for every language and I tend to believe that an experienced programmer knows this and isn't biased towards a language just because it doesn't look as powerful in some areas as the language he is accustomed to. For me GUI applications are definitely Gambas' domain. This includes all the front-end applications for command-line programs and all programs that must control other programs (even without GUI). Also I wouldn't use anything but Gambas for painting or database-related stuff (of the languages, I know of). This is just what I observed, scrolling through my recently opened projects in the IDE. E.g., for the paper I'm currently writing (about connecting random points in a circle and an upper bound for the length of the resulting path when using a special algorithm), the graphics are from a Gambas program, less than 100 LOC - and they're good! I can't think of any other language where this task is as easy as in Gambas (at least with the visual effects I wanted to have in the graphics). The same program gave me counterexamples for weaker bounds and tested my hypothesis 150 million times within two hours. Of course, my yet-to-write assembly test program will be much faster (especially if I get access to some hardware RNG) but no chance to give me those fancy graphics! But if it's about some "target market" (jeez!), we shouldn't forget people like me (how self-absorbed am I today again?): Gambas was my very first programming language. I got to know it from school, taught it myself, though, as it wasn't on the curriculum and my brain was fresh enough back then. What I want to say is: there are lots of schools and I know of some teaching Gambas - and there is no reason why their number should decrease. It's not that we should concentrate on VB6 veterans (and maybe make Gambas more VB6). There are also seasoned Linux users who will appreciate Gambas and there are youngsters whose first language Gambas may be. All the old VB6 users _I_ have met (shortly after their switch to Linux and Gambas, admittedly!) were really confused about the distributions' way of package management, Gambas components, etc. and more complained about the whole situation. I can't remember having heard from them again... No doubt, migrating windows users (VB6 or not) are potential Gambas users and their number may be greater than the ones I was talking about but let's don't concentrate on any particular group and let Gambas evolve naturally. I don't like the notion of a "target market" anyway. My two cents... spread over still too many paragraphs, sorry... Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From nilsson at ...1979... Thu Jan 23 13:57:27 2014 From: nilsson at ...1979... (Carl Nilsson) Date: Thu, 23 Jan 2014 23:57:27 +1100 Subject: [Gambas-user] Gambas Future or what kind of Gambas we want. In-Reply-To: <20140123114931.GA519@...2774...> References: <64e542$c10ugb@...3015...> <20140123114931.GA519@...2774...> Message-ID: <006b4c$c1n1f1@...3239...> Tobias: Thank you for reply. I think maybe you misunderstood a couple of points I was trying to make. I was not criticizing any language, particularly not Gambas. Nor was inferring that Linux is not a great set of op. systems, one or many of which would be of long-term advantage to a user. Switching to Linux does however pose a early barrier that must be surmounted before many people become comfortable with it. I have been programming off and on for nearly 55 years, but only as a scientific user and not a professional. I met Unix in the 1970's, but did not continue to use it. To put VB6 onto Windows XP, I insert the CD, click a few times, put in my keycode and it is done. Heaps and heaps of online help, both from MS and the net. The installation process for Gambas into Linux, plus other components gets better with time, but is still challenging for many, including those with significant past programming experience. You said it yourself: "There are also seasoned Linux users who will appreciate Gambas and there are youngsters whose first language Gambas may be. All the old VB6 users _I_ have met (shortly after their switch to Linux and Gambas, admittedly!) were really confused about the distributions' way of package management, Gambas components, etc. and more complained about the whole situation. I can't remember having heard from them again.". That's my main point. The original question was about how to ensure the future of gambas. Maybe that's already been done by it's intrinsic quality. However, to increase the takeup and use - and hence continued development long into the future - you have to pay attention to potential users and meet their requirements for installation and maintenance. A bit more attention to nearly two million users of a board like the RPi would not go amiss. The BeagleBone Black creates another opportunity. Why Python and not Gambas? Carl >(snip) From nando_f at ...951... Thu Jan 23 15:12:12 2014 From: nando_f at ...951... (nando) Date: Thu, 23 Jan 2014 09:12:12 -0500 Subject: [Gambas-user] Gambas Future or what kind of Gambas we want. In-Reply-To: References: <64e542$c10ugb@...3015...> Message-ID: <20140123140642.M79987@...951...> I cannot thank Benoit(et al) enough for Gambas. I am very, very, happy with it. I started with 1.0.4. Did a huge major corporate/mobile thing with 1.0.17/18 and working with 2 and 3 now on other items. As an old-timer, I can write an old-style program or do super OO with it. I cannot say enough. Thank you -Nando ---------- Original Message ----------- From: Jussi Lahtinen To: mailing list for gambas users Sent: Thu, 23 Jan 2014 03:31:56 +0200 Subject: Re: [Gambas-user] Gambas Future or what kind of Gambas we want. > I would guess by far the largest number of potential > > - not current - users are those who have come from Windows and > > VB6. If they are long-standing users of Linux, then they are > > probably conversant with C, etc. and don't particularly need/want a > > Basic derivative. > > I strongly disagree here. C is not for same purposes than basic languages. > C is good for system programming and things that require fast execution > speed. Gambas is better for just about everything else. > > > There has to be some imperative for them to switch > > to Linux. but once that decision is made, their troubles begin! > > Well my troubles only decreased. > > Jussi > ------------------------------------------------------------------------------ > CenturyLink Cloud: The Leader in Enterprise Cloud Services. > Learn Why More Businesses Are Choosing CenturyLink Cloud For > Critical Workloads, Development Environments & Everything In Between. > Get a Quote or Start a Free Trial Today. > http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user ------- End of Original Message ------- From tom at ...3139... Thu Jan 23 15:46:31 2014 From: tom at ...3139... (Tom) Date: Thu, 23 Jan 2014 09:46:31 -0500 Subject: [Gambas-user] Gambas Future or what kind of Gambas we want. In-Reply-To: <006b4c$c1n1f1@...3239...> References: <64e542$c10ugb@...3015...> <20140123114931.GA519@...2774...> <006b4c$c1n1f1@...3239...> Message-ID: <52E12B47.2040202@...3139...> I have to agree 100% with Carl! I too have experience programming GUI's for about 15 years with VB6. I have a very small amount of Linux experience. The reason I am reading this list is that I did not like .Net and wanted to find an alternative to VB6. I found Gambas and it looked good. I managed to get (after a week of trying) a version of Linux running and got Gambas running on it. All I wanted to do was create some sample user screens to show someone my concepts. That was at least 6 months ago. The whole Linux experience was more than I had time for or wanted to suffer through. The first graphical drag/drop thing I tried to do wouldn't work with Gambas, however was not too difficult with VB6. I don't know how to compile a new version/release of Gambas when bug fixes come out. Its far to complicated for me. If I had a few months of spare time, maybe. So I gave up, found my old copy of VB6 and was running in about an hour. I don't feel I can use VB6 for anything for a customer these days, so I am still looking for something like VB6 that I can use without needing to learn a new operating system to use it. From what I have seen, and some of the playing around with Gambas, it looks very nice and the closest I have seen to VB6. I just get very frustrated when it takes months of work to do an eight hour project. I know a lot of people will say "its not that hard" or "I did it in only four hours" but you are already knowledgeable in Linux. Tom On 1/23/2014 7:57 AM, Carl Nilsson wrote: > Tobias: > Thank you for reply. I think maybe you misunderstood a couple of > points I was trying to make. > I was not criticizing any language, particularly not Gambas. Nor was > inferring that Linux is not a great set of op. systems, one or many > of which would be of long-term advantage to a user. Switching to > Linux does however pose a early barrier that must be surmounted > before many people become comfortable with it. I have been > programming off and on for nearly 55 years, but only as a scientific > user and not a professional. I met Unix in the 1970's, but did not > continue to use it. To put VB6 onto Windows XP, I insert the CD, > click a few times, put in my keycode and it is done. Heaps and heaps > of online help, both from MS and the net. The installation process > for Gambas into Linux, plus other components gets better with time, > but is still challenging for many, including those with significant > past programming experience. > > You said it yourself: "There are also seasoned Linux users who will > appreciate Gambas > and there are youngsters whose first language Gambas may be. All the old VB6 > users _I_ have met (shortly after their switch to Linux and Gambas, > admittedly!) were really confused about the distributions' way of package > management, Gambas components, etc. and more complained about the whole > situation. I can't remember having heard from them again.". > > That's my main point. The original question was about how to ensure > the future of gambas. Maybe that's already been done by it's > intrinsic quality. However, to increase the takeup and use - and > hence continued development long into the future - you have to pay > attention to potential users and meet their requirements for > installation and maintenance. A bit more attention to nearly two > million users of a board like the RPi would not go amiss. The > BeagleBone Black creates another opportunity. Why Python and not Gambas? > Carl > >> (snip) > ------------------------------------------------------------------------------ > CenturyLink Cloud: The Leader in Enterprise Cloud Services. > Learn Why More Businesses Are Choosing CenturyLink Cloud For > Critical Workloads, Development Environments & Everything In Between. > Get a Quote or Start a Free Trial Today. > http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From jussi.lahtinen at ...626... Thu Jan 23 17:01:31 2014 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Thu, 23 Jan 2014 18:01:31 +0200 Subject: [Gambas-user] Gambas Future or what kind of Gambas we want. In-Reply-To: <52E12B47.2040202@...3139...> References: <64e542$c10ugb@...3015...> <20140123114931.GA519@...2774...> <006b4c$c1n1f1@...3239...> <52E12B47.2040202@...3139...> Message-ID: > I know a lot of people will say "its not that hard" or "I did it in only > four > hours" but you are already knowledgeable in Linux. > No one has born with skills to use Windows or Linux. But installing Windows or Ubuntu is almost exactly the same. I didn't notice any significant difference. Then you go to Ubuntu Software Center and write "gambas" and click on "install". With modern system this should be done in *much* less than two hours (depending on Internet connection and amount of updates). That was my first experience with Linux and Gambas. I understand if you expect everything work like in Windows, you really have troubles. You cannot find InstallGambas.exe anywhere and Gambas is not VB6 clone even though it's similar enough to easily convert your projects. But instead of guessing what were the troubles, please tell us, it's only way to improve things. Jussi From iss_boss at ...770... Thu Jan 23 17:38:10 2014 From: iss_boss at ...770... (ISS Boss) Date: Thu, 23 Jan 2014 11:38:10 -0500 Subject: [Gambas-user] Gambas Future or what kind of Gambas we want. In-Reply-To: <52E12B47.2040202@...3139...> References: <64e542$c10ugb@...3015...> <20140123114931.GA519@...2774...> <006b4c$c1n1f1@...3239...> <52E12B47.2040202@...3139...> Message-ID: <52E14572.5040607@...770...> Hi, Tom. I have to take a small issue with your last few sentences. I an definitely NOT knowledgeable in LINUX (Ubuntu) and definitely cannot compile all the new changes in Gambas as they come hot off the press, but I did manage to install Ubuntu in under an hour and create my first 'hello world' program. I did this barely two months after installing Ubuntu (x64) on my second development computer. I, too, come from an extensive background in hardware & programming having started in 1962 for 20 years in the US Navy (that's over 50 years now) and state that creating programs in any language is simply a matter of becoming familiar with it. Gambas has the advantage (for me, anyway) of being very VB6-like. I have now (after six months or so) taken several of my in-house utilities and converted them into Gambas utilities. One of the things I would very much like to see is the direct importing of a MS .MDB file int something Gambas can use. If that already exists, then I would welcome someone pointing me in that direction. I have an extensive (some 3800 records) database containing my DVD/Vinyl/VHS/Cassette music & movie library and really don't want to recreate it in Gambas. I don't profess to know what happens (much) under the hood of LINUX, but as I go along, I am learning. I keep a pen/pencil notebook near my development computer that I use to keep track of things I learn about the OS and how to manipulate it. At the end of the week, I transcribe them into a searchable PDF file I created to hold all these goodies. You might try something like that. In time, I suspect that you will get the hang of Gambas and move more and more of your work over onto that platform. Yes, it does take time. My 'hello world' program took three days to complete. As I gain confidence (and skill) sections of code go much faster. As for migrating VB6 into Gambas I simply take a subroutine/function and drop it into Gambas and work on the errors it produces. Most of them are simple to fix. One big help is opening the .FRM file in a text editor and using the values to re-create the form in Gambas is relatively easy. Sometimes, you can do it in a matter of an hour or so depending on how complicated the form actually is. As I gain experience in Gambas, I keep finding new ways to do things that are actually shorter and easier to do in Gambas than VB6. Who knew? Bill Tom wrote, On 01/23/2014 09:46: I have to agree 100% with Carl! I too have experience programming GUI's for about 15 years with VB6. I have a very small amount of Linux experience. The reason I am reading this list is that I did not like .Net and wanted to fin d an alternative to VB6. I found Gambas and it looked good. I managed to get (after a week of trying) a version of Linux running and got Gambas running on it. All I wanted to do was create some sample user screens to show someone my concepts. That was at least 6 months ago. The whole Linux experience was more than I had time for or wanted to suffer through. The first graphical drag/drop thing I tried to do wouldn't work with Gambas, however was not too difficult with VB6. I don't know how to compile a new version/release of Gambas when bug fixes come out. Its far to complicated for me. If I had a few months of spare time, maybe. So I gave up, found my old copy of VB6 and was running in about an hour . I don't feel I can use VB6 for anything for a customer these days, so I am stil l looking for something like VB6 that I can use without needing to learn a new operating system to use it. From what I have seen, and some of the playing around with Gambas, it looks very nice and the closest I have seen to VB6. I just get very frustrated when it takes months of work to do an eight hour pro ject. I know a lot of people will say "its not that hard" or "I did it in only four hours" but you are already knowledgeable in Linux. Tom From gambas at ...2524... Thu Jan 23 18:34:20 2014 From: gambas at ...2524... (gambas at ...2524...) Date: Thu, 23 Jan 2014 17:34:20 +0000 Subject: [Gambas-user] Issue 503 in gambas: Debian packages: Lintian warning debian-changelog-line-too-long Message-ID: <0-6813199134517018827-4970729376299310628-gambas=googlecode.com@...2524...> Status: New Owner: ---- Labels: Version-TRUNK Type-Bug Priority-Medium OpSys-Linux Dist-Debian Arch-Any Desktop-Any GUI-Any New issue 503 by computer... at ...626...: Debian packages: Lintian warning debian-changelog-line-too-long http://code.google.com/p/gambas/issues/detail?id=503 1) Having just built my Gambas project, I see in GDebi (tab lintian output): W: wikilist: debian-changelog-line-too-long line 21 W: wikilist: debian-changelog-line-too-long line 22 W: wikilist: debian-changelog-line-too-long line 23 W: wikilist: debian-changelog-line-too-long line 29 W: wikilist: debian-changelog-line-too-long line 43 Wikipedia tells me this: N: The given line of the latest changelog entry is over 80 columns. Such N: changelog entries may look poor in terminal windows and mail messages N: and be annoying to read. Please wrap changelog entries at 80 columns N: or less where possible. 2) GIVE THE FOLLOWING INFORMATIONS (if they are appropriate): Version: TRUNK (probably) Operating system: Linux Distribution: Ubuntu / Debian Architecture: All 3) How to solve this bug/warning Please insert a line break after 80 characters when compiling a Gambas project to DEB. Since this affects Debian packages, this warning is also present on Ubuntu and its derivatives. -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From bbruen at ...2308... Fri Jan 24 00:26:26 2014 From: bbruen at ...2308... (Bruce) Date: Fri, 24 Jan 2014 09:56:26 +1030 Subject: [Gambas-user] Stopping an event when user clicks on the form menu Message-ID: <1390519586.23457.7.camel@...2688...> I have a form with a textbox that "MUST" be filled in before moving on to the next control or any other control within the form. Fine, so I implement a txtManditory_LostFocus method that just checks that there is some text in there. My problems are: 1) if the entire form loses focus, the lostfocus event fires. 2) if the user tries to click on the form menu the lost focus event fires. I think I have got around 1) by using Object.Lock in a Form_Leave() handler, but 2) has got me stumped. Any clues? tia Bruce From Karl.Reinl at ...2345... Fri Jan 24 00:44:16 2014 From: Karl.Reinl at ...2345... (Charlie Reinl) Date: Fri, 24 Jan 2014 00:44:16 +0100 Subject: [Gambas-user] Stopping an event when user clicks on the form menu In-Reply-To: <1390519586.23457.7.camel@...2688...> References: <1390519586.23457.7.camel@...2688...> Message-ID: <1390520656.3306.5.camel@...40...> Am Freitag, den 24.01.2014, 09:56 +1030 schrieb Bruce: > I have a form with a textbox that "MUST" be filled in before moving on > to the next control or any other control within the form. Fine, so I > implement a txtManditory_LostFocus method that just checks that there is > some text in there. > > My problems are: > 1) if the entire form loses focus, the lostfocus event fires. > 2) if the user tries to click on the form menu the lost focus event > fires. > > I think I have got around 1) by using Object.Lock in a Form_Leave() > handler, but 2) has got me stumped. > > Any clues? > > tia > Bruce Salut Bruce, disable all others and set a 'continue' (enabled) behind ..... or let the user only enter to the form after filling that field in a single form/field -- Amicalement Charlie From nilsson at ...1979... Fri Jan 24 01:23:18 2014 From: nilsson at ...1979... (Carl Nilsson) Date: Fri, 24 Jan 2014 11:23:18 +1100 Subject: [Gambas-user] Gambas Future or what kind of Gambas we want. In-Reply-To: References: <64e542$c10ugb@...3015...> <20140123114931.GA519@...2774...> <006b4c$c1n1f1@...3239...> <52E12B47.2040202@...3139...> Message-ID: <64e542$c1bghj@...3015...> Jussi said: "But instead of guessing what were the troubles, please tell us, it's only way to improve things." That's a fair question. > > >Some time ago I had actually bought a set of DVD's with >openSUSE12.2, after unsuccessfully trying to intall Lubuntu and >Ubuntu on an older computer. (I'll try again some time). However, >openSUSE 12.2 installed no problems. Then I looked for a repository >for gambas3 and once again, munix9:gambas/openSUSE_12.2 came to the >fore. However, gambas3 would not install its examples because of >missing dependencies like imlib2, libogg and v4l-tools: I seached >the net, obtaining many pieces of advice on installing these. (Yes, >the process is now consuming heaps of time and energy). I started to >become familiar with "zypper". I tried >http://sourceforge.net/projects/enlightenment/. I'll say I neded >enlightenment! By the time I got to "sed -i >"DGifOpen/s:fd:&,NULL:"src/modules/loaders/loader_gif.c &.configure >--prefix=/usr --disable-static && make" and similar instructions the >cat (the one with four legs, not the Linux command) had the good >sense to leave the house! This went on for some days - days, not >hours! Looking now at my notes (and ignoring the expletives) I >found that imlib2 needed libmlib2.so.1 etc etc. Finally, I hit the >"search" facility at >software.opensuse.org/search?.g=lib&baseproject=openSUSE% and >installed the missing components. Yes, it's a learning experience >in Linux as it actually is, but no, it's not what I need when I >really want to get on with using Gambas. If you try to install Gambas 3.5 on the Raspberry Pi running it's version of Debian Wheezy, the CPU goes into overdrive and stays there. That's what happens in the real world of newbies to Linux and Gambas. No wonder Tobias "never hears from them again"! Carl From nilsson at ...1979... Fri Jan 24 01:30:21 2014 From: nilsson at ...1979... (Carl Nilsson) Date: Fri, 24 Jan 2014 11:30:21 +1100 Subject: [Gambas-user] Gambas Future or what kind of Gambas we want. In-Reply-To: References: <64e542$c10ugb@...3015...> <20140123114931.GA519@...2774...> <006b4c$c1n1f1@...3239...> <52E12B47.2040202@...3139...> Message-ID: <64e542$c1bhkm@...3015...> Now I'm having trouble with the mailing list! Here's my response to a fair question. >Some time ago I had actually bought a set of DVD's with >openSUSE12.2, after unsuccessfully trying to intall Lubuntu and >Ubuntu on an older computer. (I'll try again some time). However, >openSUSE 12.2 installed no problems. Then I looked for a repository >for gambas3 and once again, munix9:gambas/openSUSE_12.2 came to the >fore. However, gambas3 would not install its examples because of >missing dependencies like imlib2, libogg and v4l-tools: I seached >the net, obtaining many pieces of advice on installing these. (Yes, >the process is now consuming heaps of time and energy). I started to >become familiar with "zypper". I tried >http://sourceforge.net/projects/enlightenment/. I'll say I neded >enlightenment! By the time I got to "sed -i >"DGifOpen/s:fd:&,NULL:"src/modules/loaders/loader_gif.c &.configure >--prefix=/usr --disable-static && make" and similar instructions the >cat (the one with four legs, not the Linux command) had the good >sense to leave the house! This went on for some days - days, not >hours! Looking now at my notes (and ignoring the expletives) I >found that imlib2 needed libmlib2.so.1 etc etc. Finally, I hit the >"search" facility at >software.opensuse.org/search?.g=lib&baseproject=openSUSE% and >installed the missing components. Yes, it's a learning experience >in Linux as it actually is, but no, it's not what I need when I >really want to get on with using Gambas. If you try to install Gambas 3.5 on the Raspberry Pi running it's version of Debian Wheezy, the CPU goes into overdrive and stays there. That's what happens in the real world of newbies to Linux and Gambas. No wonder Tobias "never hears from them again"! Carl > But >instead of guessing what were the troubles, please tell us, it's only way >to improve things. > >Jussi >------------------------------------------------------------------------------ >CenturyLink Cloud: The Leader in Enterprise Cloud Services. >Learn Why More Businesses Are Choosing CenturyLink Cloud For >Critical Workloads, Development Environments & Everything In Between. >Get a Quote or Start a Free Trial Today. >http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk >_______________________________________________ >Gambas-user mailing list >Gambas-user at lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/gambas-user Carl S Nilsson 137 Gordons Hill Road Lindisfarne, Tas. Australia 7015 From nilsson at ...1979... Fri Jan 24 01:45:19 2014 From: nilsson at ...1979... (Carl Nilsson) Date: Fri, 24 Jan 2014 11:45:19 +1100 Subject: [Gambas-user] Gambas Future or what kind of Gambas we want. Message-ID: <64e542$c1bkco@...3015...> Let's try this! Jussi said: "But instead of guessing what were the troubles, please tell us, it's only way to improve things." That's a fair question. Some time ago I had actually bought a set of DVD's with openSUSE12.2, after unsuccessfully trying to intall Lubuntu and Ubuntu on an older computer. (I'll try again some time). However, openSUSE 12.2 installed no problems. Then I looked for a repository for gambas3 and once again, munix9:gambas/openSUSE_12.2 came to the fore. However, gambas3 would not install its examples because of missing dependencies like imlib2, libogg and v4l-tools: I seached the net, obtaining many pieces of advice on installing these. (Yes, the process is now consuming heaps of time and energy). I started to become familiar with "zypper". I tried http://sourceforge.net/projects/enlightenment/. I'll say I neded enlightenment! By the time I got to "sed -i "DGifOpen/s:fd:&,NULL:"src/modules/loaders/loader_gif.c &.configure --prefix=/usr --disable-static && make" and similar instructions the cat (the one with four legs, not the Linux command) had the good sense to leave the house! This went on for some days - days, not hours! Looking now at my notes (and ignoring the expletives) I found that imlib2 needed libmlib2.so.1 etc etc. Finally, I hit the "search" facility at software.opensuse.org/search?.g=lib&baseproject=openSUSE% and installed the missing components. Yes, it's a learning experience in Linux as it actually is, but no, it's not what I need when I really want to get on with using Gambas. If you try to install Gambas 3.5 on the Raspberry Pi running it's version of Debian Wheezy, the CPU goes into overdrive and stays there. That's what happens in the real world of newbies to Linux and Gambas. No wonder Tobias "never hears from them again"! Carl From jussi.lahtinen at ...626... Fri Jan 24 02:13:33 2014 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Fri, 24 Jan 2014 03:13:33 +0200 Subject: [Gambas-user] Gambas Future or what kind of Gambas we want. In-Reply-To: <64e542$c1bkco@...3015...> References: <64e542$c1bkco@...3015...> Message-ID: I see your all three replies..? Some time ago I had actually bought a set of DVD's with openSUSE12.2, > Bought? It's free! > ... after unsuccessfully trying to intall Lubuntu and Ubuntu on an older > computer. > Off topic for this list, but I'm curious what went wrong? > However, gambas3 would not install its examples because of > missing dependencies like imlib2, libogg and v4l-tools: I seached the > net, obtaining many pieces of advice on installing these. > All dependencies should be installed automatically... there were something wrong in how Gambas was packaged. I guess this is under work, if not fixed already. > I tried > http://sourceforge.net/projects/enlightenment/. I'll say I neded > enlightenment! > By the time I got to "sed -i > "DGifOpen/s:fd:&,NULL:"src/modules/loaders/loader_gif.c &.configure > --prefix=/usr --disable-static && make" and similar instructions the > cat (the one with four legs, not the Linux command) had the good > sense to leave the house! > Nothing to do with Gambas and so completely unnecessary. Those commands seems to be for compiling "enlightenment", not just for installing it. Not newbie stuff at all. > > If you try to install Gambas 3.5 on the Raspberry Pi running it's > version of Debian Wheezy, the CPU goes into overdrive and stays > there. > Without details hard to say what happened. Compiling any C program is quite CPU intensive and RPi isn't very fast. So maybe it only took very *very* long. > That's what happens in the real world of newbies to Linux and Gambas. > Sounds like I can't recommend openSUSE to newbies. Jussi From nilsson at ...1979... Fri Jan 24 03:20:27 2014 From: nilsson at ...1979... (Carl Nilsson) Date: Fri, 24 Jan 2014 13:20:27 +1100 Subject: [Gambas-user] Gambas Future or what kind of Gambas we want. In-Reply-To: References: <64e542$c1bkco@...3015...> Message-ID: <64e542$c1c3hm@...3015...> Jussi: Re Ubuntu: I don't know what went wrong - maybe it was my hardware - I'll try again sometime. Re the munix9 repository: Yes, I think the packaging was at fault. I saw a reference to that somewhere. There was a useful guide to installation on http://gambasdoc.org/help/install?en&view&v3, but it's a bit out of date now. I did use it to install an earlier Gambas (3.2.1, I think) on SUSE10 - on the above hardware. Re the RPi and Wheezy: Not quite as you think: Gambas 3.5 appears to install OK and finishes. It is when you try to use Gambas 3.5 that the CPU usage goes to 100% and stays there. Other potential users found the same thing. The only thing that got me a nearly up-to-date Gambas on the RPi was the image with Gambas 3.2.1 installed that I got from a private download. See previous post. Re openSUSE and Gambas. To dissuade potential users from using openSUSE would be wrong, IMO. Gambas 3.5.1 installs without any problems on openSUSE 13.1 and Gambas works very well - once I had the permissions under control! I find the latter OS with KDE a very nice distro. To be constructive, here is my take: 1. There needs to be an up to date list of distros and repositories, together with some installation instructions, that work with recent versions of Gambas - what distros and repositories that gambas will both install and work under. Just like the list referred to above at gambasdoc.org, but kept up to date. (Maybe there is one, but I have missed it?) The usual process is to first choose a Linux, then try to install Gambas. One needs to be able to choose a combination that installs sweetly. Like OpenSUSE 13.1 and gambas 3.5.1. 2. When you have boards that come out with potentially a huge take-up, like the RPi, someone or some group (like Willy Raets has proposed) needs to be able to get out an img file (or something similar) that has a current Linux distro (or several alternatives) with Gambas and other components (drivers) pre-installed. There's an opening right now with the BeagleBone Black board. By all means charge a modest price for the file, to cover the cost of producing it. These boards attract newbies, because they open up fresh computing opportunities. I have used up more than enough space. Carl From eilert-sprachen at ...221... Fri Jan 24 08:19:30 2014 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Fri, 24 Jan 2014 08:19:30 +0100 Subject: [Gambas-user] Gambas Future or what kind of Gambas we want. In-Reply-To: <20140123114931.GA519@...2774...> References: <64e542$c10ugb@...3015...> <20140123114931.GA519@...2774...> Message-ID: <52E21402.4000606@...221...> Yes Tobias, you put it in the last paragraph: > No doubt, migrating windows users (VB6 or not) are potential Gambas users > and their number may be greater than the ones I was talking about but let's > don't concentrate on any particular group and let Gambas evolve naturally. I > don't like the notion of a "target market" anyway. > Target markets are things we were fed up with when we came to Linux. Let us avoid making the same mistakes as the big players on consumer markets. Rolf From eilert-sprachen at ...221... Fri Jan 24 08:27:13 2014 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Fri, 24 Jan 2014 08:27:13 +0100 Subject: [Gambas-user] Gambas Future or what kind of Gambas we want. In-Reply-To: <006b4c$c1n1f1@...3239...> References: <64e542$c10ugb@...3015...> <20140123114931.GA519@...2774...> <006b4c$c1n1f1@...3239...> Message-ID: <52E215D1.30801@...221...> If that's your only point, Carl > continue to use it. To put VB6 onto Windows XP, I insert the CD, > click a few times, put in my keycode and it is done. Heaps and heaps > of online help, both from MS and the net. The installation process > for Gambas into Linux, plus other components gets better with time, > but is still challenging for many, including those with significant > past programming experience. > I 100 % agree. There are some more really good projects around in the Linux world, and usually they take care to have their main releases put into the major distros regularly - and in a way that lets them integrate flawlessly. We cannot compare Windows with Linux here, however, as Windows is a (relatively) homogenous environment whilst Linux PCs can differ in many more ways. Package management is way more complex here. Rolf From gambas at ...2524... Fri Jan 24 15:48:41 2014 From: gambas at ...2524... (gambas at ...2524...) Date: Fri, 24 Jan 2014 14:48:41 +0000 Subject: [Gambas-user] Issue 494 in gambas: 100% cpu use when using SHELL (FOR READ) and on a process that redirects stdout In-Reply-To: <4-6813199134517018827-18017008611081196936-gambas=googlecode.com@...2524...> References: <4-6813199134517018827-18017008611081196936-gambas=googlecode.com@...2524...> <0-6813199134517018827-18017008611081196936-gambas=googlecode.com@...2524...> Message-ID: <5-6813199134517018827-18017008611081196936-gambas=googlecode.com@...2524...> Comment #5 on issue 494 by Kokok... at ...626...: 100% cpu use when using SHELL (FOR READ) and on a process that redirects stdout http://code.google.com/p/gambas/issues/detail?id=494 Thanks! -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From gambas.fr at ...626... Fri Jan 24 16:04:20 2014 From: gambas.fr at ...626... (Fabien Bodard) Date: Fri, 24 Jan 2014 16:04:20 +0100 Subject: [Gambas-user] Stopping an event when user clicks on the form menu In-Reply-To: <1390520656.3306.5.camel@...40...> References: <1390519586.23457.7.camel@...2688...> <1390520656.3306.5.camel@...40...> Message-ID: This is how to do with svn version ... Public Sub Form_Open() Balloon.Delay = 1000 End Public Sub TextBox1_LostFocus() If IsNull(Application.ActiveControl) Then Return If Len(Last.Text) < 8 Then Balloon.Error("this must be filled before anything else", Last) TextBox1.Select() Last.SetFocus Endif End I don't know if Application.ActiveControl is in the last 3.5 packages, but it is what you need. 2014/1/24 Charlie Reinl : > Am Freitag, den 24.01.2014, 09:56 +1030 schrieb Bruce: >> I have a form with a textbox that "MUST" be filled in before moving on >> to the next control or any other control within the form. Fine, so I >> implement a txtManditory_LostFocus method that just checks that there is >> some text in there. >> >> My problems are: >> 1) if the entire form loses focus, the lostfocus event fires. >> 2) if the user tries to click on the form menu the lost focus event >> fires. >> >> I think I have got around 1) by using Object.Lock in a Form_Leave() >> handler, but 2) has got me stumped. >> >> Any clues? >> >> tia >> Bruce > > Salut Bruce, > > disable all others and set a 'continue' (enabled) behind ..... > or let the user only enter to the form after filling that field in a > single form/field > > > -- > Amicalement > Charlie > > > ------------------------------------------------------------------------------ > CenturyLink Cloud: The Leader in Enterprise Cloud Services. > Learn Why More Businesses Are Choosing CenturyLink Cloud For > Critical Workloads, Development Environments & Everything In Between. > Get a Quote or Start a Free Trial Today. > http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk > _______________________________________________ > 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 Jan 24 16:21:30 2014 From: gambas.fr at ...626... (Fabien Bodard) Date: Fri, 24 Jan 2014 16:21:30 +0100 Subject: [Gambas-user] Stopping an event when user clicks on the form menu In-Reply-To: References: <1390519586.23457.7.camel@...2688...> <1390520656.3306.5.camel@...40...> Message-ID: http://gambasdoc.org/help/comp/gb.qt4/application/activecontrol?v3 Returns the control having the focus. But return null for a menu or when the form lose the focus 2014/1/24 Fabien Bodard : > This is how to do with svn version ... > > > Public Sub Form_Open() > Balloon.Delay = 1000 > End > > Public Sub TextBox1_LostFocus() > > If IsNull(Application.ActiveControl) Then Return > > If Len(Last.Text) < 8 Then > > Balloon.Error("this must be filled before anything else", Last) > TextBox1.Select() > Last.SetFocus > > Endif > End > > > I don't know if Application.ActiveControl is in the last 3.5 > packages, but it is what you need. > > 2014/1/24 Charlie Reinl : >> Am Freitag, den 24.01.2014, 09:56 +1030 schrieb Bruce: >>> I have a form with a textbox that "MUST" be filled in before moving on >>> to the next control or any other control within the form. Fine, so I >>> implement a txtManditory_LostFocus method that just checks that there is >>> some text in there. >>> >>> My problems are: >>> 1) if the entire form loses focus, the lostfocus event fires. >>> 2) if the user tries to click on the form menu the lost focus event >>> fires. >>> >>> I think I have got around 1) by using Object.Lock in a Form_Leave() >>> handler, but 2) has got me stumped. >>> >>> Any clues? >>> >>> tia >>> Bruce >> >> Salut Bruce, >> >> disable all others and set a 'continue' (enabled) behind ..... >> or let the user only enter to the form after filling that field in a >> single form/field >> >> >> -- >> Amicalement >> Charlie >> >> >> ------------------------------------------------------------------------------ >> CenturyLink Cloud: The Leader in Enterprise Cloud Services. >> Learn Why More Businesses Are Choosing CenturyLink Cloud For >> Critical Workloads, Development Environments & Everything In Between. >> Get a Quote or Start a Free Trial Today. >> http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > -- > Fabien Bodard -- Fabien Bodard From gambas at ...2524... Fri Jan 24 17:28:25 2014 From: gambas at ...2524... (gambas at ...2524...) Date: Fri, 24 Jan 2014 16:28:25 +0000 Subject: [Gambas-user] Issue 504 in gambas: Can't check first and second checkbox in panel Message-ID: <0-6813199134517018827-5634327068712738470-gambas=googlecode.com@...2524...> Status: New Owner: ---- Labels: Version-3.5.0 Type-Bug Priority-Medium OpSys-Any Dist-Any Arch-Any Desktop-Any GUI-Any New issue 504 by jjalfa... at ...626...: Can't check first and second checkbox in panel http://code.google.com/p/gambas/issues/detail?id=504 I have written an application with several forms. One of forms have a tabstrip, inside every tab there are four panels and in every panel several checkboxes with vertical arragement. When I execute the app, using Gambas 3.5.1, I cant't check the two top checkboxes of any panel in any tab, I only can check from third to last checkbox. But the same app works perfectly in Gambas 3.1.1. I have not tried if it works in 3.5.1 after creating an executable. 2) GIVE THE FOLLOWING INFORMATIONS (if they are appropriate): Version: 3.5.1 Operating system: Linux Distribution: SolydX with Gnome enviroment Architecture: x86_64 GUI component: gb.gui Desktop used: Gnome 3) The error happens without running any specific code, just with the form opened -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From gambas at ...2524... Fri Jan 24 18:02:26 2014 From: gambas at ...2524... (gambas at ...2524...) Date: Fri, 24 Jan 2014 17:02:26 +0000 Subject: [Gambas-user] Issue 504 in gambas: Can't check first and second checkbox in panel In-Reply-To: <0-6813199134517018827-5634327068712738470-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-5634327068712738470-gambas=googlecode.com@...2524...> Message-ID: <1-6813199134517018827-5634327068712738470-gambas=googlecode.com@...2524...> Updates: Status: NeedsInfo Comment #1 on issue 504 by benoit.m... at ...626...: Can't check first and second checkbox in panel http://code.google.com/p/gambas/issues/detail?id=504 I can't reproduce the bug. Maybe it has been fixed in Gambas 3.5.2, but please provide a little project that will show me that bug, so that I can be sure. -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From shordi at ...626... Fri Jan 24 19:11:24 2014 From: shordi at ...626... (=?ISO-8859-1?Q?Jorge_Carri=F3n?=) Date: Fri, 24 Jan 2014 19:11:24 +0100 Subject: [Gambas-user] Issue 504 in gambas: Can't check first and second checkbox in panel In-Reply-To: <0-6813199134517018827-5634327068712738470-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-5634327068712738470-gambas=googlecode.com@...2524...> Message-ID: Check if you have a non visible object, like panel over the two first checkbox... Regards 2014/1/24 > Status: New > Owner: ---- > Labels: Version-3.5.0 Type-Bug Priority-Medium OpSys-Any Dist-Any Arch-Any > Desktop-Any GUI-Any > > New issue 504 by jjalfa... at ...626...: Can't check first and second > checkbox > in panel > http://code.google.com/p/gambas/issues/detail?id=504 > > I have written an application with several forms. One of forms have a > tabstrip, inside every tab there are four panels and in every panel several > checkboxes with vertical arragement. > > When I execute the app, using Gambas 3.5.1, I cant't check the two top > checkboxes of any panel in any tab, I only can check from third to last > checkbox. But the same app works perfectly in Gambas 3.1.1. I have not > tried if it works in 3.5.1 after creating an executable. > > 2) GIVE THE FOLLOWING INFORMATIONS (if they are appropriate): > > Version: 3.5.1 > Operating system: Linux > Distribution: SolydX with Gnome enviroment > Architecture: x86_64 > GUI component: gb.gui > Desktop used: Gnome > > 3) The error happens without running any specific code, just with the form > opened > > > > -- > You received this message because this project is configured to send all > issue notifications to this address. > You may adjust your notification preferences at: > https://code.google.com/hosting/settings > > > ------------------------------------------------------------------------------ > CenturyLink Cloud: The Leader in Enterprise Cloud Services. > Learn Why More Businesses Are Choosing CenturyLink Cloud For > Critical Workloads, Development Environments & Everything In Between. > Get a Quote or Start a Free Trial Today. > > http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...2524... Fri Jan 24 19:30:50 2014 From: gambas at ...2524... (gambas at ...2524...) Date: Fri, 24 Jan 2014 18:30:50 +0000 Subject: [Gambas-user] Issue 504 in gambas: Can't check first and second checkbox in panel In-Reply-To: <1-6813199134517018827-5634327068712738470-gambas=googlecode.com@...2524...> References: <1-6813199134517018827-5634327068712738470-gambas=googlecode.com@...2524...> <0-6813199134517018827-5634327068712738470-gambas=googlecode.com@...2524...> Message-ID: <2-6813199134517018827-5634327068712738470-gambas=googlecode.com@...2524...> Comment #2 on issue 504 by jjalfa... at ...626...: Can't check first and second checkbox in panel http://code.google.com/p/gambas/issues/detail?id=504 I attach the form wich the problem Attachments: checkboxbug.zip 33.3 KB -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From shordi at ...626... Fri Jan 24 19:32:36 2014 From: shordi at ...626... (=?ISO-8859-1?Q?Jorge_Carri=F3n?=) Date: Fri, 24 Jan 2014 19:32:36 +0100 Subject: [Gambas-user] multiple selection on gridview Message-ID: Hi If you set enable the Multiple property on a gridview, you can select several rows with key control+Click. Ok, thats expected. But once you have selected several row by doing this, if you click on one of selected item and try to make a Drag&Drop operation (like is usuall on Nautilus and very other software) it's triggered the Click event, unselecting all items, except that you have clicking, and you can't do the Drag... The only thing you can do is start de Drag before release the mouse button of the last selected item... but that is not the expected behaviour for the user (and for me, of course) and not always it's posible doing that, especially on very large lists where the user goes up and down searching certain rows with his own eyes... Someone know how to imitate the behavior-like-nautilus on gridviews? I've tried doing a delay on click event... on mousedown event.... storing selected rowids in a Array, etc. etc., but I've no success... Thanks in advance Regards. From shordi at ...626... Fri Jan 24 19:54:18 2014 From: shordi at ...626... (=?ISO-8859-1?Q?Jorge_Carri=F3n?=) Date: Fri, 24 Jan 2014 19:54:18 +0100 Subject: [Gambas-user] Issue 504 in gambas: Can't check first and second checkbox in panel In-Reply-To: <2-6813199134517018827-5634327068712738470-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-5634327068712738470-gambas=googlecode.com@...2524...> <1-6813199134517018827-5634327068712738470-gambas=googlecode.com@...2524...> <2-6813199134517018827-5634327068712738470-gambas=googlecode.com@...2524...> Message-ID: If you set the Arrangment property of panel1 to none, it works or if you set the Arrangment property of form to none it works. I don't know why is so. Regards 2014/1/24 > > Comment #2 on issue 504 by jjalfa... at ...626...: Can't check first and > second checkbox in panel > http://code.google.com/p/gambas/issues/detail?id=504 > > I attach the form wich the problem > > Attachments: > checkboxbug.zip 33.3 KB > > -- > You received this message because this project is configured to send all > issue notifications to this address. > You may adjust your notification preferences at: > https://code.google.com/hosting/settings > > > ------------------------------------------------------------------------------ > CenturyLink Cloud: The Leader in Enterprise Cloud Services. > Learn Why More Businesses Are Choosing CenturyLink Cloud For > Critical Workloads, Development Environments & Everything In Between. > Get a Quote or Start a Free Trial Today. > > http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From tercoide at ...67... Fri Jan 24 20:03:51 2014 From: tercoide at ...67... (martin p cristia) Date: Fri, 24 Jan 2014 16:03:51 -0300 Subject: [Gambas-user] Gambas Future or what kind of Gambas we want. In-Reply-To: References: Message-ID: (too many to quote!) I'm one of those experienced VB6 users that used to swim in the Caribe, and Microsoft sent to the Marianas abiss with .NET ; so I think there is a huge amount of potential ex VB6 programmers to join the Gambas force. So Gambas is not THAT easy to install or compile? Well, we're programmers, lets show some effort... Linux hard to install? Ubuntu sets a computer up in 20m, and if its a decent one, the only thing you need to know is your time zone. Otherwise it is all answered in Askubuntu. Our goal has to be making Gambas compiled program END users, use whatever O.S. they want, using a one-file-downloadable-installer. From sourceforge-raindog2 at ...94... Fri Jan 24 21:18:59 2014 From: sourceforge-raindog2 at ...94... (Rob Kudla) Date: Fri, 24 Jan 2014 15:18:59 -0500 Subject: [Gambas-user] Gambas Future or what kind of Gambas we want. In-Reply-To: References: Message-ID: <52E2CAB3.7040108@...94...> On 01/24/2014 02:03 PM, martin p cristia wrote: > So Gambas is not THAT easy to install or compile? Well, we're > programmers, lets show some effort... Linux hard to install? Ubuntu > sets a computer up in 20m, and if its a If they're running Ubuntu, it's just a matter of a few clicks to install Gambas through the software center. If they're trying to compile the whole thing from source and are having difficulty, they probably don't need to be compiling from source anyway. Just because you CAN do something under Linux that you can't do under Windows doesn't mean that you have to do it. Packages made with Gambas should automatically have the right dependencies and the required packages should be pulled in during installation. I just don't see this as a big issue. Ubuntu, Debian, Suse and Fedora all include Gambas as part of their package management systems. Those four and their derivatives cover easily 90% of all desktop Linux users. Yes, there will be issues with architectures not typical of desktop computers, like MIPS or ARM. Those aren't officially supported, and it's up to users with those platforms to get Gambas working on them if the packages automatically generated by Debian (etc.) don't work. If you really think Windows development tools are better in that regard, try getting VB6 running on PowerPC, which was officially supported by Windows during VB6's lifetime. It never happened. If you google "visual basic" "powerpc", the fourth hit is actually a Gambas package which runs on PPC. Today you can make VB.NET apps that run on Windows RT (ARM architecture) if for some reason you actually wanted to, but I'm also guessing that never happens with most VB.NET apps because no one really cares about Windows on ARM except Microsoft. And even that's a huge step up from the previous second-class Windows port, WinCE for ARM and MIPS, used up until about a year or two ago on $99 laptops that were punishing to use. I've heard you could write your VB apps in a certain way and cross-compile them to run under WinCE, but I've never seen an app built that way. Gambas programs, on the other hand, will work on any flavor of Linux once the Gambas interpreter is fully ported. They aren't officially supported, and on many platforms where the Linux kernel is supported, Gambas will never work because they're embedded devices without X or (in the case of Android) even glibc. But the wonder of free software is that anyone can take the source and make the port if they put enough effort into it. You can't do that with most Microsoft tools. > decent one, the only thing you need to know is your time zone. > Otherwise it is all answered in Askubuntu. Unfortunately, with laptops (which are most of the PCs sold today), that isn't always the case. For example, my new Lenovo Ideapad has function keys that don't even generate keycodes unless you press the Fn button with them; on their own they do things like adjust volume and brightness. And there's no SysRq key so no magic key combinations, no NumLock key so there's no mouse accessibility for when its touchpad goes haywire which is about a dozen times a day, and the ATI graphic driver has a memory leak resulting in the X server swapping constantly after about a day, and trying to revert to the free driver causes the updater to crash in 13.10, and not a single one of these issues has a solution on AskUbuntu, though several have been asked and left unanswered. (Don't buy a Lenovo Ideapad.) Of course, in my Windows days there were many, many issues that couldn't be solved in online forums, since you had the source to almost nothing and bug fixes were driven by PR, not technical merit or even, in those days, security. >From time to time, someone chimes in with "We need to make it as easy to develop and distribute Gambas apps as it was to develop VB apps", but the truth is, Gambas is already far more flexible and easy to distribute apps in than VB6 ever was. You just have to let go of leftover Windows notions like "setup.exe is the pinnacle of package management" or "applications are best distributed in one big file containing all the dependencies statically linked" or "it's up to the compiler's author to port to my non-standard architecture", because none of those are true. Rob From gambas at ...2524... Fri Jan 24 22:15:14 2014 From: gambas at ...2524... (gambas at ...2524...) Date: Fri, 24 Jan 2014 21:15:14 +0000 Subject: [Gambas-user] Issue 504 in gambas: Can't check first and second checkbox in panel In-Reply-To: <2-6813199134517018827-5634327068712738470-gambas=googlecode.com@...2524...> References: <2-6813199134517018827-5634327068712738470-gambas=googlecode.com@...2524...> <0-6813199134517018827-5634327068712738470-gambas=googlecode.com@...2524...> Message-ID: <3-6813199134517018827-5634327068712738470-gambas=googlecode.com@...2524...> Updates: Status: Accepted Comment #3 on issue 504 by benoit.m... at ...626...: Can't check first and second checkbox in panel http://code.google.com/p/gambas/issues/detail?id=504 (No comment was entered for this change.) -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From gambas at ...2524... Sat Jan 25 00:56:24 2014 From: gambas at ...2524... (gambas at ...2524...) Date: Fri, 24 Jan 2014 23:56:24 +0000 Subject: [Gambas-user] Issue 504 in gambas: Can't check first and second checkbox in panel In-Reply-To: <3-6813199134517018827-5634327068712738470-gambas=googlecode.com@...2524...> References: <3-6813199134517018827-5634327068712738470-gambas=googlecode.com@...2524...> <0-6813199134517018827-5634327068712738470-gambas=googlecode.com@...2524...> Message-ID: <4-6813199134517018827-5634327068712738470-gambas=googlecode.com@...2524...> Updates: Status: Fixed Comment #4 on issue 504 by benoit.m... at ...626...: Can't check first and second checkbox in panel http://code.google.com/p/gambas/issues/detail?id=504 The bug should be fixed in revision #6100, please confirm that it works for you. The fix will be backported to a future Gambas 3.5.3. -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From gambas at ...2524... Sat Jan 25 01:02:26 2014 From: gambas at ...2524... (gambas at ...2524...) Date: Sat, 25 Jan 2014 00:02:26 +0000 Subject: [Gambas-user] Issue 497 in gambas: When date is formatted in gridview then right click pop up menu doesnot work In-Reply-To: <0-6813199134517018827-5148484893610216006-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-5148484893610216006-gambas=googlecode.com@...2524...> Message-ID: <1-6813199134517018827-5148484893610216006-gambas=googlecode.com@...2524...> Updates: Status: WontFix Labels: -3.5.2 Version-3.5.0 Comment #1 on issue 497 by benoit.m... at ...626...: When date is formatted in gridview then right click pop up menu doesnot work http://code.google.com/p/gambas/issues/detail?id=497 Of course: by modifying the GridView contents inside the Data event handler, you are triggering a refresh that calls the Data event again and again. It eats all the CPU (depending on the GUI toolkit and your system), and the GUI becomes unresponsive. Just don't modify the GridView contents inside the Data event handler. The Data event handler is just there for filling the GridView Data property. -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From gambas at ...2524... Sat Jan 25 01:03:28 2014 From: gambas at ...2524... (gambas at ...2524...) Date: Sat, 25 Jan 2014 00:03:28 +0000 Subject: [Gambas-user] Issue 503 in gambas: Debian packages: Lintian warning debian-changelog-line-too-long In-Reply-To: <0-6813199134517018827-4970729376299310628-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-4970729376299310628-gambas=googlecode.com@...2524...> Message-ID: <1-6813199134517018827-4970729376299310628-gambas=googlecode.com@...2524...> Updates: Status: Accepted Comment #1 on issue 503 by benoit.m... at ...626...: Debian packages: Lintian warning debian-changelog-line-too-long http://code.google.com/p/gambas/issues/detail?id=503 (No comment was entered for this change.) -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From nilsson at ...1979... Sat Jan 25 01:18:33 2014 From: nilsson at ...1979... (Carl Nilsson) Date: Sat, 25 Jan 2014 11:18:33 +1100 Subject: [Gambas-user] Gambas Future or what kind of Gambas we want. In-Reply-To: <52E2CAB3.7040108@...94...> References: <52E2CAB3.7040108@...94...> Message-ID: <006b4c$c24gh3@...3239...> Rob: ...and so maybe a million new users get introduced to Python - already loaded in the Wheezy RPi distro, not Gambas. If you want to secure the long term future of Gambas, one of things that must be done is to attract new users. These new users, like me, are just the ones that don't have the necessary skills or experience to install and update Gambas on these platforms. These architectures are a wave of the future. Carl > Yes, there >will be issues with architectures not typical of desktop computers, like >MIPS or ARM. Those aren't officially supported, and it's up to users with >those platforms to get Gambas working on them if the packages automatically >generated by Debian (etc.) don't work. From ea7dfh at ...2382... Sat Jan 25 01:36:26 2014 From: ea7dfh at ...2382... (Jesus) Date: Sat, 25 Jan 2014 01:36:26 +0100 Subject: [Gambas-user] Issue 497 in gambas: When date is formatted in gridview then right click pop up menu doesnot work In-Reply-To: <1-6813199134517018827-5148484893610216006-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-5148484893610216006-gambas=googlecode.com@...2524...> <1-6813199134517018827-5148484893610216006-gambas=googlecode.com@...2524...> Message-ID: <52E3070A.8030706@...2382...> El 25/01/14 01:02, gambas at ...2524... escribi?: > Updates: > Status: WontFix > Labels: -3.5.2 Version-3.5.0 > > Comment #1 on issue 497 by benoit.m... at ...626...: When date is formatted in > gridview then right click pop up menu doesnot work > http://code.google.com/p/gambas/issues/detail?id=497 > > Of course: by modifying the GridView contents inside the Data event > handler, you are triggering a refresh that calls the Data event again and > again. It eats all the CPU (depending on the GUI toolkit and your system), > and the GUI becomes unresponsive. > > Just don't modify the GridView contents inside the Data event handler. The > Data event handler is just there for filling the GridView Data property. > Interesting. Then, what is the correct way to do this pulling the database content in a result object? I's supposed that a result object brings a date object and its formatting depends on further processing, provided we are using a datetime type field in our db... Perhaps I am so slept to see that just now ;-) Oh! We should then use FORMAT function in sql, should we? Thanks in advance -- Jesus Guardon From gambas at ...2524... Sat Jan 25 02:05:57 2014 From: gambas at ...2524... (gambas at ...2524...) Date: Sat, 25 Jan 2014 01:05:57 +0000 Subject: [Gambas-user] Issue 497 in gambas: When date is formatted in gridview then right click pop up menu doesnot work In-Reply-To: <1-6813199134517018827-5148484893610216006-gambas=googlecode.com@...2524...> References: <1-6813199134517018827-5148484893610216006-gambas=googlecode.com@...2524...> <0-6813199134517018827-5148484893610216006-gambas=googlecode.com@...2524...> Message-ID: <2-6813199134517018827-5148484893610216006-gambas=googlecode.com@...2524...> Comment #2 on issue 497 by benoit.m... at ...626...: When date is formatted in gridview then right click pop up menu doesnot work http://code.google.com/p/gambas/issues/detail?id=497 Just do: Result.MoveTo(Row) GridView1.Data.Text = Format(Result[DateField], "dd/mm/yyyy") When the Column argument of the Data event handler is the column where the data should be display. I don't see the problem... -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From gambas at ...2524... Sat Jan 25 02:48:01 2014 From: gambas at ...2524... (gambas at ...2524...) Date: Sat, 25 Jan 2014 01:48:01 +0000 Subject: [Gambas-user] Issue 503 in gambas: Debian packages: Lintian warning debian-changelog-line-too-long In-Reply-To: <1-6813199134517018827-4970729376299310628-gambas=googlecode.com@...2524...> References: <1-6813199134517018827-4970729376299310628-gambas=googlecode.com@...2524...> <0-6813199134517018827-4970729376299310628-gambas=googlecode.com@...2524...> Message-ID: <2-6813199134517018827-4970729376299310628-gambas=googlecode.com@...2524...> Updates: Status: Fixed Comment #2 on issue 503 by benoit.m... at ...626...: Debian packages: Lintian warning debian-changelog-line-too-long http://code.google.com/p/gambas/issues/detail?id=503 The bug should be fixed in revision #6101. -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From bbruen at ...2308... Sat Jan 25 03:44:23 2014 From: bbruen at ...2308... (Bruce) Date: Sat, 25 Jan 2014 13:14:23 +1030 Subject: [Gambas-user] Stopping an event when user clicks on the form menu In-Reply-To: References: <1390519586.23457.7.camel@...2688...> <1390520656.3306.5.camel@...40...> Message-ID: <1390617863.23457.19.camel@...2688...> On Fri, 2014-01-24 at 16:21 +0100, Fabien Bodard wrote: > http://gambasdoc.org/help/comp/gb.qt4/application/activecontrol?v3 > > Returns the control having the focus. > > But return null for a menu or when the form lose the focus > Thanks Fabien, that's what I needed... ... but it's strange, no matter how long I stare at that link, I just can't see that second line :-) Uhoh :-( spoke too soon. Just before I sent this, I had another thought. Yep, I had fooled myself into thinking it was that simple. Attached is a quickly mocked up demo of what's driving me nuts. The use scenario is this: 1) If the user is just going to do stuff within the form, then they must enter something into the "Must complete" box, then they can tab or click anywhere else and do what they want. 2) But they can also do stuff in the File menu, load,save,new or exit. This now works thanks to your input. What is there is some Dialogs and some Message commands (and just Me.Close). 3) Or perhaps they want to change some program option. They should be able to go Tools|Options which opens a form to change them. Guess what happens! 4) Or perhaps they want to view the help files. (This one is "fake" it's just there to demonstrate something). So they should be able to go Help| Browse Help. IOW 2,3,or 4) need to be able to occur without invoking the error balloon. Re: 4) this just uses an InputBox to demonstrate the same problem. Any further ideas? Bruce -------------- next part -------------- A non-text attachment was scrubbed... Name: stopevent-0.0.1.tar.gz Type: application/x-compressed-tar Size: 5826 bytes Desc: not available URL: From gambas at ...2524... Sat Jan 25 03:58:54 2014 From: gambas at ...2524... (gambas at ...2524...) Date: Sat, 25 Jan 2014 02:58:54 +0000 Subject: [Gambas-user] Issue 272 in gambas: Progress bars lack the "pulse" property for intermediate progress bar In-Reply-To: <7-6813199134517018827-11885205987876872423-gambas=googlecode.com@...2524...> References: <7-6813199134517018827-11885205987876872423-gambas=googlecode.com@...2524...> <0-6813199134517018827-11885205987876872423-gambas=googlecode.com@...2524...> Message-ID: <8-6813199134517018827-11885205987876872423-gambas=googlecode.com@...2524...> Updates: Status: Fixed Comment #8 on issue 272 by benoit.m... at ...626...: Progress bars lack the "pulse" property for intermediate progress bar http://code.google.com/p/gambas/issues/detail?id=272 The ProgressBar control got its Pulse property in revision #6102. -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From gambas at ...2524... Sat Jan 25 04:20:22 2014 From: gambas at ...2524... (gambas at ...2524...) Date: Sat, 25 Jan 2014 03:20:22 +0000 Subject: [Gambas-user] Issue 497 in gambas: When date is formatted in gridview then right click pop up menu doesnot work In-Reply-To: <2-6813199134517018827-5148484893610216006-gambas=googlecode.com@...2524...> References: <2-6813199134517018827-5148484893610216006-gambas=googlecode.com@...2524...> <0-6813199134517018827-5148484893610216006-gambas=googlecode.com@...2524...> Message-ID: <3-6813199134517018827-5148484893610216006-gambas=googlecode.com@...2524...> Comment #3 on issue 497 by isaf... at ...626...: When date is formatted in gridview then right click pop up menu doesnot work http://code.google.com/p/gambas/issues/detail?id=497 Thanks -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From sammy_dadds at ...43... Sat Jan 25 04:49:55 2014 From: sammy_dadds at ...43... (Sam) Date: Fri, 24 Jan 2014 22:49:55 -0500 Subject: [Gambas-user] Tooltip help using HTML. Message-ID: <52E33463.7030105@...43...> Hi all, I'm having a problem with the tooltips. It works fine with regular text but when I use HTML for a multi-line tooltip the results are not predictable. Most of the time an extra blank line shows up at the bottom. Seems like it might be wrapping if the last line is shorter (yes shorter). A code example looks like : Dim sHTML AS String sHTML &= "" sHTML &= "" sHTML &= " sHTML &= " sHTML &= " sHTML &= "
Note onG#/Ab
Row44
Velocity96
" sHTML &= "" gvEvents.Tooltip = sHTML It does not seem to matter if the "" tag is included or not or if the attribute values are enclosed in single or double quotes. The table cells can have different colors or font sizes and works fine. Just a strange extra line at the bottom (not always). Any idea? I've tried numerous simple HTML snippets that work fine and wonder if it is just the fact of the inside. I've been developing a MIDI app using the ALSA API which works well but I'm surprised there is not a wrapper already out there for Gambas, anyone already written one? The opaque structures and macros for hiding the actual implementation are a good design for C but not so nice for Gambas. I gave up on the timing callback thinking the callback cannot occur properly since they are on different threads. I have a separate player and a GUI that communicate via pipes, works good. Thanks for Gambas! I come home from a day of Java abstract frameworks, inversion of control, more and more bloat and just write stuff that is fun and actually works. Sam From john.aaron.rose at ...626... Sat Jan 25 08:13:38 2014 From: john.aaron.rose at ...626... (John Rose) Date: Sat, 25 Jan 2014 07:13:38 +0000 Subject: [Gambas-user] Converting from Basic4android to Gambas Message-ID: <52E36422.1050006@...626...> I have a library written in both C# & Java, which was written as a library for Basic4android. I want to use it in Android apps, which I write using Basic4android. The library has no controls i.e. it's purely calculations (in fact it's used to convert between GPS co-ordinates and British Ordnance Survey grid references & co-ordinates). I don't know either C# or Java. Is it recommended to either adapt it for Gambas or to convert the code to Gambas? Are there any tools to either of these methods? Any other advice? PS I also wondered if it would be a good idea to make a Gambas component of it. I've looked at the documentation page on programming components. However, I' m not able to make sense of it. -- Regards, John From nilsson at ...1979... Sat Jan 25 08:23:09 2014 From: nilsson at ...1979... (Carl Nilsson) Date: Sat, 25 Jan 2014 18:23:09 +1100 Subject: [Gambas-user] How to import and/or use Linux function "memcopy"? Message-ID: <006b4c$c26c7o@...3239...> G'day all: Linux has "memcopy" and Windows has "MoveMemory". How do I import or reference memcopy into Gambas? I can see that I should be able to effect this function using stream Memory Read and Write, but it may not work as fast? I need to use this many times Carl. From gambas at ...2524... Sat Jan 25 08:49:20 2014 From: gambas at ...2524... (gambas at ...2524...) Date: Sat, 25 Jan 2014 07:49:20 +0000 Subject: [Gambas-user] Issue 504 in gambas: Can't check first and second checkbox in panel In-Reply-To: <4-6813199134517018827-5634327068712738470-gambas=googlecode.com@...2524...> References: <4-6813199134517018827-5634327068712738470-gambas=googlecode.com@...2524...> <0-6813199134517018827-5634327068712738470-gambas=googlecode.com@...2524...> Message-ID: <5-6813199134517018827-5634327068712738470-gambas=googlecode.com@...2524...> Comment #5 on issue 504 by jjalfa... at ...626...: Can't check first and second checkbox in panel http://code.google.com/p/gambas/issues/detail?id=504 How can I test revision #6100? The link produces a 404 error I obtain gambas from debian testing repositories, so I suposse I have to wait until they update de gambas version Thanks -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From gambas at ...1... Sat Jan 25 14:41:41 2014 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Sat, 25 Jan 2014 14:41:41 +0100 Subject: [Gambas-user] Tooltip help using HTML. In-Reply-To: <52E33463.7030105@...43...> References: <52E33463.7030105@...43...> Message-ID: <52E3BF15.6040404@...1...> Le 25/01/2014 04:49, Sam a ?crit : > Hi all, > > I'm having a problem with the tooltips. It works fine with regular > text but when I use HTML for a multi-line tooltip the results are not > predictable. Most of the time an extra blank line shows up at the > bottom. Seems like it might be wrapping if the last line is shorter (yes > shorter). > > A code example looks like : > > Dim sHTML AS String > > sHTML &= "" > sHTML &= "
" > sHTML &= " > sHTML &= " > sHTML &= " > sHTML &= "
Note onG#/Ab
Row44
Velocity96
" > sHTML &= "" > > gvEvents.Tooltip = sHTML > > > It does not seem to matter if the "" tag is included or not or > if the attribute values are enclosed > in single or double quotes. The table cells can have different colors > or font sizes and works fine. Just a > strange extra line at the bottom (not always). Any idea? I've tried > numerous simple HTML snippets > that work fine and wonder if it is just the fact of the inside. > > I've been developing a MIDI app using the ALSA API which works well > but I'm surprised there is > not a wrapper already out there for Gambas, anyone already written one? > > The opaque structures and macros for hiding the actual implementation > are a good design for C but not so nice for Gambas. I gave up on the > timing callback thinking the callback cannot occur properly since they > are on different threads. I have a separate player and a GUI that > communicate via pipes, works good. > > Thanks for Gambas! I come home from a day of Java abstract > frameworks, inversion of control, more > and more bloat and just write stuff that is fun and actually works. > > Sam HTML is not supported in tooltips at the moment. It only partially works with gb.qt4 by chance, because of QT4 that has automatic HTML detection that I can't disable. Regards, -- Beno?t Minisini From gambas at ...1... Sat Jan 25 14:42:30 2014 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Sat, 25 Jan 2014 14:42:30 +0100 Subject: [Gambas-user] How to import and/or use Linux function "memcopy"? In-Reply-To: <006b4c$c26c7o@...3239...> References: <006b4c$c26c7o@...3239...> Message-ID: <52E3BF46.3000302@...1...> Le 25/01/2014 08:23, Carl Nilsson a ?crit : > G'day all: > Linux has "memcopy" and Windows has "MoveMemory". How do I import or > reference memcopy into Gambas? I can see that I should be able to > effect this function using stream Memory Read and Write, but it may > not work as fast? I need to use this many times > Carl. > Why do you need to copy memory? You should not, it's dangerous. -- Beno?t Minisini From gambas at ...2524... Sat Jan 25 14:46:37 2014 From: gambas at ...2524... (gambas at ...2524...) Date: Sat, 25 Jan 2014 13:46:37 +0000 Subject: [Gambas-user] Issue 504 in gambas: Can't check first and second checkbox in panel In-Reply-To: <5-6813199134517018827-5634327068712738470-gambas=googlecode.com@...2524...> References: <5-6813199134517018827-5634327068712738470-gambas=googlecode.com@...2524...> <0-6813199134517018827-5634327068712738470-gambas=googlecode.com@...2524...> Message-ID: <6-6813199134517018827-5634327068712738470-gambas=googlecode.com@...2524...> Comment #6 on issue 504 by benoit.m... at ...626...: Can't check first and second checkbox in panel http://code.google.com/p/gambas/issues/detail?id=504 The link is made by Google, it means nothing as Gambas is hosted on sourceforge.net. See there for the details: http://gambasdoc.org/help/install/debian?v3 -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From jussi.lahtinen at ...626... Sat Jan 25 15:11:24 2014 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Sat, 25 Jan 2014 16:11:24 +0200 Subject: [Gambas-user] How to import and/or use Linux function "memcopy"? In-Reply-To: <006b4c$c26c7o@...3239...> References: <006b4c$c26c7o@...3239...> Message-ID: If you have problems to declare memcpy on Gambas, you will very probably have much more problems with it (unexpected behavior, random crashes, etc). There very probably is alternative method for this. As Benoit already ask, why you need it? Anyway: Private Extern memcpy(dest As Pointer, src As Pointer, count As Integer) As Pointer In "libc:6" Jussi On Sat, Jan 25, 2014 at 9:23 AM, Carl Nilsson wrote: > G'day all: > Linux has "memcopy" and Windows has "MoveMemory". How do I import or > reference memcopy into Gambas? I can see that I should be able to > effect this function using stream Memory Read and Write, but it may > not work as fast? I need to use this many times > Carl. > > > > ------------------------------------------------------------------------------ > CenturyLink Cloud: The Leader in Enterprise Cloud Services. > Learn Why More Businesses Are Choosing CenturyLink Cloud For > Critical Workloads, Development Environments & Everything In Between. > Get a Quote or Start a Free Trial Today. > > http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From nilsson at ...1979... Sat Jan 25 15:12:54 2014 From: nilsson at ...1979... (Carl Nilsson) Date: Sun, 26 Jan 2014 01:12:54 +1100 Subject: [Gambas-user] How to import and/or use Linux function "memcopy"? In-Reply-To: <52E3BF46.3000302@...1...> References: <006b4c$c26c7o@...3239...> <52E3BF46.3000302@...1...> Message-ID: <006b4c$c27trf@...3239...> Good evening Benoit: Actually, it is the C function memmove that I want to use. I will be using it all the time to shuffle array elements along, like a shift register in data filtering. The Windows function CopyMemory is very fast and much more efficient than using do loops in VB6. It is also very useful in handling serial input byte data which comes in varying size packets. I have been using the Win kernel CopyMemory for years in VB6 without problems and I wish to implement similar functionality in the port to Gambas. This evening I have got as far as being able to run memmove in Gambas, but not yet correctly. I'm still struggling a bit with pointers. It seems I cannot use VarPtr on a (1-D) integer array at a particular element number of a linear, say, integer array like VarPtr(iArray[18]). So I have got as far as trying iPtr = VarPtr(iArray) + 72 (for that example) without success. I have assumed my iPtr (declared as a Pointer) is an integer value that increases by 4 for each integer element, but I could be off the track. Being "dangerous" does not unduly concern me - my computer won't blow up! I just need to move blocks of data back and forth quickly! Carl At 12:42 AM 26/01/2014, you wrote: >Le 25/01/2014 08:23, Carl Nilsson a ?crit : > > G'day all: > > Linux has "memmove" and Windows has "MoveMemory". How do I import or > > reference memcopy into Gambas? I can see that I should be able to > > effect this function using stream Memory Read and Write, but it may > > not work as fast? I need to use this many times > > Carl. > > > >Why do you need to copy memory? You should not, it's dangerous. > >-- >Beno?t Minisini > >------------------------------------------------------------------------------ >CenturyLink Cloud: The Leader in Enterprise Cloud Services. >Learn Why More Businesses Are Choosing CenturyLink Cloud For >Critical Workloads, Development Environments & Everything In Between. >Get a Quote or Start a Free Trial Today. >http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk >_______________________________________________ >Gambas-user mailing list >Gambas-user at lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/gambas-user Carl S Nilsson 137 Gordons Hill Road Lindisfarne, Tas. Australia 7015 From gambas at ...1... Sat Jan 25 15:49:14 2014 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Sat, 25 Jan 2014 15:49:14 +0100 Subject: [Gambas-user] How to import and/or use Linux function "memcopy"? In-Reply-To: <006b4c$c27trf@...3239...> References: <006b4c$c26c7o@...3239...> <52E3BF46.3000302@...1...> <006b4c$c27trf@...3239...> Message-ID: <52E3CEEA.3050806@...1...> Le 25/01/2014 15:12, Carl Nilsson a ?crit : > Good evening Benoit: > Actually, it is the C function memmove that I > want to use. I will be using it all the time to > shuffle array elements along, like a shift > register in data filtering. The Windows function > CopyMemory is very fast and much more efficient > than using do loops in VB6. It is also very > useful in handling serial input byte data which > comes in varying size packets. I have been using > the Win kernel CopyMemory for years in VB6 > without problems and I wish to implement similar > functionality in the port to Gambas. This > evening I have got as far as being able to run > memmove in Gambas, but not yet correctly. I'm > still struggling a bit with pointers. It seems I > cannot use VarPtr on a (1-D) integer array at a > particular element number of a linear, say, > integer array like VarPtr(iArray[18]). So I have > got as far as trying iPtr = VarPtr(iArray) + 72 > (for that example) without success. I have > assumed my iPtr (declared as a Pointer) is an > integer value that increases by 4 for each > integer element, but I could be off the > track. Being "dangerous" does not unduly concern > me - my computer won't blow up! I just need to > move blocks of data back and forth quickly! > Carl > > If you just need to move a number of consecutive elements from one array to another array of the same type, I can add a method for that. Something like: AnArray.CopyTo(AnotherArray, DestinationIndex, SourceIndex, Count) That method will spend a little time to check its arguments so that you don't crash everything. It will be far more reliable than trying to deal with pointers when you don't know how exactly things are implemented. Moreover, once you got it, your code may break in the future as soon as the internal implementation changes. -- Beno?t Minisini From jussi.lahtinen at ...626... Sat Jan 25 16:22:50 2014 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Sat, 25 Jan 2014 17:22:50 +0200 Subject: [Gambas-user] How to import and/or use Linux function "memcopy"? In-Reply-To: <006b4c$c27trf@...3239...> References: <006b4c$c26c7o@...3239...> <52E3BF46.3000302@...1...> <006b4c$c27trf@...3239...> Message-ID: iArray.Data gives the pointer you need. Jussi On Sat, Jan 25, 2014 at 4:12 PM, Carl Nilsson wrote: > Good evening Benoit: > Actually, it is the C function memmove that I > want to use. I will be using it all the time to > shuffle array elements along, like a shift > register in data filtering. The Windows function > CopyMemory is very fast and much more efficient > than using do loops in VB6. It is also very > useful in handling serial input byte data which > comes in varying size packets. I have been using > the Win kernel CopyMemory for years in VB6 > without problems and I wish to implement similar > functionality in the port to Gambas. This > evening I have got as far as being able to run > memmove in Gambas, but not yet correctly. I'm > still struggling a bit with pointers. It seems I > cannot use VarPtr on a (1-D) integer array at a > particular element number of a linear, say, > integer array like VarPtr(iArray[18]). So I have > got as far as trying iPtr = VarPtr(iArray) + 72 > (for that example) without success. I have > assumed my iPtr (declared as a Pointer) is an > integer value that increases by 4 for each > integer element, but I could be off the > track. Being "dangerous" does not unduly concern > me - my computer won't blow up! I just need to > move blocks of data back and forth quickly! > Carl > > > At 12:42 AM 26/01/2014, you wrote: > >Le 25/01/2014 08:23, Carl Nilsson a ?crit : > > > G'day all: > > > Linux has "memmove" and Windows has "MoveMemory". How do I import or > > > reference memcopy into Gambas? I can see that I should be able to > > > effect this function using stream Memory Read and Write, but it may > > > not work as fast? I need to use this many times > > > Carl. > > > > > > >Why do you need to copy memory? You should not, it's dangerous. > > > >-- > >Beno?t Minisini > > > > >------------------------------------------------------------------------------ > >CenturyLink Cloud: The Leader in Enterprise Cloud Services. > >Learn Why More Businesses Are Choosing CenturyLink Cloud For > >Critical Workloads, Development Environments & Everything In Between. > >Get a Quote or Start a Free Trial Today. > > > http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk > >_______________________________________________ > >Gambas-user mailing list > >Gambas-user at lists.sourceforge.net > >https://lists.sourceforge.net/lists/listinfo/gambas-user > > Carl S Nilsson > 137 Gordons Hill Road > Lindisfarne, Tas. > Australia 7015 > > ------------------------------------------------------------------------------ > CenturyLink Cloud: The Leader in Enterprise Cloud Services. > Learn Why More Businesses Are Choosing CenturyLink Cloud For > Critical Workloads, Development Environments & Everything In Between. > Get a Quote or Start a Free Trial Today. > > http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From jussi.lahtinen at ...626... Sat Jan 25 16:41:37 2014 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Sat, 25 Jan 2014 17:41:37 +0200 Subject: [Gambas-user] How to import and/or use Linux function "memcopy"? In-Reply-To: <52E3CEEA.3050806@...1...> References: <006b4c$c26c7o@...3239...> <52E3BF46.3000302@...1...> <006b4c$c27trf@...3239...> <52E3CEEA.3050806@...1...> Message-ID: > Moreover, once you got it, your code may break in the future as soon as > the internal > implementation changes. > What you mean by this? I'm expecting normal Gambas arrays to be read in external libraries as c array when passed as iArray.Data. So far this has worked perfectly. And in my understanding embedded arrays are useful only if they are part of structure that should be passed to some library. Changing this would break a lot of things. Have I understood something incorrectly? Jussi From Gambas at ...1950... Sat Jan 25 17:32:56 2014 From: Gambas at ...1950... (Caveat) Date: Sat, 25 Jan 2014 17:32:56 +0100 Subject: [Gambas-user] Tooltip help using HTML. In-Reply-To: <52E33463.7030105@...43...> References: <52E33463.7030105@...43...> Message-ID: <52E3E738.6040501@...1950...> Hi Sam It looks like you didn't close your second td of each row properly... I guess try it first with valid html... Dim sHTML AS String sHTML &= "" sHTML &= "
" sHTML &= " sHTML &= " sHTML &= " sHTML &= "
Note onG#/Ab
Row44
Velocity96
" sHTML &= "" gvEvents.Tooltip = sHTML I would also be in the habit of wrapping the alignment and padding params in double-quotes, but perhaps that's getting too picky...and as you say, it doesn't seem to make much difference... Dim sHTML As String sHTML &= "" sHTML &= "" sHTML &= "" sHTML &= "" sHTML &= "" sHTML &= "
Note onG#/Ab
Row44
Velocity96
" sHTML &= "" ... Another thing to watch for is that your data might cause some odd effects if you have non-html-safe characters. Kind regards, Caveat On 25/01/14 04:49, Sam wrote: > Hi all, > > I'm having a problem with the tooltips. It works fine with regular > text but when I use HTML for a multi-line tooltip the results are not > predictable. Most of the time an extra blank line shows up at the > bottom. Seems like it might be wrapping if the last line is shorter (yes > shorter). > > A code example looks like : > > Dim sHTML AS String > > sHTML &= "" > sHTML &= "" > sHTML &= " > sHTML &= " > sHTML &= " > sHTML &= "
Note onG#/Ab
Row44
Velocity96
" > sHTML &= "" > > gvEvents.Tooltip = sHTML > > > It does not seem to matter if the "" tag is included or not or > if the attribute values are enclosed > in single or double quotes. The table cells can have different colors > or font sizes and works fine. Just a > strange extra line at the bottom (not always). Any idea? I've tried > numerous simple HTML snippets > that work fine and wonder if it is just the fact of the inside. > > I've been developing a MIDI app using the ALSA API which works well > but I'm surprised there is > not a wrapper already out there for Gambas, anyone already written one? > > The opaque structures and macros for hiding the actual implementation > are a good design for C but not so nice for Gambas. I gave up on the > timing callback thinking the callback cannot occur properly since they > are on different threads. I have a separate player and a GUI that > communicate via pipes, works good. > > Thanks for Gambas! I come home from a day of Java abstract > frameworks, inversion of control, more > and more bloat and just write stuff that is fun and actually works. > > Sam > ------------------------------------------------------------------------------ > CenturyLink Cloud: The Leader in Enterprise Cloud Services. > Learn Why More Businesses Are Choosing CenturyLink Cloud For > Critical Workloads, Development Environments & Everything In Between. > Get a Quote or Start a Free Trial Today. > http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas.fr at ...626... Sat Jan 25 19:15:38 2014 From: gambas.fr at ...626... (Fabien Bodard) Date: Sat, 25 Jan 2014 19:15:38 +0100 Subject: [Gambas-user] Converting from Basic4android to Gambas In-Reply-To: <52E36422.1050006@...626...> References: <52E36422.1050006@...626...> Message-ID: Is it just projection ? Le 25 janv. 2014 08:14, "John Rose" a ?crit : > I have a library written in both C# & Java, which was written as a > library for Basic4android. I want to use it in Android apps, which I > write using Basic4android. The library has no controls i.e. it's purely > calculations (in fact it's used to convert between GPS co-ordinates and > British Ordnance Survey grid references & co-ordinates). I don't know > either C# or Java. Is it recommended to either adapt it for Gambas or to > convert the code to Gambas? Are there any tools to either of these > methods? Any other advice? > > PS I also wondered if it would be a good idea to make a Gambas component > of it. I've looked at the documentation page on programming components. > However, I' m not able to make sense of it. > > -- > Regards, John > > > ------------------------------------------------------------------------------ > CenturyLink Cloud: The Leader in Enterprise Cloud Services. > Learn Why More Businesses Are Choosing CenturyLink Cloud For > Critical Workloads, Development Environments & Everything In Between. > Get a Quote or Start a Free Trial Today. > > http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas.fr at ...626... Sat Jan 25 21:19:09 2014 From: gambas.fr at ...626... (Fabien Bodard) Date: Sat, 25 Jan 2014 21:19:09 +0100 Subject: [Gambas-user] Stopping an event when user clicks on the form menu In-Reply-To: <1390617863.23457.19.camel@...2688...> References: <1390519586.23457.7.camel@...2688...> <1390520656.3306.5.camel@...40...> <1390617863.23457.19.camel@...2688...> Message-ID: 2014-01-25 Bruce : > On Fri, 2014-01-24 at 16:21 +0100, Fabien Bodard wrote: >> http://gambasdoc.org/help/comp/gb.qt4/application/activecontrol?v3 >> >> Returns the control having the focus. >> >> But return null for a menu or when the form lose the focus >> > > Thanks Fabien, that's what I needed... > > ... but it's strange, no matter how long I stare at that link, I just > can't see that second line :-) > > > > Uhoh :-( spoke too soon. Just before I sent this, I had another > thought. Yep, I had fooled myself into thinking it was that simple. > Attached is a quickly mocked up demo of what's driving me nuts. > > The use scenario is this: > 1) If the user is just going to do stuff within the form, then they must > enter something into the "Must complete" box, then they can tab or click > anywhere else and do what they want. > 2) But they can also do stuff in the File menu, load,save,new or exit. > This now works thanks to your input. What is there is some Dialogs and > some Message commands (and just Me.Close). > 3) Or perhaps they want to change some program option. They should be > able to go Tools|Options which opens a form to change them. Guess what > happens! > 4) Or perhaps they want to view the help files. (This one is "fake" it's > just there to demonstrate something). So they should be able to go Help| > Browse Help. > > IOW 2,3,or 4) need to be able to occur without invoking the error > balloon. > > Re: 4) this just uses an InputBox to demonstrate the same problem. > > Any further ideas? yes : Public Sub txtMandatory_LostFocus() If Not Application.ActiveControl Or If Application.ActiveControl.Window <> Me.Window Then Return If Not txtMandatory.Text Or If txtMandatory.Text = "" Then Balloon.Error("this must be filled before anything else", Last) txtMandatory.Select() Last.SetFocus Endif End So if the control is known then if the control is not in the same window then do nothing. :-) > Bruce > > > > > > > > ------------------------------------------------------------------------------ > CenturyLink Cloud: The Leader in Enterprise Cloud Services. > Learn Why More Businesses Are Choosing CenturyLink Cloud For > Critical Workloads, Development Environments & Everything In Between. > Get a Quote or Start a Free Trial Today. > http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Fabien Bodard From sourceforge-raindog2 at ...94... Sat Jan 25 22:47:19 2014 From: sourceforge-raindog2 at ...94... (Rob Kudla) Date: Sat, 25 Jan 2014 16:47:19 -0500 Subject: [Gambas-user] Gambas Future or what kind of Gambas we want. In-Reply-To: <006b4c$c24gh3@...3239...> References: <52E2CAB3.7040108@...94...> <006b4c$c24gh3@...3239...> Message-ID: <52E430E7.3050803@...94...> On 01/24/2014 07:18 PM, Carl Nilsson wrote: > Rob: ...and so maybe a million new users get introduced to Python - > already loaded in the Wheezy RPi distro, not Gambas. If you want to > secure the long term future of Gambas, one of things that must be done > is to attract new users. These new users, like me, are just the ones > that don't have the necessary skills or experience to install and update > Gambas on these platforms. These architectures are a wave of the > future. First of all, as someone who abandoned Gambas app development in favor of what we now call HTML5 years ago, you're appealing to the wrong guy with that argument. Python is a capable enough language, though I personally dislike it due to its retarded indentation requirements (if meta-Q destroys my program logic, your language has a problem, not me). Bottom line, I don't have a horse in this race anymore; I'm actually waiting for Beno?t to let me know when to send him the transfer codes for the gambasdoc.org domain that I've been hosting for the last 9 years since that server is likely to disappear soon. Desktop apps just haven't been a priority to me for a long time. Second, I would argue that the Raspberry Pi isn't "the future", cheap Chinese Android devices are. Gambas being ported to Android isn't going to happen anytime soon as despite having a Linux kernel, Android doesn't even have the most basic GNU libraries (or a replacement for those) that it would need to be POSIX compliant. Education might be moving toward ARM for desktops, at least in CS/CSE programs where kids are meant to be hacking, but the business world isn't, and that's where most of us are coming from. Most of us have ARM phones and x86/x64 desktops. I have a couple cheap Chinese Android sticks hooked up to TVs too. I had hopes to use them as desktop replacements but in their current state (early 2013 vintage) they're really not. I could put Debian on them but they wouldn't even have 2D video acceleration and I might not be able to get back. (I write my Android apps in Java, for the most part. What a terrible, verbose, top-heavy language, but if you use anything else you're stuck with a subset of the platform's capabilities and good luck finding support.) As a corollary, even if Gambas is available on those systems, as you say, Python is installed by default and the Raspberry Pi project pushes it pretty hard. Students sitting in front of RPis are going to get taught Python unless their teacher is someone like me who strongly dislikes Python, and I suspect Gambas isn't going to be the next thing on their list. Third, you can't install or update Gambas on a platform on which it doesn't compile and run, and if you're one of "the ones that don't have the necessary skills or experience to install and update Gambas on these platforms", I would hope you'll shell out the 50 bucks to send your pet hardware platform to someone who volunteers to make it work, or to Beno?t if it's a bigger job than patching out some Intel-architecture-specific stuff. It isn't like there's a big red "Port to ARM" button that we've all refused to push out of spite. The developers need the hardware and the time to figure out what doesn't work and why. Apparently it compiles, because the packages are available. I don't think any of us had heard it was broken at runtime until someone reported it earlier in this thread. The bug has still not been officially reported on http://code.google.com/p/gambas/issues/list . Developers can't fix what they don't know about, especially if they don't even own the hardware it fails on. Isn't there a Raspbian support group or something that has people who know how to read gcc error messages? Rob From sammy_dadds at ...43... Sun Jan 26 00:02:05 2014 From: sammy_dadds at ...43... (sfdadds) Date: Sat, 25 Jan 2014 15:02:05 -0800 (PST) Subject: [Gambas-user] Tooltip help using HTML. In-Reply-To: <52E3BF15.6040404@...1...> References: <52E33463.7030105@...43...> <52E3BF15.6040404@...1...> Message-ID: <1390690925034-45363.post@...3046...> Thanks for the reply I didn't realise . I guess I should testing with both KDE and Gnome just in case. Regards, Sam -- View this message in context: http://gambas.8142.n7.nabble.com/Tooltip-help-using-HTML-tp45347p45363.html Sent from the gambas-user mailing list archive at Nabble.com. From bbruen at ...2308... Sun Jan 26 01:42:51 2014 From: bbruen at ...2308... (Bruce) Date: Sun, 26 Jan 2014 11:12:51 +1030 Subject: [Gambas-user] Stopping an event when user clicks on the form menu In-Reply-To: References: <1390519586.23457.7.camel@...2688...> <1390520656.3306.5.camel@...40...> <1390617863.23457.19.camel@...2688...> Message-ID: <1390696971.23457.34.camel@...2688...> On Sat, 2014-01-25 at 21:19 +0100, Fabien Bodard wrote: > Or If > Application.ActiveControl.Window <> Me.Window Ah! I was so close. In fact probably too close to see the obvious. Thanks Fabien for taking the time. Bruce From nilsson at ...1979... Sun Jan 26 02:22:41 2014 From: nilsson at ...1979... (Carl Nilsson) Date: Sun, 26 Jan 2014 12:22:41 +1100 Subject: [Gambas-user] Gambas Future or what kind of Gambas we want. In-Reply-To: <52E430E7.3050803@...94...> References: <52E2CAB3.7040108@...94...> <006b4c$c24gh3@...3239...> <52E430E7.3050803@...94...> Message-ID: <006b4c$c2c2pt@...3239...> G'day Rob: I concede to your greater knowledge and experience. Just a couple of points in response: Firstly, I chose my words "a wave of the future" carefully. I did not say "the wave ..." Hopefully the future holds many good waves. Secondly, I was simply following the thread, which may or may not be correct, that securing the long term future for Gambas requires a continuing or even periodic intake of new users. RPi's are not just used for education, although that was their prime intent, they are also useful for embedded systems and, in particular, hobbyists. That segment is still quite large. I guess I fit in that category - a cheapskate with time and no great programming skills! My particular point was that it seemed a missed opportunity to me that boards like RPi , Beaglebone and the coming Intel board did not better support Gambas and that it was up to the Gambas community to take up those and similar opportunities to ensure a Gambas future. Certainly Gambas 3.2.1 compiles and runs on the RPi. Carl At 08:47 AM 26/01/2014, you wrote: >Second, I would argue that the Raspberry Pi isn't "the future", cheap >Chinese Android devices are. Gambas being ported to Android isn't going >to happen anytime soon as despite having a Linux kernel, Android doesn't >even have the most basic GNU libraries (or a replacement for those) that it >would need to be POSIX compliant. Education might be moving toward ARM for >desktops, at least in CS/CSE programs where kids are meant to be hacking, >but the business world isn't, and that's where most of us are coming from. ...(snip) >As a corollary, even if Gambas is available on those systems, as you say, >Python is installed by default and the Raspberry Pi project pushes it >pretty hard. Students sitting in front of RPis are going to get taught >Python unless their teacher is someone like me who strongly dislikes >Python, and I suspect Gambas isn't going to be the next thing on their >list. > >Third, you can't install or update Gambas on a platform on which it doesn't >compile and run, and if you're one of "the ones that don't have the >necessary skills or experience to install and update Gambas on these >platforms", I would hope you'll shell out the 50 bucks to send your pet >hardware platform to someone who volunteers to make it work (snip) >Isn't there a Raspbian support group or something that has people who know >how to read gcc error messages? > >Rob > Carl S Nilsson 137 Gordons Hill Road Lindisfarne, Tas. Australia 7015 From nilsson at ...1979... Sun Jan 26 02:48:47 2014 From: nilsson at ...1979... (Carl Nilsson) Date: Sun, 26 Jan 2014 12:48:47 +1100 Subject: [Gambas-user] How to import and/or use Linux function "memcopy"? In-Reply-To: <52E3CEEA.3050806@...1...> References: <006b4c$c26c7o@...3239...> <52E3BF46.3000302@...1...> <006b4c$c27trf@...3239...> <52E3CEEA.3050806@...1...> Message-ID: <64e542$c1s32i@...3015...> Benoit: That would indeed be most helpful. A point about my particular uses. The nice thing about the CopyMemory function in Windows and the memmove in Linux (as I undersand it) is that you can copy a simple array to itself with the indices shifted - left or right. For example, treating the array as a "stack", I can continually update the array by shifting all the values one place to the left, thus discarding the first and adding a new value to the last (highest indice). That way I can keep a current "last 20 values" say, and also keep a current sum (for an adequate time) by just subtracting the old first value and adding the new last one. That's one use. Just how these functions implement that I am unsure, but the effect is a pseudo copy to some intermediate array and then a second copy back to the original. This pseudo array is transparent to the user. Another use is to make space in front of an array in which to add an older array segment. I use this in dealing with "remainders" from previous serial port inputs. I don't always know what to expect in the input stream, so I may have some leftovers I wish to add to the start of a subsequent input. The resize method allows me to make room, then shift the later segment to the right of the input array to make room for the earlier in front. Carl (snip) >If you just need to move a number of consecutive elements from one array >to another array of the same type, I can add a method for that. > >Something like: AnArray.CopyTo(AnotherArray, DestinationIndex, >SourceIndex, Count) > >That method will spend a little time to check its arguments so that you >don't crash everything. > >It will be far more reliable than trying to deal with pointers when you >don't know how exactly things are implemented. Moreover, once you got >it, your code may break in the future as soon as the internal >implementation changes. > >-- >Beno?t Minisini > Carl S Nilsson 137 Gordons Hill Road Lindisfarne, Tas. Australia 7015 From nilsson at ...1979... Sun Jan 26 05:47:20 2014 From: nilsson at ...1979... (Carl Nilsson) Date: Sun, 26 Jan 2014 15:47:20 +1100 Subject: [Gambas-user] How to import and/or use Linux function "memcopy"? In-Reply-To: References: <006b4c$c26c7o@...3239...> <52E3BF46.3000302@...1...> <006b4c$c27trf@...3239...> Message-ID: <64e542$c1suso@...3015...> Jussi: Thanks, I had missed that property. Function memmove now works as I think it should. The pointer acts like an integer giving the starting location of the array in bytes. As I recall, in VB6 I can use "iArray" as a variable and it is assumed to mean "iArray(0)", Or, I could have specified the element "iArray(0)" as an argument in a function expecting a simple variable. Not so in Gambas. (I'm not being critical, these are things I am finding out about Gambas). In the literature I have perused, there is not too much about arrays (a little in Rittinghouse ABGTG) and even less about passing arguments to procedures. To my gratification, Rittinghouse says (Vol. 1 p.53) clearly that 1-D arrays are objects and elsewhere I read that objects can be passed as arguments, both of which statements were supported when my test showed I could pass a 1-D array as an argument to a procedure in another class (form). That's something I could not do in VB6, without resorting to User-Defined-Types (UDT). I live and learn! Carl At 02:22 AM 26/01/2014, you wrote: >iArray.Data gives the pointer you need. > >Jussi > >(snip) From yodi at ...18... Sun Jan 26 08:35:12 2014 From: yodi at ...18... (Dirk) Date: Sun, 26 Jan 2014 08:35:12 +0100 Subject: [Gambas-user] Convert string to integer In-Reply-To: <3-6813199134517018827-5148484893610216006-gambas=googlecode.com@...2524...> References: <2-6813199134517018827-5148484893610216006-gambas=googlecode.com@...2524...> <0-6813199134517018827-5148484893610216006-gambas=googlecode.com@...2524...> <3-6813199134517018827-5148484893610216006-gambas=googlecode.com@...2524...> Message-ID: <52E4BAB0.20900@...18...> Hi, I'm having a problem with Convert string to integer where is my mistake? I get error message: Type incompatibility expected integer, instead get string Public Sub MySock_Read() '************************************************************************************************ ''************************************************************************************************ '''************************************************************************************************ ' When some data arrives from the remote ' part of the socket, "DataAvailable" event ' is raised '**************************************** Dim rx, rx2, rxtmp As String Dim pattern, result, s, element As String Dim i, ii, iii, frequenz, istZeile As Integer ' DIM reg AS Regexp Dim el, text, dxde, txcall, dxcall, dxtxt, utc, loca, tmpstr, NewDXZ, DXCall_anfang, toall As String Dim band As String ' Dim qrg_i As Integer Dim qrg_i As Variant Dim qrg As String Dim dxprafix As String Dim dxcall_tmp As String Dim trenner As String Dim mh As String Dim dxland As String Dim flagge As String Dim sa, zeile, z As String[] Dim wp As Integer Dim wpa As String[] Dim wpi As Integer Dim dxcall_lng As Integer stunde = 0 minu = 0 sekunde = 0 If MySock.Status = Net.Connected Then Read #MySock, rx, Lof(MySock) rx2 = rx If Mid$(rx, 1, 6) = "To ALL" Then Textedit1.richText = Textedit1.richText & "" toall = "ok" End If If Mid$(rx, 1, 3) = "WWV" Then TextEdit1.richText = TextEdit1.richText & "" toall = "ok" End If If Mid$(rx, 1, 3) = "WCY" Then TextEdit1.richText = TextEdit1.richText & "" toall = "ok" End If If Mid$(rx, 1, 5) = "DX de" Then '_____________________________________________ '_ DX Meldung l?uft ein _ '_____________________________________________ dxde = Mid$(rx, 1, 5) rx = Trim(Replace$(rx, "DX de ", "")) i = InStr(rx, " ") txcall = Mid$(rx, 1, i) rx = Trim(Replace$(rx, txcall & " ", "")) qrg = Mid$(rx, 1, InStr(rx, " ")) rx = Trim(Replace$(rx, qrg & " ", "")) dxcall = Mid$(rx, 1, InStr(rx, " ")) rx = Trim(Replace$(rx, dxcall & " ", "")) ' . . . . . . . . . . qrg = Trim(qrg) qrg_i = CInteger(qrg) ' <<<== Here is Error If qrg_i < 440000 And qrg_i > 430000 Then mh430 = machmaupdatestr(mh430, dxcall, qrg) wpa = Split(mh430, " ") nr430 = wpa.length - 1 ' wp = machma_buttonw(mh430) machma_balken() End If If qrg_i < 146000 A... -- Dirk From bbruen at ...2308... Sun Jan 26 08:55:18 2014 From: bbruen at ...2308... (Bruce) Date: Sun, 26 Jan 2014 18:25:18 +1030 Subject: [Gambas-user] Convert string to integer In-Reply-To: <52E4BAB0.20900@...18...> References: <2-6813199134517018827-5148484893610216006-gambas=googlecode.com@...2524...> <0-6813199134517018827-5148484893610216006-gambas=googlecode.com@...2524...> <3-6813199134517018827-5148484893610216006-gambas=googlecode.com@...2524...> <52E4BAB0.20900@...18...> Message-ID: <1390722918.23457.61.camel@...2688...> On Sun, 2014-01-26 at 08:35 +0100, Dirk wrote: > Hi, > > I'm having a problem with Convert string to integer > > > where is my mistake? I get error message: > Type incompatibility expected integer, instead get string > > > Public Sub MySock_Read() > > '************************************************************************************************ > > ''************************************************************************************************ > > '''************************************************************************************************ > ' When some data arrives from the remote > ' part of the socket, "DataAvailable" event > ' is raised > '**************************************** > Dim rx, rx2, rxtmp As String > Dim pattern, result, s, element As String > Dim i, ii, iii, frequenz, istZeile As Integer > ' DIM reg AS Regexp > > Dim el, text, dxde, txcall, dxcall, dxtxt, utc, loca, tmpstr, NewDXZ, > DXCall_anfang, toall As String > Dim band As String > ' Dim qrg_i As Integer > Dim qrg_i As Variant > Dim qrg As String > Dim dxprafix As String > Dim dxcall_tmp As String > Dim trenner As String > Dim mh As String > Dim dxland As String > Dim flagge As String > Dim sa, zeile, z As String[] > Dim wp As Integer > Dim wpa As String[] > Dim wpi As Integer > Dim dxcall_lng As Integer > > stunde = 0 > minu = 0 > sekunde = 0 > > If MySock.Status = Net.Connected Then > Read #MySock, rx, Lof(MySock) > rx2 = rx > > If Mid$(rx, 1, 6) = "To ALL" Then > Textedit1.richText = Textedit1.richText & "" > toall = "ok" > > End If > If Mid$(rx, 1, 3) = "WWV" Then > TextEdit1.richText = TextEdit1.richText & "" > toall = "ok" > End If > If Mid$(rx, 1, 3) = "WCY" Then > TextEdit1.richText = TextEdit1.richText & "" > toall = "ok" > End If > > If Mid$(rx, 1, 5) = "DX de" Then > '_____________________________________________ > '_ DX Meldung l?uft ein _ > '_____________________________________________ > > dxde = Mid$(rx, 1, 5) > rx = Trim(Replace$(rx, "DX de ", "")) > i = InStr(rx, " ") > txcall = Mid$(rx, 1, i) > rx = Trim(Replace$(rx, txcall & " ", "")) > qrg = Mid$(rx, 1, InStr(rx, " ")) > rx = Trim(Replace$(rx, qrg & " ", "")) > dxcall = Mid$(rx, 1, InStr(rx, " ")) > rx = Trim(Replace$(rx, dxcall & " ", "")) > ' . . . . . . . . . . > qrg = Trim(qrg) > qrg_i = CInteger(qrg) ' <<<== Here is Error > > > If qrg_i < 440000 And qrg_i > 430000 Then > mh430 = machmaupdatestr(mh430, dxcall, qrg) > wpa = Split(mh430, " ") > nr430 = wpa.length - 1 > ' wp = machma_buttonw(mh430) > > machma_balken() > End If > If qrg_i < 146000 A... > > > > > -- > Dirk > > from the considerable amount of code provided and the unfortunate bit ellided (see I told you I was getting the hang of this ... thing) Probably grg isn't convertible? qrg = Trim(qrg) Try grg_i=CInteger(grg) If Error then Error Subst("&1 won't convert",grg) qrg_i = CInteger(qrg) ' <<<== Here is Error might help. Don't confuse data with expected types. (And by dog, haven't we all gone there!) hth B From Gambas at ...1950... Sun Jan 26 08:56:39 2014 From: Gambas at ...1950... (Caveat) Date: Sun, 26 Jan 2014 08:56:39 +0100 Subject: [Gambas-user] Convert string to integer In-Reply-To: <52E4BAB0.20900@...18...> References: <2-6813199134517018827-5148484893610216006-gambas=googlecode.com@...2524...> <0-6813199134517018827-5148484893610216006-gambas=googlecode.com@...2524...> <3-6813199134517018827-5148484893610216006-gambas=googlecode.com@...2524...> <52E4BAB0.20900@...18...> Message-ID: <52E4BFB7.3070805@...1950...> What is in qrg at the time you try to do the CInteger call? Kind regards, Caveat On 26/01/14 08:35, Dirk wrote: > Hi, > > I'm having a problem with Convert string to integer > > > where is my mistake? I get error message: > Type incompatibility expected integer, instead get string > > > Public Sub MySock_Read() > > '************************************************************************************************ > > ''************************************************************************************************ > > '''************************************************************************************************ > ' When some data arrives from the remote > ' part of the socket, "DataAvailable" event > ' is raised > '**************************************** > Dim rx, rx2, rxtmp As String > Dim pattern, result, s, element As String > Dim i, ii, iii, frequenz, istZeile As Integer > ' DIM reg AS Regexp > > Dim el, text, dxde, txcall, dxcall, dxtxt, utc, loca, tmpstr, NewDXZ, > DXCall_anfang, toall As String > Dim band As String > ' Dim qrg_i As Integer > Dim qrg_i As Variant > Dim qrg As String > Dim dxprafix As String > Dim dxcall_tmp As String > Dim trenner As String > Dim mh As String > Dim dxland As String > Dim flagge As String > Dim sa, zeile, z As String[] > Dim wp As Integer > Dim wpa As String[] > Dim wpi As Integer > Dim dxcall_lng As Integer > > stunde = 0 > minu = 0 > sekunde = 0 > > If MySock.Status = Net.Connected Then > Read #MySock, rx, Lof(MySock) > rx2 = rx > > If Mid$(rx, 1, 6) = "To ALL" Then > Textedit1.richText = Textedit1.richText & "" > toall = "ok" > > End If > If Mid$(rx, 1, 3) = "WWV" Then > TextEdit1.richText = TextEdit1.richText & "" > toall = "ok" > End If > If Mid$(rx, 1, 3) = "WCY" Then > TextEdit1.richText = TextEdit1.richText & "" > toall = "ok" > End If > > If Mid$(rx, 1, 5) = "DX de" Then > '_____________________________________________ > '_ DX Meldung l?uft ein _ > '_____________________________________________ > > dxde = Mid$(rx, 1, 5) > rx = Trim(Replace$(rx, "DX de ", "")) > i = InStr(rx, " ") > txcall = Mid$(rx, 1, i) > rx = Trim(Replace$(rx, txcall & " ", "")) > qrg = Mid$(rx, 1, InStr(rx, " ")) > rx = Trim(Replace$(rx, qrg & " ", "")) > dxcall = Mid$(rx, 1, InStr(rx, " ")) > rx = Trim(Replace$(rx, dxcall & " ", "")) > ' . . . . . . . . . . > qrg = Trim(qrg) > qrg_i = CInteger(qrg) ' <<<== Here is Error > > > If qrg_i < 440000 And qrg_i > 430000 Then > mh430 = machmaupdatestr(mh430, dxcall, qrg) > wpa = Split(mh430, " ") > nr430 = wpa.length - 1 > ' wp = machma_buttonw(mh430) > > machma_balken() > End If > If qrg_i < 146000 A... > > > > > -- > Dirk > > > > > > ------------------------------------------------------------------------------ > CenturyLink Cloud: The Leader in Enterprise Cloud Services. > Learn Why More Businesses Are Choosing CenturyLink Cloud For > Critical Workloads, Development Environments & Everything In Between. > Get a Quote or Start a Free Trial Today. > http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...2524... Sun Jan 26 13:27:01 2014 From: gambas at ...2524... (gambas at ...2524...) Date: Sun, 26 Jan 2014 12:27:01 +0000 Subject: [Gambas-user] Issue 505 in gambas: Provide a way to add manpages to generated installation packages Message-ID: <0-6813199134517018827-18214389955681062575-gambas=googlecode.com@...2524...> Status: New Owner: ---- Labels: Version Type-Bug Priority-Medium OpSys-Any Dist-Any Arch-Any Desktop-Any GUI-Any New issue 505 by computer... at ...626...: Provide a way to add manpages to generated installation packages http://code.google.com/p/gambas/issues/detail?id=505 Currently, it's not possible in Gambas to add a man page to an installation package before generating (you can edit it afterwards, but that's not very convenient). Please make this possible by introducing a new "select man page" or "write your man page here" possibility in the wizard of creating packages. DEB and RPM packages can contain man pages, not sure about other package formats. -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From abbat.81 at ...787... Sun Jan 26 15:44:34 2014 From: abbat.81 at ...787... (abbat81) Date: Sun, 26 Jan 2014 06:44:34 -0800 (PST) Subject: [Gambas-user] TableView (or GridView) .Height = 100% Control.Count Message-ID: <1390747474857-45372.post@...3046...> GridView & TableView I do not know how many rows a control will has It can has a 5 or 15 rows. So, how to set contol.height to show all 15 rows and if there are 5 rows to do not show empty area without rows in a control. I can not calculate a pixels of one row because font size can be different in linux theme. Bad English, I know, sorry Thanks. -- View this message in context: http://gambas.8142.n7.nabble.com/TableView-or-GridView-Height-100-Control-Count-tp45372.html Sent from the gambas-user mailing list archive at Nabble.com. From jussi.lahtinen at ...626... Sun Jan 26 16:43:02 2014 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Sun, 26 Jan 2014 17:43:02 +0200 Subject: [Gambas-user] How to import and/or use Linux function "memcopy"? In-Reply-To: <64e542$c1suso@...3015...> References: <006b4c$c26c7o@...3239...> <52E3BF46.3000302@...1...> <006b4c$c27trf@...3239...> <64e542$c1suso@...3015...> Message-ID: > Thanks, I had missed that property. Function memmove now works as I > think it should. The pointer acts like an integer giving the > starting location of the array in bytes. As I recall, in VB6 I can > use "iArray" as a variable and it is assumed to mean > "iArray(0)", Or, I could have specified the element "iArray(0)" as > an argument in a function expecting a simple variable. The difference is that in Gambas arrays are objects. > I read that objects can be passed as arguments True, but not to library written in C which doesn't support objects at all. And with other languages, I don't think the object structure in memory is same (=compatible). However you can pass objects as arguments in libraries written with Gambas. Jussi From wally at ...2037... Sun Jan 26 18:03:23 2014 From: wally at ...2037... (wally) Date: Sun, 26 Jan 2014 18:03:23 +0100 Subject: [Gambas-user] Question on ByteArray > 63 elements Message-ID: <52E53FDB.3060500@...2037...> Hello, i need to write more than 63 Bytes to an Byte[] in a structure. How to do this job ? mini example attached thank you wally '########################################################## ' Gambas class file Public Struct myStruct src As Byte[] dst As Byte[] End Struct Public GG As New MyStruct Public Sub Button1_Click() GG.src = New Byte[] GG.src.Resize(200) GG.src.Fill(&hFF, 0, -1) Print GG.src.Length GG.src.Clear Print GG.src.Length GG.src = [&Haa, &H25, &H00, &H01, &H0a, &H00, &H00, &H00, &H00, &H0f, &H00, &H00, &H00, &H02, &H00, &H0d, &H06, &H00, &H10, &H00, &H00, &H00, &H00, &H00, &He0, &H93, &H04, &H00, &Hf4, &H53, &H00, &H00, &H00, &H02, &H00, &H0d, &H06, &H00, &H10, &H00, &H00, &H00, &H00, &H02, &H00, &H0d, &H06, &H00, &H10, &H00, &H00, &H00, &H00, &H00, &He0, &H93, &H04, &H00, &Hf4, &H53, &H00, &H00, &H00] 'Max = 63 !!? Print GG.src.Length 'OK GG.src = [&Haa, &H25, &H00, &H01, &H0a, &H00, &H00, &H00, &H0f, &Hf0, &H00, &H00, &H00, &H02, &H00, &H0d, &H06, &H00, &H10, &H00, &H00, &H00, &H00, &H00, &He0, &H93, &H04, &H00, &Hf4, &H53, &H00, &H00, &H00, &H00, &He0, &H93, &H04, &H00, &Hf4, &H53, &H00, &H00, &H00, &H02, &H00, &H0d, &H06, &H00, &H10, &H00, &H00, &H00, &H00, &H02, &H00, &H0d, &H06, &H00, &H10, &H00, &H00, &H00, &H00, &H00, &He0, &H93, &H04, &H00, &Hf4, &H53, &H00, &H00, &H00] 'Max = 63 !!? Print GG.src.Length 'Too many arguments !! End -------------- next part -------------- A non-text attachment was scrubbed... Name: StructArray_gb3_001-0.0.1.tar.gz Type: application/gzip Size: 5644 bytes Desc: not available URL: From gambas.fr at ...626... Sun Jan 26 20:17:16 2014 From: gambas.fr at ...626... (Fabien Bodard) Date: Sun, 26 Jan 2014 20:17:16 +0100 Subject: [Gambas-user] TableView (or GridView) .Height = 100% Control.Count In-Reply-To: <1390747474857-45372.post@...3046...> References: <1390747474857-45372.post@...3046...> Message-ID: Do you want the 5 rows to take all the clientheight ? I'm don't really understand what you means and what you want. Can you send us a small project that illustrate the problem or at less screenshots. Le 26 janv. 2014 16:04, "abbat81" a ?crit : > GridView & TableView > > I do not know how many rows a control will has > > It can has a 5 or 15 rows. > > So, how to set contol.height to show all 15 rows and if there are 5 rows to > do not show empty area without rows in a control. > > I can not calculate a pixels of one row because font size can be different > in linux theme. > > Bad English, I know, sorry > > Thanks. > > > > -- > View this message in context: > http://gambas.8142.n7.nabble.com/TableView-or-GridView-Height-100-Control-Count-tp45372.html > Sent from the gambas-user mailing list archive at Nabble.com. > > > ------------------------------------------------------------------------------ > CenturyLink Cloud: The Leader in Enterprise Cloud Services. > Learn Why More Businesses Are Choosing CenturyLink Cloud For > Critical Workloads, Development Environments & Everything In Between. > Get a Quote or Start a Free Trial Today. > > http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From jussi.lahtinen at ...626... Sun Jan 26 20:40:31 2014 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Sun, 26 Jan 2014 21:40:31 +0200 Subject: [Gambas-user] Question on ByteArray > 63 elements In-Reply-To: <52E53FDB.3060500@...2037...> References: <52E53FDB.3060500@...2037...> Message-ID: Example: GG.src.Insert([1,2,3,4]) Jussi On Sun, Jan 26, 2014 at 7:03 PM, wally wrote: > Hello, > > i need to write more than 63 Bytes to an Byte[] in a structure. > > How to do this job ? > > mini example attached > > > thank you wally > > '########################################################## > > > ' Gambas class file > > Public Struct myStruct > src As Byte[] > dst As Byte[] > End Struct > > Public GG As New MyStruct > > Public Sub Button1_Click() > > GG.src = New Byte[] > > GG.src.Resize(200) > GG.src.Fill(&hFF, 0, -1) > > Print GG.src.Length > GG.src.Clear > Print GG.src.Length > > GG.src = [&Haa, &H25, &H00, &H01, &H0a, &H00, &H00, &H00, &H00, &H0f, > &H00, &H00, &H00, &H02, &H00, &H0d, &H06, &H00, &H10, &H00, > &H00, &H00, &H00, &H00, &He0, &H93, &H04, &H00, &Hf4, &H53, > &H00, &H00, &H00, &H02, &H00, &H0d, &H06, &H00, &H10, &H00, > &H00, &H00, &H00, &H02, &H00, &H0d, &H06, &H00, &H10, &H00, > &H00, &H00, &H00, &H00, &He0, &H93, &H04, &H00, &Hf4, &H53, > &H00, &H00, &H00] 'Max = 63 !!? > > > Print GG.src.Length 'OK > > > GG.src = [&Haa, &H25, &H00, &H01, &H0a, &H00, &H00, &H00, &H0f, &Hf0, > &H00, &H00, &H00, &H02, &H00, &H0d, &H06, &H00, &H10, &H00, > &H00, &H00, &H00, &H00, &He0, &H93, &H04, &H00, &Hf4, &H53, > &H00, &H00, &H00, &H00, &He0, &H93, &H04, &H00, &Hf4, &H53, > &H00, &H00, &H00, &H02, &H00, &H0d, &H06, &H00, &H10, &H00, > &H00, &H00, &H00, &H02, &H00, &H0d, &H06, &H00, &H10, &H00, > &H00, &H00, &H00, &H00, &He0, &H93, &H04, &H00, &Hf4, &H53, > &H00, &H00, &H00] 'Max = 63 !!? > > Print GG.src.Length 'Too many arguments !! > > > End > > > ------------------------------------------------------------------------------ > CenturyLink Cloud: The Leader in Enterprise Cloud Services. > Learn Why More Businesses Are Choosing CenturyLink Cloud For > Critical Workloads, Development Environments & Everything In Between. > Get a Quote or Start a Free Trial Today. > > http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > From abbat.81 at ...787... Sun Jan 26 21:26:12 2014 From: abbat.81 at ...787... (abbat81) Date: Sun, 26 Jan 2014 12:26:12 -0800 (PST) Subject: [Gambas-user] TableView (or GridView) .Height = 100% Control.Count In-Reply-To: References: <1390747474857-45372.post@...3046...> Message-ID: <1390767972406-45377.post@...3046...> How to show all rows and to do not show white empty area if it is not needed. -- View this message in context: http://gambas.8142.n7.nabble.com/TableView-or-GridView-Height-100-Control-Count-tp45372p45377.html Sent from the gambas-user mailing list archive at Nabble.com. From wally at ...2037... Sun Jan 26 21:59:59 2014 From: wally at ...2037... (wally) Date: Sun, 26 Jan 2014 21:59:59 +0100 Subject: [Gambas-user] Question on ByteArray > 63 elements In-Reply-To: References: <52E53FDB.3060500@...2037...> Message-ID: <52E5774F.3000109@...2037...> Hi Jussi, still "too many arguments" I do something wrong, incedible a 63 limit for Byte[] GG.src.Insert([1,2,3,4, ... , 64, 65]) wally On 01/26/2014 08:40 PM, Jussi Lahtinen wrote: > Example: > GG.src.Insert([1,2,3,4]) > > Jussi > > > On Sun, Jan 26, 2014 at 7:03 PM, wally wrote: > >> Hello, >> >> i need to write more than 63 Bytes to an Byte[] in a structure. >> >> How to do this job ? >> >> mini example attached >> >> >> thank you wally >> >> '########################################################## >> >> >> ' Gambas class file >> >> Public Struct myStruct >> src As Byte[] >> dst As Byte[] >> End Struct >> >> Public GG As New MyStruct >> >> Public Sub Button1_Click() >> >> GG.src = New Byte[] >> >> GG.src.Resize(200) >> GG.src.Fill(&hFF, 0, -1) >> >> Print GG.src.Length >> GG.src.Clear >> Print GG.src.Length >> >> GG.src = [&Haa, &H25, &H00, &H01, &H0a, &H00, &H00, &H00, &H00, &H0f, >> &H00, &H00, &H00, &H02, &H00, &H0d, &H06, &H00, &H10, &H00, >> &H00, &H00, &H00, &H00, &He0, &H93, &H04, &H00, &Hf4, &H53, >> &H00, &H00, &H00, &H02, &H00, &H0d, &H06, &H00, &H10, &H00, >> &H00, &H00, &H00, &H02, &H00, &H0d, &H06, &H00, &H10, &H00, >> &H00, &H00, &H00, &H00, &He0, &H93, &H04, &H00, &Hf4, &H53, >> &H00, &H00, &H00] 'Max = 63 !!? >> >> >> Print GG.src.Length 'OK >> >> >> GG.src = [&Haa, &H25, &H00, &H01, &H0a, &H00, &H00, &H00, &H0f, &Hf0, >> &H00, &H00, &H00, &H02, &H00, &H0d, &H06, &H00, &H10, &H00, >> &H00, &H00, &H00, &H00, &He0, &H93, &H04, &H00, &Hf4, &H53, >> &H00, &H00, &H00, &H00, &He0, &H93, &H04, &H00, &Hf4, &H53, >> &H00, &H00, &H00, &H02, &H00, &H0d, &H06, &H00, &H10, &H00, >> &H00, &H00, &H00, &H02, &H00, &H0d, &H06, &H00, &H10, &H00, >> &H00, &H00, &H00, &H00, &He0, &H93, &H04, &H00, &Hf4, &H53, >> &H00, &H00, &H00] 'Max = 63 !!? >> >> Print GG.src.Length 'Too many arguments !! >> >> >> End >> >> >> ------------------------------------------------------------------------------ >> CenturyLink Cloud: The Leader in Enterprise Cloud Services. >> Learn Why More Businesses Are Choosing CenturyLink Cloud For >> Critical Workloads, Development Environments & Everything In Between. >> Get a Quote or Start a Free Trial Today. >> >> http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> >> > ------------------------------------------------------------------------------ > CenturyLink Cloud: The Leader in Enterprise Cloud Services. > Learn Why More Businesses Are Choosing CenturyLink Cloud For > Critical Workloads, Development Environments & Everything In Between. > Get a Quote or Start a Free Trial Today. > http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From taboege at ...626... Sun Jan 26 22:12:37 2014 From: taboege at ...626... (Tobias Boege) Date: Sun, 26 Jan 2014 22:12:37 +0100 Subject: [Gambas-user] Question on ByteArray > 63 elements In-Reply-To: <52E5774F.3000109@...2037...> References: <52E53FDB.3060500@...2037...> <52E5774F.3000109@...2037...> Message-ID: <20140126211237.GE514@...2774...> On Sun, 26 Jan 2014, wally wrote: > Hi Jussi, > > still "too many arguments" > > I do something wrong, incedible a 63 limit for Byte[] > > GG.src.Insert([1,2,3,4, ... , 64, 65]) > This is a known limit, but it has nothing special to do with the Byte[] class. IIRC, I was the one who last asked this question[0]. Regards, Tobi [0] http://sourceforge.net/mailarchive/message.php?msg_id=30899916 -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From gambas at ...2524... Sun Jan 26 22:14:44 2014 From: gambas at ...2524... (gambas at ...2524...) Date: Sun, 26 Jan 2014 21:14:44 +0000 Subject: [Gambas-user] Issue 355 in gambas: gb.gtk still uses gtk2 In-Reply-To: <4-6813199134517018827-2755329248504962869-gambas=googlecode.com@...2524...> References: <4-6813199134517018827-2755329248504962869-gambas=googlecode.com@...2524...> <0-6813199134517018827-2755329248504962869-gambas=googlecode.com@...2524...> Message-ID: <5-6813199134517018827-2755329248504962869-gambas=googlecode.com@...2524...> Comment #5 on issue 355 by mckayger... at ...626...: gb.gtk still uses gtk2 http://code.google.com/p/gambas/issues/detail?id=355 does gtk2 choice will dissapear or we can choose between gtk2 and gtk3 ( i notice that gtk3 are more heaviweith rather that gtk2 and also hard to mantain..) NOTE that MATE desktop are gtk2 only, also LXDE most components will not be ported to gtk3 (see main list) due now are into lxqt.. -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From gambas.fr at ...626... Sun Jan 26 22:55:16 2014 From: gambas.fr at ...626... (Fabien Bodard) Date: Sun, 26 Jan 2014 22:55:16 +0100 Subject: [Gambas-user] Question on ByteArray > 63 elements In-Reply-To: <20140126211237.GE514@...2774...> References: <52E53FDB.3060500@...2037...> <52E5774F.3000109@...2037...> <20140126211237.GE514@...2774...> Message-ID: if it is known datas why don't you store them to a file ? 2014-01-26 Tobias Boege : > On Sun, 26 Jan 2014, wally wrote: >> Hi Jussi, >> >> still "too many arguments" >> >> I do something wrong, incedible a 63 limit for Byte[] >> >> GG.src.Insert([1,2,3,4, ... , 64, 65]) >> > > This is a known limit, but it has nothing special to do with the Byte[] > class. IIRC, I was the one who last asked this question[0]. > > Regards, > Tobi > > [0] http://sourceforge.net/mailarchive/message.php?msg_id=30899916 > > -- > "There's an old saying: Don't change anything... ever!" -- Mr. Monk > > ------------------------------------------------------------------------------ > CenturyLink Cloud: The Leader in Enterprise Cloud Services. > Learn Why More Businesses Are Choosing CenturyLink Cloud For > Critical Workloads, Development Environments & Everything In Between. > Get a Quote or Start a Free Trial Today. > http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -- Fabien Bodard From wally at ...2037... Sun Jan 26 23:01:04 2014 From: wally at ...2037... (wally) Date: Sun, 26 Jan 2014 23:01:04 +0100 Subject: [Gambas-user] Question on ByteArray > 63 elements In-Reply-To: References: <52E53FDB.3060500@...2037...> <52E5774F.3000109@...2037...> <20140126211237.GE514@...2774...> Message-ID: <52E585A0.1090202@...2037...> Fabian it is not known in the project. What i sent is a separate clear example only. This data is sent froma device, always different but usually not bigger than 255 Bytes. I fear i must cut in parts or do all the stuff again in C. On 01/26/2014 10:55 PM, Fabien Bodard wrote: > if it is known datas why don't you store them to a file ? > > 2014-01-26 Tobias Boege : >> On Sun, 26 Jan 2014, wally wrote: >>> Hi Jussi, >>> >>> still "too many arguments" >>> >>> I do something wrong, incedible a 63 limit for Byte[] >>> >>> GG.src.Insert([1,2,3,4, ... , 64, 65]) >>> >> This is a known limit, but it has nothing special to do with the Byte[] >> class. IIRC, I was the one who last asked this question[0]. >> >> Regards, >> Tobi >> >> [0] http://sourceforge.net/mailarchive/message.php?msg_id=30899916 >> >> -- >> "There's an old saying: Don't change anything... ever!" -- Mr. Monk >> >> ------------------------------------------------------------------------------ >> CenturyLink Cloud: The Leader in Enterprise Cloud Services. >> Learn Why More Businesses Are Choosing CenturyLink Cloud For >> Critical Workloads, Development Environments & Everything In Between. >> Get a Quote or Start a Free Trial Today. >> http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user > > From gambas.fr at ...626... Sun Jan 26 23:04:52 2014 From: gambas.fr at ...626... (Fabien Bodard) Date: Sun, 26 Jan 2014 23:04:52 +0100 Subject: [Gambas-user] TableView (or GridView) .Height = 100% Control.Count In-Reply-To: <1390767972406-45377.post@...3046...> References: <1390747474857-45372.post@...3046...> <1390767972406-45377.post@...3046...> Message-ID: Is this good for you ? : GridView1.Height = GridView1.Rows[GridView1.Rows.Max].y + GridView1.Rows[GridView1.Rows.Max].Height + 10 2014-01-26 abbat81 : > > > How to show all rows and to do not show white empty area if it is not > needed. > > > > -- > View this message in context: http://gambas.8142.n7.nabble.com/TableView-or-GridView-Height-100-Control-Count-tp45372p45377.html > Sent from the gambas-user mailing list archive at Nabble.com. > > ------------------------------------------------------------------------------ > CenturyLink Cloud: The Leader in Enterprise Cloud Services. > Learn Why More Businesses Are Choosing CenturyLink Cloud For > Critical Workloads, Development Environments & Everything In Between. > Get a Quote or Start a Free Trial Today. > http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk > _______________________________________________ > 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... Sun Jan 26 23:05:27 2014 From: gambas.fr at ...626... (Fabien Bodard) Date: Sun, 26 Jan 2014 23:05:27 +0100 Subject: [Gambas-user] TableView (or GridView) .Height = 100% Control.Count In-Reply-To: References: <1390747474857-45372.post@...3046...> <1390767972406-45377.post@...3046...> Message-ID: Public Sub GridView1_Arrange() GridView1.Height = GridView1.Rows[GridView1.Rows.Max].y + GridView1.Rows[GridView1.Rows.Max].Height + 10 'Print GridView1.Rows[GridView1.Rows.Max].Y + GridView1.Rows[GridView1.Rows.Max].Height End 2014-01-26 Fabien Bodard : > Is this good for you ? : > > GridView1.Height = GridView1.Rows[GridView1.Rows.Max].y + > GridView1.Rows[GridView1.Rows.Max].Height + 10 > > 2014-01-26 abbat81 : >> >> >> How to show all rows and to do not show white empty area if it is not >> needed. >> >> >> >> -- >> View this message in context: http://gambas.8142.n7.nabble.com/TableView-or-GridView-Height-100-Control-Count-tp45372p45377.html >> Sent from the gambas-user mailing list archive at Nabble.com. >> >> ------------------------------------------------------------------------------ >> CenturyLink Cloud: The Leader in Enterprise Cloud Services. >> Learn Why More Businesses Are Choosing CenturyLink Cloud For >> Critical Workloads, Development Environments & Everything In Between. >> Get a Quote or Start a Free Trial Today. >> http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > -- > Fabien Bodard -- Fabien Bodard From gambas at ...1... Mon Jan 27 00:25:39 2014 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Mon, 27 Jan 2014 00:25:39 +0100 Subject: [Gambas-user] multiple selection on gridview In-Reply-To: References: Message-ID: <52E59973.7030408@...1...> Le 24/01/2014 19:32, Jorge Carri?n a ?crit : > Hi > > If you set enable the Multiple property on a gridview, you can select > several rows with key control+Click. Ok, thats expected. > > But once you have selected several row by doing this, if you click on one > of selected item and try to make a Drag&Drop operation (like is usuall on > Nautilus and very other software) it's triggered the Click event, > unselecting all items, except that you have clicking, and you can't do the > Drag... > > The only thing you can do is start de Drag before release the mouse button > of the last selected item... but that is not the expected behaviour for the > user (and for me, of course) and not always it's posible doing that, > especially on very large lists where the user goes up and down searching > certain rows with his own eyes... > > Someone know how to imitate the behavior-like-nautilus on gridviews? I've > tried doing a delay on click event... on mousedown event.... storing > selected rowids in a Array, etc. etc., but I've no success... > > Thanks in advance > > Regards. That weird behaviour should have been fixed in revision #6106. Now, dnd is triggered only if you click inside the selection and move the mouse. Regards, -- Beno?t Minisini From gambas at ...1... Mon Jan 27 00:49:45 2014 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Mon, 27 Jan 2014 00:49:45 +0100 Subject: [Gambas-user] sdl Draw event overhead is killing frame rate In-Reply-To: <52DCA5D2.2040503@...1887...> References: <52D5F36A.30801@...1887...> <52D5FE4E.5050800@...1...> <52D619D5.2030409@...1887...> <52D6A425.8080007@...1...> <52D7682E.4030405@...1887...> <52D851BC.7010802@...1...> <52D8580F.3060001@...1...> <52D9FC73.4070400@...1887...> <52DB88C2.3030203@...1887...> <52DBF0F1.90106@...1...> <52DCA5D2.2040503@...1887...> Message-ID: <52E59F19.1070400@...1...> Le 20/01/2014 05:28, Kevin Fishburne a ?crit : > > It must provoke some acid reflux deep within the bowels of SDL. :) I > don't know...it's damn strange for sure. I also find it strange that the > FPS is around 500, but when you minimize the window it jumps to over > 2000. Even if it's just refreshing the window itself, you'd think on a > modern system with hardware acceleration it would be faster than that. > > I attached my test app. It has all the OpenGL commands and variable > declarations commented out, so it's running just an empty SDL loop with > the frame rate calculation and console printout. Feel free to test the > two revisions yourself to see the difference. > > Just thought of something...how can you change the current font SDL is > using? I wonder if changing it from the bitmap to an arbitrary TTF (even > though no text is being rendered) would make a difference? > I solve my FPS problem on Intel GPU with the driconf program (that is buggy) and that link: https://wiki.archlinux.org/index.php/Intel_Graphics A flag in the "~/.drirc" file allowed me to disable automatic VSYNC, and now my SDL programs go to the maximum speed. I don't know which GUI driver you use exactly, but I suggest you look in that direction. Regards, -- Beno?t Minisini From jussi.lahtinen at ...626... Mon Jan 27 00:59:22 2014 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Mon, 27 Jan 2014 01:59:22 +0200 Subject: [Gambas-user] Question on ByteArray > 63 elements In-Reply-To: <52E5774F.3000109@...2037...> References: <52E53FDB.3060500@...2037...> <52E5774F.3000109@...2037...> Message-ID: No, you got me wrong... 64 is limit of arguments, so split it in two set of arguments. GG.src.Insert([1,2,3,4, ... ]) GG.src.Insert([ ... 63, 64, 65]) Jussi On Sun, Jan 26, 2014 at 10:59 PM, wally wrote: > Hi Jussi, > > still "too many arguments" > > I do something wrong, incedible a 63 limit for Byte[] > > GG.src.Insert([1,2,3,4, ... , 64, 65]) > > > wally > > On 01/26/2014 08:40 PM, Jussi Lahtinen wrote: > > Example: > > GG.src.Insert([1,2,3,4]) > > > > Jussi > > > > > > On Sun, Jan 26, 2014 at 7:03 PM, wally wrote: > > > >> Hello, > >> > >> i need to write more than 63 Bytes to an Byte[] in a structure. > >> > >> How to do this job ? > >> > >> mini example attached > >> > >> > >> thank you wally > >> > >> '########################################################## > >> > >> > >> ' Gambas class file > >> > >> Public Struct myStruct > >> src As Byte[] > >> dst As Byte[] > >> End Struct > >> > >> Public GG As New MyStruct > >> > >> Public Sub Button1_Click() > >> > >> GG.src = New Byte[] > >> > >> GG.src.Resize(200) > >> GG.src.Fill(&hFF, 0, -1) > >> > >> Print GG.src.Length > >> GG.src.Clear > >> Print GG.src.Length > >> > >> GG.src = [&Haa, &H25, &H00, &H01, &H0a, &H00, &H00, &H00, &H00, &H0f, > >> &H00, &H00, &H00, &H02, &H00, &H0d, &H06, &H00, &H10, &H00, > >> &H00, &H00, &H00, &H00, &He0, &H93, &H04, &H00, &Hf4, &H53, > >> &H00, &H00, &H00, &H02, &H00, &H0d, &H06, &H00, &H10, &H00, > >> &H00, &H00, &H00, &H02, &H00, &H0d, &H06, &H00, &H10, &H00, > >> &H00, &H00, &H00, &H00, &He0, &H93, &H04, &H00, &Hf4, &H53, > >> &H00, &H00, &H00] 'Max = 63 !!? > >> > >> > >> Print GG.src.Length 'OK > >> > >> > >> GG.src = [&Haa, &H25, &H00, &H01, &H0a, &H00, &H00, &H00, &H0f, &Hf0, > >> &H00, &H00, &H00, &H02, &H00, &H0d, &H06, &H00, &H10, &H00, > >> &H00, &H00, &H00, &H00, &He0, &H93, &H04, &H00, &Hf4, &H53, > >> &H00, &H00, &H00, &H00, &He0, &H93, &H04, &H00, &Hf4, &H53, > >> &H00, &H00, &H00, &H02, &H00, &H0d, &H06, &H00, &H10, &H00, > >> &H00, &H00, &H00, &H02, &H00, &H0d, &H06, &H00, &H10, &H00, > >> &H00, &H00, &H00, &H00, &He0, &H93, &H04, &H00, &Hf4, &H53, > >> &H00, &H00, &H00] 'Max = 63 !!? > >> > >> Print GG.src.Length 'Too many arguments !! > >> > >> > >> End > >> > >> > >> > ------------------------------------------------------------------------------ > >> CenturyLink Cloud: The Leader in Enterprise Cloud Services. > >> Learn Why More Businesses Are Choosing CenturyLink Cloud For > >> Critical Workloads, Development Environments & Everything In Between. > >> Get a Quote or Start a Free Trial Today. > >> > >> > http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk > >> _______________________________________________ > >> Gambas-user mailing list > >> Gambas-user at lists.sourceforge.net > >> https://lists.sourceforge.net/lists/listinfo/gambas-user > >> > >> > > > ------------------------------------------------------------------------------ > > CenturyLink Cloud: The Leader in Enterprise Cloud Services. > > Learn Why More Businesses Are Choosing CenturyLink Cloud For > > Critical Workloads, Development Environments & Everything In Between. > > Get a Quote or Start a Free Trial Today. > > > http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > ------------------------------------------------------------------------------ > CenturyLink Cloud: The Leader in Enterprise Cloud Services. > Learn Why More Businesses Are Choosing CenturyLink Cloud For > Critical Workloads, Development Environments & Everything In Between. > Get a Quote or Start a Free Trial Today. > > http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From kevinfishburne at ...1887... Mon Jan 27 02:55:34 2014 From: kevinfishburne at ...1887... (Kevin Fishburne) Date: Sun, 26 Jan 2014 20:55:34 -0500 Subject: [Gambas-user] sdl Draw event overhead is killing frame rate In-Reply-To: <52E59F19.1070400@...1...> References: <52D5F36A.30801@...1887...> <52D5FE4E.5050800@...1...> <52D619D5.2030409@...1887...> <52D6A425.8080007@...1...> <52D7682E.4030405@...1887...> <52D851BC.7010802@...1...> <52D8580F.3060001@...1...> <52D9FC73.4070400@...1887...> <52DB88C2.3030203@...1887...> <52DBF0F1.90106@...1...> <52DCA5D2.2040503@...1887...> <52E59F19.1070400@...1...> Message-ID: <52E5BC96.2010606@...1887...> On 01/26/2014 06:49 PM, Beno?t Minisini wrote: > Le 20/01/2014 05:28, Kevin Fishburne a ?crit : >> It must provoke some acid reflux deep within the bowels of SDL. :) I >> don't know...it's damn strange for sure. I also find it strange that the >> FPS is around 500, but when you minimize the window it jumps to over >> 2000. Even if it's just refreshing the window itself, you'd think on a >> modern system with hardware acceleration it would be faster than that. >> >> I attached my test app. It has all the OpenGL commands and variable >> declarations commented out, so it's running just an empty SDL loop with >> the frame rate calculation and console printout. Feel free to test the >> two revisions yourself to see the difference. >> >> Just thought of something...how can you change the current font SDL is >> using? I wonder if changing it from the bitmap to an arbitrary TTF (even >> though no text is being rendered) would make a difference? >> > I solve my FPS problem on Intel GPU with the driconf program (that is > buggy) and that link: > > https://wiki.archlinux.org/index.php/Intel_Graphics > > A flag in the "~/.drirc" file allowed me to disable automatic VSYNC, and > now my SDL programs go to the maximum speed. > > I don't know which GUI driver you use exactly, but I suggest you look in > that direction. > > Regards, > I installed driconf and created that config file, though it had no effect. I'm using an NVIDIA graphics card and driver and think that solution is just for Intel chipsets. I've tried every binary NVIDIA driver in the Kubuntu 13.10 repositories and tried the open source NVIDIA driver. It performs virtually the same on my main workstation using two different NVIDIA cards (the second one brand new), a VM with hardware acceleration enabled and my server (also trying several versions of the binary driver), which uses a much older NVIDIA card. With the binary driver there is a GUI (NVIDIA X Server Settings) that allows you to change vsync, page flipping, full screen anti-aliasing, anisotropic filtering, etc. I've run my test program using all variations of these settings. The only one that makes a difference is vsync, which predictably either caps the FPS at 60 or allows it to max out around 238. The window size is also largely irrelevant. Even setting it to 1x1 pixels gives nearly the same frame rate as a 1280x720 window. So, in the immortal words of Sherlock Holmes, "when you have eliminated the impossible, whatever remains, however improbable, must be the truth". So with all other possibilities eliminated I have to wonder what exactly Gambas and SDL are -doing- executing that Draw event loop. My test app maxes out one core of my four-core, 3.5 GHz AMD Phenom II X4 970 CPU, with a $100+ new video card with vsync disabled and a 1x1 pixel render target. So it's not giving any time back to an idle process; it's using every bit of that CPU core to do -something-. So, what is it doing? That's a lot of burned watts to increment a Long datatype 238 times per second. -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sales at ...1887... phone: (770) 853-6271 From kevinfishburne at ...1887... Mon Jan 27 05:51:27 2014 From: kevinfishburne at ...1887... (Kevin Fishburne) Date: Sun, 26 Jan 2014 23:51:27 -0500 Subject: [Gambas-user] Using OpenGL without SDL Draw event Message-ID: <52E5E5CF.6010901@...1887...> This is tangent to the thread "sdl Draw event overhead is killing frame rate". When rendering graphics with OpenGL using SDL for window management, you define a screen like this: Public Screen As New Window As "Screen" With Screen .FullScreen = False .Width = 1 .Height = 1 .Framerate = 0 .Show() End With When Screen's .Show method is executed the Screen's Draw event procedure (Screen_Draw) begins executing continuously. As discussed in the previous thread it is extremely slow, even if practically empty and drawing nothing. Is there a way to define a Screen/Window to be used as a render target for OpenGL that does not use SDL? I'm experimenting with gb.qt4.opengl now but am having some trouble. I've attached the project, which dies with signal 11 upon executing the line "Glu.Build2DMipmaps(TextureImage)" I actually just created a form and then a GLArea so I think I'm on the right track, but am not sure where to go from there. I think this is how I did things years ago before moving to SDL, though without OpenGL. -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sales at ...1887... phone: (770) 853-6271 -------------- next part -------------- A non-text attachment was scrubbed... Name: SDL_Draw_Event_Test.tar.gz Type: application/gzip Size: 41220 bytes Desc: not available URL: From bbruen at ...2308... Mon Jan 27 06:18:30 2014 From: bbruen at ...2308... (Bruce) Date: Mon, 27 Jan 2014 15:48:30 +1030 Subject: [Gambas-user] Externs ... yet again Message-ID: <1390799910.23457.64.camel@...2688...> 'aspell_config_replace(spell_config, "lang", "en_US"); Extern aspell_config_replace(spell_checker As Pointer, Var As String = "lang", lang As String = "en_AU") In "libaspell" Not allowed? Syntax error. Missing ',' or ')' in ... Sorry for terseness , bloody hot here today Bruce From bbruen at ...2308... Mon Jan 27 07:09:52 2014 From: bbruen at ...2308... (Bruce) Date: Mon, 27 Jan 2014 16:39:52 +1030 Subject: [Gambas-user] Externs ... yet again In-Reply-To: <1390799910.23457.64.camel@...2688...> References: <1390799910.23457.64.camel@...2688...> Message-ID: <1390802992.23457.67.camel@...2688...> On Mon, 2014-01-27 at 15:48 +1030, Bruce wrote: > 'aspell_config_replace(spell_config, "lang", "en_US"); > Extern aspell_config_replace(spell_checker As Pointer, Var As String = > "lang", lang As String = "en_AU") In "libaspell" > > Not allowed? > > Syntax error. Missing ',' or ')' in ... > > Sorry for terseness , bloody hot here today > > Bruce Forget it. Duh! Optional keyword would have been a good idea. :-( melting B From shordi at ...626... Mon Jan 27 09:53:21 2014 From: shordi at ...626... (=?ISO-8859-1?Q?Jorge_Carri=F3n?=) Date: Mon, 27 Jan 2014 09:53:21 +0100 Subject: [Gambas-user] multiple selection on gridview In-Reply-To: <52E59973.7030408@...1...> References: <52E59973.7030408@...1...> Message-ID: Thank you Benoit. Keep doing the good work. Gambas Rules! Regards. 2014-01-27 Beno?t Minisini > Le 24/01/2014 19:32, Jorge Carri?n a ?crit : > > Hi > > > > If you set enable the Multiple property on a gridview, you can select > > several rows with key control+Click. Ok, thats expected. > > > > But once you have selected several row by doing this, if you click on one > > of selected item and try to make a Drag&Drop operation (like is usuall on > > Nautilus and very other software) it's triggered the Click event, > > unselecting all items, except that you have clicking, and you can't do > the > > Drag... > > > > The only thing you can do is start de Drag before release the mouse > button > > of the last selected item... but that is not the expected behaviour for > the > > user (and for me, of course) and not always it's posible doing that, > > especially on very large lists where the user goes up and down searching > > certain rows with his own eyes... > > > > Someone know how to imitate the behavior-like-nautilus on gridviews? I've > > tried doing a delay on click event... on mousedown event.... storing > > selected rowids in a Array, etc. etc., but I've no success... > > > > Thanks in advance > > > > Regards. > > That weird behaviour should have been fixed in revision #6106. > > Now, dnd is triggered only if you click inside the selection and move > the mouse. > > Regards, > > -- > Beno?t Minisini > > > ------------------------------------------------------------------------------ > CenturyLink Cloud: The Leader in Enterprise Cloud Services. > Learn Why More Businesses Are Choosing CenturyLink Cloud For > Critical Workloads, Development Environments & Everything In Between. > Get a Quote or Start a Free Trial Today. > > http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From shanep1967 at ...169... Mon Jan 27 11:17:40 2014 From: shanep1967 at ...169... (Shane) Date: Mon, 27 Jan 2014 21:17:40 +1100 Subject: [Gambas-user] sdl music Message-ID: <52E63244.4030307@...169...> Can Someone please add a playing property to the sdl music component it looks easy using 4.5.19 Mix_PlayingMusic |int *Mix_PlayingMusic*()| Tells you if music is actively playing, or not. *Note*: Does not check if the channel has been paused. *Returns*: Zero if the music is not playing, or 1 if it is playing. this would be great thanks in advance From gambas at ...1... Mon Jan 27 13:43:27 2014 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Mon, 27 Jan 2014 13:43:27 +0100 Subject: [Gambas-user] sdl Draw event overhead is killing frame rate In-Reply-To: <52E5BC96.2010606@...1887...> References: <52D5F36A.30801@...1887...> <52D5FE4E.5050800@...1...> <52D619D5.2030409@...1887...> <52D6A425.8080007@...1...> <52D7682E.4030405@...1887...> <52D851BC.7010802@...1...> <52D8580F.3060001@...1...> <52D9FC73.4070400@...1887...> <52DB88C2.3030203@...1887...> <52DBF0F1.90106@...1...> <52DCA5D2.2040503@...1887...> <52E59F19.1070400@...1...> <52E5BC96.2010606@...1887...> Message-ID: <52E6546F.5040504@...1...> Le 27/01/2014 02:55, Kevin Fishburne a ?crit : > On 01/26/2014 06:49 PM, Beno?t Minisini wrote: >> Le 20/01/2014 05:28, Kevin Fishburne a ?crit : >>> It must provoke some acid reflux deep within the bowels of SDL. :) I >>> don't know...it's damn strange for sure. I also find it strange that the >>> FPS is around 500, but when you minimize the window it jumps to over >>> 2000. Even if it's just refreshing the window itself, you'd think on a >>> modern system with hardware acceleration it would be faster than that. >>> >>> I attached my test app. It has all the OpenGL commands and variable >>> declarations commented out, so it's running just an empty SDL loop with >>> the frame rate calculation and console printout. Feel free to test the >>> two revisions yourself to see the difference. >>> >>> Just thought of something...how can you change the current font SDL is >>> using? I wonder if changing it from the bitmap to an arbitrary TTF (even >>> though no text is being rendered) would make a difference? >>> >> I solve my FPS problem on Intel GPU with the driconf program (that is >> buggy) and that link: >> >> https://wiki.archlinux.org/index.php/Intel_Graphics >> >> A flag in the "~/.drirc" file allowed me to disable automatic VSYNC, and >> now my SDL programs go to the maximum speed. >> >> I don't know which GUI driver you use exactly, but I suggest you look in >> that direction. >> >> Regards, >> > > I installed driconf and created that config file, though it had no > effect. I'm using an NVIDIA graphics card and driver and think that > solution is just for Intel chipsets. > > I've tried every binary NVIDIA driver in the Kubuntu 13.10 repositories > and tried the open source NVIDIA driver. It performs virtually the same > on my main workstation using two different NVIDIA cards (the second one > brand new), a VM with hardware acceleration enabled and my server (also > trying several versions of the binary driver), which uses a much older > NVIDIA card. > > With the binary driver there is a GUI (NVIDIA X Server Settings) that > allows you to change vsync, page flipping, full screen anti-aliasing, > anisotropic filtering, etc. I've run my test program using all > variations of these settings. The only one that makes a difference is > vsync, which predictably either caps the FPS at 60 or allows it to max > out around 238. The window size is also largely irrelevant. Even setting > it to 1x1 pixels gives nearly the same frame rate as a 1280x720 window. > > So, in the immortal words of Sherlock Holmes, "when you have eliminated > the impossible, whatever remains, however improbable, must be the > truth". So with all other possibilities eliminated I have to wonder what > exactly Gambas and SDL are -doing- executing that Draw event loop. My > test app maxes out one core of my four-core, 3.5 GHz AMD Phenom II X4 > 970 CPU, with a $100+ new video card with vsync disabled and a 1x1 pixel > render target. So it's not giving any time back to an idle process; it's > using every bit of that CPU core to do -something-. So, what is it > doing? That's a lot of burned watts to increment a Long datatype 238 > times per second. > It's difficult for me to test as we have differents cards. But as soon as we are sure that the CPU core running the Gambas program is 10O% busy, (i.e. there is no vsync), we can run the program with valgrind and use kcachegrind to detect which function consumes CPU. I will do that with my intel card. Just do the same, with your program, or the glxgears example. To run valgrind: $ cd /my/gambas/project $ valgrind --tool=callgrind --num-callers=50 gbx3 ... ^C $ kcachegrind callgrind.out. Regards, -- Beno?t Minisini From gambas at ...1... Mon Jan 27 13:52:59 2014 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Mon, 27 Jan 2014 13:52:59 +0100 Subject: [Gambas-user] sdl Draw event overhead is killing frame rate In-Reply-To: <52E6546F.5040504@...1...> References: <52D5F36A.30801@...1887...> <52D5FE4E.5050800@...1...> <52D619D5.2030409@...1887...> <52D6A425.8080007@...1...> <52D7682E.4030405@...1887...> <52D851BC.7010802@...1...> <52D8580F.3060001@...1...> <52D9FC73.4070400@...1887...> <52DB88C2.3030203@...1887...> <52DBF0F1.90106@...1...> <52DCA5D2.2040503@...1887...> <52E59F19.1070400@...1...> <52E5BC96.2010606@...1887...> <52E6546F.5040504@...1...> Message-ID: <52E656AB.5090305@...1...> Le 27/01/2014 13:43, Beno?t Minisini a ?crit : > > It's difficult for me to test as we have differents cards. > > But as soon as we are sure that the CPU core running the Gambas program > is 10O% busy, (i.e. there is no vsync), we can run the program with > valgrind and use kcachegrind to detect which function consumes CPU. > > I will do that with my intel card. Just do the same, with your program, > or the glxgears example. > > To run valgrind: > > $ cd /my/gambas/project > $ valgrind --tool=callgrind --num-callers=50 gbx3 > ... > ^C > $ kcachegrind callgrind.out. > > Regards, > OK, apparently there is a problem in the SDL source code: it creates a TTF font each time the Draw event is called! I don't know why it does that, I will investigate... -- Beno?t Minisini From gambas at ...1... Mon Jan 27 14:01:18 2014 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Mon, 27 Jan 2014 14:01:18 +0100 Subject: [Gambas-user] sdl Draw event overhead is killing frame rate In-Reply-To: <52E656AB.5090305@...1...> References: <52D5F36A.30801@...1887...> <52D5FE4E.5050800@...1...> <52D619D5.2030409@...1887...> <52D6A425.8080007@...1...> <52D7682E.4030405@...1887...> <52D851BC.7010802@...1...> <52D8580F.3060001@...1...> <52D9FC73.4070400@...1887...> <52DB88C2.3030203@...1887...> <52DBF0F1.90106@...1...> <52DCA5D2.2040503@...1887...> <52E59F19.1070400@...1...> <52E5BC96.2010606@...1887...> <52E6546F.5040504@...1...> <52E656AB.5090305@...1...> Message-ID: <52E6589E.2010006@...1...> Le 27/01/2014 13:52, Beno?t Minisini a ?crit : > Le 27/01/2014 13:43, Beno?t Minisini a ?crit : >> >> It's difficult for me to test as we have differents cards. >> >> But as soon as we are sure that the CPU core running the Gambas program >> is 10O% busy, (i.e. there is no vsync), we can run the program with >> valgrind and use kcachegrind to detect which function consumes CPU. >> >> I will do that with my intel card. Just do the same, with your program, >> or the glxgears example. >> >> To run valgrind: >> >> $ cd /my/gambas/project >> $ valgrind --tool=callgrind --num-callers=50 gbx3 >> ... >> ^C >> $ kcachegrind callgrind.out. >> >> Regards, >> > > OK, apparently there is a problem in the SDL source code: it creates a > TTF font each time the Draw event is called! I don't know why it does > that, I will investigate... > I think you will be happy with revision #6107. :-) -- Beno?t Minisini From mike.crean at ...2897... Mon Jan 27 14:03:14 2014 From: mike.crean at ...2897... (Mike Crean) Date: Mon, 27 Jan 2014 05:03:14 -0800 (PST) Subject: [Gambas-user] Externs ... yet again In-Reply-To: <1390802992.23457.67.camel@...2688...> References: <1390799910.23457.64.camel@...2688...> <1390802992.23457.67.camel@...2688...> Message-ID: <1390827794.85346.YahooMailNeo@...3084...> Hey Bruce are you on the apple isle, if so its never really hot. Try a real state if you want hot (WA) :-). Cheers Mike On Monday, 27 January 2014 2:09 PM, Bruce wrote: On Mon, 2014-01-27 at 15:48 +1030, Bruce wrote: > 'aspell_config_replace(spell_config, "lang", "en_US"); > Extern aspell_config_replace(spell_checker As Pointer, Var As String = > "lang", lang As String = "en_AU") In "libaspell" > > Not allowed? > > Syntax error. Missing ',' or ')' in ... > > Sorry? for terseness , bloody hot here today > > Bruce Forget it.? Duh! Optional keyword would have been a good idea. :-( melting B ------------------------------------------------------------------------------ CenturyLink Cloud: The Leader in Enterprise Cloud Services. Learn Why More Businesses Are Choosing CenturyLink Cloud For Critical Workloads, Development Environments & Everything In Between. Get a Quote or Start a Free Trial Today. http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From jussi.lahtinen at ...626... Mon Jan 27 17:22:04 2014 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Mon, 27 Jan 2014 18:22:04 +0200 Subject: [Gambas-user] Question on ByteArray > 63 elements In-Reply-To: References: <52E53FDB.3060500@...2037...> <52E5774F.3000109@...2037...> Message-ID: I don't quite understand the problem. If the data is from device, then why number of parameters matter? The limit only applies when the data is written by hand directly to source code. You don't read it from stream/memory? Yes, you can put the values to string like this "1, 2, 3, ... , 63, 64, 65" and use Split() and CByte() to convert them to your array. Jussi On Mon, Jan 27, 2014 at 1:59 AM, Jussi Lahtinen wrote: > No, you got me wrong... 64 is limit of arguments, so split it in two set > of arguments. > > GG.src.Insert([1,2,3,4, ... ]) > GG.src.Insert([ ... 63, 64, 65]) > > > Jussi > > > > On Sun, Jan 26, 2014 at 10:59 PM, wally wrote: > >> Hi Jussi, >> >> still "too many arguments" >> >> I do something wrong, incedible a 63 limit for Byte[] >> >> GG.src.Insert([1,2,3,4, ... , 64, 65]) >> >> >> wally >> >> On 01/26/2014 08:40 PM, Jussi Lahtinen wrote: >> > Example: >> > GG.src.Insert([1,2,3,4]) >> > >> > Jussi >> > >> > >> > On Sun, Jan 26, 2014 at 7:03 PM, wally wrote: >> > >> >> Hello, >> >> >> >> i need to write more than 63 Bytes to an Byte[] in a structure. >> >> >> >> How to do this job ? >> >> >> >> mini example attached >> >> >> >> >> >> thank you wally >> >> >> >> '########################################################## >> >> >> >> >> >> ' Gambas class file >> >> >> >> Public Struct myStruct >> >> src As Byte[] >> >> dst As Byte[] >> >> End Struct >> >> >> >> Public GG As New MyStruct >> >> >> >> Public Sub Button1_Click() >> >> >> >> GG.src = New Byte[] >> >> >> >> GG.src.Resize(200) >> >> GG.src.Fill(&hFF, 0, -1) >> >> >> >> Print GG.src.Length >> >> GG.src.Clear >> >> Print GG.src.Length >> >> >> >> GG.src = [&Haa, &H25, &H00, &H01, &H0a, &H00, &H00, &H00, &H00, &H0f, >> >> &H00, &H00, &H00, &H02, &H00, &H0d, &H06, &H00, &H10, &H00, >> >> &H00, &H00, &H00, &H00, &He0, &H93, &H04, &H00, &Hf4, &H53, >> >> &H00, &H00, &H00, &H02, &H00, &H0d, &H06, &H00, &H10, &H00, >> >> &H00, &H00, &H00, &H02, &H00, &H0d, &H06, &H00, &H10, &H00, >> >> &H00, &H00, &H00, &H00, &He0, &H93, &H04, &H00, &Hf4, &H53, >> >> &H00, &H00, &H00] 'Max = 63 !!? >> >> >> >> >> >> Print GG.src.Length 'OK >> >> >> >> >> >> GG.src = [&Haa, &H25, &H00, &H01, &H0a, &H00, &H00, &H00, &H0f, &Hf0, >> >> &H00, &H00, &H00, &H02, &H00, &H0d, &H06, &H00, &H10, &H00, >> >> &H00, &H00, &H00, &H00, &He0, &H93, &H04, &H00, &Hf4, &H53, >> >> &H00, &H00, &H00, &H00, &He0, &H93, &H04, &H00, &Hf4, &H53, >> >> &H00, &H00, &H00, &H02, &H00, &H0d, &H06, &H00, &H10, &H00, >> >> &H00, &H00, &H00, &H02, &H00, &H0d, &H06, &H00, &H10, &H00, >> >> &H00, &H00, &H00, &H00, &He0, &H93, &H04, &H00, &Hf4, &H53, >> >> &H00, &H00, &H00] 'Max = 63 !!? >> >> >> >> Print GG.src.Length 'Too many arguments !! >> >> >> >> >> >> End >> >> >> >> >> >> >> ------------------------------------------------------------------------------ >> >> CenturyLink Cloud: The Leader in Enterprise Cloud Services. >> >> Learn Why More Businesses Are Choosing CenturyLink Cloud For >> >> Critical Workloads, Development Environments & Everything In Between. >> >> Get a Quote or Start a Free Trial Today. >> >> >> >> >> http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk >> >> _______________________________________________ >> >> Gambas-user mailing list >> >> Gambas-user at lists.sourceforge.net >> >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> >> >> >> >> > >> ------------------------------------------------------------------------------ >> > CenturyLink Cloud: The Leader in Enterprise Cloud Services. >> > Learn Why More Businesses Are Choosing CenturyLink Cloud For >> > Critical Workloads, Development Environments & Everything In Between. >> > Get a Quote or Start a Free Trial Today. >> > >> http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk >> > _______________________________________________ >> > Gambas-user mailing list >> > Gambas-user at lists.sourceforge.net >> > https://lists.sourceforge.net/lists/listinfo/gambas-user >> > >> >> >> >> ------------------------------------------------------------------------------ >> CenturyLink Cloud: The Leader in Enterprise Cloud Services. >> Learn Why More Businesses Are Choosing CenturyLink Cloud For >> Critical Workloads, Development Environments & Everything In Between. >> Get a Quote or Start a Free Trial Today. >> >> http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > From yodi at ...18... Mon Jan 27 18:11:21 2014 From: yodi at ...18... (Dirk) Date: Mon, 27 Jan 2014 18:11:21 +0100 Subject: [Gambas-user] Convert string to integer In-Reply-To: <52E4BFB7.3070805@...1950...> References: <2-6813199134517018827-5148484893610216006-gambas=googlecode.com@...2524...> <0-6813199134517018827-5148484893610216006-gambas=googlecode.com@...2524...> <3-6813199134517018827-5148484893610216006-gambas=googlecode.com@...2524...> <52E4BAB0.20900@...18...> <52E4BFB7.3070805@...1950...> Message-ID: <52E69339.3020907@...18...> Hi, I'm having a problem with Convert string to integer Public Sub MySock_Read() ' Data via Telnet ' When some data arrives from the remote ' part of the socket, "DataAvailable" event ' is raised '**************************************** Dim qrg_i As Integer Dim qrg As String Dim rx, rx2, rxtmp As String If MySock.Status = Net.Connected Then Read #MySock, rx, Lof(MySock) rx2 = rx If Mid$(rx, 1, 5) = "DX de" Then dxde = Mid$(rx, 1, 5) rx = Trim(Replace$(rx, "DX de ", "")) i = InStr(rx, " ") txcall = Mid$(rx, 1, i) rx = Trim(Replace$(rx, txcall & " ", "")) qrg = Mid$(rx, 1, InStr(rx, " ")) rx = Trim(Replace$(rx, qrg & " ", "")) dxcall = Mid$(rx, 1, InStr(rx, " ")) rx = Trim(Replace$(rx, dxcall & " ", "")) ' . . . . . . . . . . qrg = Trim(qrg) Print "qrg=" & qrg & "<<<" ' out = qrg=14160.0<<< Try qrg_i = CInteger(qrg) If Error Then Error Subst("&1 won't convert", qrg) qrg_i = CInteger(qrg) ' <<<== Here is Error --- Dirk From abbat.81 at ...787... Mon Jan 27 19:25:35 2014 From: abbat.81 at ...787... (abbat81) Date: Mon, 27 Jan 2014 10:25:35 -0800 (PST) Subject: [Gambas-user] TableView (or GridView) .Height = 100% Control.Count In-Reply-To: References: <1390747474857-45372.post@...3046...> <1390767972406-45377.post@...3046...> Message-ID: <1390847135163-45400.post@...3046...> Thank you, it works OK. :) -- View this message in context: http://gambas.8142.n7.nabble.com/TableView-or-GridView-Height-100-Control-Count-tp45372p45400.html Sent from the gambas-user mailing list archive at Nabble.com. From Gambas at ...1950... Mon Jan 27 19:28:47 2014 From: Gambas at ...1950... (Caveat) Date: Mon, 27 Jan 2014 19:28:47 +0100 Subject: [Gambas-user] Convert string to integer In-Reply-To: <52E69339.3020907@...18...> References: <2-6813199134517018827-5148484893610216006-gambas=googlecode.com@...2524...> <0-6813199134517018827-5148484893610216006-gambas=googlecode.com@...2524...> <3-6813199134517018827-5148484893610216006-gambas=googlecode.com@...2524...> <52E4BAB0.20900@...18...> <52E4BFB7.3070805@...1950...> <52E69339.3020907@...18...> Message-ID: <52E6A55F.4000907@...1950...> You can't use CInteger on a String that does not represent an Integer! Either make sure your String is always a 'pure' integer... so "14160" in place of "14160.0" Or code qrg_i = Int(CFloat(qrg)), which is much more forgiving. The reason you get an error is that you make the same mistake twice... first you ask Gambas to convert the invalid String, then you catch an error on that statement, but then you again ask Gambas to convert the invalid String you just got an error on! Kind regards, Caveat On 27/01/14 18:11, Dirk wrote: > Hi, > > I'm having a problem with Convert string to integer > > > > > Public Sub MySock_Read() ' Data via Telnet > ' When some data arrives from the remote > ' part of the socket, "DataAvailable" event > ' is raised > '**************************************** > > Dim qrg_i As Integer > Dim qrg As String > Dim rx, rx2, rxtmp As String > > If MySock.Status = Net.Connected Then > Read #MySock, rx, Lof(MySock) > rx2 = rx > > If Mid$(rx, 1, 5) = "DX de" Then > > dxde = Mid$(rx, 1, 5) > rx = Trim(Replace$(rx, "DX de ", "")) > i = InStr(rx, " ") > txcall = Mid$(rx, 1, i) > rx = Trim(Replace$(rx, txcall & " ", "")) > qrg = Mid$(rx, 1, InStr(rx, " ")) > rx = Trim(Replace$(rx, qrg & " ", "")) > dxcall = Mid$(rx, 1, InStr(rx, " ")) > rx = Trim(Replace$(rx, dxcall & " ", "")) > ' . . . . . . . . . . > > qrg = Trim(qrg) > > Print "qrg=" & qrg & "<<<" ' out = qrg=14160.0<<< > > Try qrg_i = CInteger(qrg) > If Error Then Error Subst("&1 won't convert", qrg) > qrg_i = CInteger(qrg) ' <<<== Here is Error > > --- > Dirk > > > > > > > ------------------------------------------------------------------------------ > CenturyLink Cloud: The Leader in Enterprise Cloud Services. > Learn Why More Businesses Are Choosing CenturyLink Cloud For > Critical Workloads, Development Environments & Everything In Between. > Get a Quote or Start a Free Trial Today. > http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Mon Jan 27 19:30:28 2014 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Mon, 27 Jan 2014 19:30:28 +0100 Subject: [Gambas-user] TableView (or GridView) .Height = 100% Control.Count In-Reply-To: <1390847135163-45400.post@...3046...> References: <1390747474857-45372.post@...3046...> <1390767972406-45377.post@...3046...> <1390847135163-45400.post@...3046...> Message-ID: <52E6A5C4.90602@...1...> Le 27/01/2014 19:25, abbat81 a ?crit : > Thank you, it works OK. :) > Beware that you must use GridView.ClientWidth and GridView.ClientHeight instead of GridView.Width and GridView.Height if you want to take the GridView border into account. Regards, -- Beno?t Minisini From vuott at ...325... Mon Jan 27 19:28:50 2014 From: vuott at ...325... (Ru Vuott) Date: Mon, 27 Jan 2014 18:28:50 +0000 (GMT) Subject: [Gambas-user] Convert string to integer In-Reply-To: <52E69339.3020907@...18...> Message-ID: <1390847330.44975.YahooMailBasic@...3271...> ..try: qrg_i = CInteger(Val(qrg)) -------------------------------------------- Lun 27/1/14, Dirk ha scritto: Oggetto: Re: [Gambas-user] Convert string to integer A: gambas-user at lists.sourceforge.net Data: Luned? 27 gennaio 2014, 18:11 Hi, I'm having a problem with Convert string to integer Public Sub MySock_Read() ' Data via Telnet ? ' When some data arrives from the remote ? ' part of the socket, "DataAvailable" event ? ' is raised ? '**************************************** Dim qrg_i As Integer Dim qrg As String Dim rx, rx2, rxtmp As String If MySock.Status = Net.Connected Then ? ? ? Read #MySock, rx, Lof(MySock) ? ? ? rx2 = rx If Mid$(rx, 1, 5) = "DX de" Then dxde = Mid$(rx, 1, 5) ? ? ? ???rx = Trim(Replace$(rx, "DX de ", "")) ? ? ? ???i = InStr(rx, " ") ? ? ? ? txcall = Mid$(rx, 1, i) ? ? ? ???rx = Trim(Replace$(rx, txcall & " ", "")) ? ? ? ? qrg = Mid$(rx, 1, InStr(rx, " ")) ? ? ? ???rx = Trim(Replace$(rx, qrg & " ", "")) ? ? ? ? dxcall = Mid$(rx, 1, InStr(rx, " ")) ? ? ? ???rx = Trim(Replace$(rx, dxcall & " ", "")) ' . . . . . . . . . . qrg = Trim(qrg) Print "qrg=" & qrg & "<<<"? '? out =? qrg=14160.0<<< Try qrg_i = CInteger(qrg) If Error Then Error Subst("&1 won't convert", qrg) qrg_i = CInteger(qrg) '? <<<== Here is Error??? ? --- Dirk ------------------------------------------------------------------------------ CenturyLink Cloud: The Leader in Enterprise Cloud Services. Learn Why More Businesses Are Choosing CenturyLink Cloud For Critical Workloads, Development Environments & Everything In Between. Get a Quote or Start a Free Trial Today. http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From gambas at ...1... Mon Jan 27 19:39:53 2014 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Mon, 27 Jan 2014 19:39:53 +0100 Subject: [Gambas-user] sdl music In-Reply-To: <52E63244.4030307@...169...> References: <52E63244.4030307@...169...> Message-ID: <52E6A7F9.1060200@...1...> Le 27/01/2014 11:17, Shane a ?crit : > Can Someone please add a playing property to the sdl music component it > looks easy > using > > > 4.5.19 Mix_PlayingMusic > > |int *Mix_PlayingMusic*()| > > Tells you if music is actively playing, or not. > *Note*: Does not check if the channel has been paused. > > *Returns*: Zero if the music is not playing, or 1 if it is playing. > > this would be great thanks in advance > You can check the value of Music.Pos. If is different from zero, then the music is playing or paused. Regards, -- Beno?t Minisini From gambas at ...1... Mon Jan 27 19:46:35 2014 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Mon, 27 Jan 2014 19:46:35 +0100 Subject: [Gambas-user] sdl music In-Reply-To: <52E6A7F9.1060200@...1...> References: <52E63244.4030307@...169...> <52E6A7F9.1060200@...1...> Message-ID: <52E6A98B.8020104@...1...> Le 27/01/2014 19:39, Beno?t Minisini a ?crit : > Le 27/01/2014 11:17, Shane a ?crit : >> Can Someone please add a playing property to the sdl music component it >> looks easy >> using >> >> >> 4.5.19 Mix_PlayingMusic >> >> |int *Mix_PlayingMusic*()| >> >> Tells you if music is actively playing, or not. >> *Note*: Does not check if the channel has been paused. >> >> *Returns*: Zero if the music is not playing, or 1 if it is playing. >> >> this would be great thanks in advance >> > > You can check the value of Music.Pos. If is different from zero, then > the music is playing or paused. > > Regards, > And I added a Music.State property in revision #6108 to do what you want. Regards, -- Beno?t Minisini From abbat.81 at ...787... Mon Jan 27 19:52:17 2014 From: abbat.81 at ...787... (abbat81) Date: Mon, 27 Jan 2014 10:52:17 -0800 (PST) Subject: [Gambas-user] Mark some text in GridView/TableView Message-ID: <1390848737388-45406.post@...3046...> I need to mark some text in a controls. For example, I want to see like this: *Some text *some text some text Thanks -- View this message in context: http://gambas.8142.n7.nabble.com/Mark-some-text-in-GridView-TableView-tp45406.html Sent from the gambas-user mailing list archive at Nabble.com. From bbruen at ...2308... Mon Jan 27 21:00:14 2014 From: bbruen at ...2308... (Bruce) Date: Tue, 28 Jan 2014 06:30:14 +1030 Subject: [Gambas-user] Externs ... yet again In-Reply-To: <1390827794.85346.YahooMailNeo@...3084...> References: <1390799910.23457.64.camel@...2688...> <1390802992.23457.67.camel@...2688...> <1390827794.85346.YahooMailNeo@...3084...> Message-ID: <1390852814.23457.70.camel@...2688...> On Mon, 2014-01-27 at 05:03 -0800, Mike Crean wrote: > > Hey Bruce are you on the apple isle, if > so its never really hot. Try a real state if you want hot (WA) :-). > > Cheers > Mike > Postcode=5255 Stick that in your weatherzone. :-) Bruce From gambas.fr at ...626... Mon Jan 27 21:15:10 2014 From: gambas.fr at ...626... (Fabien Bodard) Date: Mon, 27 Jan 2014 21:15:10 +0100 Subject: [Gambas-user] Mark some text in GridView/TableView In-Reply-To: <1390848737388-45406.post@...3046...> References: <1390848737388-45406.post@...3046...> Message-ID: ??????? ?????? 2014-01-27 abbat81 : > I need to mark some text in a controls. > For example, I want to see like this: > > *Some text *some text some text > > Thanks > > > > -- > View this message in context: http://gambas.8142.n7.nabble.com/Mark-some-text-in-GridView-TableView-tp45406.html > Sent from the gambas-user mailing list archive at Nabble.com. > > ------------------------------------------------------------------------------ > CenturyLink Cloud: The Leader in Enterprise Cloud Services. > Learn Why More Businesses Are Choosing CenturyLink Cloud For > Critical Workloads, Development Environments & Everything In Between. > Get a Quote or Start a Free Trial Today. > http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -- Fabien Bodard From taboege at ...626... Mon Jan 27 21:39:33 2014 From: taboege at ...626... (Tobias Boege) Date: Mon, 27 Jan 2014 21:39:33 +0100 Subject: [Gambas-user] Internal compiler error with New Message-ID: <20140127203933.GC511@...2774...> Hi Benoit, attached is a project that generates an "internal compiler error" with this usage of the New keyword: Public Sub Main() New Boolean[] End Actually, this is the project's whole code. What's wrong with it? Could we be able to do such a thing so that, e.g. PathWatch (gb.inotify) objects don't need a Dim'd variable anymore? (I can think of classes where that's equally useful: the ones which record themselves upon creation in some static array or collection to be referenced later; they don't need to be assigned to a variable when their constructor terminated.) If not, no big deal. Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk -------------- next part -------------- A non-text attachment was scrubbed... Name: new-object-compiler-error-0.0.1.tar.gz Type: application/octet-stream Size: 4472 bytes Desc: not available URL: From jussi.lahtinen at ...626... Mon Jan 27 22:10:30 2014 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Mon, 27 Jan 2014 23:10:30 +0200 Subject: [Gambas-user] Internal compiler error with New In-Reply-To: <20140127203933.GC511@...2774...> References: <20140127203933.GC511@...2774...> Message-ID: ?? That doesn't make any sense, what do you think it should do? Jussi On Mon, Jan 27, 2014 at 10:39 PM, Tobias Boege wrote: > Hi Benoit, > > attached is a project that generates an "internal compiler error" with this > usage of the New keyword: > > Public Sub Main() > New Boolean[] > End > > Actually, this is the project's whole code. What's wrong with it? Could we > be able to do such a thing so that, e.g. PathWatch (gb.inotify) objects > don't need a Dim'd variable anymore? (I can think of classes where that's > equally useful: the ones which record themselves upon creation in some > static array or collection to be referenced later; they don't need to be > assigned to a variable when their constructor terminated.) If not, no big > deal. > > Regards, > Tobi > > -- > "There's an old saying: Don't change anything... ever!" -- Mr. Monk > > > ------------------------------------------------------------------------------ > CenturyLink Cloud: The Leader in Enterprise Cloud Services. > Learn Why More Businesses Are Choosing CenturyLink Cloud For > Critical Workloads, Development Environments & Everything In Between. > Get a Quote or Start a Free Trial Today. > > http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > From taboege at ...626... Mon Jan 27 22:15:05 2014 From: taboege at ...626... (Tobias Boege) Date: Mon, 27 Jan 2014 22:15:05 +0100 Subject: [Gambas-user] Internal compiler error with New In-Reply-To: References: <20140127203933.GC511@...2774...> Message-ID: <20140127211505.GD511@...2774...> On Mon, 27 Jan 2014, Jussi Lahtinen wrote: > ?? > That doesn't make any sense, what do you think it should do? > > > Public Sub Main() > > New Boolean[] > > End > > It should create a Boolean[] and free it afterwards because there is no reference to it. -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From jussi.lahtinen at ...626... Mon Jan 27 22:30:59 2014 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Mon, 27 Jan 2014 23:30:59 +0200 Subject: [Gambas-user] Internal compiler error with New In-Reply-To: <20140127211505.GD511@...2774...> References: <20140127203933.GC511@...2774...> <20140127211505.GD511@...2774...> Message-ID: Well ok, but I don't think that should be allowed syntax (at least I don't see any usage for it). Jussi On Mon, Jan 27, 2014 at 11:15 PM, Tobias Boege wrote: > On Mon, 27 Jan 2014, Jussi Lahtinen wrote: > > ?? > > That doesn't make any sense, what do you think it should do? > > > > > Public Sub Main() > > > New Boolean[] > > > End > > > > > It should create a Boolean[] and free it afterwards because there is no > reference to it. > > -- > "There's an old saying: Don't change anything... ever!" -- Mr. Monk > > > ------------------------------------------------------------------------------ > CenturyLink Cloud: The Leader in Enterprise Cloud Services. > Learn Why More Businesses Are Choosing CenturyLink Cloud For > Critical Workloads, Development Environments & Everything In Between. > Get a Quote or Start a Free Trial Today. > > http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From taboege at ...626... Mon Jan 27 22:40:13 2014 From: taboege at ...626... (Tobias Boege) Date: Mon, 27 Jan 2014 22:40:13 +0100 Subject: [Gambas-user] Internal compiler error with New In-Reply-To: References: <20140127203933.GC511@...2774...> <20140127211505.GD511@...2774...> Message-ID: <20140127214013.GF511@...2774...> On Mon, 27 Jan 2014, Jussi Lahtinen wrote: > Well ok, but I don't think that should be allowed syntax (at least I don't > see any usage for it). > I do: the PathWatch class in gb.inotify or generally every object like this: --8<-[ MyObject.class ]----------------------------------------------------- Private $cObjects As New Collection Public Sub _new(Name As String) $cObjects[Name] = Me Print "Hi, I'm";; Name;; "and I'm now referenced." End Static Public Sub _get(Name As String) As MyObject Return $cObjects[Name] End --8<------------------------------------------------------------------------ Maybe MyObject sets itself up for sending events or something in _new(). Then you really only need to create the thing (with an event name) and forget about it in the main program. Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From taboege at ...626... Mon Jan 27 22:44:18 2014 From: taboege at ...626... (Tobias Boege) Date: Mon, 27 Jan 2014 22:44:18 +0100 Subject: [Gambas-user] Internal compiler error with New In-Reply-To: <20140127214013.GF511@...2774...> References: <20140127203933.GC511@...2774...> <20140127211505.GD511@...2774...> <20140127214013.GF511@...2774...> Message-ID: <20140127214418.GG511@...2774...> On Mon, 27 Jan 2014, Tobias Boege wrote: > On Mon, 27 Jan 2014, Jussi Lahtinen wrote: > > Well ok, but I don't think that should be allowed syntax (at least I don't > > see any usage for it). > > > > I do: the PathWatch class in gb.inotify or generally every object like this: > > --8<-[ MyObject.class ]----------------------------------------------------- > Private $cObjects As New Collection > --> Static Private $cObjects As New Collection but that's not too important to the idea. -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From jussi.lahtinen at ...626... Mon Jan 27 23:17:06 2014 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Tue, 28 Jan 2014 00:17:06 +0200 Subject: [Gambas-user] Internal compiler error with New In-Reply-To: <20140127214013.GF511@...2774...> References: <20140127203933.GC511@...2774...> <20140127211505.GD511@...2774...> <20140127214013.GF511@...2774...> Message-ID: Maybe it's my sleep deprivation, but I can't understand connection between unreferenced array and this. How unreferenced array would help in this? By definition, if you can't refer to it, how you can use it? Jussi On Mon, Jan 27, 2014 at 11:40 PM, Tobias Boege wrote: > On Mon, 27 Jan 2014, Jussi Lahtinen wrote: > > Well ok, but I don't think that should be allowed syntax (at least I > don't > > see any usage for it). > > > > I do: the PathWatch class in gb.inotify or generally every object like > this: > > --8<-[ MyObject.class > ]----------------------------------------------------- > Private $cObjects As New Collection > > Public Sub _new(Name As String) > $cObjects[Name] = Me > Print "Hi, I'm";; Name;; "and I'm now referenced." > End > > Static Public Sub _get(Name As String) As MyObject > Return $cObjects[Name] > End > > --8<------------------------------------------------------------------------ > > Maybe MyObject sets itself up for sending events or something in _new(). > Then you really only need to create the thing (with an event name) and > forget about it in the main program. > > Regards, > Tobi > > -- > "There's an old saying: Don't change anything... ever!" -- Mr. Monk > > > ------------------------------------------------------------------------------ > CenturyLink Cloud: The Leader in Enterprise Cloud Services. > Learn Why More Businesses Are Choosing CenturyLink Cloud For > Critical Workloads, Development Environments & Everything In Between. > Get a Quote or Start a Free Trial Today. > > http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From taboege at ...626... Mon Jan 27 23:21:57 2014 From: taboege at ...626... (Tobias Boege) Date: Mon, 27 Jan 2014 23:21:57 +0100 Subject: [Gambas-user] Internal compiler error with New In-Reply-To: References: <20140127203933.GC511@...2774...> <20140127211505.GD511@...2774...> <20140127214013.GF511@...2774...> Message-ID: <20140127222157.GH511@...2774...> On Tue, 28 Jan 2014, Jussi Lahtinen wrote: > Maybe it's my sleep deprivation, but I can't understand connection between > unreferenced array and this. How unreferenced array would help in this? By > definition, if you can't refer to it, how you can use it? > > Jussi > Yeah, sorry, the Boolean[] was just the first class I found in the list which pops up if you type "New" in the IDE of which I was sure that it is instantiable. I didn't mean to say something about Boolean[] or an Array but *any* creatable object. Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From jussi.lahtinen at ...626... Tue Jan 28 00:24:09 2014 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Tue, 28 Jan 2014 01:24:09 +0200 Subject: [Gambas-user] Internal compiler error with New In-Reply-To: <20140127222157.GH511@...2774...> References: <20140127203933.GC511@...2774...> <20140127211505.GD511@...2774...> <20140127214013.GF511@...2774...> <20140127222157.GH511@...2774...> Message-ID: > I didn't mean to say something about Boolean[] or an Array but *any* > creatable object. > OK, so if some object works completely independently without any need to be accessed, then you could just write: New MyNoNeedToBeManagedObject And left it there to do it's job... well I'm not sure it's worth of the job. But that's Benoit's decision. Jussi From shanep1967 at ...169... Tue Jan 28 00:35:11 2014 From: shanep1967 at ...169... (Shane) Date: Tue, 28 Jan 2014 10:35:11 +1100 Subject: [Gambas-user] sdl music In-Reply-To: <52E6A98B.8020104@...1...> References: <52E63244.4030307@...169...> <52E6A7F9.1060200@...1...> <52E6A98B.8020104@...1...> Message-ID: <52E6ED2F.2010504@...169...> On 28/01/14 05:46, Beno?t Minisini wrote: > Le 27/01/2014 19:39, Beno?t Minisini a ?crit : >> Le 27/01/2014 11:17, Shane a ?crit : >>> Can Someone please add a playing property to the sdl music component it >>> looks easy >>> using >>> >>> >>> 4.5.19 Mix_PlayingMusic >>> >>> |int *Mix_PlayingMusic*()| >>> >>> Tells you if music is actively playing, or not. >>> *Note*: Does not check if the channel has been paused. >>> >>> *Returns*: Zero if the music is not playing, or 1 if it is playing. >>> >>> this would be great thanks in advance >>> >> You can check the value of Music.Pos. If is different from zero, then >> the music is playing or paused. >> >> Regards, >> > And I added a Music.State property in revision #6108 to do what you want. > > Regards, > thats great thanks very much keep up the great work :-) From gambas at ...1... Tue Jan 28 01:49:05 2014 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Tue, 28 Jan 2014 01:49:05 +0100 Subject: [Gambas-user] Question on ByteArray > 63 elements In-Reply-To: <52E53FDB.3060500@...2037...> References: <52E53FDB.3060500@...2037...> Message-ID: <52E6FE81.1080809@...1...> Le 26/01/2014 18:03, wally a ?crit : > Hello, > > i need to write more than 63 Bytes to an Byte[] in a structure. > > How to do this job ? > > mini example attached > > > thank you wally > Since revision #6110 the number of elements in the array constructor operator ([ ... ]) is now only limited by the maximum function size, which should lead to about 32000 elements, depending on what you put in your array. Regards, -- Beno?t Minisini From gambas at ...1... Tue Jan 28 01:49:53 2014 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Tue, 28 Jan 2014 01:49:53 +0100 Subject: [Gambas-user] Using OpenGL without SDL Draw event In-Reply-To: <52E5E5CF.6010901@...1887...> References: <52E5E5CF.6010901@...1887...> Message-ID: <52E6FEB1.2020503@...1...> Le 27/01/2014 05:51, Kevin Fishburne a ?crit : > This is tangent to the thread "sdl Draw event overhead is killing frame > rate". > > When rendering graphics with OpenGL using SDL for window management, you > define a screen like this: > > Public Screen As New Window As "Screen" > With Screen > .FullScreen = False > .Width = 1 > .Height = 1 > .Framerate = 0 > .Show() > End With > > When Screen's .Show method is executed the Screen's Draw event procedure > (Screen_Draw) begins executing continuously. As discussed in the > previous thread it is extremely slow, even if practically empty and > drawing nothing. > > Is there a way to define a Screen/Window to be used as a render target > for OpenGL that does not use SDL? I'm experimenting with gb.qt4.opengl > now but am having some trouble. I've attached the project, which dies > with signal 11 upon executing the line "Glu.Build2DMipmaps(TextureImage)" > > I actually just created a form and then a GLArea so I think I'm on the > right track, but am not sure where to go from there. I think this is how > I did things years ago before moving to SDL, though without OpenGL. > Did you try my recent gb.sdl fix? You should get your old FPS back! -- Beno?t Minisini From gambas at ...1... Tue Jan 28 02:01:14 2014 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Tue, 28 Jan 2014 02:01:14 +0100 Subject: [Gambas-user] Internal compiler error with New In-Reply-To: <20140127203933.GC511@...2774...> References: <20140127203933.GC511@...2774...> Message-ID: <52E7015A.3050604@...1...> Le 27/01/2014 21:39, Tobias Boege a ?crit : > Hi Benoit, > > attached is a project that generates an "internal compiler error" with this > usage of the New keyword: > > Public Sub Main() > New Boolean[] > End > > Actually, this is the project's whole code. What's wrong with it? Could we > be able to do such a thing so that, e.g. PathWatch (gb.inotify) objects > don't need a Dim'd variable anymore? (I can think of classes where that's > equally useful: the ones which record themselves upon creation in some > static array or collection to be referenced later; they don't need to be > assigned to a variable when their constructor terminated.) If not, no big > deal. > > Regards, > Tobi > This is a compiler bug. That code should generate a syntax error instead. -- Beno?t Minisini From gambas at ...1... Tue Jan 28 02:09:27 2014 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Tue, 28 Jan 2014 02:09:27 +0100 Subject: [Gambas-user] Internal compiler error with New In-Reply-To: <52E7015A.3050604@...1...> References: <20140127203933.GC511@...2774...> <52E7015A.3050604@...1...> Message-ID: <52E70347.5010501@...1...> Le 28/01/2014 02:01, Beno?t Minisini a ?crit : > Le 27/01/2014 21:39, Tobias Boege a ?crit : >> Hi Benoit, >> >> attached is a project that generates an "internal compiler error" with >> this >> usage of the New keyword: >> >> Public Sub Main() >> New Boolean[] >> End >> >> Actually, this is the project's whole code. What's wrong with it? >> Could we >> be able to do such a thing so that, e.g. PathWatch (gb.inotify) objects >> don't need a Dim'd variable anymore? (I can think of classes where that's >> equally useful: the ones which record themselves upon creation in some >> static array or collection to be referenced later; they don't need to be >> assigned to a variable when their constructor terminated.) If not, no big >> deal. >> >> Regards, >> Tobi >> > > This is a compiler bug. That code should generate a syntax error instead. > Fixed in revision #6112. Regards, -- Beno?t Minisini From gambas at ...2524... Tue Jan 28 04:29:40 2014 From: gambas at ...2524... (gambas at ...2524...) Date: Tue, 28 Jan 2014 03:29:40 +0000 Subject: [Gambas-user] Issue 506 in gambas: Make Install Error in LCDLabel Class Message-ID: <0-6813199134517018827-2602740466318608244-gambas=googlecode.com@...2524...> Status: New Owner: ---- Labels: Version-3.5.0 Type-Bug Priority-High OpSys-Reshat Dist-Redhat Arch-X86-64 Desktop-Any GUI-Any New issue 506 by ralford1... at ...626...: Make Install Error in LCDLabel Class http://code.google.com/p/gambas/issues/detail?id=506 1) During make install line 58 in trunk/com/src/gb.form/.src/LCDLabel.class: $cCar[" "] = [] generates an error: LCDLabel.class:116: error: Internal compiler error: bad stack usage computed! 2) GIVE THE FOLLOWING INFORMATIONS (if they are appropriate): Version: TRUNK 3.5.90 Revision: Operating system: Linux Distribution: RHEL 6 Architecture: x86_64 GUI component: N/A Desktop used: N/A -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From wally at ...2037... Tue Jan 28 08:06:08 2014 From: wally at ...2037... (wally) Date: Tue, 28 Jan 2014 08:06:08 +0100 Subject: [Gambas-user] Question on ByteArray > 63 elements In-Reply-To: References: <52E53FDB.3060500@...2037...> <52E5774F.3000109@...2037...> <20140126211237.GE514@...2774...> Message-ID: <52E756E0.2000204@...2037...> > Le 26/01/2014 18:03, wally a ?crit : >> Hello, >> >> i need to write more than 63 Bytes to an Byte[] in a structure. >> >> How to do this job ? >> >> mini example attached >> >> >> thank you wally >> > Since revision #6110 the number of elements in the array constructor > operator ([ ... ]) is now only limited by the maximum function size, > which should lead to about 32000 elements, depending on what you put in > your array. > > Regards, > > -- Beno?t Minisini Benoit, may you please explain what the "maximum function size" is and which limits to take care here. If possible as an example. and another maybe also silly question concerning: http://gambasdoc.org/help/comp/gb/string/byte?v3 http://gambasdoc.org/help/comp/gb/string/pos?v3 DIM iInd AS Integer FOR iInd = 1 TO 6 PRINT String.Pos("Beno?t", iInd); " "; NEXT PRINT 1 2 3 4 5 7 What does this function do ? (I recall "POS" as find position of string inside another string) "Returns the position of the character of index _Index_ in the string." isn't the position of character in a string already the index ? and problem building 6112 SVN At revision 6112. in sudo make install || || Unable to compile gb.form || wally From vuott at ...325... Tue Jan 28 09:33:54 2014 From: vuott at ...325... (Ru Vuott) Date: Tue, 28 Jan 2014 08:33:54 +0000 (GMT) Subject: [Gambas-user] Unable to compile gb.form Message-ID: <1390898034.36748.YahooMailBasic@...3273...> Hello Beno?t I confirm the problem " Unable to compile gb.form " at the end of Make Install with rev. #6112. Regards vuott From taboege at ...626... Tue Jan 28 13:05:02 2014 From: taboege at ...626... (Tobias Boege) Date: Tue, 28 Jan 2014 13:05:02 +0100 Subject: [Gambas-user] Question on ByteArray > 63 elements In-Reply-To: <52E756E0.2000204@...2037...> References: <52E53FDB.3060500@...2037...> <52E5774F.3000109@...2037...> <20140126211237.GE514@...2774...> <52E756E0.2000204@...2037...> Message-ID: <20140128120502.GA506@...2774...> On Tue, 28 Jan 2014, wally wrote: > > Le 26/01/2014 18:03, wally a ?crit : > >> Hello, > >> > >> i need to write more than 63 Bytes to an Byte[] in a structure. > >> > >> How to do this job ? > >> > >> mini example attached > >> > >> > >> thank you wally > >> > > Since revision #6110 the number of elements in the array constructor > > operator ([ ... ]) is now only limited by the maximum function size, > > which should lead to about 32000 elements, depending on what you put in > > your array. > > > > Regards, > > > > -- Beno?t Minisini > > Benoit, > > may you please explain what the "maximum function size" is and which > limits to take care here. > If possible as an example. > > and another maybe also silly question concerning: > > http://gambasdoc.org/help/comp/gb/string/byte?v3 > http://gambasdoc.org/help/comp/gb/string/pos?v3 > > > DIM iInd AS Integer > > FOR iInd = 1 TO 6 > PRINT String.Pos("Beno?t", iInd); " "; > NEXT > PRINT > > 1 2 3 4 5 7 > > > What does this function do ? > (I recall "POS" as find position of string inside another string) > > "Returns the position of the character of index _Index_ in the string." > isn't the position of character in a string already the index ? > The example above shows you that it isn't. The i-circonflexe in Benoit (sorry, my keymap is ASCII-only) is a wide (multi-byte) character and this is the difference between the position of a character in a string and the plain index into the string (as an array of bytes). Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From wally at ...2037... Tue Jan 28 13:24:05 2014 From: wally at ...2037... (wally) Date: Tue, 28 Jan 2014 13:24:05 +0100 Subject: [Gambas-user] Question on ByteArray > 63 elements In-Reply-To: <20140128120502.GA506@...2774...> References: <52E53FDB.3060500@...2037...> <52E5774F.3000109@...2037...> <20140126211237.GE514@...2774...> <52E756E0.2000204@...2037...> <20140128120502.GA506@...2774...> Message-ID: <52E7A165.2020809@...2037...> On 01/28/2014 01:05 PM, Tobias Boege wrote: > On Tue, 28 Jan 2014, wally wrote: >>> Le 26/01/2014 18:03, wally a ?crit : >>>> Hello, >>>> >>>> i need to write more than 63 Bytes to an Byte[] in a structure. >>>> >>>> How to do this job ? >>>> >>>> mini example attached >>>> >>>> >>>> thank you wally >>>> >>> Since revision #6110 the number of elements in the array constructor >>> operator ([ ... ]) is now only limited by the maximum function size, >>> which should lead to about 32000 elements, depending on what you put in >>> your array. >>> >>> Regards, >>> >>> -- Beno?t Minisini >> Benoit, >> >> may you please explain what the "maximum function size" is and which >> limits to take care here. >> If possible as an example. >> >> and another maybe also silly question concerning: >> >> http://gambasdoc.org/help/comp/gb/string/byte?v3 >> http://gambasdoc.org/help/comp/gb/string/pos?v3 >> >> >> DIM iInd AS Integer >> >> FOR iInd = 1 TO 6 >> PRINT String.Pos("Beno?t", iInd); " "; >> NEXT >> PRINT >> >> 1 2 3 4 5 7 >> >> >> What does this function do ? >> (I recall "POS" as find position of string inside another string) >> >> "Returns the position of the character of index _Index_ in the string." >> isn't the position of character in a string already the index ? >> > The example above shows you that it isn't. The i-circonflexe in Benoit > (sorry, my keymap is ASCII-only) is a wide (multi-byte) character and this > is the difference between the position of a character in a string and the > plain index into the string (as an array of bytes). > > Regards, > Tobi > @Tobi, thank you, now it's pretty clear :) wally From gambas.fr at ...626... Tue Jan 28 13:26:13 2014 From: gambas.fr at ...626... (Fabien Bodard) Date: Tue, 28 Jan 2014 13:26:13 +0100 Subject: [Gambas-user] Tasks In-Reply-To: References: Message-ID: Hi Benoit, I'm currently working on a new viewer for reports. As drawing report in real time is quite long, I use images stored in a collection to have a buffer. I have trying to use task to process the painting of the report on an image that I return through the value, like you are doing in fractal example. So in the _new I'm giving theses args : (Hreport as report, ipage as integer, fscale, iwidth, iheight) Then the main sub call $hreport.paint($ipage) to draw the page But a this point report class return an I/O error... Why ? Can't I use a class instantiate in the main processus in the slave one ? In other hand, is there a way to re-use a task class after the return without instanciate it a new time, and if it's possible, how to run it with new args. Fabien From kevinfishburne at ...1887... Wed Jan 29 00:14:39 2014 From: kevinfishburne at ...1887... (Kevin Fishburne) Date: Tue, 28 Jan 2014 18:14:39 -0500 Subject: [Gambas-user] Using OpenGL without SDL Draw event In-Reply-To: <52E6FEB1.2020503@...1...> References: <52E5E5CF.6010901@...1887...> <52E6FEB1.2020503@...1...> Message-ID: <52E839DF.2000303@...1887...> On 01/27/2014 07:49 PM, Beno?t Minisini wrote: > Le 27/01/2014 05:51, Kevin Fishburne a ?crit : >> This is tangent to the thread "sdl Draw event overhead is killing frame >> rate". >> >> When rendering graphics with OpenGL using SDL for window management, you >> define a screen like this: >> >> Public Screen As New Window As "Screen" >> With Screen >> .FullScreen = False >> .Width = 1 >> .Height = 1 >> .Framerate = 0 >> .Show() >> End With >> >> When Screen's .Show method is executed the Screen's Draw event procedure >> (Screen_Draw) begins executing continuously. As discussed in the >> previous thread it is extremely slow, even if practically empty and >> drawing nothing. >> >> Is there a way to define a Screen/Window to be used as a render target >> for OpenGL that does not use SDL? I'm experimenting with gb.qt4.opengl >> now but am having some trouble. I've attached the project, which dies >> with signal 11 upon executing the line "Glu.Build2DMipmaps(TextureImage)" >> >> I actually just created a form and then a GLArea so I think I'm on the >> right track, but am not sure where to go from there. I think this is how >> I did things years ago before moving to SDL, though without OpenGL. >> > Did you try my recent gb.sdl fix? You should get your old FPS back! > Hell yes. At 1024x1024 I get over 2000 FPS, and at 1x1 I get over 20000 FPS. Thank you, and you now have your own theme song. Here it is: http://youtu.be/iBktYJsJq-E?t=1m25s Beno?t! Beno?t! Beno?t! -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sales at ...1887... phone: (770) 853-6271 From wally at ...2037... Wed Jan 29 10:00:17 2014 From: wally at ...2037... (wally) Date: Wed, 29 Jan 2014 10:00:17 +0100 Subject: [Gambas-user] Stream.EndOfLine (gb) Message-ID: <52E8C321.6040702@...2037...> Hi, is there a way to set a custom EndOfLine ? e.g. &hAA / Chr$(170) wally from Docs: Stream.EndOfLine (gb) Property *EndOfLine* As Integer Returns or sets the newline separator used by this stream . The possible values are: * gb.Unix for lines separated by Chr$ (10). * gb.Windows for lines separated by Chr$ (13) & Chr$ (10). * gb.Mac for lines separated by Chr$ (13). The value of this property is used by LINE INPUT and PRINT . From gambas.fr at ...626... Wed Jan 29 10:40:32 2014 From: gambas.fr at ...626... (Fabien Bodard) Date: Wed, 29 Jan 2014 10:40:32 +0100 Subject: [Gambas-user] Stream.EndOfLine (gb) In-Reply-To: <52E8C321.6040702@...2037...> References: <52E8C321.6040702@...2037...> Message-ID: No Dim hfile as File hFile = open MyFile for write for i = 1 to 200 Write #hFile, sValue & chr(170) next hFile.Close End 2014-01-29 wally : > Hi, > > is there a way to set a custom EndOfLine ? > > e.g. &hAA / Chr$(170) > > wally > > > from Docs: > > Stream.EndOfLine (gb) > > Property *EndOfLine* As Integer > > Returns or sets the newline separator used by this stream > . > > The possible values are: > > * gb.Unix for lines > separated by Chr$ (10). > * gb.Windows for > lines separated by Chr$ (13) > & Chr$ (10). > * gb.Mac for lines > separated by Chr$ (13). > > The value of this property is used by LINE INPUT > and PRINT > . > ------------------------------------------------------------------------------ > WatchGuard Dimension instantly turns raw network data into actionable > security intelligence. It gives you real-time visual feedback on key > security issues and trends. Skip the complicated setup - simply import > a virtual appliance and go from zero to informed in seconds. > http://pubads.g.doubleclick.net/gampad/clk?id=123612991&iu=/4140/ostg.clktrk > _______________________________________________ > 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 Jan 29 10:51:37 2014 From: wally at ...2037... (wally) Date: Wed, 29 Jan 2014 10:51:37 +0100 Subject: [Gambas-user] Stream.EndOfLine (gb) In-Reply-To: References: <52E8C321.6040702@...2037...> Message-ID: <52E8CF29.2010207@...2037...> Fabian, thx, but i need for READ WATCH. The inot is separated bei 0xAA I will detect this bei code. On 01/29/2014 10:40 AM, Fabien Bodard wrote: > No > > Dim hfile as File > > hFile = open MyFile for write > for i = 1 to 200 > Write #hFile, sValue & chr(170) > next > > hFile.Close > > End > > 2014-01-29 wally : >> Hi, >> >> is there a way to set a custom EndOfLine ? >> >> e.g. &hAA / Chr$(170) >> >> wally >> >> >> from Docs: >> >> Stream.EndOfLine (gb) >> >> Property *EndOfLine* As Integer >> >> Returns or sets the newline separator used by this stream >> . >> >> The possible values are: >> >> * gb.Unix for lines >> separated by Chr$ (10). >> * gb.Windows for >> lines separated by Chr$ (13) >> & Chr$ (10). >> * gb.Mac for lines >> separated by Chr$ (13). >> >> The value of this property is used by LINE INPUT >> and PRINT >> . >> ------------------------------------------------------------------------------ >> WatchGuard Dimension instantly turns raw network data into actionable >> security intelligence. It gives you real-time visual feedback on key >> security issues and trends. Skip the complicated setup - simply import >> a virtual appliance and go from zero to informed in seconds. >> http://pubads.g.doubleclick.net/gampad/clk?id=123612991&iu=/4140/ostg.clktrk >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user > > From gambas at ...1... Wed Jan 29 18:07:13 2014 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Wed, 29 Jan 2014 18:07:13 +0100 Subject: [Gambas-user] Tasks In-Reply-To: References: Message-ID: <52E93541.1000609@...1...> Le 28/01/2014 13:26, Fabien Bodard a ?crit : > Hi Benoit, > > I'm currently working on a new viewer for reports. As drawing report in > real time is quite long, I use images stored in a collection to have a > buffer. > > I have trying to use task to process the painting of the report on an image > that I return through the value, like you are doing in fractal example. > > So in the _new I'm giving theses args : > > (Hreport as report, ipage as integer, fscale, iwidth, iheight) > > Then the main sub call $hreport.paint($ipage) to draw the page > > But a this point report class return an I/O error... Why ? I don't know, but you can't use QT4 or GTK+ reliably inside a task. :-( > > Can't I use a class instantiate in the main processus in the slave one ? > It depends. The task is a fork of the main process, so it can use everything theoritically, except when there is a file descriptor somewhere in the story: problems begin. As for QT4 or GTK+, I think you should be able to use them in a task as soon as there is no communication with the X server. You must test case by case and pray. Think about TTF fonts: it can be opened in the main process, then use in the child process, while being closed in the main process... Can it be a problem? I don't know. > In other hand, is there a way to re-use a task class after the return > without instanciate it a new time, and if it's possible, how to run it with > new args. No. If the task ends, the child process has disappeared, so you must create a new one. One task instance equals one process instance. -- Beno?t Minisini From gambas at ...2524... Wed Jan 29 18:09:41 2014 From: gambas at ...2524... (gambas at ...2524...) Date: Wed, 29 Jan 2014 17:09:41 +0000 Subject: [Gambas-user] Issue 506 in gambas: Make Install Error in LCDLabel Class In-Reply-To: <0-6813199134517018827-2602740466318608244-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-2602740466318608244-gambas=googlecode.com@...2524...> Message-ID: <1-6813199134517018827-2602740466318608244-gambas=googlecode.com@...2524...> Updates: Status: Fixed Labels: -OpSys-Reshat OpSys-Linux Comment #1 on issue 506 by benoit.m... at ...626...: Make Install Error in LCDLabel Class http://code.google.com/p/gambas/issues/detail?id=506 Fixed in revision #6114. -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From gambas at ...2524... Wed Jan 29 18:10:41 2014 From: gambas at ...2524... (gambas at ...2524...) Date: Wed, 29 Jan 2014 17:10:41 +0000 Subject: [Gambas-user] Issue 505 in gambas: Provide a way to add manpages to generated installation packages In-Reply-To: <0-6813199134517018827-18214389955681062575-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-18214389955681062575-gambas=googlecode.com@...2524...> Message-ID: <1-6813199134517018827-18214389955681062575-gambas=googlecode.com@...2524...> Updates: Labels: -Version -Type-Bug Version-TRUNK Type-Enhancement Comment #1 on issue 505 by benoit.m... at ...626...: Provide a way to add manpages to generated installation packages http://code.google.com/p/gambas/issues/detail?id=505 (No comment was entered for this change.) -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From gambas.fr at ...626... Wed Jan 29 19:21:25 2014 From: gambas.fr at ...626... (Fabien Bodard) Date: Wed, 29 Jan 2014 19:21:25 +0100 Subject: [Gambas-user] Tasks In-Reply-To: <52E93541.1000609@...1...> References: <52E93541.1000609@...1...> Message-ID: Ok thank you ... i will investigate :/... 2014-01-29 Beno?t Minisini : > Le 28/01/2014 13:26, Fabien Bodard a ?crit : >> Hi Benoit, >> >> I'm currently working on a new viewer for reports. As drawing report in >> real time is quite long, I use images stored in a collection to have a >> buffer. >> >> I have trying to use task to process the painting of the report on an image >> that I return through the value, like you are doing in fractal example. >> >> So in the _new I'm giving theses args : >> >> (Hreport as report, ipage as integer, fscale, iwidth, iheight) >> >> Then the main sub call $hreport.paint($ipage) to draw the page >> >> But a this point report class return an I/O error... Why ? > > I don't know, but you can't use QT4 or GTK+ reliably inside a task. :-( > >> >> Can't I use a class instantiate in the main processus in the slave one ? >> > > It depends. The task is a fork of the main process, so it can use > everything theoritically, except when there is a file descriptor > somewhere in the story: problems begin. > > As for QT4 or GTK+, I think you should be able to use them in a task as > soon as there is no communication with the X server. You must test case > by case and pray. > > Think about TTF fonts: it can be opened in the main process, then use in > the child process, while being closed in the main process... Can it be a > problem? I don't know. > >> In other hand, is there a way to re-use a task class after the return >> without instanciate it a new time, and if it's possible, how to run it with >> new args. > > No. If the task ends, the child process has disappeared, so you must > create a new one. One task instance equals one process instance. > > -- > Beno?t Minisini > > ------------------------------------------------------------------------------ > WatchGuard Dimension instantly turns raw network data into actionable > security intelligence. It gives you real-time visual feedback on key > security issues and trends. Skip the complicated setup - simply import > a virtual appliance and go from zero to informed in seconds. > http://pubads.g.doubleclick.net/gampad/clk?id=123612991&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -- Fabien Bodard From oceanosoftlapalma at ...626... Thu Jan 30 11:33:42 2014 From: oceanosoftlapalma at ...626... (=?UTF-8?B?UmljYXJkbyBEw61heiBNYXJ0w61u?=) Date: Thu, 30 Jan 2014 10:33:42 +0000 Subject: [Gambas-user] Possible bug in round() function Message-ID: Hi guys, Try to do this in the gambas console: ? round (283.5 * 0.21, -2) 59,53 ? 283.5 * 0.21 59,535 ? round(59.535, -2) 59,54 Why round (283.5 * 0.21, -2) doesn't works as expected? (or as I expected...) I got the same wrong behavior in my program using something like fAux = round(fNumber1, fNumber2, -2) Regards, Ricardo D?az [System] Gambas=3.5.90 OperatingSystem=Linux Kernel=3.11-2-amd64 Architecture=x86_64 Distribution=debian jessie/sid Desktop=KDE4 Theme=Oxygen Language=es_ES.UTF-8 Memory=994M [Libraries] Cairo=libcairo.so.0.0.0 Cairo=libcairo.so.2.11200.16 Curl=libcurl.so.4.3.0 DBus=libdbus-1.so.3.7.6 GStreamer=libgstreamer-0.10.so.0.30.0 GStreamer=libgstreamer-1.0.so.0.201.0 GTK+=libgtk-x11-2.0.so.0.2400.22 OpenGL=libGL.so.1.2.0 Poppler=libpoppler.so.19.0.0 Qt4=libQtCore.so.4.8.6 SDL=libSDL-1.2.so.0.11.4 From bbruen at ...2308... Thu Jan 30 12:47:51 2014 From: bbruen at ...2308... (Bruce) Date: Thu, 30 Jan 2014 22:17:51 +1030 Subject: [Gambas-user] Possible bug in round() function In-Reply-To: References: Message-ID: <1391082472.23457.76.camel@...2688...> On Thu, 2014-01-30 at 10:33 +0000, Ricardo D?az Mart?n wrote: > ? round (283.5 * 0.21, -2) very interesting. The miracles we call floats. try ? round (283.4999999999999999999996 * 0.209999999999999999996, -2) 59.54 Strange and magical, we'd better wait on Benoit's call on this one. ? Bruce From taboege at ...626... Thu Jan 30 15:33:00 2014 From: taboege at ...626... (Tobias Boege) Date: Thu, 30 Jan 2014 15:33:00 +0100 Subject: [Gambas-user] Possible bug in round() function In-Reply-To: <1391082472.23457.76.camel@...2688...> References: <1391082472.23457.76.camel@...2688...> Message-ID: <20140130143300.GA612@...2774...> On Thu, 30 Jan 2014, Bruce wrote: > On Thu, 2014-01-30 at 10:33 +0000, Ricardo D??az Mart??n wrote: > > ? round (283.5 * 0.21, -2) > > very interesting. The miracles we call floats. > try > ? round (283.4999999999999999999996 * 0.209999999999999999996, -2) > 59.54 > > Strange and magical, we'd better wait on Benoit's call on this one. > > ? > Bruce I wouldn't say magical. Disillusioning maybe :-) 0.21 is not exactly representable with a finite number of bits. That's why you should expect errors when computing with it. When you multiply, the absolute error can get relatively large, obviously. Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From tercoide at ...67... Thu Jan 30 16:58:28 2014 From: tercoide at ...67... (martin p cristia) Date: Thu, 30 Jan 2014 12:58:28 -0300 Subject: [Gambas-user] Long C routine In-Reply-To: References: Message-ID: Hi: I need a way to keep the GUI alive while processing a EXTERNAL C routine: Public Extern M8gauss(mfMatriz As Float[], vfX As Float[], vfTermns As Float[], lOrder As Long) As Long wich is a Gaussian ecuations system solver, and can take up to 10minutes ( 10^10 aritmetic operations). Any help on doing this? tnx in advance I'll paste the actual C routine from the .SO long M8gauss(double *matriz, double *x, double * ti, long n ) { if(n == 0)return 1; int i, i1, j, h, h1; //long ok = -1; //long contador = 0,i1,h1,h,i,j; double c1; // triangulacion for (i = 0;i=0;i--) { p1 = 0; for (j = i + 1;j References: Message-ID: <20140130160427.GB612@...2774...> On Thu, 30 Jan 2014, martin p cristia wrote: > Hi: > > I need a way to keep the GUI alive while processing a EXTERNAL C routine: > > Public Extern M8gauss(mfMatriz As Float[], vfX As Float[], vfTermns As > Float[], lOrder As Long) As Long > > wich is a Gaussian ecuations system solver, and can take up to 10minutes > ( 10^10 aritmetic operations). > > Any help on doing this? > tnx in advance > I'll paste the actual C routine from the .SO > > [...] So you need to run the routine as a background task? Try the Task class (there is an example of it in the Fractal example, IIRC). Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From jussi.lahtinen at ...626... Thu Jan 30 19:24:54 2014 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Thu, 30 Jan 2014 20:24:54 +0200 Subject: [Gambas-user] Possible bug in round() function In-Reply-To: <20140130143300.GA612@...2774...> References: <1391082472.23457.76.camel@...2688...> <20140130143300.GA612@...2774...> Message-ID: > > I wouldn't say magical. Disillusioning maybe :-) > > 0.21 is not exactly representable with a finite number of bits. That's > why you should expect errors when computing with it. When you multiply, > the absolute error can get relatively large, obviously. > This probably has something to do with floating point errors, but not sure it's that simple. This is the exact presentation of value 59.535 with 64 bits: 59.534999999999996589394868351519107818603515625 And... ? round(59.534999999999996589394868351519107818603515625, -2) 59,54 ? round(59.53499999999999, -2) 59,54 This seems to be where Gambas cut off: ? round(59.5349999999999, -2) 59,53 If I have understand right Gambas does cut off to the presentation when they are shown, but the whole accuracy is intact in memory. So maybe cut off is done in wrong order in Round(). Jussi From gambas at ...1... Thu Jan 30 19:48:43 2014 From: gambas at ...1... (=?UTF-8?B?QmVub8OudCBNaW5pc2luaQ==?=) Date: Thu, 30 Jan 2014 19:48:43 +0100 Subject: [Gambas-user] Possible bug in round() function In-Reply-To: References: Message-ID: <52EA9E8B.6030102@...1...> Le 30/01/2014 11:33, Ricardo D?az Mart?n a ?crit : > Hi guys, > > Try to do this in the gambas console: > > ? round (283.5 * 0.21, -2) > 59,53 > > ? 283.5 * 0.21 > 59,535 > > ? round(59.535, -2) > 59,54 > > Why round (283.5 * 0.21, -2) doesn't works as expected? (or as I > expected...) > > I got the same wrong behavior in my program using something like fAux = > round(fNumber1, fNumber2, -2) > > Regards, > Ricardo D?az > Round() is defined that way: Round(x, y) = Int(x / (10 ^ y) + 0.5) * (10 ^ y) 283.5 * 0.21 is not equal to 59.535 in binary: ?283.5 * 0.21 - 59.535 -7,105427357601E-15 59.535 cannot be encoded in binary (like 1/3 in decimal): 59.535 = 59 + 0.100010001111010111000010100011110101110000101000... The '11110101110000101000' pattern is repeated ad vitam aeternam. So 283.5 * 0.21 is lower than 59.535, and so Round returns 59.53. As Tobi said, floating points are disillusioning! -- Beno?t Minisini From tercoide at ...67... Thu Jan 30 22:53:07 2014 From: tercoide at ...67... (martin p cristia) Date: Thu, 30 Jan 2014 18:53:07 -0300 Subject: [Gambas-user] Long C routine In-Reply-To: References: Message-ID: > So you need to run the routine as a background task? Try the Task class > (there is an example of it in the Fractal example, IIRC). > > Regards, > Tobi Not backgroud, as the user cannot do much while that routine is working, but I need the program look at least alive as Ubuntu blackens the window. Will look at the example.. Tnx. Also, I read that in some cases JIT is faster than C. I have a C library for matrices that came from a Gambas library source translation, do you think that would be the case for the code I've provided in the last mail???? (I will bencchmark them now, but a word from experience is nice) From gambas at ...1... Thu Jan 30 23:05:50 2014 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Thu, 30 Jan 2014 23:05:50 +0100 Subject: [Gambas-user] Long C routine In-Reply-To: References: Message-ID: <52EACCBE.6090900@...1...> Le 30/01/2014 22:53, martin p cristia a ?crit : >> So you need to run the routine as a background task? Try the Task class >> (there is an example of it in the Fractal example, IIRC). >> >> Regards, >> Tobi > Not backgroud, as the user cannot do much while that routine is working, > but I need the program look at least alive as Ubuntu blackens the window. > Will look at the example.. > Tnx. > > Also, I read that in some cases JIT is faster than C. Huh? Where did you read that? > I have a C library > for matrices that came from a Gambas library source translation, do you > think that would be the case for the code I've provided in the last > mail???? (I will bencchmark them now, but a word from experience is nice) > Do the benchmark, and tell us the result. -- Beno?t Minisini From jussi.lahtinen at ...626... Thu Jan 30 23:13:00 2014 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Fri, 31 Jan 2014 00:13:00 +0200 Subject: [Gambas-user] Long C routine In-Reply-To: References: Message-ID: > > Not backgroud, as the user cannot do much while that routine is working, > but I need the program look at least alive as Ubuntu blackens the window. > You can run it in background if you lock GUI (or at least buttons etc) and perhaps show progress bar etc. > Also, I read that in some cases JIT is faster than C. > Probably not. This is wrong, if the c declaration is correct: Public Extern M8gauss(mfMatriz As Float[], vfX As Float[], vfTermns As Float[], lOrder As Long) As Long Should be: Public Extern M8gauss(mfMatriz As Pointer, vfX As Pointer, vfTermns As Pointer, lOrder As Long) As Long Jussi From tercoide at ...67... Thu Jan 30 23:34:34 2014 From: tercoide at ...67... (martin p cristia) Date: Thu, 30 Jan 2014 19:34:34 -0300 Subject: [Gambas-user] Long C routine In-Reply-To: References: Message-ID: Just a FYI This is the benchmark result solving a ecuation system 1578 order ( 1.309.782.606 operations) Gambas 147 seg Gambas+Fast 27 seg Gambas + C 2 seg So I still need the C library giving signs of life From jussi.lahtinen at ...626... Fri Jan 31 00:07:18 2014 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Fri, 31 Jan 2014 01:07:18 +0200 Subject: [Gambas-user] Long C routine In-Reply-To: References: Message-ID: Did you make pre-run for JIT benchmark? Otherwise first run is slower than subsequents... maybe it's insignificant. Perhaps this works: Pass callback function as an argument to your C lib (along with other arguments), and call it when some proportion of the work is done (example when variable i % 100 == 0). Write the callback in Gambas to refresh GUI (WAIT command). However, these two things make the execution slightly slower. Jussi On Fri, Jan 31, 2014 at 12:34 AM, martin p cristia wrote: > Just a FYI > > This is the benchmark result solving a ecuation system 1578 order ( > 1.309.782.606 operations) > > Gambas 147 seg > Gambas+Fast 27 seg > Gambas + C 2 seg > > So I still need the C library giving signs of life > > > > ------------------------------------------------------------------------------ > WatchGuard Dimension instantly turns raw network data into actionable > security intelligence. It gives you real-time visual feedback on key > security issues and trends. Skip the complicated setup - simply import > a virtual appliance and go from zero to informed in seconds. > > http://pubads.g.doubleclick.net/gampad/clk?id=123612991&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From emil.lenngren at ...626... Fri Jan 31 02:25:26 2014 From: emil.lenngren at ...626... (Emil Lenngren) Date: Fri, 31 Jan 2014 02:25:26 +0100 Subject: [Gambas-user] Long C routine In-Reply-To: References: Message-ID: How does your Gambas source code for the test look like? For the best speed when using JIT (Fast), you could try to use one-dimensional embedded arrays (http://gambasdoc.org/help/cat/arraydecl?v3) But then they must be fixed-sized... /Emil 2014-01-31 Jussi Lahtinen > Did you make pre-run for JIT benchmark? Otherwise first run is slower than > subsequents... maybe it's insignificant. > > Perhaps this works: > Pass callback function as an argument to your C lib (along with other > arguments), and call it when some proportion of the work is done (example > when variable i % 100 == 0). Write the callback in Gambas to refresh GUI > (WAIT command). However, these two things make the execution slightly > slower. > > Jussi > > > > On Fri, Jan 31, 2014 at 12:34 AM, martin p cristia >wrote: > > > Just a FYI > > > > This is the benchmark result solving a ecuation system 1578 order ( > > 1.309.782.606 operations) > > > > Gambas 147 seg > > Gambas+Fast 27 seg > > Gambas + C 2 seg > > > > So I still need the C library giving signs of life > > > > > > > > > ------------------------------------------------------------------------------ > > WatchGuard Dimension instantly turns raw network data into actionable > > security intelligence. It gives you real-time visual feedback on key > > security issues and trends. Skip the complicated setup - simply import > > a virtual appliance and go from zero to informed in seconds. > > > > > http://pubads.g.doubleclick.net/gampad/clk?id=123612991&iu=/4140/ostg.clktrk > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > ------------------------------------------------------------------------------ > WatchGuard Dimension instantly turns raw network data into actionable > security intelligence. It gives you real-time visual feedback on key > security issues and trends. Skip the complicated setup - simply import > a virtual appliance and go from zero to informed in seconds. > > http://pubads.g.doubleclick.net/gampad/clk?id=123612991&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Fri Jan 31 07:48:56 2014 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Fri, 31 Jan 2014 07:48:56 +0100 Subject: [Gambas-user] Long C routine In-Reply-To: References: Message-ID: <52EB4758.309@...1...> Le 31/01/2014 02:25, Emil Lenngren a ?crit : > How does your Gambas source code for the test look like? > For the best speed when using JIT (Fast), you could try to use > one-dimensional embedded arrays (http://gambasdoc.org/help/cat/arraydecl?v3) > But then they must be fixed-sized... > > /Emil > Can't JIT optimize normal arrays too? As native array classes all have a flag in the CLASS structure indicating they are native arrays... -- Beno?t Minisini From gambas at ...1... Fri Jan 31 07:59:14 2014 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Fri, 31 Jan 2014 07:59:14 +0100 Subject: [Gambas-user] Long C routine In-Reply-To: <52EB4758.309@...1...> References: <52EB4758.309@...1...> Message-ID: <52EB49C2.10300@...1...> Le 31/01/2014 07:48, Beno?t Minisini a ?crit : > Le 31/01/2014 02:25, Emil Lenngren a ?crit : >> How does your Gambas source code for the test look like? >> For the best speed when using JIT (Fast), you could try to use >> one-dimensional embedded arrays >> (http://gambasdoc.org/help/cat/arraydecl?v3) >> But then they must be fixed-sized... >> >> /Emil >> > > Can't JIT optimize normal arrays too? As native array classes all have a > flag in the CLASS structure indicating they are native arrays... > Apparently they are optimized too, as there is a test on the 'quick_array' field. But you know better... -- Beno?t Minisini From dl7nb at ...17... Fri Jan 31 10:52:15 2014 From: dl7nb at ...17... (Wolfgang) Date: Fri, 31 Jan 2014 10:52:15 +0100 Subject: [Gambas-user] Is this a bug In-Reply-To: <52EB4758.309@...1...> References: <52EB4758.309@...1...> Message-ID: <52EB724F.2010808@...17...> Hello all, I found a strange behaviour with opacity. Example: Public Sub ButtonStart_Click() Dim img1, img2 As Image Dim i As Integer 'let us load an image to img1 img1 = Image.Load("data/map.png") For i = 1 To 20 img2 = img1 img2.Opacity(0.9) PictureBox1.Picture = img1.Picture PictureBox2.Picture = img2.Picture Wait 0.2 Next End 1. I load an image to "img1" and copy it to "img2". 2. Then I change the opacity of img2 to 90%. 3. I display both images in my form. 4. I repeat this 20 times. What I expect: is that img1 should show the original visual impression and img2 show a lighter version of it What I get: *BOTH* images get lighter and lighter with each loop. *Both* images are totally blurred out and the end of the loop. How comes? Did I misunderstand "Opacity"? Why can't I change only one image's opacity? Greeting from Bavaria Wolfgang I have added the project. Here is the system Information: [System] Gambas=3.5.2 OperatingSystem=Linux Kernel=3.5.0-45-generic Architecture=x86 Distribution=Ubuntu 12.04.4 LTS Desktop=GNOME Theme=QGtk Language=de_DE.UTF-8 Memory=2000M [Libraries] Cairo=libcairo.so.0.0.0 Cairo=libcairo.so.2.11000.2 Curl=libcurl.so.4.2.0 DBus=libdbus-1.so.3.5.8 GStreamer=libgstreamer-0.10.so.0.30.0 GStreamer=libgstreamer-1.0.so.0.1.0 GTK+=libgtk-x11-2.0.so.0.2400.10 OpenGL=libGL.so.1.2.0 Poppler=libpoppler.so.19.0.0 Qt4=libQtCore.so.4.8.1 SDL=libSDL-1.2.so.0.11.3 -------------- next part -------------- A non-text attachment was scrubbed... Name: test.tar.gz Type: application/x-gzip Size: 58731 bytes Desc: not available URL: From taboege at ...626... Fri Jan 31 11:46:48 2014 From: taboege at ...626... (Tobias Boege) Date: Fri, 31 Jan 2014 11:46:48 +0100 Subject: [Gambas-user] Is this a bug In-Reply-To: <52EB724F.2010808@...17...> References: <52EB4758.309@...1...> <52EB724F.2010808@...17...> Message-ID: <20140131104648.GA2204@...2774...> On Fri, 31 Jan 2014, Wolfgang wrote: > Hello all, > > I found a strange behaviour with opacity. > > Example: > Public Sub ButtonStart_Click() > Dim img1, img2 As Image > Dim i As Integer > > 'let us load an image to img1 > img1 = Image.Load("data/map.png") > > > For i = 1 To 20 > img2 = img1 > img2.Opacity(0.9) > PictureBox1.Picture = img1.Picture > PictureBox2.Picture = img2.Picture > Wait 0.2 > Next > > End > > 1. I load an image to "img1" and copy it to "img2". > 2. Then I change the opacity of img2 to 90%. > 3. I display both images in my form. > 4. I repeat this 20 times. > > What I expect: > is that img1 should show the original visual impression and img2 show a > lighter version of it > > What I get: > *BOTH* images get lighter and lighter with each loop. *Both* images are > totally blurred out and the end of the loop. > > How comes? Did I misunderstand "Opacity"? Why can't I change only one > image's opacity? > I'd guess that with img2 = img1 you don't create a copy of img1 but only another reference to the same picture in memory. This means if you change the image img2 points to (img2.Opacity(0.9)), then, since img1 points to the same memory, img1 is also changed. To get two distinct pictures, use img2 = img1.Copy() (Of course, if you do this, you will do the same thing 20 times with your loop.) Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From mckaygerhard at ...626... Fri Jan 31 16:59:47 2014 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Fri, 31 Jan 2014 11:29:47 -0430 Subject: [Gambas-user] how to fill combobox with specific index from a array matrix Message-ID: i try to fill combobox but i cannot access array objects by index names: ComboBoxLinDest.Add(objetivodestino["destino_descripcion"], objetivodestino["destino_id"]) the code to fill array matrix are: 1) in transpor class Public Function GetDestinos() As String[] Dim RelenosCombox As New String[] hresul = hconn.Find("tb_destino") Do While hresul.Available RelenosCombox.Add(hresul["destino_descripcion"], hresul["destino_id"]) hresul.MoveNext() Loop Return RelenosCombox End 2) in form class Public Sub ComboBoxLinOrig_Click() Dim objetivodestino As New String[] objetivodestino = operaciones.OtenerDestinos() For Each objetivodestino Me.ComboBoxLinDest.Add(objetivodestino["destino_descripcion"], objetivodestino["destino_id"]) Next End the iden and name propierties arenot available, how can i added manualy the index and values to the combobox? hurry help!!!! Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com From taboege at ...626... Fri Jan 31 17:14:47 2014 From: taboege at ...626... (Tobias Boege) Date: Fri, 31 Jan 2014 17:14:47 +0100 Subject: [Gambas-user] how to fill combobox with specific index from a array matrix In-Reply-To: References: Message-ID: <20140131161447.GC2204@...2774...> On Fri, 31 Jan 2014, PICCORO McKAY Lenz wrote: > i try to fill combobox but i cannot access array objects by index names: > > ComboBoxLinDest.Add(objetivodestino["destino_descripcion"], > objetivodestino["destino_id"]) > > the code to fill array matrix are: > > 1) in transpor class > > Public Function GetDestinos() As String[] > Dim RelenosCombox As New String[] > hresul = hconn.Find("tb_destino") > Do While hresul.Available > RelenosCombox.Add(hresul["destino_descripcion"], > hresul["destino_id"]) > hresul.MoveNext() > Loop > Return RelenosCombox > End > > 2) in form class > > Public Sub ComboBoxLinOrig_Click() > Dim objetivodestino As New String[] > objetivodestino = operaciones.OtenerDestinos() > For Each objetivodestino > Me.ComboBoxLinDest.Add(objetivodestino["destino_descripcion"], > objetivodestino["destino_id"]) > Next > End > > the iden and name propierties arenot available, how can i added manualy the > index and values to the combobox? > > hurry help!!!! > What you want to do is not clear at all to me. However, if you want to use strings as indices, you better forget about String[] (which only accepts integer indices) and use Collection. However, if you want to fill a ComboBox, you cannot pass a string as the second argument to Add()... I really don't understand. What is hresult["destino_id"]? A string or an integer? Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From mckaygerhard at ...626... Fri Jan 31 17:52:29 2014 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Fri, 31 Jan 2014 12:22:29 -0430 Subject: [Gambas-user] how to set a specific day in datechooser component Message-ID: There's some way to select specific date and limits choose to this day in the datechoose calendar component? i mean... limits the dais to choose to only future dais! Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com From taboege at ...626... Fri Jan 31 18:13:50 2014 From: taboege at ...626... (Tobias Boege) Date: Fri, 31 Jan 2014 18:13:50 +0100 Subject: [Gambas-user] how to set a specific day in datechooser component In-Reply-To: References: Message-ID: <20140131171350.GD2204@...2774...> On Fri, 31 Jan 2014, PICCORO McKAY Lenz wrote: > There's some way to select specific date and limits choose to this day in > the datechoose calendar component? > > i mean... limits the dais to choose to only future dais! > You have to do that yourself (let dtcDate be your DateChooser): Public Sub dtcDate_Change() dtcDate.Value = Max(Now(), dtcDate.Value) End Alas, the DateChooser does not support Stop Event in the Change event, so I always reset the dtcDate.Value to Now() when the user chose a past date. If you want to reset the date to what the user had chosen before, you must save that value after each succeeding dtcDate_Change() and change the event handler in the obvious ways... (Maybe the above code works because of a bug: it's generally dangerous to change the value of something during its Change event. To be future-proof you would wrap the line above into Object.Lock(Last) and Object.Unlock(Last) lines. Benoit?) Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From mckaygerhard at ...626... Fri Jan 31 19:18:30 2014 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Fri, 31 Jan 2014 13:48:30 -0430 Subject: [Gambas-user] how to sum 3 days to Date Message-ID: i wish to make a date diff but my upper date must be the "now" + 3 days in future, how to make this addition to the Day(now) value if are in ending (just like 31) due 31 + 3 are 34!!! Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com From abbat.81 at ...787... Fri Jan 31 19:21:23 2014 From: abbat.81 at ...787... (abbat81) Date: Fri, 31 Jan 2014 10:21:23 -0800 (PST) Subject: [Gambas-user] KeyPress Escape to close a form Message-ID: <1391192483469-45464.post@...3046...> How to make an event for Key Press Escape button to close a form Thanks -- View this message in context: http://gambas.8142.n7.nabble.com/KeyPress-Escape-to-close-a-form-tp45464.html Sent from the gambas-user mailing list archive at Nabble.com. From taboege at ...626... Fri Jan 31 19:23:06 2014 From: taboege at ...626... (Tobias Boege) Date: Fri, 31 Jan 2014 19:23:06 +0100 Subject: [Gambas-user] how to sum 3 days to Date In-Reply-To: References: Message-ID: <20140131182306.GF2204@...2774...> On Fri, 31 Jan 2014, PICCORO McKAY Lenz wrote: > i wish to make a date diff > > but my upper date must be the "now" + 3 days in future, how to make this > addition to the Day(now) value if are in ending (just like 31) due 31 + 3 > are 34!!! > Mind looking at the documentation? DateAdd(Now(), gb.Day, 3) -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From taboege at ...626... Fri Jan 31 19:25:47 2014 From: taboege at ...626... (Tobias Boege) Date: Fri, 31 Jan 2014 19:25:47 +0100 Subject: [Gambas-user] KeyPress Escape to close a form In-Reply-To: <1391192483469-45464.post@...3046...> References: <1391192483469-45464.post@...3046...> Message-ID: <20140131182547.GG2204@...2774...> On Fri, 31 Jan 2014, abbat81 wrote: > How to make an event for Key Press Escape button to close a form > Thanks > Do you mean: Public Sub Form_KeyPress() If Key.Code = Key.Esc Then Me.Close() End This has nothing to do with a Button you were mentioning in the question but honestly, I don't see how Buttons may be connected to this... Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From gambas at ...1... Fri Jan 31 19:31:02 2014 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Fri, 31 Jan 2014 19:31:02 +0100 Subject: [Gambas-user] KeyPress Escape to close a form In-Reply-To: <20140131182547.GG2204@...2774...> References: <1391192483469-45464.post@...3046...> <20140131182547.GG2204@...2774...> Message-ID: <52EBEBE6.3020702@...1...> Le 31/01/2014 19:25, Tobias Boege a ?crit : > On Fri, 31 Jan 2014, abbat81 wrote: >> How to make an event for Key Press Escape button to close a form >> Thanks >> > > Do you mean: > > Public Sub Form_KeyPress() > If Key.Code = Key.Esc Then Me.Close() > End > > This has nothing to do with a Button you were mentioning in the question but > honestly, I don't see how Buttons may be connected to this... > > Regards, > Tobi > They are: Buttons have a Cancel and a Default property for that. The "Cancel" button is activated by the ESC key, the "Default" button is activated by the RETURN key. But it does not close anything by default! You must handle the buttons click events for that. -- Beno?t Minisini From mckaygerhard at ...626... Fri Jan 31 19:41:57 2014 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Fri, 31 Jan 2014 14:11:57 -0430 Subject: [Gambas-user] how to set a specific day in datechooser component Message-ID: > From: Tobias Boege > You have to do that yourself (let dtcDate be your DateChooser): ?_?u > Public Sub dtcDate_Change() > dtcDate.Value = Max(Now(), dtcDate.Value) > End > Alas, the DateChooser does not support Stop Event in the Change event, so > I always reset the dtcDate.Value to Now() when the user chose a past date. so then better not limit the days, and only verified if the date choosen by user are the permited by program... more easy and less complicated Thanks any way > If you want to reset the date to what the user had chosen before, you must > save that value after each succeeding dtcDate_Change() and change the event > handler in the obvious ways... no that not interest to me.. > (Maybe the above code works because of a bug: it's generally dangerous to > change the value of something during its Change event. To be future-proof > you would wrap the line above into Object.Lock(Last) and Object.Unlock(Last) > lines. Benoit?) i corroborarte that, i have recursive calls now ^_^ From mckaygerhard at ...626... Fri Jan 31 19:46:59 2014 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Fri, 31 Jan 2014 14:16:59 -0430 Subject: [Gambas-user] how to fill combobox with specific index from a array matrix Message-ID: > However, if you want to use > strings as indices, you better forget about String[] (which only accepts > integer indices) and use Collection. does gambas provide collections in same way of java does? > However, if you want to fill a ComboBox, you cannot pass a string as the > second argument to Add()... sorry, i forgett to make a CInteger(Val(stringvalue) ) conversion in that lines.. but its same, i wnt to manually set the index of the combobox.. ANOTHER QUUESTION dos the combobox object support non sorted index i mean idex not complety in sequence such as: 1:pepe 3:pablo 4:jhon 5:blair in this collection the index "2" are missing... dos combobox's suport manually set that ? From gambas at ...1... Fri Jan 31 19:51:58 2014 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Fri, 31 Jan 2014 19:51:58 +0100 Subject: [Gambas-user] how to set a specific day in datechooser component In-Reply-To: References: Message-ID: <52EBF0CE.4050907@...1...> Le 31/01/2014 17:52, PICCORO McKAY Lenz a ?crit : > There's some way to select specific date and limits choose to this day in > the datechoose calendar component? > > i mean... limits the dais to choose to only future dais! > > Lenz McKAY Gerardo (PICCORO) A 'MinDate' property could be a good idea... And a 'MaxDate' too, why not? -- Beno?t Minisini From taboege at ...626... Fri Jan 31 20:01:17 2014 From: taboege at ...626... (Tobias Boege) Date: Fri, 31 Jan 2014 20:01:17 +0100 Subject: [Gambas-user] how to fill combobox with specific index from a array matrix In-Reply-To: References: Message-ID: <20140131190117.GH2204@...2774...> On Fri, 31 Jan 2014, PICCORO McKAY Lenz wrote: > > However, if you want to use > > strings as indices, you better forget about String[] (which only accepts > > integer indices) and use Collection. > > does gambas provide collections in same way of java does? > No, in Gambas, a Collection is a hash table and not a set (which is what Java seems to have). You do: cCollection["key"] = value ' value is a Variant > > However, if you want to fill a ComboBox, you cannot pass a string as the > > second argument to Add()... > sorry, i forgett to make a CInteger(Val(stringvalue) ) conversion in > that lines.. > but its same, i wnt to manually set the index of the combobox.. > Yeah, should work... But you are doing it wrong in your code given. You can do the following: create a String[] aResult or something. Then use the hresult["whatever_id"], converted to an Integer, as index: aResult.Add(hresult["payload"], CInt(hresult["whatever_id"])) Later, return that String[] as you do. Then, when filling the ComboBox, all the elements you didn't assign anything to (the missing "whatever_id"'s will be Null): Dim aResult As String[] = GetTheResultArray() Dim iInd As Integer For iInd = 0 To aResult.Max If Not aResult[iInd] Then Continue myComboBox.Add(aResult[iInd], iInd) Next Whether this works (your question below) or how it will look like if some indices in the ComboBox are missing, I don't know. Test it! > > ANOTHER QUUESTION > > dos the combobox object support non sorted index i mean idex not > complety in sequence such as: > 1:pepe > 3:pablo > 4:jhon > 5:blair > > in this collection the index "2" are missing... dos combobox's suport > manually set that ? Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From mckaygerhard at ...626... Fri Jan 31 20:19:41 2014 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Fri, 31 Jan 2014 14:49:41 -0430 Subject: [Gambas-user] how to fill combobox with specific index from a array matrix In-Reply-To: References: Message-ID: errr about collection another question.. documentation are not cleary how to use.. its creatable ? http://gambasdoc.org/help/lang/collection?cs&v3 dim pep as new collection? in that link does not show how to instanciate/create/make a var of type Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com On Fri, Jan 31, 2014 at 2:16 PM, PICCORO McKAY Lenz wrote: >> However, if you want to use >> strings as indices, you better forget about String[] (which only accepts >> integer indices) and use Collection. > > does gambas provide collections in same way of java does? > >> However, if you want to fill a ComboBox, you cannot pass a string as the >> second argument to Add()... > sorry, i forgett to make a CInteger(Val(stringvalue) ) conversion in > that lines.. > but its same, i wnt to manually set the index of the combobox.. > > > ANOTHER QUUESTION > > dos the combobox object support non sorted index i mean idex not > complety in sequence such as: > 1:pepe > 3:pablo > 4:jhon > 5:blair > > in this collection the index "2" are missing... dos combobox's suport > manually set that ? From taboege at ...626... Fri Jan 31 20:23:11 2014 From: taboege at ...626... (Tobias Boege) Date: Fri, 31 Jan 2014 20:23:11 +0100 Subject: [Gambas-user] how to fill combobox with specific index from a array matrix In-Reply-To: References: Message-ID: <20140131192311.GI2204@...2774...> On Fri, 31 Jan 2014, PICCORO McKAY Lenz wrote: > errr about collection another question.. documentation are not cleary > how to use.. > > its creatable ? > > http://gambasdoc.org/help/lang/collection?cs&v3 > > dim pep as new collection? > > in that link does not show how to instanciate/create/make a var of type > Lenz McKAY Gerardo (PICCORO) > http://qgqlochekone.blogspot.com This page documents inline collections (as the title says). Look at the Collection class documentation[0]. Regards, Tobi [0] http://gambasdoc.org/help/comp/gb/collection?v3 -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From mckaygerhard at ...626... Fri Jan 31 20:52:31 2014 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Fri, 31 Jan 2014 15:22:31 -0430 Subject: [Gambas-user] how to fill combobox with specific index from a array matrix Message-ID: Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com From: Beno?t Minisini > A 'MinDate' property could be a good idea... > And a 'MaxDate' too, why not? HEY BENOIT, NEVERMIND! FORGET IT AND MAKE THE EXAMPLES OF GB.WEB PLEASE!!! (i still remenber that mail ok) > From: Tobias Boege >> does gambas provide collections in same way of java does? > No, in Gambas, a Collection is a hash table and not a set (which is what > Java seems to have). You do: > > cCollection["key"] = value ' value is a Variant ok, that ilustrate me how i can use it , does that bette rather than cColection.add(value, "key") but my problem are due my objects have two parts, id and descripcion, i want to fill the combobox id with id of my tabls,and the respective vlue of id comboboxeds (overrides with id from tables) with my values of collection object > do the following: create a String[] aResult or something. Then use the > hresult["whatever_id"], converted to an Integer, as index: > > aResult.Add(hresult["payload"], CInt(hresult["whatever_id"])) > umm this mees might work like the collection idea also > Later, return that String[] as you do. > > Then, when filling the ComboBox, all the elements you didn't assign anything > to (the missing "whatever_id"'s will be Null): > > Dim aResult As String[] = GetTheResultArray() > Dim iInd As Integer > > For iInd = 0 To aResult.Max > If Not aResult[iInd] Then Continue > myComboBox.Add(aResult[iInd], iInd) > Next > > Whether this works (your question below) or how it will look like if some > indices in the ComboBox are missing, I don't know. Test it! i will test now the code u paste me.. and reply later... > Message: 8 > From: Tobias Boege > This page documents inline collections (as the title says). Look at the > Collection class documentation[0]. > [0] http://gambasdoc.org/help/comp/gb/collection?v3 thanks for the link! reading... From mckaygerhard at ...626... Fri Jan 31 21:04:02 2014 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Fri, 31 Jan 2014 15:34:02 -0430 Subject: [Gambas-user] how to fill combobox with specific index from a array matrix Message-ID: >> do the following: create a String[] aResult or something. Then use the >> hresult["whatever_id"], converted to an Integer, as index: >> >> aResult.Add(hresult["payload"], CInt(hresult["whatever_id"])) >> > umm this mees might work like the collection idea also dont work!!! combobox auto enumrate the index, so i'll try now with collection >> Later, return that String[] as you do. >> >> Then, when filling the ComboBox, all the elements you didn't assign anything >> to (the missing "whatever_id"'s will be Null): >> >> Dim aResult As String[] = GetTheResultArray() >> Dim iInd As Integer >> >> For iInd = 0 To aResult.Max >> If Not aResult[iInd] Then Continue >> myComboBox.Add(aResult[iInd], iInd) >> Next >> >> Whether this works (your question below) or how it will look like if some >> indices in the ComboBox are missing, I don't know. Test it! how can i fill the combobox but u must note the resultset object are not in same class i use a class for data and other for fill combox SO THE QUESTION ITS: how can i use colletions to fill the combobox? From taboege at ...626... Fri Jan 31 21:07:47 2014 From: taboege at ...626... (Tobias Boege) Date: Fri, 31 Jan 2014 21:07:47 +0100 Subject: [Gambas-user] how to fill combobox with specific index from a array matrix In-Reply-To: References: Message-ID: <20140131200747.GJ2204@...2774...> On Fri, 31 Jan 2014, PICCORO McKAY Lenz wrote: > >> do the following: create a String[] aResult or something. Then use the > >> hresult["whatever_id"], converted to an Integer, as index: > >> > >> aResult.Add(hresult["payload"], CInt(hresult["whatever_id"])) > >> > > umm this mees might work like the collection idea also > dont work!!! combobox auto enumrate the index, so i'll try now with collection > > >> Later, return that String[] as you do. > >> > >> Then, when filling the ComboBox, all the elements you didn't assign anything > >> to (the missing "whatever_id"'s will be Null): > >> > >> Dim aResult As String[] = GetTheResultArray() > >> Dim iInd As Integer > >> > >> For iInd = 0 To aResult.Max > >> If Not aResult[iInd] Then Continue > >> myComboBox.Add(aResult[iInd], iInd) > >> Next > >> > >> Whether this works (your question below) or how it will look like if some > >> indices in the ComboBox are missing, I don't know. Test it! > how can i fill the combobox but u must note the resultset object are > not in same class > i use a class for data and other for fill combox > > SO THE QUESTION ITS: > how can i use colletions to fill the combobox? > You have the "whatever_id" field as an index - which is an Integer - and still want to use Collection? OK, then: Dim cResult As Collection = GetTheResultCollection() Dim sRes As String For Each sRes In cResult myComboBox.Add(sRes, CInt(cResult.Key)) Next -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From oceanosoftlapalma at ...626... Fri Jan 31 22:07:57 2014 From: oceanosoftlapalma at ...626... (=?UTF-8?B?UmljYXJkbyBEw61heiBNYXJ0w61u?=) Date: Fri, 31 Jan 2014 21:07:57 +0000 Subject: [Gambas-user] Possible bug in round() function In-Reply-To: <52EA9E8B.6030102@...1...> References: <52EA9E8B.6030102@...1...> Message-ID: Thanks for the explanation. Just for this reason I wrote "possible bug" instead "bug". Definitely what a disillusioning floating points! It will be great if gambas could work natively with decimal numbers. Until this time I'll still working with long * 10^decimal digits. Regards, Ricardo 2014-01-30 Beno?t Minisini > Le 30/01/2014 11:33, Ricardo D?az Mart?n a ?crit : > > Hi guys, > > > > Try to do this in the gambas console: > > > > ? round (283.5 * 0.21, -2) > > 59,53 > > > > ? 283.5 * 0.21 > > 59,535 > > > > ? round(59.535, -2) > > 59,54 > > > > Why round (283.5 * 0.21, -2) doesn't works as expected? (or as I > > expected...) > > > > I got the same wrong behavior in my program using something like fAux = > > round(fNumber1, fNumber2, -2) > > > > Regards, > > Ricardo D?az > > > > Round() is defined that way: > > Round(x, y) = Int(x / (10 ^ y) + 0.5) * (10 ^ y) > > 283.5 * 0.21 is not equal to 59.535 in binary: > > ?283.5 * 0.21 - 59.535 > -7,105427357601E-15 > > 59.535 cannot be encoded in binary (like 1/3 in decimal): > > 59.535 = 59 + 0.100010001111010111000010100011110101110000101000... > > The '11110101110000101000' pattern is repeated ad vitam aeternam. > > So 283.5 * 0.21 is lower than 59.535, and so Round returns 59.53. > > As Tobi said, floating points are disillusioning! > > -- > Beno?t Minisini > > > ------------------------------------------------------------------------------ > WatchGuard Dimension instantly turns raw network data into actionable > security intelligence. It gives you real-time visual feedback on key > security issues and trends. Skip the complicated setup - simply import > a virtual appliance and go from zero to informed in seconds. > > http://pubads.g.doubleclick.net/gampad/clk?id=123612991&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas.fr at ...626... Fri Jan 31 23:33:23 2014 From: gambas.fr at ...626... (Fabien Bodard) Date: Fri, 31 Jan 2014 23:33:23 +0100 Subject: [Gambas-user] how to fill combobox with specific index from a array matrix In-Reply-To: <20140131200747.GJ2204@...2774...> References: <20140131200747.GJ2204@...2774...> Message-ID: Public Function GetDestinos() As String[] Dim RelenosCombox As New String[] hresul = hconn.Find("tb_destino") for each hResul RelenosCombox.Add(hresul["destino_id"] & "|" & hresul["destino_descripcion"]) next Return RelenosCombox End 2) in form class Public Sub ComboBoxLinOrig_Click() ComboBoxLinDest.List = operaciones.OtenerDestinos() End