[Gambas-user] Conversion of array value to integer
If you have an array value that is a number - TmpAry[0] = "1" If you try to convert it to an integer with CInt you get an error "Not a Function" CInt(TmpAry[0]) You get the same error with Val(TmpAry[0]) You DON’T get the same error for CFloat(TmpAry[0]) ? I assume this is a bug ? Thanks, Ian. -- Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server from Actuate! Instantly Supercharge Your Business Reports and Dashboards with Interactivity, Sharing, Native Excel Exports, App Integration & more Get technology previously reserved for billion-dollar corporations, FREE http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] Password error on clicking store or examples in GUI
Hi , I've been getting this error for some time - what can I do to resolve ? On regular updates so will be at the latest revision. 3.6.99 SVN 6881 according to my update manager history. Error screenshot [System] Gambas=3.6.90 OperatingSystem=Linux Kernel=3.13.0-24-generic Architecture=x86_64 Distribution=Linux Mint 17 Qiana Desktop=GNOME Theme=QGtk Language=en_AU.UTF-8 Memory=7858M [Libraries] Cairo=libcairo.so.2.11301.0 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.204.0 GTK+3=libgtk-3.so.0.1000.8 GTK+=libgtk-x11-2.0.so.0.2400.23 OpenGL=libGL.so.1.2.0 Poppler=libpoppler.so.44.0.0 Qt4=libQtCore.so.4.8.6 SDL=libSDL-1.2.so.0.11.4 cheers, Ian. -- Dive into the World of Parallel Programming. The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/ ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Password error on clicking store or examples in GUI
Apologies - copied the image in page rather than an attachment. The error text reads: This application has raised an unexpected error and must abort. [6] Type mismatch: wanted string, got component instead. _Desktop_Passwords._get.75 Once I get this error, I cannot close the GUI and have to do a force quit to end. Cheers, Ian. On 04/02/15 21:00, Jussi Lahtinen wrote: > The screenshot is missing. > > > Jussi > > On Wed, Feb 4, 2015 at 12:03 PM, Ian wrote: > >> Hi , >> I've been getting this error for some time - what can I do to resolve ? >> On regular updates so will be at the latest revision. >> 3.6.99 SVN 6881 according to my update manager history. >> >> >> Error screenshot >> >> [System] >> Gambas=3.6.90 >> OperatingSystem=Linux >> Kernel=3.13.0-24-generic >> Architecture=x86_64 >> Distribution=Linux Mint 17 Qiana >> Desktop=GNOME >> Theme=QGtk >> Language=en_AU.UTF-8 >> Memory=7858M >> [Libraries] >> Cairo=libcairo.so.2.11301.0 >> 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.204.0 >> GTK+3=libgtk-3.so.0.1000.8 >> GTK+=libgtk-x11-2.0.so.0.2400.23 >> OpenGL=libGL.so.1.2.0 >> Poppler=libpoppler.so.44.0.0 >> Qt4=libQtCore.so.4.8.6 >> SDL=libSDL-1.2.so.0.11.4 >> >> cheers, >> Ian. >> >> -- >> Dive into the World of Parallel Programming. The Go Parallel Website, >> sponsored by Intel and developed in partnership with Slashdot Media, is >> your >> hub for all things parallel software development, from weekly thought >> leadership blogs to news, videos, case studies, tutorials and more. Take a >> look and join the conversation now. http://goparallel.sourceforge.net/ >> ___ >> Gambas-user mailing list >> Gambas-user@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > -- > Dive into the World of Parallel Programming. The Go Parallel Website, > sponsored by Intel and developed in partnership with Slashdot Media, is your > hub for all things parallel software development, from weekly thought > leadership blogs to news, videos, case studies, tutorials and more. Take a > look and join the conversation now. http://goparallel.sourceforge.net/ > ___ > Gambas-user mailing list > Gambas-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > -- Dive into the World of Parallel Programming. The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/ ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] Feature Request
Would it be possible to have a Gambas function to return a string based on a Boolean value. IFF may not be the best naming convention for the keyword but was all I could think of. Public Function IFF(InBool As Boolean, InStrTrue As String, InStrFalse As String) As String If Inbool Then Return InStrTrue Else Return InStrFalse Endif End Use example: BoolValue = True Txt_AmIHappy.Text = IFF(BoolValue,"Yes- Im Using Gambas","No-I have to use VB") Of course this can be done with an If-Else or Select-Case but its a little more elegant. Cheers, Ian. -- Dive into the World of Parallel Programming. The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/ ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Password error on clicking store or examples in GUI
Yes copied text exactly as per the error dialogue. with attachment now. When clicking on examples, I get the same error message as soon as I click the link "There" Cheers, Ian. On 07/02/15 09:54, Benoît Minisini wrote: Le 07/02/2015 02:40, Ian a écrit : Apologies - copied the image in page rather than an attachment. The error text reads: This application has raised an unexpected error and must abort. [6] Type mismatch: wanted string, got component instead. _Desktop_Passwords._get.75 Once I get this error, I cannot close the GUI and have to do a force quit to end. Cheers, Ian. Sorry, but are you sure that you got that error message exactly? -- Dive into the World of Parallel Programming. The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Feature Request
IIF - I should have know there would be something. now if the wiki had a search function Ian. On 07/02/15 14:15, Fabien Bodard wrote: > :-P > > You need to read the wki help language pages at least ! > > 2015-02-07 7:09 GMT+01:00 T Lee Davidson : >> Hey Ian, >> >> Unless I'm missing something, you're talking about an Inline IF. And, there >> already is one. >> >> http://gambaswiki.org/wiki/lang/iif >> >> Print IIf(True, "Yes", "No") ' -> Yes >> Print IIf(False, "Yes", "No") ' -> No >> >> >> Lee >> __ >> >> On 02/06/2015 08:51 PM, Ian wrote: >>> Would it be possible to have a Gambas function to return a string based >>> on a Boolean value. >>> IFF may not be the best naming convention for the keyword but was all I >>> could think of. >>> >>> Public Function IFF(InBool As Boolean, InStrTrue As String, InStrFalse >>> As String) As String >>> >>> If Inbool Then >>> Return InStrTrue >>> Else >>> Return InStrFalse >>> Endif >>> >>> End >>> >>> Use example: >>> BoolValue = True >>> Txt_AmIHappy.Text = IFF(BoolValue,"Yes- Im Using Gambas","No-I have to >>> use VB") >>> >>> Of course this can be done with an If-Else or Select-Case but its a >>> little more elegant. >>> >>> >>> Cheers, >>> Ian. >>> >>> >>> >>> >>> -- >>> Dive into the World of Parallel Programming. The Go Parallel Website, >>> sponsored by Intel and developed in partnership with Slashdot Media, is your >>> hub for all things parallel software development, from weekly thought >>> leadership blogs to news, videos, case studies, tutorials and more. Take a >>> look and join the conversation now. http://goparallel.sourceforge.net/ >>> ___ >>> Gambas-user mailing list >>> Gambas-user@lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>> >> -- >> Dive into the World of Parallel Programming. The Go Parallel Website, >> sponsored by Intel and developed in partnership with Slashdot Media, is your >> hub for all things parallel software development, from weekly thought >> leadership blogs to news, videos, case studies, tutorials and more. Take a >> look and join the conversation now. http://goparallel.sourceforge.net/ >> ___ >> Gambas-user mailing list >> Gambas-user@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user > > -- Dive into the World of Parallel Programming. The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/ ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Feature Request
The problem with context sensitive help is that most of the time (50%)+ you just get "Page Not Found" Example: Create a new connection object. ($Con) Type $Con. and scroll the displayed parameter list - on my machine you get "page not found" for each element. I can understand some of the obsucre elements not having any help but I would have thought that the connection object would be one of the better documented . Unless there is something broken on my machine (Linux Mint 17) *sigh* It could be a symptom of another error - where I cannot access the examples but get a strange error. Posted with this subject in the forum "Password error on clicking store or examples in GUI" ...and yes, I'm on daily updates. Cheers, Ian. On 07/02/15 19:45, Lewis Balentine wrote: > The context sensitive on-line help system uses the Wiki. That implies > the existence of some sort of search capability. > > It would be very helpful if that were exposed on the web pages ... but > perhaps it is based on the various index pages. > > > On 02/07/2015 05:33 AM, Ian wrote: >> IIF - I should have know there would be something. >> >> now if the wiki had a search function >> >> >> Ian. >> >> > > -- > Dive into the World of Parallel Programming. The Go Parallel Website, > sponsored by Intel and developed in partnership with Slashdot Media, is your > hub for all things parallel software development, from weekly thought > leadership blogs to news, videos, case studies, tutorials and more. Take a > look and join the conversation now. http://goparallel.sourceforge.net/ > ___ > Gambas-user mailing list > Gambas-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > -- Dive into the World of Parallel Programming. The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/ ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Password error on clicking store or examples in GUI - SOLVED
Tested this on Linux Mint 18 and now works. Must have been fixed in one of the recent updates - had not tested for a while. Cheers, Ian. On 07/02/15 11:19, Ian wrote: > Yes copied text exactly as per the error dialogue. > > with attachment now. > > When clicking on examples, I get the same error message as soon as I > click the link "There" > > Cheers, > Ian. > > > On 07/02/15 09:54, Benoît Minisini wrote: >> Le 07/02/2015 02:40, Ian a écrit : >>> Apologies - copied the image in page rather than an attachment. >>> >>> The error text reads: >>> >>> This application has raised an unexpected error and must abort. >>> [6] Type mismatch: wanted string, got component instead. >>> _Desktop_Passwords._get.75 >>> >>> Once I get this error, I cannot close the GUI and have to do a force >>> quit to end. >>> >>> Cheers, >>> Ian. >>> >> Sorry, but are you sure that you got that error message exactly? >> > > > > -- > Dive into the World of Parallel Programming. The Go Parallel Website, > sponsored by Intel and developed in partnership with Slashdot Media, is your > hub for all things parallel software development, from weekly thought > leadership blogs to news, videos, case studies, tutorials and more. Take a > look and join the conversation now. http://goparallel.sourceforge.net/ > > > ___ > Gambas-user mailing list > Gambas-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -- Dive into the World of Parallel Programming The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/ ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] [SPAM] Tool tip missing for GUI controls.
When in the GUI and selecting a form in design view... when you mouse over the available controls in the selection area,you no longer get a tool tip. By design or a bug ? (or just another Linux Mint issue) Cheers, Ian. [System] Gambas=3.7.90 OperatingSystem=Linux Kernel=3.13.0-24-generic Architecture=x86_64 Distribution=Linux Mint 17.1 Rebecca Desktop=GNOME Theme=QGtk Language=en_AU.UTF-8 Memory=7858M [Libraries] Cairo=libcairo.so.2.11301.0 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.204.0 GTK+3=libgtk-3.so.0.1000.8 GTK+=libgtk-x11-2.0.so.0.2400.23 OpenGL=libGL.so.1.2.0 Poppler=libpoppler.so.44.0.0 Qt4=libQtCore.so.4.8.6 SDL=libSDL-1.2.so.0.11.4 -- One dashboard for servers and applications across Physical-Virtual-Cloud Widest out-of-the-box monitoring support with 50+ applications Performance metrics, stats and reports that give you Actionable Insights Deep dive visibility with transaction tracing using APM Insight. http://ad.doubleclick.net/ddm/clk/290420510;117567292;y ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Running website from server
Randel, Don't forget to give your shell scripts an extension ie: myscript.gbw Then let Apache ( or ngix ) know that it's a CGI script. something like this: from the apache 000-default.conf on my web server ScriptAlias /cgi-bin "/usr/lib/cgi-bin/" AllowOverride None AddHandler cgi-script .gbw .gambas Options -Indexes +ExecCGI +FollowSymLinks Require all granted I've been able to get the single example to work but no other scripts formatted for gbw3 appear to do so. I've been trying now for about 2 weeks with no success, so if you get it working can you please let me know how you did it. Error logs from Apache give this as an error for any script ( other than the example) "malformed header from script 'test3.gbw': Bad header: # Gambas Project File 3.0," I've also tried .gambas control line applications but same deal. The Apache error log contains nothing and the access log seems to say that it functioned correctly. But... the output is a blank page with no source code when you "view source" One of the test scripts I've tried without any success. #!/usr/bin/gbw3 <% private sRes As String Exec ["cat", "/proc/meminfo"] To sRes %> <%= sRes %> === Also ensure that the symbolic link for gbw3 is set in : /usr/bin ian@Linux-Mint /usr/bin $ ls -l gb* -rwxr-xr-x 1 root root 31568 Jun 20 12:10 gba3 -rwxr-xr-x 1 root root 167184 Jun 20 12:10 gbc3 lrwxrwxrwx 1 root root 11 Jun 20 12:10 gbh3 -> gbh3.gambas -rwxr-xr-x 1 root root 14873 Jun 7 21:26 gbh3.gambas -rwxr-xr-x 1 root root 31392 Jun 20 12:10 gbi3 lrwxrwxrwx 1 root root 4 Jun 20 12:10 gbr3 -> gbx3 lrwxrwxrwx 1 root root 11 Jun 7 21:26 gbs3 -> gbs3.gambas -rwxr-xr-x 1 root root 23230 Jun 7 21:26 gbs3.gambas *lrwxrwxrwx 1 root root 11 Jun 7 21:26 gbw3 -> gbs3.gambas* -rwxr-xr-x 1 root root 380664 Jun 20 12:10 gbx3 Also I've written a quick apache log viewer gambas app which will also give you the modules loaded using 'apachectl'. Allow you to view the apache2.conf & the various other config files If you want a copy drop me a line - it's a quick & dirty app to help me try an diagnose the issues I'm having getting Gambas scripts to run. If you have any success please let me know. My Web server is Ubuntu 14.04 Gambas is 3.7.90 Cheers, Ian Roper. --- On 26/06/15 09:02, Randall Morgan wrote: > ; This is the expected behavior I believe. You need to us gbw3 and not > grbr3 to serve your your site. See the wiki: > http://gambaswiki.org/wiki/doc/serverpage > > On Thu, Jun 25, 2015 at 11:35 AM, Moviga Technologies > wrote: > >> >> Hi! >> >> I have made a website with Gambas, and uploaded it to my Ubuntu 15.04 >> VirtualBox server. >> >> As I run: >> >> $ gbr3 website.gambas --httpd >> >> it just spits out html markup in the console window... >> >> >> -- >> Monitor 25 network devices or servers for free with OpManager! >> OpManager is web-based network management software that monitors >> network devices and physical & virtual servers, alerts via email & sms >> for fault. Monitor 25 devices for free with no restriction. Download now >> http://ad.doubleclick.net/ddm/clk/292181274;119417398;o >> ___ >> Gambas-user mailing list >> Gambas-user@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > > -- Monitor 25 network devices or servers for free with OpManager! OpManager is web-based network management software that monitors network devices and physical & virtual servers, alerts via email & sms for fault. Monitor 25 devices for free with no restriction. Download now http://ad.doubleclick.net/ddm/clk/292181274;119417398;o ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] R: Key events don't work on gb.gtk
I have the same version of Linux as Jorge (Linux Mint 17) and key events don't work for me. ? Is there some other tertiary factor involved here? Cheers, Ian Roper. On 15/08/14 19:47, Jorge Carrión wrote: > Jesus: > In my computer works fine with both libraries qt and gtk. with LinuxMint 17. > > [System] > Gambas=3.5.4 > OperatingSystem=Linux > Kernel=3.13.0-24-generic > Architecture=x86_64 > Distribution=Linux Mint 17 Qiana > Desktop=GNOME > Theme=QCleanlooks > Language=es_ES.UTF-8 > Memory=7968M > [Libraries] > Cairo=libcairo.so.2.11301.0 > 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.204.0 > GTK+=libgtk-x11-2.0.so.0.2400.23 > OpenGL=libGL.so.1.2.0 > Poppler=libpoppler.so.44.0.0 > Qt4=libQtCore.so.4.8.6 > SDL=libSDL-1.2.so.0.11.4 > > Hope this help. > > Regards > > > 2014-08-15 12:34 GMT+02:00 Ru Vuott : > >> Hello Jesus, >> >> I tested it, and I confirm the problem: key events don't work on gb.gtk, >> nor gb.gtk3. >> >> My system: >> [System] >> Gambas=3.5.90 >> OperatingSystem=Linux >> Kernel=3.13.0-24-generic >> Architecture=x86_64 >> Distribution=Linux Mint 17 Qiana >> Desktop=GNOME >> Theme=QCleanlooks >> Language=it_IT.UTF-8 >> Memory=3953M >> [Libraries] >> Cairo=libcairo.so.2.11301.0 >> DBus=libdbus-1.so.3.7.6 >> GStreamer=libgstreamer-0.10.so.0.30.0 >> GStreamer=libgstreamer-1.0.so.0.204.0 >> GTK+3=libgtk-3.so.0.1000.8 >> GTK+=libgtk-x11-2.0.so.0.2400.23 >> OpenGL=libGL.so.1.2.0 >> Poppler=libpoppler.so.44.0.0 >> Qt4=libQtCore.so.4.8.6 >> SDL=libSDL-1.2.so.0.11.4 >> >> >> bye >> vuottt >> >> >> >> >> >> >> Ven 15/8/14, Jesus ha scritto: >> >> Oggetto: [Gambas-user] Key events don't work on gb.gtk >> A: "mailing list for gambas users" >> Data: Venerdì 15 agosto 2014, 10:13 >> >> Hi everyone >> >> I just realized that key events don't work on gb.gtk. >> >> Could you please give it a test and confirm it as a bug? >> >> Little test program attached. >> >> Regards >> -- >> Jesus Guardon >> >> -Segue allegato- >> >> >> >> -- >> >> -Segue allegato- >> >> ___ >> Gambas-user mailing list >> Gambas-user@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> >> >> >> -- >> ___ >> Gambas-user mailing list >> Gambas-user@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > -- > ___ > Gambas-user mailing list > Gambas-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -- ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] Error with Scrollview and child objects
If you populate a scrollview with child checkbox objects where you need to scroll to see them all, as soon as you move the scroll bar the child objects do not respond to events. As soon as you move the scroll bar back to the top, the child objects will then respond. Trying this process with Textbox & ComboBox child controls, you can access the child objects but only by clicking 3 times on the child control to get focus. This is not a click then a double click, it needs to be 3 clicks in quick succession ( Triple click) Example with checkbox and textbox child objects attached. [System] Gambas=3.5.90 OperatingSystem=Linux Kernel=3.13.0-24-generic Architecture=x86_64 Distribution=Linux Mint 17 Qiana Desktop=GNOME Theme=QGtk Language=en_AU.UTF-8 Memory=7858M [Libraries] Cairo=libcairo.so.2.11301.0 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.204.0 GTK+3=libgtk-3.so.0.1000.8 GTK+=libgtk-x11-2.0.so.0.2400.23 OpenGL=libGL.so.1.2.0 Poppler=libpoppler.so.44.0.0 Qt4=libQtCore.so.4.8.6 SDL=libSDL-1.2.so.0.11.4 ScrollViewError.tar.gz Description: application/gzip -- Slashdot TV. Video for Nerds. Stuff that matters. http://tv.slashdot.org/___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Textbox bug
I have the same problem. If I select gb.GTK, gb.GTK3 or the standard gb.GUI, when I run the application I cannot enter text into any of the input controls such as text, textarea, spinbox…ect fields. Backspace and Tab DO work !, I can also 'paste' text into a control. However drawing images; simple lines, circles ect on a drawing area component will work correctly. If I switch to gb.QT4 with or without the gb.QT4.ext then text entry works but the drawing of images stops. Stepping through the code, it runs without error but produces no display on any drawing area control. Note # This is on a fresh rebuild of Linux Mint 17 "Qiana" with the latest overnight updates from the gambas-team/gambas-daily PPA. The only thing I can add is that I get this warning in the console: (rdadmin:5856): Gtk-CRITICAL **: IA__gtk_widget_get_direction: assertion 'GTK_IS_WIDGET (widget)' failed with the gb.GUI or gb.GTK component selected. No error reported in the console with gb.GTK3 but the problem still exists as stated. Another has also reported this on the gambas forum at whiteislandsofware.com with Ubuntu 14.04 Cheers, Ian Roper. On 13/09/14 08:53, Shane wrote: > All of a sudden i can't type text in textboxs anymore i can delete but > thats it? > > shane. > > > [System] > Gambas=3.5.90 > OperatingSystem=Linux > Kernel=3.11.0-26-generic > Architecture=x86_64 > Distribution=Linux Mint 16 Petra > Desktop=GNOME > Theme=QGtk > Language=en_AU.UTF-8 > Memory=3807M > [Libraries] > Cairo=libcairo.so.2.11200.16 > Curl=libcurl.so.4.3.0 > 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.28.0.0 > Poppler=libpoppler.so.43.0.0 > Qt4=libQtCore.so.4.8.4 > SDL=libSDL-1.2.so.0.11.4 > > > -- > Want excitement? > Manually upgrade your production database. > When you want reliability, choose Perforce > Perforce version control. Predictably reliable. > http://pubads.g.doubleclick.net/gampad/clk?id=157508191&iu=/4140/ostg.clktrk > > > ___ > Gambas-user mailing list > Gambas-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -- Want excitement? Manually upgrade your production database. When you want reliability, choose Perforce Perforce version control. Predictably reliable. http://pubads.g.doubleclick.net/gampad/clk?id=157508191&iu=/4140/ostg.clktrk ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] [CRASH REPORT] any project type.
Greetings, If you create a breakpoint and highlight a variable of Type 'Result' you get a seg fault 11. If the break point is before the result contains a value then it returns NULL which is expected behaviour. Once the Result holds a value and you highlight it, the Gambas GUI gives the seg fault error. The GUI does not crash but will continue after the clicking OK on the error. Cheers, Ian Roper Kingdom-0.0.1-crash-140926-172542.tar.bz2 Description: application/bzip -- Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Incomplete documentation in Wiki
Greetings all, Is there a way to automatically scan through the code base and give a list of control elements that are missing documentation ? It would be a good reference to have on the Wiki - a "things to do" list for those who want to contribute. Cheers, Ian Roper On 17/10/14 19:04, Willy Raets wrote: > Hi, > > The new Spinner control is documented in the Wiki > But the Wiki the pages for the new controls SwitchButton, DirBox and > FontBox are missing. > > Maybe someone can take care that these new controls are documented? > -- Comprehensive Server Monitoring with Site24x7. Monitor 10 servers for $9/Month. Get alerted through email, SMS, voice calls or mobile push notifications. Take corrective actions from your mobile device. http://p.sf.net/sfu/Zoho ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Incomplete documentation in Wiki
Excellent - thanks Tobias. Looking at the (rather large) list , it occurred to me that it would be good have have the same high level view of all Gambas components that are documented ? Understand we have links to the high level components and can drill down on the Gambas web site but this view as a single page is quite educational - I've seen controls and attributes in the link you supplied that I had never used before and gives me a far greater idea of what's possible. Just a thought. Cheers, Ian. On 18/10/14 06:03, Tobias Boege wrote: > On Sat, 18 Oct 2014, Ian wrote: >> Greetings all, >> Is there a way to automatically scan through the code base and give a >> list of control elements that are missing documentation ? >> It would be a good reference to have on the Wiki - a "things to do" list >> for those who want to contribute. >> > Like the TODO page [0] which lists all classes lacking documentation? :-) > > [0] http://gambaswiki.org/wiki/translate > -- Comprehensive Server Monitoring with Site24x7. Monitor 10 servers for $9/Month. Get alerted through email, SMS, voice calls or mobile push notifications. Take corrective actions from your mobile device. http://p.sf.net/sfu/Zoho ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] Gtk-CRITICAL messages.
I was testing why this error message appears "(ApplicationName:6831): Gtk-CRITICAL **: IA__gtk_widget_get_direction: assertion 'GTK_IS_WIDGET (widget)' failed" It occurred every time the mouse passed over a control. Not sure if it is fixable or a just a GTK interface thing. [System] Gambas=3.6.0 OperatingSystem=Linux Kernel=3.13.0-24-generic Architecture=x86_64 Distribution=Linux Mint 17 Qiana Desktop=GNOME Theme=QGtk Language=en_AU.UTF-8 Memory=7858M [Libraries] Cairo=libcairo.so.2.11301.0 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.204.0 GTK+3=libgtk-3.so.0.1000.8 GTK+=libgtk-x11-2.0.so.0.2400.23 OpenGL=libGL.so.1.2.0 Poppler=libpoppler.so.44.0.0 Qt4=libQtCore.so.4.8.6 SDL=libSDL-1.2.so.0.11.4 Cheers Ian. -- ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] Question on Class.Load
Class.Load allows you to create a reference to a named class. Dim TempClass as Class TmpClass = Class.Load("myclass") This works and I can get the names of the public instances of variables and procedures For each TmpString in TmpClass.Symbols Message(TmpString) Next Is there a way to call a Procedure or Function from the named class and pass it any parameters that it requires? ie: if I have a procedure in a valid class I have created called Public Sub DoSomething(InStr as string) can I call this function from TmpClass somehow (or is this just a 'read only' reference to the loaded class?) I tried Object.Call(TmpClass, "NameOfProcedure", TmpAry) with TmpAry[] containing the name of a single string parameter I wish to pass. This returns the error: "Can't find {NameOfProcedure} in Class 'Class' Context: In each of my projects created classes, I have a standard Procedure to save the applicable database table records to a binary file called CreateBinaryFile(InPath as String) This is the process I am trying to call for each class that I have created. Cheers, Ian Roper. -- ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Question on Class.Load
Merci Fabien, That solution worked very well. I had thought that you only needed to export classes when using them for a component ? (from the Gambas Wiki on Components - Which is the only reference I can find to exporting classes.) One other question. So what would Class.Load be used for ? Ian. On 02/11/14 16:30, Fabien Bodard wrote: > Just one question ... have you exported those classes ? > > tmpClass is just a class ... not an instanciate object > > You need to call Object.New > > Or just new > > > Public Sub Main() > Dim hObj As Object > Dim sSym As String > For Each sSym In Classes["MyClass"].Symbols >Print sSym > Next > > hObj = Object.New("MyClass") > > Object.Call(hObj, "CreateFile", ["Hi World"]) > > End > > 2014-11-02 5:01 GMT+01:00 Ian : >> Class.Load allows you to create a reference to a named class. >> >> Dim TempClass as Class >> TmpClass = Class.Load("myclass") >> >> This works and I can get the names of the public instances of variables >> and procedures >> >> For each TmpString in TmpClass.Symbols >> Message(TmpString) >> Next >> >> Is there a way to call a Procedure or Function from the named class and >> pass it any parameters that it requires? >> >> ie: if I have a procedure in a valid class I have created called Public >> Sub DoSomething(InStr as string) >> can I call this function from TmpClass somehow >> (or is this just a 'read only' reference to the loaded class?) >> >> >> I tried Object.Call(TmpClass, "NameOfProcedure", TmpAry) >> with TmpAry[] containing the name of a single string parameter I wish to >> pass. >> This returns the error: "Can't find {NameOfProcedure} in Class 'Class' >> >> Context: In each of my projects created classes, I have a standard >> Procedure to save the applicable database table records to a binary file >> called CreateBinaryFile(InPath as String) >> This is the process I am trying to call for each class that I have created. >> >> >> Cheers, >> Ian Roper. >> >> -- >> ___ >> Gambas-user mailing list >> Gambas-user@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user > > -- ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] Segfault(11) when looping though an multidimensional array
This process was running fine and had been for quite some time. after the daily update on 3rd November , I now get the Segfault. A seg fault appears when Az >0 (I have commented out all other elements that are not required.) Declaration of the array is : Private LocationAry[51, 51, 5] As Integer GridHeight has a value of 20, GridWidth has a value of 20 === Private Sub DrawCurrentLocation() Dim Ax As Integer Dim Ay As Integer Dim Az As Integer Dim LastImage As Integer = -1 Dim TmpScale As Integer = CInt(Scale) Dim P As Picture ' Draw.Begin(Dra_Main) ' Draw.Clear For Ax = 0 To GridWidth For Ay = 0 To GridHeight For Az = 0 To 4 If LocationAry[Ax, Ay, Az] > 0 Then ' <<<< fails here on the second loop if Ax > 0 ' If LastImage <> LocationAry[Ax, Ay, Az] Then ' P = Img.GetPicture(LocationAry[Ax, Ay, Az]) ' LastImage = LocationAry[Ax, Ay, Az] ' Endif ' Draw.Picture(P, Ax * TmpScale, Ay * Tmpscale, TmpScale, TmpScale) Endif Next Next Next ' Draw.End End However !!! this still works without fault. Private Sub ClearLocationArray() Dim Ax As Integer Dim Ay As Integer Dim Az As Integer For Ax = 0 To 50 For Ay = 0 To 50 For Az = 0 To 4 LocationAry[Ax, Ay, Az] = 0 Next Next Next End === edit: I set the clearLocationArray to a value of 1 instead of 0 and the segfault does not appear but I get an error saying "Null Object" but all of the array variables including the array return a value during a mouse over in program halt ? --- on daily updates from PPA gambas-team [System] Gambas=3.6.90 OperatingSystem=Linux Kernel=3.13.0-24-generic Architecture=x86_64 Distribution=Linux Mint 17 Qiana Desktop=GNOME Theme=QGtk Language=en_AU.UTF-8 Memory=7858M [Libraries] Cairo=libcairo.so.2.11301.0 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.204.0 GTK+3=libgtk-3.so.0.1000.8 GTK+=libgtk-x11-2.0.so.0.2400.23 OpenGL=libGL.so.1.2.0 Poppler=libpoppler.so.44.0.0 Qt4=libQtCore.so.4.8.6 SDL=libSDL-1.2.so.0.11.4 cheers, Ian Roper. -- ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] Wizard control in Gambas 3.4 - Not responding to events ?
Greetings all, I find that some Wizard controls are not responding to events. Given that this control is a little unusual, I may not be using it in the right way. ? When you right click on the Wizard in the editor, not all of the possible events are displayed. To access these events, you have to manually type... Private Sub Wizard1_ The full(?) event list is then displayed. I have included a small project as required to display this. Am I doing it the wrong way or is it really a bug ? Regards, Ian - Perth Western Australia. [System] OperatingSystem=Linux Kernel=3.5.0-25-generic Architecture=x86 Distribution=Ubuntu 12.10 Desktop=GNOME Theme=QGtk Language=en_AU.UTF-8 Memory=4036M [Libraries] GStreamer=libgstreamer-0.10.so.0.30.0 GTK+=libgtk-x11-2.0.so.0.2400.13 Poppler=libpoppler.so.28.0.0 Qt4=libQtCore.so.4.8.3 SDL=libSDL-1.2.so.0.11.4 WizardExample.tar.gz Description: application/compressed-tar -- Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_mar___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] gambas 3 release or otherwise as binary package
Benoit, do you have a plan on when gambas 3 will be formally released? IMHO it is quite stable now. The reason I ask is Richard and I are within sight of releasing a stable version of our software, and we would like to submit it to debian/ubuntu/fedora etc for inclusion, but it would depend on the gambas3 runtime. If you don't plan to release in the next 6 months or so, would you have any objection to a me developing .deb's for the gambas3 runtime which would be relased at regular intervals, tracking the latest stable SVN version? Ian -- 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
[Gambas-user] circular inheritance
When the IDE starts up (gambas3 r3025 on Ubuntu Karmic) I get a warning about circular inheitance on CAuditTrailLink CAuditTrailLink inerits from CWebLink which inherits form CLink. CAuditTrailLink is in a different source directory than CLink and CWebLink I don't understand how this is "circular"? Thanks, Ian cLink.class Description: Binary data cWebLink.class Description: Binary data CAuditTrailLink.class Description: Binary 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] circular inheritance
On Sat, Sep 18, 2010 at 7:35 PM, Fabien Bodard wrote: > I need more than these three classes to understand the problem. sends > me a small project showing the problem please Here 'tis Ian circular-inheritance-0.0.1.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
[Gambas-user] gambas3 ubuntu packages
I have produced some draft ubuntu packages for gambas3, based on svn revision 3246 they are produced largely by taking the gambas2 debian packaging files and replacing a lot of "2"s with "3"s some other changes: gambas2-gb-kde-html becomes gambas3-gb-qt-webkit gambas3-gb-gtk-svg and gambas3-gb-corba don't exist: they don't seem to produce libraries in the upstream svn. gambas3-gb-db-firebird isn't packaged for licence issues as for the gambas2 packages gambas3-gb-dbus is added for the new DBus bindings. they are complied against ubuntu 9.10 ("karmic koala"), I'm interested to hear about how they go on later ubuntu versions or other debian-based distros. to load add the following to your /etc/apt/sources.list: deb http://ppa.launchpad.net/ihaywood3/gambas3/ubuntu karmic main deb-src http://ppa.launchpad.net/ihaywood3/gambas3/ubuntu karmic main then do "sudo apt-get update ; sudo apt-get install gambas3" The version numbers don't mean anything, currently "0.2-1", I will update the packages with svn at irregular intervals or when requested. the major version will stay at 0 so that when official packages come out they replace my packages. Ian -- 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] MOD arithetic operator
On Tue, Nov 9, 2010 at 6:40 PM, user wrote: > i think Gambas concept is to keep a Basic style language as possible > can. So an % operator is a foreign word for a Basic language. Correct I remember MOD from the BBC Acorn's BASIC in the mid 1980s, so for me it is fairly natural, strangely even after a 25 year hiatus in BASIC programming. It makes sense as the ASCII keyboard doesn't have an "obvious" symbol for modulus, (except for C programmers) unlike +, - and / which most people will understand from primary school mathematics lessons. Ian -- The Next 800 Companies to Lead America's Growth: New Video Whitepaper David G. Thomson, author of the best-selling book "Blueprint to a Billion" shares his insights and actions to help propel your business during the next growth cycle. Listen Now! http://p.sf.net/sfu/SAP-dev2dev ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Installing gambas3 on LinuxMint
On Thu, Nov 11, 2010 at 5:42 PM, Dr. Martin Senftleben wrote: > I want to install gambas3 on my LinuxMint machine (64bit), but it > doesn't work, the gambas3-gb-db-mysql package cannot be installed, > because it requires libmysqlclient15off, which is not available. I have > libmysqlclient16 on the system, and libmysqlclient15off is not on the > list of installable packages. > > Any ideas? Where are you getting these packages from? if they are mine, then the issue is they are compiled against an older version of Ubuntu than what you are using One solution is to compile gambas3 yourself. Another is for me to release some packages for newer versions of Ubuntu ;-) I can do this mid next week if you want. Ian -- Centralized Desktop Delivery: Dell and VMware Reference Architecture Simplifying enterprise desktop deployment and management using Dell EqualLogic storage and VMware View: A highly scalable, end-to-end client virtualization framework. Read more! http://p.sf.net/sfu/dell-eql-dev2dev ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Installing gambas3 on LinuxMint
On Fri, Nov 12, 2010 at 8:22 PM, Ian Haywood wrote: > On Thu, Nov 11, 2010 at 5:42 PM, Dr. Martin Senftleben > wrote: > >> I want to install gambas3 on my LinuxMint machine (64bit), but it >> doesn't work, the gambas3-gb-db-mysql package cannot be installed, >> because it requires libmysqlclient15off, which is not available. I have >> libmysqlclient16 on the system, and libmysqlclient15off is not on the >> list of installable packages. >> >> Any ideas? > Where are you getting these packages from? > if they are mine, then the issue is they are compiled against an older > version of > Ubuntu than what you are using I have updated the packages to the latest svn (3301), and now they are compiled for karmic, lucid, and maverick, the three most recent Ubuntu releases. For Linux Mint, I'd try with the Ubuntu Maverick release, so add the following to /etc/apt/sources.list deb http://ppa.launchpad.net/ihaywood3/gambas3/ubuntu maverick main deb-src http://ppa.launchpad.net/ihaywood3/gambas3/ubuntu maverick main then enter sudo apt-get update sudo apt-get install gambas3 and hopefully gambas should be installed! Ian -- Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today http://p.sf.net/sfu/msIE9-sfdev2dev ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] About help and arrays and variables
On Sat, Nov 20, 2010 at 4:24 PM, Werner wrote: > On 20/11/10 04:40, Zelimir Ikovic wrote: >> I am following discussion on Gambas more than 3 months. >> >> Last 10 years I worked in VB6 (70%) and C(30%) on Windows. >> >> I am about to switch to Linux, and I have to decide: >> Gambas3, FreePascal (fpGUI or Lazarus) or C, C++ and FLTK >> I am just wondering is there any discussion on this topic, and where. >> >> How do you compare Gambas against those tools Gambas is the smoothest transition from VB in terms of language syntax, the differences are usually thngs most VB programmers would acknowledge as defects in the original language, such as 1-based arrays, overloading ( ) to deference arrays. However Gambas is Linux-only, the advantage of FreePascal and C++ is you can port back to Windows. The Gambas IDE is easier to use and more stable IMHO. Of the three languages (C++, Pascal, Gambas), Gambas is the most high-level. It is fully OOP but lacks the "protected" access level (personally I hardly used it in C++ and don't miss it) The only things I really miss are function pointers ("procedural variables" in Pascal) and a proper heredoc syntax. Gambas is interpreted, the other 2 are compiled, so it's slower, but in practice I haven't found this an issue (it's heaps faster than Java, and even Ruby, probably on par with Python) Ian -- Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today http://p.sf.net/sfu/msIE9-sfdev2dev ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] ODBC and MS SQL 2000 table existence test issue
Greetings all, I'm asking this question on behalf of a member of http://www.gambasforum.com who can't access this mailing list as it's blocked in his country for some reason ? The issue he is trying to resolve is: Using an ODBC connection to a MS SQL 2000 instance. He can connect. He can list tables. He can access data. The problem is that if he tries the table existence check below he always gets a TRUE even if the table dose not exist. bExist = FALSE bExist = $hConn.Tables.Exist("test") IF bExist THEN Message.Info("exist") ENDIF In the mean time , I have asked him to carefully check the perms on the SQL server for the account he is accessing with to ensure that there are no unusual settings applied. I'll post any suggestions back to his request thread. Thank you in advance. Ian Roper Perth - Western Australia. -- Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today http://p.sf.net/sfu/msIE9-sfdev2dev ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] About help and arrays and variables
2010/11/23 Benoît Minisini : >> > In Gambas 3, you have support for callbacks. That means you can send a >> > Gambas function to a extern C function, and the extern C function will >> > use it (almost) transparently! Can Gambas code call a Gambas callback? Ian -- Increase Visibility of Your 3D Game App & Earn a Chance To Win $500! Tap into the largest installed PC base & get more eyes on your game by optimizing for Intel(R) Graphics Technology. Get started today with the Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs. http://p.sf.net/sfu/intelisp-dev2dev ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Result object, again
2010/11/25 Benoît Minisini : >> good evening all, >> i have another question about my eternal punishment: the result object :-) >> >> caveat answered to a former question about results in general: >> >If you got into the habit of reading all the >> >records you've selected into memory (or even if the Result object >> >worked >> >that way behind the scenes...), you'd soon find everything breaking >with >> >Out Of Memory errors as soon as you start doing anything serious. >> >> my question now is, how the result works behind the scenes, is there a >> counter (result.index?) that tells a layer (the driver?) which record is >> to be given back? >> >> regards, >> tobi >> > > A result object stores the entire query of the result in memory, because of > the stupidity of most SQL backends. Postgresql definately supports cursors (being able to retrieve rows in groups and not hold them all in memory) Ian -- Increase Visibility of Your 3D Game App & Earn a Chance To Win $500! Tap into the largest installed PC base & get more eyes on your game by optimizing for Intel(R) Graphics Technology. Get started today with the Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs. http://p.sf.net/sfu/intelisp-dev2dev ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] hProcess is NULL
On Mon, Dec 27, 2010 at 4:46 AM, Demosthenes Koptsis wrote: > Hello and merry Christmas, > > i have these lines of code > > --- > sCommand = "/opt/avast4workstation-1.3.0/bin/avast -r " & > txtVirusTempFolder.Text & "/avast-report.txt" & " -ac -t A " & > txtVirusTempFolder.Text > > PRINT sCommand > > hProcess1 = SHELL sCommand WAIT FOR INPUT OUTPUT AS "AntiVirRun" > --- > > After that line the hProcess1 is NULL and i get NULL object in > > PUBLIC SUB AntiVirRun_Read() Drop the "WAIT" keyword. Wait makes Gambas stop and wait until the process is finished. You don't want this: you want it to run in parallel with Gambas and read its input. Alternatively, if you just want to get the output as a string and not interact with the program, you can do Shell sCommand To someString I find often this does what I want without getting involved in the Process variable. Ian -- Learn how Oracle Real Application Clusters (RAC) One Node allows customers to consolidate database storage, standardize their database environment, and, should the need arise, upgrade to a full multi-node Oracle RAC database without downtime or disruption http://p.sf.net/sfu/oracle-sfdevnl ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] Command line gambas compiler
Apologies if this is a double post - have been having trouble posting things to the forum. Question: Is there a way to compile a Gambas project from a command line ? ie: The Project > Make > Executable. process from the Development environment. Context: I would like to be able to have an Gambas application self update from the web. To be able to download modified/new project elements and then recompile the application.gambas from a secondary application using the command line function. I have all the rest working but can't find a way to recompile without using the GUI. Regards, Ian Roper Perth - Western Australia Gambas 2.22 on Ubuntu 10.10 -- Learn how Oracle Real Application Clusters (RAC) One Node allows customers to consolidate database storage, standardize their database environment, and, should the need arise, upgrade to a full multi-node Oracle RAC database without downtime or disruption http://p.sf.net/sfu/oracle-sfdevnl ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] hProcess is NULL
On Mon, Dec 27, 2010 at 8:11 PM, Demosthenes Koptsis wrote: > On Mon, 2010-12-27 at 10:20 +1100, Ian Haywood wrote: >> On Mon, Dec 27, 2010 at 4:46 AM, Demosthenes Koptsis >> wrote: >> > Hello and merry Christmas, >> > >> > i have these lines of code >> > >> > --- >> > sCommand = "/opt/avast4workstation-1.3.0/bin/avast -r " & >> > txtVirusTempFolder.Text & "/avast-report.txt" & " -ac -t A " & >> > txtVirusTempFolder.Text >> > >> > PRINT sCommand >> > >> > hProcess1 = SHELL sCommand WAIT FOR INPUT OUTPUT AS "AntiVirRun" >> > --- >> > >> > After that line the hProcess1 is NULL and i get NULL object in >> > >> > PUBLIC SUB AntiVirRun_Read() >> Drop the "WAIT" keyword. > > Actually i want the WAIT word. > > I want to WAIT until the command is finished but in meanwhile i want to > be capable to read the stdout. Use Shell...To as I described. Or read output and then when you are finished reading use hProcess.Wait() But you can't wait and read at the same time. Ian -- Learn how Oracle Real Application Clusters (RAC) One Node allows customers to consolidate database storage, standardize their database environment, and, should the need arise, upgrade to a full multi-node Oracle RAC database without downtime or disruption http://p.sf.net/sfu/oracle-sfdevnl ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] hProcess is NULL
On Mon, Dec 27, 2010 at 10:00 PM, Demosthenes Koptsis wrote: > hProcess1 = SHELL sCommand FOR INPUT AS "AntiVirRun" > WHILE (hProcess1.Running) > WAIT 10 > WEND This does work but is slow, potentially pointless wait of nine seconds at the end. Instead you could split this function into two: hProcess1 = SHELL sCommand FOR INPUT AS "AntiVirRun End Private Sub Continue_The_Function() .. . . . whatever you where doing Then use AntiVirRun_Kill event to call the continue function when the process ends. Ian -- Learn how Oracle Real Application Clusters (RAC) One Node allows customers to consolidate database storage, standardize their database environment, and, should the need arise, upgrade to a full multi-node Oracle RAC database without downtime or disruption http://p.sf.net/sfu/oracle-sfdevnl ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Linuxmint and gambas
On Thu, Dec 30, 2010 at 3:46 AM, Matteo Pasotti wrote: > Il 29/12/2010 16:59, admhards...@yahoo.ca ha scritto: >> Somebody have experience in gambaas with linux mint? >> Thanks >> Tomas > As Werner said, the installation procedure is exactly the same of ubuntu. > Some time ago I've used the repo from madnessmike, but if you need > gambas3 the only way I know is to compile the sources (follow the > instructions provided into the online gambas documentation). > Gambas (2 and 3) works fine on mint. > Regards, there are some draft gambas3 packages available for ubuntu at https://launchpad.net/~ihaywood3/+archive/gambas3 there are packages for "lucid" and"maverick" the two latest ubuntu versions. It depends which linux mint is based on, I have no idea, but try "maverick" first Ian -- Learn how Oracle Real Application Clusters (RAC) One Node allows customers to consolidate database storage, standardize their database environment, and, should the need arise, upgrade to a full multi-node Oracle RAC database without downtime or disruption http://p.sf.net/sfu/oracle-sfdevnl ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Sig 11 with menu items remains
2011/1/3 Benoît Minisini : >> Hi Benoit/List: >> >> >> A reminder prior to the release that that annoying Sig11 bug remains with >> the menu items, you'll remember I tried to use valgrind with it some time >> ago without success and I think the suggestion was that maybe it is >> related to a QT4 bug. >> >> Maybe someone else on the list is aware of this or can help. >> >> I've emailed Ian, who is much more switched on than me about computing to >> see if he can liase with you on this. >> >> Also lately I've been getting some Sig11 with Result objects, not sure why, >> just to let you know they exist, I'll try and track these down. > > If you want to help tracking these bugs, compile Gambas with optimizations > disabled (run 'make "CFLAGS=-O0 -g" "CXXFLAGS=-O0 -g"' instead of just > 'make'), and enable core dumps. Then, as soon as you get a crash, a core file > will be generated, and by using gdb on it, you will get a backtrace of the > crash you can send me. Ok, will do. > I don't want to remove the current Spacing property. But I could add the old > one if someone find a good name for it. I have already used "Margin", > "Padding, and "Spacing". Internally, the old spacing property is there. It's > just a matter of finding a good name! PixelSpacing? > Just don't use Collection and create your own container class that fits your > needs. while the Collection.Add() loophole remains we are sweet. :-) but point taken, we will switch to a class emulating Collection using _get/_set Ian -- Learn how Oracle Real Application Clusters (RAC) One Node allows customers to consolidate database storage, standardize their database environment, and, should the need arise, upgrade to a full multi-node Oracle RAC database without downtime or disruption http://p.sf.net/sfu/oracle-sfdevnl ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] signal 11 from menus
I'm not filing this as a bug as I'm not sure it is. The project Richard and I work on was segfaulting when opening a submenu. I enclose the stacktrace from GDB and a small project that elicits it. As you can see from the project, the cause is generating the submenu structure twice, the second time from within the Menu_Show () handler. By only generating the menus once the problem is solved. Ian Program received signal SIGSEGV, Segmentation fault. 0x002d05e0 in ?? () from /lib/tls/i686/cmov/libc.so.6 (gdb) bt #0 0x002d05e0 in ?? () from /lib/tls/i686/cmov/libc.so.6 #1 0x00dfad50 in ?? () from /usr/lib/libQtGui.so.4 #2 0x00dfc39f in QMenu::popup(QPoint const&, QAction*) () from /usr/lib/libQtGui.so.4 #3 0x00dfef05 in QMenu::internalDelayedPopup() () from /usr/lib/libQtGui.so.4 #4 0x00dff486 in QMenu::timerEvent(QTimerEvent*) () from /usr/lib/libQtGui.so.4 #5 0x0141a254 in QObject::event(QEvent*) () from /usr/lib/libQtCore.so.4 #6 0x009b8326 in QWidget::event(QEvent*) () from /usr/lib/libQtGui.so.4 #7 0x00e020cc in QMenu::event(QEvent*) () from /usr/lib/libQtGui.so.4 #8 0x0095a4dc in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4 #9 0x009610f9 in QApplication::notify(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4 #10 0x01409a3b in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/libQtCore.so.4 #11 0x01438d66 in ?? () from /usr/lib/libQtCore.so.4 #12 0x01435917 in ?? () from /usr/lib/libQtCore.so.4 #13 0x017105e5 in g_main_context_dispatch () from /lib/libglib-2.0.so.0 #14 0x017142d8 in ?? () from /lib/libglib-2.0.so.0 #15 0x017144b8 in g_main_context_iteration () from /lib/libglib-2.0.so.0 #16 0x014355d5 in QEventDispatcherGlib::processEvents(QFlags) () from /usr/lib/libQtCore.so.4 #17 0x00a1a135 in ?? () from /usr/lib/libQtGui.so.4 #18 0x01408059 in QEventLoop::processEvents(QFlags) () from /usr/lib/libQtCore.so.4 #19 0x014084aa in QEventLoop::exec(QFlags) () from /usr/lib/libQtCore.so.4 #20 0x00dfcdde in QMenu::exec(QPoint const&, QAction*) () from /usr/lib/libQtGui.so.4 #21 0x0033293c in CMENU_popup (_object=0x824ac1c, pos=...) at CMenu.cpp:595 #22 0x00332a17 in Menu_Popup (_object=0x824ac1c, _param=0x80a7abc) at CMenu.cpp:624 #23 0x08056052 in EXEC_native () at gbx_exec.c:1243 #24 0x080552db in EXEC_native_check (defined=1 '\001') at gbx_exec.c:1035 #25 0x0808e54a in EXEC_loop () at gbx_exec_loop.c:979 #26 0x08054af1 in EXEC_function_loop () at gbx_exec.c:861 #27 0x08054a6b in EXEC_function_real () at gbx_exec.c:848 #28 0x08056b77 in EXEC_public_desc (class=0x80d567c, object=0x826e3d4, desc=0x80eed5c, nparam=0) at gbx_exec.c:1497 #29 0x08071759 in raise_event (observer=0x826e3d4, object=0x8253a5c, func_id=118, nparam=0) at gbx_api.c:476 #30 0x080719db in GB_Raise (object=0x8253a5c, event_id=6, nparam=0) at gbx_api.c:580 #31 0x0031cc31 in CWidget::eventFilter (this=0x383644, widget=0x824b5b8, event=0xbfffeae0) at CWidget.cpp:2277 #32 0x01408d9c in QCoreApplicationPrivate::sendThroughApplicationEventFilters(QObject*, QEvent*) () from /usr/lib/libQtCore.so.4 #33 0x0095a463 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4 #34 0x009619f7 in QApplication::notify(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4 #35 0x01409a3b in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/libQtCore.so.4 #36 0x00960952 in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer&, bool) () from /usr/lib/libQtGui.so.4 #37 0x009ec088 in ?? () from /usr/lib/libQtGui.so.4 #38 0x009eb511 in QApplication::x11ProcessEvent(_XEvent*) () from /usr/lib/libQtGui.so.4 #39 0x00a1a60a in ?? () from /usr/lib/libQtGui.so.4 #40 0x017105e5 in g_main_context_dispatch () from /lib/libglib-2.0.so.0 #41 0x017142d8 in ?? () from /lib/libglib-2.0.so.0 #42 0x017144b8 in g_main_context_iteration () from /lib/libglib-2.0.so.0 #43 0x014355d5 in QEventDispatcherGlib::processEvents(QFlags) () from /usr/lib/libQtCore.so.4 #44 0x00a1a135 in ?? () from /usr/lib/libQtGui.so.4 #45 0x01408059 in QEventLoop::processEvents(QFlags) () from /usr/lib/libQtCore.so.4 #46 0x014084aa in QEventLoop::exec(QFlags) () from /usr/lib/libQtCore.so.4 #47 0x0140c69f in QCoreApplication::exec() () from /usr/lib/libQtCore.so.4 #48 0x0095a577 in QApplication::exec() () from /usr/lib/libQtGui.so.4 #49 0x0031368c in hook_loop () at main.cpp:721 #50 0x0807bc26 in main (argc=1, argv=0xb524) at gbx.c:371 elicit-sig11-with-menu-0.0.1.tar.gz Description: GNU Zip compressed data -- Learn how Oracle Real Application Clusters (RAC) One Node allows customers to consolidate database storage, standardize their database environment, and, should the need arise, upgrade to a full multi-node Oracle RAC database without downtime or disru
[Gambas-user] Incorrect name at the top of the lang web page V2 instead of V3
I noticed that at the top of the web page on the Gambas documentation site <http://gambasdoc.org/help/lang> that the version 2.n link is identified as ' > [3.0]' and the version 3.n link is identified as ' > lang [2.0] minor thing I know, but confusing for new users. regards, Ian Roper Perth - Western Australia. Gambas 2.22 on Ubuntu 10.10 -- Protect Your Site and Customers from Malware Attacks Learn about various malware tactics and how to avoid them. Understand malware threats, the impact they can have on your business, and how you can protect your company and customers by using code signing. http://p.sf.net/sfu/oracle-sfdevnl ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Crash with Free()
On Fri, Jan 14, 2011 at 8:41 AM, Demosthenes Koptsis wrote: > :) Pointers are tricky! yes, the ability to avoid pointers is one of the main advantages of higher-level languages like Gambas. I'm curious to know why you guys are so fascinated by them, other than interfacing with C libraries I would have thought they should be left well alone. Ian -- Protect Your Site and Customers from Malware Attacks Learn about various malware tactics and how to avoid them. Understand malware threats, the impact they can have on your business, and how you can protect your company and customers by using code signing. http://p.sf.net/sfu/oracle-sfdevnl ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] [Fwd: Gambas3 Pointers example] signal #6
On Mon, Jan 17, 2011 at 9:50 PM, Demosthenes Koptsis wrote: > > Benoit sorry if you feel that i discuss C++ cases in a Gambas list but i > try to describe some cases of pointers and the usage of them in Gambas. IMHO the issue is C pointers aren't an easy topic and good conceptual understanding is important. Anyone who contemplates interfacing with a C API using pointers would need to sit down and read a standard C textbook to get a proper understanding: it's not something where you can give a few "quick tips" in a Gambas manual and then people can actually go away and use them. Similarly I can see how it's hard for Benoit and others to answer your questions without launching into a ten-page tutorial on C pointers. More importantly they have no other use in the language, so there's no point learning about gambas pointers unless you are prepared to learn C anyway. My advice would be to make a choice: 1. sit down and learn basic C and how to use C pointers, then come back to this problem 2. leave Gambas pointers alone and concentrate on other sections Ian -- Protect Your Site and Customers from Malware Attacks Learn about various malware tactics and how to avoid them. Understand malware threats, the impact they can have on your business, and how you can protect your company and customers by using code signing. http://p.sf.net/sfu/oracle-sfdevnl ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Nightly Builds
On Mon, Feb 7, 2011 at 1:15 PM, John Spikowski wrote: > Is there a way to 'package' a Gambas 3 runtime to share with others on > the All Basic forum? I would need a script to build a tar.z file. I > would want to include everything that is needed to run Gambas 3 once the > tar is extracted in the same directory structure it was built from. > > Gambas requires a fair amount of dependencies and making the user go > hunting for them and maybe installing stuff they don't need could be a > turn off before they even get started using the language. we've had this discussion before. Including all the dependencies would be very big, it would also be quite hard to set up as the gambas executable would need to load the shared libraries from the same directory as the .tar.gz instead of the standard linux location (/usr/lib/) All the modern linux distros include a system for automatically resolving and loading complex dependencies, so the only real solution is a packaging for the various distros. https://launchpad.net/~ihaywood3/+archive/gambas3 contains ubuntu packages which work on debian testing and probably most other .deb based distros (Linux Mint, Mepis, etc) I update about once a fortnight or so from svn, but if someone wants to take over and extend to use some nightly autobuild system that would be good. Ian -- The modern datacenter depends on network connectivity to access resources and provide services. The best practices for maximizing a physical server's connectivity to a physical network are well understood - see how these rules translate into the virtual world? http://p.sf.net/sfu/oracle-sfdevnlfb ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Nightly Builds
On Mon, Feb 7, 2011 at 9:30 PM, John Spikowski wrote: > I didn't know you were already doing this. How much of your time does it > take to build a release with this setup? I have a script which runs in a couple of minutes including the upload. It is then compiled on the Ubuntu launchpad system and I get an e-mail if the compile fails. That process takes around an hour as it has to wait in a queue for a free server. This is a good system as I can test on systems and architectures I don't have. > I guess if your going to beta testing a new release, you should probably > build it on your own system to for validity and review of the changes. They are draft builds of the current svn and are totally unstable, I don't do any testing other than as a regular gambas user, the .debs are there purely for convenience to allow people to run the bleeding-edge code without getting bogged down in svn and dependencies, and also so gambas3 is ready for submission to Debian soon after it is officially released, Unfortunately I can't release gambas3 before Benoit does :-( Ian -- The modern datacenter depends on network connectivity to access resources and provide services. The best practices for maximizing a physical server's connectivity to a physical network are well understood - see how these rules translate into the virtual world? http://p.sf.net/sfu/oracle-sfdevnlfb ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] Error writing Binary data - Gambas 2.99.0
Greetings all, I am trying to write some simple binary data to a file being ~ Integers 1 - 5000 I keep getting this error [Error: Type missmatch : wanted string , got integer instead.] So I copied the example from <http://gambasdoc.org/help/lang/write> as below. This code comes up with the same error ? DIM binaryFile AS File DIM i AS Integer = 10 DIM b AS Byte = 4 DIM s AS Short = 23 DIM s1 AS String = "This is string 1" DIM s2 AS String = "Another string" ' Open as create so we get a new file binaryFile = OPEN FilePath FOR CREATE WRITE #binaryFile, i'<<--<<<<<< Error occurs here. WRITE #binaryFile, b WRITE #binaryFile, s WRITE #binaryFile, s1 WRITE #binaryFile, s2 CLOSE #binaryFile Confirmed I have write access : changed WRITE to use a string variable and it works fine. Changed to Gambas 2.22 and same code worked as it should, - able to write & read. Can someone else please test. Thanks in advance. Regards, Ian Roper Perth Western Australia. -- The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE: Pinpoint memory and threading errors before they happen. Find and fix more than 250 security defects in the development cycle. Locate bottlenecks in serial and parallel code that limit performance. http://p.sf.net/sfu/intel-dev2devfeb ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] changes to Regexp
I noitced with old versions of gambas, Regexp.Submatches[0].Text returns the whole match, .Submatches[1] the first submatch and so on. But in the latest version this changes and Submartches[0] becomes the first match. see project attached, its output on revision 3564 re.SubMatches[0].Text the brown fox re.SubMatches[1].Text brown and svn 3641: re.SubMatches[0].Text brown re.SubMatches[1].Text fox Is this an intentional/permanent change in the language? (because I have quite a few Submatches references to change) Ian test-regexp-0.0.1.tar.gz Description: GNU Zip compressed data -- Colocation vs. Managed Hosting A question and answer guide to determining the best fit for your organization - today and in the future. http://p.sf.net/sfu/internap-sfd2d___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Gambas 3 RC1 pre-release source package
2011/3/20 Benoît Minisini : > And for those who can make binary packages: can you try to make a binary > package from this source package and tell me if you get any problem? That way, > I hope that packaging problems will be fixed before the final release! compiles on Debian squeeze, Ubuntu lucid and maverick without problems. packages can be downloaded from: https://launchpad.net/~ihaywood3/+archive/gambas3 Ian -- Colocation vs. Managed Hosting A question and answer guide to determining the best fit for your organization - today and in the future. http://p.sf.net/sfu/internap-sfd2d ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Gambas 3 RC1 pre-release source package
2011/3/20 Benoît Minisini : >> 2011/3/20 Benoît Minisini : >> > And for those who can make binary packages: can you try to make a binary >> > package from this source package and tell me if you get any problem? That >> > way, I hope that packaging problems will be fixed before the final >> > release! >> >> compiles on Debian squeeze, Ubuntu lucid and maverick without problems. >> >> packages can be downloaded from: >> https://launchpad.net/~ihaywood3/+archive/gambas3 >> >> Ian >> > > Mmm... Binary packages must follow what is detailed on the wiki, at the "How > to package Gambas" page. the packages are basically the old gambas2 debian packages with "2" replaced by "3" (and using the gambas3 source of course) Some changes to dependencies are also required to make them build. However I haven't changed the structure and names of the packages, these seem to follow the guidelines set in the wiki, with two exceptions - gambas3-devel is gambas3-dev, this the Debian naming convention ("gambas3-devel" would be seen as being RedHat-style) - gambas3-help doesn't exist as it doesn't seem to build, I'll take a look at that. I'm happy to make other changes to bring these packages into line with the guidelines, but you will need to state specifically what the problems are. Ian -- Colocation vs. Managed Hosting A question and answer guide to determining the best fit for your organization - today and in the future. http://p.sf.net/sfu/internap-sfd2d ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Gambas 3 RC1 pre-release source package
2011/3/21 Benoît Minisini : > 1) I don't see where are all the individual binary packages (gambas3-runtime, > gambas3-dev...) on the launchpad link you sent. https://launchpad.net/~ihaywood3/+archive/gambas3/+sourcepub/1558737/+listing-archive-extra -- Colocation vs. Managed Hosting A question and answer guide to determining the best fit for your organization - today and in the future. http://p.sf.net/sfu/internap-sfd2d ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Gambas 3 RC1 pre-release source package
On Tue, Mar 22, 2011 at 7:22 AM, Laurent Carlier wrote: > 2011/3/21 Ian Haywood > >> 2011/3/21 Benoît Minisini : >> >> > 1) I don't see where are all the individual binary packages >> (gambas3-runtime, >> > gambas3-dev...) on the launchpad link you sent. >> >> https://launchpad.net/~ihaywood3/+archive/gambas3/+sourcepub/1558737/+listing-archive-extra >> >> >> -- >> Colocation vs. Managed Hosting >> A question and answer guide to determining the best fit >> for your organization - today and in the future. >> http://p.sf.net/sfu/internap-sfd2d >> ___ >> Gambas-user mailing list >> Gambas-user@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > It seem there is a problem with the naming of gb.qt4 packages components, it > should be gambas3-gb-qt4 instead of gambas3-gb-qt, will do. > also gambas3-gb-opengl-glsl is missing, it's not a part of gambas-gb-opengl > package. will take a look. do you know what "glsl" stands for? (to help work out dependencies?) Ian -- Enable your software for Intel(R) Active Management Technology to meet the growing manageability and security demands of your customers. Businesses are taking advantage of Intel(R) vPro (TM) technology - will your software be a part of the solution? Download the Intel(R) Manageability Checker today! http://p.sf.net/sfu/intel-dev2devmar ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] gb3 RC1: using structures to replace the loss of Mk$ functions
On Fri, Apr 1, 2011 at 4:36 PM, Kevin Fishburne wrote: > On 04/01/2011 01:15 AM, Bruce Bruen wrote: >> On Friday, April 01, 2011 01:17:50 PM Kevin Fishburne wrote: >>> I'm finding that the task of replacing the Mk$ functions with structures >>> for UDP packet client/server transactions is a massive undertaking. So >>> far it's affecting every part of my project that constructs, parses, >>> sends and receives data. As a consequence the network code is going from >>> dozens of lines to hundreds, and I'm beginning to see that the actual >>> logic of network operations will need to be changed as well. >> Pure stab in the dark. Could you write a "helper" class to replace the Mk$ >> functions, then you'd only have to develop a limited amount of code and leave >> the working code alone? Another stab in the dark: could you have a Object array, and then an class for each type of message which knows how to pack and unpack itself to the wire using an internal structure Ian -- Create and publish websites with WebMatrix Use the most popular FREE web apps or write code yourself; WebMatrix provides all the features you need to develop and publish your website. http://p.sf.net/sfu/ms-webmatrix-sf ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Webview + images Kubuntu 9 / Kubuntu 10
On Sat, Apr 9, 2011 at 4:54 PM, richard terry wrote: > HEIGHT=240 BORDER=0>, just shows an empty box on the screen where the image > should be. firstly I assume /home/richard/webcam_shot.png exists. second try modifying the html to read: as some browsers may be picky and require that it be a file:// URL. Ian -- Xperia(TM) PLAY It's a major breakthrough. An authentic gaming smartphone on the nation's most reliable network. And it wants your games. http://p.sf.net/sfu/verizon-sfdev ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Base 64 question
No, HL7 parsing is fine, let me restate the question: does gambas have an inbuilt function to decode base 64 data? Ian On Thu, Apr 28, 2011 at 3:48 AM, nando wrote: > Health Level 7 file format > To start visit: > http://en.wikipedia.org/wiki/Health_Level_7 > > > -- Original Message --- > From: richard terry > To: mailing list for gambas users > Sent: Wed, 27 Apr 2011 18:13:57 +1000 > Subject: [Gambas-user] Base 64 question > >> Hi list, >> >> I've a HL7 file apparently with embedded base64 data (as a pdf) I wondered if >> there iwas any way to de-encode the data, if that is the right syntax. >> >> Regards >> >> Richard >> >> -- >> WhatsUp Gold - Download Free Network Management Software >> The most intuitive, comprehensive, and cost-effective network >> management toolset available today. Delivers lowest initial >> acquisition cost and overall TCO of any competing solution. >> http://p.sf.net/sfu/whatsupgold-sd >> ___ >> Gambas-user mailing list >> Gambas-user@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user > --- End of Original Message --- > > > -- > WhatsUp Gold - Download Free Network Management Software > The most intuitive, comprehensive, and cost-effective network > management toolset available today. Delivers lowest initial > acquisition cost and overall TCO of any competing solution. > http://p.sf.net/sfu/whatsupgold-sd > ___ > Gambas-user mailing list > Gambas-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- WhatsUp Gold - Download Free Network Management Software The most intuitive, comprehensive, and cost-effective network management toolset available today. Delivers lowest initial acquisition cost and overall TCO of any competing solution. http://p.sf.net/sfu/whatsupgold-sd ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Gambas 3 not out yet?
On Fri, Apr 29, 2011 at 1:53 PM, John Spikowski wrote: > On Thu, 2011-04-28 at 22:22 -0400, Keith Clark wrote: >> I've just installed Ubuntu 11.04 and Gambas 3 is still not included in >> this popular distro? >> >> Maybe I'm not updating correctly or something. > > Keith, > > You will have to build from svn till Gambas 3 RC1 is released. (watch > for the icon on the homepage to become active) you can use interim ubuntu packages from https://launchpad.net/~ihaywood3/+archive/gambas3 Ian -- WhatsUp Gold - Download Free Network Management Software The most intuitive, comprehensive, and cost-effective network management toolset available today. Delivers lowest initial acquisition cost and overall TCO of any competing solution. http://p.sf.net/sfu/whatsupgold-sd ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Gambas 3 working on Ubuntu Natty with Unity interface - Unable to run ./reconf-all for a fresh SVN download
Greetings all, Menu Problem: I have found the same issue with Ubuntu Natty - no menus displayed for Gambas 3. I did the online upgrade and was watching the process run and noticed that it started to touch Gambas files. I can't be 100% sure because the process was running very quickly but it seemed to select some of the QT Gambas components and "upgrade" with a quick display of "no longer required" - Again it was hard to be sure because it was running very quickly. The online upgrade failed ( a my computer problem ) but was able to get an unstable interface running by selecting "use previous version of Linux" from the selection menu. This allows me to check some things including Gambas 3 , which is where I discovered the missing menu for any apps that I had made. so rebuilt from a new ISO image. Installation problem: -- I now seem to have another problem with installing Gambas 3 , in that I can't compile G3 from a SVN download. I've installed/upgraded the build for G3 this way a number of times and follow a standard process - until now it has been always successful. This is the error message I get: ======== ian@ian-Natty:~/trunk/gambas/trunk$ ./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 aclocal: unrecognized option -- `--install' Try `aclocal --help' for more information. autoreconf: aclocal failed with exit status: 1 = I can confirm that the files listed for alocal are there [ /usr/share/aclocal/libtool.m4'] in the nominated folder. Any suggestions ? Regards, Ian Roper On Fri, 2011-04-29 at 16:25 +0200, Ricardo Díaz Martín wrote: > Something new in this issue? > > Regards, > Ricardo Díaz > > 2011/4/23 Benoît Minisini > > > > gambas menu is disappeared:-( > > > > > > Andrea Bertini > > > > > > > I have the same problem with the KDE plasma applet that shows the menu on > > the > > top of the screen, like on Mac. The IDE menu does not show, and I don't > > know > > why. The menu of examples are visible on the contrary, so it's strange. > > > > That needs some investigation... > > > > -- > > Benoît Minisini > > > > > > -- > > Fulfilling the Lean Software Promise > > Lean software platforms are now widely adopted and the benefits have been > > demonstrated beyond question. Learn why your peers are replacing JEE > > containers with lightweight application servers - and what you can gain > > from the move. http://p.sf.net/sfu/vmware-sfemails > > ___ > > Gambas-user mailing list > > Gambas-user@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > -- > WhatsUp Gold - Download Free Network Management Software > The most intuitive, comprehensive, and cost-effective network > management toolset available today. Delivers lowest initial > acquisition cost and overall TCO of any competing solution. > http://p.sf.net/sfu/whatsupgold-sd > ___ > Gambas-user mailing list > Gambas-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- WhatsUp Gold - Download Free Network Management Software The most intuitive, comprehensive, and cost-effective network management toolset available today. Delivers lowest initial acquisition cost and overall TCO of any competing solution. http://p.sf.net/sfu/whatsupgold-sd ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] gb3: "System error #90: Message too long in Network:604."
On Tue, May 17, 2011 at 2:56 PM, Kevin Fishburne wrote: > I was trying to send a 100+ Kb UDP packet and received this error. Is this a > bug, or am I missing something? I think UDP packets are limited to 64KB. Ian -- Achieve unprecedented app performance and reliability What every C/C++ and Fortran developer should know. Learn how Intel has extended the reach of its next-generation tools to help boost performance applications - inlcuding clusters. http://p.sf.net/sfu/intel-dev2devmay ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Gambas 3 first release candidate
2011/5/21 Benoît Minisini : > Hi Gambas fellows, > > The Gambas 3 RC1 source package is available for download now on the website! > > - Who said "already" ? > > The aim of this first release candidate is ensuring that Gambas 3 will be > compiled and packaged correctly on the most possible distributions. > > So, packagers, please raise from your graves and howl under the moon for each > problem you encounter. And report them on the mailing-list of course. > > Some distributions will need a bit of lobbying to ensure that these packages > are put on their main repositories. > > I will create a page on the wiki for each distribution to centralize all the > information, like the one that already exist but are a bit of mess. compiles fine on ubuntu lucid. I have also changed the distro list to match Laurent's archlinux packages, see https://launchpad.net/~ihaywood3/+archive/gambas3/+sourcepub/1741887/+listing-archive-extra Ian -- vRanger cuts backup time in half-while increasing security. With the market-leading solution for virtual backup and recovery, you get blazing-fast, flexible, and affordable data protection. Download your free trial now. http://p.sf.net/sfu/quest-d2dcopy1 ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Gambas 3 first release candidate
On Fri, May 27, 2011 at 12:08 PM, Ian Haywood wrote: > I have also changed the distro list to match Laurent's archlinux packages, I mean the binary *package* list sorry. PS the best way to get into Ubuntu and friends is to get the packages in Debian, then it will filter its way into all the Debian-derived distros. Debian has a standard procedure for submitting new packages, let me know when gambas3 is ready for this. Ian -- vRanger cuts backup time in half-while increasing security. With the market-leading solution for virtual backup and recovery, you get blazing-fast, flexible, and affordable data protection. Download your free trial now. http://p.sf.net/sfu/quest-d2dcopy1 ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] What is faster: OPEN or File.Load?
On Mon, May 30, 2011 at 6:47 PM, Rolf-Werner Eilert wrote: > Well, I want both... First I simply need the complete list of names > (first line only), later I have to look into each file to find data. So > I will use both ways, thank you! Hmm, most of the time will be opening the file, so doing both may be the slowest solution as you are opening twice. If you eventually need to read in all the files, and you have enough RAM, best solution would be to read the lot using File.Load () If you only read the rest of some files, then read the first line using OPEN and keep the file objects so you can read the rest without opening them a second time. Ian -- vRanger cuts backup time in half-while increasing security. With the market-leading solution for virtual backup and recovery, you get blazing-fast, flexible, and affordable data protection. Download your free trial now. http://p.sf.net/sfu/quest-d2dcopy1 ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] odd gb3 issue
On Fri, Jun 3, 2011 at 4:36 PM, Kevin Fishburne wrote: > I inserted a 100 ms delay between packet transmission and this corrected > the issue. Any insight still appreciated, as I may have to differentiate > between LAN clients and WAN clients so the delay is only inserted when > necessary. the first thing you should do is ask yourself again why you can't use TCP, as it includes fairly fancy flow-control algorithms that have been honed over the last 30 years by some very smart engineers. If you want to stick with UDP, one option is instead of a simple 100msec wait, use a timer (I assume these packets are sending updates about game state to the client), for each update, if the last one has been sent less then, say, 50msec ago, then don't send the packet, but if more, then send (without a pause) This means the system updates without any delay, but there is a maximum rate of packets being sent to avoid overloading the recipients buffer. I wouldn't try to have the code figure out WAN versus LAN, there are so many different network configurations out there it is often not meaningful, plus it depends on CPU speed as well as network speed (you're problem is the network is too fast for the CPU) . But maybe let users adjust this timeout value, if they have fast computers and a fast network they may be able to lower it. Ian -- Simplify data backup and recovery for your virtual environment with vRanger. Installation's a snap, and flexible recovery options mean your data is safe, secure and there when you need it. Discover what all the cheering's about. Get your free trial download today. http://p.sf.net/sfu/quest-dev2dev2 ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] arithmetic operations on dates and times
On Thu, Jun 9, 2011 at 12:27 PM, Kevin Fishburne wrote: > How in the world would one do this? It's not really important that the > client know the actual date, but it does need to know the time. The > client should be able to add "Timer" to the game world time so it can > keep an accurate 24-hour time while the player is playing. Basically the > client would receive the game world time upon authentication, then look > at "gameworldtime + Timer" to determine what time of day it was until > the player stopped playing. > > I noticed that adding and subtracting to a date or time prints a > floating point number, but multiplying or dividing complains about > expected datatypes. Any insight or outright solutions would bring light > and dark to the world. :) Best suggestion is to formally convert the Date to a Float using CFloat(...) function. This number is the number of days since 8000BC, time is the fraction part, so .5 for noon exactly, just before midnight will be .99 and so on. So your equation is ( CFloat(base_time) + CFloat(Now) ) * 4 You can then use CDate to turn this nuber back into a real date. BUT my advice would be to send this number, before conversion, down the wire to the client. The client then calculates its own time using server_time + (Timer () / 86400.0) 86,400 is the number of seconds in a day, this is because Timer comes in seconds and we want fraction-of-day to keep in line with everything else. This number can then be converted back to a date and displayed by the client, using the clients own localisation setting (not the servers) so users see the time in their own localisation, but servers and clients don't stuff up if they are in different countries Ian -- EditLive Enterprise is the world's most technically advanced content authoring tool. Experience the power of Track Changes, Inline Image Editing and ensure content is compliant with Accessibility Checking. http://p.sf.net/sfu/ephox-dev2dev ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] gambas2 and gambas3 Natty
On Sat, Jun 25, 2011 at 5:29 AM, M. Cs. wrote: > Hello, > because of a foolish error I cannot use both gambas2 and gambas3 on Natty: > > gambas3-script_2.99.1-1natty0_i386.deb (--install): > trying to overwrite > '/usr/share/icons/hicolor/64x64/mimetypes/application-x-gambasscript.png', > which is also in package gambas2-script 2.21.0-1ubuntu1 > > Because of a stupid icon! > Is it possible to resolve it? glad to know someone uses these packages.:-) The immediate solution is to use dpkg --force-overwrite overwriting is OK it just means your icon will be the new gambas3 icon even for gambas2 files. longer term I'm not sure. The gambas3 icon file can't go anywhere else or have any other name as it is a debian standard. I'll research the options. Ian -- All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity and more. Splunk takes this data and makes sense of it. Business sense. IT sense. Common sense.. http://p.sf.net/sfu/splunk-d2d-c1 ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] gambas2 and gambas3 Natty
On Sat, Jun 25, 2011 at 6:39 PM, M. Cs. wrote: > Yes, I've installed these packages, and had to remove gambas2, > although many of my apps are written in G2. G3 just looks more > complicated, so I'll need some time for the change. > Thanks for your work! you should be able to install G2 and G3 together using the --force-overwrite option, do you try this? Ian -- All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity and more. Splunk takes this data and makes sense of it. Business sense. IT sense. Common sense.. http://p.sf.net/sfu/splunk-d2d-c1 ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] using Sin() to produce a specific range of values
On Sun, Jul 10, 2011 at 3:37 PM, Kevin Fishburne wrote: > I need to use the Sin() function to calculate an output range from an > input range. The advantage of Sin() is that it's not linear; it makes a > nice smooth curve of values sort of like a sound wave in an audio editor. this example project does this using 50 numbers, you can adjust the stepping in the FOR loop to change the number of numbers produced. Ian sin-0.0.1.tar.gz Description: GNU Zip compressed data -- All of the data generated in your IT infrastructure is seriously valuable. Why? It contains a definitive record of application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-d2d-c2___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Multiline RegExp
On Wed, Jul 27, 2011 at 8:34 AM, Bruce Bruen wrote: > regexp only (ever) works on a line by line basis by default yes, but: http://gambasdoc.org/help/comp/gb.pcre/regexp/dotall this makes the . cover newlines, so a regexp can span multiple lines in the string. Ian -- Got Input? Slashdot Needs You. Take our quick survey online. Come on, we don't ask for help often. Plus, you'll get a chance to win $100 to spend on ThinkGeek. http://p.sf.net/sfu/slashdot-survey ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Multiline RegExp
On Wed, Jul 27, 2011 at 5:34 PM, Demosthenes Koptsis wrote: > 2) The Pattern i use is: > (?i)\b[a-z0-9._%\-]+@[a-z0-9._%\-]+\.[A-Z]{2,4}\b > > 3) The result is only one email: > di...@yahoo.gr > > and not the rest of them. as you are only calling regexp once, you will only get one result, you need to set up a While..Wend loop to go through and find one, then use Right$(-(Len(sRegExp.Text)+sRegexp.Offset)) to grab the reminder of the string as search that, until the search fails. This is inefficient (as a new string is created for each search). Benoit, is it possible for Regexp.Exec to have an offset parameter, this would allow more efficient searching loops. It would then be possible to write an iterator to grab all occurances of a regexp, and make it 'easy' like in Ruby/Perl. Ian -- Got Input? Slashdot Needs You. Take our quick survey online. Come on, we don't ask for help often. Plus, you'll get a chance to win $100 to spend on ThinkGeek. http://p.sf.net/sfu/slashdot-survey ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Gambas3 Debian Package
On Wed, Aug 17, 2011 at 9:30 AM, rrivett wrote: > Hi, > > I'm a new Gambas user. Does anyone know if or when Gambas3 will show up > in a Debian package, or if the Debian maintainer is likely to package > one of the release candidates for the Debian Experimental repository > prior to the full release of Gambas3? I have prepared debian packages and put them up for inclusion, currently waiting on a decision by the debian developers to include (well over 2 months, so I will follow up) Ian -- Get a FREE DOWNLOAD! and learn more about uberSVN rich system, user administration capabilities and model configuration. Take the hassle out of deploying and managing Subversion and the tools developers use with it. http://p.sf.net/sfu/wandisco-d2d-2 ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Gambas Cloud
On Sat, Aug 27, 2011 at 10:16 PM, charlesg wrote: > > > Andrea Bertini wrote: >> >> Gui-frontend on desktop made with Gambas, database sqlite on the cloud: >> is it actually possible? not really, as SQLite is not designed for use across the network. MySQL/PostgreSQL "clouds" would work just fine. If you wanted to go "serious cloud" you could run Gambas inside an Amazon EC2 instance and access via VNC or X. You could use SQLite in this situation. Ian -- EMC VNX: the world's simplest storage, starting under $10K The only unified storage solution that offers unified management Up to 160% more powerful than alternatives and 25% more efficient. Guaranteed. http://p.sf.net/sfu/emc-vnx-dev2dev ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Gambas app calling a PERL Script which calls a program (rtmpdump)
On Fri, Sep 2, 2011 at 4:43 PM, John Rose wrote: > get_iplayer is a very complex PERL script which I do NOT want to amend. > get_iplayer involves calling rtmpdump. rtmpdump can be executed in a > Gnome Terminal. I do not even know what language rtmpdump is written in. I wonder if the script is expecting user input such as a password, this would cause it to freeze from within gambas as no input will ever come Another possiblity is it produces heaps and heaps of output that can't fit into the sOutput buffer, again programme becomes blocked because it can't write. Do you need sOutput? what happens if you run without this, just a plain EXEC? In this case you might see errors or something come up in the gambas terminal window which goves you a clue as to what's going on. the other thing to do (which you may have already done of course) is to run the exact command that gambas EXEC does in a gnome terminal, in the same current directory as your gambas programme would be in, and see what happens. Ian -- Special Offer -- Download ArcSight Logger for FREE! Finally, a world-class log management solution at an even better price-free! And you'll get a free "Love Thy Logs" t-shirt when you download Logger. Secure your free ArcSight Logger TODAY! http://p.sf.net/sfu/arcsisghtdev2dev ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] gambas3 and the hidden .src
On Wed, Sep 7, 2011 at 6:37 AM, Karl Reinl wrote: > Salut, > > now I work more and more with gambas3, and I found out, in daily work > the hidden .src is really .."now it's time for the sh.. or f... word". > > I don't remember if there was/is a reason to hide the source code, but > now I know it sucks, that it is hidden. > > What does the community think about that? I'd second this. Yes .src makes no difference for the GUI IDE, but src with no dot would also work just as well. The only point of the dot is it hides the directory from standard UNIX tools such as ls and grep. Maybe I'm just a command-line diehard, but I *like* using those tools and so I agree with Karl. Also it is more "standard" as all other languages have their src directory without a dot. Ian -- Malware Security Report: Protecting Your Business, Customers, and the Bottom Line. Protect your business and customers by understanding the threat from malware and how it can impact your online business. http://www.accelacomm.com/jaw/sfnl/114/51427462/ ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Release of Gambas 3 RC3
On 04/09/11 20:18, Laurent Carlier wrote: > Le Samedi 3 Septembre 2011 19:18:48, Benoît Minisini a écrit : >>> Hi, >>> >>> So, please report!!! >>> >>> Best regards, >> >> Here is the wiki page to edit for information about Gambas binary packages. >> >> http://gambasdoc.org/help/doc/package > > Archlinux packages pushed to the repos Ubuntu packages at https://launchpad.net/~ihaywood3/+archive/gambas3 Ian signature.asc Description: OpenPGP digital signature -- Using storage to extend the benefits of virtualization and iSCSI Virtualization increases hardware utilization and delivers a new level of agility. Learn what those decisions are and how to modernize your storage and backup environments for virtualization. http://www.accelacomm.com/jaw/sfnl/114/51434361/___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Getting access to popup children of datebox
On Mon, Sep 12, 2011 at 11:05 PM, richard terry wrote: > I notice that the events on the database apply to the main control - clicking > on the popup calander or time list dosn't have any obvious events. > > Anway to gain access to these??? richard, you and I work on the same project and *I* can't work out what you mean! do you mean in selector widgets you can't trap events on the pooped up calendars or time selectors? There probably isn't a way do this directly, but I would have thought you could get an event when the value of the event changes, which should be enough. or maybe it only fires when the user closes the calendar/time control: that's a problem for our project and probably means we can't use a popup calendar after all. Ian -- Doing More with Less: The Next Generation Virtual Desktop What are the key obstacles that have prevented many mid-market businesses from deploying virtual desktops? How do next-generation virtual desktops provide companies an easier-to-deploy, easier-to-manage and more affordable virtual desktop model.http://www.accelacomm.com/jaw/sfnl/114/51426474/ ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Release of Gambas 3 RC3. But I have a dream....
On Sun, Sep 18, 2011 at 3:34 AM, Ru Vuott wrote: >> The reopening of the same file should be checked and >> confirmed (you know it), because the opening could provide a >> "different" file descriptor from fd of ALSA; if instead it >> provides the same fd, then the program'ld enter into >> competition with ALSA. not sure that this matters: if you open the file under /proc it will link to the same underlying structure in kernelspace and ALSA won't know the difference. Maybe give it a try and if it doesn't work then post code to the list. Ian -- BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA http://p.sf.net/sfu/rim-devcon-copy2 ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Release of Gambas 3 RC3. But I have a dream....
On Sun, Sep 18, 2011 at 8:56 PM, Ru Vuott wrote: > Hello, > > thank you for your statement. > hfile = OPEN "/proc/self/fd/num" for Read Watch > > Where " num " is a number. Well, I tried the little program changing the > number "num": > first with zero, then with 1, then with 2, and so on... until approximately > 60. why wouldn't you use the fd number returned from the ALSA library: isn't that the whole point? Ian -- BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA http://p.sf.net/sfu/rim-devcon-copy2 ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] repository gambas 3 for ubuntu
On Sat, Oct 15, 2011 at 4:00 PM, Arnezt He wrote: > Is there any repository of gambas3 for ubuntu 11.04? Thank you for the > response. https://launchpad.net/~ihaywood3/+archive/gambas3 -- All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity and more. Splunk takes this data and makes sense of it. Business sense. IT sense. Common sense. http://p.sf.net/sfu/splunk-d2d-oct ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] Editor 'Split' function is reversed
Greetings, In the code editor, if you select on 'right click' Advanced - View - Horizontal Split : It splits vertically Advanced - View - Vertical Split : It splits horizontally [System] OperatingSystem=Linux Kernel=2.6.35-32-generic Architecture=i686 Memory=3609284 kB DistributionVendor=Ubuntu DistributionRelease="Ubuntu 10.10" Desktop=Gnome [Gambas 2] Version=2.21.0 Path=/usr/bin/gbx2 [Gambas 3] Version=2.99.5 Path=/usr/local/bin/gbx3 [Libraries] Qt4=libQtCore.so.4.7.0 GTK+=libgtk-x11-2.0.so.0.2200.0 Revision (r4222) Regards, Ian Roper. Perth Western Australia. -- Try before you buy = See our experts in action! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-dev2 ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] Code Folding Issue when used with 'Format page'
Greetings, I have found that if the last routine in the editor code display is 'folded' and you select the format option from a right click in the editor (or Ctl-Alt-F), then the last routine is duplicated. I have had this confirmed by another user from the Gambas forum that I belong to, so suspect it is not a 'my machine' problem. No project code supplied as this bug would be common to any project. [System] OperatingSystem=Linux Kernel=2.6.35-32-generic Architecture=i686 Memory=3609284 kB DistributionVendor=Ubuntu DistributionRelease="Ubuntu 10.10" Desktop=Gnome [Gambas 2] Version=2.21.0 Path=/usr/bin/gbx2 [Gambas 3] Version=2.99.5 Path=/usr/local/bin/gbx3 [Libraries] Qt4=libQtCore.so.4.7.0 GTK+=libgtk-x11-2.0.so.0.2200.0 Revision (r4222) Regards, Ian Roper. Perth Western Australia. -- Try before you buy = See our experts in action! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-dev2 ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] Issues with 'double click' & Keypress events not working on some controls.
Greetings, I understand that this may be a GTK / QT issue but would like to understand if there are any 'work around' that I could use. Control - Date Chooser. Control - Folder Chooser. Note # With folder chooser, a 'slow' double click allows you to edit the folder name so apparently the control is capturing the event but not passing to the Gambas event queue ( which makes sense) My requirement: I was trying to use double click or a key press to select a control item ie: to return the name of a folder or a specific date as required. Project example attached. Project was created as a 'Graphical application' project. [System] OperatingSystem=Linux Kernel=2.6.35-32-generic Architecture=i686 Memory=3609284 kB DistributionVendor=Ubuntu DistributionRelease="Ubuntu 10.10" Desktop=Gnome [Gambas 2] Version=2.21.0 Path=/usr/bin/gbx2 [Gambas 3] Version=2.99.5 Path=/usr/local/bin/gbx3 [Libraries] Qt4=libQtCore.so.4.7.0 GTK+=libgtk-x11-2.0.so.0.2200.0 Revision (r4222) Regards, Ian Roper. Perth Western Australia. DoubleClickIssue.tar.gz Description: application/compressed-tar -- Try before you buy = See our experts in action! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-dev2___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Editor 'Split' function is reversed
I was looking at this yesterday and the 'penny dropped' It's a matter of interpretation of the 'what you would expect to see' from the menu outcome. I expected to the see the 'divider' as being either horizontal or vertical *sigh* The outcome of course is that the layout of the divided screens is as the menu options says. ;) so it's not an error. Regards, Ian Roper. On Fri, 2012-01-27 at 13:08 +0800, Ian Roper wrote: > Greetings, > In the code editor, if you select on 'right click' > > Advanced - View - Horizontal Split : It splits vertically > Advanced - View - Vertical Split : It splits horizontally > > > [System] > OperatingSystem=Linux > Kernel=2.6.35-32-generic > Architecture=i686 > Memory=3609284 kB > DistributionVendor=Ubuntu > DistributionRelease="Ubuntu 10.10" > Desktop=Gnome > > [Gambas 2] > Version=2.21.0 > Path=/usr/bin/gbx2 > > [Gambas 3] > Version=2.99.5 > Path=/usr/local/bin/gbx3 > > [Libraries] > Qt4=libQtCore.so.4.7.0 > GTK+=libgtk-x11-2.0.so.0.2200.0 > > Revision (r4222) > > Regards, > Ian Roper. > Perth Western Australia. > > > -- > Try before you buy = See our experts in action! > The most comprehensive online learning library for Microsoft developers > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > Metro Style Apps, more. Free future releases when you subscribe now! > http://p.sf.net/sfu/learndevnow-dev2 > ___ > Gambas-user mailing list > Gambas-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Sent from Ubuntu -- Try before you buy = See our experts in action! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-dev2 ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] Editor Control (gb.qt4.ext) - Some questions.
In the Editor control from gb.qt4.ext # Context When reviewing text read from a file in an Editor Control. # Highlighting When MyEditorControl.Highlight attribute is set to 'Normal', the 'end-of-line' ( gb.crlf ) character is displayed as a musical note symbol ? I have tried various fonts but the symbol is the same for each font. If you use another highlight value ( Gambas, SQL...) then the symbol is NOT displayed. Q: Is there any way to disable this symbol displaying in 'Normal' mode ? # Select All When you call the editor function to MyEditorControl.SelectAll in code, it selects all the text lines but dose not highlight the code. All the text is selected and you can copy to clipboard and paste as required. If you do this manually by using the mouse - this works ok - all text is highlighted. If you use the shortcut keys Ctrl-A - this works ok- all text is highlighted. Q: Is there a parameter I can set to highlight all the text when 'MyEditorControl.SelectAll' is actioned ? # Wordwrap There is no parameter I can set to 'word-wrap' text if there is no embedded 'end-of-line' character. Q: Is it possible to add this functionality as a standard control parameter ? # LineNumbering The MyEditorControl.ShowLineNumbers functionality for Editor controls cannot be accessed ( Read Only) In the context Help is says: "Set this flag to display line numbers" but it is read-only. Q: How can you set this flag ? Q: Is it possible to be able to set this to True/False to show line numbers in the control ? Regards, Ian Roper Perth - Western Australia. -- Try before you buy = See our experts in action! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-dev2 ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] gambas3 -V
Running gambas3 -V produces the result below I'm on Kubuntu 15.04 - Is this specific to this distro or small bug ? ian@ian-Kubuntu:~$ gambas3 -V 3.7.90 kf5.kiconthemes: "Theme tree: (Oxygen)" <---<<<<<< Running this test produced the expected results. ian@ian-Kubuntu:~$ gbw3 -V 3.4.0 (on PPA daily updates) Cheers, Ian. -- Don't Limit Your Business. Reach for the Cloud. GigeNET's Cloud Solutions provide you with the tools and support that you need to offload your IT needs and focus on growing your business. Configured For All Businesses. Start Your Cloud Today. https://www.gigenetcloud.com/ ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] The interview on FLOSS
On Thu, Sep 10, 2015 at 12:55 AM, Benoît Minisini wrote: > I have been interviewed by Randall Schwartz and Simon Phipps on the > FLOSS weekly show on twit.tv. You can show the interview at: > > https://twit.tv/shows/floss-weekly/episodes/353 > > If you watch it, you will probably notice that I will never become an > english teacher. Your English was pretty easy to understand FYI "autodidact" *is* an English word, evidently it has the same meaning as French (your use of it was correct in context) Ian -- ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] The interview on FLOSS
On Sat, Sep 19, 2015 at 11:21 PM, Ru Vuott wrote: >> "autodidact" *is* an English word, > > ..that doesn't come from english sure, can you think of a word that does? -- ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] running IDE with Qt5
is there a way to run the IDE with Qt5 only (not Qt4 at all) The reason is Qt4 webkit is getting pulled out of Debian, so we are not allowed to depend on it anymore. Ian -- Go from Idea to Many App Stores Faster with Intel(R) XDK Give your users amazing mobile app experiences with Intel(R) XDK. Use one codebase in this all-in-one HTML5 development environment. Design, debug & build mobile apps & 2D/3D high-impact games for multiple OSs. http://pubads.g.doubleclick.net/gampad/clk?id=254741911&iu=/4140 ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] running IDE with Qt5
On Fri, Dec 4, 2015 at 1:10 AM, Benoît Minisini wrote: > Le 03/12/2015 11:47, Ian Haywood a écrit : >> is there a way to run the IDE with Qt5 only (not Qt4 at all) >> The reason is Qt4 webkit is getting pulled out of Debian, so we are >> not allowed to depend on it anymore. >> >> Ian >> > > The algorithm is the following: > > if GB_GUI is "QT4", then gb.qt4 is used. > if GB_GUI is "QT5", then gb.qt5 is used. > otherwise, >if KDE_FULL_SESSION is "true", then > if KDE_SESSION_VERSION is "4", then gb.qt4 is used. > if KDE_SESSION_VERSION is "5", then gb.qt5 is used. > othewise, gb.qt5 is used. I thought so, but I am finding that on 3.8.3 at least, if gb.qt4 and gb.qt5 are both present, gb.qt4 is used (which then fails, as no gb.q4.webkit is present) Removing gb.qt4 from the system is the solution: the IDE then has nbo choice but to run successfully with gb.qt5 Ian -- Go from Idea to Many App Stores Faster with Intel(R) XDK Give your users amazing mobile app experiences with Intel(R) XDK. Use one codebase in this all-in-one HTML5 development environment. Design, debug & build mobile apps & 2D/3D high-impact games for multiple OSs. http://pubads.g.doubleclick.net/gampad/clk?id=254741911&iu=/4140 ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] running IDE with Qt5
On Sun, Dec 6, 2015 at 11:03 AM, PICCORO McKAY Lenz wrote: > set a env variable to QT5 and that's all, of course, all the > components in qt5 framework must be set, packages made for some > disributions may have some misc but works in general lines when packaging for a distro the interpreter should work "out of the box", users should be able to type "gambas3" or launch form the menus, not "GB_GUI=QT5 gambas3" One solution is to have a wrapper shell script that sets the variable Easier IMHO is to patch main/lib/gui.qt/main.c to prefer qt5 over qt4 which is probably what Debian will end up doing. Ian -- Go from Idea to Many App Stores Faster with Intel(R) XDK Give your users amazing mobile app experiences with Intel(R) XDK. Use one codebase in this all-in-one HTML5 development environment. Design, debug & build mobile apps & 2D/3D high-impact games for multiple OSs. http://pubads.g.doubleclick.net/gampad/clk?id=254741911&iu=/4140 ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] [Gambas Bug Tracker] Bug #835: gambas3 doesn't build with llvm > 3.5
On Tue, Nov 17, 2015 at 5:32 AM, wrote: > http://gambaswiki.org/bugtracker/edit?object=BUG.835&from=L21haW4- > > Comment #10 by Gianfranco COSTAMAGNA: > I'm not the debian gambas package maintainer, but I guess I'll ping the > maintainers or upload in a delayed queue the fixes. > > thanks so far for the support! One of the issues is, if not you, then gambas doesn't really have a Debian "maintainer". I'm happy to help, but I'm wary of doing a lot of work without a debian developer active and interested. in the past I have had contributions sitting in alioth git waiting for weeks/months to be uploaded. (unfortunately debian does not have an equivalent to "launchpad" for making third-party .debs available) Ian -- Site24x7 APM Insight: Get Deep Visibility into Application Performance APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month Monitor end-to-end web transactions and take corrective actions now Troubleshoot faster and improve end-user experience. Signup Now! http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140 ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] [Gambas Bug Tracker] Bug #880: gambas-gb-pdf will not install
On Sat, Dec 26, 2015 at 9:44 AM, wrote: > http://gambaswiki.org/bugtracker/edit?object=BUG.880&from=L21haW4- > > > Description > --- > > Gambas 3.8.4 running under Kubuntu 14.04 LTS. the key question is where you got that 3.8.4 .deb from (it won't have been form the standard 14.04 repositories) Ian -- Site24x7 APM Insight: Get Deep Visibility into Application Performance APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month Monitor end-to-end web transactions and take corrective actions now Troubleshoot faster and improve end-user experience. Signup Now! http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140 ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Debian problem step 3.5.4 to 3.8.4
On Tue, Jan 19, 2016 at 8:45 PM, Gianluigi wrote: > Hello to all, > a friend of ours of Gambas-it forum, runs Debian and updated from version > 3.5.4 to 3.8.4. > He can no longer use the old qt4 projects. > He tried compile, compile all, refresh, reload … but nothing. > Changing with gb.gui.qt in some projects the Fmain.class disappears and in > the other Fmain.form. > On Update all forms he gets this message: “Unable to update all forms! Too > many arguments. ProjectUpdateAllForms.5941”. Is he/she using TextEdit? This is the problem I have run into: Debian no longer supports Qt4, and Qt5 on Gambas has no TextEdit, so my project doesn't load. I would like to enter in another plea for TextEdit to be supported on Qt5. Previous discussions have been around a Gambas-native rich text editor: agree that's a lot of work, but also unnecessary: Qt5 has a rich text editor (see http://doc.qt.io/qt-5/richtext.html) I don't see why that cannot be used. I'd have a crack at doing it myself but I have limited time and haven't used C++/Qt for many years so it would take some time to relearn. Would be happy to pay if there are others able to here. ian -- Site24x7 APM Insight: Get Deep Visibility into Application Performance APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month Monitor end-to-end web transactions and take corrective actions now Troubleshoot faster and improve end-user experience. Signup Now! http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140 ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] TextEdit on Qt5
This was a lot simpler than I thought. I enclose a working patch. Two outstanding issues: - the TextEdit has a grey background (the system default) and ignores setting .Background = Color.White - the documentation doesn't appear in the IDE (because it's looking for qt4.TextEdit, whereas the docs wil lbe under qt5.ext.TextEdit) I suspect I'm missing something (i.e. if it's so easy presumably Benoit had a good reason for not doing it at the start) Anyway I hope this will kick the work along... as I said several of us *really need* TextEdit! Ian diff --git a/gb.qt4/src/main.cpp b/gb.qt4/src/main.cpp index 543dc7c..b3bfec6 100644 --- a/gb.qt4/src/main.cpp +++ b/gb.qt4/src/main.cpp @@ -99,6 +99,8 @@ #include #ifndef QT5 #include "CEmbedder.h" +#else +#include "CTextEdit.h" #endif #include "desktop.h" @@ -147,6 +149,9 @@ GB_CLASS CLASS_ScrollView; GB_CLASS CLASS_Image; GB_CLASS CLASS_SvgImage; GB_CLASS CLASS_TextArea; +#ifdef QT5 +GB_CLASS CLASS_TextEdit; +#endif static bool in_event_loop = false; static int _no_destroy = 0; @@ -1298,6 +1303,9 @@ GB_DESC *GB_CLASSES[] EXPORT = CWatcherDesc, PrinterDesc, SvgImageDesc, +#ifdef QT5 + CTextEditSelectionDesc, CTextEditFormatDesc, CTextEditDesc, +#endif NULL }; @@ -1406,7 +1414,9 @@ int EXPORT GB_INIT(void) CLASS_Image = GB.FindClass("Image"); CLASS_SvgImage = GB.FindClass("SvgImage"); CLASS_TextArea = GB.FindClass("TextArea"); - +#ifdef QT5 + CLASS_TextEdit = GB.FindClass("TextEdit"); +#endif QT_InitEventLoop(); #ifdef OS_CYGWIN diff --git a/gb.qt5/src/CTextEdit.cpp b/gb.qt5/src/CTextEdit.cpp new file mode 100644 index 000..bb0bc20 --- /dev/null +++ b/gb.qt5/src/CTextEdit.cpp @@ -0,0 +1,728 @@ +/*** + + CTextEdit.cpp + + (c) 2000-2013 Benoît Minisini + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, + MA 02110-1301, USA. + +***/ + +#define __CTEXTEDIT_CPP + +#include +#include +#include +#include +#include +#include +#include + +#include "gambas.h" +#include "main.h" +#include "CFont.h" +#include "CConst.h" +#include "CTextEdit.h" + + +DECLARE_EVENT(EVENT_Change); +DECLARE_EVENT(EVENT_Cursor); + +#if 0 +static void to_pos(Q3TextEdit *wid, int par, int car, int *pos) +{ + int i, l; + int p = 0; + + for (i = 0; i < par; i++) + { +l = wid->paragraphLength(i); +if (l < 0) + break; +p += l + 1; + } + + *pos = p + car; +} + + +static void from_pos(Q3TextEdit *wid, int pos, int *par, int *car) +{ + int i; + int l; + + for (i = 0; i <= wid->paragraphs(); i++) + { +l = wid->paragraphLength(i); +if (l < 0) +{ + pos = wid->length(); + i--; + break; +} +if (pos <= l) + break; +pos -= l + 1; + } + + *par = i; + *car = pos; +} + + +static void look_pos(Q3TextEdit *wid, int *line, int *col) +{ + if (*line == -1) +*line = wid->paragraphs(); + + if (*col == -1) +*col = wid->paragraphLength(*line); +} + + +static void get_selection(Q3TextEdit *wid, int *start, int *length) +{ + int pStart, iStart, pEnd, iEnd; + int posEnd; + + wid->getSelection(&pStart, &iStart, &pEnd, &iEnd); + + if (pStart < 0) + { +wid->getCursorPosition(&pStart, &iStart); +to_pos(wid, pStart, iStart, start); +*length = 0; +return; + } + + to_pos(wid, pStart, iStart, start); + to_pos(wid, pEnd, iEnd, &posEnd); + + *length = posEnd - *start; +} +#endif + +static int get_length(void *_object) +{ + if (THIS->length < 0) + { + QTextBlock block = WIDGET->document()->begin(); + int len = 0; + + while (block.isValid()) + { + len += block.length(); + block = block.next(); + } + + THIS->length = len - 1; + } + + return THIS->length; +} + +static int get_column(void *_object) +{ + QTextCursor cursor = WIDGET->textCursor(); +
Re: [Gambas-user] TextEdit on Qt5
Thanks heaps for doing this I have found one problem that blocks loading the qt5 component at all /usr/bin/gbi3: symbol lookup error: /usr/lib/gambas3/gb.qt5.so: undefined symbol: _ZTV14FixBreezeStyle On Sun, Jan 24, 2016 at 12:23 PM, Benoît Minisini wrote: > Le 24/01/2016 02:18, Moviga Technologies a écrit : >> >> >> Making all in ext >> make[5]: Entering directory >> '/home/jornmo/Sync/Gambaspakker/Gambas-SVN/src/trunk/gb.qt5/src/ext' >> CXX gb_qt5_ext_la-main.lo >> /usr/lib/qt/bin/moc -o CTextEdit_moc.cpp CTextEdit.h >> CXX gb_qt5_ext_la-CTextEdit_moc.lo >> CXX gb_qt5_ext_la-CTextEdit.lo >> CXXLDgb.qt5.ext.la >> make[5]: *** No rule to make target 'gb.qt5.ext.component', needed by >> 'all-am'. Stop. >> make[5]: Leaving directory >> '/home/jornmo/Sync/Gambaspakker/Gambas-SVN/src/trunk/gb.qt5/src/ext' >> Makefile:1330: recipe for target 'all-recursive' failed >> make[4]: *** [all-recursive] Error 1 >> make[4]: Leaving directory >> '/home/jornmo/Sync/Gambaspakker/Gambas-SVN/src/trunk/gb.qt5/src' >> Makefile:448: recipe for target 'all-recursive' failed >> make[3]: *** [all-recursive] Error 1 >> make[3]: Leaving directory >> '/home/jornmo/Sync/Gambaspakker/Gambas-SVN/src/trunk/gb.qt5' >> Makefile:380: recipe for target 'all' failed >> make[2]: *** [all] Error 2 >> make[2]: Leaving directory >> '/home/jornmo/Sync/Gambaspakker/Gambas-SVN/src/trunk/gb.qt5' >> Makefile:438: recipe for target 'all-recursive' failed >> make[1]: *** [all-recursive] Error 1 >> make[1]: Leaving directory >> '/home/jornmo/Sync/Gambaspakker/Gambas-SVN/src/trunk' >> Makefile:379: recipe for target 'all' failed >> make: *** [all] Error 2 >> >> > > Oops, fixed in revision #7585. > > -- > Benoît Minisini > > -- > Site24x7 APM Insight: Get Deep Visibility into Application Performance > APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month > Monitor end-to-end web transactions and take corrective actions now > Troubleshoot faster and improve end-user experience. Signup Now! > http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140 > ___ > Gambas-user mailing list > Gambas-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -- Site24x7 APM Insight: Get Deep Visibility into Application Performance APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month Monitor end-to-end web transactions and take corrective actions now Troubleshoot faster and improve end-user experience. Signup Now! http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140 ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] qt5
On Mon, May 2, 2016 at 1:11 AM, Benoît Minisini wrote: > Le 01/05/2016 16:01, Charlie a écrit : >> Thanks for the reply Benoît. Ubuntu 16.04 has Gambas 3.8.4 which I also use >> on Linux Mint 17.3 Cinnamon. >> Here is the Gambas Farm error I get. >> gambas1.png <http://gambas.8142.n7.nabble.com/file/n56111/gambas1.png> >> Here are the 'System information' details for both operating systems. >> mint17.txt <http://gambas.8142.n7.nabble.com/file/n56111/mint17.txt> >> ubuntu16.txt <http://gambas.8142.n7.nabble.com/file/n56111/ubuntu16.txt> >> Note that for future editions the English is 'System information' not >> 'System information*s*'. >> > > So I guess that (again) Debian/Ubuntu Gambas packages were made > incorrectly... I confess I've given up trying to find a 'correct' solution that covers all cases. The problem quite complicated. Gambas looks for Qt4 and Qt5. If both are found, Qt4 is loaded. However, Debian does not have WebKit for Qt4 (it was taken out because they couldn't keep it secure, and wanted to concentrate on Qt5-WebKit, I believe) Consequently, the IDE and many other problems will crash (because they load Qt4 but then can't find WebKit). So, I tried making it a Conflicts: if you try to install the IDE, it tries to remove Qt4. which causes more problems as noted above. The other option is to patch Gambas on Debian so it preferentially loads Qt5 (a bit of work). That will get the IDE working, but many other programs won't run (because Qt5 doesn't quite have the stability of Qt4, at least last time I checked) Sadly, my recommendation to all (our) users has been stick to Mint/Ubuntu and the PPAs for now. Ian -- What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic patterns at an interface-level. Reveals which users, apps, and protocols are consuming the most bandwidth. Provides multi-vendor support for NetFlow, J-Flow, sFlow and other flows. Make informed decisions using capacity planning reports. https://ad.doubleclick.net/ddm/clk/305295220;132659582;e ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] qt5
On Wed, Jun 15, 2016 at 5:40 AM, Benoît Minisini wrote: > Le 14/06/2016 13:21, Ian Haywood a écrit : >> >> The problem quite complicated. Gambas looks for Qt4 and Qt5. If both are >> found, >> Qt4 is loaded. > > No, if Qt5 and Qt4 are present, Qt5 is used. > > The choice between both is implemented in the gb.gui.qt component. So if > you have ideas about how to enhance the algorithm, tell me! From the 3.8.4 sources: main/lib/gui.qt/main.c I interperse my "translation", tell me where I'm wrong 59 if (use == USE_NOTHING) so GB_GUI hasn't been set 60 { 61 use = USE_GB_QT4; try Qt4 63 env = getenv("KDE_FULL_SESSION"); 64 65 if (env && !strcmp(env, "true")) 66 { 67 env = getenv("KDE_SESSION_VERSION"); 68 if (env) 69 { 70 if (strcmp(env, "4") == 0) 71 use = USE_GB_QT4; 72 else if (strcmp(env, "5") == 0) 73 use = USE_GB_QT5; 74 } 75 } 76 } look for some KDE variables (which won't be set at all on non-KDE systems) 78 switch (use) 79 { 80 case USE_GB_QT4: comp = "gb.qt4"; break; 81 case USE_GB_QT5: comp = "gb.qt5"; break; 82 default: comp = "gb.qt5"; break; 83 } turn setting constant into a string (remember we have set to "USE_GB_QT4" above so "gb.qt4" will always be selected here) 85 if (GB.Component.Load(comp)) try the first one 86 { 87 comp2 = use == USE_GB_QT5 ? "gb.qt4" : "gb.qt5"; that didn't work, try the other 89 if (GB.Component.Load(comp2)) 90 { fail if that doesn't work either. 91 fprintf(stderr, "gb.gui.qt: error: unable to find any QT component\n"); 92 exit(1); 93 } my patch is very, very simple: line 61 becomes "use = USE_GB_QT5;", and so Qt5 is loaded first. Ian -- What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic patterns at an interface-level. Reveals which users, apps, and protocols are consuming the most bandwidth. Provides multi-vendor support for NetFlow, J-Flow, sFlow and other flows. Make informed decisions using capacity planning reports. http://pubads.g.doubleclick.net/gampad/clk?id=1444514421&iu=/41014381 ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] qt5
On Wed, Jun 15, 2016 at 4:54 AM, Dimitris Anogiatis wrote: > Are the qt4 webkit and qt5 webkit too different that we can't use a symlink > for qt4's webkit to point to qt5's webkit? no they are too different: qt5 webkit won't load with Qt4. > That way we could (theoretically) bridge the gap temporarily until qt5 > becomes more stable. Qt5 is pretty stable. The only real problem AFAICT is TextEdit isn't available in Qt5 in 3.8.4 This means you can't have TextEdit and WebKit in the same program at the same time. This issue is fixed in svn I believe. Ian -- What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic patterns at an interface-level. Reveals which users, apps, and protocols are consuming the most bandwidth. Provides multi-vendor support for NetFlow, J-Flow, sFlow and other flows. Make informed decisions using capacity planning reports. http://pubads.g.doubleclick.net/gampad/clk?id=1444514421&iu=/41014381 ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] qt5
On Thu, Jun 16, 2016 at 7:22 PM, Benoît Minisini wrote: > But putting gb.qt5 instead does not logically solve the problem, as we > could imagine a distribution that provides qt4, qt4 webkit, qt5 and not > qt5 webkit (as now webkit as been dropped by qt5)... Weird. That's a problem. Will Qt5 have a HTML display widget of any sort? Ian -- What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic patterns at an interface-level. Reveals which users, apps, and protocols are consuming the most bandwidth. Provides multi-vendor support for NetFlow, J-Flow, sFlow and other flows. Make informed decisions using capacity planning reports. http://pubads.g.doubleclick.net/gampad/clk?id=1444514421&iu=/41014381 ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] Gambas Comparison constant Gb.Like - How does it work ?
Greetings, Could you please explain the way in which the comparison constant 'gb.like' works. I tried to use this to search a string array. TmpArry.Add("Something") TmpArry.Add("Another Thing") If TmpArry.Find("some",gb.like) > -1 then {/this does not work}// / I found the behavior was the same as gb.IgnoreCase. it will return a value of the Array Index if you do this If TmpArry.Find("something",gb.like) > -1 then {/this does work !}// / I made the assumption that it would search from left to right starting at the 'Start' parameter I tried this: If TmpArry.Find("some",gb.like,0) > -1 then {/this does not work}// / If TmpArry.Find("some",gb.like,1) > -1 then {/this does not work}// /There was no difference in the results. Many thanks. Ian // -- Get 100% visibility into Java/.NET code with AppDynamics Lite! It's a free troubleshooting tool designed for production. Get down to code-level detail for bottlenecks, with <2% overhead. Download for free and get started troubleshooting in minutes. http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] Fwd: Specifications for Gambas 3
On 23/10/13 23:15, Kende Krisztián wrote: > Hi > > I have read the "How To Package Gambas" document > (http://www.gambasdoc.org/help/howto/package?v3#t2) and some things I > do not understand: > > The runtime package contain the gb.gui component, but gambas3-runtime > is not depend from gambas3-gb-gtk or gambas3-gb-qt4. Gb.gui does not > work without them. [WARNING: Debian packager discussion coming up, look away if you are easily offended] it is possible to use | in the Depends: field to make a package depend on one OR another package, so you could do "gambas3-gb-gtk | gambas3-gb-qt4" > > Gambas3-gb-desktop-gnome package is depend from gambas3-gb-desktop, but > vice versa is not true (in other words, the previous contents are not > part of the latter). If use gb.desktop component on GNOME desktop, the > following error message comes up: Cannot load component > 'gb.desktop.gnome': cannot find component is there a "gambas3-gb-desktop-kde"? I didn't think so, if but there is you can use the same trick If not I'd pick some kde package that represents the desktop as use this as the other "half" of the | clause, so you get the gambas3-gb-desktop-gnome if KDE isn't installed. Ian signature.asc Description: PGP signature -- October Webinars: Code for Performance Free Intel webinars can help you accelerate application performance. Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from the latest Intel processors and coprocessors. See abstracts and register > http://pubads.g.doubleclick.net/gampad/clk?id=60135991&iu=/4140/ostg.clktrk___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] Gambas self-extracting installer (4)
On Sunday, October 27, 2013, Benoit Minisini mailto:gam...@users.sourceforge.net>> wrote: > But I don't think it's a good idea to ask for the root or sudo password > to installed Gambas package, for security reasons (can you really trust > that self-extracting installer?) > > Instead, I think I will just tell the user which packages he must > install himself before being able to complete the installation. An installer without root access doesn't seem that useful IMHO as it would end up just displaying a long list of complex commands to enter into a terminal. Most people using it wouldn't understand the commands (otherwise they wouldn't need the installer) so from a security point of view you gain nothing by making them cut and paste into a terminal window - they still have to trust that you haven't embedded a "rm -f /" in there. I suggest detecting gksu or kdesu on the system and using those, this means your code doesn't have to handle the root password. > Moreover, I will try to provide the installed program with all needed > Gambas components inside. So, provided that the dependencies of these > components are already installed, nothing will need to be installed. If you can automatically install whatever library you might as well install its gambas binding as a package too. > For security reasons, maybe this packager should be able to install the > program locally only. I don't think "installing locally" is a good idea or particularly useful IMHO. In practice you will almost always need root access to install some dependency, so you might as well install the program itself the normal way in /usr/bin while you're at it. Ian -- October Webinars: Code for Performance Free Intel webinars can help you accelerate application performance. Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from the latest Intel processors and coprocessors. See abstracts and register > http://pubads.g.doubleclick.net/gampad/clk?id=60135991&iu=/4140/ostg.clktrk ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] Official release of Gambas 3.5
On 26/10/13 01:37, PICCORO McKAY Lenz wrote: > rejected the petition, there are two main objetives in debian package: > license policy and lintian errors/messages Kendek's changes up to 3.4.2 have been backported into the debian packages [one of the fixes to debian/copyright is to make sure kendek is acknowledged!] The only problem remaining is manpages for gbs3 and gbw3: they exist but are not being installed properly for some reason Ian signature.asc Description: PGP signature -- October Webinars: Code for Performance Free Intel webinars can help you accelerate application performance. Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from the latest Intel processors and coprocessors. See abstracts and register > http://pubads.g.doubleclick.net/gampad/clk?id=60135991&iu=/4140/ostg.clktrk___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] WIP Debian packages of Gambas
On Tue, Oct 29, 2013 at 12:44 AM, PICCORO McKAY Lenz wrote: > From: Ian Haywood > NOW must search and revise ALL files and sure for a right header of > license, and specified in the copyrithg file, this are the most > important task before uploading, if not some debian mantainers see > that and made and wall for uploading I'm reasonably sure the copyright file covers all components not written by Benoit. If you want to go through every file and check, please be my guest :-) Ian -- Android is increasing in popularity, but the open development platform that developers love is also attractive to malware creators. Download this white paper to learn more about secure code signing practices that can help keep Android apps secure. http://pubads.g.doubleclick.net/gampad/clk?id=65839951&iu=/4140/ostg.clktrk ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user