Re: [Gambas-user] Gambas 3 is out!
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 Year everyone! -- Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex infrastructure or vast IT resources to deliver seamless, secure access to virtual desktops. With this all-in-one solution, easily deploy virtual desktops for less than the cost of PCs and save 60% on VDI infrastructure costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] someshort=xy returns Wanted short, got string instead
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 go to the mailing-list? If I resume, you want to send the contents of an array of short on a UDP socket, and get it back on the other end of the socket? I generally post through the Nabble forum, as direct mailing list emails have been placed in a queue that never gets processed. I'll leave that to a later date to solve. Basically I'm sending mixed datatypes as a single UDP packet. There may be 1024 Bytes followed by 512 Shorts, etc., in a known sequence that can be interpreted by the client. When the client interprets the data in the received UDP packet it needs to assign different pieces of it to variables of varying datatypes. The string is constructed on one side then deconstructed on the other. There may be something fundamental that I'm missing (no surprise), but the packet data is being received as a String and as such I must convert segments of that string to the corresponding datatypes. I'm currently trying to write a function to convert a four-byte segment of the string to a Single, and have a conversion module for all the other datatypes that could be encoded in the UDP string. My current conversion function for Shorts is similar to Tobi's suggestion: PUBLIC FUNCTION ToShort(source AS String) AS Short ' Convert a two-byte string to a short datatype value. RETURN Asc(Mid$(source, 2, 1)) * 256 + Asc(Mid$(source, 1, 1)) END This works well, but I need similar functions for most common datatypes (Integer, Long, Single, Float). Is this possible, or am I making a fundamental programming mistake and there is an easier way? The app in question will push the limits of typical upstream bandwidth so I need to keep the packet size/frequency as low as possible. Most network transactions will not consist of arrays, but a few values that must be sent as raw data rather than numerical text strings. - Kevin Fishburne, Eight Virtues www: http://sales.eightvirtues.com http://sales.eightvirtues.com e-mail: mailto:sa...@eightvirtues.com sa...@eightvirtues.com phone: (770) 853-6271 -- View this message in context: http://old.nabble.com/someshort%3D%22xy%22-returns-%22Wanted-short%2C-got-string-instead%22-tp29715645p29925084.html Sent from the gambas-user mailing list archive at Nabble.com. -- Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today. http://p.sf.net/sfu/beautyoftheweb ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] gb2: having same project open twice and code saving
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 address. The project files are accessed from both IDE instances over an NFS share. I've also noticed that GAMBAS will occasionally autosave, and sometimes warns that the project is already open, but not always. My questions are: 1) Why does GAMBAS only sometimes warn that the project is already open, but not always? 2) Under what conditions does GAMBAS autosave a project? 3) When clicking Save Project from the File menu, does it save everything or just what it thinks has been modified? 4) What behavior should I expect with regard to the project files being modified unpredictably by having it opened twice simultaneously? I could separate the client and server into two projects, but this would produce duplicate code or otherwise fundamental changes in the code structure. Finally I think it would be useful to address this specific scenario as a feature addition perhaps in GAMBAS 3. It would be nice if GAMBAS could be made aware of a single project being run and edited on multiple networked machines so that it stayed synchronized, regardless of which machine the project was being edited from. - Kevin Fishburne, Eight Virtues www: http://sales.eightvirtues.com http://sales.eightvirtues.com e-mail: mailto:sa...@eightvirtues.com sa...@eightvirtues.com phone: (770) 853-6271 -- View this message in context: http://old.nabble.com/gb2%3A-having-same-project-open-twice-and-code-saving-tp29824888p29824888.html Sent from the gambas-user mailing list archive at Nabble.com. -- 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] someshort=xy returns Wanted short, got string instead
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) * 256 + Asc(sWord, 2) Thanks Tobi, I'll give that a try if it becomes the only option. Hopefully there's something I can do like a variable pointer, so the data can basically just be copied from the string directly. This is for a real-time game so any inefficiencies can cause it to hang for a second and interrupt the smoothness of play. Benoît Minisini wrote: I can say, somebyte=ASC(x), but is it possible to quickly assign a two-byte string to a typical two-byte short? It's a bad idea. What do you want to do exactly? Hi Benoît. Maybe there's a better way for me to have come to this point, but here's what's happening: A server app retrieves sets of data from five binary files and stores them consecutively in a string. The first set is a 48x48 grid of shorts for a total of 4608 bytes (48x48x1x2). The last four sets are 48x48 grids of bytes for a total of 9216 bytes (48x48x4x1). So in total we have 13824 bytes (2304 shorts and 9216 bytes), converted to one large string something like this: DIM data AS String DIM chunk AS String READ #somefileofshorts, chunk, 2 data = data chunk READ #somefileofbytes, chunk, 1 data = data chunk Normally I might read the shorts into an array of shorts, but in this case the final string is sent to a client app as a UDP packet. I also need to send all the data as a single packet rather than several. The client app receives the packet and parses it, assigning the floats and bytes of the payload to five 48x48 element arrays like this: DIM somearray AS Short[48, 48] somearray[x, y] = Mid$(payload, position, 2) It needs to make that string to short conversion 2304 times (48x48) in as little time as possible. 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 be sent as a UDP packet so that it can be read more normally by the client. The UDP_Read procedure is generic however, and has no way of knowing what kind of data is contained within the packet, so that may be difficult at best. - Kevin Fishburne, Eight Virtues www: http://sales.eightvirtues.com http://sales.eightvirtues.com e-mail: mailto:sa...@eightvirtues.com sa...@eightvirtues.com phone: (770) 853-6271 -- View this message in context: http://old.nabble.com/someshort%3D%22xy%22-returns-%22Wanted-short%2C-got-string-instead%22-tp29715645p29721157.html Sent from the gambas-user mailing list archive at Nabble.com. -- 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] gb.image: image alpha channel accessibility
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) to make that work? I found the relevant bits of code, but it looks like the code is quite a bit different between GAMBAS 2 and 3, so without knowing C I wasn't able to get the new code to compile properly. I guess I'll continue to wait until GAMBAS 3 has reached a stable enough point that I'm able to test the new function. - Kevin Fishburne, Eight Virtues www: http://sales.eightvirtues.com http://sales.eightvirtues.com e-mail: mailto:sa...@eightvirtues.com sa...@eightvirtues.com phone: (770) 853-6271 -- View this message in context: http://old.nabble.com/gb.image%3A-image-alpha-channel-accessibility-tp29413575p29504756.html Sent from the gambas-user mailing list archive at Nabble.com. -- This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] gb.image: image alpha channel accessibility
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 libpq-dev libsqlite0-dev libsqlite3-dev libxtst-dev libgtk2.0-dev libgtkglext1-dev librsvg2-dev libcurl4-gnutls-dev libpcre3-dev libpoppler-dev libpoppler-glib-dev libqt3-mt-dev kdelibs4-dev libsdl-image1.2-dev libsdl-sound1.2-dev libsdl-mixer1.2-dev libxml2-dev libxslt1-dev sudo rm -fr trunk mkdir trunk svn checkout https://gambas.svn.sourceforge.net/svnroot/gambas/gambas/trunk/ cd trunk ./reconf-all ./configure make sudo make install gambas3 The results were the same (program runs but PictureBox control remains black), so I tried creating a fresh GAMBAS 3 project: http://old.nabble.com/file/p29496338/gb.image_drawalpha.tar.bz2 gb.image_drawalpha.tar.bz2 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) to make that work? - Kevin Fishburne, Eight Virtues www: http://sales.eightvirtues.com http://sales.eightvirtues.com e-mail: mailto:sa...@eightvirtues.com sa...@eightvirtues.com phone: (770) 853-6271 -- View this message in context: http://old.nabble.com/gb.image%3A-image-alpha-channel-accessibility-tp29413575p29496338.html Sent from the gambas-user mailing list archive at Nabble.com. -- This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] gb.image: image alpha channel accessibility
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, so please let me know if something changed in GAMBAS 3 that caused this code to no longer work: http://old.nabble.com/file/p29476167/gb.image_drawalpha.tar.bz2 gb.image_drawalpha.tar.bz2 Also, does GAMBAS 3 have different dev dependencies than GAMBAS 2 for compiling? I successfully compile GAMBAS 2 all the time, but this was my first time compiling GAMBAS 3. - Kevin Fishburne, Eight Virtues www: http://sales.eightvirtues.com http://sales.eightvirtues.com e-mail: mailto:sa...@eightvirtues.com sa...@eightvirtues.com phone: (770) 853-6271 -- View this message in context: http://old.nabble.com/gb.image%3A-image-alpha-channel-accessibility-tp29413575p29476167.html Sent from the gambas-user mailing list archive at Nabble.com. -- This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] gb.image: image alpha channel accessibility
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 sample working. Awesome! =) - Kevin Fishburne, Eight Virtues www: http://sales.eightvirtues.com http://sales.eightvirtues.com e-mail: mailto:sa...@eightvirtues.com sa...@eightvirtues.com phone: (770) 853-6271 -- View this message in context: http://old.nabble.com/gb.image%3A-image-alpha-channel-accessibility-tp29413575p29424022.html Sent from the gambas-user mailing list archive at Nabble.com. -- This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] gb.image: how to keep a rotated image centered
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 trick nicely. Here's mine: http://old.nabble.com/file/p29413377/gb.image_rotate.tar.bz2 gb.image_rotate.tar.bz2 PUBLIC SUB Form_Open() ' General declarations. DIM bg_normal AS Image = Image.Load(grass.png) DIM bg_rotated AS Image DIM bg_cropped AS Image DIM f AS Float DIM t AS Float DIM frames AS Integer ' Assign initial values to variables. DrawingArea.Height = Desktop.Height DrawingArea.Width = Desktop.Width ' Rotate the background and update the drawing area. FMain.Show t = Timer FOR f = 0 TO 6.2831853 * 1 STEP 0.01 bg_rotated = bg_normal.Rotate(f) bg_cropped = bg_rotated.Copy((bg_rotated.Width - 1024) / 2, (bg_rotated.Height - 1024) / 2, 1024, 1024) Draw.Begin(DrawingArea) Draw.Image(bg_cropped, 0, 0) Draw.End frames = frames + 1 WAIT NEXT ' Display frames per second rendered. PRINT frames / (Timer - t) frames per second ' End the program. QUIT END - Kevin Fishburne, Eight Virtues www: http://sales.eightvirtues.com http://sales.eightvirtues.com e-mail: mailto:sa...@eightvirtues.com sa...@eightvirtues.com phone: (770) 853-6271 -- View this message in context: http://old.nabble.com/gb.image%3A-how-to-keep-a-rotated-image-centered-tp29369608p29413377.html Sent from the gambas-user mailing list archive at Nabble.com. -- This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] gb.image: image alpha channel accessibility
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 fully transparent), which are applied to a larger texture to make parts of it transparent to expose the underlying layers. In the GIMP file the eight tiles' alpha channels have been applied to the grass layer, effectively removing the undesired parts of it to expose the sand layer. Basically, copying only the alpha channel of an image to the alpha channel of another image opens up all kinds of graphical possibilities. The alpha channel is one of the few things that can make 2D graphics look great, whether used normally or creatively. - Kevin Fishburne, Eight Virtues www: http://sales.eightvirtues.com http://sales.eightvirtues.com e-mail: mailto:sa...@eightvirtues.com sa...@eightvirtues.com phone: (770) 853-6271 -- View this message in context: http://old.nabble.com/gb.image%3A-image-alpha-channel-accessibility-tp29413575p29414425.html Sent from the gambas-user mailing list archive at Nabble.com. -- This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] gb.image: how to keep a rotated image centered
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 returned rotated image actually changes based on the angle, such that the entire original image is preserved (no clipping occurs). This would be extremely useful in most cases, but not in mine as I'm making a game. Anyone know what math I should use to try to keep the rotated image centered about its mid-point while being rotated? Thanks all. - Kevin Fishburne, Eight Virtues www: http://sales.eightvirtues.com http://sales.eightvirtues.com e-mail: mailto:sa...@eightvirtues.com sa...@eightvirtues.com phone: (770) 853-6271 -- View this message in context: http://old.nabble.com/gb.image%3A-how-to-keep-a-rotated-image-centered-tp29356475p29356475.html Sent from the gambas-user mailing list archive at Nabble.com. -- This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] 2-2.21.0: CheckBox_Click event raises twice on mouseclick, once on space bar
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 being I'm going to switch my project to QT to avoid it. The attachment is just a single form with a single checkbox control and accurately reproduces the problem. - Kevin Fishburne, Eight Virtues www: http://sales.eightvirtues.com http://sales.eightvirtues.com e-mail: mailto:sa...@eightvirtues.com sa...@eightvirtues.com phone: (770) 853-6271 -- View this message in context: http://old.nabble.com/2-2.21.0%3A-CheckBox_Click-event-raises-twice-on-mouseclick%2C-once-on-space-bar-tp29263179p29269448.html Sent from the gambas-user mailing list archive at Nabble.com. -- The Palm PDK Hot Apps Program offers developers who use the Plug-In Development Kit to bring their C/C++ apps to Palm for a share of $1 Million in cash or HP Products. Visit us here for more details: http://ad.doubleclick.net/clk;226879339;13503038;l? http://clk.atdmt.com/CRS/go/247765532/direct/01/ ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] 2-2.21.0: CheckBox_Click event raises twice on mouseclick, once on space bar
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: http://sales.eightvirtues.com http://sales.eightvirtues.com e-mail: mailto:sa...@eightvirtues.com sa...@eightvirtues.com phone: (770) 853-6271 -- View this message in context: http://old.nabble.com/2-2.21.0%3A-CheckBox_Click-event-raises-twice-on-mouseclick%2C-once-on-space-bar-tp29263179p29269725.html Sent from the gambas-user mailing list archive at Nabble.com. -- The Palm PDK Hot Apps Program offers developers who use the Plug-In Development Kit to bring their C/C++ apps to Palm for a share of $1 Million in cash or HP Products. Visit us here for more details: http://ad.doubleclick.net/clk;226879339;13503038;l? http://clk.atdmt.com/CRS/go/247765532/direct/01/ ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] 2-2.21.0: CheckBox_Click event raises twice on mouseclick, once on space bar
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 fixed. It persists in the previous stable release as well. A different issue I just discovered after changing my project to use QT is that the main form doesn't display until all startup procedures have finished execution, even after adding: FormMain.Show WAIT 0.5 The main form simply will not appear, whatever I try, until all code execution has stopped. :/ - Kevin Fishburne, Eight Virtues www: http://sales.eightvirtues.com http://sales.eightvirtues.com e-mail: mailto:sa...@eightvirtues.com sa...@eightvirtues.com phone: (770) 853-6271 -- View this message in context: http://old.nabble.com/2-2.21.0%3A-CheckBox_Click-event-raises-twice-on-mouseclick%2C-once-on-space-bar-tp29263179p29271604.html Sent from the gambas-user mailing list archive at Nabble.com. -- The Palm PDK Hot Apps Program offers developers who use the Plug-In Development Kit to bring their C/C++ apps to Palm for a share of $1 Million in cash or HP Products. Visit us here for more details: http://ad.doubleclick.net/clk;226879339;13503038;l? http://clk.atdmt.com/CRS/go/247765532/direct/01/ ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] 2-2.21.0: CheckBox_Click event raises twice on mouseclick, once on space bar
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, which takes about 20 seconds, but would like the form to show before the procedures execute so the user knows the program has been run. GTK shows the form as soon as I do FormMain.Show/WAIT 0.5, but QT doesn't show the form until it has exited Form_Open. Here's the code: PUBLIC SUB Form_Open() ' General initialization. ' Show the main form. FormMain.Show WAIT 0.5 ' Create config directories. IF Exist(User.Home /.Sanctimonia) = FALSE THEN MKDIR User.Home /.Sanctimonia ' Create temporary elevation files. Elevation.Temp_File_Create Tile.Temp_File_Create ' Update preview with old data from elevation file. Preview.Refresh ' Load elevation template into preview cache (remove when finished debugging). Elevation.Template_Load(default.png) END I wonder if ultimately there is a way to better ensure consistency between GTK and QT. I don't know how each is specifically implemented, but I've noticed several discrepancies between the two along GAMBAS's development. - Kevin Fishburne, Eight Virtues www: http://sales.eightvirtues.com http://sales.eightvirtues.com e-mail: mailto:sa...@eightvirtues.com sa...@eightvirtues.com phone: (770) 853-6271 -- View this message in context: http://old.nabble.com/2-2.21.0%3A-CheckBox_Click-event-raises-twice-on-mouseclick%2C-once-on-space-bar-tp29263179p29271697.html Sent from the gambas-user mailing list archive at Nabble.com. -- The Palm PDK Hot Apps Program offers developers who use the Plug-In Development Kit to bring their C/C++ apps to Palm for a share of $1 Million in cash or HP Products. Visit us here for more details: http://ad.doubleclick.net/clk;226879339;13503038;l? http://clk.atdmt.com/CRS/go/247765532/direct/01/ ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] Licensing programs created with GAMBAS
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) need to be under the same license as GAMBAS? - Kevin Fishburne, Eight Virtues www: http://sales.eightvirtues.com http://sales.eightvirtues.com e-mail: mailto:sa...@eightvirtues.com sa...@eightvirtues.com phone: (770) 853-6271 -- View this message in context: http://old.nabble.com/Licensing-programs-created-with-GAMBAS-tp28725178p28725178.html Sent from the gambas-user mailing list archive at Nabble.com. -- ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Re lease of Gambas 2.20.2
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 ENVIRONMENT] * BUG: Don't try to replace underscores in project names when creating *.deb packages. It does not work, and apparently dpkg-buildpackage has no problem with them. [INTERPRETER] * BUG: Prevent a crash if during a _free special method, an element is removed from a collection being freed. [GB.GTK] * BUG: ComboBox cannot raise its click event recursively anymore. [GB.QT] * BUG: ComboBox cannot raise its click event recursively anymore. * BUG: TrayIcons cannot be released twice anymore, which prevents a crash. Does this mean that the only difference between gambas2-2.19.0 and gambas2-2.20.2 are the seven bug fixes mentioned in the quoted change log? I'm trying to get a perspective of the version differences between GAMBAS stable releases. I'm not familiar with the way open source projects are maintained or version number schemes. If the lesser version number indicates a single bug fix, that would mean 12 bugs were fixed between releases, right? - Kevin Fishburne, Eight Virtues www: http://sales.eightvirtues.com http://sales.eightvirtues.com e-mail: mailto:sa...@eightvirtues.com sa...@eightvirtues.com phone: (770) 853-6271 -- View this message in context: http://old.nabble.com/Release-of-Gambas-2.20.2-tp27911819p27913596.html Sent from the gambas-user mailing list archive at Nabble.com. -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] best components for game graphics development
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 of the heightmap. 4) Rotate and scale 2D images. 5) Modify the alpha channel of 2D images. To reduce the development time required to make the game playable, the client app's scene renderer will initially be implemented in pure 2D, but I'd like the final product to use both 3D and 2D. My questions are: 1) Which GAMBAS components use graphics hardware acceleration, either through OpenGL directly or via the OS's display manager (OpenGL with a middle man). 2) Which GAMBAS components, hardware accelerated or not, render graphics the fastest. 3) What are any general graphics-related tips you may have regarding my requirements? 4) Is there anything in the GAMBAS development pipeline that I should be anticipating? Thanks all. With its ease of use, I'm hoping GAMBAS could be the XNA of Linux and OSS indie game development and am doing my part to make it so. - Kevin Fishburne, Eight Virtues www: http://sales.eightvirtues.com http://sales.eightvirtues.com e-mail: mailto:sa...@eightvirtues.com sa...@eightvirtues.com phone: (770) 853-6271 -- View this message in context: http://old.nabble.com/best-components-for-game-graphics-development-tp27913695p27913695.html Sent from the gambas-user mailing list archive at Nabble.com. -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] fastest way to zero-out a huge binary file
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) Chr$(0) Chr$(0) Chr$(0) Chr$(0) Chr$(0) Chr$(0) Chr$(0) Chr$(0) Chr$(0) Chr$(0) Chr$(0) Chr$(0) Chr$(0) Chr$(0) Chr$(0) Chr$(0) Chr$(0) Chr$(0) Chr$(0) Chr$(0) Chr$(0) Chr$(0) Chr$(0) Chr$(0) Chr$(0) Chr$(0) Chr$(0) Chr$(0) Chr$(0) Chr$(0) Chr$(0) FOR counter = 1 TO 65536 Zeros = Zeros Zero NEXT FOR counter = 1 TO 4096 WRITE #Elevation, Zeros NEXT - Kevin Fishburne, Eight Virtues www: http://sales.eightvirtues.com http://sales.eightvirtues.com e-mail: mailto:sa...@eightvirtues.com sa...@eightvirtues.com phone: (770) 853-6271 -- View this message in context: http://old.nabble.com/fastest-way-to-%22zero-out%22-a-huge-binary-file-tp27290885p27290885.html Sent from the gambas-user mailing list archive at Nabble.com. -- Throughout its 18-year history, RSA Conference consistently attracts the world's best and brightest in the field, creating opportunities for Conference attendees to learn about information security's most important issues through interactions with peers, luminaries and emerging and established companies. http://p.sf.net/sfu/rsaconf-dev2dev ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] fastest way to zero-out a huge binary file
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 file systems will reserve only pieces where something was written. The other part of the file that are only zeros are virtual, and will not consume your hard disk. Anyway, why do you need 8Gb of data at once? Hi Benoît. I tried: IF NOT Exist(~/.Littoral) THEN MKDIR ~/.Littoral Elevation = OPEN ~/.Littoral/Elevation.tmp FOR INPUT OUTPUT CREATE SEEK #Elevation, 8590196738 WRITE #Elevation, Chr$(0) and it creates a 262,148 byte file. That's four bytes larger than a 256K file. Checking the file in a hex editor it appears that all bytes are zero except for byte 262,147, which is one. For my purposes I prefer the file to be pre-allocated so that it can be as contiguous as possible. I need to minimize read/write access times as much as possible or my app may take all day to run. The reason for such a large file is because I'm writing a terrain generation app that generates a 65,537x65,537 vertex elevation map at 1 foot per vertex resolution (12x12 miles). Each vertex uses a short, or two bytes, to represent its elevation (65,537x65,537x2). I'm using a variation of the diamond square algorithm modified by a user-supplied height field that guides the terrain generation. Ultimately the resulting data file will be stored server-side, so size isn't an object. - Kevin Fishburne, Eight Virtues www: http://sales.eightvirtues.com http://sales.eightvirtues.com e-mail: mailto:sa...@eightvirtues.com sa...@eightvirtues.com phone: (770) 853-6271 -- View this message in context: http://old.nabble.com/fastest-way-to-%22zero-out%22-a-huge-binary-file-tp27290885p27292087.html Sent from the gambas-user mailing list archive at Nabble.com. -- Throughout its 18-year history, RSA Conference consistently attracts the world's best and brightest in the field, creating opportunities for Conference attendees to learn about information security's most important issues through interactions with peers, luminaries and emerging and established companies. http://p.sf.net/sfu/rsaconf-dev2dev ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] fastest way to zero-out a huge binary file
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 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, it kills me later when trying to read and write to it. Other than using a different version of GAMBAS all I can think to do is to create four 2 GB data files, which will create additional overhead in the read/write procedures that access the file. Actually since my file is slightly larger than 8 GB I'll need to create five separate files. :( - Kevin Fishburne, Eight Virtues www: http://sales.eightvirtues.com http://sales.eightvirtues.com e-mail: mailto:sa...@eightvirtues.com sa...@eightvirtues.com phone: (770) 853-6271 -- View this message in context: http://old.nabble.com/fastest-way-to-%22zero-out%22-a-huge-binary-file-tp27290885p27292295.html Sent from the gambas-user mailing list archive at Nabble.com. -- Throughout its 18-year history, RSA Conference consistently attracts the world's best and brightest in the field, creating opportunities for Conference attendees to learn about information security's most important issues through interactions with peers, luminaries and emerging and established companies. http://p.sf.net/sfu/rsaconf-dev2dev ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] fastest way to zero-out a huge binary file
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, it kills me later when trying to read and write to it. Other than using a different version of GAMBAS all I can think to do is to create four 2 GB data files, which will create additional overhead in the read/write procedures that access the file. Actually since my file is slightly larger than 8 GB I'll need to create five separate files. :( Praise God, I was incorrect. I was foolishly using too small a datatype (integer) when calculating the seek position. Now that I switched it to long all is well. :) - Kevin Fishburne, Eight Virtues www: http://sales.eightvirtues.com http://sales.eightvirtues.com e-mail: mailto:sa...@eightvirtues.com sa...@eightvirtues.com phone: (770) 853-6271 -- View this message in context: http://old.nabble.com/fastest-way-to-%22zero-out%22-a-huge-binary-file-tp27290885p27292340.html Sent from the gambas-user mailing list archive at Nabble.com. -- Throughout its 18-year history, RSA Conference consistently attracts the world's best and brightest in the field, creating opportunities for Conference attendees to learn about information security's most important issues through interactions with peers, luminaries and emerging and established companies. http://p.sf.net/sfu/rsaconf-dev2dev ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] fastest way to zero-out a huge binary file
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 figure out they were simple. Now if I can just get rid of those annoying extra string length bytes it keeps writing... - Kevin Fishburne, Eight Virtues www: http://sales.eightvirtues.com http://sales.eightvirtues.com e-mail: mailto:sa...@eightvirtues.com sa...@eightvirtues.com phone: (770) 853-6271 -- View this message in context: http://old.nabble.com/fastest-way-to-%22zero-out%22-a-huge-binary-file-tp27290885p27292612.html Sent from the gambas-user mailing list archive at Nabble.com. -- Throughout its 18-year history, RSA Conference consistently attracts the world's best and brightest in the field, creating opportunities for Conference attendees to learn about information security's most important issues through interactions with peers, luminaries and emerging and established companies. http://p.sf.net/sfu/rsaconf-dev2dev ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] array size limitations relative to available RAM and swap space
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 swapped in/out from disk. If you don't have all the cells live together, you could use an association, and only keep in ram the cell along with its coordinates. ... If you insist on the ram approach, then a static array would consume less memory, if it is still supported. Good advice. I think I'm going to be forced to use a binary file because all the data is interdependent. I'm basically applying the diamond square algorithm to the cells (which reminds me I need 65537x65537 shorts, not 65536x65536). Hopefully, if that was a bug, it will get ironed out because it wasn't handled terribly gracefully by GAMBAS. - Kevin Fishburne, Eight Virtues www: http://sales.eightvirtues.com http://sales.eightvirtues.com e-mail: mailto:sa...@eightvirtues.com sa...@eightvirtues.com phone: (770) 853-6271 -- View this message in context: http://old.nabble.com/array-size-limitations-relative-to-available-RAM-and-swap-space-tp27268616p27278998.html Sent from the gambas-user mailing list archive at Nabble.com. -- Throughout its 18-year history, RSA Conference consistently attracts the world's best and brightest in the field, creating opportunities for Conference attendees to learn about information security's most important issues through interactions with peers, luminaries and emerging and established companies. http://p.sf.net/sfu/rsaconf-dev2dev ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] PictureBox.Picture.Image[x, y] output interpretation
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 quicker way to reference pixel RGB values from a large image? The image being read will be of a varying format, 8192x8192 pixels and grayscale. The high number of reads is because it's being used as a modifier by an algorithm that is generating a 65536x65536 grayscale image. - Kevin Fishburne, Eight Virtues www: http://sales.eightvirtues.com http://sales.eightvirtues.com e-mail: mailto:sa...@eightvirtues.com sa...@eightvirtues.com phone: (770) 853-6271 -- View this message in context: http://old.nabble.com/PictureBox.Picture.Image-x%2C-y--output-interpretation-tp27196508p27196508.html Sent from the gambas-user mailing list archive at Nabble.com. -- Throughout its 18-year history, RSA Conference consistently attracts the world's best and brightest in the field, creating opportunities for Conference attendees to learn about information security's most important issues through interactions with peers, luminaries and emerging and established companies. http://p.sf.net/sfu/rsaconf-dev2dev ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] array declaration versus referencing array elements
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 array declaration defines the total number of elements and that referencing the array elements starts at zero. In other possibly more confusing words: PUBLIC myarray AS String[1, 2] = 1x2 total elements and myarray[x,y] = myarray[0-,0-1] I think my confusion may have come from my old VB6 days with OPTION BASE and all that crapola. Someone please confirm that GAMBAS works as I speculated or let me know if I'm missing something. Thanks all. - Kevin Fishburne, Eight Virtues www: http://sales.eightvirtues.com http://sales.eightvirtues.com e-mail: mailto:sa...@eightvirtues.com sa...@eightvirtues.com phone: (770) 853-6271 -- View this message in context: http://old.nabble.com/array-declaration-versus-referencing-array-elements-tp26806307p26806307.html Sent from the gambas-user mailing list archive at Nabble.com. -- This SF.Net email is sponsored by the Verizon Developer Community Take advantage of Verizon's best-in-class app development support A streamlined, 14 day to market process makes app distribution fast and easy Join now and get one step closer to millions of Verizon customers http://p.sf.net/sfu/verizon-dev2dev ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] SDL component documentation
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 alpha/beta since I haven't seen any releases on the download page. I am looking forward to it and hope it's fairly downward-compatible so GAMBAS 2 apps will run in it. That's good to hear that the new SDL component will be rewritten using OpenGL. I think the only thing GAMBAS is currently missing is a robust high-level 2D and 3D graphics library. While an OpenGL wrapper is cool, having to write 10 or more lines of code to create a single polygon probably doesn't help most people. I think it's also important to consider that GAMBAS need not necessarily implement literal wrappers for SDL or OpenGL, but rather its own unique flavor of 2D and 3D routines aimed squarely at delivering practical and efficient results. The spirit of GAMBAS surely is to write effective apps quickly and with respect to modern object-oriented programming conventions, all using a language that is easy and familiar to BASIC-loving developers. In that spirit a higher-level graphics component fits right in. Here's my two cents for what a 2D graphics library might include: * Graphics Buffers ** Allow creation of buffers in video memory (hardware accelerated) to store images ** Allow multiple buffers with different properties *** Define width and height *** Define RGB bit-depth (8, 16, 24, 32, etc.) *** Define alpha-channel bit-depth (0, 2, 4, 8, etc.) * Image Loading ** Allow loading of different file types into a graphics buffer (PNG, GIF, JPG, etc.) ** Allow loading file into specific location (x1,y1) of the buffer * Bit Blitting ** Allow copying one region of a graphics buffer (x1,y1,x2,y2) to another graphics buffer (x1,y1) ** Allow arbitrary rotation when copying a region from one buffer to another ** Allow arbitrary scaling when copying a region from one buffer to another ** Allow downsampling and upsampling when copying a region to a buffer with a different bit-depth ** Allow global alpha modifier multiplied by the existing region's alpha channel (will allow a region to be faded in or faded out, preserving its existing alpha channel) * Effects Processing ** Allow various effects (brightness, contrast, hue, saturation, gaussian blur, etc.) ** Allow the results of the effects, when necessary, to extend beyond the region in the buffer they were applied to I think a 2D graphics component is far more useful than a 3D component, as it will appeal to a wider developer base. 3D graphics require more work and more skill, therefore most programmers would be more adept at 2D graphics than 3D. While 3D is important, it should be relegated to being more seriously-developed only after a robust 2D library has been implemented. I wish I could contribute more but will have to settle for posting in the forums and developing GAMBAS apps that hopefully people will find useful or fun. I'm very good at graphics and documentation, so if anyone has any tasks that need to be done that they think I could do (or help me do by acting as an intermediary with the source code) please let me know. - Kevin Fishburne, Eight Virtues www: http://sales.eightvirtues.com http://sales.eightvirtues.com e-mail: mailto:sa...@eightvirtues.com sa...@eightvirtues.com phone: (770) 853-6271 -- View this message in context: http://old.nabble.com/SDL-component-documentation-tp26603936p26806675.html Sent from the gambas-user mailing list archive at Nabble.com. -- This SF.Net email is sponsored by the Verizon Developer Community Take advantage of Verizon's best-in-class app development support A streamlined, 14 day to market process makes app distribution fast and easy Join now and get one step closer to millions of Verizon customers http://p.sf.net/sfu/verizon-dev2dev ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Need a Ubuntu/Linux teacher
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 years. I supported Windows for seven years at a couple of mortgage companies so I unfortunately also come from a strong Windows background. Linux is certainly a different beast, and while the previous posters' comments are valid and useful you may contact me if you'd like to rapidly get the gist of the way Linux works, or to figure out how to do something specific quickly. Feel free to call or email. If you don't receive an answer please leave a voicemail and a callback number and I'll return your call. Have a good week, and welcome to Linux and GAMBAS. - Kevin Fishburne, Eight Virtues www: http://sales.eightvirtues.com http://sales.eightvirtues.com e-mail: mailto:sa...@eightvirtues.com sa...@eightvirtues.com phone: (770) 853-6271 -- View this message in context: http://old.nabble.com/Need-a-Ubuntu-Linux-teacher-tp26655310p26806834.html Sent from the gambas-user mailing list archive at Nabble.com. -- This SF.Net email is sponsored by the Verizon Developer Community Take advantage of Verizon's best-in-class app development support A streamlined, 14 day to market process makes app distribution fast and easy Join now and get one step closer to millions of Verizon customers http://p.sf.net/sfu/verizon-dev2dev ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] array declaration versus referencing array elements
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 searching the forum/list. I searched for out of bounds and didn't find an answer, neither was it in the array declaration section of the documentation. Sadly I think my mind was poisoned by VB's convention, leading to my confusion. Glad to hear it follows sensible convention and ignored VB's arbitrary logic. I'm paranoid about my code and don't like to leave much to uncertainty. - Kevin Fishburne, Eight Virtues www: http://sales.eightvirtues.com http://sales.eightvirtues.com e-mail: mailto:sa...@eightvirtues.com sa...@eightvirtues.com phone: (770) 853-6271 -- View this message in context: http://old.nabble.com/array-declaration-versus-referencing-array-elements-tp26806307p26806900.html Sent from the gambas-user mailing list archive at Nabble.com. -- This SF.Net email is sponsored by the Verizon Developer Community Take advantage of Verizon's best-in-class app development support A streamlined, 14 day to market process makes app distribution fast and easy Join now and get one step closer to millions of Verizon customers http://p.sf.net/sfu/verizon-dev2dev ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] can't call a procedure from a different module
[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. -- Join us December 9, 2009 for the anonymous postings of fortune stdout!!! ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user Thanks. Renaming the network module from Net to Network worked. I'm glad is was a simple mistake. Thanks again. - Kevin Fishburne, Eight Virtues www: http://sales.eightvirtues.com http://sales.eightvirtues.com e-mail: mailto:sa...@eightvirtues.com sa...@eightvirtues.com phone: (770) 853-6271 -- View this message in context: http://old.nabble.com/can%27t-call-a-procedure-from-a-different-module-tp26603731p26604998.html Sent from the gambas-user mailing list archive at Nabble.com. -- Join us December 9, 2009 for the Red Hat Virtual Experience, a free event focused on virtualization and cloud computing. Attend in-depth sessions from your desk. Your couch. Anywhere. http://p.sf.net/sfu/redhat-sfdev2dev ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] code editor displays incorrect colors and character formatting
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 working fine now and shows no sign of the display issues. Wish there was a way I could recreate the bug, if it was a bug, but the partition's been formatted so that's not possible. Thanks for looking into it anyway. - Kevin Fishburne, Eight Virtues www: http://sales.eightvirtues.com http://sales.eightvirtues.com e-mail: mailto:sa...@eightvirtues.com sa...@eightvirtues.com phone: (770) 853-6271 -- View this message in context: http://old.nabble.com/code-editor-displays-incorrect-colors-and-character-formatting-tp26159955p26226550.html Sent from the gambas-user mailing list archive at Nabble.com. -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] code editor displays incorrect colors and character formatting
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 is italicized, even mid-statement, and almost every character has a dot overlaying it. I don't know if something went wrong during compiling or what... I'm using Ubuntu 9.10 64-bit with all updates installed as of 11/02/09. Here's a screenshot: http://www.eightvirtues.com/misc/GAMBAS.png Any ideas about how I can correct this are greatly appreciated. - Kevin Fishburne, Eight Virtues www: http://sales.eightvirtues.com http://sales.eightvirtues.com e-mail: mailto:sa...@eightvirtues.com sa...@eightvirtues.com phone: (770) 853-6271 -- View this message in context: http://old.nabble.com/code-editor-displays-incorrect-colors-and-character-formatting-tp26159955p26159955.html Sent from the gambas-user mailing list archive at Nabble.com. -- Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] GAMBAS crash when setting columnview's Sorted property
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, but every time I call the Add method of the control it sorts the data in the columnview. I have a loop that adds 13000+ strings to the control, so sorting it each time one of these is added makes it incrementally slower. Eventually it becomes so slow it is useless. My workaround was to set the Sorted property to FALSE before the loop starts, add the 13000+ strings, then set the Sorted property back to TRUE. This would mean the columnview control was only sorted once and would be much faster. If I set the control's Sorted property through the GUI as FALSE, run the loop, then programmatically change it to TRUE, it works great and is fast. However after that if I set the control to FALSE programmatically it will crash, which leads me to believe it's a bug. I need to set it to FALSE again because later I have to clear the columnview and add different items to it. It shouldn't make any difference if I set the control's Sorted property via the GUI or programmatically, but it does. If this is a bug, has it been fixed in 2.16.0? - Kevin Fishburne, Eight Virtues www: http://sales.eightvirtues.com http://sales.eightvirtues.com e-mail: mailto:sa...@eightvirtues.com sa...@eightvirtues.com phone: (770) 853-6271 -- View this message in context: http://www.nabble.com/GAMBAS-crash-when-setting-columnview%27s-Sorted-property-tp25486385p25486385.html Sent from the gambas-user mailing list archive at Nabble.com. -- Come build with us! The BlackBerryreg; Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9#45;12, 2009. Register now#33; http://p.sf.net/sfu/devconf ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] GAMBAS crash when setting columnview's Sorted property
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, Eight Virtues www: http://sales.eightvirtues.com http://sales.eightvirtues.com e-mail: mailto:sa...@eightvirtues.com sa...@eightvirtues.com phone: (770) 853-6271 -- View this message in context: http://www.nabble.com/GAMBAS-crash-when-setting-columnview%27s-Sorted-property-tp25486385p25487136.html Sent from the gambas-user mailing list archive at Nabble.com. -- Come build with us! The BlackBerryreg; Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9#45;12, 2009. Register now#33; http://p.sf.net/sfu/devconf ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] GAMBAS crash when setting columnview's Sorted property
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 irrelevant. Setting it to FALSE after it's been set to TRUE (by any method) is what crashes it. It also needs to contain data. If it's empty then it won't crash. I've tried a columnview with 1 and three columns and data sizes as small as 48 strings. Here's the code snippet: ColumnView_Collection.Sorted = FALSE WHILE NOT Eof(FileCollection) LINE INPUT #FileCollection, s ColumnView_Collection.Add(Record - 1, s) ColumnView_Collection[Record - 1][1] = Some directory ColumnView_Collection[Record - 1][2] = Some size Record = Record + 1 WEND ColumnView_Collection.Sorted = TRUE It crashes at ColumnView_Collection.Sorted = FALSE anytime it's already sorted and contains data. Is there a way to erase the columnview's contents completely without destroying the control? I use ColumnView_Collection.Clear prior to setting .Sorted to FALSE but it makes no difference. If I could get it back to its virgin state (before I added keys to it) I can work around the issue. - Kevin Fishburne, Eight Virtues www: http://sales.eightvirtues.com http://sales.eightvirtues.com e-mail: mailto:sa...@eightvirtues.com sa...@eightvirtues.com phone: (770) 853-6271 -- View this message in context: http://www.nabble.com/GAMBAS-crash-when-setting-columnview%27s-Sorted-property-tp25486385p25488985.html Sent from the gambas-user mailing list archive at Nabble.com. -- Come build with us! The BlackBerryreg; Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9#45;12, 2009. Register now#33; http://p.sf.net/sfu/devconf ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] GAMBAS crash when setting columnview's Sorted property
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 using gb.qt works fine under 2.16.0 but gb.gtk doesn't. Bugzilla from gam...@users.sourceforge.net wrote: If you want to show a lot of data in columns, I suggest using a GridView for that. Sorted view controls are very slow in GTK+, even if I hack a lot to workaround the problem. I'd like to use the gridview, but it doesn't appear to have integrated sorting capabilities. If I used that then I'd be coding sorting algorithms myself and getting all kinds of headaches. ;) For now I'm going to switch to gb.qt and redo my form's colors since they look all crazy under gb.qt in Ubuntu. Thanks for fixing the bug and have a good weekend. - Kevin Fishburne, Eight Virtues www: http://sales.eightvirtues.com http://sales.eightvirtues.com e-mail: mailto:sa...@eightvirtues.com sa...@eightvirtues.com phone: (770) 853-6271 -- View this message in context: http://www.nabble.com/GAMBAS-crash-when-setting-columnview%27s-Sorted-property-tp25486385p25503074.html Sent from the gambas-user mailing list archive at Nabble.com. -- Come build with us! The BlackBerryreg; Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9#45;12, 2009. Register now#33; http://p.sf.net/sfu/devconf ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] GAMBAS IDE font/form size versus runtime font/form size
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 (non scaled). My IDE form/controls now match my runtime form/controls to the pixel. My particular application is highly dependent on controls and text being in specific positions and at specific sizes, so I'll have to sacrifice users' possible desires to change font/form sizes based on their individual system configurations. For those who need exact instructions on how to switch a GAMBAS app from using GTK (GNOME) to QT (KDE), here they are: 1) Open GAMBAS 2) Open your app/project 3) Click Project on the main menu at the top 4) Click Properties 5) Click the Components tab 6) Uncheck gb.gui 7) Check gb.qt and gb.qt.ext 8) Click the OK button 9) Save your app/project If anyone knows of an easier or more intelligent way to do this please tell for the sake of others. On a related note, it seems there is no way to stop the font sizes from changing in a running GAMBAS app due to the font sizes specified in the desktop environment's font settings. For example, if a GAMBAS app is using GTK and the form's Scaled property is set to False, the form and control sizes will remain fixed but the font sizes will vary according to GNOME's font size settings. There appears to be no way to have GAMBAS force a specific font size and ignore the desktop environment's font preferences. Is this the case? If so it might be a subject of future development. It could be implemented as an additional control property, at the form level, or globally for the app/project. - Kevin Fishburne, Eight Virtues www: http://sales.eightvirtues.com http://sales.eightvirtues.com e-mail: mailto:sa...@eightvirtues.com sa...@eightvirtues.com phone: (770) 853-6271 -- View this message in context: http://www.nabble.com/GAMBAS-IDE-font-form-size-versus-runtime-font-form-size-tp24129768p24156608.html Sent from the gambas-user mailing list archive at Nabble.com. -- Are you an open source citizen? Join us for the Open Source Bridge conference! Portland, OR, June 17-19. Two days of sessions, one day of unconference: $250. Need another reason to go? 24-hour hacker lounge. Register today! http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] GAMBAS IDE font/form size versus runtime font/form size
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 appears that the GAMBAS IDE uses QT rather than GTK. My theory is that the GAMBAS IDE uses some hidden QT/KDE font size but that a running GAMBAS app uses whatever GUI/fonts correspond with the currently running desktop environment (in my case GNOME). Is that what is happening? My basic problem is that the GAMBAS IDE form and font sizes do not match the form and font sizes of a running GAMBAS app. To workaround this I have to set the application font size to 8 instead of 10 in GNOME, which then affects every other app as well. Is it possible to adjust GAMBAS, QT, or KDE's font sizes so that the GAMBAS IDE will more closely match the GAMBAS app running in GNOME? - Kevin Fishburne, Eight Virtues www: http://sales.eightvirtues.com http://sales.eightvirtues.com e-mail: mailto:sa...@eightvirtues.com sa...@eightvirtues.com phone: (770) 853-6271 -- View this message in context: http://www.nabble.com/GAMBAS-IDE-font-form-size-versus-runtime-font-form-size-tp24129768p24129768.html Sent from the gambas-user mailing list archive at Nabble.com. -- Are you an open source citizen? Join us for the Open Source Bridge conference! Portland, OR, June 17-19. Two days of sessions, one day of unconference: $250. Need another reason to go? 24-hour hacker lounge. Register today! http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user