[Gambas-user] Using a socket to download an image. Please Help ^_^

2008-11-30 Thread Robert Moss
I am trying to get an image (or any binary data) downloaded from a website and into a jpg file. I expect I will need to use the Byte[] datatype, but I absolutely can NOT use Callbacks when the data comes in this time. Here is my example: DIM RequestString as string DIM sTotal as string DIM sBuf

[Gambas-user] Regexpr appears not to be working

2008-11-30 Thread John Harrold
Hi all I am experimenting with the PCRE class to understand more about regular expressions and Gambas in general I have created a form with two textboxes, one for text input the other for the regular expression text to test against. There are a number of labels for displaying results returned

Re: [Gambas-user] Using an Image in a PictureBox or help with my issue

2008-11-30 Thread John Harrold
Thanks Benoit, I now understand why there is both picture and image in the picturebox component. Just one thing: would it make things easier for Robert (original poster) if he used gb.gtk rather than gb.qt; I'm not so clear about that. Budgieboy That's 2008/11/29 Benoit Minisini [EMAIL

[Gambas-user] using icons from system theme without specifiying full path

2008-11-30 Thread Joshua Higgins
Hi, I need to use the icons in my gambas program from the current system theme in GTK/Gnome. At the moment I've been specifying the full path e.g. /usr/share/icons/Tango/32x32/apps/gnome-keyring-manager.png But ideally I need to just set gnome-keyring-manager as the image and it picks up the

Re: [Gambas-user] using icons from system theme without specifiying full path

2008-11-30 Thread Joshua Higgins
well I'm making an application launcher. It reads all the .desktop files from under /usr/share/applications and after loads of splitting adds them to a ListView. .desktop file layed out as follows: [Desktop Entry] Type=Application Name=Inkscape Comment=Vector Graphics Editor Exec=inkscape

Re: [Gambas-user] Using a socket to download an image. Please Help ^_^

2008-11-30 Thread Robert Moss
Sorry that's not it, I mis-copied the line, in the actual code it does Mid(sData, p1 + 4) On Sun, Nov 30, 2008 at 2:39 AM, Doriano Blengino [EMAIL PROTECTED] wrote: Robert Moss ha scritto: I am trying to get an image (or any binary data) downloaded from a website and into a jpg file. I

Re: [Gambas-user] Using a socket to download an image. Please Help ^_^

2008-11-30 Thread Robert Moss
The ImgData stops writing when it comes to a byte with value H00 (I believe) although I'm pretty sure it doesn't matter how I write the stream, once it's read as a String, it becomes terminated by any NULL char. So my question is this: How do I read the data from the Socket in binary, write it to

Re: [Gambas-user] Regexpr appears not to be working

2008-11-30 Thread Benoit Minisini
On dimanche 30 novembre 2008, John Harrold wrote: Hi all I am experimenting with the PCRE class to understand more about regular expressions and Gambas in general I have created a form with two textboxes, one for text input the other for the regular expression text to test against. There

Re: [Gambas-user] Using a socket to download an image. Please Help ^_^

2008-11-30 Thread richard terry
On Mon, 1 Dec 2008 06:50:06 am Robert Moss wrote: Robert this may not be much help to you and I'm not sure how related to your problem it is, but just on the off chance. I struggled with saving a picture and retrieving from a postgres field. The code I included worked really well for a long

Re: [Gambas-user] Form does not get focus

2008-11-30 Thread Benoit Minisini
On samedi 29 novembre 2008, moon_walker wrote: Hi Gurus, i have a problem again:-): PUBLIC SUB TableView3_Menu() DIM lform AS Form lform = NEW dataentry(did.Value, fertilizer, tableview3.X, tableview3.Y) lform.showmodal END The resulting form do not get the focus upon the opening IF

Re: [Gambas-user] SetProperty Virtual Object Dynamically

2008-11-30 Thread Benoit Minisini
On mardi 25 novembre 2008, L Jumadi wrote: On samedi 22 novembre 2008, L Jumadi wrote: On vendredi 21 novembre 2008, L Jumadi wrote: I just want to know wheter gambas can set property inside a virtual collection. For Example I try to set Rows.H of a Gridview, I try command

Re: [Gambas-user] To fast do..loops for process management!

2008-11-30 Thread Benoit Minisini
On jeudi 27 novembre 2008, Demosthenes Koptsis wrote: Hi dear list, I write a front-end for mpg123 mp3 console player in gambas2 but i came face to face with a bug and i need your help! i dont know if the bug is due to gambas or my writing code or mpg123 player's. The story is like

[Gambas-user] xslt-tranformation in Gambas 2.9

2008-11-30 Thread Jaap Cramer
Hello I use the xml and XSLT.Transform routines. And they seem not te wokr anymore, from Gambas version 2.9. I saw on the changelog some changes, but I wonder how to use it correct. I want to apply al XSLT tranformation an a XSL sheet. Code that used to work: DIM x_Xslt, x_Q AS NEW

Re: [Gambas-user] Regexpr appears not to be working

2008-11-30 Thread John Harrold
Thanks Benoit Oops! Silly mistake easily done, even more easily overlooked - I must have read that line dozens of times and didn't spot the mistake. Just shows how useful another persons eyes are. Thanks again. Budgieboy 2008/11/30 Benoit Minisini [EMAIL PROTECTED] On dimanche 30 novembre

[Gambas-user] Updating the Xandros repos

2008-11-30 Thread Charles Capaday
Hi, First let me congratulate you on developing an outstanding product and being outstanding in supporting it... Would it be possible to update the Xandros repos to the latest version of gambas, I use it for now to write simple teaching programs for my eight year old boy. I use the EEE PC 900

Re: [Gambas-user] xslt-tranformation in Gambas 2.9

2008-11-30 Thread Jaap Cramer
Hi Benoit. because it is part of a huge program, with a lot of data, I wrote this little app. It's lika a function to determine the amount of verses in a chapter of a biblebook (in this case Jonah). The data is from www.tanach.us, freely available. In previous versions of Gambas this sort

Re: [Gambas-user] xslt-tranformation in Gambas 2.9

2008-11-30 Thread Benoit Minisini
On lundi 1 décembre 2008, Jaap Cramer wrote: Hi Benoit. because it is part of a huge program, with a lot of data, I wrote this little app. It's lika a function to determine the amount of verses in a chapter of a biblebook (in this case Jonah). The data is from www.tanach.us, freely