Re: [Gambas-user] Error after project is compiled
I'm going to have to get back with you on this. That machine is having other problems as well as this--I am considering a full re-install of the OS. By the way, all of my other projects on that machine compile to an executable and run without a hitch. So, I'm not sure why it's just this one. Jussi, thanks for the script. I've been meaning to put together something like that, but haven't really been properly motivated. 2010/10/8 Benoît Minisini gam...@users.sourceforge.net I have used these commands to clear old installation. *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* In fact I have this on script for compiling Gambas: *#!/bin/sh sudo rm -f /usr/local/bin/gbx3 /usr/local/bin/gbc3 /usr/local/bin/gba3 /usr/local/bin/gbi3 sudo rm -rf /usr/local/lib/gambas3 sudo rm -rf /usr/local/share/gambas3 cd ~/trunk ./reconf-all ./configure -C make sudo make install sudo -k* Jussi There is a reference on a gb.qt.component file in the compilation installation. Can you find that file on your hard disk? -- Benoît Minisini -- Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today. http://p.sf.net/sfu/beautyoftheweb ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- Download new Adobe(R) Flash(R) Builder(TM) 4 The new Adobe(R) Flex(R) 4 and Flash(R) Builder(TM) 4 (formerly Flex(R) Builder(TM)) enable the development of rich applications that run across multiple browsers and platforms. Download your free trials today! http://p.sf.net/sfu/adobe-dev2dev ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] Error after project is compiled
OK, I think this is a problem with my setup or the OS, but I need help finding the source. I just downloaded build 3230. It's installed and running fine. When I open my project in the IDE and run it, it runs well and exits normally. When I navigate to PROJECT - MAKE - EXECUTABLE, everything seems to compile fine. Then, when I run the file, I get: $ ./jiggler.gambas ERROR: #2: Cannot load class 'FJiggler': Unable to load class file 0: ? Anybody have an idea what the problem is? I've actually been seeing it for a while and thought it had something to do with Gambas, but since I've upgraded Gambas, the problem hasn't gone away. Also, I did check permissions, there doesn't seem to be anything amiss with file/directory permissions. Nothing obvious, anyway. The OS is crunchbang linux on a netbook. /etc/lsb-release says Ubuntu 9.04 -- Start uncovering the many advantages of virtual appliances and start using them to simplify application deployment and accelerate your shift to cloud computing. http://p.sf.net/sfu/novell-sfdev2dev ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Error after project is compiled
2010/9/20 Benoît Minisini gam...@users.sourceforge.net ... Send your project. Attached. jiggler.tar.gz Description: GNU Zip compressed data -- Start uncovering the many advantages of virtual appliances and start using them to simplify application deployment and accelerate your shift to cloud computing. http://p.sf.net/sfu/novell-sfdev2dev___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] GridEditor
Attached is the code that will cause the Sig11. This is the error I'm seeing: (testGridEditor:14683): Gtk-WARNING **: gtk_widget_size_allocate(): attempt to allocate widget with width -3 and height -3 (testGridEditor:14683): Gtk-CRITICAL **: gtk_entry_set_text: assertion `text != NULL' failed To reproduce: Double-click a field in the Legs column to edit. Change the value to be empty. Double-click the next field in the Legs column to edit. That should raise the Signal 11. Take care, -jason testGridEditor-0.0.0.tar.gz Description: GNU Zip compressed data -- Are you an open source citizen? Join us for the Open Source Bridge conference! Portland, OR, June 17-19. Two days of sessions, one day of unconference: $250. Need another reason to go? 24-hour hacker lounge. Register today! http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] GridEditor
Wow, thanks for the expedient response, Benoît! -- Are you an open source citizen? Join us for the Open Source Bridge conference! Portland, OR, June 17-19. Two days of sessions, one day of unconference: $250. Need another reason to go? 24-hour hacker lounge. Register today! http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] GridEditor
Attached is the relevant code/database. It's all very small. Essentially, I'm trying to decipher how GridEditor works--so I've added some notes to the source while I pick through it. I figured out the signal 11, it was in the SQL I was successfully malforming. :-) -jason I could further attach the code and dump the database if that would help. Yes, please provide your project source code and a sql dump of a piece of your database, so that I can reproduce the problems. If it is too big ( 256K), send it to my private e-mail, not the mailing-list. pomegranate.sql.gz Description: GNU Zip compressed data testGridEditor-0.0.1.tar.gz Description: GNU Zip compressed data -- Are you an open source citizen? Join us for the Open Source Bridge conference! Portland, OR, June 17-19. Two days of sessions, one day of unconference: $250. Need another reason to go? 24-hour hacker lounge. Register today! http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] GridEditor
I know I'm beating this up, but I am getting incredibly frustrated trying to figure out how this thing works. Gambas 2.12 / Ubuntu 8.10 The first image is with gb.qt gb.qt.ext components enabled (gtk disabled). - I only see a partial toolbar and no grid displays. The second image is with gb.gtk gb.gtk.ext components enabled (qt disabled). - I get a grid, but no toolbar. - Also, clicking on three different fields in the grid consecutively causes a signal 11. I switched from SQLite to MySQL and made a super-simple database with one table to try to poke my way through this but I seem to be struggling with the basics. Any help is greatly appreciated. I could further attach the code and dump the database if that would help. attachment: gb.qt.pngattachment: gb.gtk.png-- Are you an open source citizen? Join us for the Open Source Bridge conference! Portland, OR, June 17-19. Two days of sessions, one day of unconference: $250. Need another reason to go? 24-hour hacker lounge. Register today! http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] EXEC vs. SHELL
What Doriano typed only needs some minor touching up. I'd be happy to assist with any English cleanup for that or anything further...however, being rather pressed for time at the moment, I may not be able to get to it until late tomorrow evening. As to your English, we might ask some native speaker on the list to look through it. Regards Rolf -- Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensing option that enables unlimited royalty-free distribution of the report engine for externally facing server and web deployment. http://p.sf.net/sfu/businessobjects ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] gb.qt.kde.html
You can read the link a user clicks on with the .link property. Not sure if it can be read before clicking on it though. Or, the .path property... says it returns or sets the URL displayed by the browser. Not sure if either of those is what you're looking for. Not sure about the other question. You could select the text in the window, but it doesn't look like you could get the source that rendered the text in the window. I could be missing something though, so not sure on this one. Perhaps in lieu of present functionality this could be a feature request? -- Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensing option that enables unlimited royalty-free distribution of the report engine for externally facing server and web deployment. http://p.sf.net/sfu/businessobjects ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] clipboard
Beren, I don't know if you're absolutely tied to GTK or non-KDE libraries, but this may help if you are considering inserting a browser into your project: http://www.gambasdoc.org/help/comp/gb.qt.kde.html/webbrowser -j- -- Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensing option that enables unlimited royalty-free distribution of the report engine for externally facing server and web deployment. http://p.sf.net/sfu/businessobjects ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] SQLite with GridEditor
Anybody using these two together? I made an ultra-simple SQLite database to help me pick through and learn what GridEditor does. When I get to: [FTest] with grid ... .open [DBGridEditor DBConnection] I get Query Failed: SQL error or missing database. and it doesn't occur until $conn.Rollback is issued from within the DBGridEditor class. It looks like the database is being opened and the first query is being sent and a result is returned just dandy. Then Reload() is called and Rollback is ultimately issued. From the terminal: The initial query issues normally, then sending 'rollback' results in the error: 'SQL error: cannot rollback - no transaction is active', which makes sense. I'm not familiar with MySQL (and I realize I'm trying to use GE with a DB for which it may not have been explicitly intended--my apologies to Gareth, MySQL is serious overkill for what I'm trying to accomplish). Any thoughts? -- Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT is a gathering of tech-side developers brand creativity professionals. Meet the minds behind Google Creative Lab, Visual Complexity, Processing, iPhoneDevCamp as they present alongside digital heavyweights like Barbarian Group, R/GA, Big Spaceship. http://p.sf.net/sfu/creativitycat-com ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Installing GridEditor Component
I figured out what happened here... ~/.local/lib/gambas2/GridEditor.component ~/.local/share/gambas2/info/GridEditor.list these were linked to: ~/Documents/source/GridEditor/.component ~/Documents/source/GridEditor/GridEditor.gambas which was there because I copied my home directory from a previous install. In the new install I put it somewhere else (trying to organize a little better), but the links remained and were not being overwritten. Deleted the links in ~./local and all went fine. I was nearly going to go insane! -- Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] Installing GridEditor Component
I'm having a bit of trouble getting the GridEditor component intsalled into 2.7. Followed the directions at Gareth's site ( http://gambasrad.org/software/gambas-grideditor/documentation/how-to/installing-grideditor ). The project compiles without errors. Make - Executable goes through the messages Loading information on component ... without errors. Nothing appears beyond this. Project - Properties - Components does not list GridEditor. How do I track down where I'm getting a misfire here? -- Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Compiling Error
Thanks, Benoît. :-) -- This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] HTML in Text Label
I'm trying to insert some basic HTML into a text label and from the docs, div align=center should work, but it displays the text div align=center. Meanwhile b/b, i/i, etc. seems to work well. Also, TextLabel1.alignment = 3 has the result I want. Am I missing something? Jason -- ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] 1795
Do we still have to downgrade libtool to compile the latest snapshot? I have been able to compile 1794 using the downgraded libtool, but tried 1795 today and now I'm getting very strange messages from 'make': make all-recursive make[1]: Entering directory `/home/hackney/trunk' Making all in main make[2]: Entering directory `/home/hackney/trunk/main' make all-recursive make[3]: Entering directory `/home/hackney/trunk/main' Making all in libltdl make[4]: Entering directory `/home/hackney/trunk/main/libltdl' make all-am make[5]: Entering directory `/home/hackney/trunk/main/libltdl' /bin/bash ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -g -O2 -c -o ltdl.lo ltdl.c ./libtool: line 467: CDPATH: command not found ./libtool: line 1145: func_opt_split: command not found libtool: Version mismatch error. This is libtool 2.2.4 Debian-2.2.4-0ubuntu4, but the libtool: definition of this LT_INIT comes from an older release. libtool: You should recreate aclocal.m4 with macros from libtool 2.2.4 Debian-2.2.4-0ubuntu4 libtool: and run autoconf again. make[5]: *** [ltdl.lo] Error 63 make[5]: Leaving directory `/home/hackney/trunk/main/libltdl' make[4]: *** [all] Error 2 make[4]: Leaving directory `/home/hackney/trunk/main/libltdl' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/home/hackney/trunk/main' make[2]: *** [all] Error 2 make[2]: Leaving directory `/home/hackney/trunk/main' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/hackney/trunk' make: *** [all] Error 2 The one that bugs me is the line that says, This is libtool 2.2.4 ... but libtool --version returns: ltmain.sh (GNU libtool) 1.5.26 Debian 1.5.26-4 (1.1220.2.493 2008/02/01 16:58:18) Am I missing something? Do I just need a kick in the head? :-) -- Check out the new SourceForge.net Marketplace. It is the best place to buy or sell services for just about anything Open Source. http://p.sf.net/sfu/Xq1LFB ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Grideditor
Uhh ... obviously I didn't make it past this part, Tick the Box and click Ok when installing. The other bits I'm having trouble with I need to iron out. Thanks! -- Check out the new SourceForge.net Marketplace. It is the best place to buy or sell services for just about anything Open Source. http://p.sf.net/sfu/Xq1LFB ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] Gambas SVN download/compile
On the off chance that someone other than myself would like to automate downloading the source from SVN and compiling, I've attached a bash script that does it for Ubuntu 8.10. I have had to do it a number of times in the past couple days so I figured I'd put together a relatively crude script. Some notes: -) It's based heavily on this page: http://gambasdoc.org/help/install/ubuntu?show by Gareth Bult. -) I am doing this on an ASUS Eee PC running the latest eeebuntu (standard edition). -) The script automatically downloads (and downgrades) a correct libtool package for 32-bit systems. -) I did't get too enchanted with trapping errors and such (I just needed something that worked) -) You will have to edit the HOMEDIR variable to reflect your home directory. -) Finally, make sure you run the script as superuser. I'm open to suggestions for making it better if anyone finds it interesting. Cheers, Jason gb-checkout.sh.gz Description: GNU Zip compressed data -- Check out the new SourceForge.net Marketplace. It is the best place to buy or sell services for just about anything Open Source. http://p.sf.net/sfu/Xq1LFB___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] Grideditor
Is anyone using GridEditor with the latest SVN? -- Check out the new SourceForge.net Marketplace. It is the best place to buy or sell services for just about anything Open Source. http://p.sf.net/sfu/Xq1LFB ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] TableView Editing
Gambas 2.8... I've slightly modified Fabien's example posted on August 13, 2008. 1) I'm getting a Null Object when attempting to execute the following line inside a TableView Click event: TableView1.Edit([a, b, c, d], FALSE) 2) Say I click on Col 0, Row 0. The contents of that cell are selected. I edit the cell contents then press TAB and it appears the contents are apparently saved, but the next column's cell does not get selected. In other words, I click on 0,0 then press TAB. I expect Col 1, Row 0 to be selected. But it is not. Using the left and right arrow keys, I can cursor through the cells and their contents (but none is selected)--which is as expected. Just wondered if the TAB functionality was a feature or a bug? Or possibly something that has been addressed more recently. Thanks, Jason -- ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] TableView Editing
Just wondered if the TAB functionality was a feature or a bug? Or possibly something that has been addressed more recently. This happens in qt and gtk. -- ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Base Conversion
Thanks. There was a python snippet I found on wikipedia earlier. Maybe I'll knock something together in the next few days when I get a little more free time. On Sun, Nov 16, 2008 at 2:27 PM, Pablo Vera [EMAIL PROTECTED] wrote: Here is a VB6 code to convert to and from base36, it should work almost the same in Gambas: ' Support functions ' Get a base36 digit Private Function D36(ByVal N As Integer) As String D36 = Chr$(N + IIf(N = 9, 48, 55)) End Function ' base36 Logarithm Private Function Log36(ByVal X As Double) As Double Log36 = Log(X) / Log(36#) End Function ' Convert a base10 number (Num10) to base36 with a maximum of RNum digits ' Public Function ToBase36(ByVal Num10 As Long, ByVal RNum As Integer) As String Dim Num36 As String, Base As Long, Mult As Integer, E As Integer Num36 = String$(RNum, 0) If Num10 0 Then E = Int(Log36(Num10)) Do Base = 36 ^ E Mult = Int(Num10 / Base) Mid$(Num36, RNum - E, 1) = D36(Mult) Num10 = Num10 - Mult * Base E = E - 1 Loop Until E 0 End If ToBase36 = Num36 End Function ' Convert a base36 number (Num36) back to base10 ' Public Function ToBase10(ByVal Num36 As String) As Long Dim Num10 As Long, I As Integer, D As Long, C As String, E As Integer Num10 = 0 E = Len(Num36) For I = E To 1 Step -1 C = UCase$(MID$(Num36, I, 1)) If C = A And C = Z Then D = ASc(C) - 55 ElseIf C = 0 And C = 9 Then D = ASc(C) - 48 Else D = 0 End If Num10 = Num10 + D * (36 ^ (E - I)) Next I ToBase10 = Num10 End Function Pablo _ Jason Hackney wrote: A cursory look through the docs didn't turn up anything... Is there a function to convert base, say base 10 to base 36? Or base 16 to base 36. I want to get to base 36 from either base10 or base16. It shouldn't be too difficult to hack something together, but was wondering if I'm overlooking something that's already there. Thanks! - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/ ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/ ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/ ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Drawing Persistence
Hey Rob, thanks for the direction. Got it working now. I was confusing how clear, cached, and refresh work with each other. I think I got 'em all set now. :-) Cheers. You want the Cached property. http://www.gambasdoc.org/help/comp/gb.qt/drawingarea/cached Rob - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/ ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user