Re: [Gambas-user] Gambas 3 is out!

2011-12-31 Thread kevinfishburne
Thanks for a great release! Now we must band together to promote it. I've submitted a Slashdot article here: http://slashdot.org/submission/1896270/open-source-ide-gambas-reaches-30 Please vote it up in the Firehose so they'll post it to the front page: http://slashdot.org/firehose Happy New

Re: [Gambas-user] someshort=xy returns Wanted short, got string instead

2010-10-09 Thread kevinfishburne
Benoît Minisini wrote: I can only think of two solutions here. One is to find a way to convert a two-character string to a short as quickly as possible (the subject of the post), and the other is to change the way I'm collecting the data to I have neve seen that mail, Kevin. Did it

[Gambas-user] gb2: having same project open twice and code saving

2010-09-27 Thread kevinfishburne
The project I'm working on has a client module and server module, with shared modules/procedures/variables between the two. The user chooses the mode from a GUI upon running it. Consequently I have it running in client mode on bare metal and server mode in a virtual machine with a separate IP

Re: [Gambas-user] someshort=xy returns Wanted short, got string instead

2010-09-15 Thread kevinfishburne
tobias-47 wrote: i forgot the asc() functions, of course: PUBLIC FUNCTION GetShort(sWord AS String) AS Short RETURN Asc(Mid$(sWord, 1, 1)) * 256 + Asc(Mid$(sWord, 2, 1)) END or alternatively, you can assign the positions in the asc() function, like RETURN Asc(sWord, 1) *

Re: [Gambas-user] gb.image: image alpha channel accessibility

2010-08-22 Thread kevinfishburne
kevinfishburne wrote: It still won't display an image. I'd like to copy/paste the code for Image.DrawAlpha from the GAMBAS 3 checkout to the GAMBAS 2 checkout and see if it works under a more stable GAMBAS. Is there anything I should look for other than the obvious (to a non-C programmer

Re: [Gambas-user] gb.image: image alpha channel accessibility

2010-08-20 Thread kevinfishburne
Fabien Bodard-4 wrote: yes, take a look here : http://gambasdoc.org/help/install I just verified that the build dependencies were satisfied and recompiled GAMBAS 3: sudo apt-get install build-essential libffi-dev libbz2-dev libfbclient2 firebird2.1-dev libmysqlclient15-dev unixodbc-dev

Re: [Gambas-user] gb.image: image alpha channel accessibility

2010-08-18 Thread kevinfishburne
Benoît Minisini wrote: I made an Image.DrawAlpha() method for you in revision #3101. Tell me if this is was you need. I couldn't find it in GAMBAS 2 so I built GAMBAS 3. It had the new method, however I was unable to test it because Image.Draw() seemed not to work. Here's the project,

Re: [Gambas-user] gb.image: image alpha channel accessibility

2010-08-12 Thread kevinfishburne
Benoît Minisini wrote: I made an Image.DrawAlpha() method for you in revision #3101. Tell me if this is was you need. Am compiling now and will run test code using the new method to produce tiling with different layers. Thank you so much. I'll post my code when I get a proof-of-concept

Re: [Gambas-user] gb.image: how to keep a rotated image centered

2010-08-11 Thread kevinfishburne
Jussi Lahtinen wrote: There is probably more efficient ways, but quick and dirty... Great minds must think alike. I didn't receive a notification email about your post for some reason, but independently developed the same code almost exactly. Crazy, huh? Your code (and my code) do the

Re: [Gambas-user] gb.image: image alpha channel accessibility

2010-08-11 Thread kevinfishburne
Benoît Minisini wrote: I'm not sure to really understand. Would you make some images for me? It took me a while to hand make this in GIMP, but here's the idea: http://www.eightvirtues.com/misc/alpha_stuff.xcf There are eight tiles that use only alpha (ten if you include fully opaque and

[Gambas-user] gb.image: how to keep a rotated image centered

2010-08-06 Thread kevinfishburne
I'm attempting to rotate an image about its center point, using something like: DIM background AS Image = Image.Load(grass.png) DIM f AS Float FOR f = 0 TO 6.2831853 STEP 0.01 Draw.Begin(DrawingArea) Draw.Image(background.Rotate(f), 0, 0) Draw.End WAIT NEXT The resolution of the

Re: [Gambas-user] 2-2.21.0: CheckBox_Click event raises twice on mouseclick, once on space bar

2010-07-26 Thread kevinfishburne
Benoît Minisini wrote: Please provide your project, or make a little project that reproduces the problem. And tell me if you use GTK+ or QT. http://old.nabble.com/file/p29269448/Test.tar.bz2 Test.tar.bz2 I tried it with both GTK and QT and the problem only occurs in GTK. For the time

Re: [Gambas-user] 2-2.21.0: CheckBox_Click event raises twice on mouseclick, once on space bar

2010-07-26 Thread kevinfishburne
Benoît Minisini wrote: Thanks. That's weird! No problem. Glad to be able to help with a bugfix. I hate bugs. ;) Not really related to the post, but great work on the new 2.x release and I'm looking forward to the first stable 3x release. - Kevin Fishburne, Eight Virtues www:

Re: [Gambas-user] 2-2.21.0: CheckBox_Click event raises twice on mouseclick, once on space bar

2010-07-26 Thread kevinfishburne
Benoît Minisini wrote: OK, this is fixed in revision 3073. I think I should make a 2.21.1 soon... It's funny how people always find boring bugs *just* after the release. :-) Yeah, I only compiled the newest release yesterday, even after reading the changelog, hoping the issue had been

Re: [Gambas-user] 2-2.21.0: CheckBox_Click event raises twice on mouseclick, once on space bar

2010-07-26 Thread kevinfishburne
Benoît Minisini wrote: You enter the event loop once the Main() function is finished. Why do you want to display a form before? It's weird too! I want the form to display as soon as the program is run, basically. I have the Form_Open procedure immediately execute several procedures,

[Gambas-user] Licensing programs created with GAMBAS

2010-05-30 Thread kevinfishburne
I'm working on a GAMBAS program and want to allow it to be distributed freely but not used for commercial purposes without paying a licensing fee. The program uses GTK, not Qt, so the usual Qt licensing issues shouldn't apply here. Is this possible, or do all GAMBAS programs (source or compiled)

Re: [Gambas-user] Re lease of Gambas 2.20.2

2010-03-15 Thread kevinfishburne
Benoît Minisini wrote: Here is the full ChangeLog: --- [CONFIGURATION] * BUG: Add missing symbolic links on 'missing' and 'install-sh' files. * BUG: Backport the 'reconf' script from Gambas 3. [DEVELOPMENT

[Gambas-user] best components for game graphics development

2010-03-15 Thread kevinfishburne
I'm developing a game which requires static polygonal model rendering with 2D bit blitting-style overlays. These are my eventual requirements: 1) Render a 3D heightmap with arbitrarily-specified tileable texture maps. 2) Render static 3D models on top of the heightmap. 3) Render 2D images on top

[Gambas-user] fastest way to zero-out a huge binary file

2010-01-23 Thread kevinfishburne
I need to create an 8 gigabyte binary file with zero values throughout it. Is there a faster way to do this than to create a big string of zeros and write it to the file multiple times? What I'm doing right now works but seems like a really ugly method: ' Zero-out the file. Zero = Chr$(0)

Re: [Gambas-user] fastest way to zero-out a huge binary file

2010-01-23 Thread kevinfishburne
Benoît Minisini wrote: On Linux, If you seek and write past the real end of a file, then the file is automatically extended. So the simplest is writing where you want in the file only when you need. Just don't do that randomly, to prevent the disk from seeking too much. Most Linux

Re: [Gambas-user] fastest way to zero-out a huge binary file

2010-01-23 Thread kevinfishburne
Kadaitcha Man wrote: In a terminal, type: info coreutils 'dd' You only need create the file once, then copy it whenever you need to during testing. If you really must create the file every time, let dd do it by using Gambas' Exec command. Excellent, thanks. I seem to have found

Re: [Gambas-user] fastest way to zero-out a huge binary file

2010-01-23 Thread kevinfishburne
kevinfishburne wrote: Excellent, thanks. I seem to have found something horrifying while trying to create the file using GAMBAS however; using the SEEK statement with an argument greater than 2 GB raises a Bad argument error. While that doesn't affect my ability to create the file

Re: [Gambas-user] fastest way to zero-out a huge binary file

2010-01-23 Thread kevinfishburne
Kadaitcha Man wrote: Have you tried using a Long instead of an Integer? runs and hides :) Haha, that gave me a good laugh. When I discovered the bug was just me being a jackass I practically did the Snoopy dance I was so overjoyed. Simple problems are always the best once you finally

Re: [Gambas-user] array size limitations relative to available RAM and swap space

2010-01-22 Thread kevinfishburne
Doriano Blengino wrote: Probably there is some bug here, but anyway I would use some other mean to achieve the goal. ... If you really have 65536*65536 cells, all alive together, you could use a binary file on disk. Disk caching will speed up things, perhaps better than fake ram

[Gambas-user] PictureBox.Picture.Image[x, y] output interpretation

2010-01-16 Thread kevinfishburne
When retrieving the value of a pixel at x,y from the picture in a picturebox control it outputs a single value. How does this value represent the pixel's value, and can it be easily converted to an RGB value? This is something that's going to need to be done 4,294,967,296 times, so is there a

[Gambas-user] array declaration versus referencing array elements

2009-12-15 Thread kevinfishburne
I have some code: PUBLIC myarray AS String[1, 2] ... myarray[x, 0] = stuff myarray[x, 1] = morestuff myarray[x, 2] = evenmorestuff and receive an out of bounds error message when referencing the third array element assignment (myarray[x, 2] = evenmorestuff). I can only assume that the

Re: [Gambas-user] SDL component documentation

2009-12-15 Thread kevinfishburne
Fabien Bodard-4 wrote: gb.sdl is incomplete ... in fact Laurent have begin to redraw all the gb.sdl lib by using OpenGl... but ... still incomplete ... i think the lack of users on this lib mess his enthusiasm Hi Fabien, I agree with your comments. I'm guessing that GAMBAS 3 is still in

Re: [Gambas-user] Need a Ubuntu/Linux teacher

2009-12-15 Thread kevinfishburne
John-679 wrote: Hi All I am new to Linux. I am using Ubuntu 9.10. What I am looking for is a kind person to help me off line with Linux and Ubuntu. Hi John. I develop and sell Linux-based desktop and laptop PCs for a living and have been using Linux exclusively for about three

Re: [Gambas-user] array declaration versus referencing array elements

2009-12-15 Thread kevinfishburne
Doriano Blengino wrote: I think you posed a question and replied to it by yourself... :-) Hi Doriano. That is super funny. ;) Yes, I was more or less looking for confirmation of the behaviour and hoping to provide a reference for anyone else who may have been similarly confused and

Re: [Gambas-user] can't call a procedure from a different module

2009-12-02 Thread kevinfishburne
[SOLVED] Kadaitcha Man wrote: 2009/12/2 kevinfishburne kevinfishbu...@eightvirtues.com: (2) Module Server then calls the procedure Init contained within module Net (Net.Init). Net is reserved for the Net class of constants in gambas. Rename the module

Re: [Gambas-user] code editor displays incorrect colors and character formatting

2009-11-05 Thread kevinfishburne
Benoît Minisini wrote: Wow. Completely weird. I will recompile Gambas 2 on my now updated 64 bits Ubuntu 9.10, to see if I get the same problem. I did a clean install of Karmic, installed all the necessary dependencies, then recompiled and installed GAMBAS 2.17.0. Interestingly it is

[Gambas-user] code editor displays incorrect colors and character formatting

2009-11-02 Thread kevinfishburne
I just recently compiled and installed GAMBAS 2.17.0 from the package provided here: http://prdownloads.sourceforge.net/gambas/gambas2-2.17.0.tar.bz2?download and while it appears to run and execute programs properly it displays the wrong colors and text formatting in the code editor. Some text

[Gambas-user] GAMBAS crash when setting columnview's Sorted property

2009-09-17 Thread kevinfishburne
I've tried this on the 64-bit versions of GAMBAS 2.13.1 and 2.8.2 included with Ubuntu 9.04 and 9.10 and the same thing happens. It may also happen with the listbox, listview or similar controls if they use the same code. If I set a columnview's Sorted property to TRUE in the GUI it works fine,

Re: [Gambas-user] GAMBAS crash when setting columnview's Sorted property

2009-09-17 Thread kevinfishburne
kevinfishburne wrote: I've tried this on the 64-bit versions of GAMBAS 2.13.1 and 2.8.2 included with Ubuntu 9.04 and 9.10 and the same thing happens. I just upgraded GAMBAS to 2.15.2 borrowing from Debian's current unstable repository and the problem persists. - Kevin Fishburne

Re: [Gambas-user] GAMBAS crash when setting columnview's Sorted property

2009-09-17 Thread kevinfishburne
joshiggins wrote: I'm running 32-bit Gambas 2.8 (the one in Jaunty) and I don't seem to get this problem. Granted I'm not adding 13000 strings, more like 200. Are you using the gtk or qt component? I'm using gtk. I need to correct my previous post. Whether it's set via the GUI is

Re: [Gambas-user] GAMBAS crash when setting columnview's Sorted property

2009-09-17 Thread kevinfishburne
Bugzilla from gam...@users.sourceforge.net wrote: I fixed the bug in revision #2337. It was not 64 bits related at all. Thanks. I'm assuming revision #2337 is in the 2.x development branch, as I just compiled and ran 2.16.0 and it has the same problem. Looks like it was GTK-related, as

Re: [Gambas-user] GAMBAS IDE font/form size versus runtime font/form size

2009-06-22 Thread kevinfishburne
Awesome, that information proved accurate and I have a much better handle on what exactly is going on now. I agree there is probably no perfect solution due to a number of variables, but I've decided to use the QT GUI instead of GTK for the time being and to keep the forms/controls a fixed size

[Gambas-user] GAMBAS IDE font/form size versus runtime font/form size

2009-06-20 Thread kevinfishburne
I'm using GAMBAS 2.13 under Ubuntu 9.10 development branch and the GNOME desktop environment. I've noticed that the GAMBAS IDE ignores GNOME font sizes, but when I run a GAMBAS app it adheres to GNOME's font sizes, adjusting form and control sizes accordingly. I can't tell for certain but it