From kevinfishburne at ...1887... Fri Apr 1 00:16:12 2011 From: kevinfishburne at ...1887... (Kevin Fishburne) Date: Thu, 31 Mar 2011 18:16:12 -0400 Subject: [Gambas-user] How can I print my Gambas program code? In-Reply-To: <1301478860.3293.41.camel@...2479...> References: <4D91FE62.2050900@...20...> <4D9204CB.1030205@...221...> <1301470629.3293.17.camel@...2479...> <4D92F0E1.4040107@...1887...> <1301478860.3293.41.camel@...2479...> Message-ID: <4D94FD2C.3090701@...1887...> On 03/30/2011 05:54 AM, Caveat wrote: > P.S. On the full screen rotation, we're not all being quiet just > because we're too lazy or can't be bothered to contribute. It looked > like Doriano (or your beers!!! lol) was doing a fine job of leading you > through your learning curve, so it seemed to me like jumping in too > often would just have added noise to the conversation :-) > P.P.S. I am no expert on transformations, but I just happen to know a > guy who works in the NLE sphere... :-) Haha, no prob. I think it was a little Doriano and a little beer. A pattern I've noticed whenever I'm trying to do the impossible is that if I just keep trying, no matter how futile it seems, eventually I get it right. Implementing the diamond square algorithm last year was also hugely difficult for me, but months of frustration finally lead to success. -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sales at ...1887... phone: (770) 853-6271 From dag.jarle.johansen at ...626... Fri Apr 1 00:23:43 2011 From: dag.jarle.johansen at ...626... (Dag-Jarle Johansen) Date: Thu, 31 Mar 2011 19:23:43 -0300 Subject: [Gambas-user] Forms Pixel Size Controls In-Reply-To: References: Message-ID: No se Amigo, but I like your postscript: * Did I learn something today? If not, I wasted it.* Caveat is right, Just define what you need in design-mode. Or you can use settings. Questions - ask me - I am a newbie too, but I can help in one or to cases. 2011/3/31 Ganesh Kumar > Hi Guys, > > I am new to gambas , how to forms size controls I have fixed size > > 800 x 600 => output will be 1024 x 695 > > I want required size 800 X 600. How to set forms size in correct manner. > please help me.. > > -Ganesh. > > -- > Did I learn something today? If not, I wasted it. > > > ------------------------------------------------------------------------------ > 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 at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From kevinfishburne at ...1887... Fri Apr 1 00:51:41 2011 From: kevinfishburne at ...1887... (Kevin Fishburne) Date: Thu, 31 Mar 2011 18:51:41 -0400 Subject: [Gambas-user] how to flush a process stream In-Reply-To: <201103301215.48502.lordheavym@...626...> References: <4D9144F1.709@...1887...> <201103300013.26216.lordheavym@...626...> <4D929C2A.6040508@...1887...> <201103301215.48502.lordheavym@...626...> Message-ID: <4D95057D.5060006@...1887...> On 03/30/2011 06:15 AM, Laurent Carlier wrote: > You can find a preliminary support of joysticks in gb.sdl in rev #3705, and a > small example joined here. Awesome... I'll check it out ASAP. Sadly my next task is to re-do my networking code because, as promised, Beno?t removed all the Mk[Datatype]$() functions from the release candidate (tears, gnashing of teeth, beating head against wall). Time to re-read his email about using structures I guess. Until then, a moment of silence, please. _____ .-` `-. / Mk$() \ : : | 2010 - 2011 | | | | R.I.P. | | | |___(@)(@)____| /`(@)(@)(@)```\ ` `(@)(@) ` ` ` ` \__/ ` ` ` ` ` ` ` ` ` ` ` ` ` -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sales at ...1887... phone: (770) 853-6271 From kevinfishburne at ...1887... Fri Apr 1 04:47:50 2011 From: kevinfishburne at ...1887... (Kevin Fishburne) Date: Thu, 31 Mar 2011 22:47:50 -0400 Subject: [Gambas-user] gb3 RC1: using structures to replace the loss of Mk$ functions Message-ID: <4D953CD6.8090001@...1887...> 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. I can deal with all of that, but right now I'm just trying to make it work without the program becoming ridiculously complex and/or inefficient. I have up to 256 different transaction types shared by the client and server. Each one is represented by a different structure containing multiple datatypes. The structures range from a few bytes to many KB of data. Values are assigned to a structure when a transaction must be sent, then the structure is sent by the client or server. The recipient then parses the structure and assigns its values to different variables. Each transaction has an "ID" which represents the order in which it was sent and where it should be assigned in the recipient's transaction queue array. This ensures that transactions received out of order are processed in order. Both the client and the server have their own transaction queues that store the transactions they receive. The transaction IDs range from 0-255, so originally I had a transaction queue array that was something like this: Public ts[256, 3] As String ' Server transactions (256: Queue Position, 3: Status, Type, Data). Status = "new" or "old". Each element of the transaction queue array was generic, meaning it could store any transaction type regardless of what data it contained. Now that I'm using structures, the transaction data is uniquely represented. Instead of a generic "data" string element that I could create/parse with MkSingle()/Single@(), I have a unique structure. How can I store a unique structure in a generic array of structures? Is this possible? Right now I'm thinking I need to have transaction queue arrays of [256,256] structures (65536 structures) to accommodate this. Not so good when any particular structure could be up to 198 KB + header. Any ideas are appreciated, as this is starting to make me postal! :) -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sales at ...1887... phone: (770) 853-6271 From dag.jarle.johansen at ...626... Fri Apr 1 06:17:56 2011 From: dag.jarle.johansen at ...626... (Dag-Jarle Johansen) Date: Fri, 1 Apr 2011 01:17:56 -0300 Subject: [Gambas-user] gb3 RC1: using structures to replace the loss of Mk$ functions In-Reply-To: <4D953CD6.8090001@...1887...> References: <4D953CD6.8090001@...1887...> Message-ID: Kevin, I have no idea. But in lack of business and money enough to live for, I would like to help you, if I am a good enough programmer. I have NOT made programs in your kind until now; my kind of networking was just to have the right client idle or not. IF you want me to, I would like to spend some time learning more Gambas, and in particular networking. As Info - I have spent 30 years or a little more learning and understanding IT, so you do not have to deal with a newbie. On the other hand - Gambas is expanding faster than you can look - I am not able to handle all the new features in G3 yet. But, often it is a matter of thinking different - I would, if not a need of speed (realtime), use a database as MySQL to gather data. It's the fastest thing I can think about - I have not experienced a difference between an array and a Query - although the array is in Memory(in fact the query is indeed in memory). It is a question - what is server, what workstation, where do work from? In this case Kevin, please answer per personal mail. thanks Greetings, Dag-Jarle dag.jarle.johansen at ...626... 2011/3/31 Kevin Fishburne > 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. > > I can deal with all of that, but right now I'm just trying to make it > work without the program becoming ridiculously complex and/or inefficient. > > I have up to 256 different transaction types shared by the client and > server. Each one is represented by a different structure containing > multiple datatypes. The structures range from a few bytes to many KB of > data. Values are assigned to a structure when a transaction must be > sent, then the structure is sent by the client or server. The recipient > then parses the structure and assigns its values to different variables. > > Each transaction has an "ID" which represents the order in which it was > sent and where it should be assigned in the recipient's transaction > queue array. This ensures that transactions received out of order are > processed in order. Both the client and the server have their own > transaction queues that store the transactions they receive. > > The transaction IDs range from 0-255, so originally I had a transaction > queue array that was something like this: > > Public ts[256, 3] As String ' Server transactions (256: Queue Position, > 3: Status, Type, Data). Status = "new" or "old". > > Each element of the transaction queue array was generic, meaning it > could store any transaction type regardless of what data it contained. > Now that I'm using structures, the transaction data is uniquely > represented. Instead of a generic "data" string element that I could > create/parse with MkSingle()/Single@(), I have a unique structure. How > can I store a unique structure in a generic array of structures? Is this > possible? Right now I'm thinking I need to have transaction queue arrays > of [256,256] structures (65536 structures) to accommodate this. Not so > good when any particular structure could be up to 198 KB + header. > > Any ideas are appreciated, as this is starting to make me postal! :) > > -- > Kevin Fishburne > Eight Virtues > www: http://sales.eightvirtues.com > e-mail: sales at ...1887... > phone: (770) 853-6271 > > > > ------------------------------------------------------------------------------ > 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 at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From kevinfishburne at ...1887... Fri Apr 1 06:37:36 2011 From: kevinfishburne at ...1887... (Kevin Fishburne) Date: Fri, 01 Apr 2011 00:37:36 -0400 Subject: [Gambas-user] gb3 RC1: using structures to replace the loss of Mk$ functions In-Reply-To: References: <4D953CD6.8090001@...1887...> Message-ID: <4D955690.6030100@...1887...> On 04/01/2011 12:17 AM, Dag-Jarle Johansen wrote: > Kevin, I have no idea. But in lack of business and money enough to live for, > I would like to help you, if I am a good enough programmer. I have NOT made > programs in your kind until now; my kind of networking was just to have the > right client idle or not. > > IF you want me to, I would like to spend some time learning more Gambas, and > in particular networking. As Info - I have spent 30 years or a little more > learning and understanding IT, so you do not have to deal with a newbie. On > the other hand - Gambas is expanding faster than you can look - I am not > able to handle all the new features in G3 yet. But, often it is a matter of > thinking different - I would, if not a need of speed (realtime), use a > database as MySQL to gather data. It's the fastest thing I can think about - > I have not experienced a difference between an array and a Query - although > the array is in Memory(in fact the query is indeed in memory). It is a > question - what is server, what workstation, where do work from? > > In this case Kevin, please answer per personal mail. thanks I'd like to keep it in the mailing list for now, as I feel this should be heard by everyone. I thought about using a database as a transaction and game state backend, which is what most MMOs do, but I have a particular need for brutal efficiency. I don't want to use some generic database because I can program it manually to be faster, custom-tailored to my exact needs. This game is designed to run as cheaply as possible (RAM, CPU, disk access, network, etc.), so databases are an easy/lazy fix that I am purposely avoiding. The app isn't multi-threaded so it can't be spread over a cluster or server farm on insane hardware. Sanctimonia is intended not just for my commercial benefit, but will be released open source so others may start their own games in their own game worlds. I can think differently; I do that all the time. I just am a bit apprehensive about overhauling half of my code when the end result may be less efficient and more complex. My project's already complex enough! Also there are some grave issues regarding SQL if you've been following the nerd news as I have. The server side stores everything on disk, but some things are cached to arrays while others just stay on disk. So it's a hybrid based on how large the data sets are. With Linux's normal RAM caching of disk read/writes, it's pretty damn efficient. I either need structures to be more flexible or the Mk$ functions to come back. I did some tests and you can't just have a generic structure assigned data from another structure. Not good for me. I think I'm straight up screwed, but will give it a few more days to see if I can come up with a suitable hack. -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sales at ...1887... phone: (770) 853-6271 From dag.jarle.johansen at ...626... Fri Apr 1 06:48:15 2011 From: dag.jarle.johansen at ...626... (Dag-Jarle Johansen) Date: Fri, 1 Apr 2011 01:48:15 -0300 Subject: [Gambas-user] gb3 RC1: using structures to replace the loss of Mk$ functions In-Reply-To: <4D955690.6030100@...1887...> References: <4D953CD6.8090001@...1887...> <4D955690.6030100@...1887...> Message-ID: Ok Kevin, new to me that is a game. I have read an notified your comprehends Nevertheless, if you want me to, let me take a part of your Gambas-Experiences, they might be good for both of us. regards, Dag-Jarle 2011/4/1 Kevin Fishburne > On 04/01/2011 12:17 AM, Dag-Jarle Johansen wrote: > > Kevin, I have no idea. But in lack of business and money enough to live > for, > > I would like to help you, if I am a good enough programmer. I have NOT > made > > programs in your kind until now; my kind of networking was just to have > the > > right client idle or not. > > > > IF you want me to, I would like to spend some time learning more Gambas, > and > > in particular networking. As Info - I have spent 30 years or a little > more > > learning and understanding IT, so you do not have to deal with a newbie. > On > > the other hand - Gambas is expanding faster than you can look - I am not > > able to handle all the new features in G3 yet. But, often it is a matter > of > > thinking different - I would, if not a need of speed (realtime), use a > > database as MySQL to gather data. It's the fastest thing I can think > about - > > I have not experienced a difference between an array and a Query - > although > > the array is in Memory(in fact the query is indeed in memory). It is a > > question - what is server, what workstation, where do work from? > > > > In this case Kevin, please answer per personal mail. thanks > > I'd like to keep it in the mailing list for now, as I feel this should > be heard by everyone. > > I thought about using a database as a transaction and game state > backend, which is what most MMOs do, but I have a particular need for > brutal efficiency. I don't want to use some generic database because I > can program it manually to be faster, custom-tailored to my exact needs. > This game is designed to run as cheaply as possible (RAM, CPU, disk > access, network, etc.), so databases are an easy/lazy fix that I am > purposely avoiding. The app isn't multi-threaded so it can't be spread > over a cluster or server farm on insane hardware. Sanctimonia is > intended not just for my commercial benefit, but will be released open > source so others may start their own games in their own game worlds. > > I can think differently; I do that all the time. I just am a bit > apprehensive about overhauling half of my code when the end result may > be less efficient and more complex. My project's already complex enough! > Also there are some grave issues regarding SQL if you've been following > the nerd news as I have. The server side stores everything on disk, but > some things are cached to arrays while others just stay on disk. So it's > a hybrid based on how large the data sets are. With Linux's normal RAM > caching of disk read/writes, it's pretty damn efficient. > > I either need structures to be more flexible or the Mk$ functions to > come back. I did some tests and you can't just have a generic structure > assigned data from another structure. Not good for me. I think I'm > straight up screwed, but will give it a few more days to see if I can > come up with a suitable hack. > > -- > Kevin Fishburne > Eight Virtues > www: http://sales.eightvirtues.com > e-mail: sales at ...1887... > phone: (770) 853-6271 > > > > ------------------------------------------------------------------------------ > 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 at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From bbruen at ...2308... Fri Apr 1 07:15:39 2011 From: bbruen at ...2308... (Bruce Bruen) Date: Fri, 1 Apr 2011 15:45:39 +1030 Subject: [Gambas-user] gb3 RC1: using structures to replace the loss of Mk$ functions In-Reply-To: <4D953CD6.8090001@...1887...> References: <4D953CD6.8090001@...1887...> Message-ID: <201104011545.40624.bbruen@...2308...> 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. > > I can deal with all of that, but right now I'm just trying to make it > work without the program becoming ridiculously complex and/or inefficient. > > I have up to 256 different transaction types shared by the client and > server. Each one is represented by a different structure containing > multiple datatypes. The structures range from a few bytes to many KB of > data. Values are assigned to a structure when a transaction must be > sent, then the structure is sent by the client or server. The recipient > then parses the structure and assigns its values to different variables. > > Each transaction has an "ID" which represents the order in which it was > sent and where it should be assigned in the recipient's transaction > queue array. This ensures that transactions received out of order are > processed in order. Both the client and the server have their own > transaction queues that store the transactions they receive. > > The transaction IDs range from 0-255, so originally I had a transaction > queue array that was something like this: > > Public ts[256, 3] As String ' Server transactions (256: Queue Position, > 3: Status, Type, Data). Status = "new" or "old". > > Each element of the transaction queue array was generic, meaning it > could store any transaction type regardless of what data it contained. > Now that I'm using structures, the transaction data is uniquely > represented. Instead of a generic "data" string element that I could > create/parse with MkSingle()/Single@(), I have a unique structure. How > can I store a unique structure in a generic array of structures? Is this > possible? Right now I'm thinking I need to have transaction queue arrays > of [256,256] structures (65536 structures) to accommodate this. Not so > good when any particular structure could be up to 198 KB + header. > > Any ideas are appreciated, as this is starting to make me postal! :) 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? -- best regards Bruce Bruen From kevinfishburne at ...1887... Fri Apr 1 07:36:00 2011 From: kevinfishburne at ...1887... (Kevin Fishburne) Date: Fri, 01 Apr 2011 01:36:00 -0400 Subject: [Gambas-user] gb3 RC1: using structures to replace the loss of Mk$ functions In-Reply-To: <201104011545.40624.bbruen@...2308...> References: <4D953CD6.8090001@...1887...> <201104011545.40624.bbruen@...2308...> Message-ID: <4D956440.40205@...1887...> 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? That's what I was doing before the functions were created. I wrote gb functions/procedures to convert a datatype to its string representation and the corresponding functions/procedures to convert them back to their original datatypes. It worked well for shorts and integers, but I could never figure out how to convert a single or double both ways. I also lost that code after implementing the new gb functions as GAMBAS doesn't support revision history or whatever you call it, and my dumb ass didn't backup the functions to a text file somewhere. If anyone wants to show the code for converting the basic datatypes (short, integer, single, double) to a string and converting that string back to its basic datatype that would be a nice hack. Basically what I was doing in the first place but with the float datatypes. Also, for anyone curious, the reason the functions were removed is because they weren't endian-agnostic. In my case it didn't matter, as I'm not sending data to some ARM device or the like. Why different CPU architectures don't put bits in the same damn order I I'll never know. -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sales at ...1887... phone: (770) 853-6271 From ron at ...1740... Fri Apr 1 08:30:00 2011 From: ron at ...1740... (Ron) Date: Fri, 1 Apr 2011 08:30:00 +0200 Subject: [Gambas-user] how to flush a process stream Message-ID: Pls report experiences with the use of the structures. I want to use them in parts of my project too. Regards, Ron. Op 1 apr. 2011 00:51 schreef "Kevin Fishburne" < kevinfishburne at ...1887...> het volgende: From eilert-sprachen at ...221... Fri Apr 1 08:30:54 2011 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Fri, 01 Apr 2011 08:30:54 +0200 Subject: [Gambas-user] About syntax highlighting and copy/paste to OpenOffice In-Reply-To: <1301584529.15150.32.camel@...2493...> References: <1301584529.15150.32.camel@...2493...> Message-ID: <4D95711E.8060907@...221...> Am 31.03.2011 17:15, schrieb Demosthenes Koptsis: > These days i tried some ways to make the Gambas3 code in an OO3 document > be highlighted as in Gambas3 editor. > > 1) For this, i used many online web syntax highlighters such as > http://pygments.org/ > http://pastebin.com/ > http://qbnz.com/highlighter/ > > but when i copy the code from webpage OO does not make it "Paste > Special" in document, i dont know why...! > > 2) also i found an addon for OO named COOoder > the old page is > http://extensions.services.openoffice.org/node/940 > > but has no gambas support and the developer has no plans for any update > recently. > > Although the COOoder addon is easily configurable. > Someone can take the GeSHi gambas.php file and feed it at cli to script > http://cgit.freedesktop.org/libreoffice/build/tree/extensions/coooder/php/from-geshi.php > > this will make a gambas.xml file which is the highlight for COOoder > addon. > > (i edited the GeSHi gambas.php to gambas3.php for anyone who want it, > although it is not complete yet) > > The gambas.xml then must be copied to path > /home/user/.openoffice.org/3/user/uno_packages/cache/uno_packages/o36C8H_/coooder-1.1.2.oxt/config/org/openoffice/langs > > or similar... where OO addons exist. > > But unfortunately the COOoder may be has a bug. > When reach a line with gambas3 comment stops the process of > highlighting. (see screenshot) > > i sent an email to COOoder writer and i hope to help me or to fix the > bug. > > ----------- > > Do you know any other way to make highlight the code in OO for gambas > code? > > Is it possible when i copy the code from gambas editor to keep meta-data > for OO, so i can make a "Paste Special" ? > > of course the simple paste must keep use raw text. > Hm, this is just what I meant: When we had a tool which was resident within the IDE, it could easily have access to the editor's highlighting and many other things, thus enabling for easier highlighting than an external tool. Why re-invent the wheel? I guess it's pretty easy to simply use the Gambas editor's highlighting capabilities by reading the code from it and evaluating the highlighting properties of the text. The editor is there in Gambas and can be easily read, so let me just make some trials... Good idea though not to print directly but offer the option to paste the text into OO for further rendering. If I was an author of a book about Gambas, I'd love this... :-) Regards Rolf From kevinfishburne at ...1887... Fri Apr 1 08:37:22 2011 From: kevinfishburne at ...1887... (Kevin Fishburne) Date: Fri, 01 Apr 2011 02:37:22 -0400 Subject: [Gambas-user] About syntax highlighting and copy/paste to OpenOffice In-Reply-To: <4D95711E.8060907@...221...> References: <1301584529.15150.32.camel@...2493...> <4D95711E.8060907@...221...> Message-ID: <4D9572A2.1040800@...1887...> On 04/01/2011 02:30 AM, Rolf-Werner Eilert wrote: > Hm, this is just what I meant: When we had a tool which was resident > within the IDE, it could easily have access to the editor's highlighting > and many other things, thus enabling for easier highlighting than an > external tool. Why re-invent the wheel? > > I guess it's pretty easy to simply use the Gambas editor's highlighting > capabilities by reading the code from it and evaluating the highlighting > properties of the text. The editor is there in Gambas and can be easily > read, so let me just make some trials... > > Good idea though not to print directly but offer the option to paste the > text into OO for further rendering. If I was an author of a book about > Gambas, I'd love this... :-) Rolf, agreed. A File menu option could simply "print" to a single file, encoding the current theme and code markers. While this is plainly an extravagant feature that would just be for fun, it would be cool for code examples in web sites. It should perhaps be placed on low priority, like when all other bugs are fixed. Use the existing "theme", save to known format like html. -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sales at ...1887... phone: (770) 853-6271 From ihaywood at ...1979... Fri Apr 1 09:08:51 2011 From: ihaywood at ...1979... (Ian Haywood) Date: Fri, 1 Apr 2011 18:08:51 +1100 Subject: [Gambas-user] gb3 RC1: using structures to replace the loss of Mk$ functions In-Reply-To: <4D956440.40205@...1887...> References: <4D953CD6.8090001@...1887...> <201104011545.40624.bbruen@...2308...> <4D956440.40205@...1887...> Message-ID: 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 From doriano.blengino at ...1909... Fri Apr 1 10:12:37 2011 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Fri, 01 Apr 2011 10:12:37 +0200 Subject: [Gambas-user] gb3 RC1: using structures to replace the loss of Mk$ functions In-Reply-To: <4D956440.40205@...1887...> References: <4D953CD6.8090001@...1887...> <201104011545.40624.bbruen@...2308...> <4D956440.40205@...1887...> Message-ID: <4D9588F5.4040402@...1909...> Kevin Fishburne ha scritto: > 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. [...] >>> >> 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? >> > > That's what I was doing before the functions were created. [...] I also > lost that code after implementing the new gb functions as GAMBAS doesn't > support revision history or whatever you call it, and my dumb ass didn't > backup the functions to a text file somewhere. > You are not alone in this world... it is about a year now that I search for the source of an old program I wrote and use often. > If anyone wants to show the code for converting the basic datatypes > (short, integer, single, double) to a string and converting that string > back to its basic datatype that would be a nice hack. Basically what I > was doing in the first place but with the float datatypes. > Just an idea: to use the external function "memcpy()" found in libc. If correctly done, it would transfer in a single call as much memory as you want from/to strings and structures.. I am sorry I can't test/develop it: I am stuck with gambas 2.0.0 which seems to be quite different from the version you use. But you or someone else, with a little help from Benoit, could easily set it up, if this idea is viable. > Also, for anyone curious, the reason the functions were removed is > because they weren't endian-agnostic. In my case it didn't matter, as > I'm not sending data to some ARM device or the like. Why different CPU > architectures don't put bits in the same damn order I I'll never know. > > Uhm... it seems a very strange reason to me. Perhaps all this is coming from the not-clear idea that BASIC (and VB, and Gambas) has of itself. Basic wants to be easy; wants to be powerful; wants to be versatile. But these three things conflict too much often: sometimes it is impossible to have something which is at one time powerful and easy. What category where those mk$ functions in? Probably "versatility", in an attempt to add some extended functionality not supported by the language (typecasting). Typecasting is not easy, you must know what you are doing. If you don't know how data are stored in memory, you can not easily use typecasting. So Basic wanted to add typecasting without having you to know what you are doing. Instead of having a single and general way to do something, Basic introduced a number of mkXXX. But now, with user-defined data types, those mkxx are not sufficient anyway. And they where not sufficient in the case of different computers, having different sizes or bit order for the same Gambas type. The only way would to use an internal standard like: "Bit order is big endian. Pointers are 32 bits. Integers are 32 bits. Floats are 8 byte IEEE extended." and so on. This is a lot of work (and overhead of the language). Perhaps Gambas could add a single function like "MkString(datum as anytype) as string" and its counterpart "anytypevar = CvString(...)". But doing so, surely there will be a number of cases of misunderstanding and misusage. A last word about "different CPUs with different bit order". I think that this is unavoidable. Human beings can not even agree on measuring liquids with litres and distance with meters, or to use dots or commas to separate decimals. If all the CPU makers agreed on making 64 bits, little endian CPUs, how many years would it last, until the new 128 bits CPU will be the new standard? You say that you are not interested in talking to ARM devices. But on this very list I've read about running Gambas apps on smartphones or something like that. So... what to do? Should everyone migrate to Java? Java runs on a lot of different processors, it's very "high level", it is interpreted and compiled. It has everything. And be prepared to triplicate the number of lines of code... :-) If I were Benoit, I would have leaved those mkxxx in place, neglecting the agnosticism.They were dirty things time ago; they still would be dirty things; nobody is perfect; if you don't like them, don't use them. This email is a bit too long. Nobody is perfect. Regards and, apropos, I went to see you Sanctimonia links. It is fascinating, the kind of game I like most, like Civilization and Nethack. As soon as I will have some spare time I will try to try it... From kevinfishburne at ...1887... Fri Apr 1 09:46:32 2011 From: kevinfishburne at ...1887... (Kevin Fishburne) Date: Fri, 01 Apr 2011 03:46:32 -0400 Subject: [Gambas-user] gb3 RC1: using structures to replace the loss of Mk$ functions In-Reply-To: <4D9588F5.4040402@...1909...> References: <4D953CD6.8090001@...1887...> <201104011545.40624.bbruen@...2308...> <4D956440.40205@...1887...> <4D9588F5.4040402@...1909...> Message-ID: <4D9582D8.1040906@...1887...> On 04/01/2011 04:12 AM, Doriano Blengino wrote: > If I were Benoit, I would have leaved those mkxxx in place, neglecting > the agnosticism.They were dirty things time ago; they still would be > dirty things; nobody is perfect; if you don't like them, don't use them. They are "dirty". I proposed writing a warning in the documentation that they were only good for like-architecture, that they weren't endian-agnostic. Dirty functions are good, though. If you know what they do (docs), then you may choose to use them responsibly. Like low-level code. Minimal safety net. As long as the language doesn't crash, no bugs. > This email is a bit too long. Nobody is perfect. > > Regards and, apropos, I went to see you Sanctimonia links. It is > fascinating, the kind of game I like most, like Civilization and > Nethack. As soon as I will have some spare time I will try to try it... Thanks. My idea is kinda crazy. Dual-analog (on IBM-PC compatible [ia32/64] with Linux) control with Gauntlet-like precision in combat and general movement. Despite having FPS-style controls, the d-pad still moves the player independent of orientation along the eight cardinal directions. Mutable landscape, structures (as in buildings), etc. will make a fun game. It is like Nethack, though some things will be built-in like the ability for two or more players to sign a written, publicly posted document, and agree to enforce it. -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sales at ...1887... phone: (770) 853-6271 From robert.martin.held at ...1601... Fri Apr 1 10:04:48 2011 From: robert.martin.held at ...1601... (Robert Held) Date: Fri, 1 Apr 2011 10:04:48 +0200 Subject: [Gambas-user] SQLite3 Query failed: SQL error or missing database Message-ID: Hello, when I try to get data out of a table "dummy" with a DataSource-Control and a DataView-Control, I get this error: "Query failed: SQL error or missing database". With DB.Debug = "on" I can see that Gambas compose a wrong SQL-Statement. e.g. Table: dummy Fields: fe_id, fe_name the SQL looks like this: select from dummy If you can see, no field list! Tried with Gambas 2.22 on Fedora 14 and 2.21 on Ubuntu 10.10 Changed connection type from "sqlite3" to "postgresql" and it worked. Any ideas? Thanks Robert From gambas at ...1... Fri Apr 1 11:24:56 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Fri, 1 Apr 2011 11:24:56 +0200 Subject: [Gambas-user] gb3 RC1: using structures to replace the loss of Mk$ functions In-Reply-To: <4D953CD6.8090001@...1887...> References: <4D953CD6.8090001@...1887...> Message-ID: <201104011124.56714.gambas@...1...> > 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. > > I can deal with all of that, but right now I'm just trying to make it > work without the program becoming ridiculously complex and/or inefficient. > > I have up to 256 different transaction types shared by the client and > server. Each one is represented by a different structure containing > multiple datatypes. The structures range from a few bytes to many KB of > data. Values are assigned to a structure when a transaction must be > sent, then the structure is sent by the client or server. The recipient > then parses the structure and assigns its values to different variables. > > Each transaction has an "ID" which represents the order in which it was > sent and where it should be assigned in the recipient's transaction > queue array. This ensures that transactions received out of order are > processed in order. Both the client and the server have their own > transaction queues that store the transactions they receive. > > The transaction IDs range from 0-255, so originally I had a transaction > queue array that was something like this: > > Public ts[256, 3] As String ' Server transactions (256: Queue Position, > 3: Status, Type, Data). Status = "new" or "old". > > Each element of the transaction queue array was generic, meaning it > could store any transaction type regardless of what data it contained. > Now that I'm using structures, the transaction data is uniquely > represented. Instead of a generic "data" string element that I could > create/parse with MkSingle()/Single@(), I have a unique structure. How > can I store a unique structure in a generic array of structures? Is this > possible? Right now I'm thinking I need to have transaction queue arrays > of [256,256] structures (65536 structures) to accommodate this. Not so > good when any particular structure could be up to 198 KB + header. > > Any ideas are appreciated, as this is starting to make me postal! :) I haven't read the all thread, but: Using a structure just allow you to directly use the READ/WRITE instruction because they have a build-in serialization support. But as you noticed, handling a lot of different structures is not handy! Hopefully, you don't have to use structures. You can create one class for each packet type, and let them inherit the same parent class. Each class will have its own write method (and read) that will serialize/unserialize the packet to/from a given stream (that should be a Socket). Regards, -- Beno?t Minisini From gambas at ...1... Fri Apr 1 11:26:02 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Fri, 1 Apr 2011 11:26:02 +0200 Subject: [Gambas-user] gb3 RC1: using structures to replace the loss of Mk$ functions In-Reply-To: References: <4D953CD6.8090001@...1887...> <4D956440.40205@...1887...> Message-ID: <201104011126.02547.gambas@...1...> > > 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 > Yes! -- Beno?t Minisini From gambas at ...1... Fri Apr 1 11:28:33 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Fri, 1 Apr 2011 11:28:33 +0200 Subject: [Gambas-user] =?utf-8?q?About_syntax_highlighting_and_copy/paste_?= =?utf-8?q?to=09OpenOffice?= In-Reply-To: <4D9572A2.1040800@...1887...> References: <1301584529.15150.32.camel@...2493...> <4D95711E.8060907@...221...> <4D9572A2.1040800@...1887...> Message-ID: <201104011128.33710.gambas@...1...> > On 04/01/2011 02:30 AM, Rolf-Werner Eilert wrote: > > Hm, this is just what I meant: When we had a tool which was resident > > within the IDE, it could easily have access to the editor's highlighting > > and many other things, thus enabling for easier highlighting than an > > external tool. Why re-invent the wheel? > > > > I guess it's pretty easy to simply use the Gambas editor's highlighting > > capabilities by reading the code from it and evaluating the highlighting > > properties of the text. The editor is there in Gambas and can be easily > > read, so let me just make some trials... > > > > Good idea though not to print directly but offer the option to paste the > > text into OO for further rendering. If I was an author of a book about > > Gambas, I'd love this... :-) > > Rolf, agreed. A File menu option could simply "print" to a single file, > encoding the current theme and code markers. While this is plainly an > extravagant feature that would just be for fun, it would be cool for > code examples in web sites. It should perhaps be placed on low priority, > like when all other bugs are fixed. > > Use the existing "theme", save to known format like html. Gambas syntax highlighting is located in the gb.eval component. You don't need the editor. And other syntax highlighting are located in the gb.eval.highlight component, written in Gambas, and easily expandable with new syntaxes. Regards, -- Beno?t Minisini From gambas at ...1... Fri Apr 1 11:30:20 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Fri, 1 Apr 2011 11:30:20 +0200 Subject: [Gambas-user] how to flush a process stream In-Reply-To: References: Message-ID: <201104011130.20674.gambas@...1...> > Pls report experiences with the use of the structures. > I want to use them in parts of my project too. > > Regards, > Ron. Why do everyone want to use structures? They are there for interfacing with functions written in external shared libraries written in C mainly. You should use classes otherwise! -- Beno?t Minisini From gambas at ...1... Fri Apr 1 11:37:01 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Fri, 1 Apr 2011 11:37:01 +0200 Subject: [Gambas-user] Just some questions to Kevin Fishburne Message-ID: <201104011137.01510.gambas@...1...> Hi Kevin, I make it public, because it's about coding. It is just a few remarks/questions about your game: 1) Why do you want to rotate the game background? It will be always too slow until you rewrite everything using OpenGL, so I suggest you drop that idea meanwhile. 2) You asked for a DrawAlpha() method for compositing different ground layers while cutting them up as far as I understood. Am I right? In that case, why don't you pre-computed all these layers, so that you don't have to do that during the game? 3) If you don't have to use DrawAlpha() during the game, you will be able to use OpenGL very easily I think. Then you will be able to implement the rotation very easily too, and the speed will be ok (unless you don't have 3D acceleration of course). Sorry if what I said is out of topic! Regards, -- Beno?t Minisini From gambas at ...1... Fri Apr 1 12:19:47 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Fri, 1 Apr 2011 12:19:47 +0200 Subject: [Gambas-user] SQLite3 Query failed: SQL error or missing database In-Reply-To: References: Message-ID: <201104011219.47670.gambas@...1...> > Hello, > > when I try to get data out of a table "dummy" with a > DataSource-Control and a DataView-Control, I get this error: "Query > failed: SQL error or missing database". > With DB.Debug = "on" I can see that Gambas compose a wrong SQL-Statement. > e.g. > Table: dummy > Fields: fe_id, fe_name > the SQL looks like this: > > select from dummy > > If you can see, no field list! > > Tried with Gambas 2.22 on Fedora 14 and 2.21 on Ubuntu 10.10 > > Changed connection type from "sqlite3" to "postgresql" and it worked. > > Any ideas? > > Thanks > Robert > Can you provide a small project that shows the bug? -- Beno?t Minisini From robert.martin.held at ...1601... Fri Apr 1 13:23:19 2011 From: robert.martin.held at ...1601... (Robert Held) Date: Fri, 1 Apr 2011 13:23:19 +0200 Subject: [Gambas-user] SQLite3 Query failed: SQL error or missing database In-Reply-To: <201104011219.47670.gambas@...1...> References: <201104011219.47670.gambas@...1...> Message-ID: Hello, small project at the attachment. Thanks! 2011/4/1 Beno?t Minisini : >> Hello, >> >> when I try to get data out of a table "dummy" with a >> DataSource-Control and a DataView-Control, I get this error: "Query >> failed: SQL error or missing database". >> With DB.Debug = "on" I can see that Gambas compose a wrong SQL-Statement. >> e.g. >> Table: dummy >> Fields: fe_id, fe_name >> the SQL looks like this: >> >> select from dummy >> >> If you can see, no field list! >> >> Tried with Gambas 2.22 on Fedora 14 and 2.21 on Ubuntu 10.10 >> >> Changed connection type from "sqlite3" to "postgresql" and it worked. >> >> Any ideas? >> >> Thanks >> Robert >> > > Can you provide a small project that shows the bug? > > -- > Beno?t Minisini > > ------------------------------------------------------------------------------ > 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 at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -------------- next part -------------- A non-text attachment was scrubbed... Name: sqlitetest.zip Type: application/zip Size: 9872 bytes Desc: not available URL: From demosthenesk at ...626... Fri Apr 1 14:16:12 2011 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Fri, 01 Apr 2011 15:16:12 +0300 Subject: [Gambas-user] About syntax highlighting and copy/paste to OpenOffice In-Reply-To: <4D95711E.8060907@...221...> References: <1301584529.15150.32.camel@...2493...> <4D95711E.8060907@...221...> Message-ID: <1301660172.30203.7.camel@...2494...> On Fri, 2011-04-01 at 08:30 +0200, Rolf-Werner Eilert wrote: > Am 31.03.2011 17:15, schrieb Demosthenes Koptsis: > > These days i tried some ways to make the Gambas3 code in an OO3 document > > be highlighted as in Gambas3 editor. > > > > 1) For this, i used many online web syntax highlighters such as > > http://pygments.org/ > > http://pastebin.com/ > > http://qbnz.com/highlighter/ > > > > but when i copy the code from webpage OO does not make it "Paste > > Special" in document, i dont know why...! > > > > 2) also i found an addon for OO named COOoder > > the old page is > > http://extensions.services.openoffice.org/node/940 > > > > but has no gambas support and the developer has no plans for any update > > recently. > > > > Although the COOoder addon is easily configurable. > > Someone can take the GeSHi gambas.php file and feed it at cli to script > > http://cgit.freedesktop.org/libreoffice/build/tree/extensions/coooder/php/from-geshi.php > > > > this will make a gambas.xml file which is the highlight for COOoder > > addon. > > > > (i edited the GeSHi gambas.php to gambas3.php for anyone who want it, > > although it is not complete yet) > > > > The gambas.xml then must be copied to path > > /home/user/.openoffice.org/3/user/uno_packages/cache/uno_packages/o36C8H_/coooder-1.1.2.oxt/config/org/openoffice/langs > > > > or similar... where OO addons exist. > > > > But unfortunately the COOoder may be has a bug. > > When reach a line with gambas3 comment stops the process of > > highlighting. (see screenshot) > > > > i sent an email to COOoder writer and i hope to help me or to fix the > > bug. > > > > ----------- > > > > Do you know any other way to make highlight the code in OO for gambas > > code? > > > > Is it possible when i copy the code from gambas editor to keep meta-data > > for OO, so i can make a "Paste Special" ? > > > > of course the simple paste must keep use raw text. > > > > > Hm, this is just what I meant: When we had a tool which was resident > within the IDE, it could easily have access to the editor's highlighting > and many other things, thus enabling for easier highlighting than an > external tool. Why re-invent the wheel? > > I guess it's pretty easy to simply use the Gambas editor's highlighting > capabilities by reading the code from it and evaluating the highlighting > properties of the text. The editor is there in Gambas and can be easily > read, so let me just make some trials... > > Good idea though not to print directly but offer the option to paste the > text into OO for further rendering. If I was an author of a book about > Gambas, I'd love this... :-) > > Regards > > Rolf > > ------------------------------------------------------------------------------ > 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 at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user Yes actually i am writing a book for Gambas3 and i realy like an addon or a capability to paste to OO highlight code for the book with the colors of Gambas3 editor. For now until now i did not find a solution to this. I have started to learn OO Basic in order to make a small (or big) macro which will highlight selected text from OO document. The macro will work for Gambas3 code. i saw this working for php so i will try to learn from it and make it work for Gambas3 code. until then wish me good luck! -- Regards, Demosthenes From gambas at ...1... Fri Apr 1 14:58:03 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Fri, 1 Apr 2011 14:58:03 +0200 Subject: [Gambas-user] SQLite3 Query failed: SQL error or missing database In-Reply-To: References: <201104011219.47670.gambas@...1...> Message-ID: <201104011458.03211.gambas@...1...> > Hello, > > small project at the attachment. > > Thanks! > Mmm. That project works perfectly there. Maybe the bug has been already fixed: can you try with the latest svn revision? -- Beno?t Minisini From admhardsoft at ...253... Fri Apr 1 15:26:39 2011 From: admhardsoft at ...253... (admhardsoft at ...253...) Date: Fri, 1 Apr 2011 13:26:39 +0000 Subject: [Gambas-user] Gambas and the andlinux project In-Reply-To: <201104011458.03211.gambas@...1...> References: <201104011219.47670.gambas@...1...><201104011458.03211.gambas@...1...> Message-ID: <1154162868-1301664375-cardhu_decombobulator_blackberry.rim.net-469214187-@...2570...> Hi somebody in this list have experience working with andlinux proyect for windows? If yes somebody can tell me where andlinux store the programs that you install in your pc? In special a DB in mysql, somebody can help me? Thanks Sincerely Tomas Sent on the TELUS Mobility network with BlackBerry -----Original Message----- From: Beno?t Minisini Date: Fri, 1 Apr 2011 14:58:03 To: mailing list for gambas users Reply-To: mailing list for gambas users Subject: Re: [Gambas-user] SQLite3 Query failed: SQL error or missing database > Hello, > > small project at the attachment. > > Thanks! > Mmm. That project works perfectly there. Maybe the bug has been already fixed: can you try with the latest svn revision? -- Beno?t Minisini ------------------------------------------------------------------------------ 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 at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From mauricio at ...2500... Fri Apr 1 16:45:56 2011 From: mauricio at ...2500... (Mauricio Baeza) Date: Fri, 01 Apr 2011 08:45:56 -0600 Subject: [Gambas-user] About syntax highlighting and copy/paste to OpenOffice In-Reply-To: <1301660172.30203.7.camel@...2494...> References: <1301584529.15150.32.camel@...2493...> <4D95711E.8060907@...221...> <1301660172.30203.7.camel@...2494...> Message-ID: <1301669156.10523.0.camel@...37...> El vie, 01-04-2011 a las 15:16 +0300, Demosthenes Koptsis escribi?: > > Yes actually i am writing a book for Gambas3 and i realy like an addon > or a capability to paste to OO highlight code for the book with the > colors of Gambas3 editor. > > For now until now i did not find a solution to this. > > I have started to learn OO Basic in order to make a small (or big) macro > which will highlight selected text from OO document. > > The macro will work for Gambas3 code. > > i saw this working for php so i will try to learn from it and make it > work for Gambas3 code. > > until then wish me good luck! > Hello ... I wrote a book for OOo Basic program (Spanish only sorry). I made a macro where I copy the OOo code editor and hit into a Writer document and leave it highlighted. I think we can adapt seamlessly for use with Gambas3 code, it is only a matter of defining the keywords and their respective color. Much of what I've written in this book can be used for a book Gambas3 (for now only a project), but I can help adapt the macro. Best regards -- __________________________________ Mauricio Baeza Serv?n Universo Libre M?xico, A.C. Fundador y Director General Todo lo que no podemos dar nos posee... Andre Gide From doriano.blengino at ...1909... Fri Apr 1 17:14:36 2011 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Fri, 01 Apr 2011 17:14:36 +0200 Subject: [Gambas-user] Gambas and the andlinux project In-Reply-To: <1154162868-1301664375-cardhu_decombobulator_blackberry.rim.net-469214187-@...2570...> References: <201104011219.47670.gambas@...1...><201104011458.03211.gambas@...1...> <1154162868-1301664375-cardhu_decombobulator_blackberry.rim.net-469214187-@...2570...> Message-ID: <4D95EBDC.10008@...1909...> admhardsoft at ...253... ha scritto: > Hi somebody in this list have experience working with andlinux proyect for windows? If yes somebody can tell me where andlinux store the programs that you install in your pc? In special a DB in mysql, somebody can help me? > Thanks > Sincerely > Tomas > Andlinux (at least the old version I use) stores its filesystems in big files on the host OS. On my computer, in f:\andlinux\drives\ I have two files, "base.drv" (2Gib) and "swap.drv" (256Mib). I think they are no more than a "file version" of a disk partition, having nothing else than the raw cylinders/sectors one after each other, but I am not sure about this. Anyway, consider two things. First, those files should be considered as black boxes - leave them alone. Second, even if you could peek/poke inside them, still you have to cope with the files generated by mysql, which again should be considered black boxes. For the first problem, note that andlinux can mount windoze partitions (even usb sticks, and CDs - not sure about SMB shares, which can be mounted anyway from linux bypassing windows). For the second problem (accessing mysql files), you can rely on mysql_xxx commands to do whatever you want. If you really want to share the same data, store the databases in a partition visible from both windows and andlinux. It could work, especially if the mysql server version of both computers is the same - but don't run the two servers at the same time :-) Or, and I think it is the best, you run only one server, either on win or linux, and access it using TCP/IP (andlinux and the windows host communicate over TCP/IP as they were two different machines). Hope everything is clear, regards, Doriano From soleilpqd at ...626... Fri Apr 1 17:36:00 2011 From: soleilpqd at ...626... (=?UTF-8?B?UGjhuqFtIFF1YW5nIETGsMahbmc=?=) Date: Fri, 1 Apr 2011 22:36:00 +0700 Subject: [Gambas-user] Read array of string return from external libraries function In-Reply-To: <201103300114.46041.gambas@...1...> References: <201103300114.46041.gambas@...1...> Message-ID: Thank Benoit! One more question about the below basic data structure: aStruct * anExternFunc(...) with: aStruct { aClass *data aStruct *previous aStruct *next } How to get all *data I tried pNext = anExternFunc(...) while pNext <> null pData = Pointer@(pNext) ... pNext = pData + SizeOf(gb.pointer)*2 wend and failed. 2011/3/30 Beno?t Minisini > > Hi, > > > > I have an EXTERN function which returns an array of strings (char**). How > > to get this array? > > > > I just can only get the first string: > > EXTERN theFunction(params AS ...) As Pointer > > ..... > > Dim p as Pointer, s as String > > > > p = theFunction(...) > > s = String@(Pointer@(p)) > > > > What to do next? > > Thank you. > > s = String@(Pointer@(p + SizeOf(gb.Pointer)) > s = String@(Pointer@(p + SizeOf(gb.Pointer) * 2) > s = String@(Pointer@(p + SizeOf(gb.Pointer) * 3) > ... > > -- > Beno?t Minisini > > > ------------------------------------------------------------------------------ > 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 at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Ph?m Quang D??ng Mobile: 01683572206 Email: soleilpqd at ...626... / soleilpqd at ...2488... From demosthenesk at ...626... Fri Apr 1 17:59:44 2011 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Fri, 01 Apr 2011 18:59:44 +0300 Subject: [Gambas-user] About syntax highlighting and copy/paste to OpenOffice In-Reply-To: <1301669156.10523.0.camel@...37...> References: <1301584529.15150.32.camel@...2493...> <4D95711E.8060907@...221...> <1301660172.30203.7.camel@...2494...> <1301669156.10523.0.camel@...37...> Message-ID: <1301673584.547.16.camel@...2494...> So if you have already the macro i could edited for Gambas3 code and give it back to list or post it at LibleOffice / OO macros. Would you like to sent the .bas file(s) from your OO macro ? On Fri, 2011-04-01 at 08:45 -0600, Mauricio Baeza wrote: > El vie, 01-04-2011 a las 15:16 +0300, Demosthenes Koptsis escribi?: > > > > > > Yes actually i am writing a book for Gambas3 and i realy like an addon > > or a capability to paste to OO highlight code for the book with the > > colors of Gambas3 editor. > > > > For now until now i did not find a solution to this. > > > > I have started to learn OO Basic in order to make a small (or big) macro > > which will highlight selected text from OO document. > > > > The macro will work for Gambas3 code. > > > > i saw this working for php so i will try to learn from it and make it > > work for Gambas3 code. > > > > until then wish me good luck! > > > > > > Hello ... > > I wrote a book for OOo Basic program (Spanish only sorry). I made a > macro where I copy the OOo code editor and hit into a Writer document > and leave it highlighted. > > I think we can adapt seamlessly for use with Gambas3 code, it is only a > matter of defining the keywords and their respective color. > > Much of what I've written in this book can be used for a book Gambas3 > (for now only a project), but I can help adapt the macro. > > Best regards > > > -- Regards, Demosthenes From mauricio at ...2500... Fri Apr 1 20:00:46 2011 From: mauricio at ...2500... (Mauricio Baeza) Date: Fri, 01 Apr 2011 12:00:46 -0600 Subject: [Gambas-user] About syntax highlighting and copy/paste to OpenOffice In-Reply-To: <1301673584.547.16.camel@...2494...> References: <1301584529.15150.32.camel@...2493...> <4D95711E.8060907@...221...> <1301660172.30203.7.camel@...2494...> <1301669156.10523.0.camel@...37...> <1301673584.547.16.camel@...2494...> Message-ID: <1301680846.10523.22.camel@...37...> El vie, 01-04-2011 a las 18:59 +0300, Demosthenes Koptsis escribi?: > So if you have already the macro i could edited for Gambas3 code and > give it back to list or post it at LibleOffice / OO macros. > > Would you like to sent the .bas file(s) from your OO macro ? > I send file your personal mail... Best regards -- __________________________________ Mauricio Baeza Serv?n Universo Libre M?xico, A.C. Fundador y Director General Todo lo que no podemos dar nos posee... Andre Gide From gambas at ...2524... Sat Apr 2 00:23:41 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Fri, 01 Apr 2011 22:23:41 +0000 Subject: [Gambas-user] Issue 54 in gambas: Gambas debugger shows "unexpected" warnings on keywords when paused Message-ID: <0-6813199134517018827-3654485421693284163-gambas=googlecode.com@...2524...> Status: New Owner: ---- Labels: Version Type-Bug Priority-Medium OpSys-Any Dist-Any Arch-Any Desktop-Any GUI-Any New issue 54 by zachsmit... at ...626...: Gambas debugger shows "unexpected" warnings on keywords when paused http://code.google.com/p/gambas/issues/detail?id=54 If you step through a program and then select a keyword like sub or public, for example, you get "unexpected sub", or "unexpected public" warning balloons. This is inconvenient if one intended to select a keyword and then press F2 to get the definition. Instead one needs to wait 5 seconds for the warning to disappear before F2 can be pressed. In a similar manner, selecting just part of a variable name will give the same warning. For the line, For i = 1 To 10 if you select "i =" accidentally instead of just "i" in order to get the value of the variable, you get a warning "unexpected end of expression" and have to wait 5 seconds for the warning to go away (unless you click on the balloon). Perhaps it would be better if no warnings appear while selecting text while paused. This is not quite the same as issue 28, but similar. Version: TRUNK Revision: r3689 Operating system: Linux Distribution: ArchLinux Architecture: x86_64 From jussi.lahtinen at ...626... Sat Apr 2 02:00:52 2011 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Sat, 2 Apr 2011 03:00:52 +0300 Subject: [Gambas-user] External libs Message-ID: [INTERPRETER] * NEW: External libraries can be located inside the project. They are automatically copied into /tmp when used. I guess you can't run libraries from NOEXEC partition, even though binaries itself are in /usr/local/bin..? Is there any other viable choice than /tmp? Option to use Home folder instead? But I'm not sure if this matters with ready software, as I'm planning to distribute it with installation package. And installing needs admin privileges anyway... I'm not sure how to deal with shared libraries with these packages. My plans are not yet clear to me at all. Jussi From gambas at ...1... Sat Apr 2 02:05:27 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sat, 2 Apr 2011 02:05:27 +0200 Subject: [Gambas-user] External libs In-Reply-To: References: Message-ID: <201104020205.27515.gambas@...1...> > [INTERPRETER] > * NEW: External libraries can be located inside the project. They are > automatically copied into /tmp when used. > > > I guess you can't run libraries from NOEXEC partition, even though binaries > itself are in /usr/local/bin..? > Is there any other viable choice than /tmp? Option to use Home folder > instead? > > But I'm not sure if this matters with ready software, as I'm planning to > distribute it with installation package. > And installing needs admin privileges anyway... I'm not sure how to deal > with shared libraries with these packages. > > My plans are not yet clear to me at all. > > Jussi It's actually a hack for test projects. It is useless for real use, because storing an executable inside a Gambas project makes it architecture-dependent, which is against its design. In other words, don't use that in real life. That feature may be removed. Regards, -- Beno?t Minisini From jussi.lahtinen at ...626... Sat Apr 2 02:17:28 2011 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Sat, 2 Apr 2011 03:17:28 +0300 Subject: [Gambas-user] External libs In-Reply-To: <201104020205.27515.gambas@...1...> References: <201104020205.27515.gambas@...1...> Message-ID: OK. Doing some testing, and I noticed "Extra files" option from installation package wizard. Field for destination directory of extra file stays empty, how to set it? Jussi 2011/4/2 Beno?t Minisini > > [INTERPRETER] > > * NEW: External libraries can be located inside the project. They are > > automatically copied into /tmp when used. > > > > > > I guess you can't run libraries from NOEXEC partition, even though > binaries > > itself are in /usr/local/bin..? > > Is there any other viable choice than /tmp? Option to use Home folder > > instead? > > > > But I'm not sure if this matters with ready software, as I'm planning to > > distribute it with installation package. > > And installing needs admin privileges anyway... I'm not sure how to deal > > with shared libraries with these packages. > > > > My plans are not yet clear to me at all. > > > > Jussi > > It's actually a hack for test projects. It is useless for real use, because > storing an executable inside a Gambas project makes it > architecture-dependent, > which is against its design. > > In other words, don't use that in real life. That feature may be removed. > > Regards, > > -- > Beno?t Minisini > > > ------------------------------------------------------------------------------ > 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 at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From jussi.lahtinen at ...626... Sat Apr 2 02:18:20 2011 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Sat, 2 Apr 2011 03:18:20 +0300 Subject: [Gambas-user] External libs In-Reply-To: References: <201104020205.27515.gambas@...1...> Message-ID: Nevermind... I got it. Jussi On Sat, Apr 2, 2011 at 03:17, Jussi Lahtinen wrote: > OK. > Doing some testing, and I noticed "Extra files" option from installation > package wizard. > Field for destination directory of extra file stays empty, how to set it? > > Jussi > > > > > 2011/4/2 Beno?t Minisini > >> > [INTERPRETER] >> > * NEW: External libraries can be located inside the project. They are >> > automatically copied into /tmp when used. >> > >> > >> > I guess you can't run libraries from NOEXEC partition, even though >> binaries >> > itself are in /usr/local/bin..? >> > Is there any other viable choice than /tmp? Option to use Home folder >> > instead? >> > >> > But I'm not sure if this matters with ready software, as I'm planning to >> > distribute it with installation package. >> > And installing needs admin privileges anyway... I'm not sure how to deal >> > with shared libraries with these packages. >> > >> > My plans are not yet clear to me at all. >> > >> > Jussi >> >> It's actually a hack for test projects. It is useless for real use, >> because >> storing an executable inside a Gambas project makes it >> architecture-dependent, >> which is against its design. >> >> In other words, don't use that in real life. That feature may be removed. >> >> Regards, >> >> -- >> Beno?t Minisini >> >> >> ------------------------------------------------------------------------------ >> 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 at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > From kevinfishburne at ...1887... Sun Apr 3 02:58:48 2011 From: kevinfishburne at ...1887... (Kevin Fishburne) Date: Sat, 02 Apr 2011 20:58:48 -0400 Subject: [Gambas-user] Just some questions to Kevin Fishburne In-Reply-To: <201104011137.01510.gambas@...1...> References: <201104011137.01510.gambas@...1...> Message-ID: <4D97C648.3020500@...1887...> On 04/01/2011 05:37 AM, Beno?t Minisini wrote: > Hi Kevin, > > I make it public, because it's about coding. Hi Beno?t. No prob, I'm always game for questions. :) > It is just a few remarks/questions about your game: > > 1) Why do you want to rotate the game background? It will be always too slow > until you rewrite everything using OpenGL, so I suggest you drop that idea > meanwhile. The game was originally envisioned to allow that degree of control. I'd rather have something that allows first person shooter style controls than something that only allows movement like the original Zelda. Simultaneously allowing Zelda-style controls with the d-pad and movement/orientation controls with dual-analog sticks makes exploration and combat flexible, deep, yet still accessible by newbies. I currently have it set up to do the rotate method only if the player's orientation is <> 0, so I can still have everything fully functioning without a terrible frame rate all the time. I also have a "savings fund" for whoever eventually implements the rotate method in SDL/OpenGL, which is in much need of some love. > 2) You asked for a DrawAlpha() method for compositing different ground layers > while cutting them up as far as I understood. Am I right? In that case, why > don't you pre-computed all these layers, so that you don't have to do that > during the game? Yes, DrawAlpha is what makes the game's rendering logic possible. Without it the game would look like an 80's CRPG...not good. One reason I don't pre-render is that the game world will be 65536x65536 tiles server side and 96x96 tiles (at 12288x12288 pixel resolution) client side. While there are five "main" layers (bedrock, sand, soil, vegetation, snow), each of these layers is composed of an arbitrary number of "sub" layers. There is wet sand, dry sand, light vegetation, medium vegetation, dense vegetation, etc., for example. So the number of 12288x12288 resolution layers could be 10+ at 576 MB each. The client only knows about 96x96 tiles at any one time, but it keeps an image of a smaller subset of those 96x96 tiles (13x13 tiles or 1664x1664 pixels when using a screen resolution of 1280x720). The players may also permanently modify each of the main layers at any time by digging, or in the case of vegetation, by cutting, trampling (walking over) or burning. Landscape modifications are shown in real-time and approved/denied, stored and rebroadcast to other players by the server. The good news is that DrawAlpha is fast, is used to draw all visible tiles only on the initial render, and subsequent renders only draw new "edge" tiles when the player crosses a tile boundary. I'm very happy for DrawAlpha to stay the same right now. > 3) If you don't have to use DrawAlpha() during the game, you will be able to > use OpenGL very easily I think. Then you will be able to implement the > rotation very easily too, and the speed will be ok (unless you don't have 3D > acceleration of course). > > Sorry if what I said is out of topic! I have to use DrawAlpha. It's what allows me to use 4096x4096 pixel landscape textures but still have 128x128 pixel tiles. As far as the rendering engine is concerned, DrawAlpha is everything. Right now the only things hurting the frame rate are the rotate method and the image-to-image Draw method (image1.Draw[image2,...]). Those things can wait, as I'm looking at finishing the game at least a year from now...no hurry. Hope that answers your questions. Now I have to go back to beating my head against the wall. ;) -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sales at ...1887... phone: (770) 853-6271 From kevinfishburne at ...1887... Sun Apr 3 04:14:19 2011 From: kevinfishburne at ...1887... (Kevin Fishburne) Date: Sat, 02 Apr 2011 22:14:19 -0400 Subject: [Gambas-user] gb3 RC1: using structures to replace the loss of Mk$ functions In-Reply-To: <201104011124.56714.gambas@...1...> References: <4D953CD6.8090001@...1887...> <201104011124.56714.gambas@...1...> Message-ID: <4D97D7FB.3020202@...1887...> On 04/01/2011 05:24 AM, Beno?t Minisini wrote: > Using a structure just allow you to directly use the READ/WRITE instruction > because they have a build-in serialization support. But as you noticed, > handling a lot of different structures is not handy! Yes, because I need to keep a transaction history of all the structures but there's no easy way to store different structures en masse. > Hopefully, you don't have to use structures. You can create one class for each > packet type, and let them inherit the same parent class. Each class will have > its own write method (and read) that will serialize/unserialize the packet > to/from a given stream (that should be a Socket). This sounds good, but I'm a guy whose programming skills evolved from a BASIC dialect in GEM on an Amstrad PC-1512 to GW-BASIC, QBasic, QuickBASIC 4.5, VB 6 and now GAMBAS. While some build simple projects using advanced tools, I build advanced projects using simple tools (not that gb is simple!). Inheritance, classes and objects are a little alien to me despite reading the documentation. If anyone has an explanation of these things that even a newbie could understand, I'd be grateful. If someone can show me an example of Beno?t'ssuggestion I'm sure I can implement it. Beno?t's solution applied to my current logic is something like this: 1. Server/Client: Define a class for each transaction type. 2. Server/Client: Assign values to a class. 3. Server/Client: Send the class as UDP packet. 4. Client/Server: Receive the UDP packet. 5. Client/Server: Parse the UDP packet and assign values to the corresponding class. 6. Client/Server: Add the class to an array of classes (the transaction queue/history). This presumes that an array of classes can somehow store completely arbitrary classes, which I don't understand. Also something to note is that each transaction type (or class type in this case) has an "ID" that identifies the type of transaction. The ID is sent as the first byte of the packet so that the recipient may know how to parse the rest of the packet. As an alternative suggestion Doriano said, "Just an idea: to use the external function "memcpy()" found in libc. If correctly done, it would transfer in a single call as much memory as you want from/to strings and structures." Bruce also said, "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?" Both of these suggestions allow me to keep the old code (which I did back up), replacing the lost Mk$ functions with equivalents. This works for me, as the old networking implementation was very efficient and concise. Beno?t's suggestion also works for me, even if it requires more code, as it seems more elegant. With respect to Doriano, how would one use the memcpy() statement in GAMBAS? I see from Wikipedia that "void *memcpy(void *dest, const void *src, size_t n);" shows the syntax in C. My two questions are, how do you call external library functions in gb, and how would you translate the C syntax to gb syntax? With respect to Bruce, I figured out how to convert Shorts and Integers to/from strings, but not Singles. If I can figure out how to convert Singles to/from a string then my problems are all solved. -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sales at ...1887... phone: (770) 853-6271 From gambas at ...1... Sun Apr 3 09:11:00 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sun, 3 Apr 2011 09:11:00 +0200 Subject: [Gambas-user] gb3 RC1: using structures to replace the loss of Mk$ functions In-Reply-To: <4D97D7FB.3020202@...1887...> References: <4D953CD6.8090001@...1887...> <201104011124.56714.gambas@...1...> <4D97D7FB.3020202@...1887...> Message-ID: <201104030911.00925.gambas@...1...> > On 04/01/2011 05:24 AM, Beno?t Minisini wrote: > > Using a structure just allow you to directly use the READ/WRITE > > instruction because they have a build-in serialization support. But as > > you noticed, handling a lot of different structures is not handy! > > Yes, because I need to keep a transaction history of all the structures > but there's no easy way to store different structures en masse. > > > Hopefully, you don't have to use structures. You can create one class for > > each packet type, and let them inherit the same parent class. Each class > > will have its own write method (and read) that will > > serialize/unserialize the packet to/from a given stream (that should be > > a Socket). > > This sounds good, but I'm a guy whose programming skills evolved from a > BASIC dialect in GEM on an Amstrad PC-1512 to GW-BASIC, QBasic, > QuickBASIC 4.5, VB 6 and now GAMBAS. While some build simple projects > using advanced tools, I build advanced projects using simple tools (not > that gb is simple!). Inheritance, classes and objects are a little alien > to me despite reading the documentation. If anyone has an explanation of > these things that even a newbie could understand, I'd be grateful. > Here is an explanation, but not a real example : 1) You define a class named "Packet", that will be the parent class of all real packet classes. That class has an ID field, and three methods: Send, Receive, and _Receive (with an underscore before). The Receive methods is static. That means it is a normal procedure. Receive will call _Receive to do the real job. Send and _Receive are "dynamic". That means they act on real objects. To understand that, look at the following equivalence: AnObject.Method(X, Y) <=> Method(AnObject, X, Y) The first one is the "objet-oriented programming" syntax. The second one is the classic programming syntax. That is what is really done internally. Packet.class: ' Gambas class Static Private $aType As String[256] Private $iId As Integer Public Sub _init() $aType[1] = "PacketType1" $aType[2] = "PacketType2" $aType[3] = "PacketType3" ... End Public Sub Send(hStream As Stream) End Static Public Sub Receive(hStream As Stream) Dim iType As Integer Dim hPacket as Packet ' Read the packet type as a Byte iType = Read #hStream As Byte ' All real packet class names are stored in the $aType array hPacket = Object.New($aType[iType]) ' The _Receive method of the specific class will be called, not ' the void one in the Packet class. hPacket._Receive(hStream) End Public Sub _Receive(hStream As Stream) End 2) For each different packet, you define a new class. That class will redefine the _Receive method, to do the real job. And the Send method also. PacketType1.class: ' Gambas class Public Sub Send(hStream As Stream, aData As Variant[]) ' aData is any array that will include the specific packet fields ' You can use a Collection also, or you can define public variables ' in the class, fill them, and use them directly there instead of using ' an 'aData' argument. Write #hStream, 1 As Byte Write #hStream, aData[0] As ... Write #hStream, aData[1] As ... ... End Public Sub _Receive(hStream As Stream) Dim Field1 As ... Dim Field2 As ... ... Field1 = Read #hStream As ... Field2 = Read #hStream As ... ... ' Now you have the packets contents, you can do the real job. End PacketType2.class: ' Gambas class ... PacketType3.class: ' Gambas class ... I hope it is more clear for you now. Regards, -- Beno?t Minisini From bugcy013 at ...626... Sun Apr 3 11:31:37 2011 From: bugcy013 at ...626... (Ganesh Kumar) Date: Sun, 3 Apr 2011 15:01:37 +0530 Subject: [Gambas-user] How to find out internet status Message-ID: Hi Guys, I am new to Gambas with networking field. I want find out internet connection in my system or NOT. I don't use ping command. ping www.yahoo.com its pinging...yes internet connection is there is working fine. one day yahoo server is down.. How to find out..try another website.. Its not a correct method. any other method will be there.. please help me.. -Ganesh. -- Did I learn something today? If not, I wasted it. From demosthenesk at ...626... Sun Apr 3 12:41:18 2011 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Sun, 03 Apr 2011 13:41:18 +0300 Subject: [Gambas-user] How to find out internet status In-Reply-To: References: Message-ID: <1301827278.13547.4.camel@...2494...> Hello, what connection do you use? If you use ADSL you can see the STATUS of your modem-router, it will say something like: CONNECTION IS UP, or VC1 IS UP, or ADSL IS UP. it will also display the IP and other info. You can make a bookmark for your Router page on Firefox and also save the login username/password. So the access will be very easy. I think this is quick method without the need of programming skill. ---------- On Sun, 2011-04-03 at 15:01 +0530, Ganesh Kumar wrote: > Hi Guys, > > I am new to Gambas with networking field. I want find out internet > connection in > my system or NOT. > I don't use ping command. > > ping www.yahoo.com its pinging...yes internet connection is there is > working fine. > > one day yahoo server is down.. How to find out..try another website.. > Its not a correct method. > any other method will be there.. please help me.. > > > -Ganesh. > > -- Regards, Demosthenes From bugcy013 at ...626... Sun Apr 3 13:19:59 2011 From: bugcy013 at ...626... (Ganesh Kumar) Date: Sun, 3 Apr 2011 16:49:59 +0530 Subject: [Gambas-user] How to find out internet status In-Reply-To: <1301827278.13547.4.camel@...2494...> References: <1301827278.13547.4.camel@...2494...> Message-ID: Thanks for you kindly reply, > what connection do you use? I have to use ADSL , But my situation I dont see modem-router My only option i have to use with script only.. Any Gambas modules will be there check internet status > If you use ADSL you can see the STATUS of your modem-router, it will say > something like: > > CONNECTION IS UP, or > VC1 IS UP, or > ADSL IS UP. > I think this is quick method without the need of programming skill. I have write program to check status please help me. -Ganesh -- Did I learn something today? If not, I wasted it. From doriano.blengino at ...1909... Sun Apr 3 13:00:52 2011 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Sun, 03 Apr 2011 13:00:52 +0200 Subject: [Gambas-user] How to find out internet status In-Reply-To: References: Message-ID: <4D985364.50206@...1909...> Il 03/04/2011 11:31, Ganesh Kumar ha scritto: > Hi Guys, > > I am new to Gambas with networking field. I want find out internet > connection in > my system or NOT. > I don't use ping command. > > ping www.yahoo.com its pinging...yes internet connection is there is > working fine. > > one day yahoo server is down.. How to find out..try another website.. > Its not a correct method. > any other method will be there.. please help me.. > The problem is that to see if an internet connection is working is not so simple. You can have a working connection, but with misconfigured name resolvers: "ping www.yahoo.com" would not work. Or you can have everything good, but your firewall does not allow ping (or the remote server does not replies to ping's). Or you can have everything good, but for a few moments some under-ocean connection is down, so neither yahoo.com and microsoft.com work... To look at your modem to see if the ADSL is up, just tells you if your modem is up. To look for www.yahoo.com is something more, but not with ping. Probably you should try port 80 (http, perhaps using wget(1)) of several (3 or 4, for example) servers aound the world. If one of them replies, then your internet connection is ok. If none replies, still your connection could be ok, but nevertheless your internet experience would be handicapped, so you can assume that the connection is broken. This is just an idea, probably more phylosophical than scientific! I hope it can help. Regards, -- Doriano Blengino "Listen twice before you speak. This is why we have two ears, but only one mouth." From tobiasboe1 at ...20... Sun Apr 3 14:27:19 2011 From: tobiasboe1 at ...20... (tobias) Date: Sun, 03 Apr 2011 14:27:19 +0200 Subject: [Gambas-user] How to find out internet status In-Reply-To: References: <1301827278.13547.4.camel@...2494...> Message-ID: <4D9867A7.70202@...20...> hi, this for sure isn't the best solution but my first thought was using ifconfig to determine if your internet interface (maybe eth0 or whatever) has an ip address which should mean that it is connected..? (i don't know how it works with a modem) this way you are at least independant of a test server. another way may be found according to the following test: in my case, i am connected to the internet via wlan0. my eth0 isn't connected to anything. in a terminal: $ curl --interface wlan0 google.de returns some html, while $ curl --interface eth0 google.de throws "curl: (7) Couldn't bind to 'eth0'" but if i bring my inet connection with wlan0 down $ curl --interface eth0 google.de and $ curl --interface wlan0 google.de both will give "curl: (6) Couldn't resolve host 'google.de'" if you look up the class Net in gb.net you'll find that there are status codes for those cases. so, if you haven't got a connection we are dependent on dns. but if you specify an non-existing host in a request with connection to the internet you'll get the same error. so far you are dependent of a test server again. maybe this test inspires you... regards, tobi From demosthenesk at ...626... Sun Apr 3 15:08:02 2011 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Sun, 03 Apr 2011 16:08:02 +0300 Subject: [Gambas-user] How to find out internet status In-Reply-To: <4D9867A7.70202@...20...> References: <1301827278.13547.4.camel@...2494...> <4D9867A7.70202@...20...> Message-ID: <1301836082.15595.18.camel@...2494...> As net admin i would check in order 1) ping the dns of LAN, for example a Linux box inside the LAN example ping 192.168.0.3 2)if there is no DNS in LAN, ping the DNS of ISP example ping the.dnsofisp.com 3) if you are sure that you have a working DNS, ping google example ping www.google.com 3) if there is no result make traceroute to check where the packets dont pass throught. example traceroute www.google.com 4) if the packets stops on your ip, you dont have set Default Route. Make a route command to check your routes. example: route 6) if you get user at ...2494...:~$ ping www.google.com ping: unknown host www.google.com or user at ...2494...:~$ traceroute www.google.com www.google.com: Name or service not known Cannot handle "host" cmdline arg `www.google.com' on position 1 (argc 1) your netcard is down. Make an ifconfig to check the status. example: ifconfig With this pseudo-algorithm you can check the status of your network on your machine. To fix something you must make something like route add default gw 192.168.0.3 or other ip and ifconfig eth0 up 192.168.0.1 the values: eth0, ip can be in your program as values from textboxes or valuebox. also you need to use EXEC or SHELL instruction and make a virtual terminal with a TextArea to get the result of SHELL or EXEC instruction. in quick thought that is the solution i made. -- Regards, Demosthenes From demosthenesk at ...626... Sun Apr 3 15:14:06 2011 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Sun, 03 Apr 2011 16:14:06 +0300 Subject: [Gambas-user] [Fwd: Re: How to find out internet status] Message-ID: <1301836446.15595.20.camel@...2494...> after step 2 you must check if you have set up to use DNS make user at ...2494...:~$ cat /etc/resolv.conf # Generated by NetworkManager nameserver 192.168.0.1 then you know which is the DNS you use. -- Regards, Demosthenes -------------- next part -------------- An embedded message was scrubbed... From: Demosthenes Koptsis Subject: Re: [Gambas-user] How to find out internet status Date: Sun, 03 Apr 2011 16:08:06 +0300 Size: 2033 URL: From jussi.lahtinen at ...626... Sun Apr 3 15:33:32 2011 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Sun, 3 Apr 2011 16:33:32 +0300 Subject: [Gambas-user] gb3 RC1: using structures to replace the loss of Mk$ functions In-Reply-To: <4D97D7FB.3020202@...1887...> References: <4D953CD6.8090001@...1887...> <201104011124.56714.gambas@...1...> <4D97D7FB.3020202@...1887...> Message-ID: > With respect to Doriano, how would one use the memcpy() statement in > GAMBAS? I see from Wikipedia that "void *memcpy(void *dest, const void > *src, size_t n);" shows the syntax in C. My two questions are, how do > you call external library functions in gb, and how would you translate > the C syntax to gb syntax? > Public Extern memcpy(pDest As Pointer, pSrc As Pointer, size As Integer) In "libc:6" Then example in Gambas; memcpy(Array1.Data, Array2.Data, Array2.Count * SizeOf(gb.Integer)) Jussi From doriano.blengino at ...1909... Sun Apr 3 15:42:00 2011 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Sun, 03 Apr 2011 15:42:00 +0200 Subject: [Gambas-user] gb3 RC1: using structures to replace the loss of Mk$ functions In-Reply-To: References: <4D953CD6.8090001@...1887...> <201104011124.56714.gambas@...1...> <4D97D7FB.3020202@...1887...> Message-ID: <4D987928.7000302@...1909...> Il 03/04/2011 15:33, Jussi Lahtinen ha scritto: >> With respect to Doriano, how would one use the memcpy() statement in >> GAMBAS? I see from Wikipedia that "void *memcpy(void *dest, const void >> *src, size_t n);" shows the syntax in C. My two questions are, how do >> you call external library functions in gb, and how would you translate >> the C syntax to gb syntax? >> >> > > Public Extern memcpy(pDest As Pointer, pSrc As Pointer, size As Integer) In > "libc:6" > > Then example in Gambas; > memcpy(Array1.Data, Array2.Data, Array2.Count * SizeOf(gb.Integer)) > Perhaps a more deep explanation of this idea (using memcpy) is due, but I must anticipate that I have no idea of the code the Kevis has right now. Moreover, I don't know well how Gambas2 and Gambas3 cope with sockets and, moreover further, I don't know well how Gambas3 works with pointers and addresses. So this memcpy could be totally crap. I imagined that the actual situation is something like this: When the server communicates some data to the client, it builds a string formed by several simple fields, and then sends this string in a single packet. It does this by using some convertion routines (mk_something$?). The client receives a packet, composed by a single string, and breaks this string into the original fields basing on the first character of the string, again using some conversion routine. If these conversion routines are no more available, two problems arise: how to send several fields as a single packet, and how to break a single packet into several fields. While it is true that structures would elegantly solve this kind of problem, it is also true, as Kevin said, that a lot of lines of code must be written - If I well understand, these different structures counts up to a hundred or perhaps more. If, instead of structures which, by the words of Benoit, are mainly intended to be used to interface to external libraries, one should uses classes (again Benoit words), Kevin had to produce a hundred *files*. Nice... But even so, objects/classes are not "better structures", they are very different, because they carry a lot of more things, and overhead (both at write-time and at runtime). Is this overhead good? Yes, if it is useful. No, if the only thing I want is to aggregate data. The only good added thing in using objects vs structures it's their inherited serialization mechanism, but perhaps this is not enough advantage to switch to them. So, when Kevin lamented about the missing functions, I simply thought that he missed a way to copy data from a string to a structure. This _could_ be easily done with memcpy(). But then I forgot to think to the other problem, how to construct a string from a structure. Is this a problem too, right? Well, this is different because, if I am not wrong, gambas does not let you to write inside its strings. And, at last, I think that Kevin would be happy to keep its code as much as possible. I mean - to write a lot of code to declare structures is a big deal. So, one solution could be this one: you know how to transform integers, but not floating point? Well, transform them in ASCII representation... something like "0012.428". Use a fixed length for units and decimals - I think that in your game there are not numbers so extreme to require exponential notation like "1.3E+12". Otherwise, you have to write your structures or, perhaps, objects. Better would be to write all the structures in a single file, in order to share that file between client and server (an "#include" would be perfect, if available). But then, it is difficult to keep all of them in an array... so we are at the beginning again. I think that a general mechanism to move bytes around, in Gambas, would be useful for a lot of things. In fact C, a mature and robust language, has powerful structures, but it has also memcpy(); I could cite other languages too. It would solve completely the "Kevin Problem". To conclude, I am not able to find a solution, but may be that the trick of using ascii for numbers can help. Regards, -- Doriano Blengino "Listen twice before you speak. This is why we have two ears, but only one mouth." From gambas at ...1... Sun Apr 3 20:27:40 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sun, 3 Apr 2011 20:27:40 +0200 Subject: [Gambas-user] gb3 RC1: using structures to replace the loss of Mk$ functions In-Reply-To: <201104011124.56714.gambas@...1...> References: <4D953CD6.8090001@...1887...> <201104011124.56714.gambas@...1...> Message-ID: <201104032027.40695.gambas@...1...> > > 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. > > > > I can deal with all of that, but right now I'm just trying to make it > > work without the program becoming ridiculously complex and/or > > inefficient. > > > > I have up to 256 different transaction types shared by the client and > > server. Each one is represented by a different structure containing > > multiple datatypes. The structures range from a few bytes to many KB of > > data. Values are assigned to a structure when a transaction must be > > sent, then the structure is sent by the client or server. The recipient > > then parses the structure and assigns its values to different variables. > > > > Each transaction has an "ID" which represents the order in which it was > > sent and where it should be assigned in the recipient's transaction > > queue array. This ensures that transactions received out of order are > > processed in order. Both the client and the server have their own > > transaction queues that store the transactions they receive. > > > > The transaction IDs range from 0-255, so originally I had a transaction > > queue array that was something like this: > > > > Public ts[256, 3] As String ' Server transactions (256: Queue Position, > > 3: Status, Type, Data). Status = "new" or "old". > > > > Each element of the transaction queue array was generic, meaning it > > could store any transaction type regardless of what data it contained. > > Now that I'm using structures, the transaction data is uniquely > > represented. Instead of a generic "data" string element that I could > > create/parse with MkSingle()/Single@(), I have a unique structure. How > > can I store a unique structure in a generic array of structures? Is this > > possible? Right now I'm thinking I need to have transaction queue arrays > > of [256,256] structures (65536 structures) to accommodate this. Not so > > good when any particular structure could be up to 198 KB + header. > > > > Any ideas are appreciated, as this is starting to make me postal! :) > > I haven't read the all thread, but: > > Using a structure just allow you to directly use the READ/WRITE instruction > because they have a build-in serialization support. But as you noticed, > handling a lot of different structures is not handy! > > Hopefully, you don't have to use structures. You can create one class for > each packet type, and let them inherit the same parent class. Each class > will have its own write method (and read) that will serialize/unserialize > the packet to/from a given stream (that should be a Socket). > > Regards, OK... I should have read all that more carefully, as I have said rubbish. Sending a message to an UDP socket can only be done with a string or a structure. If you use several WRITE instructions, you will get one message by WRITE. Not a good thing... So my answer about object-oriented programming is useless. Or at least it will help you to understand what object-oriented programming is. So now ? I think I have to think... The problem with Mk*() functions is their endianness dependency. Maybe I can make these functions endianness-aware, but it is not a immediate job. Kevin, another Gambas 3 RC1 release killer. ;-) -- Beno?t Minisini From kevinfishburne at ...1887... Sun Apr 3 22:07:34 2011 From: kevinfishburne at ...1887... (Kevin Fishburne) Date: Sun, 03 Apr 2011 16:07:34 -0400 Subject: [Gambas-user] gb3 RC1: using structures to replace the loss of Mk$ functions In-Reply-To: <201104032027.40695.gambas@...1...> References: <4D953CD6.8090001@...1887...> <201104011124.56714.gambas@...1...> <201104032027.40695.gambas@...1...> Message-ID: <4D98D386.9010406@...1887...> On 04/03/2011 02:27 PM, Beno?t Minisini wrote: > > OK... I should have read all that more carefully, as I have said rubbish. > > Sending a message to an UDP socket can only be done with a string or a > structure. If you use several WRITE instructions, you will get one message by > WRITE. Not a good thing... > > So my answer about object-oriented programming is useless. Or at least it will > help you to understand what object-oriented programming is. I appreciate the explanation. It's definitely something I need to learn more about if I want to grow as a programmer. > So now ? I think I have to think... The problem with Mk*() functions is their > endianness dependency. Maybe I can make these functions endianness-aware, but > it is not a immediate job. For endianness to matter the client and server programs would have to have different endiannesses and the program receiving the UDP string would have to be converting the string back into variables using functions like Single@ or equivalents. If the sender was big-endian and the receiver was little-endian then the bit order would be backward on the receiving end and thus an unexpected value. The problem is that Mk*() and *@() are simple functions that don't directly have anything to do with networking or UDP packets. That is just the only use anyone's thought of so far. Because of that I don't see how these functions could possibly be made endianness-aware in that context. If endianness is an issue with a particular program, the solution would be for the programmer to add endianness data manually to the UDP packet so the receiver would know how to convert it. The same thing would probably have to be done if a program wrote a bunch of variables to a data file, then sent the data file to a program with a different endianness that needed to read it back into variables. To assist this solution all the Mk*() and *@() functions could have an optional parameter to specify endianness, defaulting to the host architecture's endianness if not otherwise specified. For now I may actually use file I/O to convert the values back and forth, though I'll be looking at memcpy too. > Kevin, another Gambas 3 RC1 release killer. ;-) Haha, sorry. -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sales at ...1887... phone: (770) 853-6271 From kevinfishburne at ...1887... Sun Apr 3 22:09:55 2011 From: kevinfishburne at ...1887... (Kevin Fishburne) Date: Sun, 03 Apr 2011 16:09:55 -0400 Subject: [Gambas-user] gb3 RC1: using structures to replace the loss of Mk$ functions In-Reply-To: References: <4D953CD6.8090001@...1887...> <201104011124.56714.gambas@...1...> <4D97D7FB.3020202@...1887...> Message-ID: <4D98D413.5020902@...1887...> On 04/03/2011 09:33 AM, Jussi Lahtinen wrote: >> With respect to Doriano, how would one use the memcpy() statement in >> GAMBAS? I see from Wikipedia that "void *memcpy(void *dest, const void >> *src, size_t n);" shows the syntax in C. My two questions are, how do >> you call external library functions in gb, and how would you translate >> the C syntax to gb syntax? > Public Extern memcpy(pDest As Pointer, pSrc As Pointer, size As Integer) In > "libc:6" > > Then example in Gambas; > memcpy(Array1.Data, Array2.Data, Array2.Count * SizeOf(gb.Integer)) Awesome, thank you. That's a damn powerful ability that I didn't know about. Time to see what else useful is out there in C-land. :) -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sales at ...1887... phone: (770) 853-6271 From doriano.blengino at ...1909... Sun Apr 3 22:51:53 2011 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Sun, 03 Apr 2011 22:51:53 +0200 Subject: [Gambas-user] gb3 RC1: using structures to replace the loss of Mk$ functions In-Reply-To: <4D98D386.9010406@...1887...> References: <4D953CD6.8090001@...1887...> <201104011124.56714.gambas@...1...> <201104032027.40695.gambas@...1...> <4D98D386.9010406@...1887...> Message-ID: <4D98DDE9.9040900@...1909...> Il 03/04/2011 22:07, Kevin Fishburne ha scritto: > On 04/03/2011 02:27 PM, Beno?t Minisini wrote: > >> OK... I should have read all that more carefully, as I have said rubbish. >> >> Sending a message to an UDP socket can only be done with a string or a >> structure. If you use several WRITE instructions, you will get one message by >> WRITE. Not a good thing... >> >> So my answer about object-oriented programming is useless. Or at least it will >> help you to understand what object-oriented programming is. >> > I appreciate the explanation. It's definitely something I need to learn > more about if I want to grow as a programmer. > > >> So now ? I think I have to think... The problem with Mk*() functions is their >> endianness dependency. Maybe I can make these functions endianness-aware, but >> it is not a immediate job. >> > For endianness to matter the client and server programs would have to > have different endiannesses and the program receiving the UDP string > would have to be converting the string back into variables using > functions like Single@ or equivalents. If the sender was big-endian and > the receiver was little-endian then the bit order would be backward on > the receiving end and thus an unexpected value. > Well, typically this is solved by macros like "hton" in the C library. This macro inverts the bytes on little endian machines, and does nothing on big endian machines. The Internet is big endian, if I well remember - i.e., it surely transfers the MSB first. It would suffice that the Gambas WRITE instruction swapped the bytes if the machine is little endian, like Intel machines, if data type is word, integer, long or float. In order to produce a single packet from several fields, they could be specified on a single WRITE, or a semicolon could be used as separator like in the PRINT instruction. Just a thought, regards, -- Doriano Blengino "Listen twice before you speak. This is why we have two ears, but only one mouth." From gambas at ...1... Mon Apr 4 00:47:55 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Mon, 4 Apr 2011 00:47:55 +0200 Subject: [Gambas-user] New Gambas website design Message-ID: <201104040047.55715.gambas@...1...> Hi, Here is a screenshot of the upcoming new Gambas website. I am not satisfied with the image in the middle of the page. If someone have ideas, or can design a better image, he will receive big thanks! The aim of that image is showing the logo and visually describing the development environment and/or the Gambas components. Now I'm waiting for help and comments... Regards, -- Beno?t Minisini -------------- next part -------------- A non-text attachment was scrubbed... Name: new-website.jpeg Type: image/jpeg Size: 159550 bytes Desc: not available URL: From support at ...2529... Mon Apr 4 01:15:25 2011 From: support at ...2529... (John Spikowski) Date: Sun, 03 Apr 2011 16:15:25 -0700 Subject: [Gambas-user] New Gambas website design In-Reply-To: <201104040047.55715.gambas@...1...> References: <201104040047.55715.gambas@...1...> Message-ID: <1301872525.2681.30.camel@...2530...> On Mon, 2011-04-04 at 00:47 +0200, Beno?t Minisini wrote: > I am not satisfied with the image in the middle of the page. I think it looks fine and helps the 'branding' aspect of Gambas. From gambas at ...1... Mon Apr 4 02:46:58 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Mon, 4 Apr 2011 02:46:58 +0200 Subject: [Gambas-user] gb3 RC1: using structures to replace the loss of Mk$ functions In-Reply-To: <4D953CD6.8090001@...1887...> References: <4D953CD6.8090001@...1887...> Message-ID: <201104040246.58658.gambas@...1...> > 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. > ... Finally I come with a solution. Well I hope. I added three new methods to the Stream class (and so to its child classes: File, Socket, UdpSocket...) in revision #3730. Stream.Begin(), Stream.Send() and Stream.Drop(). All WRITE instructions between a Stream.Begin() and a Stream.Send() will be merged, and send in one shot when Stream.Send() is called. Stream.Drop() just cancels that process. That way, to forge and send a packet to your UdpSocket, instead of doing something like: Write #MyUdpSocket, Chr$(42) & MkShort$(A) & MkInt$(B) & MkFloat$(C) & SomeString ... You will do: MyUdpSocket.Begin Write #MyUdpSocket, 42 As Byte Write #MyUdpSocket, A As Short Write #MyUdpSocket, B As Integer Write #MyUdpSocket, C As Float Write #MyUdpSocket, SomeString, Len(SomeString) MyUdpSocket.Send To read the packet, just use the Read instruction. The UdpSocket already buffers the received packet internally. All that should allow you to do the same thing as before with Mk*() functions, with more lines of code, but with endianness support, without adding too much code to the interpreter. Please tell me that you can do something with that, I have a release candidate to prepare. :-) Regards, -- Beno?t Minisini From kevinfishburne at ...1887... Mon Apr 4 06:26:24 2011 From: kevinfishburne at ...1887... (Kevin Fishburne) Date: Mon, 04 Apr 2011 00:26:24 -0400 Subject: [Gambas-user] gb3 RC1: using structures to replace the loss of Mk$ functions In-Reply-To: <201104040246.58658.gambas@...1...> References: <4D953CD6.8090001@...1887...> <201104040246.58658.gambas@...1...> Message-ID: <4D994870.4040807@...1887...> On 04/03/2011 08:46 PM, Beno?t Minisini wrote: > Finally I come with a solution. Well I hope. > > I added three new methods to the Stream class (and so to its child classes: > File, Socket, UdpSocket...) in revision #3730. > > Stream.Begin(), Stream.Send() and Stream.Drop(). > > All WRITE instructions between a Stream.Begin() and a Stream.Send() will be > merged, and send in one shot when Stream.Send() is called. > > Stream.Drop() just cancels that process. > > That way, to forge and send a packet to your UdpSocket, instead of doing > something like: > > Write #MyUdpSocket, Chr$(42)& MkShort$(A)& MkInt$(B)& MkFloat$(C) > & SomeString ... > > You will do: > > MyUdpSocket.Begin > Write #MyUdpSocket, 42 As Byte > Write #MyUdpSocket, A As Short > Write #MyUdpSocket, B As Integer > Write #MyUdpSocket, C As Float > Write #MyUdpSocket, SomeString, Len(SomeString) > MyUdpSocket.Send > > To read the packet, just use the Read instruction. The UdpSocket already > buffers the received packet internally. > > All that should allow you to do the same thing as before with Mk*() functions, > with more lines of code, but with endianness support, without adding too much > code to the interpreter. > > Please tell me that you can do something with that, I have a release candidate > to prepare. :-) Excellent, that's an elegant solution. Thanks! Is it possible to read one or more values from the beginning of the packet normally, then read the remaining data into a single string? Something like this: Public Sub UDP_Read() Dim id As Byte Dim type As Byte Dim data As String Read #udp, id As Byte Read #udp, type As Byte Read #udp, data, Lof(udp) - 2 End If this works (and I don't see why it wouldn't), then everything is fixed. I can have a transaction array that can store any transaction type by saving the "payload" as a string and decoding it later with the *@() functions. -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sales at ...1887... phone: (770) 853-6271 From gambas at ...1... Mon Apr 4 10:20:44 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Mon, 4 Apr 2011 10:20:44 +0200 Subject: [Gambas-user] gb3 RC1: using structures to replace the loss of Mk$ functions In-Reply-To: <4D994870.4040807@...1887...> References: <4D953CD6.8090001@...1887...> <201104040246.58658.gambas@...1...> <4D994870.4040807@...1887...> Message-ID: <201104041020.44376.gambas@...1...> > Excellent, that's an elegant solution. Thanks! Is it possible to read > one or more values from the beginning of the packet normally, then read > the remaining data into a single string? Something like this: > > Public Sub UDP_Read() > > Dim id As Byte > Dim type As Byte > Dim data As String > > Read #udp, id As Byte > Read #udp, type As Byte > Read #udp, data, Lof(udp) - 2 > > End > > If this works (and I don't see why it wouldn't), then everything is > fixed. I can have a transaction array that can store any transaction > type by saving the "payload" as a string and decoding it later with the > *@() functions. You should better decode the packet directly with READ instructions. And beware that the READ syntax has changed in Gambas 3. Look at the documentation! Regards, -- Beno?t Minisini From bugcy013 at ...626... Mon Apr 4 11:35:50 2011 From: bugcy013 at ...626... (Ganesh Kumar) Date: Mon, 4 Apr 2011 15:05:50 +0530 Subject: [Gambas-user] How to find out internet status In-Reply-To: <4D9867A7.70202@...20...> References: <1301827278.13547.4.camel@...2494...> <4D9867A7.70202@...20...> Message-ID: Thanks for your kindly replay. > another way may be found according to the following test: > in my case, i am connected to the internet via wlan0. my eth0 isn't > connected to anything. in a terminal: > $ curl --interface wlan0 google.de > returns some html, while > $ curl --interface eth0 google.de > throws "curl: (7) Couldn't bind to 'eth0'" > > but if i bring my inet connection with wlan0 down > $ curl --interface eth0 google.de > and > $ curl --interface wlan0 google.de > both will give "curl: (6) Couldn't resolve host 'google.de'" I got one example program. I have to try How to execute code. I am enabled the componet-->gb.net & gb.net.curl program compiled successfully. and run the program not getting output.. . /** How to execute code **/ My code. http://pastebin.com/AyMP61JW please guide me.. -Ganesh -- Did I learn something today? If not, I wasted it. From demosthenesk at ...626... Mon Apr 4 12:00:09 2011 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Mon, 04 Apr 2011 13:00:09 +0300 Subject: [Gambas-user] New Gambas website design In-Reply-To: <201104040047.55715.gambas@...1...> References: <201104040047.55715.gambas@...1...> Message-ID: <1301911209.24508.4.camel@...2493...> i will try for the image something... On Mon, 2011-04-04 at 00:47 +0200, Beno?t Minisini wrote: > Hi, > > Here is a screenshot of the upcoming new Gambas website. > > I am not satisfied with the image in the middle of the page. > > If someone have ideas, or can design a better image, he will receive big > thanks! > > The aim of that image is showing the logo and visually describing the > development environment and/or the Gambas components. > > Now I'm waiting for help and comments... > > Regards, > > ------------------------------------------------------------------------------ > 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 at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -- Regards, Demosthenes Koptsis. From demosthenesk at ...626... Mon Apr 4 13:03:32 2011 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Mon, 04 Apr 2011 14:03:32 +0300 Subject: [Gambas-user] New Gambas website design In-Reply-To: <201104040047.55715.gambas@...1...> References: <201104040047.55715.gambas@...1...> Message-ID: <1301915012.26587.1.camel@...2493...> what do you say about that style ? On Mon, 2011-04-04 at 00:47 +0200, Beno?t Minisini wrote: > Hi, > > Here is a screenshot of the upcoming new Gambas website. > > I am not satisfied with the image in the middle of the page. > > If someone have ideas, or can design a better image, he will receive big > thanks! > > The aim of that image is showing the logo and visually describing the > development environment and/or the Gambas components. > > Now I'm waiting for help and comments... > > Regards, > > ------------------------------------------------------------------------------ > 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 at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -- Regards, Demosthenes Koptsis. -------------- next part -------------- A non-text attachment was scrubbed... Name: image.jpeg Type: image/jpeg Size: 90561 bytes Desc: not available URL: From tobiasboe1 at ...20... Mon Apr 4 16:43:25 2011 From: tobiasboe1 at ...20... (tobias) Date: Mon, 04 Apr 2011 16:43:25 +0200 Subject: [Gambas-user] How to find out internet status In-Reply-To: References: <1301827278.13547.4.camel@...2494...> <4D9867A7.70202@...20...> Message-ID: <4D99D90D.8090703@...20...> hi, your whole code works fine for me. are you sure that you really call this routine in the main program? this is the only reason i can think of... From gambas at ...1... Mon Apr 4 18:51:37 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Mon, 4 Apr 2011 18:51:37 +0200 Subject: [Gambas-user] New Gambas website design In-Reply-To: <1301933154.21891.5.camel@...2494...> References: <201104040047.55715.gambas@...1...> <1301933154.21891.5.camel@...2494...> Message-ID: <201104041851.37752.gambas@...1...> > i made a second image with better image frames. > > what do you say, do you like this design ? > > we can change the images with screenshots of final release and no need > to be written ALPHA version... > > and if you like it you should give me a high resolution logo cause this > is pixelized on resize. > Mmfff. I'd like to have some transparency effect between pictures (just because it's cool). More cool would be having one HTML
for each different images, instead of just one. That way, it will be far easier to change the opacity and the layout of all the images. And here is the logo made by Fabien Bodard, in SVG format. Regards, -- Beno?t Minisini -------------- next part -------------- A non-text attachment was scrubbed... Name: Gambas 3 logo.svg Type: image/svg+xml Size: 38188 bytes Desc: not available URL: From kevinfishburne at ...1887... Mon Apr 4 20:44:51 2011 From: kevinfishburne at ...1887... (Kevin Fishburne) Date: Mon, 04 Apr 2011 14:44:51 -0400 Subject: [Gambas-user] gb3 RC1: using structures to replace the loss of Mk$ functions In-Reply-To: <201104041020.44376.gambas@...1...> References: <4D953CD6.8090001@...1887...> <201104040246.58658.gambas@...1...> <4D994870.4040807@...1887...> <201104041020.44376.gambas@...1...> Message-ID: <4D9A11A3.3050708@...1887...> On 04/04/2011 04:20 AM, Beno?t Minisini wrote: >> Excellent, that's an elegant solution. Thanks! Is it possible to read >> one or more values from the beginning of the packet normally, then read >> the remaining data into a single string? Something like this: >> >> Public Sub UDP_Read() >> >> Dim id As Byte >> Dim type As Byte >> Dim data As String >> >> Read #udp, id As Byte >> Read #udp, type As Byte >> Read #udp, data, Lof(udp) - 2 >> >> End >> >> If this works (and I don't see why it wouldn't), then everything is >> fixed. I can have a transaction array that can store any transaction >> type by saving the "payload" as a string and decoding it later with the >> *@() functions. > > You should better decode the packet directly with READ instructions. I would except the incoming transactions aren't processed immediately. They are stored in sequence by ID in a transaction queue array for later processing. Each client stores 256 server transactions and the server stores 256 client transactions for up to 2000 clients. That's why the payload has to stay a string until it is processed; otherwise it would have no way of being stored in an array. > And beware that the READ syntax has changed in Gambas 3. Look at the > documentation! I've been using gb3 for a while now and look at the docs often. :) I'll compile the latest revision of gb today and test out the new stuff. Good luck with gb3, I have a feeling it's coming very soon. -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sales at ...1887... phone: (770) 853-6271 From gambas at ...1... Tue Apr 5 00:48:09 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Tue, 5 Apr 2011 00:48:09 +0200 Subject: [Gambas-user] Release of Gambas 2.23 Message-ID: <201104050048.09783.gambas@...1...> Hi, I have released Gambas 2.23, maybe the last release of Gambas 2, as the release candidate of Gambas 3 is almost ready. I have removed some files from the source package, and now it is smaller. The removed files are normally automatically generated when you issue the "./reconf" command. So tell me if you have any problem compiling it. Here is the full changelog: ------------------------------------------------------------------------------- [DEVELOPMENT ENVIRONMENT] * NEW: Add support for Finnish language. * NEW: Support for the Romanian language. * NEW: Romanian translation made by Florin Iacob. * NEW: Czech translation updated by Radek Fry?t?k and Josef Kub??ek. * NEW: Add desktop and icon files. * NEW: Swedish translation updated. [INTERPRETER] * BUG: File.SetExt() now works correctly with files whose name begins with a dot. * BUG: Fix a memory leak that can lead to a crash in enumeration management. * BUG: The Stat.Perm[] property correctly returns execution permissions now. [COMPILER] * BUG: Correctly read long constants whose value is the lower possible Long value. * BUG: Define the LLONG_MAX constant if it is not defined. [GB.DB.FORM] * NEW: New Czech translation made by Radek Fry?t?k and Josef Kub??ek. [GB.DB.ODBC] * BUG: Table existence should be checked correctly now. [GB.DB.SQLITE3] * BUG: Detect integer primary key whatever the case used to write "integer". [GB.FORM] * NEW: New Czech translation made by Radek Fry?t?k and Josef Kub??ek. [GB.FORM.DIALOG] * NEW: New Czech translation made by Radek Fry?t?k and Josef Kub??ek. [GB.FORM.MDI] * NEW: New Czech translation made by Radek Fry?t?k and Josef Kub??ek. [GB.GTK] * BUG: Cursor is correctly updated with the value of Application.Busy now. * BUG: Stop Event now works during the Close event of a modal form. * BUG: Fix a memory leak that leads to a crash in the TextArea.Paste() method. * BUG: Fix Label automatic resize. * BUG: Settings the text of a transparent Label or TextLabel having no text works correctly now. * BUG: SpinBox Value property should always be accurate now. * BUG: TextBox.Selection.Length now returns the correct value. * BUG: Calling Menu.Children.Clear() or deleting a menu during a Menu Show event should not crash anymore. * BUG: A parent menu does not raise the Click event anymore. * BUG: GridView correctly receives the focus now. * BUG: Draw.Ellipse() now correctly draws a pie when filling is enabled. * BUG: Fix ComboBox.Add() when the position argument is specified. * BUG: Fix ListBox.Add() when the position argument is specified. * BUG: MoveScaled works correctly for positions and sizes that are not a multiple of Desktop.Scale. * BUG: Key[] does not print GTK+ warning anymore when getting a null string as argument. * BUG: Mouse.Blank cursor works as expected now. * BUG: Relative font sizes are correctly interpreted in rich text now. [GB.NET.CURL] * NEW: Asynchronous FtpClient and HttpClient objects are now automatically kept alive until their operation is finished. [GB.QT4] * BUG: MoveScaled works correctly for positions and sizes that are not a multiple of Desktop.Scale. ------------------------------------------------------------------------------- Regards, -- Beno?t Minisini From gambas at ...1... Tue Apr 5 00:49:09 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Tue, 5 Apr 2011 00:49:09 +0200 Subject: [Gambas-user] New website Message-ID: <201104050049.09592.gambas@...1...> Hi, The new website has been uploaded to sourceforge. Note that most of the page are actually stored on gambasdoc.org, and so are not up to date yet. And note that the Gambas 3 button is still disabled. :-) Regards, -- Beno?t Minisini From support at ...2529... Tue Apr 5 01:51:17 2011 From: support at ...2529... (John Spikowski) Date: Mon, 04 Apr 2011 16:51:17 -0700 Subject: [Gambas-user] New website In-Reply-To: <201104050049.09592.gambas@...1...> References: <201104050049.09592.gambas@...1...> Message-ID: <1301961077.2122.52.camel@...2530...> On Tue, 2011-04-05 at 00:49 +0200, Beno?t Minisini wrote: > The new website has been uploaded to sourceforge. It would be great if you could get a few Gambas 3 screen shots in the gallery. It's a bit dated as it stands. From kevinfishburne at ...1887... Tue Apr 5 03:23:59 2011 From: kevinfishburne at ...1887... (Kevin Fishburne) Date: Mon, 04 Apr 2011 21:23:59 -0400 Subject: [Gambas-user] New Gambas website design In-Reply-To: <201104040047.55715.gambas@...1...> References: <201104040047.55715.gambas@...1...> Message-ID: <4D9A6F2F.4010300@...1887...> On 04/03/2011 06:47 PM, Beno?t Minisini wrote: > Now I'm waiting for help and comments.. I just noticed that in Chrome one of the zoom levels creates artifacts in some of the text. Zooming way in (making things bigger) causes Chrome to be unable to display the page, giving the "Aw, Snap!" error. What's worse is that Chrome remembers that zoom setting so it happens every time I go to the GAMBAS web site now and I can't undo it. Firefox does not have this problem. -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sales at ...1887... phone: (770) 853-6271 From kevinfishburne at ...1887... Tue Apr 5 07:39:13 2011 From: kevinfishburne at ...1887... (Kevin Fishburne) Date: Tue, 05 Apr 2011 01:39:13 -0400 Subject: [Gambas-user] gb3 RC1: using structures to replace the loss of Mk$ functions In-Reply-To: <4D9A11A3.3050708@...1887...> References: <4D953CD6.8090001@...1887...> <201104040246.58658.gambas@...1...> <4D994870.4040807@...1887...> <201104041020.44376.gambas@...1...> <4D9A11A3.3050708@...1887...> Message-ID: <4D9AAB01.4000606@...1887...> On 04/04/2011 02:44 PM, Kevin Fishburne wrote: > On 04/04/2011 04:20 AM, Beno?t Minisini wrote: >> >> You should better decode the packet directly with READ instructions. > > I would except the incoming transactions aren't processed immediately. > They are stored in sequence by ID in a transaction queue array for later > processing. Each client stores 256 server transactions and the server > stores 256 client transactions for up to 2000 clients. That's why the > payload has to stay a string until it is processed; otherwise it would > have no way of being stored in an array. > Alright, I've transformed all the networking code to the suggested solution, and it's so close to working I can smell it. While there is more code now, I like it better as it's easier to read (important!). Some code: Dim id As Byte Dim type As Byte Dim data As String id = Read #udp As Byte type = Read #udp As Byte If Eof(udp) = False Then data = Read #udp, Lof(udp) - 2 Using "Lof(udp) - 2" as the length seems to remove bytes from the end rather than the beginning. I get an unwanted byte at the beginning as well. Maybe this is a late April Fools joke about endianness? Other than that, the whole app is ready to put pixels on the screen again. -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sales at ...1887... phone: (770) 853-6271 From kevinfishburne at ...1887... Tue Apr 5 08:41:09 2011 From: kevinfishburne at ...1887... (Kevin Fishburne) Date: Tue, 05 Apr 2011 02:41:09 -0400 Subject: [Gambas-user] gb3 RC1: using structures to replace the loss of Mk$ functions In-Reply-To: <4D9AAB01.4000606@...1887...> References: <4D953CD6.8090001@...1887...> <201104040246.58658.gambas@...1...> <4D994870.4040807@...1887...> <201104041020.44376.gambas@...1...> <4D9A11A3.3050708@...1887...> <4D9AAB01.4000606@...1887...> Message-ID: <4D9AB985.7050604@...1887...> On 04/05/2011 01:39 AM, Kevin Fishburne wrote: > Alright, I've transformed all the networking code to the suggested > solution, and it's so close to working I can smell it. While there is > more code now, I like it better as it's easier to read (important!). > > Some code: > > Dim id As Byte > Dim type As Byte > Dim data As String > > id = Read #udp As Byte > type = Read #udp As Byte > If Eof(udp) = False Then data = Read #udp, Lof(udp) - 2 > > Using "Lof(udp) - 2" as the length seems to remove bytes from the end > rather than the beginning. I get an unwanted byte at the beginning as well. > > Maybe this is a late April Fools joke about endianness? Other than that, > the whole app is ready to put pixels on the screen again After checking my code for bugs (none found, knock on wood) and doing some experimentation, it looks like sending certain data types using the new method works fine, but other data has an extra byte added in front of or in-between variables. Any info about what's really happening is appreciated. Again what I'm trying to do is send an ID (Byte), type (Byte), and a sequence of arbitrary variables via UDP. When they're received, the ID and type are read normally as Bytes into variables and the rest of the data is read into a string and stored in an array for later processing. The arbitrary variables stored as a string (everything after ID and type) are later interpreted via the *@() functions and assigned to variables. To do this I just created a different UDP_Write procedure for each transaction type so the packets/transactions are properly assembled. I've attached some code excerpts if anyone desires greater specificity. In summary of the attachments, the failure basically goes like this: ' Send username and password. ' Send the transaction. udp.Begin Write #udp, id As Byte Write #udp, 50 As Byte Write #udp, credentials As String ' credentials = "myusername,mypassword" udp.Send ' Read the username and password. id = Read #udp As Byte type = Read #udp As Byte If Eof(udp) = False Then data = Read #udp, Lof(udp) ' Username and password separated elsewhere, not a problem. data should be "myusername,mypassword" but it actually is "^Uanon at ...2571...,mypassword". "\x15" prepends the string, strangely. I think this errant byte also precedes any number of datatypes that are send separately and later read as a single string. What is this byte, and how may I get rid of it? -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sales at ...1887... phone: (770) 853-6271 -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: Failed Write Data URL: -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: Failed Write Example URL: -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: Network.UDP_Read URL: -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: Network.UDP_Write_*() URL: From bugcy013 at ...626... Tue Apr 5 08:52:07 2011 From: bugcy013 at ...626... (Ganesh Kumar) Date: Tue, 5 Apr 2011 12:22:07 +0530 Subject: [Gambas-user] How to find out internet status In-Reply-To: <4D99D90D.8090703@...20...> References: <1301827278.13547.4.camel@...2494...> <4D9867A7.70202@...20...> <4D99D90D.8090703@...20...> Message-ID: Hi. Sir., > your whole code works fine for me. > are you sure that you really call this routine in the main program? this > is the only reason i can think of... My scenario is Create one form check Internet status .. If Internet is there means Execute my script otherwise skip the form I have create form execution script are ready ..but Internet checking its my main problem. How inbulid to this code http://pastebin.com/AyMP61JW This script is working.. but I working gambas terminal mode , How to with build in GUI mode with in from...please guide me.. -Ganesh. -- Did I learn something today? If not, I wasted it. From gambas at ...1... Tue Apr 5 09:34:34 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Tue, 5 Apr 2011 09:34:34 +0200 Subject: [Gambas-user] gb3 RC1: using structures to replace the loss of Mk$ functions In-Reply-To: <4D9AB985.7050604@...1887...> References: <4D953CD6.8090001@...1887...> <4D9AAB01.4000606@...1887...> <4D9AB985.7050604@...1887...> Message-ID: <201104050934.34854.gambas@...1...> > On 04/05/2011 01:39 AM, Kevin Fishburne wrote: > > Alright, I've transformed all the networking code to the suggested > > solution, and it's so close to working I can smell it. While there is > > more code now, I like it better as it's easier to read (important!). > > > > Some code: > > Dim id As Byte > > Dim type As Byte > > Dim data As String > > > > id = Read #udp As Byte > > type = Read #udp As Byte > > If Eof(udp) = False Then data = Read #udp, Lof(udp) - 2 > > > > Using "Lof(udp) - 2" as the length seems to remove bytes from the end > > rather than the beginning. I get an unwanted byte at the beginning as > > well. > > > > Maybe this is a late April Fools joke about endianness? Other than that, > > the whole app is ready to put pixels on the screen again > > After checking my code for bugs (none found, knock on wood) and doing > some experimentation, it looks like sending certain data types using the > new method works fine, but other data has an extra byte added in front > of or in-between variables. Any info about what's really happening is > appreciated. > > Again what I'm trying to do is send an ID (Byte), type (Byte), and a > sequence of arbitrary variables via UDP. When they're received, the ID > and type are read normally as Bytes into variables and the rest of the > data is read into a string and stored in an array for later processing. > The arbitrary variables stored as a string (everything after ID and > type) are later interpreted via the *@() functions and assigned to > variables. To do this I just created a different UDP_Write procedure for > each transaction type so the packets/transactions are properly > assembled. I've attached some code excerpts if anyone desires greater > specificity. > > In summary of the attachments, the failure basically goes like this: > > ' Send username and password. > ' Send the transaction. > udp.Begin > Write #udp, id As Byte > Write #udp, 50 As Byte > Write #udp, credentials As String ' credentials = > "myusername,mypassword" > udp.Send > > ' Read the username and password. > id = Read #udp As Byte > type = Read #udp As Byte > If Eof(udp) = False Then data = Read #udp, Lof(udp) ' Username and > password separated elsewhere, not a problem. > > data should be "myusername,mypassword" but it actually is > "^Uanon at ...2571...,mypassword". "\x15" prepends the string, strangely. I > think this errant byte also precedes any number of datatypes that are > send separately and later read as a single string. What is this byte, > and how may I get rid of it? Not strange if you read the doc carefully. :-) When using "WRITE #Stream, AString As String", the length of the string is always written before the string contents. To just write the string contents, you must use the second syntax of WRITE: WRITE #Stream, String, Length -- Beno?t Minisini From kevinfishburne at ...1887... Tue Apr 5 09:54:37 2011 From: kevinfishburne at ...1887... (Kevin Fishburne) Date: Tue, 05 Apr 2011 03:54:37 -0400 Subject: [Gambas-user] gb3 RC1: using structures to replace the loss of Mk$ functions In-Reply-To: <201104050934.34854.gambas@...1...> References: <4D953CD6.8090001@...1887...> <4D9AAB01.4000606@...1887...> <4D9AB985.7050604@...1887...> <201104050934.34854.gambas@...1...> Message-ID: <4D9ACABD.6070204@...1887...> On 04/05/2011 03:34 AM, Beno?t Minisini wrote: > > Not strange if you read the doc carefully. :-) > > When using "WRITE #Stream, AString As String", the length of the string is > always written before the string contents. > > To just write the string contents, you must use the second syntax of WRITE: > > WRITE #Stream, String, Length > http://www.youtube.com/watch?v=cJPa8dGBxfM I'll get back to you in the morning if it's still not working. Damn... -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sales at ...1887... phone: (770) 853-6271 From kevinfishburne at ...1887... Tue Apr 5 10:11:37 2011 From: kevinfishburne at ...1887... (Kevin Fishburne) Date: Tue, 05 Apr 2011 04:11:37 -0400 Subject: [Gambas-user] gb3 RC1: using structures to replace the loss of Mk$ functions In-Reply-To: <4D9ACABD.6070204@...1887...> References: <4D953CD6.8090001@...1887...> <4D9AAB01.4000606@...1887...> <4D9AB985.7050604@...1887...> <201104050934.34854.gambas@...1...> <4D9ACABD.6070204@...1887...> Message-ID: <4D9ACEB9.20005@...1887...> On 04/05/2011 03:54 AM, Kevin Fishburne wrote: > http://www.youtube.com/watch?v=cJPa8dGBxfM > > I'll get back to you in the morning if it's still not working. Damn.. Works. Thank you. -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sales at ...1887... phone: (770) 853-6271 From bugcy013 at ...626... Tue Apr 5 12:12:08 2011 From: bugcy013 at ...626... (Ganesh Kumar) Date: Tue, 5 Apr 2011 15:42:08 +0530 Subject: [Gambas-user] shell script output controls gambas Message-ID: Hi Gurus, I am new to Gambas. I have executed shell script,, the shell script output control the decision. My script ///////////////////////////////////////////////////////////////////////////////////// #! /biin/bash host google.com>/dev/null if [ $? -eq 0 ]; then echo "Internet connection is UP" else echo "Internet connection is DOWN" fi ////////////////////////////////////////////////////////////////////////////////////// When script output controls the decision controls the gambas form. How to write gambas code. Connection Up meas ---------> Execute another script Connection Down means ---------> skip the current form Any one help me.. Advance thanks.. --- -Ganesh. -- Did I learn something today? If not, I wasted it. From ron at ...1740... Tue Apr 5 13:25:34 2011 From: ron at ...1740... (Ron) Date: Tue, 05 Apr 2011 13:25:34 +0200 Subject: [Gambas-user] shell script output controls gambas In-Reply-To: References: Message-ID: <4D9AFC2E.50000@...1740...> On 5-4-2011 12:12, Ganesh Kumar wrote: > Hi Gurus, > > I am new to Gambas. I have executed shell script,, the shell script > output control the decision. > > My script > ///////////////////////////////////////////////////////////////////////////////////// > #! /biin/bash > host google.com>/dev/null > if [ $? -eq 0 ]; > then > echo "Internet connection is UP" > else > echo "Internet connection is DOWN" > fi > ////////////////////////////////////////////////////////////////////////////////////// > > When script output controls the decision controls the gambas form. > > How to write gambas code. > > > Connection Up meas ---------> Execute another script > > Connection Down means ---------> skip the current form > > Any one help me.. > > Advance thanks.. > --- > > -Ganesh. > > Maybe this helps you, it uses the ping command. http://domotiga.nl/browser/trunk/DomotiGa/Ping.module Regards, Ron_2nd. From jussi.lahtinen at ...626... Tue Apr 5 14:04:16 2011 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Tue, 5 Apr 2011 15:04:16 +0300 Subject: [Gambas-user] shell script output controls gambas In-Reply-To: References: Message-ID: Shell "YourScript.sh" To sStr If InStr(sStr, "UP") Then 'Internet connection is up, do something... Else 'Do something else. Endif Jussi On Tue, Apr 5, 2011 at 13:12, Ganesh Kumar wrote: > Hi Gurus, > > I am new to Gambas. I have executed shell script,, the shell script > output control the decision. > > My script > > ///////////////////////////////////////////////////////////////////////////////////// > #! /biin/bash > host google.com>/dev/null > if [ $? -eq 0 ]; > then > echo "Internet connection is UP" > else > echo "Internet connection is DOWN" > fi > > ////////////////////////////////////////////////////////////////////////////////////// > > When script output controls the decision controls the gambas form. > > How to write gambas code. > > > Connection Up meas ---------> Execute another script > > Connection Down means ---------> skip the current form > > Any one help me.. > > Advance thanks.. > --- > > -Ganesh. > > > -- > Did I learn something today? If not, I wasted it. > > > ------------------------------------------------------------------------------ > 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 at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From soleilpqd at ...626... Tue Apr 5 17:13:57 2011 From: soleilpqd at ...626... (=?UTF-8?B?UGjhuqFtIFF1YW5nIETGsMahbmc=?=) Date: Tue, 5 Apr 2011 22:13:57 +0700 Subject: [Gambas-user] Problem with Search & Replace dialog of Gambas 3 IDE Message-ID: Hello everyone and Benoit, I got a problem with the Search & Replace dialog of Gambas 3 IDE >From the editor area, I press Ctrl+F to open S&R dialog. The S&R dialog appears and ready haves focus (with the I-beam cursor blinks in the search text box). I type some text (including backspace) but nothing appears in the text box. So I close the R&S dialog, back to the editor area. The cursor of the editor are still at the last postion in the editor (of course). But now when I do something with the editor (click something, move the I-beam cursor...) every things that I typed in the R&S dialog before are applied into the editor at the cursor position ??? This problem happens sometime, not always. Second, I have some external functions in my program . But with 2 functions, if they are called, I will get signal 11 when exit the program (program started from IDE)(attached project). I want to know where this problem comes from: Gambas or my wrong calling those 2 external functions. Thank you! [OperatingSystem] OperatingSystem=Linux KernelRelease=2.6.35.11-83.fc14.i686 DistributionVendor=redhat DistributionRelease=Fedora release 14 (Laughlin) [System] CPUArchitecture=i686 TotalRam=1793500 kB Desktop=Gnome [Gambas] Gambas1=Not Installed Gambas2=2.22.0 Gambas2Path=/usr/local/bin/gbx2 *Gambas3=2.99.1* *Gambas3Path=/usr/local/bin/gbx3* -------------- next part -------------- A non-text attachment was scrubbed... Name: demoExtern-0.0.1.tar.gz Type: application/x-gzip Size: 4914 bytes Desc: not available URL: From tommyline at ...2525... Tue Apr 5 23:41:16 2011 From: tommyline at ...2525... (Tomek) Date: Tue, 05 Apr 2011 23:41:16 +0200 Subject: [Gambas-user] Can Gambas play mp3 Files? Message-ID: I've tried to use SDL music component to play mp3 file, but I can't. In Example Music player it loads and seems to start, but holds on 0:00:00 with no action or error. I tried Gambas 2 and Gambas 3 on Ubuntu Studio 10.10, Debian 6, Ubuntu Studio 11.04. No luck. Tomasz Kolodziejczyk --------------------------------------------- Ksiegowa radzi: Jak za?ozyc firme w 15 minut? http://linkint.pl/f2968 From sebikul at ...626... Wed Apr 6 01:01:26 2011 From: sebikul at ...626... (Sebi Kul) Date: Tue, 05 Apr 2011 20:01:26 -0300 Subject: [Gambas-user] Can Gambas play mp3 Files? In-Reply-To: References: Message-ID: <4D9B9F46.8010004@...626...> On mar 05 abr 2011 18:41:16 ART, Tomek wrote: > I've tried to use SDL music component to play mp3 file, but I can't. In Example Music player it loads and seems to start, but holds on 0:00:00 with no action or error. I tried Gambas 2 and Gambas 3 on Ubuntu Studio 10.10, Debian 6, Ubuntu Studio 11.04. No luck. > Tomasz Kolodziejczyk > > --------------------------------------------- > Ksiegowa radzi: Jak za?ozyc firme w 15 minut? > http://linkint.pl/f2968 > > > ------------------------------------------------------------------------------ > 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 at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user Have you read this [0] page? It explains how to install the proprietary codec. In short words: $ sudo apt-get install ubuntu-restricted-extras This is just for Ubuntu, i dont know exactly how to install the codec in the other distros PD: this could be added as a dependency when using ubuntu based distros [0]: https://help.ubuntu.com/community/RestrictedFormats/MP3 From gambas at ...2524... Wed Apr 6 03:17:19 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Wed, 06 Apr 2011 01:17:19 +0000 Subject: [Gambas-user] Issue 55 in gambas: extended ASCII codes in textarea control give GTK error. Message-ID: <0-6813199134517018827-9113086336965140938-gambas=googlecode.com@...2524...> Status: New Owner: ---- Labels: Version Type-Bug Priority-Medium OpSys-Any Dist-Any Arch-Any Desktop-Any GUI-Any New issue 55 by zachsmit... at ...626...: extended ASCII codes in textarea control give GTK error. http://code.google.com/p/gambas/issues/detail?id=55 Try, TextArea1.text = Chr(144) result: Gtk-CRITICAL **: gtk_text_buffer_emit_insert: assertion `g_utf8_validate (text, len, NULL)' failed No problem in QT. Version: TRUNK Revision: r3689 Operating system: Linux Distribution: ArchLinux Architecture: x86_64 GUI component: GTK+ Desktop used: Xfce From gambas at ...2524... Wed Apr 6 04:08:34 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Wed, 06 Apr 2011 02:08:34 +0000 Subject: [Gambas-user] Issue 56 in gambas: error with GTK textarea control when line property is set out of bounds Message-ID: <0-6813199134517018827-13243576107013926323-gambas=googlecode.com@...2524...> Status: New Owner: ---- Labels: Version Type-Bug Priority-Medium OpSys-Any Dist-Any Arch-Any Desktop-Any GUI-Any New issue 56 by zachsmit... at ...626...: error with GTK textarea control when line property is set out of bounds http://code.google.com/p/gambas/issues/detail?id=56 Try, TextArea1.line = -1 or set value too large (out of bounds) to get: Gtk-CRITICAL **: _gtk_text_line_char_locate: assertion `char_offset >= 0' failed Gtk-ERROR **: Char offset -1 is off the end of the line No problem in QT. Version: TRUNK Revision: r3689 Operating system: Linux Distribution: ArchLinux Architecture: x86_64 GUI component: GTK+ Desktop used: Xfce From bill-lancaster at ...2231... Wed Apr 6 11:26:44 2011 From: bill-lancaster at ...2231... (Bill-Lancaster) Date: Wed, 6 Apr 2011 02:26:44 -0700 (PDT) Subject: [Gambas-user] Tableview use of combobox problem Message-ID: <31331585.post@...1379...> I have a table view which has a list of values in column 0. I want to select from a range of items (sInstruments[]) in column 1 . This code:- IF tbvPerf.Column = 1 THEN tbvPerf.Edit(sInstruments, FALSE) works fine. But when another cell is selected the previous cell is goes blank. Where am I going wrong? -- View this message in context: http://old.nabble.com/Tableview-use-of-combobox-problem-tp31331585p31331585.html Sent from the gambas-user mailing list archive at Nabble.com. From eilert-sprachen at ...221... Wed Apr 6 12:29:31 2011 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Wed, 06 Apr 2011 12:29:31 +0200 Subject: [Gambas-user] Global reading of events Message-ID: <4D9C408B.9040701@...221...> I'd like to build something that hides areas with personally sensitive data in a program after a time when the user didn't do anything in the program. The easiest way to achieve this would be to watch all mouse and key events for the whole program and just count. A timer would look from time to time and if it's > 0 just reset the counter or otherwise hide the sensitive area. I tried to do it this way: PUBLIC SUB Timer2_Timer() IF tab.Visible = TRUE THEN IF Timer2EventZlr > 0 THEN Timer2EventZlr = 0 ELSE tab.Visible = FALSE END IF ELSE 'for debugging purposes, lets it pop up again tab.Visible = TRUE Timer2EventZlr = 0 END IF END PUBLIC SUB Form_KeyPress() INC Timer2EventZlr END PUBLIC SUB Form_MouseDown() INC Timer2EventZlr END PUBLIC SUB Form_MouseWheel() INC Timer2EventZlr END But it doesn't react. What am I doing wrong? Regards Rolf From jussi.lahtinen at ...626... Wed Apr 6 14:40:38 2011 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Wed, 6 Apr 2011 15:40:38 +0300 Subject: [Gambas-user] Global reading of events In-Reply-To: <4D9C408B.9040701@...221...> References: <4D9C408B.9040701@...221...> Message-ID: What is Timer2EventZlr? I can't see any code that controls timer itself. Please send whole project. Jussi On Wed, Apr 6, 2011 at 13:29, Rolf-Werner Eilert < eilert-sprachen at ...221...> wrote: > I'd like to build something that hides areas with personally sensitive > data in a program after a time when the user didn't do anything in the > program. > > The easiest way to achieve this would be to watch all mouse and key > events for the whole program and just count. A timer would look from > time to time and if it's > 0 just reset the counter or otherwise hide > the sensitive area. > > I tried to do it this way: > > PUBLIC SUB Timer2_Timer() > > IF tab.Visible = TRUE THEN > IF Timer2EventZlr > 0 THEN > Timer2EventZlr = 0 > ELSE > tab.Visible = FALSE > END IF > > ELSE 'for debugging purposes, lets it pop up again > tab.Visible = TRUE > Timer2EventZlr = 0 > > END IF > > END > > PUBLIC SUB Form_KeyPress() > > INC Timer2EventZlr > > END > > PUBLIC SUB Form_MouseDown() > > INC Timer2EventZlr > > END > > > > PUBLIC SUB Form_MouseWheel() > > INC Timer2EventZlr > > END > > But it doesn't react. What am I doing wrong? > > Regards > > Rolf > > > ------------------------------------------------------------------------------ > 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 at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From eilert-sprachen at ...221... Wed Apr 6 15:49:35 2011 From: eilert-sprachen at ...221... (Sprachschule Eilert) Date: Wed, 06 Apr 2011 15:49:35 +0200 Subject: [Gambas-user] Global reading of events In-Reply-To: References: <4D9C408B.9040701@...221...> Message-ID: <4D9C6F6F.5090202@...394...> Don't know where you're stuck. Why control Timer2? It's there, it's running... :-) Whenever Timer2 ticks, it checks if there have been mouse or keyboard events in the meantime (Timer2EventZlr means "event counter for Timer2"). If yes, only the counter is resetted. If not, "tab" (a TabStrip which contains the data) is made invisible. In case there is something wrong (just debug phase), Timer2 will make tab appear the next time it comes by and reset the counter. This, of course, will be replaced by a password input as soon as it is ready. But my question was: Why do Form_KeyPress(), Form_MouseDown() and Form_MouseWheel() catch no event? Aren't they an instance BEFORE all other mouse and keyboard events within the form? If there is no way to catch these, the only way to achieve this would be to monitor each single thing on the form - I would like to avoid that. Regards Rolf Am 06.04.2011 14:40, schrieb Jussi Lahtinen: > What is Timer2EventZlr? > I can't see any code that controls timer itself. > Please send whole project. > > Jussi > > > On Wed, Apr 6, 2011 at 13:29, Rolf-Werner Eilert< > eilert-sprachen at ...221...> wrote: > >> I'd like to build something that hides areas with personally sensitive >> data in a program after a time when the user didn't do anything in the >> program. >> >> The easiest way to achieve this would be to watch all mouse and key >> events for the whole program and just count. A timer would look from >> time to time and if it's> 0 just reset the counter or otherwise hide >> the sensitive area. >> >> I tried to do it this way: >> >> PUBLIC SUB Timer2_Timer() >> >> IF tab.Visible = TRUE THEN >> IF Timer2EventZlr> 0 THEN >> Timer2EventZlr = 0 >> ELSE >> tab.Visible = FALSE >> END IF >> >> ELSE 'for debugging purposes, lets it pop up again >> tab.Visible = TRUE >> Timer2EventZlr = 0 >> >> END IF >> >> END >> >> PUBLIC SUB Form_KeyPress() >> >> INC Timer2EventZlr >> >> END >> >> PUBLIC SUB Form_MouseDown() >> >> INC Timer2EventZlr >> >> END >> >> >> >> PUBLIC SUB Form_MouseWheel() >> >> INC Timer2EventZlr >> >> END >> >> But it doesn't react. What am I doing wrong? >> >> Regards >> >> Rolf >> >> >> ------------------------------------------------------------------------------ >> 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 at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > ------------------------------------------------------------------------------ > 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 at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Rolf-Werner Eilert SPRACHSCHULE EILERT Kollegienwall 19 - 49074 Osnabr?ck www.eilert-sprachen.de - 0541/22653 From jussi.lahtinen at ...626... Wed Apr 6 17:04:04 2011 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Wed, 6 Apr 2011 18:04:04 +0300 Subject: [Gambas-user] Global reading of events In-Reply-To: <4D9C6F6F.5090202@...394...> References: <4D9C408B.9040701@...221...> <4D9C6F6F.5090202@...394...> Message-ID: > But my question was: Why do Form_KeyPress(), Form_MouseDown() and > Form_MouseWheel() catch no event? > Impossible to say without more code. I don't think the reason is in this part of code. No need to send whole project, just version where you have isolated the problem. It is much more easy to help, if you can actually see what code does, instead of trying to virtualize it in your head. What is your Gambas version and revision? Jussi From jussi.lahtinen at ...626... Wed Apr 6 19:13:27 2011 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Wed, 6 Apr 2011 20:13:27 +0300 Subject: [Gambas-user] Problems with gbs Message-ID: Hi! I tried to run the benchmarks. But I couldn't run gambas script. $ gbs3 -v -c ./testscript gbs: Main procedure not defined, create it OK, then I added "Sub Main()" and "End" to the script. $ gbs3 -v -c ./testscript gbs: Main procedure not defined, create it MMain.module:42: error: 'Main' already declared # Gambas Project File 3.0 Title=Gambas Script Startup=MMain ... If I run it just with "./testscript" I won't get any errors, nor any indication that program was ran or not. Gambas 3 rev 3735 @ Ubuntu 10.10 64bit Jussi From gambas at ...1... Wed Apr 6 19:23:03 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Wed, 6 Apr 2011 19:23:03 +0200 Subject: [Gambas-user] Problems with gbs In-Reply-To: References: Message-ID: <201104061923.03341.gambas@...1...> > Hi! > I tried to run the benchmarks. But I couldn't run gambas script. > > $ gbs3 -v -c ./testscript > gbs: Main procedure not defined, create it > > OK, then I added "Sub Main()" and "End" to the script. > > $ gbs3 -v -c ./testscript > gbs: Main procedure not defined, create it > MMain.module:42: error: 'Main' already declared > > # Gambas Project File 3.0 > Title=Gambas Script > Startup=MMain > ... > > If I run it just with "./testscript" I won't get any errors, nor any > indication that program was ran or not. > > Gambas 3 rev 3735 @ Ubuntu 10.10 64bit > > Jussi There is no "testscript" in the benchmarks. What are you talking about? -- Beno?t Minisini From jussi.lahtinen at ...626... Wed Apr 6 20:12:44 2011 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Wed, 6 Apr 2011 21:12:44 +0300 Subject: [Gambas-user] Problems with gbs In-Reply-To: <201104061923.03341.gambas@...1...> References: <201104061923.03341.gambas@...1...> Message-ID: I created file named testscript, then I pasted code from http://www.gambasdoc.org/help/doc/benchmark/polynom . But I don't think it really matters since I can't run any code. Even simple code as following fails with same errors; #!/usr/bin/env gbs3 Print "Hello?" Jussi 2011/4/6 Beno?t Minisini > > Hi! > > I tried to run the benchmarks. But I couldn't run gambas script. > > > > $ gbs3 -v -c ./testscript > > gbs: Main procedure not defined, create it > > > > OK, then I added "Sub Main()" and "End" to the script. > > > > $ gbs3 -v -c ./testscript > > gbs: Main procedure not defined, create it > > MMain.module:42: error: 'Main' already declared > > > > # Gambas Project File 3.0 > > Title=Gambas Script > > Startup=MMain > > ... > > > > If I run it just with "./testscript" I won't get any errors, nor any > > indication that program was ran or not. > > > > Gambas 3 rev 3735 @ Ubuntu 10.10 64bit > > > > Jussi > > There is no "testscript" in the benchmarks. What are you talking about? > > -- > Beno?t Minisini > > > ------------------------------------------------------------------------------ > 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 at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From support at ...2529... Wed Apr 6 20:43:34 2011 From: support at ...2529... (John Spikowski) Date: Wed, 06 Apr 2011 11:43:34 -0700 Subject: [Gambas-user] Problems with gbs In-Reply-To: References: <201104061923.03341.gambas@...1...> Message-ID: <1302115414.2915.14.camel@...2530...> On Wed, 2011-04-06 at 21:12 +0300, Jussi Lahtinen wrote: > I created file named testscript, then I pasted code from > http://www.gambasdoc.org/help/doc/benchmark/polynom . > But I don't think it really matters since I can't run any code. > Even simple code as following fails with same errors; > > #!/usr/bin/env gbs3 > Print "Hello?" DIM x AS Integer FOR x = 1 TO 10 PRINT x NEXT jrs at ...2530...:~/gambas/test$ gbs3 scriptest.gambas 1 2 3 4 5 6 7 8 9 10 jrs at ...2530...:~/gambas/test Path: . URL: https://gambas.svn.sourceforge.net/svnroot/gambas/gambas/trunk Repository Root: https://gambas.svn.sourceforge.net/svnroot/gambas Repository UUID: 96304659-1d19-0410-acd0-aead272a8bd5 Revision: 3735 Node Kind: directory Schedule: normal Last Changed Author: ldnp Last Changed Rev: 3735 Last Changed Date: 2011-04-05 08:54:14 -0700 (Tue, 05 Apr 2011) From gambas at ...1... Wed Apr 6 21:24:32 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Wed, 6 Apr 2011 21:24:32 +0200 Subject: [Gambas-user] New website In-Reply-To: <1301961077.2122.52.camel@...2530...> References: <201104050049.09592.gambas@...1...> <1301961077.2122.52.camel@...2530...> Message-ID: <201104062124.32433.gambas@...1...> > On Tue, 2011-04-05 at 00:49 +0200, Beno?t Minisini wrote: > > The new website has been uploaded to sourceforge. > > It would be great if you could get a few Gambas 3 screen shots in the > gallery. It's a bit dated as it stands. > I added two recent screenshots. If you have ideas for a third one, you are welcome! Regards, -- Beno?t Minisini From gambas at ...1... Wed Apr 6 21:25:53 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Wed, 6 Apr 2011 21:25:53 +0200 Subject: [Gambas-user] New Gambas website design In-Reply-To: <4D9A6F2F.4010300@...1887...> References: <201104040047.55715.gambas@...1...> <4D9A6F2F.4010300@...1887...> Message-ID: <201104062125.53322.gambas@...1...> > On 04/03/2011 06:47 PM, Beno?t Minisini wrote: > > Now I'm waiting for help and comments.. > > I just noticed that in Chrome one of the zoom levels creates artifacts > in some of the text. Zooming way in (making things bigger) causes Chrome > to be unable to display the page, giving the "Aw, Snap!" error. What's > worse is that Chrome remembers that zoom setting so it happens every > time I go to the GAMBAS web site now and I can't undo it. Firefox does > not have this problem. Mmm. I have no problem there with Chromium 10.0.648.133 (77742) on Ubuntu 10.10. -- Beno?t Minisini From gambas at ...1... Wed Apr 6 21:26:24 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Wed, 6 Apr 2011 21:26:24 +0200 Subject: [Gambas-user] SQLite3 Query failed: SQL error or missing database In-Reply-To: References: Message-ID: <201104062126.24694.gambas@...1...> > Hello, > > when I try to get data out of a table "dummy" with a > DataSource-Control and a DataView-Control, I get this error: "Query > failed: SQL error or missing database". > With DB.Debug = "on" I can see that Gambas compose a wrong SQL-Statement. > e.g. > Table: dummy > Fields: fe_id, fe_name > the SQL looks like this: > > select from dummy > > If you can see, no field list! > > Tried with Gambas 2.22 on Fedora 14 and 2.21 on Ubuntu 10.10 > > Changed connection type from "sqlite3" to "postgresql" and it worked. > > Any ideas? > > Thanks > Robert > Is it better with Gambas 2.23 ? -- Beno?t Minisini From jussi.lahtinen at ...626... Wed Apr 6 22:20:19 2011 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Wed, 6 Apr 2011 23:20:19 +0300 Subject: [Gambas-user] Problems with gbs In-Reply-To: <1302115414.2915.14.camel@...2530...> References: <201104061923.03341.gambas@...1...> <1302115414.2915.14.camel@...2530...> Message-ID: I tried your example, doesn't work with my system. $ gbs3 testscript.gambas nothing $ gbs3 -v testscript.gambas nothing $ gbs3 -v -c testscript.gambas gbs: create project gbs: process file: ... testscript.gambas gbs: Main procedure not defined, create it What is your system? Jussi On Wed, Apr 6, 2011 at 21:43, John Spikowski wrote: > On Wed, 2011-04-06 at 21:12 +0300, Jussi Lahtinen wrote: > > I created file named testscript, then I pasted code from > > http://www.gambasdoc.org/help/doc/benchmark/polynom . > > But I don't think it really matters since I can't run any code. > > Even simple code as following fails with same errors; > > > > #!/usr/bin/env gbs3 > > Print "Hello?" > > DIM x AS Integer > > FOR x = 1 TO 10 > PRINT x > NEXT > > > jrs at ...2530...:~/gambas/test$ gbs3 scriptest.gambas > 1 > 2 > 3 > 4 > 5 > 6 > 7 > 8 > 9 > 10 > jrs at ...2530...:~/gambas/test > > Path: . > URL: https://gambas.svn.sourceforge.net/svnroot/gambas/gambas/trunk > Repository Root: https://gambas.svn.sourceforge.net/svnroot/gambas > Repository UUID: 96304659-1d19-0410-acd0-aead272a8bd5 > Revision: 3735 > Node Kind: directory > Schedule: normal > Last Changed Author: ldnp > Last Changed Rev: 3735 > Last Changed Date: 2011-04-05 08:54:14 -0700 (Tue, 05 Apr 2011) > > > > > ------------------------------------------------------------------------------ > 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 at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From kevinfishburne at ...1887... Wed Apr 6 22:25:47 2011 From: kevinfishburne at ...1887... (Kevin Fishburne) Date: Wed, 06 Apr 2011 16:25:47 -0400 Subject: [Gambas-user] New Gambas website design In-Reply-To: <201104062125.53322.gambas@...1...> References: <201104040047.55715.gambas@...1...> <4D9A6F2F.4010300@...1887...> <201104062125.53322.gambas@...1...> Message-ID: <4D9CCC4B.60304@...1887...> On 04/06/2011 03:25 PM, Beno?t Minisini wrote: >> On 04/03/2011 06:47 PM, Beno?t Minisini wrote: >>> Now I'm waiting for help and comments.. >> I just noticed that in Chrome one of the zoom levels creates artifacts >> in some of the text. Zooming way in (making things bigger) causes Chrome >> to be unable to display the page, giving the "Aw, Snap!" error. What's >> worse is that Chrome remembers that zoom setting so it happens every >> time I go to the GAMBAS web site now and I can't undo it. Firefox does >> not have this problem. > Mmm. I have no problem there with Chromium 10.0.648.133 (77742) on Ubuntu > 10.10. I'm using Chrome 10.0.648.204 in Ubuntu 10.10 ia64. If you zoom way out, then zoom in to 120% it gives the error. It also seems to have the error at 207%. I fixed it by going to something like http://gambas.sourceforge.net/crap, changing the zoom level to something else, then going back to http://gambas.sourceforge.net . This may simply be a Chrome or SourceForge issue, but I've never seen it happen with a different site. -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sales at ...1887... phone: (770) 853-6271 From support at ...2529... Wed Apr 6 22:35:19 2011 From: support at ...2529... (John Spikowski) Date: Wed, 06 Apr 2011 13:35:19 -0700 Subject: [Gambas-user] Problems with gbs In-Reply-To: References: <201104061923.03341.gambas@...1...> <1302115414.2915.14.camel@...2530...> Message-ID: <1302122119.2225.1.camel@...2530...> On Wed, 2011-04-06 at 23:20 +0300, Jussi Lahtinen wrote: > I tried your example, doesn't work with my system. > What is your system? Ubuntu 10.10 32 bit. From kevinfishburne at ...1887... Thu Apr 7 02:57:49 2011 From: kevinfishburne at ...1887... (Kevin Fishburne) Date: Wed, 06 Apr 2011 20:57:49 -0400 Subject: [Gambas-user] gb3 RC1: using structures to replace the loss of Mk$ functions In-Reply-To: <201104050934.34854.gambas@...1...> References: <4D953CD6.8090001@...1887...> <4D9AAB01.4000606@...1887...> <4D9AB985.7050604@...1887...> <201104050934.34854.gambas@...1...> Message-ID: <4D9D0C0D.2090307@...1887...> On 04/05/2011 03:34 AM, Beno?t Minisini wrote: >> On 04/05/2011 01:39 AM, Kevin Fishburne wrote: >>> Alright, I've transformed all the networking code to the suggested >>> solution, and it's so close to working I can smell it. While there is >>> more code now, I like it better as it's easier to read (important!). >>> >>> Some code: >>> Dim id As Byte >>> Dim type As Byte >>> Dim data As String >>> >>> id = Read #udp As Byte >>> type = Read #udp As Byte >>> If Eof(udp) = False Then data = Read #udp, Lof(udp) - 2 >>> >>> Using "Lof(udp) - 2" as the length seems to remove bytes from the end >>> rather than the beginning. I get an unwanted byte at the beginning as >>> well. >>> >>> Maybe this is a late April Fools joke about endianness? Other than that, >>> the whole app is ready to put pixels on the screen again >> >> After checking my code for bugs (none found, knock on wood) and doing >> some experimentation, it looks like sending certain data types using the >> new method works fine, but other data has an extra byte added in front >> of or in-between variables. Any info about what's really happening is >> appreciated. >> >> Again what I'm trying to do is send an ID (Byte), type (Byte), and a >> sequence of arbitrary variables via UDP. When they're received, the ID >> and type are read normally as Bytes into variables and the rest of the >> data is read into a string and stored in an array for later processing. >> The arbitrary variables stored as a string (everything after ID and >> type) are later interpreted via the *@() functions and assigned to >> variables. To do this I just created a different UDP_Write procedure for >> each transaction type so the packets/transactions are properly >> assembled. I've attached some code excerpts if anyone desires greater >> specificity. >> >> In summary of the attachments, the failure basically goes like this: >> >> ' Send username and password. >> ' Send the transaction. >> udp.Begin >> Write #udp, id As Byte >> Write #udp, 50 As Byte >> Write #udp, credentials As String ' credentials = >> "myusername,mypassword" >> udp.Send >> >> ' Read the username and password. >> id = Read #udp As Byte >> type = Read #udp As Byte >> If Eof(udp) = False Then data = Read #udp, Lof(udp) ' Username and >> password separated elsewhere, not a problem. >> >> data should be "myusername,mypassword" but it actually is >> "^Uanon at ...2571...,mypassword". "\x15" prepends the string, strangely. I >> think this errant byte also precedes any number of datatypes that are >> send separately and later read as a single string. What is this byte, >> and how may I get rid of it? > > Not strange if you read the doc carefully. :-) > > When using "WRITE #Stream, AString As String", the length of the string is > always written before the string contents. > > To just write the string contents, you must use the second syntax of WRITE: > > WRITE #Stream, String, Length Writing strings and bytes works fine now, but singles and shorts, not so much. Here's an example of what's happening: Server - Send ID (0), type (70) and two singles (2279, 1440) as UDP: ' Define target's IP address and port. udp.TargetHost = ip udp.TargetPort = port ' Send the transaction. udp.Begin Write #udp, id As Byte Write #udp, 70 As Byte Write #udp, worldx As Single Write #udp, worldy As Single udp.Send Client - Read ID and type into their own variables (id, type) and the two singles into a string (data): id = Read #udp As Byte type = Read #udp As Byte If Eof(udp) = False Then data = Read #udp, Lof(udp) Client - Display the value of data (double click it in the IDE): E\x0Ep\x00D\x00\x00 The "" is actually one character, a question mark in a diamond. Client - Print the value of data in the console (?data): E^Np^@D?^@^@ Client - Print the length of data in the console (?Len[data]): 8 Client - Convert data from a string back into two singles: Single@(Mid$(tsdata, 1, 4)) 1.029069E-38 Single@(Mid$(tsdata, 5, 4)) 6.466712E-41 Any idea why 2279 becomes 1.029069E-38 and 1440 becomes 6.466712E-41? Sending a short of 1234 is read as "\x04" (double click) or "-11772" (Short@[data]). It looks like either the Read function is doing something strange with the data when assigning it to a string, or the *@() functions aren't working the way they used to. In case anyone forgot, I was previously using the Mk*() functions to create a string from variables and the *@() functions to convert the string back to the original datatypes. -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sales at ...1887... phone: (770) 853-6271 From rterry at ...1946... Thu Apr 7 06:26:52 2011 From: rterry at ...1946... (richard terry) Date: Thu, 7 Apr 2011 14:26:52 +1000 Subject: [Gambas-user] Source code - where's the download link gone Message-ID: <201104071426.52986.rterry@...1946...> Hi LIst Tried the new web site, couldn't find anywhere the link to the page telling how to download the sources to compile??? Can some one post this or send me the link. Regards Richard From kevinfishburne at ...1887... Thu Apr 7 07:05:14 2011 From: kevinfishburne at ...1887... (Kevin Fishburne) Date: Thu, 07 Apr 2011 01:05:14 -0400 Subject: [Gambas-user] Source code - where's the download link gone In-Reply-To: <201104071426.52986.rterry@...1946...> References: <201104071426.52986.rterry@...1946...> Message-ID: <4D9D460A.9080105@...1887...> On 04/07/2011 12:26 AM, richard terry wrote: > Hi LIst > > Tried the new web site, couldn't find anywhere the link to the page telling how > to download the sources to compile??? > > Can some one post this or send me the link. > > Regards > > Richard > > ------------------------------------------------------------------------------ > 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 at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user Don't know where the link is, but to compile on Ubuntu 10.10 I run: # Install build dependencies. sudo apt-get install build-essential autoconf libbz2-dev libfbclient2 libmysqlclient-dev unixodbc-dev libpq-dev libsqlite0-dev libsqlite3-dev libgtk2.0-dev libldap2-dev libcurl4-gnutls-dev libgtkglext1-dev libpcre3-dev libsdl-sound1.2-dev libsdl-mixer1.2-dev libsdl-image1.2-dev libsage-dev libxml2-dev libxslt1-dev libbonobo2-dev libcos4-dev libomniorb4-dev librsvg2-dev libpoppler-dev libpoppler-glib-dev libasound2-dev libesd0-dev libdirectfb-dev libaa1-dev libxtst-dev libffi-dev kdelibs4-dev firebird2.1-dev libqt4-dev libglew1.5-dev libimlib2-dev libv4l-dev libsdl-ttf2.0-dev libgnome-keyring-dev libgdk-pixbuf2.0-dev # Remove previously-created files. sudo rm -fr trunk # Download latest GAMBAS 3 revision. svn checkout https://gambas.svn.sourceforge.net/svnroot/gambas/gambas/trunk/ # Compile, install and run. cd trunk ./reconf-all ./configure make sudo make install gambas3 -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sales at ...1887... phone: (770) 853-6271 From bill-lancaster at ...2231... Thu Apr 7 09:09:09 2011 From: bill-lancaster at ...2231... (Bill-Lancaster) Date: Thu, 7 Apr 2011 00:09:09 -0700 (PDT) Subject: [Gambas-user] Tableview use of combobox problem In-Reply-To: <31331585.post@...1379...> References: <31331585.post@...1379...> Message-ID: <31340031.post@...1379...> I wasn't using tableview properly - it's fine now -- View this message in context: http://old.nabble.com/Tableview-use-of-combobox-problem-tp31331585p31340031.html Sent from the gambas-user mailing list archive at Nabble.com. From rterry at ...1946... Thu Apr 7 09:42:30 2011 From: rterry at ...1946... (richard terry) Date: Thu, 7 Apr 2011 17:42:30 +1000 Subject: [Gambas-user] Source code - where's the download link gone In-Reply-To: <4D9D460A.9080105@...1887...> References: <201104071426.52986.rterry@...1946...> <4D9D460A.9080105@...1887...> Message-ID: <201104071742.30259.rterry@...1946...> On Thursday 07 April 2011 15:05:14 Kevin Fishburne wrote: > https://gambas.svn.sourceforge.net/svnroot/gambas/gambas/trunk/ > Thanks, that's what i"m missing, the rest I do every few days, by svn update, but I'm doing this on a new machine. richard From kevinfishburne at ...1887... Thu Apr 7 09:50:31 2011 From: kevinfishburne at ...1887... (Kevin Fishburne) Date: Thu, 07 Apr 2011 03:50:31 -0400 Subject: [Gambas-user] Source code - where's the download link gone In-Reply-To: <201104071742.30259.rterry@...1946...> References: <201104071426.52986.rterry@...1946...> <4D9D460A.9080105@...1887...> <201104071742.30259.rterry@...1946...> Message-ID: <4D9D6CC7.9070906@...1887...> On 04/07/2011 03:42 AM, richard terry wrote: > On Thursday 07 April 2011 15:05:14 Kevin Fishburne wrote: >> https://gambas.svn.sourceforge.net/svnroot/gambas/gambas/trunk/ > Thanks, that's what i"m missing, the rest I do every few days, by svn update, > but I'm doing this on a new machine. > > richard http://www.youtube.com/watch?v=tphGbq7YTzM -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sales at ...1887... phone: (770) 853-6271 From eilert-sprachen at ...221... Thu Apr 7 10:26:30 2011 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Thu, 07 Apr 2011 10:26:30 +0200 Subject: [Gambas-user] New website In-Reply-To: <201104062124.32433.gambas@...1...> References: <201104050049.09592.gambas@...1...> <1301961077.2122.52.camel@...2530...> <201104062124.32433.gambas@...1...> Message-ID: <4D9D7536.6040008@...221...> Am 06.04.2011 21:24, schrieb Beno?t Minisini: >> On Tue, 2011-04-05 at 00:49 +0200, Beno?t Minisini wrote: >>> The new website has been uploaded to sourceforge. >> >> It would be great if you could get a few Gambas 3 screen shots in the >> gallery. It's a bit dated as it stands. >> > > I added two recent screenshots. If you have ideas for a third one, you are > welcome! > > Regards, > I just visited the new website - very nice! Now here's one thing however which has to do with my eyes. I have a slight fault on the right eye which makes kind of blur of sharp edges. Looks like shaking of a camera or as if someone scratched the lense. The shadows on the front page of the new Gambas website look exactly like that on my screen, so I have a double effect which looks really odd, almost unreadable to me although it's big enough. I include a screenshot. Are the shadows only here? Perhaps bold would be clearer than shadows? And I miss "Downloads". -------------- next part -------------- A non-text attachment was scrubbed... Name: gambas1.png Type: image/png Size: 8494 bytes Desc: not available URL: From eilert-sprachen at ...221... Thu Apr 7 10:46:19 2011 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Thu, 07 Apr 2011 10:46:19 +0200 Subject: [Gambas-user] Global reading of events In-Reply-To: References: <4D9C408B.9040701@...221...> <4D9C6F6F.5090202@...394...> <4D9C8D2B.9070101@...221...> Message-ID: <4D9D79DB.9020604@...221...> Thanks for trying it, I downloaded 2.23 but now it doesn't compile... I remember, I had to do a > ./reconf-all first, is it wrong? Unfortunately, Benoit took away the page with the explanations of how to compile... After some seconds, reconf-all fails with autoreconf: running: automake --add-missing --copy --no-force gbc/Makefile.am:5: Libtool library used but `LIBTOOL' is undefined and a lot of error lines. As far as I remember, it used to run flawlessly before. But I haven't bothered to compile a new version since 2.20 as it has been running fine for me ;-) Rolf Am 06.04.2011 19:05, schrieb Jussi Lahtinen: > Your code seems to work with my system... try to compile Gambas version > 2.23. > > Jussi > > > > On Wed, Apr 6, 2011 at 18:56, Rolf-Werner Eilert > > wrote: > > Am 06.04.2011 17:04, schrieb Jussi Lahtinen: > > But my question was: Why do Form_KeyPress(), > Form_MouseDown() and > Form_MouseWheel() catch no event? > > > Impossible to say without more code. > I don't think the reason is in this part of code. > No need to send whole project, just version where you have > isolated the > problem. > It is much more easy to help, if you can actually see what code > does, > instead of trying to virtualize it in your head. > > What is your Gambas version and revision? > > Jussi > > > It is 2.20 (you know, I'm the guy with the oldtimer server system > that cannot compile 3.x :-) ) > > But no problem, here's a tar.gz of the project - I just found the > mailer won't let it through when I append it, so it comes as PM. > > And it won't run just like this I fear, it's a far too big thing, > and I cannot copy all the personal data involved... > > But maybe you can see from it where the problem is without actually > running it. > > Thanks for your time! > > Regards > > Rolf > > > From gambas at ...1... Thu Apr 7 10:56:57 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Thu, 7 Apr 2011 10:56:57 +0200 Subject: [Gambas-user] Source code - where's the download link gone In-Reply-To: <201104071426.52986.rterry@...1946...> References: <201104071426.52986.rterry@...1946...> Message-ID: <201104071056.57418.gambas@...1...> > Hi LIst > > Tried the new web site, couldn't find anywhere the link to the page telling > how to download the sources to compile??? > > Can some one post this or send me the link. > > Regards > > Richard > Oops, sorry, I didn't notice. There is a "release notes" link under the download button that will tell you how to compile and install a source archive, but there is no link to tell you how to download the sources directly from the subversion repository. I will fix that... -- Beno?t Minisini From gambas at ...1... Thu Apr 7 10:58:51 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Thu, 7 Apr 2011 10:58:51 +0200 Subject: [Gambas-user] New website In-Reply-To: <4D9D7536.6040008@...221...> References: <201104050049.09592.gambas@...1...> <201104062124.32433.gambas@...1...> <4D9D7536.6040008@...221...> Message-ID: <201104071058.51504.gambas@...1...> > Am 06.04.2011 21:24, schrieb Beno?t Minisini: > >> On Tue, 2011-04-05 at 00:49 +0200, Beno?t Minisini wrote: > >>> The new website has been uploaded to sourceforge. > >> > >> It would be great if you could get a few Gambas 3 screen shots in the > >> gallery. It's a bit dated as it stands. > > > > I added two recent screenshots. If you have ideas for a third one, you > > are welcome! > > > > Regards, > > I just visited the new website - very nice! > > Now here's one thing however which has to do with my eyes. I have a > slight fault on the right eye which makes kind of blur of sharp edges. > Looks like shaking of a camera or as if someone scratched the lense. > > The shadows on the front page of the new Gambas website look exactly > like that on my screen, so I have a double effect which looks really > odd, almost unreadable to me although it's big enough. I include a > screenshot. Are the shadows only here? Perhaps bold would be clearer > than shadows? > Which browser do you use? With Firefox, shadows are fine... > And I miss "Downloads". It will come back. :-) -- Beno?t Minisini From mx4eva at ...626... Thu Apr 7 10:59:45 2011 From: mx4eva at ...626... (Fiddler63) Date: Thu, 7 Apr 2011 01:59:45 -0700 (PDT) Subject: [Gambas-user] Mouse control and calibration Message-ID: <31340686.post@...1379...> I'm making a digitiser table to plot parts direct into a simple CAD program (in Gambas). As I'm butchering a mouse and using the XY wheel directly into the digitiser (as a normal mouse input), I need somehow to be able to count each encoder count and relate that back to the screen drawing. Is there a way to capture each mouse encoder movement ? As I know each encoder count movement in real distance, the should be easy as they say :-) Cheers Kim -- View this message in context: http://old.nabble.com/Mouse-control-and-calibration-tp31340686p31340686.html Sent from the gambas-user mailing list archive at Nabble.com. From eilert-sprachen at ...221... Thu Apr 7 11:03:03 2011 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Thu, 07 Apr 2011 11:03:03 +0200 Subject: [Gambas-user] Global reading of events In-Reply-To: <4D9D79DB.9020604@...221...> References: <4D9C408B.9040701@...221...> <4D9C6F6F.5090202@...394...> <4D9C8D2B.9070101@...221...> <4D9D79DB.9020604@...221...> Message-ID: <4D9D7DC7.4040902@...221...> Ok, I found the page, and it gives all information about tools needed and how to compile. All necessary tools are there, and they have appropriate version numbers, and ./reconf-all is correct, too. It says gbc/Makefile.am:5: Libtool library used but `LIBTOOL' is undefined gbc/Makefile.am:5: The usual way to define `LIBTOOL' is to add `AC_PROG_LIBTOOL' gbc/Makefile.am:5: to `configure.ac' and run `aclocal' and `autoconf' again. gbc/Makefile.am:5: If `AC_PROG_LIBTOOL' is in `configure.ac', make sure gbc/Makefile.am:5: its definition is in aclocal's search path. As AC_PROG_LIBTOOL actually is in configure.ac (I looked it up), it all boils down to defining the search path... and somehow I'm lost here, as I don't know what to look for. Do you happen to know? Rolf Am 07.04.2011 10:46, schrieb Rolf-Werner Eilert: > Thanks for trying it, I downloaded 2.23 but now it doesn't compile... I > remember, I had to do a > > > ./reconf-all > > first, is it wrong? Unfortunately, Benoit took away the page with the > explanations of how to compile... > > After some seconds, reconf-all fails with > > autoreconf: running: automake --add-missing --copy --no-force > gbc/Makefile.am:5: Libtool library used but `LIBTOOL' is undefined > > and a lot of error lines. As far as I remember, it used to run > flawlessly before. But I haven't bothered to compile a new version since > 2.20 as it has been running fine for me ;-) > > Rolf > > > Am 06.04.2011 19:05, schrieb Jussi Lahtinen: >> Your code seems to work with my system... try to compile Gambas version >> 2.23. >> >> Jussi >> >> >> >> On Wed, Apr 6, 2011 at 18:56, Rolf-Werner Eilert >> > wrote: >> >> Am 06.04.2011 17:04, schrieb Jussi Lahtinen: >> >> But my question was: Why do Form_KeyPress(), >> Form_MouseDown() and >> Form_MouseWheel() catch no event? >> >> >> Impossible to say without more code. >> I don't think the reason is in this part of code. >> No need to send whole project, just version where you have >> isolated the >> problem. >> It is much more easy to help, if you can actually see what code >> does, >> instead of trying to virtualize it in your head. >> >> What is your Gambas version and revision? >> >> Jussi >> >> >> It is 2.20 (you know, I'm the guy with the oldtimer server system >> that cannot compile 3.x :-) ) >> >> But no problem, here's a tar.gz of the project - I just found the >> mailer won't let it through when I append it, so it comes as PM. >> >> And it won't run just like this I fear, it's a far too big thing, >> and I cannot copy all the personal data involved... >> >> But maybe you can see from it where the problem is without actually >> running it. >> >> Thanks for your time! >> >> Regards >> >> Rolf >> >> >> > > > ------------------------------------------------------------------------------ > 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 at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Thu Apr 7 11:05:07 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Thu, 7 Apr 2011 11:05:07 +0200 Subject: [Gambas-user] gb3 RC1: using structures to replace the loss of Mk$ functions In-Reply-To: <4D9D0C0D.2090307@...1887...> References: <4D953CD6.8090001@...1887...> <201104050934.34854.gambas@...1...> <4D9D0C0D.2090307@...1887...> Message-ID: <201104071105.07823.gambas@...1...> > On 04/05/2011 03:34 AM, Beno?t Minisini wrote: > >> On 04/05/2011 01:39 AM, Kevin Fishburne wrote: > >>> Alright, I've transformed all the networking code to the suggested > >>> solution, and it's so close to working I can smell it. While there is > >>> more code now, I like it better as it's easier to read (important!). > >>> > >>> Some code: > >>> Dim id As Byte > >>> Dim type As Byte > >>> Dim data As String > >>> > >>> id = Read #udp As Byte > >>> type = Read #udp As Byte > >>> If Eof(udp) = False Then data = Read #udp, Lof(udp) - 2 > >>> > >>> Using "Lof(udp) - 2" as the length seems to remove bytes from the end > >>> rather than the beginning. I get an unwanted byte at the beginning as > >>> well. > >>> > >>> Maybe this is a late April Fools joke about endianness? Other than > >>> that, the whole app is ready to put pixels on the screen again > >> > >> After checking my code for bugs (none found, knock on wood) and doing > >> some experimentation, it looks like sending certain data types using the > >> new method works fine, but other data has an extra byte added in front > >> of or in-between variables. Any info about what's really happening is > >> appreciated. > >> > >> Again what I'm trying to do is send an ID (Byte), type (Byte), and a > >> sequence of arbitrary variables via UDP. When they're received, the ID > >> and type are read normally as Bytes into variables and the rest of the > >> data is read into a string and stored in an array for later processing. > >> The arbitrary variables stored as a string (everything after ID and > >> type) are later interpreted via the *@() functions and assigned to > >> variables. To do this I just created a different UDP_Write procedure for > >> each transaction type so the packets/transactions are properly > >> assembled. I've attached some code excerpts if anyone desires greater > >> specificity. > >> > >> In summary of the attachments, the failure basically goes like this: > >> > >> ' Send username and password. > >> > >> ' Send the transaction. > >> udp.Begin > >> > >> Write #udp, id As Byte > >> Write #udp, 50 As Byte > >> Write #udp, credentials As String ' credentials = > >> > >> "myusername,mypassword" > >> > >> udp.Send > >> > >> ' Read the username and password. > >> > >> id = Read #udp As Byte > >> type = Read #udp As Byte > >> If Eof(udp) = False Then data = Read #udp, Lof(udp) ' Username and > >> > >> password separated elsewhere, not a problem. > >> > >> data should be "myusername,mypassword" but it actually is > >> "^Uanon at ...2571...,mypassword". "\x15" prepends the string, strangely. I > >> think this errant byte also precedes any number of datatypes that are > >> send separately and later read as a single string. What is this byte, > >> and how may I get rid of it? > > > > Not strange if you read the doc carefully. :-) > > > > When using "WRITE #Stream, AString As String", the length of the string > > is always written before the string contents. > > > > To just write the string contents, you must use the second syntax of WRITE: > > WRITE #Stream, String, Length > > Writing strings and bytes works fine now, but singles and shorts, not so > much. Here's an example of what's happening: > > Server - Send ID (0), type (70) and two singles (2279, 1440) as UDP: > > ' Define target's IP address and port. > udp.TargetHost = ip > udp.TargetPort = port > > ' Send the transaction. > udp.Begin > Write #udp, id As Byte > Write #udp, 70 As Byte > Write #udp, worldx As Single > Write #udp, worldy As Single > udp.Send > > Client - Read ID and type into their own variables (id, type) and the > two singles into a string (data): > > id = Read #udp As Byte > type = Read #udp As Byte > If Eof(udp) = False Then data = Read #udp, Lof(udp) > > Client - Display the value of data (double click it in the IDE): > > E\x0Ep\x00D\x00\x00 > > The "" is actually one character, a question mark in a diamond. > > Client - Print the value of data in the console (?data): > > E^Np^@D?^@^@ > > Client - Print the length of data in the console (?Len[data]): > > 8 > > Client - Convert data from a string back into two singles: > > Single@(Mid$(tsdata, 1, 4)) > 1.029069E-38 > > Single@(Mid$(tsdata, 5, 4)) > 6.466712E-41 > > Any idea why 2279 becomes 1.029069E-38 and 1440 becomes 6.466712E-41? > Sending a short of 1234 is read as "\x04" (double click) or "-11772" > (Short@[data]). It looks like either the Read function is doing > something strange with the data when assigning it to a string, or the > *@() functions aren't working the way they used to. In case anyone > forgot, I was previously using the Mk*() functions to create a string > from variables and the *@() functions to convert the string back to the > original datatypes. Because sockets are big endian, not little endian as the CPU. I think you have to use READ to decode the messages as soon as you receive them. If you want to process them later, you can use a Variant[] to store the decoded data instead of a String storing the undecoded data. Regards, -- Beno?t Minisini From eilert-sprachen at ...221... Thu Apr 7 11:08:20 2011 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Thu, 07 Apr 2011 11:08:20 +0200 Subject: [Gambas-user] New website In-Reply-To: <201104071058.51504.gambas@...1...> References: <201104050049.09592.gambas@...1...> <201104062124.32433.gambas@...1...> <4D9D7536.6040008@...221...> <201104071058.51504.gambas@...1...> Message-ID: <4D9D7F04.2050303@...221...> Am 07.04.2011 10:58, schrieb Beno?t Minisini: >> Am 06.04.2011 21:24, schrieb Beno?t Minisini: >>>> On Tue, 2011-04-05 at 00:49 +0200, Beno?t Minisini wrote: >>>>> The new website has been uploaded to sourceforge. >>>> >>>> It would be great if you could get a few Gambas 3 screen shots in the >>>> gallery. It's a bit dated as it stands. >>> >>> I added two recent screenshots. If you have ideas for a third one, you >>> are welcome! >>> >>> Regards, >> >> I just visited the new website - very nice! >> >> Now here's one thing however which has to do with my eyes. I have a >> slight fault on the right eye which makes kind of blur of sharp edges. >> Looks like shaking of a camera or as if someone scratched the lense. >> >> The shadows on the front page of the new Gambas website look exactly >> like that on my screen, so I have a double effect which looks really >> odd, almost unreadable to me although it's big enough. I include a >> screenshot. Are the shadows only here? Perhaps bold would be clearer >> than shadows? >> > > Which browser do you use? With Firefox, shadows are fine... Yes, FF3 and shadows ARE doing fine, as shows the screenshot. But these shadows have a strange effect on my right eye, it looks totally blurred. Certainly I'm the only one to complain about this, so forget it ;-) > >> And I miss "Downloads". > > It will come back. :-) > I found the Release Notes page and checked everything, but it still doesn't want to compile - read my message to Jussi Lahtinen. Don't know how to fix this... Regards Rolf From kevinfishburne at ...1887... Thu Apr 7 11:58:49 2011 From: kevinfishburne at ...1887... (Kevin Fishburne) Date: Thu, 07 Apr 2011 05:58:49 -0400 Subject: [Gambas-user] gb3 RC1: using structures to replace the loss of Mk$ functions In-Reply-To: <201104071105.07823.gambas@...1...> References: <4D953CD6.8090001@...1887...> <201104050934.34854.gambas@...1...> <4D9D0C0D.2090307@...1887...> <201104071105.07823.gambas@...1...> Message-ID: <4D9D8AD9.7060808@...1887...> On 04/07/2011 05:05 AM, Beno?t Minisini wrote: >> On 04/05/2011 03:34 AM, Beno?t Minisini wrote: >>>> On 04/05/2011 01:39 AM, Kevin Fishburne wrote: >>>>> Alright, I've transformed all the networking code to the suggested >>>>> solution, and it's so close to working I can smell it. While there is >>>>> more code now, I like it better as it's easier to read (important!). >>>>> >>>>> Some code: >>>>> Dim id As Byte >>>>> Dim type As Byte >>>>> Dim data As String >>>>> >>>>> id = Read #udp As Byte >>>>> type = Read #udp As Byte >>>>> If Eof(udp) = False Then data = Read #udp, Lof(udp) - 2 >>>>> >>>>> Using "Lof(udp) - 2" as the length seems to remove bytes from the end >>>>> rather than the beginning. I get an unwanted byte at the beginning as >>>>> well. >>>>> >>>>> Maybe this is a late April Fools joke about endianness? Other than >>>>> that, the whole app is ready to put pixels on the screen again >>>> After checking my code for bugs (none found, knock on wood) and doing >>>> some experimentation, it looks like sending certain data types using the >>>> new method works fine, but other data has an extra byte added in front >>>> of or in-between variables. Any info about what's really happening is >>>> appreciated. >>>> >>>> Again what I'm trying to do is send an ID (Byte), type (Byte), and a >>>> sequence of arbitrary variables via UDP. When they're received, the ID >>>> and type are read normally as Bytes into variables and the rest of the >>>> data is read into a string and stored in an array for later processing. >>>> The arbitrary variables stored as a string (everything after ID and >>>> type) are later interpreted via the *@() functions and assigned to >>>> variables. To do this I just created a different UDP_Write procedure for >>>> each transaction type so the packets/transactions are properly >>>> assembled. I've attached some code excerpts if anyone desires greater >>>> specificity. >>>> >>>> In summary of the attachments, the failure basically goes like this: >>>> >>>> ' Send username and password. >>>> >>>> ' Send the transaction. >>>> udp.Begin >>>> >>>> Write #udp, id As Byte >>>> Write #udp, 50 As Byte >>>> Write #udp, credentials As String ' credentials = >>>> >>>> "myusername,mypassword" >>>> >>>> udp.Send >>>> >>>> ' Read the username and password. >>>> >>>> id = Read #udp As Byte >>>> type = Read #udp As Byte >>>> If Eof(udp) = False Then data = Read #udp, Lof(udp) ' Username and >>>> >>>> password separated elsewhere, not a problem. >>>> >>>> data should be "myusername,mypassword" but it actually is >>>> "^Uanon at ...2571...,mypassword". "\x15" prepends the string, strangely. I >>>> think this errant byte also precedes any number of datatypes that are >>>> send separately and later read as a single string. What is this byte, >>>> and how may I get rid of it? >>> Not strange if you read the doc carefully. :-) >>> >>> When using "WRITE #Stream, AString As String", the length of the string >>> is always written before the string contents. >>> >>> To just write the string contents, you must use the second syntax of > WRITE: >>> WRITE #Stream, String, Length >> Writing strings and bytes works fine now, but singles and shorts, not so >> much. Here's an example of what's happening: >> >> Server - Send ID (0), type (70) and two singles (2279, 1440) as UDP: >> >> ' Define target's IP address and port. >> udp.TargetHost = ip >> udp.TargetPort = port >> >> ' Send the transaction. >> udp.Begin >> Write #udp, id As Byte >> Write #udp, 70 As Byte >> Write #udp, worldx As Single >> Write #udp, worldy As Single >> udp.Send >> >> Client - Read ID and type into their own variables (id, type) and the >> two singles into a string (data): >> >> id = Read #udp As Byte >> type = Read #udp As Byte >> If Eof(udp) = False Then data = Read #udp, Lof(udp) >> >> Client - Display the value of data (double click it in the IDE): >> >> E\x0Ep\x00D\x00\x00 >> >> The "" is actually one character, a question mark in a diamond. >> >> Client - Print the value of data in the console (?data): >> >> E^Np^@D?^@^@ >> >> Client - Print the length of data in the console (?Len[data]): >> >> 8 >> >> Client - Convert data from a string back into two singles: >> >> Single@(Mid$(tsdata, 1, 4)) >> 1.029069E-38 >> >> Single@(Mid$(tsdata, 5, 4)) >> 6.466712E-41 >> >> Any idea why 2279 becomes 1.029069E-38 and 1440 becomes 6.466712E-41? >> Sending a short of 1234 is read as "\x04" (double click) or "-11772" >> (Short@[data]). It looks like either the Read function is doing >> something strange with the data when assigning it to a string, or the >> *@() functions aren't working the way they used to. In case anyone >> forgot, I was previously using the Mk*() functions to create a string >> from variables and the *@() functions to convert the string back to the >> original datatypes. > Because sockets are big endian, not little endian as the CPU. I think you have > to use READ to decode the messages as soon as you receive them. > > If you want to process them later, you can use a Variant[] to store the > decoded data instead of a String storing the undecoded data. I don't know what to say. The endianness should automatically be decoded; I thought was the whole point of removing the Mk*$() functions. A transaction can be something like, "Okay, good job" or an entire clip of the world terrain in dozens of blocks. It can't just be stored in an array as a Variant. What do the string values mean? Are they reversed and/or inverted bits? If I can flip the bits I can get back to work. -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sales at ...1887... phone: (770) 853-6271 From eilert-sprachen at ...221... Thu Apr 7 12:48:56 2011 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Thu, 07 Apr 2011 12:48:56 +0200 Subject: [Gambas-user] New website In-Reply-To: <4D9D7F04.2050303@...221...> References: <201104050049.09592.gambas@...1...> <201104062124.32433.gambas@...1...> <4D9D7536.6040008@...221...> <201104071058.51504.gambas@...1...> <4D9D7F04.2050303@...221...> Message-ID: <4D9D9698.4080902@...221...> Am 07.04.2011 11:08, schrieb Rolf-Werner Eilert: > Am 07.04.2011 10:58, schrieb Beno?t Minisini: >>> Am 06.04.2011 21:24, schrieb Beno?t Minisini: >>>>> On Tue, 2011-04-05 at 00:49 +0200, Beno?t Minisini wrote: >>>>>> The new website has been uploaded to sourceforge. >>>>> >>>>> It would be great if you could get a few Gambas 3 screen shots in the >>>>> gallery. It's a bit dated as it stands. >>>> >>>> I added two recent screenshots. If you have ideas for a third one, you >>>> are welcome! >>>> >>>> Regards, >>> >>> I just visited the new website - very nice! >>> >>> Now here's one thing however which has to do with my eyes. I have a >>> slight fault on the right eye which makes kind of blur of sharp edges. >>> Looks like shaking of a camera or as if someone scratched the lense. >>> >>> The shadows on the front page of the new Gambas website look exactly >>> like that on my screen, so I have a double effect which looks really >>> odd, almost unreadable to me although it's big enough. I include a >>> screenshot. Are the shadows only here? Perhaps bold would be clearer >>> than shadows? >>> >> >> Which browser do you use? With Firefox, shadows are fine... > > Yes, FF3 and shadows ARE doing fine, as shows the screenshot. But these > shadows have a strange effect on my right eye, it looks totally blurred. > Certainly I'm the only one to complain about this, so forget it ;-) > >> >>> And I miss "Downloads". >> >> It will come back. :-) >> > > I found the Release Notes page and checked everything, but it still > doesn't want to compile - read my message to Jussi Lahtinen. > > Don't know how to fix this... > > Regards > > Rolf > > Let me add the following hints: On the website's Release Notes page, it says This command creates the configuration script. You need to do that only if you get the sources from the subversion repository. This is unneeded if you downloaded a tar.bz2 source archive. $ ./reconf-all That's not true, ./configure is not included in the tar.bz2. So I invoked ./reconf-all which resulted in the error message mentioned before. Nevertheless, afterwards a ./configure has been produced, and so I just tried the next step: $ ./configure -C But it stops very short after start, giving a lot of library errors, all looking like this one: === configuring in help (/home/tester/Downloads/Gambas2/gambas2-2.23.0/help) configure: WARNING: no configuration information is in help Then at the end, it says ************************************************************ ALL COMPONENTS WILL BE COMPILED ************************************************************ I didn't try this, it will be futile I guess... Maybe this helps you somehow :-) Regards Rolf From Gambas at ...1950... Thu Apr 7 13:40:22 2011 From: Gambas at ...1950... (Caveat) Date: Thu, 07 Apr 2011 13:40:22 +0200 Subject: [Gambas-user] Source code - where's the download link gone In-Reply-To: <4D9D460A.9080105@...1887...> References: <201104071426.52986.rterry@...1946...> <4D9D460A.9080105@...1887...> Message-ID: <1302176422.2309.3127.camel@...2479...> Hey Kevin Thanks for the great (and simple) guide to compiling Gambas3. It worked for me! The only thing I had a problem with was apt-get complaining about libgdk-pixbuf2.0-dev, so I just knocked it off the end of the command (I'm running Ubuntu 10.04, 64bit). > $ sudo apt-get install libgdk-pixbuf2.0-dev > Reading package lists... Done > Building dependency tree > Reading state information... Done > E: Couldn't find package libgdk-pixbuf2.0-dev Lack of that lib didn't seem to make a great deal of difference. Oh, and I got a couple warnings when I started Gambas3, but doesn't look like anything serious: > warning: unable to load Qt translation: en_GB.utf8 > QFont::setPointSize: Point size <= 0 (0), must be greater than 0 Thanks again, Caveat On Thu, 2011-04-07 at 01:05 -0400, Kevin Fishburne wrote: > On 04/07/2011 12:26 AM, richard terry wrote: > > Hi LIst > > > > Tried the new web site, couldn't find anywhere the link to the page telling how > > to download the sources to compile??? > > > > Can some one post this or send me the link. > > > > Regards > > > > Richard > > > > ------------------------------------------------------------------------------ > > 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 at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > Don't know where the link is, but to compile on Ubuntu 10.10 I run: > > # Install build dependencies. > sudo apt-get install build-essential autoconf libbz2-dev libfbclient2 > libmysqlclient-dev unixodbc-dev libpq-dev libsqlite0-dev libsqlite3-dev > libgtk2.0-dev libldap2-dev libcurl4-gnutls-dev libgtkglext1-dev > libpcre3-dev libsdl-sound1.2-dev libsdl-mixer1.2-dev libsdl-image1.2-dev > libsage-dev libxml2-dev libxslt1-dev libbonobo2-dev libcos4-dev > libomniorb4-dev librsvg2-dev libpoppler-dev libpoppler-glib-dev > libasound2-dev libesd0-dev libdirectfb-dev libaa1-dev libxtst-dev > libffi-dev kdelibs4-dev firebird2.1-dev libqt4-dev libglew1.5-dev > libimlib2-dev libv4l-dev libsdl-ttf2.0-dev libgnome-keyring-dev > libgdk-pixbuf2.0-dev > > # Remove previously-created files. > sudo rm -fr trunk > > # Download latest GAMBAS 3 revision. > svn checkout https://gambas.svn.sourceforge.net/svnroot/gambas/gambas/trunk/ > > # Compile, install and run. > cd trunk > ./reconf-all > ./configure > make > sudo make install > gambas3 > From jussi.lahtinen at ...626... Thu Apr 7 15:17:11 2011 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Thu, 7 Apr 2011 16:17:11 +0300 Subject: [Gambas-user] Global reading of events In-Reply-To: <4D9D7DC7.4040902@...221...> References: <4D9C408B.9040701@...221...> <4D9C6F6F.5090202@...394...> <4D9C8D2B.9070101@...221...> <4D9D79DB.9020604@...221...> <4D9D7DC7.4040902@...221...> Message-ID: Gambas web site says libtool version 1.5.12, but I'm not sure that is correct... You may want to try with newer version (I'm using 2.2.6b successfully). Jussi On Thu, Apr 7, 2011 at 12:03, Rolf-Werner Eilert < eilert-sprachen at ...221...> wrote: > Ok, I found the page, and it gives all information about tools needed > and how to compile. > > All necessary tools are there, and they have appropriate version > numbers, and ./reconf-all is correct, too. > > It says > > gbc/Makefile.am:5: Libtool library used but `LIBTOOL' is undefined > gbc/Makefile.am:5: The usual way to define `LIBTOOL' is to add > `AC_PROG_LIBTOOL' > gbc/Makefile.am:5: to `configure.ac' and run `aclocal' and `autoconf' > again. > gbc/Makefile.am:5: If `AC_PROG_LIBTOOL' is in `configure.ac', make sure > gbc/Makefile.am:5: its definition is in aclocal's search path. > > As AC_PROG_LIBTOOL actually is in configure.ac (I looked it up), it all > boils down to defining the search path... and somehow I'm lost here, as > I don't know what to look for. Do you happen to know? > > Rolf > > > Am 07.04.2011 10:46, schrieb Rolf-Werner Eilert: > > Thanks for trying it, I downloaded 2.23 but now it doesn't compile... I > > remember, I had to do a > > > > > ./reconf-all > > > > first, is it wrong? Unfortunately, Benoit took away the page with the > > explanations of how to compile... > > > > After some seconds, reconf-all fails with > > > > autoreconf: running: automake --add-missing --copy --no-force > > gbc/Makefile.am:5: Libtool library used but `LIBTOOL' is undefined > > > > and a lot of error lines. As far as I remember, it used to run > > flawlessly before. But I haven't bothered to compile a new version since > > 2.20 as it has been running fine for me ;-) > > > > Rolf > > > > > > Am 06.04.2011 19:05, schrieb Jussi Lahtinen: > >> Your code seems to work with my system... try to compile Gambas version > >> 2.23. > >> > >> Jussi > >> > >> > >> > >> On Wed, Apr 6, 2011 at 18:56, Rolf-Werner Eilert > >> > > wrote: > >> > >> Am 06.04.2011 17:04, schrieb Jussi Lahtinen: > >> > >> But my question was: Why do Form_KeyPress(), > >> Form_MouseDown() and > >> Form_MouseWheel() catch no event? > >> > >> > >> Impossible to say without more code. > >> I don't think the reason is in this part of code. > >> No need to send whole project, just version where you have > >> isolated the > >> problem. > >> It is much more easy to help, if you can actually see what code > >> does, > >> instead of trying to virtualize it in your head. > >> > >> What is your Gambas version and revision? > >> > >> Jussi > >> > >> > >> It is 2.20 (you know, I'm the guy with the oldtimer server system > >> that cannot compile 3.x :-) ) > >> > >> But no problem, here's a tar.gz of the project - I just found the > >> mailer won't let it through when I append it, so it comes as PM. > >> > >> And it won't run just like this I fear, it's a far too big thing, > >> and I cannot copy all the personal data involved... > >> > >> But maybe you can see from it where the problem is without actually > >> running it. > >> > >> Thanks for your time! > >> > >> Regards > >> > >> Rolf > >> > >> > >> > > > > > > > ------------------------------------------------------------------------------ > > 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 at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > ------------------------------------------------------------------------------ > 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 at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...2524... Thu Apr 7 15:41:08 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Thu, 07 Apr 2011 13:41:08 +0000 Subject: [Gambas-user] Issue 57 in gambas: Precision in math operations Message-ID: <0-6813199134517018827-1441067137073523317-gambas=googlecode.com@...2524...> Status: New Owner: ---- Labels: Version Type-Bug Priority-Medium OpSys-Any Dist-Any Arch-Any Desktop-Any GUI-Any New issue 57 by luca.sto... at ...2537...: Precision in math operations http://code.google.com/p/gambas/issues/detail?id=57 1) Describe the problem. When I subtract a sufficently small float number from another small float number the result is wrong (i.e.: 0.03-0.02 gives 0.001 instead of 0.01) 2) GIVE THE FOLLOWING INFORMATIONS (if they are appropriate): Version: TRUNK Revision: I don't know how to get it, I downloaded the sources on January 28 2011 Operating system: Linux 2.6.32-30-generic Distribution: Ubuntu 10.04.2 LTS Architecture: i686 GUI component: QT3 / QT4 / GTK+ Desktop used: Gnome 3) Provide a little project that reproduces the bug or the crash. see attached 4) If your project needs a database, try to provide it, or part of it. No database needed 5) Explain clearly how to reproduce the bug or the crash. simply try: Print 0.02 - 0.03 6) By doing that carefully, you have done 50% of the bug fix job! IMPORTANT NOTE: if you encounter several different problems or bugs, (for example, a bug in your project, and an interpreter crash while debugging it), please create distinct issues! Attachments: MMain.module 261 bytes From gambas at ...2524... Thu Apr 7 18:08:38 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Thu, 07 Apr 2011 16:08:38 +0000 Subject: [Gambas-user] Issue 57 in gambas: Precision in math operations In-Reply-To: <0-6813199134517018827-1441067137073523317-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-1441067137073523317-gambas=googlecode.com@...2524...> Message-ID: <1-6813199134517018827-1441067137073523317-gambas=googlecode.com@...2524...> Updates: Status: Accepted Labels: -Version -Priority-Medium Version-TRUNK Priority-Critical Comment #1 on issue 57 by benoit.m... at ...626...: Precision in math operations http://code.google.com/p/gambas/issues/detail?id=57 Weird! From gambas at ...2524... Thu Apr 7 18:16:41 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Thu, 07 Apr 2011 16:16:41 +0000 Subject: [Gambas-user] Issue 57 in gambas: Precision in math operations In-Reply-To: <1-6813199134517018827-1441067137073523317-gambas=googlecode.com@...2524...> References: <1-6813199134517018827-1441067137073523317-gambas=googlecode.com@...2524...> <0-6813199134517018827-1441067137073523317-gambas=googlecode.com@...2524...> Message-ID: <2-6813199134517018827-1441067137073523317-gambas=googlecode.com@...2524...> Comment #2 on issue 57 by benoit.m... at ...626...: Precision in math operations http://code.google.com/p/gambas/issues/detail?id=57 The internal number is correct. This is a problem in the routine that convert the number to a visible string. From gambas at ...1... Thu Apr 7 18:20:30 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Thu, 7 Apr 2011 18:20:30 +0200 Subject: [Gambas-user] gb3 RC1: using structures to replace the loss of Mk$ functions In-Reply-To: <4D9D8AD9.7060808@...1887...> References: <4D953CD6.8090001@...1887...> <201104071105.07823.gambas@...1...> <4D9D8AD9.7060808@...1887...> Message-ID: <201104071820.30711.gambas@...1...> > > > > Because sockets are big endian, not little endian as the CPU. I think you > > have to use READ to decode the messages as soon as you receive them. > > > > If you want to process them later, you can use a Variant[] to store the > > decoded data instead of a String storing the undecoded data. > > I don't know what to say. The endianness should automatically be > decoded; I thought was the whole point of removing the Mk*$() functions. > > A transaction can be something like, "Okay, good job" or an entire clip > of the world terrain in dozens of blocks. It can't just be stored in an > array as a Variant. > > What do the string values mean? Are they reversed and/or inverted bits? > If I can flip the bits I can get back to work. When you write the data to the socket, all data are converted from the CPU endianness (little endian for Intel/AMD) to the network endianness (big endian by definition). When you read the data from the socket, the data must be converted back from big endian to little endian, and it is done automatically by READ. But if you read everything inside a string, that is not done, because string are bytes, and so do not have endianness. Do you have an example of code that takes the socket data from a big message like you described and decode it? We will find a solution! -- Beno?t Minisini From kevinfishburne at ...1887... Thu Apr 7 21:17:07 2011 From: kevinfishburne at ...1887... (Kevin Fishburne) Date: Thu, 07 Apr 2011 15:17:07 -0400 Subject: [Gambas-user] Source code - where's the download link gone In-Reply-To: <1302176422.2309.3127.camel@...2479...> References: <201104071426.52986.rterry@...1946...> <4D9D460A.9080105@...1887...> <1302176422.2309.3127.camel@...2479...> Message-ID: <4D9E0DB3.9060903@...1887...> On 04/07/2011 07:40 AM, Caveat wrote: > Hey Kevin > > Thanks for the great (and simple) guide to compiling Gambas3. It worked > for me! > > The only thing I had a problem with was apt-get complaining about > libgdk-pixbuf2.0-dev, so I just knocked it off the end of the command > (I'm running Ubuntu 10.04, 64bit). You're welcome. I got tired of doing it manually so I wrote a script. Mine's for Ubuntu 10.10, so you might want to search in Synaptic for "pixbuf dev" to see if the package is there but with a slightly different name. I don't know what gb components use it, but it's described as: GDK Pixbuf library (development files) The Gdk Pixbuf library provides: - Image loading and saving facilities. - Fast scaling and compositing of pixbufs. - Simple animation loading (ie. animated GIFs) Could be used by gb.image or maybe the image-related form controls. -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sales at ...1887... phone: (770) 853-6271 From math.eber at ...221... Thu Apr 7 21:33:45 2011 From: math.eber at ...221... (Matti) Date: Thu, 07 Apr 2011 21:33:45 +0200 Subject: [Gambas-user] Little corrections to the wiki Message-ID: <4D9E1199.8000307@...221...> ScrollArea.ScrollX (gb.form) "Returns or sets the horizontal scrolling position." ScrollX is read only. "or sets" has to be deleted. Same with ScrollArea.ScrollY (gb.form) "Returns or sets the vertical scrolling position." "or sets" has to be deleted, too. Regards Matti From tobiasboe1 at ...20... Thu Apr 7 22:01:44 2011 From: tobiasboe1 at ...20... (tobias) Date: Thu, 07 Apr 2011 22:01:44 +0200 Subject: [Gambas-user] gambas2 - gambas3 Message-ID: <4D9E1828.5080208@...20...> hi developers, i redirect another question: is there a list that tells specifically what classes are removed/added/changed from gambas2 in gambas3? best regards, tobi From jussi.lahtinen at ...626... Thu Apr 7 22:38:58 2011 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Thu, 7 Apr 2011 23:38:58 +0300 Subject: [Gambas-user] gambas2 - gambas3 In-Reply-To: <4D9E1828.5080208@...20...> References: <4D9E1828.5080208@...20...> Message-ID: I don't know if there is anything else than this: http://www.gambasdoc.org/help/doc/gb2togb3?v3 Jussi On Thu, Apr 7, 2011 at 23:01, tobias wrote: > hi developers, > i redirect another question: > is there a list that tells specifically what classes are > removed/added/changed from gambas2 in gambas3? > > best regards, > tobi > > > ------------------------------------------------------------------------------ > 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 at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Thu Apr 7 22:53:52 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Thu, 7 Apr 2011 22:53:52 +0200 Subject: [Gambas-user] gambas2 - gambas3 In-Reply-To: <4D9E1828.5080208@...20...> References: <4D9E1828.5080208@...20...> Message-ID: <201104072253.52285.gambas@...1...> > hi developers, > i redirect another question: > is there a list that tells specifically what classes are > removed/added/changed from gambas2 in gambas3? > > best regards, > tobi > No, but something to try is doing a "diff" between all *.list files located in the '/usr/share/gambas3/info' directory and all *.list files located in the '/usr/share/gambas2/info' directory. You can do a diff on the *.info files to have the removed/added/changed symbols too, but the diff output is more difficult to interpret. Regards, -- Beno?t Minisini From tobiasboe1 at ...20... Thu Apr 7 23:01:04 2011 From: tobiasboe1 at ...20... (tobias) Date: Thu, 07 Apr 2011 23:01:04 +0200 Subject: [Gambas-user] gambas2 - gambas3 In-Reply-To: <201104072253.52285.gambas@...1...> References: <4D9E1828.5080208@...20...> <201104072253.52285.gambas@...1...> Message-ID: <4D9E2610.9010801@...20...> good evening, thank you, i hope this will do it for him! From gambas at ...1... Thu Apr 7 23:03:14 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Thu, 7 Apr 2011 23:03:14 +0200 Subject: [Gambas-user] New website In-Reply-To: <4D9D9698.4080902@...221...> References: <201104050049.09592.gambas@...1...> <4D9D7F04.2050303@...221...> <4D9D9698.4080902@...221...> Message-ID: <201104072303.15034.gambas@...1...> > Am 07.04.2011 11:08, schrieb Rolf-Werner Eilert: > > Am 07.04.2011 10:58, schrieb Beno?t Minisini: > >>> Am 06.04.2011 21:24, schrieb Beno?t Minisini: > >>>>> On Tue, 2011-04-05 at 00:49 +0200, Beno?t Minisini wrote: > >>>>>> The new website has been uploaded to sourceforge. > >>>>> > >>>>> It would be great if you could get a few Gambas 3 screen shots in the > >>>>> gallery. It's a bit dated as it stands. > >>>> > >>>> I added two recent screenshots. If you have ideas for a third one, you > >>>> are welcome! > >>>> > >>>> Regards, > >>> > >>> I just visited the new website - very nice! > >>> > >>> Now here's one thing however which has to do with my eyes. I have a > >>> slight fault on the right eye which makes kind of blur of sharp edges. > >>> Looks like shaking of a camera or as if someone scratched the lense. > >>> > >>> The shadows on the front page of the new Gambas website look exactly > >>> like that on my screen, so I have a double effect which looks really > >>> odd, almost unreadable to me although it's big enough. I include a > >>> screenshot. Are the shadows only here? Perhaps bold would be clearer > >>> than shadows? > >> > >> Which browser do you use? With Firefox, shadows are fine... > > > > Yes, FF3 and shadows ARE doing fine, as shows the screenshot. But these > > shadows have a strange effect on my right eye, it looks totally blurred. > > Certainly I'm the only one to complain about this, so forget it ;-) > > > >>> And I miss "Downloads". > >> > >> It will come back. :-) > > > > I found the Release Notes page and checked everything, but it still > > doesn't want to compile - read my message to Jussi Lahtinen. > > > > Don't know how to fix this... > > > > Regards > > > > Rolf > > Let me add the following hints: > > On the website's Release Notes page, it says > > > This command creates the configuration script. You need to do that only > if you get the sources from the subversion repository. This is unneeded > if you downloaded a tar.bz2 source archive. > > $ ./reconf-all > > > That's not true, ./configure is not included in the tar.bz2. So I > invoked ./reconf-all which resulted in the error message mentioned before. > > Nevertheless, afterwards a ./configure has been produced, and so I just > tried the next step: > > $ ./configure -C > > > But it stops very short after start, giving a lot of library errors, all > looking like this one: > > === configuring in help > (/home/tester/Downloads/Gambas2/gambas2-2.23.0/help) configure: WARNING: > no configuration information is in help > > Then at the end, it says > > ************************************************************ > > ALL COMPONENTS WILL BE COMPILED > > ************************************************************ > > I didn't try this, it will be futile I guess... Maybe this helps you > somehow :-) > > Regards > > Rolf > I have fixed the release notes page. But please provide the full output of the ./reconf-all and ./configure process, and informations about your system (distribution, version, versions of autoconf, automake and libtool...). Regards, -- Beno?t Minisini From kevinfishburne at ...1887... Thu Apr 7 23:22:47 2011 From: kevinfishburne at ...1887... (Kevin Fishburne) Date: Thu, 07 Apr 2011 17:22:47 -0400 Subject: [Gambas-user] gb3 RC1: using structures to replace the loss of Mk$ functions In-Reply-To: <201104071820.30711.gambas@...1...> References: <4D953CD6.8090001@...1887...> <201104071105.07823.gambas@...1...> <4D9D8AD9.7060808@...1887...> <201104071820.30711.gambas@...1...> Message-ID: <4D9E2B27.1070605@...1887...> On 04/07/2011 12:20 PM, Beno?t Minisini wrote: > > When you write the data to the socket, all data are converted from the CPU > endianness (little endian for Intel/AMD) to the network endianness (big endian > by definition). > > When you read the data from the socket, the data must be converted back from > big endian to little endian, and it is done automatically by READ. > > But if you read everything inside a string, that is not done, because string > are bytes, and so do not have endianness. > > Do you have an example of code that takes the socket data from a big message > like you described and decode it? > > We will find a solution! Ahh, I understand a little better. I don't know much about endianness, so please excuse my ignorance here. When reading socket data into a string how is the data affected exactly? I can think of a few possibilities: 1) The byte order of the entire string is reversed ("abcd" becomes "dcba") 2) The bit order of the entire string is reversed (00001111 becomes 11110000) 3) The byte order of the values is reversed (0000 1111, 1010 1100 becomes 1111 0000, 1100 1010) 4) The bit order of the values is reversed(0000 1111, 1010 1100 becomes 1111 0000, 0011 0101) There are probably different solutions depending on how the data is stored when assigned to a string. If the entire string is reversed then things are a little more complex because the values are no longer in sequence. Assuming the sequence of values in the string hasn't changed, but just the bit or byte order of each individual value, one possible solution would be to have a function that reverses the bit/byte order of a variable. Something like: singlevalue = Reverse(Single@(Mid$(stringvalue, 1, 4))) Another solution would be to add endianness control to the *@() functions, like: singlevalue = Single@(Mid$(stringvalue, 1, 4), True) where the optional boolean argument would indicate if the endianness should be changed. I'd post the code for the larger string data interpretations but it involves at least four modules and a ton of procedures. The server reads five layers of 32x32 values from data files, adding each value to a string. It repeats this nine times to form a 3x3 grid of 32x32 values (96x96 values with five layers). The first layer's values are shorts and the other four layers' values are bytes. The string (54 KB) is sent to the client, who then reassembles the data assigning the values to landscape arrays. The simplest example would just be sending two singles and reassembling them: ' Send the transaction. udp.Begin Write #udp, id As Byte Write #udp, 70 As Byte Write #udp, worldx As Single Write #udp, worldy As Single udp.Send ' Receive the transaction. id = Read #udp As Byte type = Read #udp As Byte If Eof(udp) = False Then data = Read #udp, Lof(udp) ' Process the transaction worldx = Single@(Mid$(data, 1, 4)) worldy = Single@(Mid$(data, 5, 4)) -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sales at ...1887... phone: (770) 853-6271 From gambas at ...2524... Fri Apr 8 01:25:20 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Thu, 07 Apr 2011 23:25:20 +0000 Subject: [Gambas-user] Issue 57 in gambas: Precision in math operations In-Reply-To: <2-6813199134517018827-1441067137073523317-gambas=googlecode.com@...2524...> References: <2-6813199134517018827-1441067137073523317-gambas=googlecode.com@...2524...> <0-6813199134517018827-1441067137073523317-gambas=googlecode.com@...2524...> Message-ID: <3-6813199134517018827-1441067137073523317-gambas=googlecode.com@...2524...> Updates: Status: Fixed Comment #3 on issue 57 by benoit.m... at ...626...: Precision in math operations http://code.google.com/p/gambas/issues/detail?id=57 It should be fixed in revision #3737. From doriano.blengino at ...1909... Fri Apr 8 08:32:20 2011 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Fri, 08 Apr 2011 08:32:20 +0200 Subject: [Gambas-user] gb3 RC1: using structures to replace the loss of Mk$ functions In-Reply-To: <4D9E2B27.1070605@...1887...> References: <4D953CD6.8090001@...1887...> <201104071105.07823.gambas@...1...> <4D9D8AD9.7060808@...1887...> <201104071820.30711.gambas@...1...> <4D9E2B27.1070605@...1887...> Message-ID: <4D9EABF4.6080607@...1909...> Kevin Fishburne ha scritto: > On 04/07/2011 12:20 PM, Beno?t Minisini wrote: > >> When you write the data to the socket, all data are converted from the CPU >> endianness (little endian for Intel/AMD) to the network endianness (big endian >> by definition). >> >> When you read the data from the socket, the data must be converted back from >> big endian to little endian, and it is done automatically by READ. >> >> But if you read everything inside a string, that is not done, because string >> are bytes, and so do not have endianness. >> >> Do you have an example of code that takes the socket data from a big message >> like you described and decode it? >> >> We will find a solution! >> > Ahh, I understand a little better. I don't know much about endianness, > so please excuse my ignorance here. When reading socket data into a > string how is the data affected exactly? I can think of a few possibilities: > > 1) The byte order of the entire string is reversed ("abcd" becomes "dcba") > 2) The bit order of the entire string is reversed (00001111 becomes > 11110000) > 3) The byte order of the values is reversed (0000 1111, 1010 1100 > becomes 1111 0000, 1100 1010) > 4) The bit order of the values is reversed(0000 1111, 1010 1100 becomes > 1111 0000, 0011 0101) > Endiannes refers to the order the bytes are kept in memory, when a numerical multi-byte value is involved. Strictly speaking, strings are not affected. For example, human beings are big endian: the number 10, composed by two digits, is written with the weighter digit first. If human beings were little endian, they wrote this number as "01". Computers don't use decimal base (not always true), but it is the same. If you have a word composed by two bytes, you can write those bytes in two different orders: MSB (most significant byte, or "heavier byte") first, or LSB first. The number 512 in hex is formed by two bytes: MSB=2 and LSB=0, written by a human being as "&h0200". A computer can store (or send over a channel) those bytes in either order. The same mechanism applies to 4-bytes numbers, and floating point numbers. These last ones could be a little different, because they have two parts, mantissa and exponent, but normally mantissa is considered least significant than exponent. Note that even strings can be affected, if they are UTF (or multi-byte, or whatever), because a single character can need two bytes. So, Benoit is right when he says that this endiannes has to do with network. But this is not completely true, because the same problem arises when a computer writes some data to a file, and this file is transferred to another computer. UTF is a clear example: files which contain UTF text can sometimes be problematic because it is not clear which endianness this UTF has. Correctly composed files have a marker which clearly states the endianness (named BOM, perhaps). This is why some text editors try different encodings when opening a file, and assume they chose the wrong encoding if an illegal character is detected. While it is good that sending data over a network should be an endiannes-aware operation, it is also true that some easy way to play with single bytes could be handy. A swapendiannes(), or changeendianness() function could be used to swap bytes inside a variable, be it two, four or eight bytes long. Just an idea. Regards, Doriano From kevinfishburne at ...1887... Fri Apr 8 09:04:08 2011 From: kevinfishburne at ...1887... (Kevin Fishburne) Date: Fri, 08 Apr 2011 03:04:08 -0400 Subject: [Gambas-user] gb3 RC1: using structures to replace the loss of Mk$ functions In-Reply-To: <4D9EABF4.6080607@...1909...> References: <4D953CD6.8090001@...1887...> <201104071105.07823.gambas@...1...> <4D9D8AD9.7060808@...1887...> <201104071820.30711.gambas@...1...> <4D9E2B27.1070605@...1887...> <4D9EABF4.6080607@...1909...> Message-ID: <4D9EB368.4040705@...1887...> On 04/08/2011 02:32 AM, Doriano Blengino wrote: > Kevin Fishburne ha scritto: >> >> Ahh, I understand a little better. I don't know much about endianness, >> so please excuse my ignorance here. When reading socket data into a >> string how is the data affected exactly? I can think of a few possibilities: >> >> 1) The byte order of the entire string is reversed ("abcd" becomes "dcba") >> 2) The bit order of the entire string is reversed (00001111 becomes >> 11110000) >> 3) The byte order of the values is reversed (0000 1111, 1010 1100 >> becomes 1111 0000, 1100 1010) >> 4) The bit order of the values is reversed(0000 1111, 1010 1100 becomes >> 1111 0000, 0011 0101) >> > Endiannes refers to the order the bytes are kept in memory, when a > numerical multi-byte value is involved. Strictly speaking, strings are > not affected. For example, human beings are big endian: the number 10, > composed by two digits, is written with the weighter digit first. If > human beings were little endian, they wrote this number as "01". > > ... That is very good info, thank. So if endianness generally describes the byte order, not the bit order, then either each value (two, four or eight bytes) is reversed or the entire string is reversed. Hopefully it's the former rather than the latter, as that would be easier to compensate for. While it would be slow, I could just write functions for flipping the byte order of characters in a string. That would work fine for the client but may impact performance server side. I'll do some experimenting tomorrow to see what I can come up with. -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sales at ...1887... phone: (770) 853-6271 From rterry at ...1946... Fri Apr 8 10:11:14 2011 From: rterry at ...1946... (richard terry) Date: Fri, 8 Apr 2011 18:11:14 +1000 Subject: [Gambas-user] Editor-preferences Q) Message-ID: <201104081811.14416.rterry@...1946...> Hi List, Can't see anywhere now to set the font size in the preferences > editor > settings. Am I missing something? Installed gambas on a new machine and the editor fonts are small and hard to read. Any help appreciated. From eilert-sprachen at ...221... Fri Apr 8 10:49:43 2011 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Fri, 08 Apr 2011 10:49:43 +0200 Subject: [Gambas-user] New website In-Reply-To: <201104072303.15034.gambas@...1...> References: <201104050049.09592.gambas@...1...> <4D9D7F04.2050303@...221...> <4D9D9698.4080902@...221...> <201104072303.15034.gambas@...1...> Message-ID: <4D9ECC27.1090806@...221...> Am 07.04.2011 23:03, schrieb Beno?t Minisini: >> Am 07.04.2011 11:08, schrieb Rolf-Werner Eilert: >>> Am 07.04.2011 10:58, schrieb Beno?t Minisini: >>>>> Am 06.04.2011 21:24, schrieb Beno?t Minisini: >>>>>>> On Tue, 2011-04-05 at 00:49 +0200, Beno?t Minisini wrote: >>>>>>>> The new website has been uploaded to sourceforge. >>>>>>> >>>>>>> It would be great if you could get a few Gambas 3 screen shots in the >>>>>>> gallery. It's a bit dated as it stands. >>>>>> >>>>>> I added two recent screenshots. If you have ideas for a third one, you >>>>>> are welcome! >>>>>> >>>>>> Regards, >>>>> >>>>> I just visited the new website - very nice! >>>>> >>>>> Now here's one thing however which has to do with my eyes. I have a >>>>> slight fault on the right eye which makes kind of blur of sharp edges. >>>>> Looks like shaking of a camera or as if someone scratched the lense. >>>>> >>>>> The shadows on the front page of the new Gambas website look exactly >>>>> like that on my screen, so I have a double effect which looks really >>>>> odd, almost unreadable to me although it's big enough. I include a >>>>> screenshot. Are the shadows only here? Perhaps bold would be clearer >>>>> than shadows? >>>> >>>> Which browser do you use? With Firefox, shadows are fine... >>> >>> Yes, FF3 and shadows ARE doing fine, as shows the screenshot. But these >>> shadows have a strange effect on my right eye, it looks totally blurred. >>> Certainly I'm the only one to complain about this, so forget it ;-) >>> >>>>> And I miss "Downloads". >>>> >>>> It will come back. :-) >>> >>> I found the Release Notes page and checked everything, but it still >>> doesn't want to compile - read my message to Jussi Lahtinen. >>> >>> Don't know how to fix this... >>> >>> Regards >>> >>> Rolf >> >> Let me add the following hints: >> >> On the website's Release Notes page, it says >> >> >> This command creates the configuration script. You need to do that only >> if you get the sources from the subversion repository. This is unneeded >> if you downloaded a tar.bz2 source archive. >> >> $ ./reconf-all >> >> >> That's not true, ./configure is not included in the tar.bz2. So I >> invoked ./reconf-all which resulted in the error message mentioned before. >> >> Nevertheless, afterwards a ./configure has been produced, and so I just >> tried the next step: >> >> $ ./configure -C >> >> >> But it stops very short after start, giving a lot of library errors, all >> looking like this one: >> >> === configuring in help >> (/home/tester/Downloads/Gambas2/gambas2-2.23.0/help) configure: WARNING: >> no configuration information is in help >> >> Then at the end, it says >> >> ************************************************************ >> >> ALL COMPONENTS WILL BE COMPILED >> >> ************************************************************ >> >> I didn't try this, it will be futile I guess... Maybe this helps you >> somehow :-) >> >> Regards >> >> Rolf >> > > I have fixed the release notes page. But please provide the full output of the > ./reconf-all and ./configure process, and informations about your system > (distribution, version, versions of autoconf, automake and libtool...). > > Regards, > > Suse 10.3, autoconf is 2.61, automake is 1.10 and libtool is 1.5.24. Last afternoon I remembered I have every Gambas version here in my directory, so I tried 2.22 - it has a configure file ready, so I started it and it ran through flawlessly, make compiled without errors, and Gambas 2.22 runs without problems. But this little problem in my project still remains. Ok Benoit, although I guess the problem I had will have nothing to do with the version of Gambas, here is reconf. I append configure.txt (reconf didn't want to be deviated into a text file): tester at ...1924...:~/Downloads/Gambas2/gambas2-2.23.0> ./reconf-all libtoolize: unrecognized option `--nonrecursive' Try `libtoolize --help' for more information. 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 autoreconf: configure.ac: not using Libtool autoreconf: running: /usr/bin/autoconf autoreconf: running: /usr/bin/autoheader autoreconf: running: automake --add-missing --copy --no-force gbc/Makefile.am:5: Libtool library used but `LIBTOOL' is undefined gbc/Makefile.am:5: The usual way to define `LIBTOOL' is to add `AC_PROG_LIBTOOL' gbc/Makefile.am:5: to `configure.ac' and run `aclocal' and `autoconf' again. gbc/Makefile.am:5: If `AC_PROG_LIBTOOL' is in `configure.ac', make sure gbc/Makefile.am:5: its definition is in aclocal's search path. gbx/Makefile.am:6: Libtool library used but `LIBTOOL' is undefined gbx/Makefile.am:6: The usual way to define `LIBTOOL' is to add `AC_PROG_LIBTOOL' gbx/Makefile.am:6: to `configure.ac' and run `aclocal' and `autoconf' again. gbx/Makefile.am:6: If `AC_PROG_LIBTOOL' is in `configure.ac', make sure gbx/Makefile.am:6: its definition is in aclocal's search path. lib/compress/Makefile.am:6: Libtool library used but `LIBTOOL' is undefined lib/compress/Makefile.am:6: The usual way to define `LIBTOOL' is to add `AC_PROG_LIBTOOL' lib/compress/Makefile.am:6: to `configure.ac' and run `aclocal' and `autoconf' again. lib/compress/Makefile.am:6: If `AC_PROG_LIBTOOL' is in `configure.ac', make sure lib/compress/Makefile.am:6: its definition is in aclocal's search path. lib/db/Makefile.am:6: Libtool library used but `LIBTOOL' is undefined lib/db/Makefile.am:6: The usual way to define `LIBTOOL' is to add `AC_PROG_LIBTOOL' lib/db/Makefile.am:6: to `configure.ac' and run `aclocal' and `autoconf' again. lib/db/Makefile.am:6: If `AC_PROG_LIBTOOL' is in `configure.ac', make sure lib/db/Makefile.am:6: its definition is in aclocal's search path. lib/debug/Makefile.am:6: Libtool library used but `LIBTOOL' is undefined lib/debug/Makefile.am:6: The usual way to define `LIBTOOL' is to add `AC_PROG_LIBTOOL' lib/debug/Makefile.am:6: to `configure.ac' and run `aclocal' and `autoconf' again. lib/debug/Makefile.am:6: If `AC_PROG_LIBTOOL' is in `configure.ac', make sure lib/debug/Makefile.am:6: its definition is in aclocal's search path. lib/draw/Makefile.am:3: Libtool library used but `LIBTOOL' is undefined lib/draw/Makefile.am:3: The usual way to define `LIBTOOL' is to add `AC_PROG_LIBTOOL' lib/draw/Makefile.am:3: to `configure.ac' and run `aclocal' and `autoconf' again. lib/draw/Makefile.am:3: If `AC_PROG_LIBTOOL' is in `configure.ac', make sure lib/draw/Makefile.am:3: its definition is in aclocal's search path. lib/eval/Makefile.am:6: Libtool library used but `LIBTOOL' is undefined lib/eval/Makefile.am:6: The usual way to define `LIBTOOL' is to add `AC_PROG_LIBTOOL' lib/eval/Makefile.am:6: to `configure.ac' and run `aclocal' and `autoconf' again. lib/eval/Makefile.am:6: If `AC_PROG_LIBTOOL' is in `configure.ac', make sure lib/eval/Makefile.am:6: its definition is in aclocal's search path. lib/gui/Makefile.am:6: Libtool library used but `LIBTOOL' is undefined lib/gui/Makefile.am:6: The usual way to define `LIBTOOL' is to add `AC_PROG_LIBTOOL' lib/gui/Makefile.am:6: to `configure.ac' and run `aclocal' and `autoconf' again. lib/gui/Makefile.am:6: If `AC_PROG_LIBTOOL' is in `configure.ac', make sure lib/gui/Makefile.am:6: its definition is in aclocal's search path. lib/option/Makefile.am:6: Libtool library used but `LIBTOOL' is undefined lib/option/Makefile.am:6: The usual way to define `LIBTOOL' is to add `AC_PROG_LIBTOOL' lib/option/Makefile.am:6: to `configure.ac' and run `aclocal' and `autoconf' again. lib/option/Makefile.am:6: If `AC_PROG_LIBTOOL' is in `configure.ac', make sure lib/option/Makefile.am:6: its definition is in aclocal's search path. lib/vb/Makefile.am:6: Libtool library used but `LIBTOOL' is undefined lib/vb/Makefile.am:6: The usual way to define `LIBTOOL' is to add `AC_PROG_LIBTOOL' lib/vb/Makefile.am:6: to `configure.ac' and run `aclocal' and `autoconf' again. lib/vb/Makefile.am:6: If `AC_PROG_LIBTOOL' is in `configure.ac', make sure lib/vb/Makefile.am:6: its definition is in aclocal's search path. autoreconf: automake failed with exit status: 1 So, why didn't you provide a ready-made configure file? My system certainly would be able to manage that at least. But anyway, the basic problem was: Why can't I catch any event in a form at a central place? I had expected that prior to arrive at an individual control, all events will run through the form's events, i. e. for example I expected that Form_KeyPress is always fired before the keystroke arrives at the textbox where the user pressed the key. That way, one could easily count every event for this whole form at a central place instead of reading the events for each control separately. Did I get that wrong? How could I achieve that? Regards Rolf -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: configure.txt URL: From jussi.lahtinen at ...626... Fri Apr 8 14:59:34 2011 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Fri, 8 Apr 2011 15:59:34 +0300 Subject: [Gambas-user] Editor-preferences Q) In-Reply-To: <201104081811.14416.rterry@...1946...> References: <201104081811.14416.rterry@...1946...> Message-ID: Check "preferences > interface" and "preferences > style". Jussi On Fri, Apr 8, 2011 at 11:11, richard terry wrote: > Hi List, > > Can't see anywhere now to set the font size in the preferences > editor > > settings. Am I missing something? > > Installed gambas on a new machine and the editor fonts are small and hard > to > read. > > Any help appreciated. > > > ------------------------------------------------------------------------------ > 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 at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From soleilpqd at ...626... Fri Apr 8 17:07:42 2011 From: soleilpqd at ...626... (=?UTF-8?B?UGjhuqFtIFF1YW5nIETGsMahbmc=?=) Date: Fri, 8 Apr 2011 22:07:42 +0700 Subject: [Gambas-user] How different about Expand event of Treeview in Gambas 3 Message-ID: Hi, >From the Wiki (for Gambas 2) for Expand event of Tree view: Raised when an item is expanded. The internal cursor is set to the expanded item. This wiki does not exist for Gambas 3 With Gambas3 I get the TreeView.Item same as TreeView.Current in Expand event. Is it change of Expand event? [OperatingSystem] OperatingSystem=Linux KernelRelease=2.6.35.11-83.fc14.i686 DistributionVendor=redhat DistributionRelease=Fedora release 14 (Laughlin) [System] CPUArchitecture=i686 TotalRam=1793500 kB Desktop=Gnome [Gambas] Gambas1=Not Installed Gambas2=2.22.0 Gambas2Path=/usr/local/bin/gbx2 Gambas3=2.99.1 Gambas3Path=/usr/local/bin/gbx3 From jussi.lahtinen at ...626... Fri Apr 8 17:31:50 2011 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Fri, 8 Apr 2011 18:31:50 +0300 Subject: [Gambas-user] Inconsistent _compare method usage with .Exist() Message-ID: Hi! See attachment. I get: True False False When this is expected; True False True Shouldn't be this way, am I right? Gambas 3 rev 3737 @ Ubuntu 10.10 64bit Jussi -------------- next part -------------- A non-text attachment was scrubbed... Name: Inconsistency-0.0.1.tar.gz Type: application/x-gzip Size: 4946 bytes Desc: not available URL: From johnny.requiem at ...626... Fri Apr 8 20:32:27 2011 From: johnny.requiem at ...626... (Corne van Tonder) Date: Fri, 8 Apr 2011 19:32:27 +0100 Subject: [Gambas-user] Dynamically loading labels doesn't work for me. Message-ID: Hey Guy's, I've been trying to load label on to a form in code using both gambas2, as well as Gambas3. I can create a TextBox, thus...... Public Sub Form_Open() Dim i As TextBox Me.Arrangement = Arrange.Column i = New TextBox(Me) i.width = 100 i.text = "Hello, World!" End I cannot do the same with a Label using exactly the same code (changing the obvious....obviously ;-) ) I'm running Gambas on Slackware13.1 Many thanks in advance cvt From doriano.blengino at ...1909... Fri Apr 8 22:14:45 2011 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Fri, 08 Apr 2011 22:14:45 +0200 Subject: [Gambas-user] gb3 RC1: using structures to replace the loss of Mk$ functions In-Reply-To: <4D9EB368.4040705@...1887...> References: <4D953CD6.8090001@...1887...> <201104071105.07823.gambas@...1...> <4D9D8AD9.7060808@...1887...> <201104071820.30711.gambas@...1...> <4D9E2B27.1070605@...1887...> <4D9EABF4.6080607@...1909...> <4D9EB368.4040705@...1887...> Message-ID: <4D9F6CB5.4090503@...1909...> Il 08/04/2011 09:04, Kevin Fishburne ha scritto: > On 04/08/2011 02:32 AM, Doriano Blengino wrote: > >> >> Endiannes refers to the order the bytes are kept in memory, when a >> numerical multi-byte value is involved. Strictly speaking, strings are >> not affected. For example, human beings are big endian: the number 10, >> composed by two digits, is written with the weighter digit first. If >> human beings were little endian, they wrote this number as "01". >> >> ... >> > > So if endianness generally describes the byte order, not the bit order, > then either each value (two, four or eight bytes) is reversed or the > entire string is reversed. Hopefully it's the former rather than the > latter, as that would be easier to compensate for. > > While it would be slow, I could just write functions for flipping the > byte order of characters in a string. That would work fine for the > client but may impact performance server side. I'll do some > experimenting tomorrow to see what I can come up with. > > Perhaps I got it - but this should be confirmed by Benoit, I think. On the client side, you can receive a packet as a string. Then you can use a memory stream to read from the string, so the endianness is coped with by the stream object. It should work. But this is only on the client side, the server already uses a stream to send the data, right? BTW, I think that it is not true that you can not use a Variant. A Variant can be a string, and string's sizes are limited only by the available memory. I think you use a string anyway, even when you receive tiles and other big objects. With respect to a true string, a Variant wastes a little amount of memory, which is neglectable especially when using big chunks of data. The problem is that I don't see how a variant could help you... The trick with string + memory stream should work for you. Regards, -- Doriano Blengino "Listen twice before you speak. This is why we have two ears, but only one mouth." From gambas at ...1... Fri Apr 8 22:49:27 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Fri, 8 Apr 2011 22:49:27 +0200 Subject: [Gambas-user] gb3 RC1: using structures to replace the loss of Mk$ functions In-Reply-To: <4D9EB368.4040705@...1887...> References: <4D953CD6.8090001@...1887...> <4D9EABF4.6080607@...1909...> <4D9EB368.4040705@...1887...> Message-ID: <201104082249.27721.gambas@...1...> > Kevin Fishburne wrote: > > Ahh, I understand a little better. I don't know much about endianness, > so please excuse my ignorance here. > > ... > > While it would be slow, I could just write functions for flipping the > byte order of characters in a string. That would work fine for the > client but may impact performance server side. I'll do some > experimenting tomorrow to see what I can come up with. > Wikipedia is your friend, Kevin. http://en.wikipedia.org/wiki/Endianness And UTF-8 strings used by Gambas are not endianness-dependent. Anyway, I'm almost sure that you can decode messages with READ while you receive them, and store the decoded data in an array, or a collection (the data is then indexed by name, easier but slower), and then process them later as you wanted. Regards, -- Beno?t Minisini From rterry at ...1946... Sat Apr 9 08:05:38 2011 From: rterry at ...1946... (richard terry) Date: Sat, 9 Apr 2011 16:05:38 +1000 Subject: [Gambas-user] Editor-preferences Q) In-Reply-To: References: <201104081811.14416.rterry@...1946...> Message-ID: <201104091605.38348.rterry@...1946...> On Friday 08 April 2011 22:59:34 Jussi Lahtinen wrote: Ah, thanks, I would have thought the editor font should be under editor. Regards richard > Check "preferences > interface" and "preferences > style". > > Jussi > > On Fri, Apr 8, 2011 at 11:11, richard terry wrote: > > Hi List, > > > > Can't see anywhere now to set the font size in the preferences > editor > > > settings. Am I missing something? > > > > Installed gambas on a new machine and the editor fonts are small and hard > > to > > read. > > > > Any help appreciated. > > > > > > ------------------------------------------------------------------------- > >----- 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 at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > --------------------------------------------------------------------------- > --- 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 at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From bugcy013 at ...626... Sat Apr 9 08:51:28 2011 From: bugcy013 at ...626... (Ganesh Kumar) Date: Sat, 9 Apr 2011 06:51:28 +0000 Subject: [Gambas-user] Shell script output to label text Message-ID: Hi , I want shell script output, printed to the label text, Please help me.. my code,, ******************************************************************* PUBLIC SUB Form_Open() DIM sStr AS String SHELL "sh /home/dhana/foo.sh" TO sStr IF InStr(sStr, " ") THEN Label1.text =" " & sStr ELSE Label1.text = "Error" ENDIF END ******************************************************************* I got error...please guide me.. Advance thanks -Ganesh. -- Did I learn something today? If not, I wasted it. From rterry at ...1946... Sat Apr 9 08:54:58 2011 From: rterry at ...1946... (richard terry) Date: Sat, 9 Apr 2011 16:54:58 +1000 Subject: [Gambas-user] Webview + images Kubuntu 9 / Kubuntu 10 Message-ID: <201104091654.58242.rterry@...1946...> I'm having a problem with images being shown in the webview control in kubuntu 10. I run 9 on my laptop, no problems. Its not my program, as I modified the code in the webrowser example to just show the contents of a html file > all the text is ok, but not the pictures. The same file renders ok in Konqueror and Firefox. Ditto if you save a page in firefox as a file, and then try and reload this into webview > no images. This code: , just shows an empty box on the screen where the image should be. I've also noticed that on Kubuntu 9 or 10, rendering of for example underlined text is erratic. I wondered if anyone else has noticed this, or can replicate the problem. This is a major show stopper for me, as I use the webbrowser to display my clinical notes, and this issue only came to light when I put a new Dev environement on an office machine at work. Regards Richard From ihaywood at ...1979... Sat Apr 9 09:15:16 2011 From: ihaywood at ...1979... (Ian Haywood) Date: Sat, 9 Apr 2011 17:15:16 +1000 Subject: [Gambas-user] Webview + images Kubuntu 9 / Kubuntu 10 In-Reply-To: <201104091654.58242.rterry@...1946...> References: <201104091654.58242.rterry@...1946...> Message-ID: 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 From rterry at ...1946... Sat Apr 9 09:40:11 2011 From: rterry at ...1946... (richard terry) Date: Sat, 9 Apr 2011 17:40:11 +1000 Subject: [Gambas-user] Webview + images Kubuntu 9 / Kubuntu 10 In-Reply-To: References: <201104091654.58242.rterry@...1946...> Message-ID: <201104091740.11660.rterry@...1946...> On Saturday 09 April 2011 17:15:16 Ian Haywood wrote: > ALIGN=LEFT WIDTH=320 HEIGHT=240 BORDER=0> > Thanks Ian, I booted up the other machine again and tested this with/without the file:/// and seems you are quite correct, I had saved a page from google with some images to the local drive - no piccies at all, despite them present putting the file:/// before it does work, removing it > dosn't work. Can't test the clinical notes until I get back to work monday, but you are probably correct. Thanks, I'll stop sweating over this and change the source code to include your suggestion. richard From gambas at ...1... Sat Apr 9 09:59:29 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sat, 9 Apr 2011 09:59:29 +0200 Subject: [Gambas-user] Shell script output to label text In-Reply-To: References: Message-ID: <201104090959.29168.gambas@...1...> > Hi , > > I want shell script output, printed to the label text, Please help me.. > > my code,, > > ******************************************************************* > > PUBLIC SUB Form_Open() > DIM sStr AS String > SHELL "sh /home/dhana/foo.sh" TO sStr > IF InStr(sStr, " ") THEN > Label1.text =" " & sStr > ELSE > Label1.text = "Error" > ENDIF > END > > ******************************************************************* > > > I got error...please guide me.. > > Advance thanks > > -Ganesh. Please provide the error, at least! And, better, a full project source archive to reproduce it. Regards, -- Beno?t Minisini From gambas at ...1... Sat Apr 9 10:09:37 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sat, 9 Apr 2011 10:09:37 +0200 Subject: [Gambas-user] Inconsistent _compare method usage with .Exist() In-Reply-To: References: Message-ID: <201104091009.37461.gambas@...1...> > Hi! > See attachment. > > I get: > True > False > False > > When this is expected; > True > False > True > > Shouldn't be this way, am I right? > > Gambas 3 rev 3737 @ Ubuntu 10.10 64bit > > Jussi Fixed in revision #3739. Regards, -- Beno?t Minisini From gambas at ...1... Sat Apr 9 10:16:07 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sat, 9 Apr 2011 10:16:07 +0200 Subject: [Gambas-user] Little corrections to the wiki In-Reply-To: <4D9E1199.8000307@...221...> References: <4D9E1199.8000307@...221...> Message-ID: <201104091016.07730.gambas@...1...> > ScrollArea.ScrollX (gb.form) > "Returns or sets the horizontal scrolling position." > ScrollX is read only. "or sets" has to be deleted. > > Same with > ScrollArea.ScrollY (gb.form) > "Returns or sets the vertical scrolling position." > "or sets" has to be deleted, too. > > Regards > Matti > These properties were made writable as expected in revision #3740. Regards, -- Beno?t Minisini From gambas at ...1... Sat Apr 9 10:17:39 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sat, 9 Apr 2011 10:17:39 +0200 Subject: [Gambas-user] Source code - where's the download link gone In-Reply-To: <201104071056.57418.gambas@...1...> References: <201104071426.52986.rterry@...1946...> <201104071056.57418.gambas@...1...> Message-ID: <201104091017.39836.gambas@...1...> > > Hi LIst > > > > Tried the new web site, couldn't find anywhere the link to the page > > telling how to download the sources to compile??? > > > > Can some one post this or send me the link. > > > > Regards > > > > Richard > > Oops, sorry, I didn't notice. > > There is a "release notes" link under the download button that will tell > you how to compile and install a source archive, but there is no link to > tell you how to download the sources directly from the subversion > repository. > > I will fix that... I added a "Compilation & installation" link in the left menu. It points at the "Compilation & installation" page in the wiki. I added in that page a link to the "How to deal with subversion" page that nows explain how to download the source from the repository and compile it. Regards, -- Beno?t Minisini From gambas at ...1... Sat Apr 9 10:18:26 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sat, 9 Apr 2011 10:18:26 +0200 Subject: [Gambas-user] Global reading of events In-Reply-To: References: <4D9C408B.9040701@...221...> <4D9D7DC7.4040902@...221...> Message-ID: <201104091018.26290.gambas@...1...> > Gambas web site says libtool version 1.5.12, but I'm not sure that is > correct... > You may want to try with newer version (I'm using 2.2.6b successfully). > > Jussi > I fixed that. Now the correct required versions of autoconf, automake and libtool are displayed. Regards, -- Beno?t Minisini From gambas at ...1... Sat Apr 9 11:46:13 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sat, 9 Apr 2011 11:46:13 +0200 Subject: [Gambas-user] Read array of string return from external libraries function In-Reply-To: References: <201103300114.46041.gambas@...1...> Message-ID: <201104091146.13892.gambas@...1...> > Thank Benoit! > > One more question about the below basic data structure: > > aStruct * anExternFunc(...) > > with: > > aStruct { > > aClass *data > aStruct *previous > aStruct *next > } > > > How to get all *data > I tried > > pNext = anExternFunc(...) > while pNext <> null > > pData = Pointer@(pNext) > > ... > > pNext = pData + SizeOf(gb.pointer)*2 > > wend > > and failed. > --8<---------------------------------------------------------- pStruct = anExternFunc(...) While pStruct pData = Pointer@(pStruct) ... pStruct = Pointer@(pStruct + Sizeof(gb.Pointer) * 2) Wend --8<---------------------------------------------------------- That should work. Does it? You can use a memory stream and a structure too: --8<---------------------------------------------------------- Struct MyDataSlot Data As Pointer Previous As Pointer Next As Pointer End Struct ... Dim hMem As Stream Dim hSlot As MyDataSlot pStruct = anExternFunc(...) While pStruct hMem = Memory pStruct For Read hSlot = Read #hMem As MyDataSlot pData = hSlot.Data ... pStruct = Pointer@(hSlot.Next) Wend --8<---------------------------------------------------------- Regards, -- Beno?t Minisini From jussi.lahtinen at ...626... Sat Apr 9 14:15:36 2011 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Sat, 9 Apr 2011 15:15:36 +0300 Subject: [Gambas-user] Inconsistent _compare method usage with .Exist() In-Reply-To: <201104091009.37461.gambas@...1...> References: <201104091009.37461.gambas@...1...> Message-ID: Works, thanks! Jussi 2011/4/9 Beno?t Minisini > > Hi! > > See attachment. > > > > I get: > > True > > False > > False > > > > When this is expected; > > True > > False > > True > > > > Shouldn't be this way, am I right? > > > > Gambas 3 rev 3737 @ Ubuntu 10.10 64bit > > > > Jussi > > Fixed in revision #3739. > > Regards, > > -- > Beno?t Minisini > > > ------------------------------------------------------------------------------ > 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 at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From steven at ...1652... Sat Apr 9 14:57:58 2011 From: steven at ...1652... (Steven Lobbezoo) Date: Sat, 09 Apr 2011 14:57:58 +0200 Subject: [Gambas-user] Gambas on Suse 11.4 Message-ID: <1302353878.2523.4.camel@...2573...> Hi, I tried everything to install 2 on SuSE 11.3 and 11.4. Then found out that it's not possible since they abandoned qt3 for qt4. So, Ok, I will try to switch to gambas 3. Tried to install that, but also no way. I get an error : /usr/lib/gcc/i586-suse-linux/4.5/../../../../i586-suse-linux/bin/ld: cannot find -ljscore collect2: ld returned 1 exit status I found out that that is an known bug in qt4, for which there is no solution. So, what am I to do ????? The only solution I see, is going back to Suse 11.2 or even older. But that is redicoulous. Anybody any ideas ? Steven From jussi.lahtinen at ...626... Sat Apr 9 15:50:47 2011 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Sat, 9 Apr 2011 16:50:47 +0300 Subject: [Gambas-user] Gambas on Suse 11.4 In-Reply-To: <1302353878.2523.4.camel@...2573...> References: <1302353878.2523.4.camel@...2573...> Message-ID: Hmmm... You are trying to install Gambas 3 from what? Sources? Seems that Gambas will at least compile fine on OpenSuSE 9.x/10.x/11.x. Check that dependencies are satisfied. http://gambasdoc.org/help/install?en&view Jussi On Sat, Apr 9, 2011 at 15:57, Steven Lobbezoo wrote: > Hi, > > I tried everything to install 2 on SuSE 11.3 and 11.4. > Then found out that it's not possible since they abandoned qt3 for qt4. > > So, Ok, I will try to switch to gambas 3. > Tried to install that, but also no way. > I get an error : > /usr/lib/gcc/i586-suse-linux/4.5/../../../../i586-suse-linux/bin/ld: > cannot find -ljscore > collect2: ld returned 1 exit status > > I found out that that is an known bug in qt4, for which there is no > solution. > > So, what am I to do ????? > The only solution I see, is going back to Suse 11.2 or even older. > But that is redicoulous. > > Anybody any ideas ? > > Steven > > > ------------------------------------------------------------------------------ > 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 at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From steven at ...1652... Sat Apr 9 16:08:54 2011 From: steven at ...1652... (Steven Lobbezoo) Date: Sat, 09 Apr 2011 16:08:54 +0200 Subject: [Gambas-user] Gambas on Suse 11.4 In-Reply-To: References: <1302353878.2523.4.camel@...2573...> Message-ID: <1302358134.2523.6.camel@...2573...> Yes, latest trunk Sure it works on OpenSuse 10.x and 11.0, 11.1, 11.2, but NOT on 11.3 and 11.4 (what I am using now) All depencies are satisfied. Config is ok to install all I need. It's the make who gives this error. Le samedi 09 avril 2011 ? 16:50 +0300, Jussi Lahtinen a ?crit : > Hmmm... You are trying to install Gambas 3 from what? Sources? > Seems that Gambas will at least compile fine on OpenSuSE 9.x/10.x/11.x. > > Check that dependencies are satisfied. > http://gambasdoc.org/help/install?en&view > > Jussi > > > > On Sat, Apr 9, 2011 at 15:57, Steven Lobbezoo wrote: > > > Hi, > > > > I tried everything to install 2 on SuSE 11.3 and 11.4. > > Then found out that it's not possible since they abandoned qt3 for qt4. > > > > So, Ok, I will try to switch to gambas 3. > > Tried to install that, but also no way. > > I get an error : > > /usr/lib/gcc/i586-suse-linux/4.5/../../../../i586-suse-linux/bin/ld: > > cannot find -ljscore > > collect2: ld returned 1 exit status > > > > I found out that that is an known bug in qt4, for which there is no > > solution. > > > > So, what am I to do ????? > > The only solution I see, is going back to Suse 11.2 or even older. > > But that is redicoulous. > > > > Anybody any ideas ? > > > > Steven > > > > > > ------------------------------------------------------------------------------ > > 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 at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > ------------------------------------------------------------------------------ > 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 at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From jussi.lahtinen at ...626... Sat Apr 9 17:38:55 2011 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Sat, 9 Apr 2011 18:38:55 +0300 Subject: [Gambas-user] Gambas on Suse 11.4 In-Reply-To: <1302358134.2523.6.camel@...2573...> References: <1302353878.2523.4.camel@...2573...> <1302358134.2523.6.camel@...2573...> Message-ID: Please attach full output of configure and make, and maybe someone can help you. But if you are sure this is Qt4 bug, then maybe you can downgrade your Qt4 revision, or maybe Benoit knows workaround for this problem. Otherwise, this is Qt4 bug not Gambas bug... Jussi On Sat, Apr 9, 2011 at 17:08, Steven Lobbezoo wrote: > Yes, latest trunk > Sure it works on OpenSuse 10.x and 11.0, 11.1, 11.2, but NOT on 11.3 and > 11.4 (what I am using now) > > All depencies are satisfied. > Config is ok to install all I need. > > It's the make who gives this error. > > > Le samedi 09 avril 2011 ? 16:50 +0300, Jussi Lahtinen a ?crit : > > > Hmmm... You are trying to install Gambas 3 from what? Sources? > > Seems that Gambas will at least compile fine on OpenSuSE 9.x/10.x/11.x. > > > > Check that dependencies are satisfied. > > http://gambasdoc.org/help/install?en&view > > > > Jussi > > > > > > > > On Sat, Apr 9, 2011 at 15:57, Steven Lobbezoo > wrote: > > > > > Hi, > > > > > > I tried everything to install 2 on SuSE 11.3 and 11.4. > > > Then found out that it's not possible since they abandoned qt3 for qt4. > > > > > > So, Ok, I will try to switch to gambas 3. > > > Tried to install that, but also no way. > > > I get an error : > > > /usr/lib/gcc/i586-suse-linux/4.5/../../../../i586-suse-linux/bin/ld: > > > cannot find -ljscore > > > collect2: ld returned 1 exit status > > > > > > I found out that that is an known bug in qt4, for which there is no > > > solution. > > > > > > So, what am I to do ????? > > > The only solution I see, is going back to Suse 11.2 or even older. > > > But that is redicoulous. > > > > > > Anybody any ideas ? > > > > > > Steven > > > > > > > > > > ------------------------------------------------------------------------------ > > > 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 at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > ------------------------------------------------------------------------------ > > 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 at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > ------------------------------------------------------------------------------ > 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 at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From steven at ...1652... Sat Apr 9 17:56:07 2011 From: steven at ...1652... (Steven Lobbezoo) Date: Sat, 09 Apr 2011 17:56:07 +0200 Subject: [Gambas-user] Gambas on Suse 11.4 In-Reply-To: References: <1302353878.2523.4.camel@...2573...> <1302358134.2523.6.camel@...2573...> Message-ID: <1302364567.2532.1.camel@...2573...> I cannot do that, this list-server does not accept large files. It's a QT4 bug (if it is), but I've red that several people use 11.4 with Gambas now, so there must be a solution ??? Steven Le samedi 09 avril 2011 ? 18:38 +0300, Jussi Lahtinen a ?crit : > Please attach full output of configure and make, and maybe someone can help > you. > But if you are sure this is Qt4 bug, then maybe you can downgrade your Qt4 > revision, > or maybe Benoit knows workaround for this problem. > Otherwise, this is Qt4 bug not Gambas bug... > > Jussi > > > On Sat, Apr 9, 2011 at 17:08, Steven Lobbezoo wrote: > > > Yes, latest trunk > > Sure it works on OpenSuse 10.x and 11.0, 11.1, 11.2, but NOT on 11.3 and > > 11.4 (what I am using now) > > > > All depencies are satisfied. > > Config is ok to install all I need. > > > > It's the make who gives this error. > > > > > > Le samedi 09 avril 2011 ? 16:50 +0300, Jussi Lahtinen a ?crit : > > > > > Hmmm... You are trying to install Gambas 3 from what? Sources? > > > Seems that Gambas will at least compile fine on OpenSuSE 9.x/10.x/11.x. > > > > > > Check that dependencies are satisfied. > > > http://gambasdoc.org/help/install?en&view > > > > > > Jussi > > > > > > > > > > > > On Sat, Apr 9, 2011 at 15:57, Steven Lobbezoo > > wrote: > > > > > > > Hi, > > > > > > > > I tried everything to install 2 on SuSE 11.3 and 11.4. > > > > Then found out that it's not possible since they abandoned qt3 for qt4. > > > > > > > > So, Ok, I will try to switch to gambas 3. > > > > Tried to install that, but also no way. > > > > I get an error : > > > > /usr/lib/gcc/i586-suse-linux/4.5/../../../../i586-suse-linux/bin/ld: > > > > cannot find -ljscore > > > > collect2: ld returned 1 exit status > > > > > > > > I found out that that is an known bug in qt4, for which there is no > > > > solution. > > > > > > > > So, what am I to do ????? > > > > The only solution I see, is going back to Suse 11.2 or even older. > > > > But that is redicoulous. > > > > > > > > Anybody any ideas ? > > > > > > > > Steven > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > 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 at lists.sourceforge.net > > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > > > ------------------------------------------------------------------------------ > > > 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 at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > > ------------------------------------------------------------------------------ > > 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 at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > ------------------------------------------------------------------------------ > 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 at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From jussi.lahtinen at ...626... Sat Apr 9 22:56:59 2011 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Sat, 9 Apr 2011 23:56:59 +0300 Subject: [Gambas-user] Gambas on Suse 11.4 In-Reply-To: <1302364567.2532.1.camel@...2573...> References: <1302353878.2523.4.camel@...2573...> <1302358134.2523.6.camel@...2573...> <1302364567.2532.1.camel@...2573...> Message-ID: > I cannot do that, this list-server does not accept large files. > Compress them first, prefer *.tar.gz or *.zip. Jussi From rainbof at ...626... Sat Apr 9 23:37:47 2011 From: rainbof at ...626... (Ondrej Beranek) Date: Sat, 9 Apr 2011 23:37:47 +0200 Subject: [Gambas-user] image rotate Message-ID: Hi, i am new user of gambas. I write small webcam application. I need rotate image i try PictureBox1.Picture.Image.Rotate(95) but it does not work... thanks From kevinfishburne at ...1887... Sun Apr 10 05:18:43 2011 From: kevinfishburne at ...1887... (Kevin Fishburne) Date: Sat, 09 Apr 2011 23:18:43 -0400 Subject: [Gambas-user] gb3 RC1: using structures to replace the loss of Mk$ functions In-Reply-To: <201104082249.27721.gambas@...1...> References: <4D953CD6.8090001@...1887...> <4D9EABF4.6080607@...1909...> <4D9EB368.4040705@...1887...> <201104082249.27721.gambas@...1...> Message-ID: <4DA12193.1010201@...1887...> On 04/08/2011 04:49 PM, Beno?t Minisini wrote: >> Kevin Fishburne wrote: >> >> Ahh, I understand a little better. I don't know much about endianness, >> so please excuse my ignorance here. >> >> ... >> >> While it would be slow, I could just write functions for flipping the >> byte order of characters in a string. That would work fine for the >> client but may impact performance server side. I'll do some >> experimenting tomorrow to see what I can come up with. > > Wikipedia is your friend, Kevin. > > http://en.wikipedia.org/wiki/Endianness Believe it or not I actually read that exact article. It should have just said, "Endianness describes the order of the bytes comprising a variable stored in memory, file or a network stream," and I would have understood, but unfortunately the article was a mile long. Their mention of how rare "bit endianness" was should have given me a clue, though. I'd always assume it was bit order, not byte order. > And UTF-8 strings used by Gambas are not endianness-dependent. > > Anyway, I'm almost sure that you can decode messages with READ while you > receive them, and store the decoded data in an array, or a collection (the > data is then indexed by name, easier but slower), and then process them later > as you wanted. I will file this away for possible use later. Right now I'm in the stage of "just getting things working", but later when I'm doing stress testing and optimization I'll be in the "get shit working as fast as possible" phase and may need to rework the transaction processing code. The good news is that I did finally get it working. It turns out the packet payload is NOT reversed, only the individual values. I created this function to reverse the bytes for each value in the string when necessary: Public Function Reverse(data As String) As String ' Reverse the order of the passed bytes. ' General declarations. Dim counter As Byte ' Generic counter. Dim length As Byte ' Length of the passed string. Dim reversed As String ' The reversed string. ' Reverse the string length = Len(data) For counter = length To 1 Step -1 reversed = reversed & Mid$(data, counter, 1) Next ' Return the reversed value. Return reversed End All the transactions are now processed properly, while their payload is still stored as a string in an array. Of course calling this function slows things down a bit, but I won't know the full implications of this until hundreds of players are connected simultaneously. Hopefully it won't be too slow. -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sales at ...1887... phone: (770) 853-6271 From kevinfishburne at ...1887... Sun Apr 10 05:25:37 2011 From: kevinfishburne at ...1887... (Kevin Fishburne) Date: Sat, 09 Apr 2011 23:25:37 -0400 Subject: [Gambas-user] gb3 RC1: using structures to replace the loss of Mk$ functions In-Reply-To: <4D9F6CB5.4090503@...1909...> References: <4D953CD6.8090001@...1887...> <201104071105.07823.gambas@...1...> <4D9D8AD9.7060808@...1887...> <201104071820.30711.gambas@...1...> <4D9E2B27.1070605@...1887...> <4D9EABF4.6080607@...1909...> <4D9EB368.4040705@...1887...> <4D9F6CB5.4090503@...1909...> Message-ID: <4DA12331.5000302@...1887...> On 04/08/2011 04:14 PM, Doriano Blengino wrote: > > Perhaps I got it - but this should be confirmed by Benoit, I think. > > On the client side, you can receive a packet as a string. Then you can > use a memory stream to read from the string, so the endianness is coped > with by the stream object. It should work. But this is only on the > client side, the server already uses a stream to send the data, right? I decided near the beginning to make the client and the server the same program, allowing the user to run it as either. This was so they could share code easily, since networking and conversion functions are shared between them. The networking code and the way transactions are sent, received and processed are the same between the client and server. Like with Beno?t's suggestion, "memory stream" will be filed away for possible using during optimization. Sounds cool...some way to read/write values directly from memory? Seems sorta like the memcpy C function but native to gb. > BTW, I think that it is not true that you can not use a Variant. A > Variant can be a string, and string's sizes are limited only by the > available memory. I think you use a string anyway, even when you receive > tiles and other big objects. With respect to a true string, a Variant > wastes a little amount of memory, which is neglectable especially when > using big chunks of data. The problem is that I don't see how a variant > could help you... Agreed. Unless a variant somehow alleviates the endianness problem then it's no better than a string. > The trick with string + memory stream should work for you In the file cabinet. :) -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sales at ...1887... phone: (770) 853-6271 From kevinfishburne at ...1887... Sun Apr 10 07:57:01 2011 From: kevinfishburne at ...1887... (Kevin Fishburne) Date: Sun, 10 Apr 2011 01:57:01 -0400 Subject: [Gambas-user] image rotate In-Reply-To: References: Message-ID: <4DA146AD.2050102@...1887...> On 04/09/2011 05:37 PM, Ondrej Beranek wrote: > Hi, > > i am new user of gambas. I write small webcam application. I need rotate > image i try PictureBox1.Picture.Image.Rotate(95) but it does not work... My experience with rotation is by rotating an image buffer directly (rather than by using a DrawingArea or PictureBox), so this may not apply, but you might want to convert your "95" number to radians. Something like "rotateshit(Rad(95))". Rotations use radians rather than degrees, but gb has a nice Rad() function for converting degrees to radians. If that doesn't work then the logic behind rotating a PictureBox is flawed (yours or gb's). I use something like: rotatedimage = nonrotatedimage.Rotate(Rad(angle_in_degrees)) You're trying to deal with a PictureBox directly, but that's outside my expertise. -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sales at ...1887... phone: (770) 853-6271 From bill-lancaster at ...2231... Sun Apr 10 08:45:35 2011 From: bill-lancaster at ...2231... (Bill-Lancaster) Date: Sat, 9 Apr 2011 23:45:35 -0700 (PDT) Subject: [Gambas-user] Adding "not in list" item to a combobox Message-ID: <31362490.post@...1379...> I have a combobox that is filled when the form is opened. How can the user add an item to the list? -- View this message in context: http://old.nabble.com/Adding-%22not-in-list%22-item-to-a-combobox-tp31362490p31362490.html Sent from the gambas-user mailing list archive at Nabble.com. From bill-lancaster at ...2231... Sun Apr 10 09:16:20 2011 From: bill-lancaster at ...2231... (Bill-Lancaster) Date: Sun, 10 Apr 2011 00:16:20 -0700 (PDT) Subject: [Gambas-user] Adding "not in list" item to a combobox In-Reply-To: <31362490.post@...1379...> References: <31362490.post@...1379...> Message-ID: <31362535.post@...1379...> Continued... Using the "Activate" property does the job in the main form. When the combobox is in a sub form the Activate event doesn't fire. The sub form is called using fEditInfo.Show i.e. not modal Gambas 2.21, Ubuntu 10.10 Bill Lancaster -- View this message in context: http://old.nabble.com/Adding-%22not-in-list%22-item-to-a-combobox-tp31362490p31362535.html Sent from the gambas-user mailing list archive at Nabble.com. From linuxos at ...1896... Sun Apr 10 10:06:12 2011 From: linuxos at ...1896... (Olivier Cruilles) Date: Sun, 10 Apr 2011 10:06:12 +0200 Subject: [Gambas-user] Adding "not in list" item to a combobox In-Reply-To: <31362535.post@...1379...> References: <31362490.post@...1379...> <31362535.post@...1379...> Message-ID: Hi, Can you give more details about what you wan to do because this is a little confused ? Olivier Cruilles Mail: linuxos at ...1896... Le 10 avr. 2011 ? 09:16, Bill-Lancaster a ?crit : > > > Continued... > Using the "Activate" property does the job in the main form. > When the combobox is in a sub form the Activate event doesn't fire. > The sub form is called using fEditInfo.Show i.e. not modal > Gambas 2.21, Ubuntu 10.10 > > Bill Lancaster > -- > View this message in context: http://old.nabble.com/Adding-%22not-in-list%22-item-to-a-combobox-tp31362490p31362535.html > Sent from the gambas-user mailing list archive at Nabble.com. > > > ------------------------------------------------------------------------------ > 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 at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From bill-lancaster at ...2231... Sun Apr 10 10:12:28 2011 From: bill-lancaster at ...2231... (Bill-Lancaster) Date: Sun, 10 Apr 2011 01:12:28 -0700 (PDT) Subject: [Gambas-user] Adding "not in list" item to a combobox In-Reply-To: References: <31362490.post@...1379...> <31362535.post@...1379...> Message-ID: <31362684.post@...1379...> No problem, 1) A form is opened with a combobox on it 2) The combobox is filled with a list on form_open 3) The user can't see what he wants in the list so I want him to be able to add a new item As I mention above, using the activate event works on the main form but not in a sub form. Whats more, I created another subform but this time not checking "Dialogbox management" and the activate event fires properly Bill Lancaster -- View this message in context: http://old.nabble.com/Adding-%22not-in-list%22-item-to-a-combobox-tp31362490p31362684.html Sent from the gambas-user mailing list archive at Nabble.com. From linuxos at ...1896... Sun Apr 10 10:31:03 2011 From: linuxos at ...1896... (Olivier Cruilles) Date: Sun, 10 Apr 2011 10:31:03 +0200 Subject: [Gambas-user] Adding "not in list" item to a combobox In-Reply-To: <31362684.post@...1379...> References: <31362490.post@...1379...> <31362535.post@...1379...> <31362684.post@...1379...> Message-ID: Maybe you ca use the KeyPress event in the Combobox and in the event procedure check if the use had pressed the Enter key to valid the new Item to enter in your list ? Did I'm in the right way of what you want to do. After, to add new Item in the list, just use: ComboBox1.List.Add("New Item", 0) <--- 0 to put it at the beginning of the list ComboBox1.List.Add("New Item") <--- Nothing to put it at the end of the list Olivier Cruilles Mail: linuxos at ...1896... Le 10 avr. 2011 ? 10:12, Bill-Lancaster a ?crit : > > > No problem, > > 1) A form is opened with a combobox on it > 2) The combobox is filled with a list on form_open > 3) The user can't see what he wants in the list so I want him to be able to > add a new item > > As I mention above, using the activate event works on the main form but not > in a sub form. > > Whats more, I created another subform but this time not checking "Dialogbox > management" and the activate event fires properly > > Bill Lancaster > -- > View this message in context: http://old.nabble.com/Adding-%22not-in-list%22-item-to-a-combobox-tp31362490p31362684.html > Sent from the gambas-user mailing list archive at Nabble.com. > > > ------------------------------------------------------------------------------ > 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 at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From linuxos at ...1896... Sun Apr 10 10:45:50 2011 From: linuxos at ...1896... (Olivier Cruilles) Date: Sun, 10 Apr 2011 10:45:50 +0200 Subject: [Gambas-user] Adding "not in list" item to a combobox In-Reply-To: <31362684.post@...1379...> References: <31362490.post@...1379...> <31362535.post@...1379...> <31362684.post@...1379...> Message-ID: <4A020768-4B97-401F-AF05-00C954CB3DBB@...1896...> Maybe, your problem is that you don't now how to acces to the ComboBox property from the sub Form ? If it that, you can create property in your main form to acces to to ComboBox like that PROPERTY AddItem as string PRIVATE SUB AddItem_Write(Value as String) IF ComboBox1.Find(Value) = -1 then ComboBox1.Add(Value) END IF END PRIVATE SUB AddItem_Read() AS String ' What you want to return, but it's not really important RETURN "" END Olivier Cruilles Mail: linuxos at ...1896... Le 10 avr. 2011 ? 10:12, Bill-Lancaster a ?crit : > > > No problem, > > 1) A form is opened with a combobox on it > 2) The combobox is filled with a list on form_open > 3) The user can't see what he wants in the list so I want him to be able to > add a new item > > As I mention above, using the activate event works on the main form but not > in a sub form. > > Whats more, I created another subform but this time not checking "Dialogbox > management" and the activate event fires properly > > Bill Lancaster > -- > View this message in context: http://old.nabble.com/Adding-%22not-in-list%22-item-to-a-combobox-tp31362490p31362684.html > Sent from the gambas-user mailing list archive at Nabble.com. > > > ------------------------------------------------------------------------------ > 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 at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From rainbof at ...626... Sun Apr 10 12:18:02 2011 From: rainbof at ...626... (Ondrej Beranek) Date: Sun, 10 Apr 2011 12:18:02 +0200 Subject: [Gambas-user] image rotate In-Reply-To: <4DA146AD.2050102@...1887...> References: <4DA146AD.2050102@...1887...> Message-ID: but it not worki'n I solve that with copy pictrure to separate variable, rotate it by property rotate() and after that bring it back... this code DIM mypic AS image mypic = PictureBox1.Picture.Image mypic = mypic.Rotate(Rad(95)) PictureBox1.Picture = mypic.Picture but this is very slow solution. Any idea how to make it faster ? 2011/4/10 Kevin Fishburne > On 04/09/2011 05:37 PM, Ondrej Beranek wrote: > > Hi, > > > > i am new user of gambas. I write small webcam application. I need rotate > > image i try PictureBox1.Picture.Image.Rotate(95) but it does not work... > > My experience with rotation is by rotating an image buffer directly > (rather than by using a DrawingArea or PictureBox), so this may not > apply, but you might want to convert your "95" number to radians. > Something like "rotateshit(Rad(95))". Rotations use radians rather than > degrees, but gb has a nice Rad() function for converting degrees to > radians. > > If that doesn't work then the logic behind rotating a PictureBox is > flawed (yours or gb's). > > I use something like: > > rotatedimage = nonrotatedimage.Rotate(Rad(angle_in_degrees)) > > You're trying to deal with a PictureBox directly, but that's outside my > expertise. > > -- > Kevin Fishburne > Eight Virtues > www: http://sales.eightvirtues.com > e-mail: sales at ...1887... > phone: (770) 853-6271 > > > > ------------------------------------------------------------------------------ > 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 at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From bill-lancaster at ...2231... Sun Apr 10 12:21:00 2011 From: bill-lancaster at ...2231... (Bill-Lancaster) Date: Sun, 10 Apr 2011 03:21:00 -0700 (PDT) Subject: [Gambas-user] Adding "not in list" item to a combobox In-Reply-To: <4A020768-4B97-401F-AF05-00C954CB3DBB@...1896...> References: <31362490.post@...1379...> <31362535.post@...1379...> <31362684.post@...1379...> <4A020768-4B97-401F-AF05-00C954CB3DBB@...1896...> Message-ID: <31363072.post@...1379...> In fact this is really an issue about the Active event not firing in circumstances so I'll raise it as issue separately. Thanks for all your comments Bill Lancaster -- View this message in context: http://old.nabble.com/Adding-%22not-in-list%22-item-to-a-combobox-tp31362490p31363072.html Sent from the gambas-user mailing list archive at Nabble.com. From gambas at ...1... Sun Apr 10 12:51:33 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sun, 10 Apr 2011 12:51:33 +0200 Subject: [Gambas-user] image rotate In-Reply-To: References: <4DA146AD.2050102@...1887...> Message-ID: <201104101251.33151.gambas@...1...> > but it not worki'n > > I solve that with copy pictrure to separate variable, rotate it by property > rotate() and after that bring it back... > > this code > > DIM mypic AS image > mypic = PictureBox1.Picture.Image > mypic = mypic.Rotate(Rad(95)) > > PictureBox1.Picture = mypic.Picture > > but this is very slow solution. Any idea how to make it faster ? > > Don't use a Picture box. Draw you rotated picture from the "Draw" event of a DrawingArea. Regards, -- Beno?t Minisini From rainbof at ...626... Sun Apr 10 12:53:39 2011 From: rainbof at ...626... (Ondrej Beranek) Date: Sun, 10 Apr 2011 12:53:39 +0200 Subject: [Gambas-user] image rotate In-Reply-To: <201104101251.33151.gambas@...1...> References: <4DA146AD.2050102@...1887...> <201104101251.33151.gambas@...1...> Message-ID: I have pictureBox as canavas for displayg output of vga cam 2011/4/10 Beno?t Minisini > > but it not worki'n > > > > I solve that with copy pictrure to separate variable, rotate it by > property > > rotate() and after that bring it back... > > > > this code > > > > DIM mypic AS image > > mypic = PictureBox1.Picture.Image > > mypic = mypic.Rotate(Rad(95)) > > > > PictureBox1.Picture = mypic.Picture > > > > but this is very slow solution. Any idea how to make it faster ? > > > > > > Don't use a Picture box. Draw you rotated picture from the "Draw" event of > a > DrawingArea. > > Regards, > > -- > Beno?t Minisini > > > ------------------------------------------------------------------------------ > 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 at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Sun Apr 10 12:55:18 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sun, 10 Apr 2011 12:55:18 +0200 Subject: [Gambas-user] image rotate In-Reply-To: References: <201104101251.33151.gambas@...1...> Message-ID: <201104101255.18812.gambas@...1...> > I have pictureBox as canavas for displayg output of vga cam > And so? -- Beno?t Minisini From bbruen at ...2308... Sun Apr 10 08:36:32 2011 From: bbruen at ...2308... (Bruce Bruen) Date: Sun, 10 Apr 2011 16:06:32 +0930 Subject: [Gambas-user] Enumerate collection in reverse order Message-ID: <201104101606.33133.bbruen@...2308...> Hi folks, I have gone brain dead on this one. All I want to do is enumerate a "naturally sorted" collection in reverse order. By "naturally sorted" I mean that I know the order in which the items were added to the collection. It's just that the order in which they were added (ascending time sequence, i.e. the newest data is the last entered) is just the opposite of how I want to access them. A bit more detail. The incoming data is received in ascending time sequence. Each data set is parsed and added to a collection of objects as it is received. Now I want to process each of the objects starting with the most recent for reasons of the maths involved. A simple example is: For the most recent sample, the degradation is 0 For each next sample the degradation is the difference between the times that the two signals were received. The practicality is that the math on the rest of the data is much more complex. I know I can't "sort" the collection, but there must be a way to achieve this, isn't there? -- best regards Bruce Bruen From gambas at ...1... Sun Apr 10 13:10:26 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sun, 10 Apr 2011 13:10:26 +0200 Subject: [Gambas-user] Enumerate collection in reverse order In-Reply-To: <201104101606.33133.bbruen@...2308...> References: <201104101606.33133.bbruen@...2308...> Message-ID: <201104101310.26448.gambas@...1...> > Hi folks, > > I have gone brain dead on this one. > > All I want to do is enumerate a "naturally sorted" collection in reverse > order. By "naturally sorted" I mean that I know the order in which the > items were added to the collection. It's just that the order in which > they were added (ascending time sequence, i.e. the newest data is the last > entered) is just the opposite of how I want to access them. > > A bit more detail. The incoming data is received in ascending time > sequence. Each data set is parsed and added to a collection of objects as > it is received. Now I want to process each of the objects starting with > the most recent for reasons of the maths involved. A simple example is: > For the most recent sample, the degradation is 0 > For each next sample the degradation is the difference between the times > that the two signals were received. > > The practicality is that the math on the rest of the data is much more > complex. > > I know I can't "sort" the collection, but there must be a way to achieve > this, isn't there? What do you use a collection and not an array? -- Beno?t Minisini From rterry at ...1946... Sun Apr 10 13:44:04 2011 From: rterry at ...1946... (richard terry) Date: Sun, 10 Apr 2011 21:44:04 +1000 Subject: [Gambas-user] Global search & replace Message-ID: <201104102144.04319.rterry@...1946...> I'm missing something here, as I can see no way to do a global search and replace of a string across all files in the project. Maybe someone can help?? Regards Richard From linuxos at ...1896... Sun Apr 10 14:17:20 2011 From: linuxos at ...1896... (Olivier Cruilles) Date: Sun, 10 Apr 2011 14:17:20 +0200 Subject: [Gambas-user] Global search & replace In-Reply-To: <201104102144.04319.rterry@...1946...> References: <201104102144.04319.rterry@...1946...> Message-ID: <9853141D-7DBB-416E-AC92-3A42640D95E6@...1896...> Hi, You can use 'sed' unix command sed -i 's// in Gambas SHELL "sed -i 's/text_to_search/text_to_replace/g' file_example.txt" WAIT The -i option replace directly all instances founded in the file and the /g at the end indicate that you want to replace all instances and not only the first one founded. Olivier Cruilles Mail: linuxos at ...1896... Le 10 avr. 2011 ? 13:44, richard terry a ?crit : > > I'm missing something here, as I can see no way to do a global search and > replace of a string across all files in the project. > > Maybe someone can help?? > > Regards > > Richard > > ------------------------------------------------------------------------------ > 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 at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From rterry at ...1946... Sun Apr 10 14:56:19 2011 From: rterry at ...1946... (richard terry) Date: Sun, 10 Apr 2011 22:56:19 +1000 Subject: [Gambas-user] Global search & replace In-Reply-To: <9853141D-7DBB-416E-AC92-3A42640D95E6@...1896...> References: <201104102144.04319.rterry@...1946...> <9853141D-7DBB-416E-AC92-3A42640D95E6@...1896...> Message-ID: <201104102256.19671.rterry@...1946...> On Sunday 10 April 2011 22:17:20 Olivier Cruilles wrote: Thanks, I'll try that, but I would have thought the gambas editor should accomodate global replaces. Regards Richard > Hi, > > You can use 'sed' unix command > > sed -i 's// file> > > in Gambas > > SHELL "sed -i 's/text_to_search/text_to_replace/g' file_example.txt" WAIT > > The -i option replace directly all instances founded in the file > and the /g at the end indicate that you want to replace all instances and > not only the first one founded. > > > Olivier Cruilles > Mail: linuxos at ...1896... > > Le 10 avr. 2011 ? 13:44, richard terry a ?crit : > > I'm missing something here, as I can see no way to do a global search and > > replace of a string across all files in the project. > > > > Maybe someone can help?? > > > > Regards > > > > Richard > > > > ------------------------------------------------------------------------- > >----- 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 at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > --------------------------------------------------------------------------- > --- 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 at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From steven at ...1652... Sun Apr 10 16:25:51 2011 From: steven at ...1652... (Steven Lobbezoo) Date: Sun, 10 Apr 2011 16:25:51 +0200 Subject: [Gambas-user] Gambas on Suse 11.4 In-Reply-To: References: <1302353878.2523.4.camel@...2573...> <1302358134.2523.6.camel@...2573...> <1302364567.2532.1.camel@...2573...> Message-ID: <1302445551.7006.0.camel@...2573...> Here they are, as gz Steven Le samedi 09 avril 2011 ? 23:56 +0300, Jussi Lahtinen a ?crit : > > I cannot do that, this list-server does not accept large files. > > > > Compress them first, prefer *.tar.gz or *.zip. > > Jussi > ------------------------------------------------------------------------------ > 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 at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -------------- next part -------------- A non-text attachment was scrubbed... Name: configure.txt.gz Type: application/x-gzip Size: 5491 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: make.txt.gz Type: application/x-gzip Size: 13910 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: reconf-all.txt.gz Type: application/x-gzip Size: 2170 bytes Desc: not available URL: From steven at ...1652... Sun Apr 10 16:26:48 2011 From: steven at ...1652... (Steven Lobbezoo) Date: Sun, 10 Apr 2011 16:26:48 +0200 Subject: [Gambas-user] Gambas on Suse 11.4 In-Reply-To: References: <1302353878.2523.4.camel@...2573...> <1302358134.2523.6.camel@...2573...> <1302364567.2532.1.camel@...2573...> Message-ID: <1302445608.7006.1.camel@...2573...> Here they are, as gz Steven Le samedi 09 avril 2011 ? 23:56 +0300, Jussi Lahtinen a ?crit : > > I cannot do that, this list-server does not accept large files. > > > > Compress them first, prefer *.tar.gz or *.zip. > > Jussi > ------------------------------------------------------------------------------ > 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 at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -------------- next part -------------- A non-text attachment was scrubbed... Name: configure.txt.gz Type: application/x-gzip Size: 5491 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: make.txt.gz Type: application/x-gzip Size: 13910 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: reconf-all.txt.gz Type: application/x-gzip Size: 2170 bytes Desc: not available URL: From math.eber at ...221... Sun Apr 10 18:08:37 2011 From: math.eber at ...221... (Matti) Date: Sun, 10 Apr 2011 18:08:37 +0200 Subject: [Gambas-user] image rotate In-Reply-To: References: <4DA146AD.2050102@...1887...> <201104101251.33151.gambas@...1...> Message-ID: <4DA1D605.90606@...221...> If you want to do image maipulations, it is much easier to use DrawingArea instead of PictureBox (Beno?t had to convice me first, too). Try something like: hImage = hImage.Rotate(Rad(95)) DrawingArea1.Refresh ' This raises the following Drawing Event of DrawingArea1 Public Sub DrawingArea1_Draw() Draw.Image(hImage, X, Y (, Width, Height)) End That's all! Regards Matti Am 10.04.2011 12:53, schrieb Ondrej Beranek: > I have pictureBox as canavas for displayg output of vga cam > > 2011/4/10 Beno?t Minisini > >>> but it not worki'n >>> >>> I solve that with copy pictrure to separate variable, rotate it by >> property >>> rotate() and after that bring it back... >>> >>> this code >>> >>> DIM mypic AS image >>> mypic = PictureBox1.Picture.Image >>> mypic = mypic.Rotate(Rad(95)) >>> >>> PictureBox1.Picture = mypic.Picture >>> >>> but this is very slow solution. Any idea how to make it faster ? >>> >>> >> >> Don't use a Picture box. Draw you rotated picture from the "Draw" event of >> a >> DrawingArea. >> >> Regards, >> >> -- >> Beno?t Minisini >> >> >> ------------------------------------------------------------------------------ >> 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 at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > ------------------------------------------------------------------------------ > 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 at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...2524... Sun Apr 10 18:33:33 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Sun, 10 Apr 2011 16:33:33 +0000 Subject: [Gambas-user] Issue 58 in gambas: Gtk-CRITICAL error when form closed while combobox dropdown is showing Message-ID: <0-6813199134517018827-8829991973477486015-gambas=googlecode.com@...2524...> Status: New Owner: ---- Labels: Version Type-Bug Priority-Medium OpSys-Any Dist-Any Arch-Any Desktop-Any GUI-Any New issue 58 by zachsmit... at ...626...: Gtk-CRITICAL error when form closed while combobox dropdown is showing http://code.google.com/p/gambas/issues/detail?id=58 1) Run program 2) click "open form1" button 3) click on combobox to show list items 4) allow 5s timer to close form --> gtk critical error (test9:18517): Gtk-CRITICAL **: IA__gtk_widget_event: assertion `WIDGET_REALIZED_FOR_EVENT (widget, event)' failed No problem in QT. Version: TRUNK Revision: r3689 Operating system: Linux Distribution: ArchLinux Architecture: x86_64 GUI component: GTK+ Desktop used: Xfce Attachments: test9-0.0.1.tar.gz 4.7 KB From gambas at ...2524... Sun Apr 10 18:49:40 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Sun, 10 Apr 2011 16:49:40 +0000 Subject: [Gambas-user] Issue 59 in gambas: font size issue with combobox when readonly=false (GTK+) Message-ID: <0-6813199134517018827-3815742580317148444-gambas=googlecode.com@...2524...> Status: New Owner: ---- Labels: Version Type-Bug Priority-Medium OpSys-Any Dist-Any Arch-Any Desktop-Any GUI-Any New issue 59 by zachsmit... at ...626...: font size issue with combobox when readonly=false (GTK+) http://code.google.com/p/gambas/issues/detail?id=59 Font size of combobox list is OK, but font size of the edit area is too small. No problem in QT. Version: TRUNK Revision: r3689 Operating system: Linux Distribution: ArchLinux Architecture: x86_64 GUI component: GTK+ Desktop used: Xfce Attachments: Screenshot10.png 5.4 KB test10-0.0.1.tar.gz 4.5 KB From gambas at ...2524... Sun Apr 10 19:09:48 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Sun, 10 Apr 2011 17:09:48 +0000 Subject: [Gambas-user] Issue 60 in gambas: combobox shows blank lines before first item (GTK+) Message-ID: <0-6813199134517018827-474982564160783116-gambas=googlecode.com@...2524...> Status: New Owner: ---- Labels: Version Type-Bug Priority-Medium OpSys-Any Dist-Any Arch-Any Desktop-Any GUI-Any New issue 60 by zachsmit... at ...626...: combobox shows blank lines before first item (GTK+) http://code.google.com/p/gambas/issues/detail?id=60 You can also scroll upwards before the first item. It fixes itself once you scroll to the bottom of the list. No problem in QT. Version: TRUNK Revision: r3689 Operating system: Linux Distribution: ArchLinux Architecture: x86_64 GUI component: GTK+ Desktop used: Xfce Attachments: Screenshot11a.png 4.3 KB Screenshot11b.png 3.4 KB test11-0.0.1.tar.gz 4.5 KB From gambas at ...1... Sun Apr 10 23:40:58 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sun, 10 Apr 2011 23:40:58 +0200 Subject: [Gambas-user] New incompatible change in /trunk Message-ID: <201104102340.58547.gambas@...1...> Hi, I have renamed the Image.Draw() method into Image.PaintImage() method. At the same time, I added a method named Image.DrawImage(). The difference between Image.PaintImage() and Image.DrawImage() is that Image.PaintImage() takes the alpha channel into account (it blends the image), whereas Image.DrawImage() does not (it copies the alpha component from the source to the destination). Sorry for that last minute change, but the names are less ambiguous now, and follows the same convention than Image.FillRect() and Image.PaintRect(). So check your projects! -- Beno?t Minisini From eilert-sprachen at ...221... Mon Apr 11 11:00:07 2011 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Mon, 11 Apr 2011 11:00:07 +0200 Subject: [Gambas-user] Gambas on Suse 11.4 In-Reply-To: <1302353878.2523.4.camel@...2573...> References: <1302353878.2523.4.camel@...2573...> Message-ID: <4DA2C317.70104@...221...> Hi Steven, that would be bad news for me: Am 09.04.2011 14:57, schrieb Steven Lobbezoo: > Hi, > > I tried everything to install 2 on SuSE 11.3 and 11.4. > Then found out that it's not possible since they abandoned qt3 for qt4. Currently, I'm setting up a new server to replace my old one with Suse 10.3. There are several rather big Gambas2 programs running on a daily basis. The question is, will I be able to run everything under Gambas3 flawlessly, or will there be a lot of trouble (re-coding) involved? Personally, I would like to update to Gambas3, but only step-by-step, i. e. I'd run the programs under Gambas2, then carefully updating to Gambas3 and make test runs before really using them (due to my experience from previous updates). Anyway, in order to make Gambas run on my servers, I simply used to install nearly everthing under "Programming" in Yast, such as KDevelop, GTK, Java, Pearl, PHP... the most important ones at least. That helped having all necessary libraries at hand. As far as I heard, there is the option to install KDE 3.5 on 11.4, and that would install qt3 in parallel, although it would not mean qt-develop, but maybe a first step to a trick? > > So, Ok, I will try to switch to gambas 3. > Tried to install that, but also no way. > I get an error : > /usr/lib/gcc/i586-suse-linux/4.5/../../../../i586-suse-linux/bin/ld: > cannot find -ljscore > collect2: ld returned 1 exit status > > I found out that that is an known bug in qt4, for which there is no > solution. > > So, what am I to do ????? > The only solution I see, is going back to Suse 11.2 or even older. > But that is redicoulous. > > Anybody any ideas ? > Isn't there a ready-made Gambas3 rpm for 11.4 in some repository? I mean, if it runs on other distros, why not in Suse? Rolf From wally at ...2037... Mon Apr 11 11:00:17 2011 From: wally at ...2037... (wally) Date: Mon, 11 Apr 2011 11:00:17 +0200 Subject: [Gambas-user] Serial with 9 databits Message-ID: <201104111100.17520.wally@...2037...> Is there a way to setup the gambas serial control to 9 databits ? ( or another way to communicate with (9 dtat, even par, 2 stops ) ? From jscops at ...11... Mon Apr 11 12:17:50 2011 From: jscops at ...11... (Jack) Date: Mon, 11 Apr 2011 12:17:50 +0200 Subject: [Gambas-user] Serial with 9 databits In-Reply-To: <201104111100.17520.wally@...2037...> References: <201104111100.17520.wally@...2037...> Message-ID: <4DA2D54E.8040500@...11...> Le 11/04/2011 11:00, wally a ?crit : > > Is there a way to setup the gambas serial control to 9 databits ? > ( or another way to communicate with (9 dtat, even par, 2 stops ) ? IF your name port is sPort Sport.Speed = "19200" Sport.Parity = 0 Sport.DataBits = 9 Sport.StopBits = 2 Jack From frederic.176 at ...626... Mon Apr 11 15:17:37 2011 From: frederic.176 at ...626... (Federico Leite) Date: Mon, 11 Apr 2011 13:17:37 +0000 Subject: [Gambas-user] Should not we follow the ISO 8601 standard? Message-ID: Hi! I was read an article about ISO 8601, and think...?Date of Gambas don't follow this! Print Now ----> 04/11/2011 06:12:18 But the standard dictates otherwise: the format is YYYY-MM-DD. It's a problem, or is you are indifferent at this standard? Well, if you not known this standard, you can read this article in Wikipedia: http://en.wikipedia.org/wiki/ISO_8601 Regards, -- Federico Leite ############################################## Areida, Tawok, Kiwi and Labrys Developer From eilert-sprachen at ...221... Mon Apr 11 15:40:30 2011 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Mon, 11 Apr 2011 15:40:30 +0200 Subject: [Gambas-user] Should not we follow the ISO 8601 standard? In-Reply-To: References: Message-ID: <4DA304CE.4010707@...221...> Am 11.04.2011 15:17, schrieb Federico Leite: > Hi! I was read an article about ISO 8601, and think...?Date of Gambas don't > follow this! > > Print Now ----> 04/11/2011 06:12:18 > > But the standard dictates otherwise: the format is YYYY-MM-DD. > > It's a problem, or is you are indifferent at this standard? > > Well, if you not known this standard, you can read this article in > Wikipedia: http://en.wikipedia.org/wiki/ISO_8601 > > Regards, Frederico, I think the output of Date(Now) or Print Now is the American way of writing the date, whereas the function itself wants it like ISO: PRINT Now; " -> "; Date(Now) 05/16/2002 15:10:59 -> 05/16/2002 Syntax Date = Date ( Year , Month , Day [ , Hours , Minutes , Seconds ] ) AS Date So this is somewhat confusing, but so what...? In Germany (Germans love to have "rules" and "regulations") it was prescribed to write the date as ISO says, they even changed German grammar for it... Almost nobody ever cares, except maybe some secretaries who want to impress their bosses ;-) Within Gambas, I don't care, I can adapt the date to the locale to make it user-readable. For sorting purposes, a YYYYMMDD is more practical, anyway. This is what I use in files. Regards Rolf From gambas at ...1... Mon Apr 11 15:49:33 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Mon, 11 Apr 2011 15:49:33 +0200 Subject: [Gambas-user] Should not we follow the ISO 8601 standard? In-Reply-To: References: Message-ID: <201104111549.33581.gambas@...1...> > Hi! I was read an article about ISO 8601, and think...?Date of Gambas don't > follow this! > > Print Now ----> 04/11/2011 06:12:18 > > But the standard dictates otherwise: the format is YYYY-MM-DD. > > It's a problem, or is you are indifferent at this standard? > > Well, if you not known this standard, you can read this article in > Wikipedia: http://en.wikipedia.org/wiki/ISO_8601 > > Regards, Print and Str() returns the date in the format defined by the current localization. CStr() returns the date in the US format. If you want the ISO 8601 format, you have to play with the Format$() function. Regards, -- Beno?t Minisini From gambas at ...1... Mon Apr 11 15:51:11 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Mon, 11 Apr 2011 15:51:11 +0200 Subject: [Gambas-user] Gambasdoc.org hosting (wiki) In-Reply-To: <201103301427.24980.sourceforge-raindog2@...94...> References: <201103301427.24980.sourceforge-raindog2@...94...> Message-ID: <201104111551.11961.gambas@...1...> > Hi, my name is Rob Kudla. I've been providing hosting for the Gambas > wiki at gambasdoc.org for about 6 years. The wiki needs a new host. > > The Gambas wiki is currently running on a pre-2.0 release of Gambas, > because the operating system on which our host runs is too old for anything > newer to compile. Benoit has been hamstrung by this limitation for a > couple of years now. My company has had a new server ready to be put > online with a new local colocation provider for several years, but said > provider has been dragging their feet. Even the replacement server may be > out of date by the time we finally get it online. (Not looking for any > business advice here. If all we wanted was web and mail hosting, we could > get that right now from a thousand different places. We have additional > requirements.) > > I myself haven't used Gambas for a project in several years. Nearly all > the code I write is for web or mobile applications now. My clients are > more interested in mobile and web apps than desktop apps, and I've done > more in Java than Gambas recently. Until someone recently asked a question > about the Regexp component I wrote long ago, I didn't even have gambas2 > installed on my main machine. > > Given all that, is there anyone with web space on a host on which Benoit > can have shell access, capable of running current Gambas releases, and > would be willing to work with Benoit to get a copy of the wiki running > under Apache? Once everything is working well, I'd transfer ownership of > the gambasdoc.org/.com domain names to Benoit. Currently it takes about > 300MB of disk space, mysql access and 2.4 million hits per month totaling > 15GB of transfer (based on Apache logs; actual transfer should be less than > that). While I can't speak for Benoit, I would prefer that it continue to > be ad-free, as it's always been. > > If anyone can take this over, please let me and/or Benoit know. > > Thanks > Rob > Mmm. Not a lot of answers... -- Beno?t Minisini From eilert-sprachen at ...221... Mon Apr 11 16:45:26 2011 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Mon, 11 Apr 2011 16:45:26 +0200 Subject: [Gambas-user] Gambasdoc.org hosting (wiki) In-Reply-To: <201104111551.11961.gambas@...1...> References: <201103301427.24980.sourceforge-raindog2@...94...> <201104111551.11961.gambas@...1...> Message-ID: <4DA31406.3020106@...221...> Benoit, I haven't seen this message until now. What does Rob mean by this: >> out of date by the time we finally get it online. (Not looking for any >> business advice here. If all we wanted was web and mail hosting, we could >> get that right now from a thousand different places. We have additional >> requirements.) So, if I'd hire some server with server access, it wouldn't do? Let me explain: I've set up a server for my own business, it's a virtual server hosted on a German provider, and couple of weeks ago I was curiuous and tried to compile Gambas on it. No problem. On the internal server I had got Gambas running under Apache (though it was somewhat tricky and I forgot to take notes as usual...) and now I hoped to be able to get some of this functionality for the public server in my website (due to lack of time I haven't followed this anymore, but it's still a plan). What is different from this what you would need? >> the gambasdoc.org/.com domain names to Benoit. Currently it takes about >> 300MB of disk space, mysql access and 2.4 million hits per month totaling >> 15GB of transfer (based on Apache logs; actual transfer should be less than >> that). While I can't speak for Benoit, I would prefer that it continue to >> be ad-free, as it's always been. Hm. Don't know if that is much... no experience. But it's way more than on my website ;-) Though transfer volume on my server is free, 300 MB isn't much today, is it?, and mysql is freely accessible. In other words: I can do with it what I want, but I am responsible for it, too. > Mmm. Not a lot of answers... > Ok, this is one, though more like couple of questions... Regards Rolf From jussi.lahtinen at ...626... Mon Apr 11 16:54:54 2011 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Mon, 11 Apr 2011 17:54:54 +0300 Subject: [Gambas-user] Gambas on Suse 11.4 In-Reply-To: <1302445608.7006.1.camel@...2573...> References: <1302353878.2523.4.camel@...2573...> <1302358134.2523.6.camel@...2573...> <1302364567.2532.1.camel@...2573...> <1302445608.7006.1.camel@...2573...> Message-ID: You are missing a lot of things, though they all may be optional... Do you have "libqt4-devel" installed? Maybe SuSE has also separated package for qt4 webkit. And I recommend to install "libffi.so". Jussi On Sun, Apr 10, 2011 at 17:26, Steven Lobbezoo wrote: > Here they are, as gz > > Steven > > > Le samedi 09 avril 2011 ? 23:56 +0300, Jussi Lahtinen a ?crit : > > > > I cannot do that, this list-server does not accept large files. > > > > > > > Compress them first, prefer *.tar.gz or *.zip. > > > > Jussi > > > ------------------------------------------------------------------------------ > > 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 at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > ------------------------------------------------------------------------------ > 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 at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > From sourceforge-raindog2 at ...94... Mon Apr 11 17:41:59 2011 From: sourceforge-raindog2 at ...94... (Rob) Date: Mon, 11 Apr 2011 11:41:59 -0400 Subject: [Gambas-user] Gambasdoc.org hosting (wiki) In-Reply-To: <4DA31406.3020106@...221...> References: <201103301427.24980.sourceforge-raindog2@...94...> <201104111551.11961.gambas@...1...> <4DA31406.3020106@...221...> Message-ID: <201104111141.59580.sourceforge-raindog2@...94...> On Monday 11 April 2011 10:45, Rolf-Werner Eilert wrote: > So, if I'd hire some server with server access, it wouldn't do? Let me What you describe could be fine for the Gambas wiki, I don't know. (Sounds good to me, but Benoit's the one who wrote it!) What I was trying to avoid was well-meaning suggestions for where my company should get its hosting from in general, since we and our clients have many other requirements unrelated to Gambas. Rob From gambas at ...1... Mon Apr 11 17:48:57 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Mon, 11 Apr 2011 17:48:57 +0200 Subject: [Gambas-user] Gambasdoc.org hosting (wiki) In-Reply-To: <201104111141.59580.sourceforge-raindog2@...94...> References: <201103301427.24980.sourceforge-raindog2@...94...> <4DA31406.3020106@...221...> <201104111141.59580.sourceforge-raindog2@...94...> Message-ID: <201104111748.57903.gambas@...1...> > On Monday 11 April 2011 10:45, Rolf-Werner Eilert wrote: > > So, if I'd hire some server with server access, it wouldn't do? Let me > > What you describe could be fine for the Gambas wiki, I don't know. (Sounds > good to me, but Benoit's the one who wrote it!) What I was trying to avoid > was well-meaning suggestions for where my company should get its hosting > from in general, since we and our clients have many other requirements > unrelated to Gambas. > > Rob > The requirements are : 1) Gambas installed (version 2, or version 3) 2) Abitily to run a gambas program as CGI script in a web server. 3) A mysql database for storing the wiki data. 4) A ssh access for me to regularly update the Gambas component information files on the wiki, and the wiki CGI script. As for the bandwith, I have no idea of how much 15GB/month costs. If someone can enlighten me... -- Beno?t Minisini From jussi.lahtinen at ...626... Mon Apr 11 18:56:39 2011 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Mon, 11 Apr 2011 19:56:39 +0300 Subject: [Gambas-user] Problems with gbs In-Reply-To: References: Message-ID: Still problems with this... same errors with both Gambas 2.23 and Gambas 3 rev 3748. I tried with different character encodings and line endings. "Mac OS Classic" line endings yielded different errors, but I couldn't find working combination. Can someone confirm if UTF-8 with normal unix line endings is working combination (I assume it is)? Any other ideas to check? Everything else with Gambas 2 and Gambas 3 works as expected. Jussi On Wed, Apr 6, 2011 at 20:13, Jussi Lahtinen wrote: > Hi! > I tried to run the benchmarks. But I couldn't run gambas script. > > $ gbs3 -v -c ./testscript > gbs: Main procedure not defined, create it > > OK, then I added "Sub Main()" and "End" to the script. > > $ gbs3 -v -c ./testscript > gbs: Main procedure not defined, create it > MMain.module:42: error: 'Main' already declared > > # Gambas Project File 3.0 > Title=Gambas Script > Startup=MMain > ... > > If I run it just with "./testscript" I won't get any errors, nor any > indication that program was ran or not. > > Gambas 3 rev 3735 @ Ubuntu 10.10 64bit > > Jussi > From gambas at ...1... Mon Apr 11 20:07:19 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Mon, 11 Apr 2011 20:07:19 +0200 Subject: [Gambas-user] Problems with gbs In-Reply-To: References: Message-ID: <201104112007.19168.gambas@...1...> > Still problems with this... same errors with both Gambas 2.23 and Gambas 3 > rev 3748. > > I tried with different character encodings and line endings. > "Mac OS Classic" line endings yielded different errors, > but I couldn't find working combination. > > Can someone confirm if UTF-8 with normal unix line endings is working > combination (I assume it is)? > Any other ideas to check? > > Everything else with Gambas 2 and Gambas 3 works as expected. > > Jussi > Please provide the full output of './configure', 'make' and 'make install' so that I can see if everything is normal (it should not). Regards, -- Beno?t Minisini From math.eber at ...221... Mon Apr 11 20:26:46 2011 From: math.eber at ...221... (Matti) Date: Mon, 11 Apr 2011 20:26:46 +0200 Subject: [Gambas-user] Gambas on Suse 11.4 In-Reply-To: References: <1302353878.2523.4.camel@...2573...> <1302358134.2523.6.camel@...2573...> <1302364567.2532.1.camel@...2573...> <1302445608.7006.1.camel@...2573...> Message-ID: <4DA347E6.8070502@...221...> I think Jussi is right about the missing requirements. Here are two screenshots of my YaST. Check if you have installed those things. I have SuSE 11.2 with qt4 here, and Gambas 2 and 3 are running without problems. Matti Am 11.04.2011 16:54, schrieb Jussi Lahtinen: > You are missing a lot of things, though they all may be optional... > Do you have "libqt4-devel" installed? Maybe SuSE has also separated package > for qt4 webkit. > And I recommend to install "libffi.so". > > Jussi -------------- next part -------------- A non-text attachment was scrubbed... Name: libffi.jpeg Type: image/jpeg Size: 21876 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: qt4.jpeg Type: image/jpeg Size: 47299 bytes Desc: not available URL: From karl.reinl at ...9... Mon Apr 11 20:40:42 2011 From: karl.reinl at ...9... (Karl Reinl) Date: Mon, 11 Apr 2011 20:40:42 +0200 Subject: [Gambas-user] gambas 2 or 3 ,on Mac/Intel CPU Message-ID: <1302547242.6342.5.camel@...40...> Salut, are there anybody, who ran that ? gambas 2 or 3 ,on Mac/Intel CPU Even command line only would be nice. -- Amicalement Charlie From jussi.lahtinen at ...626... Mon Apr 11 20:54:15 2011 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Mon, 11 Apr 2011 21:54:15 +0300 Subject: [Gambas-user] Problems with gbs In-Reply-To: <201104112007.19168.gambas@...1...> References: <201104112007.19168.gambas@...1...> Message-ID: There certainly are some warnings... I not sure why, but doesn't seem to be serious. Jussi 2011/4/11 Beno?t Minisini > > Still problems with this... same errors with both Gambas 2.23 and Gambas > 3 > > rev 3748. > > > > I tried with different character encodings and line endings. > > "Mac OS Classic" line endings yielded different errors, > > but I couldn't find working combination. > > > > Can someone confirm if UTF-8 with normal unix line endings is working > > combination (I assume it is)? > > Any other ideas to check? > > > > Everything else with Gambas 2 and Gambas 3 works as expected. > > > > Jussi > > > > Please provide the full output of './configure', 'make' and 'make install' > so > that I can see if everything is normal (it should not). > > Regards, > > -- > Beno?t Minisini > > > ------------------------------------------------------------------------------ > 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 at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -------------- next part -------------- A non-text attachment was scrubbed... Name: outputs.tar.7z Type: application/x-7z-compressed Size: 35948 bytes Desc: not available URL: From jussi.lahtinen at ...626... Mon Apr 11 20:55:20 2011 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Mon, 11 Apr 2011 21:55:20 +0300 Subject: [Gambas-user] Problems with gbs In-Reply-To: References: <201104112007.19168.gambas@...1...> Message-ID: Sorry wrong format... now it is with gz. Jussi On Mon, Apr 11, 2011 at 21:54, Jussi Lahtinen wrote: > There certainly are some warnings... I not sure why, but doesn't seem to be > serious. > > Jussi > > > > > 2011/4/11 Beno?t Minisini > >> > Still problems with this... same errors with both Gambas 2.23 and Gambas >> 3 >> > rev 3748. >> > >> > I tried with different character encodings and line endings. >> > "Mac OS Classic" line endings yielded different errors, >> > but I couldn't find working combination. >> > >> > Can someone confirm if UTF-8 with normal unix line endings is working >> > combination (I assume it is)? >> > Any other ideas to check? >> > >> > Everything else with Gambas 2 and Gambas 3 works as expected. >> > >> > Jussi >> > >> >> Please provide the full output of './configure', 'make' and 'make install' >> so >> that I can see if everything is normal (it should not). >> >> Regards, >> >> -- >> Beno?t Minisini >> >> >> ------------------------------------------------------------------------------ >> 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 at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > -------------- next part -------------- A non-text attachment was scrubbed... Name: outputs.tar.gz Type: application/x-gzip Size: 42655 bytes Desc: not available URL: From gambas at ...2524... Tue Apr 12 01:37:25 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Mon, 11 Apr 2011 23:37:25 +0000 Subject: [Gambas-user] Issue 54 in gambas: Gambas debugger shows "unexpected" warnings on keywords when paused In-Reply-To: <0-6813199134517018827-3654485421693284163-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-3654485421693284163-gambas=googlecode.com@...2524...> Message-ID: <1-6813199134517018827-3654485421693284163-gambas=googlecode.com@...2524...> Updates: Status: Accepted Labels: -Version Version-TRUNK Comment #1 on issue 54 by benoit.m... at ...626...: Gambas debugger shows "unexpected" warnings on keywords when paused http://code.google.com/p/gambas/issues/detail?id=54 (No comment was entered for this change.) From gambas at ...2524... Tue Apr 12 01:41:32 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Mon, 11 Apr 2011 23:41:32 +0000 Subject: [Gambas-user] Issue 54 in gambas: Gambas debugger shows "unexpected" warnings on keywords when paused In-Reply-To: <1-6813199134517018827-3654485421693284163-gambas=googlecode.com@...2524...> References: <1-6813199134517018827-3654485421693284163-gambas=googlecode.com@...2524...> <0-6813199134517018827-3654485421693284163-gambas=googlecode.com@...2524...> Message-ID: <2-6813199134517018827-3654485421693284163-gambas=googlecode.com@...2524...> Updates: Status: Fixed Comment #2 on issue 54 by benoit.m... at ...626...: Gambas debugger shows "unexpected" warnings on keywords when paused http://code.google.com/p/gambas/issues/detail?id=54 I use a tooltip instead of a balloon since revision #3750, and I try to ignore when something incorrect has been selected. From gambas at ...2524... Tue Apr 12 02:30:20 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Tue, 12 Apr 2011 00:30:20 +0000 Subject: [Gambas-user] Issue 55 in gambas: extended ASCII codes in textarea control give GTK error. In-Reply-To: <0-6813199134517018827-9113086336965140938-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-9113086336965140938-gambas=googlecode.com@...2524...> Message-ID: <1-6813199134517018827-9113086336965140938-gambas=googlecode.com@...2524...> Updates: Status: WontFix Labels: -Version -GUI-Any Version-TRUNK GUI-GTK Comment #1 on issue 55 by benoit.m... at ...626...: extended ASCII codes in textarea control give GTK error. http://code.google.com/p/gambas/issues/detail?id=55 TextArea.Text must receive a valid UTF-8 string. When the UTF-8 string is not valid, Qt is silent, but not GTK+. But I won't validate UTF-8 strings just to not have messages printed on the standard error output. It will waste CPU. From gambas at ...2524... Tue Apr 12 02:39:26 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Tue, 12 Apr 2011 00:39:26 +0000 Subject: [Gambas-user] Issue 61 in gambas: valuebox of type IPAddress crashes IDE Message-ID: <0-6813199134517018827-11368010895264427534-gambas=googlecode.com@...2524...> Status: New Owner: ---- Labels: Version Type-Bug Priority-Medium OpSys-Any Dist-Any Arch-Any Desktop-Any GUI-Any New issue 61 by zachsmit... at ...626...: valuebox of type IPAddress crashes IDE http://code.google.com/p/gambas/issues/detail?id=61 1. Run program 2. Double click ip valuebox within IDE. Version: TRUNK Revision: r3689 Operating system: Linux Distribution: ArchLinux Architecture: x86_64 Desktop used: Xfce Attachments: Screenshot12.png 11.6 KB test12-0.0.1.tar.gz 4.4 KB From gambas at ...2524... Tue Apr 12 02:43:30 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Tue, 12 Apr 2011 00:43:30 +0000 Subject: [Gambas-user] Issue 56 in gambas: error with GTK textarea control when line property is set out of bounds In-Reply-To: <0-6813199134517018827-13243576107013926323-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-13243576107013926323-gambas=googlecode.com@...2524...> Message-ID: <1-6813199134517018827-13243576107013926323-gambas=googlecode.com@...2524...> Updates: Status: Accepted Labels: -Version -GUI-Any Version-TRUNK GUI-GTK Comment #1 on issue 56 by benoit.m... at ...626...: error with GTK textarea control when line property is set out of bounds http://code.google.com/p/gambas/issues/detail?id=56 (No comment was entered for this change.) From gambas at ...2524... Tue Apr 12 02:47:32 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Tue, 12 Apr 2011 00:47:32 +0000 Subject: [Gambas-user] Issue 56 in gambas: error with GTK textarea control when line property is set out of bounds In-Reply-To: <1-6813199134517018827-13243576107013926323-gambas=googlecode.com@...2524...> References: <1-6813199134517018827-13243576107013926323-gambas=googlecode.com@...2524...> <0-6813199134517018827-13243576107013926323-gambas=googlecode.com@...2524...> Message-ID: <2-6813199134517018827-13243576107013926323-gambas=googlecode.com@...2524...> Updates: Status: Fixed Comment #2 on issue 56 by benoit.m... at ...626...: error with GTK textarea control when line property is set out of bounds http://code.google.com/p/gambas/issues/detail?id=56 Fixed in revision #3751. Now it behaves the same way as in gb.qt4. From gambas at ...2524... Tue Apr 12 02:51:34 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Tue, 12 Apr 2011 00:51:34 +0000 Subject: [Gambas-user] Issue 61 in gambas: valuebox of type IPAddress crashes IDE In-Reply-To: <0-6813199134517018827-11368010895264427534-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-11368010895264427534-gambas=googlecode.com@...2524...> Message-ID: <1-6813199134517018827-11368010895264427534-gambas=googlecode.com@...2524...> Updates: Status: NeedsInfo Labels: -Version Version-TRUNK Comment #1 on issue 61 by benoit.m... at ...626...: valuebox of type IPAddress crashes IDE http://code.google.com/p/gambas/issues/detail?id=61 I can't reproduce the crash. Is there something else that you didn't tell? From gambas at ...2524... Tue Apr 12 02:55:38 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Tue, 12 Apr 2011 00:55:38 +0000 Subject: [Gambas-user] Issue 58 in gambas: Gtk-CRITICAL error when form closed while combobox dropdown is showing In-Reply-To: <0-6813199134517018827-8829991973477486015-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-8829991973477486015-gambas=googlecode.com@...2524...> Message-ID: <1-6813199134517018827-8829991973477486015-gambas=googlecode.com@...2524...> Updates: Status: Accepted Labels: -Version -GUI-Any Version-TRUNK GUI-GTK Comment #1 on issue 58 by benoit.m... at ...626...: Gtk-CRITICAL error when form closed while combobox dropdown is showing http://code.google.com/p/gambas/issues/detail?id=58 Mmm... Seems a weird GTK+ behaviour. I will try to find a workaround. From gambas at ...2524... Tue Apr 12 02:59:42 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Tue, 12 Apr 2011 00:59:42 +0000 Subject: [Gambas-user] Issue 61 in gambas: valuebox of type IPAddress crashes IDE In-Reply-To: <1-6813199134517018827-11368010895264427534-gambas=googlecode.com@...2524...> References: <1-6813199134517018827-11368010895264427534-gambas=googlecode.com@...2524...> <0-6813199134517018827-11368010895264427534-gambas=googlecode.com@...2524...> Message-ID: <2-6813199134517018827-11368010895264427534-gambas=googlecode.com@...2524...> Comment #2 on issue 61 by zachsmit... at ...626...: valuebox of type IPAddress crashes IDE http://code.google.com/p/gambas/issues/detail?id=61 Be sure to click on the valuebox control within the form designer while the program runs, not on the valuebox control in the running program. Attachments: Screenshot12a.png 15.1 KB From gambas at ...2524... Tue Apr 12 03:03:43 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Tue, 12 Apr 2011 01:03:43 +0000 Subject: [Gambas-user] Issue 59 in gambas: font size issue with combobox when readonly=false (GTK+) In-Reply-To: <0-6813199134517018827-3815742580317148444-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-3815742580317148444-gambas=googlecode.com@...2524...> Message-ID: <1-6813199134517018827-3815742580317148444-gambas=googlecode.com@...2524...> Updates: Status: Accepted Labels: -Version -GUI-Any Version-TRUNK GUI-GTK Comment #1 on issue 59 by benoit.m... at ...626...: font size issue with combobox when readonly=false (GTK+) http://code.google.com/p/gambas/issues/detail?id=59 (No comment was entered for this change.) From gambas at ...2524... Tue Apr 12 03:07:47 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Tue, 12 Apr 2011 01:07:47 +0000 Subject: [Gambas-user] Issue 59 in gambas: font size issue with combobox when readonly=false (GTK+) In-Reply-To: <1-6813199134517018827-3815742580317148444-gambas=googlecode.com@...2524...> References: <1-6813199134517018827-3815742580317148444-gambas=googlecode.com@...2524...> <0-6813199134517018827-3815742580317148444-gambas=googlecode.com@...2524...> Message-ID: <2-6813199134517018827-3815742580317148444-gambas=googlecode.com@...2524...> Updates: Status: Fixed Comment #2 on issue 59 by benoit.m... at ...626...: font size issue with combobox when readonly=false (GTK+) http://code.google.com/p/gambas/issues/detail?id=59 Fixed in revision #3752. From gambas at ...2524... Tue Apr 12 03:11:51 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Tue, 12 Apr 2011 01:11:51 +0000 Subject: [Gambas-user] Issue 60 in gambas: combobox shows blank lines before first item (GTK+) In-Reply-To: <0-6813199134517018827-474982564160783116-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-474982564160783116-gambas=googlecode.com@...2524...> Message-ID: <1-6813199134517018827-474982564160783116-gambas=googlecode.com@...2524...> Updates: Status: NeedsInfo Labels: -Version -GUI-Any Version-TRUNK GUI-GTK Comment #1 on issue 60 by benoit.m... at ...626...: combobox shows blank lines before first item (GTK+) http://code.google.com/p/gambas/issues/detail?id=60 Isn't it a GTK+ bug? Do you have that problem with non-Gambas GTK+ applications? From kevinfishburne at ...1887... Tue Apr 12 03:17:25 2011 From: kevinfishburne at ...1887... (Kevin Fishburne) Date: Mon, 11 Apr 2011 21:17:25 -0400 Subject: [Gambas-user] Gambasdoc.org hosting (wiki) In-Reply-To: <201104111551.11961.gambas@...1...> References: <201103301427.24980.sourceforge-raindog2@...94...> <201104111551.11961.gambas@...1...> Message-ID: <4DA3A825.5010600@...1887...> On 04/11/2011 09:51 AM, Beno?t Minisini wrote: >> Hi, my name is Rob Kudla. I've been providing hosting for the Gambas >> wiki at gambasdoc.org for about 6 years. The wiki needs a new host. >> >> ... >> >> If anyone can take this over, please let me and/or Benoit know. >> >> Thanks >> Rob > Mmm. Not a lot of answers... Not sure if this would be the best place to host the documentation from, but I have a Comcast Business Class connection that can sustain 640 KB/s upstream. That's 52.7 GB a day if the connection was constantly saturated. That bandwidth is used for light traffic to eightvirtues.com and regular LAN Internet usage. I also host some system restoration DVDs via BitTorrent (legal) but they're QOS'ed to 192 KB/s and rarely downloaded. Over the last 1.9 years my port 80 uptime is 98.678%, which isn't great, but is pretty good considering I don't have a dedicated team managing it. I do live here, however, so when things go down I get them back up pretty quickly. I have a quad core 2.3 GHz server and can upgrade the RAM as necessary. It's running Ubuntu 10.10 ia64 on a software RAID 5 using 6 1 TB hard drives with LVM and has 1.4 TB of free space. My gateway, switch and server are on a UPS that keeps everything alive for 30 minutes during power failures (this has been tested by real-world power failures). I can set up a VM with a bridged static IP dedicated to the GAMBAS docs. Beno?t could have whatever level of access to the VM is required. I only have one static IP address, so I'd need some help/advice setting it up to use more than one domain name if that's possible (I'm not an expert on that sort of thing). Otherwise I'd have to get a second static IP or set up a subdomain. This wouldn't exactly be a professionally hosted solution at some hardened datacenter, but I thought I should put it on the table for consideration. Let me know, as I can put together a VM and proper port forwarding as soon as tonight if Beno?t wants to start playing with it. Also, thanks Rob for hosting the site for so long. Much appreciated! -- Kevin Fishburne Eight Virtues www:http://sales.eightvirtues.com e-mail:sales at ...1887... phone: (770) 853-6271 From gambas at ...1... Tue Apr 12 12:41:20 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Tue, 12 Apr 2011 12:41:20 +0200 Subject: [Gambas-user] Global search & replace In-Reply-To: <201104102256.19671.rterry@...1946...> References: <201104102144.04319.rterry@...1946...> <9853141D-7DBB-416E-AC92-3A42640D95E6@...1896...> <201104102256.19671.rterry@...1946...> Message-ID: <201104121241.20787.gambas@...1...> > On Sunday 10 April 2011 22:17:20 Olivier Cruilles wrote: > Thanks, I'll try that, but I would have thought the gambas editor should > accomodate global replaces. > > Regards > > Richard > Global replace was added in revision #3753. To activate it, you must check the "Replace all" entry in the menu of the "Browse" MenuButton, just before starting browsing. Regards, -- Beno?t Minisini From gambas at ...2524... Tue Apr 12 12:42:30 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Tue, 12 Apr 2011 10:42:30 +0000 Subject: [Gambas-user] Issue 48 in gambas: long lines wrap in search window In-Reply-To: <2-6813199134517018827-10570537251690008866-gambas=googlecode.com@...2524...> References: <2-6813199134517018827-10570537251690008866-gambas=googlecode.com@...2524...> <0-6813199134517018827-10570537251690008866-gambas=googlecode.com@...2524...> Message-ID: <3-6813199134517018827-10570537251690008866-gambas=googlecode.com@...2524...> Comment #3 on issue 48 by benoit.m... at ...626...: long lines wrap in search window http://code.google.com/p/gambas/issues/detail?id=48 Fixed in revision #3753. From gambas at ...2524... Tue Apr 12 12:46:31 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Tue, 12 Apr 2011 10:46:31 +0000 Subject: [Gambas-user] Issue 48 in gambas: long lines wrap in search window In-Reply-To: <3-6813199134517018827-10570537251690008866-gambas=googlecode.com@...2524...> References: <3-6813199134517018827-10570537251690008866-gambas=googlecode.com@...2524...> <0-6813199134517018827-10570537251690008866-gambas=googlecode.com@...2524...> Message-ID: <4-6813199134517018827-10570537251690008866-gambas=googlecode.com@...2524...> Updates: Status: Fixed Comment #4 on issue 48 by benoit.m... at ...626...: long lines wrap in search window http://code.google.com/p/gambas/issues/detail?id=48 (No comment was entered for this change.) From rterry at ...1946... Tue Apr 12 14:37:02 2011 From: rterry at ...1946... (richard terry) Date: Tue, 12 Apr 2011 22:37:02 +1000 Subject: [Gambas-user] Global search & replace In-Reply-To: <201104121241.20787.gambas@...1...> References: <201104102144.04319.rterry@...1946...> <201104102256.19671.rterry@...1946...> <201104121241.20787.gambas@...1...> Message-ID: <201104122237.02167.rterry@...1946...> On Tuesday 12 April 2011 20:41:20 Beno?t Minisini wrote: > > On Sunday 10 April 2011 22:17:20 Olivier Cruilles wrote: > > Thanks, I'll try that, but I would have thought the gambas editor should > > accomodate global replaces. > > > > Regards > > > > Richard > > Global replace was added in revision #3753. > > To activate it, you must check the "Replace all" entry in the menu of the > "Browse" MenuButton, just before starting browsing. > > Regards, > thanks. regards richard From rainbof at ...626... Tue Apr 12 17:54:08 2011 From: rainbof at ...626... (rainbof at ...626...) Date: Tue, 12 Apr 2011 15:54:08 +0000 Subject: [Gambas-user] how to get https document Message-ID: <00151747b3d4dc0fb504a0bab331@...2027...> Hi, i try to get document from https url "https://isir.justice.cz:8443/isir_ws/services/IsirPub001/getIsirPub0012?long_1=1" i trying to use example from of httpclient: http://www.gambasdoc.org/help/comp/gb.net.curl/httpclient but it does not work. :( is any way to make it better without manually calling wget or curl over exec Andreas From jussi.lahtinen at ...626... Tue Apr 12 20:55:36 2011 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Tue, 12 Apr 2011 21:55:36 +0300 Subject: [Gambas-user] IDE graphical bug Message-ID: Hi! Following (see attachment) graphical bug appears when scrolling down with editor. Gambas 3 rev 3755 @ Ubuntu 10.10 64bit Jussi -------------- next part -------------- A non-text attachment was scrubbed... Name: Screenshot-1.jpg Type: image/jpeg Size: 189136 bytes Desc: not available URL: From gambas at ...1... Tue Apr 12 21:08:14 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Tue, 12 Apr 2011 21:08:14 +0200 Subject: [Gambas-user] IDE graphical bug In-Reply-To: References: Message-ID: <201104122108.14402.gambas@...1...> > Hi! > Following (see attachment) graphical bug appears when scrolling down with > editor. > > Gambas 3 rev 3755 @ Ubuntu 10.10 64bit > > Jussi I cannot reproduce it with KDE. I think it is related to Gnome. I will test... -- Beno?t Minisini From math.eber at ...221... Tue Apr 12 21:14:16 2011 From: math.eber at ...221... (Matti) Date: Tue, 12 Apr 2011 21:14:16 +0200 Subject: [Gambas-user] Little corrections to the wiki In-Reply-To: <201104091016.07730.gambas@...1...> References: <4D9E1199.8000307@...221...> <201104091016.07730.gambas@...1...> Message-ID: <4DA4A488.30402@...221...> ok, fine. But then, the wiki is wrong the opposite way. It still says: ScrollArea.ScrollX (gb.form) PROPERTY READ ScrollX AS Integer and PROPERTY READ ScrollY AS Integer Am 09.04.2011 10:16, schrieb Beno?t Minisini: > These properties were made writable as expected in revision #3740. > > Regards, > From math.eber at ...221... Tue Apr 12 21:16:41 2011 From: math.eber at ...221... (Matti) Date: Tue, 12 Apr 2011 21:16:41 +0200 Subject: [Gambas-user] IDE graphical bug In-Reply-To: <201104122108.14402.gambas@...1...> References: <201104122108.14402.gambas@...1...> Message-ID: <4DA4A519.6050101@...221...> No, I have the same here with KDE. Just after updating from rev. 3703 to 3755. Am 12.04.2011 21:08, schrieb Beno?t Minisini: >> Hi! >> Following (see attachment) graphical bug appears when scrolling down with >> editor. >> >> Gambas 3 rev 3755 @ Ubuntu 10.10 64bit >> >> Jussi > > I cannot reproduce it with KDE. I think it is related to Gnome. I will test... > From math.eber at ...221... Tue Apr 12 21:25:19 2011 From: math.eber at ...221... (Matti) Date: Tue, 12 Apr 2011 21:25:19 +0200 Subject: [Gambas-user] IDE graphical bug In-Reply-To: References: Message-ID: <4DA4A71F.4070305@...221...> It's the column/line position of the cursor that was displayed somewhere top right before... Am 12.04.2011 20:55, schrieb Jussi Lahtinen: > Hi! > Following (see attachment) graphical bug appears when scrolling down with > editor. > > Gambas 3 rev 3755 @ Ubuntu 10.10 64bit > > Jussi From gambas at ...1... Tue Apr 12 22:14:13 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Tue, 12 Apr 2011 22:14:13 +0200 Subject: [Gambas-user] IDE graphical bug In-Reply-To: References: Message-ID: <201104122214.13318.gambas@...1...> > Hi! > Following (see attachment) graphical bug appears when scrolling down with > editor. > > Gambas 3 rev 3755 @ Ubuntu 10.10 64bit > > Jussi Can you try revision #3757? -- Beno?t Minisini From math.eber at ...221... Tue Apr 12 22:37:42 2011 From: math.eber at ...221... (Matti) Date: Tue, 12 Apr 2011 22:37:42 +0200 Subject: [Gambas-user] IDE graphical bug In-Reply-To: <201104122214.13318.gambas@...1...> References: <201104122214.13318.gambas@...1...> Message-ID: <4DA4B816.8070409@...221...> Here it's still the same. Am 12.04.2011 22:14, schrieb Beno?t Minisini: >> Hi! >> Following (see attachment) graphical bug appears when scrolling down with >> editor. >> >> Gambas 3 rev 3755 @ Ubuntu 10.10 64bit >> >> Jussi > > Can you try revision #3757? > From j-halverson at ...2576... Wed Apr 13 01:51:05 2011 From: j-halverson at ...2576... (Jeff Halverson) Date: Wed, 13 Apr 2011 07:51:05 +0800 Subject: [Gambas-user] Help to make on the fly pointer to various result sets Message-ID: <1302652265.11033.2.camel@...2577...> I have something that is puzzling me that seems easy to do, but I can't figure it out... I was hoping somebody might be able to help. If I have the following available from a resultset: DataSummary!InvestmentName DataSummary!BrokerName DataSummary!ManagementCompanyName DataSummary!RegionName And I want to be able to use each of those fields above in a function, such as the example below: IF TextToSearchFor = DataSummary!RegionName THEN ' Do a bunch of stuff END IF Is there a way to replace the "DataSummary!RegionName" within the function with a variable that will evaluate to the resultset value? Maybe something like: FieldToSearchFor = "DataSummary!RegionName" IF TextToSearchFor = Evaluate(FieldToSearchFor) THEN ' Do a bunch of stuff END IF Obviously the above doesn't work, but is there some means in Gambas to achieve this result? Any help is greatly appreciately. Jeff H Tokyo From rterry at ...1946... Wed Apr 13 02:19:35 2011 From: rterry at ...1946... (richard terry) Date: Wed, 13 Apr 2011 10:19:35 +1000 Subject: [Gambas-user] Help to make on the fly pointer to various result sets In-Reply-To: <1302652265.11033.2.camel@...2577...> References: <1302652265.11033.2.camel@...2577...> Message-ID: <201104131019.35240.rterry@...1946...> On Wednesday 13 April 2011 09:51:05 Jeff Halverson wrote: > I have something that is puzzling me that seems easy to do, but I can't > figure it out... I was hoping somebody might be able to help. > > If I have the following available from a resultset: > > DataSummary!InvestmentName > DataSummary!BrokerName > DataSummary!ManagementCompanyName > DataSummary!RegionName > > And I want to be able to use each of those fields above in a function, > such as the example below: > *********************************************************** > IF TextToSearchFor = DataSummary!RegionName THEN > ' Do a bunch of stuff > END IF ************************************************************ Not sure what your problem is as the lines above this should work fine as long as the database field data is text, can you describe what happens when you try this to give us more clues? Regards Richard > Is there a way to replace the "DataSummary!RegionName" within the > function with a variable that will evaluate to the resultset value? > Maybe something like: > > FieldToSearchFor = "DataSummary!RegionName" > IF TextToSearchFor = Evaluate(FieldToSearchFor) THEN > ' Do a bunch of stuff > END IF > > Obviously the above doesn't work, but is there some means in Gambas to > achieve this result? > > Any help is greatly appreciately. > > Jeff H > Tokyo > --------------------------------------------------------------------------- > --- Forrester Wave Report - Recovery time is now measured in hours and > minutes not days. Key insights are discussed in the 2010 Forrester Wave > Report as part of an in-depth evaluation of disaster recovery service > providers. Forrester found the best-in-class provider in terms of services > and vision. Read this report now! http://p.sf.net/sfu/ibm-webcastpromo > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From bbruen at ...2308... Wed Apr 13 03:20:04 2011 From: bbruen at ...2308... (Bruce Bruen) Date: Wed, 13 Apr 2011 10:50:04 +0930 Subject: [Gambas-user] Help to make on the fly pointer to various result sets In-Reply-To: <1302652265.11033.2.camel@...2577...> References: <1302652265.11033.2.camel@...2577...> Message-ID: <201104131050.05203.bbruen@...2308...> On Wednesday, April 13, 2011 09:21:05 AM Jeff Halverson wrote: > I have something that is puzzling me that seems easy to do, but I can't > figure it out... I was hoping somebody might be able to help. > > If I have the following available from a resultset: > > DataSummary!InvestmentName > DataSummary!BrokerName > DataSummary!ManagementCompanyName > DataSummary!RegionName > > And I want to be able to use each of those fields above in a function, > such as the example below: > > IF TextToSearchFor = DataSummary!RegionName THEN > ' Do a bunch of stuff > END IF > > Is there a way to replace the "DataSummary!RegionName" within the > function with a variable that will evaluate to the resultset value? > Maybe something like: > > FieldToSearchFor = "DataSummary!RegionName" > IF TextToSearchFor = Evaluate(FieldToSearchFor) THEN > ' Do a bunch of stuff > END IF > > Obviously the above doesn't work, but is there some means in Gambas to > achieve this result? > > Any help is greatly appreciately. > > Jeff H > Tokyo > --------------------------------------------------------------------------- > --- Forrester Wave Report - Recovery time is now measured in hours and > minutes not days. Key insights are discussed in the 2010 Forrester Wave > Report as part of an in-depth evaluation of disaster recovery service > providers. Forrester found the best-in-class provider in terms of services > and vision. Read this report now! http://p.sf.net/sfu/ibm-webcastpromo > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user Sub Search(SearchCol as String) AS Whatever ... ...DataSummary[SearchCol]... DoABunchOfStuff etc -- best regards Bruce Bruen From rterry at ...1946... Wed Apr 13 06:14:06 2011 From: rterry at ...1946... (richard terry) Date: Wed, 13 Apr 2011 14:14:06 +1000 Subject: [Gambas-user] Global search & replace In-Reply-To: <201104121241.20787.gambas@...1...> References: <201104102144.04319.rterry@...1946...> <201104102256.19671.rterry@...1946...> <201104121241.20787.gambas@...1...> Message-ID: <201104131414.06919.rterry@...1946...> On Tuesday 12 April 2011 20:41:20 Beno?t Minisini wrote: > > On Sunday 10 April 2011 22:17:20 Olivier Cruilles wrote: > > Thanks, I'll try that, but I would have thought the gambas editor should > > accomodate global replaces. > > > > Regards > > > > Richard > > Global replace was added in revision #3753. > > To activate it, you must check the "Replace all" entry in the menu of the > "Browse" MenuButton, just before starting browsing. That's a bit cryptic Benoit, there is room under the current procedure chekbox for a 'whole project' checkbox. REgards richard > > Regards, > From jussi.lahtinen at ...626... Wed Apr 13 17:14:18 2011 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Wed, 13 Apr 2011 18:14:18 +0300 Subject: [Gambas-user] Gambas 3 revision 3762 doesn't compile! Message-ID: Hi! Need for full output of configure and make? gtools.cpp: In function ?void gt_drawable_fill(GdkDrawable*, gColor, GdkGC*)?: gtools.cpp:1167: error: ?gdk_window_get_width? was not declared in this scope gtools.cpp:1168: error: ?gdk_window_get_height? was not declared in this scope make[4]: *** [gtools.lo] Error 1 make[4]: Leaving directory `/home/jussiemmi/trunk/gb.gtk/src' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/home/jussiemmi/trunk/gb.gtk' make[2]: *** [all] Error 2 make[2]: Leaving directory `/home/jussiemmi/trunk/gb.gtk' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/jussiemmi/trunk' make: *** [all] Error 2 @ Ubuntu 10.10 64bit Jussi From j-halverson at ...2576... Wed Apr 13 17:38:38 2011 From: j-halverson at ...2576... (Jeff Halverson) Date: Wed, 13 Apr 2011 23:38:38 +0800 Subject: [Gambas-user] Help to make on the fly pointer to various result sets In-Reply-To: <201104131019.35240.rterry@...1946...> References: <1302652265.11033.2.camel@...2577...> <201104131019.35240.rterry@...1946...> Message-ID: <1302709118.18948.3.camel@...2577...> Sorry, I guess I over simplified my example and poorly explained it! Actually I was looking to be able to use a variable to change the field I look up in a result... In some cases, I was hoping to use a concatenated string to get various results from the database. It seems this has been answered in a subsequent response to use the form of "ResultName[String]" in lieu of "ResultName!ResultField". Thanks! Jeff H Tokyo On Wed, 2011-04-13 at 10:19 +1000, richard terry wrote: > On Wednesday 13 April 2011 09:51:05 Jeff Halverson wrote: > > I have something that is puzzling me that seems easy to do, but I can't > > figure it out... I was hoping somebody might be able to help. > > > > If I have the following available from a resultset: > > > > DataSummary!InvestmentName > > DataSummary!BrokerName > > DataSummary!ManagementCompanyName > > DataSummary!RegionName > > > > And I want to be able to use each of those fields above in a function, > > such as the example below: > > > *********************************************************** > > IF TextToSearchFor = DataSummary!RegionName THEN > > ' Do a bunch of stuff > > END IF > ************************************************************ > Not sure what your problem is as the lines above this should work fine as long > as the database field data is text, can you describe what happens when you try > this to give us more clues? > > Regards > > Richard > > > Is there a way to replace the "DataSummary!RegionName" within the > > function with a variable that will evaluate to the resultset value? > > Maybe something like: > > > > FieldToSearchFor = "DataSummary!RegionName" > > IF TextToSearchFor = Evaluate(FieldToSearchFor) THEN > > ' Do a bunch of stuff > > END IF > > > > Obviously the above doesn't work, but is there some means in Gambas to > > achieve this result? > > > > Any help is greatly appreciately. > > > > Jeff H > > Tokyo > > --------------------------------------------------------------------------- > > --- Forrester Wave Report - Recovery time is now measured in hours and > > minutes not days. Key insights are discussed in the 2010 Forrester Wave > > Report as part of an in-depth evaluation of disaster recovery service > > providers. Forrester found the best-in-class provider in terms of services > > and vision. Read this report now! http://p.sf.net/sfu/ibm-webcastpromo > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > ------------------------------------------------------------------------------ > Forrester Wave Report - Recovery time is now measured in hours and minutes > not days. Key insights are discussed in the 2010 Forrester Wave Report as > part of an in-depth evaluation of disaster recovery service providers. > Forrester found the best-in-class provider in terms of services and vision. > Read this report now! http://p.sf.net/sfu/ibm-webcastpromo > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From j-halverson at ...2576... Wed Apr 13 17:40:12 2011 From: j-halverson at ...2576... (Jeff Halverson) Date: Wed, 13 Apr 2011 23:40:12 +0800 Subject: [Gambas-user] Help to make on the fly pointer to various result sets In-Reply-To: <201104131050.05203.bbruen@...2308...> References: <1302652265.11033.2.camel@...2577...> <201104131050.05203.bbruen@...2308...> Message-ID: <1302709212.18948.5.camel@...2577...> Thanks, this is exactly what I was looking for. I knew there must be a way to do this and am suprised I missed the Results[String] formating option! Jeff H Tokyo On Wed, 2011-04-13 at 10:50 +0930, Bruce Bruen wrote: > On Wednesday, April 13, 2011 09:21:05 AM Jeff Halverson wrote: > > I have something that is puzzling me that seems easy to do, but I can't > > figure it out... I was hoping somebody might be able to help. > > > > If I have the following available from a resultset: > > > > DataSummary!InvestmentName > > DataSummary!BrokerName > > DataSummary!ManagementCompanyName > > DataSummary!RegionName > > > > And I want to be able to use each of those fields above in a function, > > such as the example below: > > > > IF TextToSearchFor = DataSummary!RegionName THEN > > ' Do a bunch of stuff > > END IF > > > > Is there a way to replace the "DataSummary!RegionName" within the > > function with a variable that will evaluate to the resultset value? > > Maybe something like: > > > > FieldToSearchFor = "DataSummary!RegionName" > > IF TextToSearchFor = Evaluate(FieldToSearchFor) THEN > > ' Do a bunch of stuff > > END IF > > > > Obviously the above doesn't work, but is there some means in Gambas to > > achieve this result? > > > > Any help is greatly appreciately. > > > > Jeff H > > Tokyo > > --------------------------------------------------------------------------- > > --- Forrester Wave Report - Recovery time is now measured in hours and > > minutes not days. Key insights are discussed in the 2010 Forrester Wave > > Report as part of an in-depth evaluation of disaster recovery service > > providers. Forrester found the best-in-class provider in terms of services > > and vision. Read this report now! http://p.sf.net/sfu/ibm-webcastpromo > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > Sub Search(SearchCol as String) AS Whatever > ... > ...DataSummary[SearchCol]... > DoABunchOfStuff > > etc From lordheavym at ...626... Wed Apr 13 18:24:54 2011 From: lordheavym at ...626... (Laurent Carlier) Date: Wed, 13 Apr 2011 18:24:54 +0200 Subject: [Gambas-user] Gambas 3 revision 3762 doesn't compile! In-Reply-To: References: Message-ID: <201104131824.54923.lordheavym@...626...> Le mercredi 13 avril 2011 17:14:18, Jussi Lahtinen a ?crit : > Hi! > > Need for full output of configure and make? > > gtools.cpp: In function ?void gt_drawable_fill(GdkDrawable*, gColor, > GdkGC*)?: > gtools.cpp:1167: error: ?gdk_window_get_width? was not declared in this > scope > gtools.cpp:1168: error: ?gdk_window_get_height? was not declared in this > scope > make[4]: *** [gtools.lo] Error 1 > make[4]: Leaving directory `/home/jussiemmi/trunk/gb.gtk/src' > make[3]: *** [all-recursive] Error 1 > make[3]: Leaving directory `/home/jussiemmi/trunk/gb.gtk' > make[2]: *** [all] Error 2 > make[2]: Leaving directory `/home/jussiemmi/trunk/gb.gtk' > make[1]: *** [all-recursive] Error 1 > make[1]: Leaving directory `/home/jussiemmi/trunk' > make: *** [all] Error 2 > > > @ Ubuntu 10.10 64bit > > Jussi > --------------------------------------------------------------------------- > --- Forrester Wave Report - Recovery time is now measured in hours and > minutes not days. Key insights are discussed in the 2010 Forrester Wave > Report as part of an in-depth evaluation of disaster recovery service > providers. Forrester found the best-in-class provider in terms of services > and vision. Read this report now! http://p.sf.net/sfu/ibm-webcastpromo > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user what is you gtk+ version ? ++ From nando_f at ...951... Wed Apr 13 18:38:34 2011 From: nando_f at ...951... (nando) Date: Wed, 13 Apr 2011 12:38:34 -0400 Subject: [Gambas-user] Serial with 9 databits In-Reply-To: <4DA2D54E.8040500@...11...> References: <201104111100.17520.wally@...2037...> <4DA2D54E.8040500@...11...> Message-ID: <20110413163637.M51567@...951...> Serial ports on computers can (usually) do 5,6,7,8 data bits. The 8250/16450/16550 serial chip doesn't have a way to do 9 bits This is unusual. What is it for? ---------- Original Message ----------- From: Jack To: mailing list for gambas users Sent: Mon, 11 Apr 2011 12:17:50 +0200 Subject: Re: [Gambas-user] Serial with 9 databits > Le 11/04/2011 11:00, wally a ?crit : > > > > Is there a way to setup the gambas serial control to 9 databits ? > > ( or another way to communicate with (9 dtat, even par, 2 stops ) ? > > IF your name port is sPort > > Sport.Speed = "19200" > Sport.Parity = 0 > Sport.DataBits = 9 > Sport.StopBits = 2 > > Jack > > ------------------------------------------------------------------------------ > 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 at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user ------- End of Original Message ------- From lordheavym at ...626... Wed Apr 13 18:39:01 2011 From: lordheavym at ...626... (Laurent Carlier) Date: Wed, 13 Apr 2011 18:39:01 +0200 Subject: [Gambas-user] Gambas 3 revision 3762 doesn't compile! In-Reply-To: References: Message-ID: <201104131839.01646.lordheavym@...626...> Le mercredi 13 avril 2011 17:14:18, Jussi Lahtinen a ?crit : > Hi! > > Need for full output of configure and make? > > gtools.cpp: In function ?void gt_drawable_fill(GdkDrawable*, gColor, > GdkGC*)?: > gtools.cpp:1167: error: ?gdk_window_get_width? was not declared in this > scope > gtools.cpp:1168: error: ?gdk_window_get_height? was not declared in this > scope > make[4]: *** [gtools.lo] Error 1 > make[4]: Leaving directory `/home/jussiemmi/trunk/gb.gtk/src' > make[3]: *** [all-recursive] Error 1 > make[3]: Leaving directory `/home/jussiemmi/trunk/gb.gtk' > make[2]: *** [all] Error 2 > make[2]: Leaving directory `/home/jussiemmi/trunk/gb.gtk' > make[1]: *** [all-recursive] Error 1 > make[1]: Leaving directory `/home/jussiemmi/trunk' > make: *** [all] Error 2 > > > @ Ubuntu 10.10 64bit > > Jussi It should be fixed in rev3763 ++ From nando_f at ...951... Wed Apr 13 18:46:31 2011 From: nando_f at ...951... (nando) Date: Wed, 13 Apr 2011 12:46:31 -0400 Subject: [Gambas-user] Should not we follow the ISO 8601 standard? In-Reply-To: <201104111549.33581.gambas@...1...> References: <201104111549.33581.gambas@...1...> Message-ID: <20110413163950.M60622@...951...> My opinion: Gambas can store date format internally however Benoit decides. Here in North America, every uses MM-DD-YYYY This is a (human) standard here because we would say April 13, 2011 which is the same order. The Canadian government uses YYYY-MM-DD. If you have dates as a string for sorting and comparing, then YYYY-MM-DD works great. mySQL's default is YYYY-MM-DD. If dates are stored as an float (like VB did) then it works too. If dates are stored like an int then it would work too. Most importantly, the computer does it whatever we want it to do. So, create programs for humans to present dates and times most convenient...to the user. Don't program for convenience. It makes for a bad program Make programs for date locale and make humans happy. -Fernando ---------- Original Message ----------- From: Beno?t Minisini To: mailing list for gambas users Sent: Mon, 11 Apr 2011 15:49:33 +0200 Subject: Re: [Gambas-user] Should not we follow the ISO 8601 standard? > > Hi! I was read an article about ISO 8601, and think...?Date of Gambas don't > > follow this! > > > > Print Now ----> 04/11/2011 06:12:18 > > > > But the standard dictates otherwise: the format is YYYY-MM-DD. > > > > It's a problem, or is you are indifferent at this standard? > > > > Well, if you not known this standard, you can read this article in > > Wikipedia: http://en.wikipedia.org/wiki/ISO_8601 > > > > Regards, > > Print and Str() returns the date in the format defined by the current > localization. > > CStr() returns the date in the US format. > > If you want the ISO 8601 format, you have to play with the Format$() function. > > Regards, > > -- > Beno?t Minisini > > ------------------------------------------------------------------------------ > 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 at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user ------- End of Original Message ------- From jussi.lahtinen at ...626... Wed Apr 13 19:36:39 2011 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Wed, 13 Apr 2011 20:36:39 +0300 Subject: [Gambas-user] Gambas 3 revision 3762 doesn't compile! In-Reply-To: <201104131839.01646.lordheavym@...626...> References: <201104131839.01646.lordheavym@...626...> Message-ID: Works, thanks! Jussi On Wed, Apr 13, 2011 at 19:39, Laurent Carlier wrote: > Le mercredi 13 avril 2011 17:14:18, Jussi Lahtinen a ?crit : > > Hi! > > > > Need for full output of configure and make? > > > > gtools.cpp: In function ?void gt_drawable_fill(GdkDrawable*, gColor, > > GdkGC*)?: > > gtools.cpp:1167: error: ?gdk_window_get_width? was not declared in this > > scope > > gtools.cpp:1168: error: ?gdk_window_get_height? was not declared in this > > scope > > make[4]: *** [gtools.lo] Error 1 > > make[4]: Leaving directory `/home/jussiemmi/trunk/gb.gtk/src' > > make[3]: *** [all-recursive] Error 1 > > make[3]: Leaving directory `/home/jussiemmi/trunk/gb.gtk' > > make[2]: *** [all] Error 2 > > make[2]: Leaving directory `/home/jussiemmi/trunk/gb.gtk' > > make[1]: *** [all-recursive] Error 1 > > make[1]: Leaving directory `/home/jussiemmi/trunk' > > make: *** [all] Error 2 > > > > > > @ Ubuntu 10.10 64bit > > > > Jussi > > It should be fixed in rev3763 > > ++ > > > ------------------------------------------------------------------------------ > Forrester Wave Report - Recovery time is now measured in hours and minutes > not days. Key insights are discussed in the 2010 Forrester Wave Report as > part of an in-depth evaluation of disaster recovery service providers. > Forrester found the best-in-class provider in terms of services and vision. > Read this report now! http://p.sf.net/sfu/ibm-webcastpromo > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From jussi.lahtinen at ...626... Wed Apr 13 21:06:22 2011 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Wed, 13 Apr 2011 22:06:22 +0300 Subject: [Gambas-user] Freezing with exported classes! Message-ID: Hi! See attachment. Gambas 3 rev 3763 @ Ubuntu 10.10 64bit Jussi -------------- next part -------------- A non-text attachment was scrubbed... Name: testi-0.0.1.tar.gz Type: application/x-gzip Size: 4968 bytes Desc: not available URL: From jussi.lahtinen at ...626... Wed Apr 13 21:13:40 2011 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Wed, 13 Apr 2011 22:13:40 +0300 Subject: [Gambas-user] Freezing with exported classes! In-Reply-To: References: Message-ID: CSymbolInfo > GetSignature Do If Not hClass.Parent Then Break *<--- Happens here! For some reason .Parent gets name of class, don't understand why... * hClass = CComponent.GetClassDescription(hClass.ParentComponent &/ hClass.Parent) 'hClass = CComponent.Classes[hClass.ParentComponent &/ hClass.Parent] hSym = hClass.Symbols["_new"] If hSym Then sSign = MergeSignature(sSign, hClass.Symbols["_new"].GetNativeSignature()) Loop Jussi On Wed, Apr 13, 2011 at 22:06, Jussi Lahtinen wrote: > Hi! > See attachment. > > Gambas 3 rev 3763 @ Ubuntu 10.10 64bit > Jussi > > From gambas at ...1... Thu Apr 14 01:38:14 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Thu, 14 Apr 2011 01:38:14 +0200 Subject: [Gambas-user] Freezing with exported classes! In-Reply-To: References: Message-ID: <201104140138.14580.gambas@...1...> > CSymbolInfo > GetSignature > > Do > > If Not hClass.Parent Then Break *<--- Happens here! For some reason > .Parent gets name of class, don't understand why... > * > hClass = CComponent.GetClassDescription(hClass.ParentComponent &/ > hClass.Parent) > 'hClass = CComponent.Classes[hClass.ParentComponent &/ hClass.Parent] > hSym = hClass.Symbols["_new"] > If hSym Then sSign = MergeSignature(sSign, > hClass.Symbols["_new"].GetNativeSignature()) > Loop > > > Jussi > It should be fixed in revision #3764. Regards, -- Beno?t Minisini From support at ...2529... Thu Apr 14 07:24:57 2011 From: support at ...2529... (John Spikowski) Date: Wed, 13 Apr 2011 22:24:57 -0700 Subject: [Gambas-user] Gambas Script Message-ID: <1302758697.2642.9.camel@...2530...> What files / dependencies would be needed if I wanted to use gbs as a general purpose scripting language? I would like to use the MySQL and cURL extensions as well. (console mode utilities) From wig at ...1809... Thu Apr 14 13:07:12 2011 From: wig at ...1809... (wig) Date: Thu, 14 Apr 2011 13:07:12 +0200 Subject: [Gambas-user] Gambas on Suse 11.4 In-Reply-To: <4DA347E6.8070502@...221...> References: <1302353878.2523.4.camel@...2573...> <4DA347E6.8070502@...221...> Message-ID: <201104141307.12376.wig@...1809...> It was said Gambas doesn't work in openSuse 11.4 and 11.3: 11.3 I can confirm that it does on 11.3. Ik have 11.3 on my laptop with Gambas 2.21. As far as I remember, I added the "Educational" repository in openSuse's packet manager. Then you can add software, look for gambas2 or gb2. Maybe I installed some KDE3 packages before, or -for some other software- let it install by the packet manager. 11.4 In 11.4, I also added the Educational repository, Searched for gambas and choose gambas2 in the package manager, but that gives error on libstdc++ in the packet manager (although it is installed in version libstdc++45). Ik just let the package manager ignore the error and Gambas2 (version 2.2) can start up and run a smal test with a form + a button to close the form - did not yet try more like running existing projects though. There is a Thread on forums.opensuse.org where Capodastro says that he had problems with Gambas and other things in 11.4, but he got around it: that everything worked when he upgraded from 11.3 to 11.4. Greetings, Wim On Monday 11 April 2011 20:26:46 Matti wrote: > I think Jussi is right about the missing requirements. > Here are two screenshots of my YaST. Check if you have installed those > things. I have SuSE 11.2 with qt4 here, and Gambas 2 and 3 are running > without problems. > > Matti > > Am 11.04.2011 16:54, schrieb Jussi Lahtinen: > > You are missing a lot of things, though they all may be optional... > > Do you have "libqt4-devel" installed? Maybe SuSE has also separated > > package for qt4 webkit. > > And I recommend to install "libffi.so". > > > > Jussi From ulusoyab at ...43... Thu Apr 14 14:03:30 2011 From: ulusoyab at ...43... (abdurrahman ulusoy) Date: Thu, 14 Apr 2011 05:03:30 -0700 (PDT) Subject: [Gambas-user] gbs problem Message-ID: <90164.37387.qm@...2242...> Hello i need to gbs file generator. so i prepared attached file. My problem. In gbs file , i can add button, textboxes ... but i cant link button to textbox or others.? I cant change textbox text when i click a button ... i add a video to below link. see please. http://dl.dropbox.com/u/24455322/projeler/Videolar/visualmacro.ogv ulusoyab -------------- next part -------------- A non-text attachment was scrubbed... Name: visualmacro-0.1.4773.tar.gz Type: application/x-gzip Size: 28616 bytes Desc: not available URL: From steven at ...1652... Thu Apr 14 16:40:09 2011 From: steven at ...1652... (Steven Lobbezoo) Date: Thu, 14 Apr 2011 16:40:09 +0200 Subject: [Gambas-user] Gambas on Suse 11.4 In-Reply-To: <201104141307.12376.wig@...1809...> References: <1302353878.2523.4.camel@...2573...> <4DA347E6.8070502@...221...> <201104141307.12376.wig@...1809...> Message-ID: <1302792009.6104.30.camel@...2578...> Hi, I tried that repository for 11.4. Installed all that has gambas2 in it. And it works ! Get no error on libstdc++ Maybe because I already installed qt3 complete. Thanks, Steven Le jeudi 14 avril 2011 ? 13:07 +0200, wig a ?crit : > It was said Gambas doesn't work in openSuse 11.4 and 11.3: > > 11.3 > > I can confirm that it does on 11.3. > Ik have 11.3 on my laptop with Gambas 2.21. > > As far as I remember, I added the "Educational" repository in openSuse's > packet manager. > > Then you can add software, look for gambas2 or gb2. > > Maybe I installed some KDE3 packages before, or -for some other software- let > it install by the packet manager. > > 11.4 > > In 11.4, I also added the Educational repository, Searched for gambas and > choose gambas2 in the package manager, but that gives error on libstdc++ in > the packet manager (although it is installed in version libstdc++45). > > Ik just let the package manager ignore the error and Gambas2 (version 2.2) can > start up and run a smal test with a form + a button to close the form - did > not yet try more like running existing projects though. > > There is a Thread on forums.opensuse.org where Capodastro says that he had > problems with Gambas and other things in 11.4, but he got around it: that > everything worked when he upgraded from 11.3 to 11.4. > > Greetings, > > Wim > > On Monday 11 April 2011 20:26:46 Matti wrote: > > I think Jussi is right about the missing requirements. > > Here are two screenshots of my YaST. Check if you have installed those > > things. I have SuSE 11.2 with qt4 here, and Gambas 2 and 3 are running > > without problems. > > > > Matti > > > > Am 11.04.2011 16:54, schrieb Jussi Lahtinen: > > > You are missing a lot of things, though they all may be optional... > > > Do you have "libqt4-devel" installed? Maybe SuSE has also separated > > > package for qt4 webkit. > > > And I recommend to install "libffi.so". > > > > > > Jussi > > > > ------------------------------------------------------------------------------ > Benefiting from Server Virtualization: Beyond Initial Workload > Consolidation -- Increasing the use of server virtualization is a top > priority.Virtualization can reduce costs, simplify management, and improve > application availability and disaster protection. Learn more about boosting > the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From girardhenri at ...67... Thu Apr 14 17:30:37 2011 From: girardhenri at ...67... (Girard Henri) Date: Thu, 14 Apr 2011 17:30:37 +0200 Subject: [Gambas-user] Gambas on Suse 11.4 In-Reply-To: <1302792009.6104.30.camel@...2578...> References: <1302353878.2523.4.camel@...2573...> <4DA347E6.8070502@...221...> <201104141307.12376.wig@...1809...> <1302792009.6104.30.camel@...2578...> Message-ID: compilation gambas3 on 11.4 : No more problems. Le jeudi 14 avril 2011 ? 16:40 +0200, Steven Lobbezoo a ?crit : > Hi, > > I tried that repository for 11.4. > Installed all that has gambas2 in it. > > And it works ! > Get no error on libstdc++ > Maybe because I already installed qt3 complete. > > Thanks, > Steven > > > > Le jeudi 14 avril 2011 ? 13:07 +0200, wig a ?crit : > > > It was said Gambas doesn't work in openSuse 11.4 and 11.3: > > > > 11.3 > > > > I can confirm that it does on 11.3. > > Ik have 11.3 on my laptop with Gambas 2.21. > > > > As far as I remember, I added the "Educational" repository in openSuse's > > packet manager. > > > > Then you can add software, look for gambas2 or gb2. > > > > Maybe I installed some KDE3 packages before, or -for some other software- let > > it install by the packet manager. > > > > 11.4 > > > > In 11.4, I also added the Educational repository, Searched for gambas and > > choose gambas2 in the package manager, but that gives error on libstdc++ in > > the packet manager (although it is installed in version libstdc++45). > > > > Ik just let the package manager ignore the error and Gambas2 (version 2.2) can > > start up and run a smal test with a form + a button to close the form - did > > not yet try more like running existing projects though. > > > > There is a Thread on forums.opensuse.org where Capodastro says that he had > > problems with Gambas and other things in 11.4, but he got around it: that > > everything worked when he upgraded from 11.3 to 11.4. > > > > Greetings, > > > > Wim > > > > On Monday 11 April 2011 20:26:46 Matti wrote: > > > I think Jussi is right about the missing requirements. > > > Here are two screenshots of my YaST. Check if you have installed those > > > things. I have SuSE 11.2 with qt4 here, and Gambas 2 and 3 are running > > > without problems. > > > > > > Matti > > > > > > Am 11.04.2011 16:54, schrieb Jussi Lahtinen: > > > > You are missing a lot of things, though they all may be optional... > > > > Do you have "libqt4-devel" installed? Maybe SuSE has also separated > > > > package for qt4 webkit. > > > > And I recommend to install "libffi.so". > > > > > > > > Jussi > > > > > > > > ------------------------------------------------------------------------------ > > Benefiting from Server Virtualization: Beyond Initial Workload > > Consolidation -- Increasing the use of server virtualization is a top > > priority.Virtualization can reduce costs, simplify management, and improve > > application availability and disaster protection. Learn more about boosting > > the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > ------------------------------------------------------------------------------ > Benefiting from Server Virtualization: Beyond Initial Workload > Consolidation -- Increasing the use of server virtualization is a top > priority.Virtualization can reduce costs, simplify management, and improve > application availability and disaster protection. Learn more about boosting > the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From gambas at ...1... Thu Apr 14 23:34:03 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Thu, 14 Apr 2011 23:34:03 +0200 Subject: [Gambas-user] gbs problem In-Reply-To: <90164.37387.qm@...2242...> References: <90164.37387.qm@...2242...> Message-ID: <201104142334.03990.gambas@...1...> > Hello > i need to gbs file generator. so i prepared attached file. > > My problem. In gbs file , i can add button, textboxes ... but i cant link > button to textbox or others. I cant change textbox text when i click a > button ... i add a video to below link. see please. > > http://dl.dropbox.com/u/24455322/projeler/Videolar/visualmacro.ogv > > ulusoyab Sorry, without more information, I understand nothing: what do you want to achieve? What is the problem precisely? -- Beno?t Minisini From gambas at ...1... Fri Apr 15 01:27:12 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Fri, 15 Apr 2011 01:27:12 +0200 Subject: [Gambas-user] Global search & replace In-Reply-To: <201104131414.06919.rterry@...1946...> References: <201104102144.04319.rterry@...1946...> <201104121241.20787.gambas@...1...> <201104131414.06919.rterry@...1946...> Message-ID: <201104150127.12982.gambas@...1...> > On Tuesday 12 April 2011 20:41:20 Beno?t Minisini wrote: > > > On Sunday 10 April 2011 22:17:20 Olivier Cruilles wrote: > > > Thanks, I'll try that, but I would have thought the gambas editor > > > should accomodate global replaces. > > > > > > Regards > > > > > > Richard > > > > Global replace was added in revision #3753. > > > > To activate it, you must check the "Replace all" entry in the menu of the > > "Browse" MenuButton, just before starting browsing. > > That's a bit cryptic Benoit, there is room under the current procedure > chekbox for a 'whole project' checkbox. > > REgards > > richard > The global search & replace GUI should be simpler in revision #3765. Regards, -- Beno?t Minisini From rterry at ...1946... Fri Apr 15 04:58:30 2011 From: rterry at ...1946... (richard terry) Date: Fri, 15 Apr 2011 12:58:30 +1000 Subject: [Gambas-user] Webview popup menu question Message-ID: <201104151258.30447.rterry@...1946...> I've noticed that webview has some sort of built in menu options for example when you right mouse click over an image, you get the options to save image open, copy . I wondered how in code this was accessed, as I have a use for this. Regards richard From rterry at ...1946... Fri Apr 15 05:15:44 2011 From: rterry at ...1946... (richard terry) Date: Fri, 15 Apr 2011 13:15:44 +1000 Subject: [Gambas-user] an "Is this possible question" about images Message-ID: <201104151315.44281.rterry@...1946...> Hi List, Don't know much about the workings of graphic stuff so i wondered if this scenario was technically possible in gambas, but first the real life analogy. Let say you have a photograph and you have a hand-held magnifying glass, you run it over the fine print and you see what is magnified in the glass. Could this be done in gambas ie - having an image you've loaded into say a picture box, then, sort of like when you are in an image editor - select a tool and when you run that tool over the image it shows what's underneath?? Any thoughts/help appreciated. Richard From support at ...2529... Fri Apr 15 05:41:27 2011 From: support at ...2529... (John Spikowski) Date: Thu, 14 Apr 2011 20:41:27 -0700 Subject: [Gambas-user] an "Is this possible question" about images In-Reply-To: <201104151315.44281.rterry@...1946...> References: <201104151315.44281.rterry@...1946...> Message-ID: <1302838887.2384.41.camel@...2530...> On Fri, 2011-04-15 at 13:15 +1000, richard terry wrote: > Let say you have a photograph and you have a hand-held magnifying glass, you > run it over the fine print and you see what is magnified in the glass. I have seen that concept on a Qt Mobile version of Maemo 5. http://www.youtube.com/v/fw-c8iHZBd4&hl=en_US&feature=player_embedded&version=3 From rterry at ...1946... Fri Apr 15 05:48:33 2011 From: rterry at ...1946... (richard terry) Date: Fri, 15 Apr 2011 13:48:33 +1000 Subject: [Gambas-user] an "Is this possible question" about images In-Reply-To: <1302838887.2384.41.camel@...2530...> References: <201104151315.44281.rterry@...1946...> <1302838887.2384.41.camel@...2530...> Message-ID: <201104151348.34025.rterry@...1946...> On Friday 15 April 2011 13:41:27 John Spikowski wrote: > On Fri, 2011-04-15 at 13:15 +1000, richard terry wrote: > > Let say you have a photograph and you have a hand-held magnifying glass, > > you run it over the fine print and you see what is magnified in the > > glass. > > I have seen that concept on a Qt Mobile version of Maemo 5. thanks, I was wondering if it was possible in Gambas code, if anyone knew how to do it. regards richard > > http://www.youtube.com/v/fw-c8iHZBd4&hl=en_US&feature=player_embedded&versi > on=3 > > > > > --------------------------------------------------------------------------- > --- Benefiting from Server Virtualization: Beyond Initial Workload > Consolidation -- Increasing the use of server virtualization is a top > priority.Virtualization can reduce costs, simplify management, and improve > application availability and disaster protection. Learn more about boosting > the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From kevinfishburne at ...1887... Fri Apr 15 06:05:21 2011 From: kevinfishburne at ...1887... (Kevin Fishburne) Date: Fri, 15 Apr 2011 00:05:21 -0400 Subject: [Gambas-user] an "Is this possible question" about images In-Reply-To: <201104151348.34025.rterry@...1946...> References: <201104151315.44281.rterry@...1946...> <1302838887.2384.41.camel@...2530...> <201104151348.34025.rterry@...1946...> Message-ID: <4DA7C401.50206@...1887...> On 04/14/2011 11:48 PM, richard terry wrote: > On Friday 15 April 2011 13:41:27 John Spikowski wrote: >> On Fri, 2011-04-15 at 13:15 +1000, richard terry wrote: >>> Let say you have a photograph and you have a hand-held magnifying glass, >>> you run it over the fine print and you see what is magnified in the >>> glass. > Do you need it to look like a fisheye-style lens effect, or just box-zoom an area? If the latter this can be done easily in gb code. Creating the lens effect like in the video would probably have to be done manually with some algorithm. I found some info here if you do need the fisheye effect: http://en.wikipedia.org/wiki/Fisheye_lens The formulas are near the bottom, but I don't know if they're really helpful. -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sales at ...1887... phone: (770) 853-6271 From rterry at ...1946... Fri Apr 15 06:47:07 2011 From: rterry at ...1946... (richard terry) Date: Fri, 15 Apr 2011 14:47:07 +1000 Subject: [Gambas-user] an "Is this possible question" about images In-Reply-To: <4DA7C401.50206@...1887...> References: <201104151315.44281.rterry@...1946...> <201104151348.34025.rterry@...1946...> <4DA7C401.50206@...1887...> Message-ID: <201104151447.07856.rterry@...1946...> On Friday 15 April 2011 14:05:21 Kevin Fishburne wrote: > On 04/14/2011 11:48 PM, richard terry wrote: > > On Friday 15 April 2011 13:41:27 John Spikowski wrote: > >> On Fri, 2011-04-15 at 13:15 +1000, richard terry wrote: > >>> Let say you have a photograph and you have a hand-held magnifying > >>> glass, you run it over the fine print and you see what is magnified in > >>> the glass. > > Do you need it to look like a fisheye-style lens effect, or just > box-zoom an area? If the latter this can be done easily in gb code. Just the box-zoom . Any change of you giving me a helping hand? I've not done anything much with images or drawing. I'll mail you a sample png if you want - the purpose here is to magnify areas of either skin, xray films or dermatascope images - all are images at the end of the day. Its for our open - source medical records project that Ian and I are chuggling slowly along with - not releasable as yet by I'm hoping that by the end of 2011 it will be pretty much beta. Regards richard > Creating the lens effect like in the video would probably have to be > done manually with some algorithm. > > I found some info here if you do need the fisheye effect: > > http://en.wikipedia.org/wiki/Fisheye_lens > > The formulas are near the bottom, but I don't know if they're really > helpful. > From kevinfishburne at ...1887... Fri Apr 15 08:15:13 2011 From: kevinfishburne at ...1887... (Kevin Fishburne) Date: Fri, 15 Apr 2011 02:15:13 -0400 Subject: [Gambas-user] an "Is this possible question" about images In-Reply-To: <201104151447.07856.rterry@...1946...> References: <201104151315.44281.rterry@...1946...> <201104151348.34025.rterry@...1946...> <4DA7C401.50206@...1887...> <201104151447.07856.rterry@...1946...> Message-ID: <4DA7E271.1050202@...1887...> On 04/15/2011 12:47 AM, richard terry wrote: > >> Do you need it to look like a fisheye-style lens effect, or just >> box-zoom an area? If the latter this can be done easily in gb code. > > Just the box-zoom . > > Any change of you giving me a helping hand? I've not done anything much with > images or drawing. > > I'll mail you a sample png if you want - the purpose here is to magnify areas > of either skin, xray films or dermatascope images - all are images at the end > of the day. > > Its for our open - source medical records project that Ian and I are chuggling > slowly along with - not releasable as yet by I'm hoping that by the end of > 2011 it will be pretty much beta. > That is very cool. I'm doing a game so I know a little about images in gb. I'm going to assume that you're using Qt or GTK and not SDL or OpenGL, but correct me if I'm wrong. For those the easiest way to do graphics is with a DrawingArea control. After creating it on the form I'd change the Cached property to True so it will automatically redraw itself if something moves over it. You create image variables and load image files into them like this: Dim/Public someimage As Image someimage = Image.Load("FleshEatingVirusNooooo.jpg") You write images to the DrawingArea control like this: Draw.Begin(DrawingArea1) Draw.Image(someimage, X, Y, [Width, Height, SrcX, SrcY, SrcWidth, SrcHeight]) ' Add more "Draw.Image" statements here to composite additional images into the DrawingArea. Draw.End ' Commits the composition to the DrawingArea so that it may be seen. May need a "Wait" statement if done repeatedly. The [bracketed] parameters are optional. someimage is the source and the DrawingArea is the target. You can specify a subset of the source (the area to be zoomed) by playing with SrcX and SrcY (upper-left corner of source to be drawn) and SrcWidth and SrcHeight (width and height relative to SrcX and SrcY of source to be drawn). You can scale the source by playing with Width and Height. So that the source image writes to the DrawingArea don't leave a trail, I'd first draw the main (unzoomed) image to the DrawingArea, then draw the zoomed area onto that for each "frame" that you draw. The logic would go something like: ' Create your image variables. ' Load images into your image variables. Draw.Begin(DrawingAreaControlName) ' Draw the main image into the DrawingArea. ' Draw part of the main image into the DrawingArea adjusted by cursor position, zoom area size and zoom level. ' Draw text or whatever else you need to into the DrawingArea. Draw.End To draw text, which is really cool, you may do something like this inside the Draw.Begin/End: Draw.Foreground = Color.Black Draw.Text("Look, it's text on an image with a crappy shadow!!!", X, Y) Draw.Foreground = Color.White Draw.Text("Look, it's text on an image with a crappy shadow!!!", X + 1, Y - 1) I don't have any project examples that are simple enough to demonstrate this, but if you're really having trouble I could put something together. -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sales at ...1887... phone: (770) 853-6271 From eilert-sprachen at ...221... Fri Apr 15 08:33:37 2011 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Fri, 15 Apr 2011 08:33:37 +0200 Subject: [Gambas-user] an "Is this possible question" about images In-Reply-To: <4DA7E271.1050202@...1887...> References: <201104151315.44281.rterry@...1946...> <201104151348.34025.rterry@...1946...> <4DA7C401.50206@...1887...> <201104151447.07856.rterry@...1946...> <4DA7E271.1050202@...1887...> Message-ID: <4DA7E6C1.8070600@...221...> Am 15.04.2011 08:15, schrieb Kevin Fishburne: > On 04/15/2011 12:47 AM, richard terry wrote: >> >>> Do you need it to look like a fisheye-style lens effect, or just >>> box-zoom an area? If the latter this can be done easily in gb code. >> >> Just the box-zoom . >> >> Any change of you giving me a helping hand? I've not done anything much with >> images or drawing. >> >> I'll mail you a sample png if you want - the purpose here is to magnify areas >> of either skin, xray films or dermatascope images - all are images at the end >> of the day. >> >> Its for our open - source medical records project that Ian and I are chuggling >> slowly along with - not releasable as yet by I'm hoping that by the end of >> 2011 it will be pretty much beta. >> > > That is very cool. I'm doing a game so I know a little about images in gb. > > I'm going to assume that you're using Qt or GTK and not SDL or OpenGL, > but correct me if I'm wrong. For those the easiest way to do graphics is > with a DrawingArea control. After creating it on the form I'd change the > Cached property to True so it will automatically redraw itself if > something moves over it. > > You create image variables and load image files into them like this: > > Dim/Public someimage As Image > someimage = Image.Load("FleshEatingVirusNooooo.jpg") > > You write images to the DrawingArea control like this: > > Draw.Begin(DrawingArea1) > Draw.Image(someimage, X, Y, [Width, Height, SrcX, SrcY, SrcWidth, > SrcHeight]) > ' Add more "Draw.Image" statements here to composite additional > images into the DrawingArea. > Draw.End ' Commits the composition to the DrawingArea so that it may be > seen. May need a "Wait" statement if done repeatedly. > > The [bracketed] parameters are optional. someimage is the source and the > DrawingArea is the target. You can specify a subset of the source (the > area to be zoomed) by playing with SrcX and SrcY (upper-left corner of > source to be drawn) and SrcWidth and SrcHeight (width and height > relative to SrcX and SrcY of source to be drawn). You can scale the > source by playing with Width and Height. > > So that the source image writes to the DrawingArea don't leave a trail, > I'd first draw the main (unzoomed) image to the DrawingArea, then draw > the zoomed area onto that for each "frame" that you draw. The logic > would go something like: > > ' Create your image variables. > ' Load images into your image variables. > Draw.Begin(DrawingAreaControlName) > ' Draw the main image into the DrawingArea. > ' Draw part of the main image into the DrawingArea adjusted by cursor > position, zoom area size and zoom level. > ' Draw text or whatever else you need to into the DrawingArea. > Draw.End > > To draw text, which is really cool, you may do something like this > inside the Draw.Begin/End: > > Draw.Foreground = Color.Black > Draw.Text("Look, it's text on an image with a crappy shadow!!!", X, Y) > Draw.Foreground = Color.White > Draw.Text("Look, it's text on an image with a crappy shadow!!!", X + 1, > Y - 1) > > I don't have any project examples that are simple enough to demonstrate > this, but if you're really having trouble I could put something together. > In order to have a magnifying box, you could simply load the whole picture into two DrawingAreas which are in two separate windows: The background window shows the whole picture but in a smaller scale, the little foreground window as a magnifier with a large DrawingArea holds the complete picture in a 1:1 scale. This DrawingArea would have to be moved within its window proportionally to the moves over and the scale of the background picture. Hope I could make clear what I mean :-) Rolf From rterry at ...1946... Fri Apr 15 09:02:25 2011 From: rterry at ...1946... (richard terry) Date: Fri, 15 Apr 2011 17:02:25 +1000 Subject: [Gambas-user] an "Is this possible question" about images In-Reply-To: <4DA7E271.1050202@...1887...> References: <201104151315.44281.rterry@...1946...> <201104151447.07856.rterry@...1946...> <4DA7E271.1050202@...1887...> Message-ID: <201104151702.25917.rterry@...1946...> On Friday 15 April 2011 16:15:13 Kevin Fishburne wrote: Thanks, and to Rolf-Werner Eilert's reply, I'll take a look at these suggestions when I go home. I need a little 'side project' to stave off the bordum of the hum-drum debugging of the main project. Will post back my sucess or lack therof Regards Richard > On 04/15/2011 12:47 AM, richard terry wrote: > >> Do you need it to look like a fisheye-style lens effect, or just > >> box-zoom an area? If the latter this can be done easily in gb code. > > > > Just the box-zoom . > > > > Any change of you giving me a helping hand? I've not done anything much > > with images or drawing. > > > > I'll mail you a sample png if you want - the purpose here is to magnify > > areas of either skin, xray films or dermatascope images - all are images > > at the end of the day. > > > > Its for our open - source medical records project that Ian and I are > > chuggling slowly along with - not releasable as yet by I'm hoping that by > > the end of 2011 it will be pretty much beta. > > That is very cool. I'm doing a game so I know a little about images in gb. > > I'm going to assume that you're using Qt or GTK and not SDL or OpenGL, > but correct me if I'm wrong. For those the easiest way to do graphics is > with a DrawingArea control. After creating it on the form I'd change the > Cached property to True so it will automatically redraw itself if > something moves over it. > > You create image variables and load image files into them like this: > > Dim/Public someimage As Image > someimage = Image.Load("FleshEatingVirusNooooo.jpg") > > You write images to the DrawingArea control like this: > > Draw.Begin(DrawingArea1) > Draw.Image(someimage, X, Y, [Width, Height, SrcX, SrcY, SrcWidth, > SrcHeight]) > ' Add more "Draw.Image" statements here to composite additional > images into the DrawingArea. > Draw.End ' Commits the composition to the DrawingArea so that it may be > seen. May need a "Wait" statement if done repeatedly. > > The [bracketed] parameters are optional. someimage is the source and the > DrawingArea is the target. You can specify a subset of the source (the > area to be zoomed) by playing with SrcX and SrcY (upper-left corner of > source to be drawn) and SrcWidth and SrcHeight (width and height > relative to SrcX and SrcY of source to be drawn). You can scale the > source by playing with Width and Height. > > So that the source image writes to the DrawingArea don't leave a trail, > I'd first draw the main (unzoomed) image to the DrawingArea, then draw > the zoomed area onto that for each "frame" that you draw. The logic > would go something like: > > ' Create your image variables. > ' Load images into your image variables. > Draw.Begin(DrawingAreaControlName) > ' Draw the main image into the DrawingArea. > ' Draw part of the main image into the DrawingArea adjusted by cursor > position, zoom area size and zoom level. > ' Draw text or whatever else you need to into the DrawingArea. > Draw.End > > To draw text, which is really cool, you may do something like this > inside the Draw.Begin/End: > > Draw.Foreground = Color.Black > Draw.Text("Look, it's text on an image with a crappy shadow!!!", X, Y) > Draw.Foreground = Color.White > Draw.Text("Look, it's text on an image with a crappy shadow!!!", X + 1, > Y - 1) > > I don't have any project examples that are simple enough to demonstrate > this, but if you're really having trouble I could put something together. > From kevinfishburne at ...1887... Fri Apr 15 09:22:37 2011 From: kevinfishburne at ...1887... (Kevin Fishburne) Date: Fri, 15 Apr 2011 03:22:37 -0400 Subject: [Gambas-user] using a "file system database" Message-ID: <4DA7F23D.6070105@...1887...> I'm in the early phases of creating a "database" that uses the file system for data organization rather than a traditional software database such as MySQL, etc. I'm hoping that this could be faster since my requirements are very specific and (I think) don't need a general purpose database. I will have 4,194,304 "cells", each of which has about three datafiles that will need to be opened, read from, written to and closed regularly. I could consolidate the three files into one, reducing the number of files, but this would increase the amount of time taken to parse the files and slow the program significantly. I'm considering dividing them into hierarchies of directories to avoid having four to 16 million data files in the same directory. Initial tests hit file system (or file space, not sure yet) limits. Does anyone have any insights into the ext3/4 filesystem, possible alternate file systems, and databases to know what the best solution would be for this type of problem? Any insights into the most efficient way to create hierarchies of directories and files would be appreciated as well. -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sales at ...1887... phone: (770) 853-6271 From eilert-sprachen at ...221... Fri Apr 15 09:50:44 2011 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Fri, 15 Apr 2011 09:50:44 +0200 Subject: [Gambas-user] using a "file system database" In-Reply-To: <4DA7F23D.6070105@...1887...> References: <4DA7F23D.6070105@...1887...> Message-ID: <4DA7F8D4.7090809@...221...> Am 15.04.2011 09:22, schrieb Kevin Fishburne: > I'm in the early phases of creating a "database" that uses the file > system for data organization rather than a traditional software database > such as MySQL, etc. I'm hoping that this could be faster since my > requirements are very specific and (I think) don't need a general > purpose database. > > I will have 4,194,304 "cells", each of which has about three datafiles > that will need to be opened, read from, written to and closed regularly. > I could consolidate the three files into one, reducing the number of > files, but this would increase the amount of time taken to parse the > files and slow the program significantly. > > I'm considering dividing them into hierarchies of directories to avoid > having four to 16 million data files in the same directory. Initial > tests hit file system (or file space, not sure yet) limits. > > Does anyone have any insights into the ext3/4 filesystem, possible > alternate file systems, and databases to know what the best solution > would be for this type of problem? Any insights into the most efficient > way to create hierarchies of directories and files would be appreciated > as well. > Spontaneously, I know that when creating a filesystem you have the possibility of determining the sector size. As far as I read, people who know there will be a lot of very small files (especially when the file size is predictable) prefer to set a smaller sector size to avoid wasting space (may have been one reason in your test) and vice-versa. When you set up a system with default values, these are a compromise between efficiency and waste (if your sector size is too small and the files regularly are longer than that, you will waste space again and it costs a lot sector jumping time). My experience is that file systems are extremely efficient and fast under Linux. And they are intelligently cached which might be of help in your case. The more RAM you have the better here. Just my 2 cents ;-) Rolf From doriano.blengino at ...1909... Fri Apr 15 09:56:42 2011 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Fri, 15 Apr 2011 09:56:42 +0200 Subject: [Gambas-user] using a "file system database" In-Reply-To: <4DA7F23D.6070105@...1887...> References: <4DA7F23D.6070105@...1887...> Message-ID: <4DA7FA3A.7000209@...1909...> Kevin Fishburne ha scritto: > I'm in the early phases of creating a "database" that uses the file > system for data organization rather than a traditional software database > such as MySQL, etc. I'm hoping that this could be faster since my > requirements are very specific and (I think) don't need a general > purpose database. > > I will have 4,194,304 "cells", each of which has about three datafiles > that will need to be opened, read from, written to and closed regularly. > I could consolidate the three files into one, reducing the number of > files, but this would increase the amount of time taken to parse the > files and slow the program significantly. > > I'm considering dividing them into hierarchies of directories to avoid > having four to 16 million data files in the same directory. Initial > tests hit file system (or file space, not sure yet) limits. > > Does anyone have any insights into the ext3/4 filesystem, possible > alternate file systems, and databases to know what the best solution > would be for this type of problem? Any insights into the most efficient > way to create hierarchies of directories and files would be appreciated > as well. > > Very interesting problem. You could take a look at the Squid proxy, which has similar problems: how to cache files quickly. For the file system, the more sophisticated is, the more it is expensive to modify it; etx3/4 or reiserfs are journaled, so they are slower and heavier to manage. But it could be that a well-planned journaled fs is faster than a bad-planned non-journaled fs... On the other hand, the journaling should guarantee data solidity... don't know where you want to set a balance between speed and reliability. Some of them (or all of them) don't actually guarantee "data" reliability, but only metadata. 4M files are a lot. If you want speed, you should use them in binary format, coalesce some of them into one, and use seek() to navigate. Otherwise, the computer will spend more time in searching for a file than actually read it. How much big these files are? And can them be binary? Or at least some of them? Regards, Doriano From Gambas at ...1950... Fri Apr 15 10:33:03 2011 From: Gambas at ...1950... (Caveat) Date: Fri, 15 Apr 2011 10:33:03 +0200 Subject: [Gambas-user] using a "file system database" In-Reply-To: <4DA7F23D.6070105@...1887...> References: <4DA7F23D.6070105@...1887...> Message-ID: <1302856383.7968.14.camel@...2150...> Hi Kevin If you can find a way to talk to this database, it could provide just what you're looking for in terms of speed: http://hsqldb.org/ It's a SQL database, but it can be run entirely in RAM. I've used it before (although I don't recall using it from Gambas...yet!) and it's an amazing piece of work. 4M files sounds like a LOT of files, so it worries me that it'll prove too slow. I'm not convinced that using the file system would be any faster than using a 'proper' database. If you do go the fs route, there's some discussion here: http://fixunix.com/ubuntu/356538-filesystem-lots-small-files.html which may help. Regards, Caveat On Fri, 2011-04-15 at 03:22 -0400, Kevin Fishburne wrote: > I'm in the early phases of creating a "database" that uses the file > system for data organization rather than a traditional software database > such as MySQL, etc. I'm hoping that this could be faster since my > requirements are very specific and (I think) don't need a general > purpose database. > > I will have 4,194,304 "cells", each of which has about three datafiles > that will need to be opened, read from, written to and closed regularly. > I could consolidate the three files into one, reducing the number of > files, but this would increase the amount of time taken to parse the > files and slow the program significantly. > > I'm considering dividing them into hierarchies of directories to avoid > having four to 16 million data files in the same directory. Initial > tests hit file system (or file space, not sure yet) limits. > > Does anyone have any insights into the ext3/4 filesystem, possible > alternate file systems, and databases to know what the best solution > would be for this type of problem? Any insights into the most efficient > way to create hierarchies of directories and files would be appreciated > as well. > From nkoch22 at ...626... Fri Apr 15 14:40:27 2011 From: nkoch22 at ...626... (Nicolas Koch) Date: Fri, 15 Apr 2011 08:40:27 -0400 Subject: [Gambas-user] Gambas on Suse 11.4 In-Reply-To: References: <1302353878.2523.4.camel@...2573...> <4DA347E6.8070502@...221...> <201104141307.12376.wig@...1809...> <1302792009.6104.30.camel@...2578...> Message-ID: I have had 11.3 and then went to 11.4 when it first came out. I have both Gambas 2.23 and Gambas RC1 running perfectly. On Thu, Apr 14, 2011 at 11:30 AM, Girard Henri wrote: > compilation gambas3 on 11.4 : No more problems. > > Le jeudi 14 avril 2011 ? 16:40 +0200, Steven Lobbezoo a ?crit : > > Hi, > > > > I tried that repository for 11.4. > > Installed all that has gambas2 in it. > > > > And it works ! > > Get no error on libstdc++ > > Maybe because I already installed qt3 complete. > > > > Thanks, > > Steven > > > > > > > > Le jeudi 14 avril 2011 ? 13:07 +0200, wig a ?crit : > > > > > It was said Gambas doesn't work in openSuse 11.4 and 11.3: > > > > > > 11.3 > > > > > > I can confirm that it does on 11.3. > > > Ik have 11.3 on my laptop with Gambas 2.21. > > > > > > As far as I remember, I added the "Educational" repository in > openSuse's > > > packet manager. > > > > > > Then you can add software, look for gambas2 or gb2. > > > > > > Maybe I installed some KDE3 packages before, or -for some other > software- let > > > it install by the packet manager. > > > > > > 11.4 > > > > > > In 11.4, I also added the Educational repository, Searched for gambas > and > > > choose gambas2 in the package manager, but that gives error on > libstdc++ in > > > the packet manager (although it is installed in version libstdc++45). > > > > > > Ik just let the package manager ignore the error and Gambas2 (version > 2.2) can > > > start up and run a smal test with a form + a button to close the form - > did > > > not yet try more like running existing projects though. > > > > > > There is a Thread on forums.opensuse.org where Capodastro says that he > had > > > problems with Gambas and other things in 11.4, but he got around it: > that > > > everything worked when he upgraded from 11.3 to 11.4. > > > > > > Greetings, > > > > > > Wim > > > > > > On Monday 11 April 2011 20:26:46 Matti wrote: > > > > I think Jussi is right about the missing requirements. > > > > Here are two screenshots of my YaST. Check if you have installed > those > > > > things. I have SuSE 11.2 with qt4 here, and Gambas 2 and 3 are > running > > > > without problems. > > > > > > > > Matti > > > > > > > > Am 11.04.2011 16:54, schrieb Jussi Lahtinen: > > > > > You are missing a lot of things, though they all may be optional... > > > > > Do you have "libqt4-devel" installed? Maybe SuSE has also separated > > > > > package for qt4 webkit. > > > > > And I recommend to install "libffi.so". > > > > > > > > > > Jussi > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > Benefiting from Server Virtualization: Beyond Initial Workload > > > Consolidation -- Increasing the use of server virtualization is a top > > > priority.Virtualization can reduce costs, simplify management, and > improve > > > application availability and disaster protection. Learn more about > boosting > > > the value of server virtualization. > http://p.sf.net/sfu/vmware-sfdev2dev > > > _______________________________________________ > > > Gambas-user mailing list > > > Gambas-user at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > ------------------------------------------------------------------------------ > > Benefiting from Server Virtualization: Beyond Initial Workload > > Consolidation -- Increasing the use of server virtualization is a top > > priority.Virtualization can reduce costs, simplify management, and > improve > > application availability and disaster protection. Learn more about > boosting > > the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > ------------------------------------------------------------------------------ > Benefiting from Server Virtualization: Beyond Initial Workload > Consolidation -- Increasing the use of server virtualization is a top > priority.Virtualization can reduce costs, simplify management, and improve > application availability and disaster protection. Learn more about boosting > the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- -Nick From rterry at ...1946... Fri Apr 15 14:58:00 2011 From: rterry at ...1946... (richard terry) Date: Fri, 15 Apr 2011 22:58:00 +1000 Subject: [Gambas-user] an "Is this possible question" about images In-Reply-To: <201104151702.25917.rterry@...1946...> References: <201104151315.44281.rterry@...1946...> <4DA7E271.1050202@...1887...> <201104151702.25917.rterry@...1946...> Message-ID: <201104152258.00272.rterry@...1946...> On Friday 15 April 2011 17:02:25 richard terry wrote: Hi Kevin/List, I took at quick look at this, but my lame brain never functions with basic mathematical problems, I enclose an embryonic code. This 'sort of' works, theres a drawing area into which I loaded the image of a shoulder Xray and then another on top which will be the magnifier. I put a couple of textboxes on it to change some of the internal values, but can't seem to figure out the magnification factors. If I click over this it does move around and magnify, albeit not lined up properly and sometimes it seems to get lost. It would be nice to have this be say a circle, with a border, and be accurate, maybe someone can modfy the code to make it work. Any help appreciated. > On Friday 15 April 2011 16:15:13 Kevin Fishburne wrote: > Thanks, and to Rolf-Werner Eilert's reply, I'll take a look at these > suggestions when I go home. > > I need a little 'side project' to stave off the bordum of the hum-drum > debugging of the main project. > > Will post back my sucess or lack therof > > Regards > > Richard > > > On 04/15/2011 12:47 AM, richard terry wrote: > > >> Do you need it to look like a fisheye-style lens effect, or just > > >> box-zoom an area? If the latter this can be done easily in gb code. > > > > > > Just the box-zoom . > > > > > > Any change of you giving me a helping hand? I've not done anything much > > > with images or drawing. > > > > > > I'll mail you a sample png if you want - the purpose here is to magnify > > > areas of either skin, xray films or dermatascope images - all are > > > images at the end of the day. > > > > > > Its for our open - source medical records project that Ian and I are > > > chuggling slowly along with - not releasable as yet by I'm hoping that > > > by the end of 2011 it will be pretty much beta. > > > > That is very cool. I'm doing a game so I know a little about images in > > gb. > > > > I'm going to assume that you're using Qt or GTK and not SDL or OpenGL, > > but correct me if I'm wrong. For those the easiest way to do graphics is > > with a DrawingArea control. After creating it on the form I'd change the > > Cached property to True so it will automatically redraw itself if > > something moves over it. > > > > You create image variables and load image files into them like this: > > > > Dim/Public someimage As Image > > someimage = Image.Load("FleshEatingVirusNooooo.jpg") > > > > You write images to the DrawingArea control like this: > > > > Draw.Begin(DrawingArea1) > > Draw.Image(someimage, X, Y, [Width, Height, SrcX, SrcY, SrcWidth, > > SrcHeight]) > > ' Add more "Draw.Image" statements here to composite additional > > images into the DrawingArea. > > Draw.End ' Commits the composition to the DrawingArea so that it may be > > seen. May need a "Wait" statement if done repeatedly. > > > > The [bracketed] parameters are optional. someimage is the source and the > > DrawingArea is the target. You can specify a subset of the source (the > > area to be zoomed) by playing with SrcX and SrcY (upper-left corner of > > source to be drawn) and SrcWidth and SrcHeight (width and height > > relative to SrcX and SrcY of source to be drawn). You can scale the > > source by playing with Width and Height. > > > > So that the source image writes to the DrawingArea don't leave a trail, > > I'd first draw the main (unzoomed) image to the DrawingArea, then draw > > the zoomed area onto that for each "frame" that you draw. The logic > > would go something like: > > > > ' Create your image variables. > > ' Load images into your image variables. > > Draw.Begin(DrawingAreaControlName) > > ' Draw the main image into the DrawingArea. > > ' Draw part of the main image into the DrawingArea adjusted by cursor > > position, zoom area size and zoom level. > > ' Draw text or whatever else you need to into the DrawingArea. > > Draw.End > > > > To draw text, which is really cool, you may do something like this > > inside the Draw.Begin/End: > > > > Draw.Foreground = Color.Black > > Draw.Text("Look, it's text on an image with a crappy shadow!!!", X, Y) > > Draw.Foreground = Color.White > > Draw.Text("Look, it's text on an image with a crappy shadow!!!", X + 1, > > Y - 1) > > > > I don't have any project examples that are simple enough to demonstrate > > this, but if you're really having trouble I could put something together. > > --------------------------------------------------------------------------- > --- Benefiting from Server Virtualization: Beyond Initial Workload > Consolidation -- Increasing the use of server virtualization is a top > priority.Virtualization can reduce costs, simplify management, and improve > application availability and disaster protection. Learn more about boosting > the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -------------- next part -------------- A non-text attachment was scrubbed... Name: magnify-0.0.1.tar.gz Type: application/x-compressed-tar Size: 130318 bytes Desc: not available URL: From gambas.fr at ...626... Fri Apr 15 15:56:30 2011 From: gambas.fr at ...626... (Fabien Bodard) Date: Fri, 15 Apr 2011 15:56:30 +0200 Subject: [Gambas-user] Gambas Script In-Reply-To: <1302758697.2642.9.camel@...2530...> References: <1302758697.2642.9.camel@...2530...> Message-ID: 2011/4/14 John Spikowski : > What files / dependencies would be ?needed if I wanted to use gbs as a > general purpose scripting language? I would like to use the MySQL and > cURL extensions as well. (console mode utilities) glibc mysqlclient libcurl and of course gambas3 interpreter and scripter > > > > > > > > > > > > ------------------------------------------------------------------------------ > Benefiting from Server Virtualization: Beyond Initial Workload > Consolidation -- Increasing the use of server virtualization is a top > priority.Virtualization can reduce costs, simplify management, and improve > application availability and disaster protection. Learn more about boosting > the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Fabien Bodard From shanep at ...2481... Fri Apr 15 16:23:47 2011 From: shanep at ...2481... (Shane Powell) Date: Sat, 16 Apr 2011 00:23:47 +1000 Subject: [Gambas-user] an "Is this possible question" about images In-Reply-To: <201104152258.00272.rterry@...1946...> References: <201104151315.44281.rterry@...1946...> <4DA7E271.1050202@...1887...> <201104151702.25917.rterry@...1946...> <201104152258.00272.rterry@...1946...> Message-ID: <4DA854F3.1050302@...2481...> On 15/04/11 22:58, richard terry wrote: > On Friday 15 April 2011 17:02:25 richard terry wrote: > Hi Kevin/List, > > I took at quick look at this, but my lame brain never functions with basic > mathematical problems, I enclose an embryonic code. > > This 'sort of' works, theres a drawing area into which I loaded the image of a > shoulder Xray and then another on top which will be the magnifier. I put a > couple of textboxes on it to change some of the internal values, but can't > seem to figure out the magnification factors. > > If I click over this it does move around and magnify, albeit not lined up > properly and sometimes it seems to get lost. It would be nice to have this be > say a circle, with a border, and be accurate, maybe someone can modfy the code > to make it work. > > Any help appreciated. > > >> On Friday 15 April 2011 16:15:13 Kevin Fishburne wrote: >> Thanks, and to Rolf-Werner Eilert's reply, I'll take a look at these >> suggestions when I go home. >> >> I need a little 'side project' to stave off the bordum of the hum-drum >> debugging of the main project. >> >> Will post back my sucess or lack therof >> >> Regards >> >> Richard >> >>> On 04/15/2011 12:47 AM, richard terry wrote: >>>>> Do you need it to look like a fisheye-style lens effect, or just >>>>> box-zoom an area? If the latter this can be done easily in gb code. >>>> Just the box-zoom . >>>> >>>> Any change of you giving me a helping hand? I've not done anything much >>>> with images or drawing. >>>> >>>> I'll mail you a sample png if you want - the purpose here is to magnify >>>> areas of either skin, xray films or dermatascope images - all are >>>> images at the end of the day. >>>> >>>> Its for our open - source medical records project that Ian and I are >>>> chuggling slowly along with - not releasable as yet by I'm hoping that >>>> by the end of 2011 it will be pretty much beta. >>> That is very cool. I'm doing a game so I know a little about images in >>> gb. >>> >>> I'm going to assume that you're using Qt or GTK and not SDL or OpenGL, >>> but correct me if I'm wrong. For those the easiest way to do graphics is >>> with a DrawingArea control. After creating it on the form I'd change the >>> Cached property to True so it will automatically redraw itself if >>> something moves over it. >>> >>> You create image variables and load image files into them like this: >>> >>> Dim/Public someimage As Image >>> someimage = Image.Load("FleshEatingVirusNooooo.jpg") >>> >>> You write images to the DrawingArea control like this: >>> >>> Draw.Begin(DrawingArea1) >>> Draw.Image(someimage, X, Y, [Width, Height, SrcX, SrcY, SrcWidth, >>> SrcHeight]) >>> ' Add more "Draw.Image" statements here to composite additional >>> images into the DrawingArea. >>> Draw.End ' Commits the composition to the DrawingArea so that it may be >>> seen. May need a "Wait" statement if done repeatedly. >>> >>> The [bracketed] parameters are optional. someimage is the source and the >>> DrawingArea is the target. You can specify a subset of the source (the >>> area to be zoomed) by playing with SrcX and SrcY (upper-left corner of >>> source to be drawn) and SrcWidth and SrcHeight (width and height >>> relative to SrcX and SrcY of source to be drawn). You can scale the >>> source by playing with Width and Height. >>> >>> So that the source image writes to the DrawingArea don't leave a trail, >>> I'd first draw the main (unzoomed) image to the DrawingArea, then draw >>> the zoomed area onto that for each "frame" that you draw. The logic >>> would go something like: >>> >>> ' Create your image variables. >>> ' Load images into your image variables. >>> Draw.Begin(DrawingAreaControlName) >>> ' Draw the main image into the DrawingArea. >>> ' Draw part of the main image into the DrawingArea adjusted by cursor >>> position, zoom area size and zoom level. >>> ' Draw text or whatever else you need to into the DrawingArea. >>> Draw.End >>> >>> To draw text, which is really cool, you may do something like this >>> inside the Draw.Begin/End: >>> >>> Draw.Foreground = Color.Black >>> Draw.Text("Look, it's text on an image with a crappy shadow!!!", X, Y) >>> Draw.Foreground = Color.White >>> Draw.Text("Look, it's text on an image with a crappy shadow!!!", X + 1, >>> Y - 1) >>> >>> I don't have any project examples that are simple enough to demonstrate >>> this, but if you're really having trouble I could put something together. >> --------------------------------------------------------------------------- >> --- Benefiting from Server Virtualization: Beyond Initial Workload >> Consolidation -- Increasing the use of server virtualization is a top >> priority.Virtualization can reduce costs, simplify management, and improve >> application availability and disaster protection. Learn more about boosting >> the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> >> >> >> ------------------------------------------------------------------------------ >> Benefiting from Server Virtualization: Beyond Initial Workload >> Consolidation -- Increasing the use of server virtualization is a top >> priority.Virtualization can reduce costs, simplify management, and improve >> application availability and disaster protection. Learn more about boosting >> the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev >> >> >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user this is how i would do it when the mouse cursor get to the right or the bottom of the image it starts to strech but you could just limit the mouse travel and the rest you could make how you wanted easy i think hope it helps -------------- next part -------------- A non-text attachment was scrubbed... Name: Mag-0.0.1.tar.gz Type: application/x-gzip Size: 129814 bytes Desc: not available URL: From j-halverson at ...2576... Fri Apr 15 17:19:15 2011 From: j-halverson at ...2576... (Jeff Halverson) Date: Fri, 15 Apr 2011 23:19:15 +0800 Subject: [Gambas-user] Help to make on the fly pointer to various result sets In-Reply-To: <201104131050.05203.bbruen@...2308...> References: <1302652265.11033.2.camel@...2577...> <201104131050.05203.bbruen@...2308...> Message-ID: <1302880755.3221.2.camel@...2577...> By the way, where do you find information like this? After being informed of the wonderful Result[String] format, I exhaustively searched through the Gambas documentation and did not see any mention of it. Is this a new style that is not yet documented, of I have missed finding something in the documentation? Jeff H On Wed, 2011-04-13 at 10:50 +0930, Bruce Bruen wrote: > On Wednesday, April 13, 2011 09:21:05 AM Jeff Halverson wrote: > > I have something that is puzzling me that seems easy to do, but I can't > > figure it out... I was hoping somebody might be able to help. > > > > If I have the following available from a resultset: > > > > DataSummary!InvestmentName > > DataSummary!BrokerName > > DataSummary!ManagementCompanyName > > DataSummary!RegionName > > > > And I want to be able to use each of those fields above in a function, > > such as the example below: > > > > IF TextToSearchFor = DataSummary!RegionName THEN > > ' Do a bunch of stuff > > END IF > > > > Is there a way to replace the "DataSummary!RegionName" within the > > function with a variable that will evaluate to the resultset value? > > Maybe something like: > > > > FieldToSearchFor = "DataSummary!RegionName" > > IF TextToSearchFor = Evaluate(FieldToSearchFor) THEN > > ' Do a bunch of stuff > > END IF > > > > Obviously the above doesn't work, but is there some means in Gambas to > > achieve this result? > > > > Any help is greatly appreciately. > > > > Jeff H > > Tokyo > > --------------------------------------------------------------------------- > > --- Forrester Wave Report - Recovery time is now measured in hours and > > minutes not days. Key insights are discussed in the 2010 Forrester Wave > > Report as part of an in-depth evaluation of disaster recovery service > > providers. Forrester found the best-in-class provider in terms of services > > and vision. Read this report now! http://p.sf.net/sfu/ibm-webcastpromo > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > Sub Search(SearchCol as String) AS Whatever > ... > ...DataSummary[SearchCol]... > DoABunchOfStuff > > etc From Gambas at ...1950... Fri Apr 15 17:50:04 2011 From: Gambas at ...1950... (Caveat) Date: Fri, 15 Apr 2011 17:50:04 +0200 Subject: [Gambas-user] an "Is this possible question" about images In-Reply-To: <4DA854F3.1050302@...2481...> References: <201104151315.44281.rterry@...1946...> <4DA7E271.1050202@...1887...> <201104151702.25917.rterry@...1946...> <201104152258.00272.rterry@...1946...> <4DA854F3.1050302@...2481...> Message-ID: <1302882604.3729.3.camel@...2150...> Little helper boxes on the screen telling you where your magnifier is at :-D On Sat, 2011-04-16 at 00:23 +1000, Shane Powell wrote: > On 15/04/11 22:58, richard terry wrote: > > On Friday 15 April 2011 17:02:25 richard terry wrote: > > Hi Kevin/List, > > > > I took at quick look at this, but my lame brain never functions with basic > > mathematical problems, I enclose an embryonic code. > > > > This 'sort of' works, theres a drawing area into which I loaded the image of a > > shoulder Xray and then another on top which will be the magnifier. I put a > > couple of textboxes on it to change some of the internal values, but can't > > seem to figure out the magnification factors. > > > > If I click over this it does move around and magnify, albeit not lined up > > properly and sometimes it seems to get lost. It would be nice to have this be > > say a circle, with a border, and be accurate, maybe someone can modfy the code > > to make it work. > > > > Any help appreciated. > > > > > >> On Friday 15 April 2011 16:15:13 Kevin Fishburne wrote: > >> Thanks, and to Rolf-Werner Eilert's reply, I'll take a look at these > >> suggestions when I go home. > >> > >> I need a little 'side project' to stave off the bordum of the hum-drum > >> debugging of the main project. > >> > >> Will post back my sucess or lack therof > >> > >> Regards > >> > >> Richard > >> > >>> On 04/15/2011 12:47 AM, richard terry wrote: > >>>>> Do you need it to look like a fisheye-style lens effect, or just > >>>>> box-zoom an area? If the latter this can be done easily in gb code. > >>>> Just the box-zoom . > >>>> > >>>> Any change of you giving me a helping hand? I've not done anything much > >>>> with images or drawing. > >>>> > >>>> I'll mail you a sample png if you want - the purpose here is to magnify > >>>> areas of either skin, xray films or dermatascope images - all are > >>>> images at the end of the day. > >>>> > >>>> Its for our open - source medical records project that Ian and I are > >>>> chuggling slowly along with - not releasable as yet by I'm hoping that > >>>> by the end of 2011 it will be pretty much beta. > >>> That is very cool. I'm doing a game so I know a little about images in > >>> gb. > >>> > >>> I'm going to assume that you're using Qt or GTK and not SDL or OpenGL, > >>> but correct me if I'm wrong. For those the easiest way to do graphics is > >>> with a DrawingArea control. After creating it on the form I'd change the > >>> Cached property to True so it will automatically redraw itself if > >>> something moves over it. > >>> > >>> You create image variables and load image files into them like this: > >>> > >>> Dim/Public someimage As Image > >>> someimage = Image.Load("FleshEatingVirusNooooo.jpg") > >>> > >>> You write images to the DrawingArea control like this: > >>> > >>> Draw.Begin(DrawingArea1) > >>> Draw.Image(someimage, X, Y, [Width, Height, SrcX, SrcY, SrcWidth, > >>> SrcHeight]) > >>> ' Add more "Draw.Image" statements here to composite additional > >>> images into the DrawingArea. > >>> Draw.End ' Commits the composition to the DrawingArea so that it may be > >>> seen. May need a "Wait" statement if done repeatedly. > >>> > >>> The [bracketed] parameters are optional. someimage is the source and the > >>> DrawingArea is the target. You can specify a subset of the source (the > >>> area to be zoomed) by playing with SrcX and SrcY (upper-left corner of > >>> source to be drawn) and SrcWidth and SrcHeight (width and height > >>> relative to SrcX and SrcY of source to be drawn). You can scale the > >>> source by playing with Width and Height. > >>> > >>> So that the source image writes to the DrawingArea don't leave a trail, > >>> I'd first draw the main (unzoomed) image to the DrawingArea, then draw > >>> the zoomed area onto that for each "frame" that you draw. The logic > >>> would go something like: > >>> > >>> ' Create your image variables. > >>> ' Load images into your image variables. > >>> Draw.Begin(DrawingAreaControlName) > >>> ' Draw the main image into the DrawingArea. > >>> ' Draw part of the main image into the DrawingArea adjusted by cursor > >>> position, zoom area size and zoom level. > >>> ' Draw text or whatever else you need to into the DrawingArea. > >>> Draw.End > >>> > >>> To draw text, which is really cool, you may do something like this > >>> inside the Draw.Begin/End: > >>> > >>> Draw.Foreground = Color.Black > >>> Draw.Text("Look, it's text on an image with a crappy shadow!!!", X, Y) > >>> Draw.Foreground = Color.White > >>> Draw.Text("Look, it's text on an image with a crappy shadow!!!", X + 1, > >>> Y - 1) > >>> > >>> I don't have any project examples that are simple enough to demonstrate > >>> this, but if you're really having trouble I could put something together. > >> --------------------------------------------------------------------------- > >> --- Benefiting from Server Virtualization: Beyond Initial Workload > >> Consolidation -- Increasing the use of server virtualization is a top > >> priority.Virtualization can reduce costs, simplify management, and improve > >> application availability and disaster protection. Learn more about boosting > >> the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev > >> _______________________________________________ > >> Gambas-user mailing list > >> Gambas-user at lists.sourceforge.net > >> https://lists.sourceforge.net/lists/listinfo/gambas-user > >> > >> > >> > >> ------------------------------------------------------------------------------ > >> Benefiting from Server Virtualization: Beyond Initial Workload > >> Consolidation -- Increasing the use of server virtualization is a top > >> priority.Virtualization can reduce costs, simplify management, and improve > >> application availability and disaster protection. Learn more about boosting > >> the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev > >> > >> > >> _______________________________________________ > >> Gambas-user mailing list > >> Gambas-user at lists.sourceforge.net > >> https://lists.sourceforge.net/lists/listinfo/gambas-user > this is how i would do it when the mouse cursor get to the right or the > bottom of the image it starts to strech but you could just limit the > mouse travel and the rest you could make how you wanted easy i think > hope it helps > > ------------------------------------------------------------------------------ > Benefiting from Server Virtualization: Beyond Initial Workload > Consolidation -- Increasing the use of server virtualization is a top > priority.Virtualization can reduce costs, simplify management, and improve > application availability and disaster protection. Learn more about boosting > the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev > _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -------------- next part -------------- A non-text attachment was scrubbed... Name: mag.debug.tar Type: application/x-tar Size: 163840 bytes Desc: not available URL: From gambas at ...1... Fri Apr 15 18:04:35 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Fri, 15 Apr 2011 18:04:35 +0200 Subject: [Gambas-user] Help to make on the fly pointer to various result sets In-Reply-To: <1302880755.3221.2.camel@...2577...> References: <1302652265.11033.2.camel@...2577...> <201104131050.05203.bbruen@...2308...> <1302880755.3221.2.camel@...2577...> Message-ID: <201104151804.35381.gambas@...1...> > By the way, where do you find information like this? After being > informed of the wonderful Result[String] format, I exhaustively searched > through the Gambas documentation and did not see any mention of it. Is > this a new style that is not yet documented, of I have missed finding > something in the documentation? > xxx!yyy is just a shortcut for xxx["yyy"]. It is some syntactic sugar mainly coming from Visual Basic. And you see that Result has an array accessor in its wiki page ("This class acts like a read / write array.") Regards, -- Beno?t Minisini From gambas at ...1... Fri Apr 15 18:05:12 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Fri, 15 Apr 2011 18:05:12 +0200 Subject: [Gambas-user] IDE graphical bug In-Reply-To: References: Message-ID: <201104151805.12277.gambas@...1...> > Hi! > Following (see attachment) graphical bug appears when scrolling down with > editor. > > Gambas 3 rev 3755 @ Ubuntu 10.10 64bit > > Jussi It should be fixed in revision #3766. Regards, -- Beno?t Minisini From rterry at ...1946... Sat Apr 16 00:53:03 2011 From: rterry at ...1946... (richard terry) Date: Sat, 16 Apr 2011 08:53:03 +1000 Subject: [Gambas-user] an "Is this possible question" about images In-Reply-To: <4DA854F3.1050302@...2481...> References: <201104151315.44281.rterry@...1946...> <201104152258.00272.rterry@...1946...> <4DA854F3.1050302@...2481...> Message-ID: <201104160853.03478.rterry@...1946...> On Saturday 16 April 2011 00:23:47 Shane Powell wrote: Thanks heaps to shane, Caveat and all - I'll try a look at all this today and report back. Regards Richard > On 15/04/11 22:58, richard terry wrote: > > On Friday 15 April 2011 17:02:25 richard terry wrote: > > Hi Kevin/List, > > > > I took at quick look at this, but my lame brain never functions with > > basic mathematical problems, I enclose an embryonic code. > > > > This 'sort of' works, theres a drawing area into which I loaded the image > > of a shoulder Xray and then another on top which will be the magnifier. > > I put a couple of textboxes on it to change some of the internal values, > > but can't seem to figure out the magnification factors. > > > > If I click over this it does move around and magnify, albeit not lined up > > properly and sometimes it seems to get lost. It would be nice to have > > this be say a circle, with a border, and be accurate, maybe someone can > > modfy the code to make it work. > > > > Any help appreciated. > > > >> On Friday 15 April 2011 16:15:13 Kevin Fishburne wrote: > >> Thanks, and to Rolf-Werner Eilert's reply, I'll take a look at these > >> suggestions when I go home. > >> > >> I need a little 'side project' to stave off the bordum of the hum-drum > >> debugging of the main project. > >> > >> Will post back my sucess or lack therof > >> > >> Regards > >> > >> Richard > >> > >>> On 04/15/2011 12:47 AM, richard terry wrote: > >>>>> Do you need it to look like a fisheye-style lens effect, or just > >>>>> box-zoom an area? If the latter this can be done easily in gb code. > >>>> > >>>> Just the box-zoom . > >>>> > >>>> Any change of you giving me a helping hand? I've not done anything > >>>> much with images or drawing. > >>>> > >>>> I'll mail you a sample png if you want - the purpose here is to > >>>> magnify areas of either skin, xray films or dermatascope images - all > >>>> are images at the end of the day. > >>>> > >>>> Its for our open - source medical records project that Ian and I are > >>>> chuggling slowly along with - not releasable as yet by I'm hoping that > >>>> by the end of 2011 it will be pretty much beta. > >>> > >>> That is very cool. I'm doing a game so I know a little about images in > >>> gb. > >>> > >>> I'm going to assume that you're using Qt or GTK and not SDL or OpenGL, > >>> but correct me if I'm wrong. For those the easiest way to do graphics > >>> is with a DrawingArea control. After creating it on the form I'd change > >>> the Cached property to True so it will automatically redraw itself if > >>> something moves over it. > >>> > >>> You create image variables and load image files into them like this: > >>> > >>> Dim/Public someimage As Image > >>> someimage = Image.Load("FleshEatingVirusNooooo.jpg") > >>> > >>> You write images to the DrawingArea control like this: > >>> > >>> Draw.Begin(DrawingArea1) > >>> Draw.Image(someimage, X, Y, [Width, Height, SrcX, SrcY, SrcWidth, > >>> SrcHeight]) > >>> ' Add more "Draw.Image" statements here to composite additional > >>> images into the DrawingArea. > >>> Draw.End ' Commits the composition to the DrawingArea so that it may be > >>> seen. May need a "Wait" statement if done repeatedly. > >>> > >>> The [bracketed] parameters are optional. someimage is the source and > >>> the DrawingArea is the target. You can specify a subset of the source > >>> (the area to be zoomed) by playing with SrcX and SrcY (upper-left > >>> corner of source to be drawn) and SrcWidth and SrcHeight (width and > >>> height relative to SrcX and SrcY of source to be drawn). You can scale > >>> the source by playing with Width and Height. > >>> > >>> So that the source image writes to the DrawingArea don't leave a trail, > >>> I'd first draw the main (unzoomed) image to the DrawingArea, then draw > >>> the zoomed area onto that for each "frame" that you draw. The logic > >>> would go something like: > >>> > >>> ' Create your image variables. > >>> ' Load images into your image variables. > >>> Draw.Begin(DrawingAreaControlName) > >>> ' Draw the main image into the DrawingArea. > >>> ' Draw part of the main image into the DrawingArea adjusted by cursor > >>> position, zoom area size and zoom level. > >>> ' Draw text or whatever else you need to into the DrawingArea. > >>> Draw.End > >>> > >>> To draw text, which is really cool, you may do something like this > >>> inside the Draw.Begin/End: > >>> > >>> Draw.Foreground = Color.Black > >>> Draw.Text("Look, it's text on an image with a crappy shadow!!!", X, Y) > >>> Draw.Foreground = Color.White > >>> Draw.Text("Look, it's text on an image with a crappy shadow!!!", X + 1, > >>> Y - 1) > >>> > >>> I don't have any project examples that are simple enough to demonstrate > >>> this, but if you're really having trouble I could put something > >>> together. > >> > >> ------------------------------------------------------------------------ > >>--- --- Benefiting from Server Virtualization: Beyond Initial Workload > >> Consolidation -- Increasing the use of server virtualization is a top > >> priority.Virtualization can reduce costs, simplify management, and > >> improve application availability and disaster protection. Learn more > >> about boosting the value of server virtualization. > >> http://p.sf.net/sfu/vmware-sfdev2dev > >> _______________________________________________ > >> Gambas-user mailing list > >> Gambas-user at lists.sourceforge.net > >> https://lists.sourceforge.net/lists/listinfo/gambas-user > >> > >> > >> > >> ------------------------------------------------------------------------ > >>------ Benefiting from Server Virtualization: Beyond Initial Workload > >> Consolidation -- Increasing the use of server virtualization is a top > >> priority.Virtualization can reduce costs, simplify management, and > >> improve application availability and disaster protection. Learn more > >> about boosting the value of server virtualization. > >> http://p.sf.net/sfu/vmware-sfdev2dev > >> > >> > >> _______________________________________________ > >> Gambas-user mailing list > >> Gambas-user at lists.sourceforge.net > >> https://lists.sourceforge.net/lists/listinfo/gambas-user > > this is how i would do it when the mouse cursor get to the right or the > bottom of the image it starts to strech but you could just limit the > mouse travel and the rest you could make how you wanted easy i think > hope it helps > From shanep at ...2481... Sat Apr 16 02:29:15 2011 From: shanep at ...2481... (Shane Powell) Date: Sat, 16 Apr 2011 10:29:15 +1000 Subject: [Gambas-user] an "Is this possible question" about images In-Reply-To: <201104160853.03478.rterry@...1946...> References: <201104151315.44281.rterry@...1946...> <201104152258.00272.rterry@...1946...> <4DA854F3.1050302@...2481...> <201104160853.03478.rterry@...1946...> Message-ID: <4DA8E2DB.4050508@...2481...> On 16/04/11 08:53, richard terry wrote: > On Saturday 16 April 2011 00:23:47 Shane Powell wrote: > > Thanks heaps to shane, Caveat and all - I'll try a look at all this today and > report back. > > Regards > > Richard > >> On 15/04/11 22:58, richard terry wrote: >>> On Friday 15 April 2011 17:02:25 richard terry wrote: >>> Hi Kevin/List, >>> >>> I took at quick look at this, but my lame brain never functions with >>> basic mathematical problems, I enclose an embryonic code. >>> >>> This 'sort of' works, theres a drawing area into which I loaded the image >>> of a shoulder Xray and then another on top which will be the magnifier. >>> I put a couple of textboxes on it to change some of the internal values, >>> but can't seem to figure out the magnification factors. >>> >>> If I click over this it does move around and magnify, albeit not lined up >>> properly and sometimes it seems to get lost. It would be nice to have >>> this be say a circle, with a border, and be accurate, maybe someone can >>> modfy the code to make it work. >>> >>> Any help appreciated. >>> >>>> On Friday 15 April 2011 16:15:13 Kevin Fishburne wrote: >>>> Thanks, and to Rolf-Werner Eilert's reply, I'll take a look at these >>>> suggestions when I go home. >>>> >>>> I need a little 'side project' to stave off the bordum of the hum-drum >>>> debugging of the main project. >>>> >>>> Will post back my sucess or lack therof >>>> >>>> Regards >>>> >>>> Richard >>>> >>>>> On 04/15/2011 12:47 AM, richard terry wrote: >>>>>>> Do you need it to look like a fisheye-style lens effect, or just >>>>>>> box-zoom an area? If the latter this can be done easily in gb code. >>>>>> Just the box-zoom . >>>>>> >>>>>> Any change of you giving me a helping hand? I've not done anything >>>>>> much with images or drawing. >>>>>> >>>>>> I'll mail you a sample png if you want - the purpose here is to >>>>>> magnify areas of either skin, xray films or dermatascope images - all >>>>>> are images at the end of the day. >>>>>> >>>>>> Its for our open - source medical records project that Ian and I are >>>>>> chuggling slowly along with - not releasable as yet by I'm hoping that >>>>>> by the end of 2011 it will be pretty much beta. >>>>> That is very cool. I'm doing a game so I know a little about images in >>>>> gb. >>>>> >>>>> I'm going to assume that you're using Qt or GTK and not SDL or OpenGL, >>>>> but correct me if I'm wrong. For those the easiest way to do graphics >>>>> is with a DrawingArea control. After creating it on the form I'd change >>>>> the Cached property to True so it will automatically redraw itself if >>>>> something moves over it. >>>>> >>>>> You create image variables and load image files into them like this: >>>>> >>>>> Dim/Public someimage As Image >>>>> someimage = Image.Load("FleshEatingVirusNooooo.jpg") >>>>> >>>>> You write images to the DrawingArea control like this: >>>>> >>>>> Draw.Begin(DrawingArea1) >>>>> Draw.Image(someimage, X, Y, [Width, Height, SrcX, SrcY, SrcWidth, >>>>> SrcHeight]) >>>>> ' Add more "Draw.Image" statements here to composite additional >>>>> images into the DrawingArea. >>>>> Draw.End ' Commits the composition to the DrawingArea so that it may be >>>>> seen. May need a "Wait" statement if done repeatedly. >>>>> >>>>> The [bracketed] parameters are optional. someimage is the source and >>>>> the DrawingArea is the target. You can specify a subset of the source >>>>> (the area to be zoomed) by playing with SrcX and SrcY (upper-left >>>>> corner of source to be drawn) and SrcWidth and SrcHeight (width and >>>>> height relative to SrcX and SrcY of source to be drawn). You can scale >>>>> the source by playing with Width and Height. >>>>> >>>>> So that the source image writes to the DrawingArea don't leave a trail, >>>>> I'd first draw the main (unzoomed) image to the DrawingArea, then draw >>>>> the zoomed area onto that for each "frame" that you draw. The logic >>>>> would go something like: >>>>> >>>>> ' Create your image variables. >>>>> ' Load images into your image variables. >>>>> Draw.Begin(DrawingAreaControlName) >>>>> ' Draw the main image into the DrawingArea. >>>>> ' Draw part of the main image into the DrawingArea adjusted by cursor >>>>> position, zoom area size and zoom level. >>>>> ' Draw text or whatever else you need to into the DrawingArea. >>>>> Draw.End >>>>> >>>>> To draw text, which is really cool, you may do something like this >>>>> inside the Draw.Begin/End: >>>>> >>>>> Draw.Foreground = Color.Black >>>>> Draw.Text("Look, it's text on an image with a crappy shadow!!!", X, Y) >>>>> Draw.Foreground = Color.White >>>>> Draw.Text("Look, it's text on an image with a crappy shadow!!!", X + 1, >>>>> Y - 1) >>>>> >>>>> I don't have any project examples that are simple enough to demonstrate >>>>> this, but if you're really having trouble I could put something >>>>> together. >>>> ------------------------------------------------------------------------ >>>> --- --- Benefiting from Server Virtualization: Beyond Initial Workload >>>> Consolidation -- Increasing the use of server virtualization is a top >>>> priority.Virtualization can reduce costs, simplify management, and >>>> improve application availability and disaster protection. Learn more >>>> about boosting the value of server virtualization. >>>> http://p.sf.net/sfu/vmware-sfdev2dev >>>> _______________________________________________ >>>> Gambas-user mailing list >>>> Gambas-user at lists.sourceforge.net >>>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>>> >>>> >>>> >>>> ------------------------------------------------------------------------ >>>> ------ Benefiting from Server Virtualization: Beyond Initial Workload >>>> Consolidation -- Increasing the use of server virtualization is a top >>>> priority.Virtualization can reduce costs, simplify management, and >>>> improve application availability and disaster protection. Learn more >>>> about boosting the value of server virtualization. >>>> http://p.sf.net/sfu/vmware-sfdev2dev >>>> >>>> >>>> _______________________________________________ >>>> Gambas-user mailing list >>>> Gambas-user at lists.sourceforge.net >>>> https://lists.sourceforge.net/lists/listinfo/gambas-user >> this is how i would do it when the mouse cursor get to the right or the >> bottom of the image it starts to strech but you could just limit the >> mouse travel and the rest you could make how you wanted easy i think >> hope it helps >> > ------------------------------------------------------------------------------ > Benefiting from Server Virtualization: Beyond Initial Workload > Consolidation -- Increasing the use of server virtualization is a top > priority.Virtualization can reduce costs, simplify management, and improve > application availability and disaster protection. Learn more about boosting > the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user just some more tinkering -------------- next part -------------- A non-text attachment was scrubbed... Name: Mag-0.0.2.tar.gz Type: application/x-gzip Size: 130246 bytes Desc: not available URL: From rterry at ...1946... Sat Apr 16 07:27:09 2011 From: rterry at ...1946... (richard terry) Date: Sat, 16 Apr 2011 15:27:09 +1000 Subject: [Gambas-user] an "Is this possible question" about images In-Reply-To: <4DA8E2DB.4050508@...2481...> References: <201104151315.44281.rterry@...1946...> <201104160853.03478.rterry@...1946...> <4DA8E2DB.4050508@...2481...> Message-ID: <201104161527.09596.rterry@...1946...> On Saturday 16 April 2011 10:29:15 Shane Powell wrote: Hi Shane, I had an 11MB picture I wanted to magnify (I'll send you an image of this off list), with your last code iteration only part of the image was shown, so I changed the code in the drawingarea1_draw, to make the whole image show. However now, the mouse pointer dosn't show what's under it. ?? fixable?? I'll send make the picture where the mouse was so that you can see what the mouse was actually pointing at and what showed in the magnified area. Otherwise, the prototype looks good. We should buff it up and put it into the gambas examples! Regards richard > On 16/04/11 08:53, richard terry wrote: > > On Saturday 16 April 2011 00:23:47 Shane Powell wrote: > > > > Thanks heaps to shane, Caveat and all - I'll try a look at all this today > > and report back. > > > > Regards > > > > Richard > > > >> On 15/04/11 22:58, richard terry wrote: > >>> On Friday 15 April 2011 17:02:25 richard terry wrote: > >>> Hi Kevin/List, > >>> > >>> I took at quick look at this, but my lame brain never functions with > >>> basic mathematical problems, I enclose an embryonic code. > >>> > >>> This 'sort of' works, theres a drawing area into which I loaded the > >>> image of a shoulder Xray and then another on top which will be the > >>> magnifier. I put a couple of textboxes on it to change some of the > >>> internal values, but can't seem to figure out the magnification > >>> factors. > >>> > >>> If I click over this it does move around and magnify, albeit not lined > >>> up properly and sometimes it seems to get lost. It would be nice to > >>> have this be say a circle, with a border, and be accurate, maybe > >>> someone can modfy the code to make it work. > >>> > >>> Any help appreciated. > >>> > >>>> On Friday 15 April 2011 16:15:13 Kevin Fishburne wrote: > >>>> Thanks, and to Rolf-Werner Eilert's reply, I'll take a look at these > >>>> suggestions when I go home. > >>>> > >>>> I need a little 'side project' to stave off the bordum of the hum-drum > >>>> debugging of the main project. > >>>> > >>>> Will post back my sucess or lack therof > >>>> > >>>> Regards > >>>> > >>>> Richard > >>>> > >>>>> On 04/15/2011 12:47 AM, richard terry wrote: > >>>>>>> Do you need it to look like a fisheye-style lens effect, or just > >>>>>>> box-zoom an area? If the latter this can be done easily in gb code. > >>>>>> > >>>>>> Just the box-zoom . > >>>>>> > >>>>>> Any change of you giving me a helping hand? I've not done anything > >>>>>> much with images or drawing. > >>>>>> > >>>>>> I'll mail you a sample png if you want - the purpose here is to > >>>>>> magnify areas of either skin, xray films or dermatascope images - > >>>>>> all are images at the end of the day. > >>>>>> > >>>>>> Its for our open - source medical records project that Ian and I are > >>>>>> chuggling slowly along with - not releasable as yet by I'm hoping > >>>>>> that by the end of 2011 it will be pretty much beta. > >>>>> > >>>>> That is very cool. I'm doing a game so I know a little about images > >>>>> in gb. > >>>>> > >>>>> I'm going to assume that you're using Qt or GTK and not SDL or > >>>>> OpenGL, but correct me if I'm wrong. For those the easiest way to do > >>>>> graphics is with a DrawingArea control. After creating it on the form > >>>>> I'd change the Cached property to True so it will automatically > >>>>> redraw itself if something moves over it. > >>>>> > >>>>> You create image variables and load image files into them like this: > >>>>> > >>>>> Dim/Public someimage As Image > >>>>> someimage = Image.Load("FleshEatingVirusNooooo.jpg") > >>>>> > >>>>> You write images to the DrawingArea control like this: > >>>>> > >>>>> Draw.Begin(DrawingArea1) > >>>>> Draw.Image(someimage, X, Y, [Width, Height, SrcX, SrcY, > >>>>> SrcWidth, SrcHeight]) > >>>>> ' Add more "Draw.Image" statements here to composite additional > >>>>> images into the DrawingArea. > >>>>> Draw.End ' Commits the composition to the DrawingArea so that it may > >>>>> be seen. May need a "Wait" statement if done repeatedly. > >>>>> > >>>>> The [bracketed] parameters are optional. someimage is the source and > >>>>> the DrawingArea is the target. You can specify a subset of the source > >>>>> (the area to be zoomed) by playing with SrcX and SrcY (upper-left > >>>>> corner of source to be drawn) and SrcWidth and SrcHeight (width and > >>>>> height relative to SrcX and SrcY of source to be drawn). You can > >>>>> scale the source by playing with Width and Height. > >>>>> > >>>>> So that the source image writes to the DrawingArea don't leave a > >>>>> trail, I'd first draw the main (unzoomed) image to the DrawingArea, > >>>>> then draw the zoomed area onto that for each "frame" that you draw. > >>>>> The logic would go something like: > >>>>> > >>>>> ' Create your image variables. > >>>>> ' Load images into your image variables. > >>>>> Draw.Begin(DrawingAreaControlName) > >>>>> ' Draw the main image into the DrawingArea. > >>>>> ' Draw part of the main image into the DrawingArea adjusted by cursor > >>>>> position, zoom area size and zoom level. > >>>>> ' Draw text or whatever else you need to into the DrawingArea. > >>>>> Draw.End > >>>>> > >>>>> To draw text, which is really cool, you may do something like this > >>>>> inside the Draw.Begin/End: > >>>>> > >>>>> Draw.Foreground = Color.Black > >>>>> Draw.Text("Look, it's text on an image with a crappy shadow!!!", X, > >>>>> Y) Draw.Foreground = Color.White > >>>>> Draw.Text("Look, it's text on an image with a crappy shadow!!!", X + > >>>>> 1, Y - 1) > >>>>> > >>>>> I don't have any project examples that are simple enough to > >>>>> demonstrate this, but if you're really having trouble I could put > >>>>> something together. > >>>> > >>>> ---------------------------------------------------------------------- > >>>>-- --- --- Benefiting from Server Virtualization: Beyond Initial > >>>> Workload Consolidation -- Increasing the use of server virtualization > >>>> is a top priority.Virtualization can reduce costs, simplify > >>>> management, and improve application availability and disaster > >>>> protection. Learn more about boosting the value of server > >>>> virtualization. > >>>> http://p.sf.net/sfu/vmware-sfdev2dev > >>>> _______________________________________________ > >>>> Gambas-user mailing list > >>>> Gambas-user at lists.sourceforge.net > >>>> https://lists.sourceforge.net/lists/listinfo/gambas-user > >>>> > >>>> > >>>> > >>>> ---------------------------------------------------------------------- > >>>>-- ------ Benefiting from Server Virtualization: Beyond Initial > >>>> Workload Consolidation -- Increasing the use of server virtualization > >>>> is a top priority.Virtualization can reduce costs, simplify > >>>> management, and improve application availability and disaster > >>>> protection. Learn more about boosting the value of server > >>>> virtualization. > >>>> http://p.sf.net/sfu/vmware-sfdev2dev > >>>> > >>>> > >>>> _______________________________________________ > >>>> Gambas-user mailing list > >>>> Gambas-user at lists.sourceforge.net > >>>> https://lists.sourceforge.net/lists/listinfo/gambas-user > >> > >> this is how i would do it when the mouse cursor get to the right or the > >> bottom of the image it starts to strech but you could just limit the > >> mouse travel and the rest you could make how you wanted easy i think > >> hope it helps > > > > ------------------------------------------------------------------------- > >----- Benefiting from Server Virtualization: Beyond Initial Workload > > Consolidation -- Increasing the use of server virtualization is a top > > priority.Virtualization can reduce costs, simplify management, and > > improve application availability and disaster protection. Learn more > > about boosting the value of server virtualization. > > http://p.sf.net/sfu/vmware-sfdev2dev > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > just some more tinkering > -------------- next part -------------- ' Gambas class file Private mx As Integer Private my As Integer Private base As Image Private magx As Integer = 50 Private magy As Integer = 50 Public Sub _new() End Public Sub Form_Open() base = Image.Load("shoulder.png") base = Image.Load("1.png") DrawingArea1.Width = base.Width DrawingArea1.Height = base.Height PictureBox1.Picture = Picture.Load("1.png") End Public Sub DrawingArea1_MouseMove() If Mouse.x + (magx / 2) < base.Width And If Mouse.x - (magx / 2) > 0 mx = Mouse.X Endif If Mouse.y + (magy / 2) < base.Height And If Mouse.Y - (magy / 2) > 0 my = Mouse.Y Endif DrawingArea1.Refresh DrawingArea2.Refresh End Public Sub DrawingArea1_Draw() Draw.Image(base, 0, 0) Draw.Image(Base, 0, 0, DrawingArea1.w, DrawingArea1.H) End Public Sub DrawingArea2_Draw() Draw.Image(base, 0, 0, DrawingArea2.Width, DrawingArea2.height, mx - (magx / 2), my - (magy / 2), magx, magy) End Public Sub Slider1_Change() magx = DrawingArea2.Width / Slider1.Value magy = DrawingArea2.Height / Slider1.Value Label1.Text = "Mag= X" & Slider1.Value End From member at ...2579... Sat Apr 16 08:05:39 2011 From: member at ...2579... (Demosthenes Koptsis via LinkedIn) Date: Sat, 16 Apr 2011 06:05:39 +0000 (UTC) Subject: [Gambas-user] Invitation to connect on LinkedIn Message-ID: <516265041.2351618.1302933939840.JavaMail.app@...2580...> LinkedIn ------------Demosthenes Koptsis souhaite se connecter ? vous sur LinkedIn?: ------------------------------------------ Joan Luc?, I'd like to add you to my professional network on LinkedIn. - Demosthenes Accepter l'invitation de Demosthenes Koptsis http://www.linkedin.com/e/hggat5-gmk5867v-6d/uKC-86hQN3QmxE2auJ6zQ6pkPe-4UnCG632_CXVQxQl4RrKxeh/blk/I1271816201_3/1BpC5vrmRLoRZcjkkZt5YCpnlOt3RApnhMpmdzgmhxrSNBszYPnP4MczoNe34Tcz59bSYNq6gJrjwObP8Td3kVdPoMdP8LrCBxbOYWrSlI/EML_comm_afe/ Voir l'invitation de Demosthenes Koptsis http://www.linkedin.com/e/hggat5-gmk5867v-6d/uKC-86hQN3QmxE2auJ6zQ6pkPe-4UnCG632_CXVQxQl4RrKxeh/blk/I1271816201_3/3dvcj0Odz4UcjsOckALqnpPbOYWrSlI/svi/ ------------------------------------------ SAVEZ-VOUS que vous pouvez utiliser votre profil LinkedIn comme votre page web personnelle?? Personnalisez l'adresse web de votre profil et utilisez-la sur vos cartes de visite, comme signature d'e-mail, sur votre site, etc. http://www.linkedin.com/e/hggat5-gmk5867v-6d/ewp/inv-21/ -- (c) 2011, LinkedIn Corporation From rterry at ...1946... Sat Apr 16 09:05:18 2011 From: rterry at ...1946... (richard terry) Date: Sat, 16 Apr 2011 17:05:18 +1000 Subject: [Gambas-user] Potentially difficult to find error in the IDE Message-ID: <201104161705.18882.rterry@...1946...> Hi Benoit, This could be difficult to trace for a user: This scenario I had a form, to which at run time, I added a combo box (ie the combo not put on the form in the IDE) and I'd put it in the declarations section at the top. I then changed my mind, and decided I'd put it on the form in the IDE, but as I'd written the code for this module 18 months ago, I'd forgotten I'd originally declared it in code. When the project ran (of course it wouldn't) the execution stopped at the very last line in the file, not giving a visible error message, but after doing this several time I noticed a quick flash of a message saying 'cmbTemplates already in form definition... or similar). Searching for it, I then found the text at the very top of my declaration section. Had I not gimpsed the flash of the error message, I would have continued to be puzzled - I had by the way, searched the entire program for the offending text and for some reason the search hadn't picked it up in the declarations section. Regards Richard From rterry at ...1946... Sat Apr 16 09:15:45 2011 From: rterry at ...1946... (richard terry) Date: Sat, 16 Apr 2011 17:15:45 +1000 Subject: [Gambas-user] Potentially difficult to find error in the IDE - addendum In-Reply-To: <201104161705.18882.rterry@...1946...> References: <201104161705.18882.rterry@...1946...> Message-ID: <201104161715.45416.rterry@...1946...> On Saturday 16 April 2011 17:05:18 richard terry wrote: As an addendum to my ambiguous wording, I should have said that searching for cmbTemplates using the popup search dialog failed to find the instance at the top, though it found other instances in code, and it was only by scrolling down starting at the top that I noticed it. Sorry Regards Richard > Hi Benoit, > > This could be difficult to trace for a user: > > This scenario > > I had a form, to which at run time, I added a combo box (ie the combo not > put on the form in the IDE) and I'd put it in the declarations section at > the top. > > I then changed my mind, and decided I'd put it on the form in the IDE, but > as I'd written the code for this module 18 months ago, I'd forgotten I'd > originally declared it in code. > > When the project ran (of course it wouldn't) the execution stopped at the > very last line in the file, not giving a visible error message, but after > doing this several time I noticed a quick flash of a message saying > 'cmbTemplates already in form definition... or similar). Searching for it, > I then found the text at the very top of my declaration section. > > Had I not gimpsed the flash of the error message, I would have continued to > be puzzled - I had by the way, searched the entire program for the > offending text and for some reason the search hadn't picked it up in the > declarations section. > > Regards > > Richard > > --------------------------------------------------------------------------- > --- Benefiting from Server Virtualization: Beyond Initial Workload > Consolidation -- Increasing the use of server virtualization is a top > priority.Virtualization can reduce costs, simplify management, and improve > application availability and disaster protection. Learn more about boosting > the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From bugcy013 at ...626... Sat Apr 16 10:31:24 2011 From: bugcy013 at ...626... (Ganesh Kumar) Date: Sat, 16 Apr 2011 08:31:24 +0000 Subject: [Gambas-user] Display TextLabel on Message box Message-ID: Hi Guys., How to do it ? Display TextLabel on Message box. This is my code. ************************************************************ PUBLIC SUB Button1_Click() Message.Info("Hallo, this is your message", "OK") END ************************************************************ please Help me.... -Ganesh. -- Did I learn something today? If not, I wasted it. From shanep at ...2481... Sat Apr 16 12:02:06 2011 From: shanep at ...2481... (Shane Powell) Date: Sat, 16 Apr 2011 20:02:06 +1000 Subject: [Gambas-user] Display TextLabel on Message box In-Reply-To: References: Message-ID: <4DA9691E.2010702@...2481...> On 16/04/11 18:31, Ganesh Kumar wrote: > Hi Guys., > > How to do it ? > > Display TextLabel on Message box. This is my code. > > ************************************************************ > PUBLIC SUB Button1_Click() > Message.Info("Hallo, this is your message", "OK") > END > ************************************************************ > > please Help me.... > > -Ganesh. > remove the comma after Hallo From shanep at ...2481... Sat Apr 16 12:32:22 2011 From: shanep at ...2481... (Shane Powell) Date: Sat, 16 Apr 2011 20:32:22 +1000 Subject: [Gambas-user] an "Is this possible question" about images In-Reply-To: <201104161527.09596.rterry@...1946...> References: <201104151315.44281.rterry@...1946...> <201104160853.03478.rterry@...1946...> <4DA8E2DB.4050508@...2481...> <201104161527.09596.rterry@...1946...> Message-ID: <4DA97036.90501@...2481...> On 16/04/11 15:27, richard terry wrote: > On Saturday 16 April 2011 10:29:15 Shane Powell wrote: > > Hi Shane, > > I had an 11MB picture I wanted to magnify (I'll send you an image of this off > list), with your last code iteration only part of the image was shown, so I > changed the code in the drawingarea1_draw, to make the whole image show. > > However now, the mouse pointer dosn't show what's under it. > > ?? fixable?? > > I'll send make the picture where the mouse was so that you can see what the > mouse was actually pointing at and what showed in the magnified area. > > Otherwise, the prototype looks good. We should buff it up and put it into the > gambas examples! > > Regards > > richard > >> On 16/04/11 08:53, richard terry wrote: >>> On Saturday 16 April 2011 00:23:47 Shane Powell wrote: >>> >>> Thanks heaps to shane, Caveat and all - I'll try a look at all this today >>> and report back. >>> >>> Regards >>> >>> Richard >>> >>>> On 15/04/11 22:58, richard terry wrote: >>>>> On Friday 15 April 2011 17:02:25 richard terry wrote: >>>>> Hi Kevin/List, >>>>> >>>>> I took at quick look at this, but my lame brain never functions with >>>>> basic mathematical problems, I enclose an embryonic code. >>>>> >>>>> This 'sort of' works, theres a drawing area into which I loaded the >>>>> image of a shoulder Xray and then another on top which will be the >>>>> magnifier. I put a couple of textboxes on it to change some of the >>>>> internal values, but can't seem to figure out the magnification >>>>> factors. >>>>> >>>>> If I click over this it does move around and magnify, albeit not lined >>>>> up properly and sometimes it seems to get lost. It would be nice to >>>>> have this be say a circle, with a border, and be accurate, maybe >>>>> someone can modfy the code to make it work. >>>>> >>>>> Any help appreciated. >>>>> >>>>>> On Friday 15 April 2011 16:15:13 Kevin Fishburne wrote: >>>>>> Thanks, and to Rolf-Werner Eilert's reply, I'll take a look at these >>>>>> suggestions when I go home. >>>>>> >>>>>> I need a little 'side project' to stave off the bordum of the hum-drum >>>>>> debugging of the main project. >>>>>> >>>>>> Will post back my sucess or lack therof >>>>>> >>>>>> Regards >>>>>> >>>>>> Richard >>>>>> >>>>>>> On 04/15/2011 12:47 AM, richard terry wrote: >>>>>>>>> Do you need it to look like a fisheye-style lens effect, or just >>>>>>>>> box-zoom an area? If the latter this can be done easily in gb code. >>>>>>>> Just the box-zoom . >>>>>>>> >>>>>>>> Any change of you giving me a helping hand? I've not done anything >>>>>>>> much with images or drawing. >>>>>>>> >>>>>>>> I'll mail you a sample png if you want - the purpose here is to >>>>>>>> magnify areas of either skin, xray films or dermatascope images - >>>>>>>> all are images at the end of the day. >>>>>>>> >>>>>>>> Its for our open - source medical records project that Ian and I are >>>>>>>> chuggling slowly along with - not releasable as yet by I'm hoping >>>>>>>> that by the end of 2011 it will be pretty much beta. >>>>>>> That is very cool. I'm doing a game so I know a little about images >>>>>>> in gb. >>>>>>> >>>>>>> I'm going to assume that you're using Qt or GTK and not SDL or >>>>>>> OpenGL, but correct me if I'm wrong. For those the easiest way to do >>>>>>> graphics is with a DrawingArea control. After creating it on the form >>>>>>> I'd change the Cached property to True so it will automatically >>>>>>> redraw itself if something moves over it. >>>>>>> >>>>>>> You create image variables and load image files into them like this: >>>>>>> >>>>>>> Dim/Public someimage As Image >>>>>>> someimage = Image.Load("FleshEatingVirusNooooo.jpg") >>>>>>> >>>>>>> You write images to the DrawingArea control like this: >>>>>>> >>>>>>> Draw.Begin(DrawingArea1) >>>>>>> Draw.Image(someimage, X, Y, [Width, Height, SrcX, SrcY, >>>>>>> SrcWidth, SrcHeight]) >>>>>>> ' Add more "Draw.Image" statements here to composite additional >>>>>>> images into the DrawingArea. >>>>>>> Draw.End ' Commits the composition to the DrawingArea so that it may >>>>>>> be seen. May need a "Wait" statement if done repeatedly. >>>>>>> >>>>>>> The [bracketed] parameters are optional. someimage is the source and >>>>>>> the DrawingArea is the target. You can specify a subset of the source >>>>>>> (the area to be zoomed) by playing with SrcX and SrcY (upper-left >>>>>>> corner of source to be drawn) and SrcWidth and SrcHeight (width and >>>>>>> height relative to SrcX and SrcY of source to be drawn). You can >>>>>>> scale the source by playing with Width and Height. >>>>>>> >>>>>>> So that the source image writes to the DrawingArea don't leave a >>>>>>> trail, I'd first draw the main (unzoomed) image to the DrawingArea, >>>>>>> then draw the zoomed area onto that for each "frame" that you draw. >>>>>>> The logic would go something like: >>>>>>> >>>>>>> ' Create your image variables. >>>>>>> ' Load images into your image variables. >>>>>>> Draw.Begin(DrawingAreaControlName) >>>>>>> ' Draw the main image into the DrawingArea. >>>>>>> ' Draw part of the main image into the DrawingArea adjusted by cursor >>>>>>> position, zoom area size and zoom level. >>>>>>> ' Draw text or whatever else you need to into the DrawingArea. >>>>>>> Draw.End >>>>>>> >>>>>>> To draw text, which is really cool, you may do something like this >>>>>>> inside the Draw.Begin/End: >>>>>>> >>>>>>> Draw.Foreground = Color.Black >>>>>>> Draw.Text("Look, it's text on an image with a crappy shadow!!!", X, >>>>>>> Y) Draw.Foreground = Color.White >>>>>>> Draw.Text("Look, it's text on an image with a crappy shadow!!!", X + >>>>>>> 1, Y - 1) >>>>>>> >>>>>>> I don't have any project examples that are simple enough to >>>>>>> demonstrate this, but if you're really having trouble I could put >>>>>>> something together. >>>>>> ---------------------------------------------------------------------- >>>>>> -- --- --- Benefiting from Server Virtualization: Beyond Initial >>>>>> Workload Consolidation -- Increasing the use of server virtualization >>>>>> is a top priority.Virtualization can reduce costs, simplify >>>>>> management, and improve application availability and disaster >>>>>> protection. Learn more about boosting the value of server >>>>>> virtualization. >>>>>> http://p.sf.net/sfu/vmware-sfdev2dev >>>>>> _______________________________________________ >>>>>> Gambas-user mailing list >>>>>> Gambas-user at lists.sourceforge.net >>>>>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>>>>> >>>>>> >>>>>> >>>>>> ---------------------------------------------------------------------- >>>>>> -- ------ Benefiting from Server Virtualization: Beyond Initial >>>>>> Workload Consolidation -- Increasing the use of server virtualization >>>>>> is a top priority.Virtualization can reduce costs, simplify >>>>>> management, and improve application availability and disaster >>>>>> protection. Learn more about boosting the value of server >>>>>> virtualization. >>>>>> http://p.sf.net/sfu/vmware-sfdev2dev >>>>>> >>>>>> >>>>>> _______________________________________________ >>>>>> Gambas-user mailing list >>>>>> Gambas-user at lists.sourceforge.net >>>>>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>>> this is how i would do it when the mouse cursor get to the right or the >>>> bottom of the image it starts to strech but you could just limit the >>>> mouse travel and the rest you could make how you wanted easy i think >>>> hope it helps >>> ------------------------------------------------------------------------- >>> ----- Benefiting from Server Virtualization: Beyond Initial Workload >>> Consolidation -- Increasing the use of server virtualization is a top >>> priority.Virtualization can reduce costs, simplify management, and >>> improve application availability and disaster protection. Learn more >>> about boosting the value of server virtualization. >>> http://p.sf.net/sfu/vmware-sfdev2dev >>> _______________________________________________ >>> Gambas-user mailing list >>> Gambas-user at lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/gambas-user >> just some more tinkering >> >> >> >> ------------------------------------------------------------------------------ >> Benefiting from Server Virtualization: Beyond Initial Workload >> Consolidation -- Increasing the use of server virtualization is a top >> priority.Virtualization can reduce costs, simplify management, and improve >> application availability and disaster protection. Learn more about boosting >> the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev >> >> >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user hi richard try this -------------- next part -------------- A non-text attachment was scrubbed... Name: Mag-0.0.3.tar.gz Type: application/x-gzip Size: 5327 bytes Desc: not available URL: From rterry at ...1946... Sat Apr 16 13:38:35 2011 From: rterry at ...1946... (richard terry) Date: Sat, 16 Apr 2011 21:38:35 +1000 Subject: [Gambas-user] an "Is this possible question" about images In-Reply-To: <4DA97036.90501@...2481...> References: <201104151315.44281.rterry@...1946...> <201104161527.09596.rterry@...1946...> <4DA97036.90501@...2481...> Message-ID: <201104162138.35482.rterry@...1946...> On Saturday 16 April 2011 20:32:22 Shane Powell wrote: Hi Shane, I''ve re-arranged the screen from 0.0.3 to show you what happens when you have a (roughly) proportional picture. If you leave the drawing code as is in DrawingArea1_Draw() you'll see what I mean about the area under the mouse cursor point not being translated into the viewing window. I've set it back to the shoulder Xray which is tiny. I wondered if there was a logical relationship then, between the mouse cursor using this drawing method and what to show. Regards Richard > On 16/04/11 15:27, richard terry wrote: > > On Saturday 16 April 2011 10:29:15 Shane Powell wrote: > > > > Hi Shane, > > > > I had an 11MB picture I wanted to magnify (I'll send you an image of this > > off list), with your last code iteration only part of the image was > > shown, so I changed the code in the drawingarea1_draw, to make the whole > > image show. > > > > However now, the mouse pointer dosn't show what's under it. > > > > ?? fixable?? > > > > I'll send make the picture where the mouse was so that you can see what > > the mouse was actually pointing at and what showed in the magnified area. > > > > Otherwise, the prototype looks good. We should buff it up and put it into > > the gambas examples! > > > > Regards > > > > richard > > > >> On 16/04/11 08:53, richard terry wrote: > >>> On Saturday 16 April 2011 00:23:47 Shane Powell wrote: > >>> > >>> Thanks heaps to shane, Caveat and all - I'll try a look at all this > >>> today and report back. > >>> > >>> Regards > >>> > >>> Richard > >>> > >>>> On 15/04/11 22:58, richard terry wrote: > >>>>> On Friday 15 April 2011 17:02:25 richard terry wrote: > >>>>> Hi Kevin/List, > >>>>> > >>>>> I took at quick look at this, but my lame brain never functions with > >>>>> basic mathematical problems, I enclose an embryonic code. > >>>>> > >>>>> This 'sort of' works, theres a drawing area into which I loaded the > >>>>> image of a shoulder Xray and then another on top which will be the > >>>>> magnifier. I put a couple of textboxes on it to change some of the > >>>>> internal values, but can't seem to figure out the magnification > >>>>> factors. > >>>>> > >>>>> If I click over this it does move around and magnify, albeit not > >>>>> lined up properly and sometimes it seems to get lost. It would be > >>>>> nice to have this be say a circle, with a border, and be accurate, > >>>>> maybe someone can modfy the code to make it work. > >>>>> > >>>>> Any help appreciated. > >>>>> > >>>>>> On Friday 15 April 2011 16:15:13 Kevin Fishburne wrote: > >>>>>> Thanks, and to Rolf-Werner Eilert's reply, I'll take a look at > >>>>>> these suggestions when I go home. > >>>>>> > >>>>>> I need a little 'side project' to stave off the bordum of the > >>>>>> hum-drum debugging of the main project. > >>>>>> > >>>>>> Will post back my sucess or lack therof > >>>>>> > >>>>>> Regards > >>>>>> > >>>>>> Richard > >>>>>> > >>>>>>> On 04/15/2011 12:47 AM, richard terry wrote: > >>>>>>>>> Do you need it to look like a fisheye-style lens effect, or just > >>>>>>>>> box-zoom an area? If the latter this can be done easily in gb > >>>>>>>>> code. > >>>>>>>> > >>>>>>>> Just the box-zoom . > >>>>>>>> > >>>>>>>> Any change of you giving me a helping hand? I've not done anything > >>>>>>>> much with images or drawing. > >>>>>>>> > >>>>>>>> I'll mail you a sample png if you want - the purpose here is to > >>>>>>>> magnify areas of either skin, xray films or dermatascope images - > >>>>>>>> all are images at the end of the day. > >>>>>>>> > >>>>>>>> Its for our open - source medical records project that Ian and I > >>>>>>>> are chuggling slowly along with - not releasable as yet by I'm > >>>>>>>> hoping that by the end of 2011 it will be pretty much beta. > >>>>>>> > >>>>>>> That is very cool. I'm doing a game so I know a little about images > >>>>>>> in gb. > >>>>>>> > >>>>>>> I'm going to assume that you're using Qt or GTK and not SDL or > >>>>>>> OpenGL, but correct me if I'm wrong. For those the easiest way to > >>>>>>> do graphics is with a DrawingArea control. After creating it on the > >>>>>>> form I'd change the Cached property to True so it will > >>>>>>> automatically redraw itself if something moves over it. > >>>>>>> > >>>>>>> You create image variables and load image files into them like > >>>>>>> this: > >>>>>>> > >>>>>>> Dim/Public someimage As Image > >>>>>>> someimage = Image.Load("FleshEatingVirusNooooo.jpg") > >>>>>>> > >>>>>>> You write images to the DrawingArea control like this: > >>>>>>> > >>>>>>> Draw.Begin(DrawingArea1) > >>>>>>> Draw.Image(someimage, X, Y, [Width, Height, SrcX, SrcY, > >>>>>>> SrcWidth, SrcHeight]) > >>>>>>> ' Add more "Draw.Image" statements here to composite > >>>>>>> additional images into the DrawingArea. > >>>>>>> Draw.End ' Commits the composition to the DrawingArea so that it > >>>>>>> may be seen. May need a "Wait" statement if done repeatedly. > >>>>>>> > >>>>>>> The [bracketed] parameters are optional. someimage is the source > >>>>>>> and the DrawingArea is the target. You can specify a subset of the > >>>>>>> source (the area to be zoomed) by playing with SrcX and SrcY > >>>>>>> (upper-left corner of source to be drawn) and SrcWidth and > >>>>>>> SrcHeight (width and height relative to SrcX and SrcY of source to > >>>>>>> be drawn). You can scale the source by playing with Width and > >>>>>>> Height. > >>>>>>> > >>>>>>> So that the source image writes to the DrawingArea don't leave a > >>>>>>> trail, I'd first draw the main (unzoomed) image to the DrawingArea, > >>>>>>> then draw the zoomed area onto that for each "frame" that you draw. > >>>>>>> The logic would go something like: > >>>>>>> > >>>>>>> ' Create your image variables. > >>>>>>> ' Load images into your image variables. > >>>>>>> Draw.Begin(DrawingAreaControlName) > >>>>>>> ' Draw the main image into the DrawingArea. > >>>>>>> ' Draw part of the main image into the DrawingArea adjusted by > >>>>>>> cursor position, zoom area size and zoom level. > >>>>>>> ' Draw text or whatever else you need to into the DrawingArea. > >>>>>>> Draw.End > >>>>>>> > >>>>>>> To draw text, which is really cool, you may do something like this > >>>>>>> inside the Draw.Begin/End: > >>>>>>> > >>>>>>> Draw.Foreground = Color.Black > >>>>>>> Draw.Text("Look, it's text on an image with a crappy shadow!!!", X, > >>>>>>> Y) Draw.Foreground = Color.White > >>>>>>> Draw.Text("Look, it's text on an image with a crappy shadow!!!", X > >>>>>>> + 1, Y - 1) > >>>>>>> > >>>>>>> I don't have any project examples that are simple enough to > >>>>>>> demonstrate this, but if you're really having trouble I could put > >>>>>>> something together. > >>>>>> > >>>>>> -------------------------------------------------------------------- > >>>>>>-- -- --- --- Benefiting from Server Virtualization: Beyond Initial > >>>>>> Workload Consolidation -- Increasing the use of server > >>>>>> virtualization is a top priority.Virtualization can reduce costs, > >>>>>> simplify management, and improve application availability and > >>>>>> disaster protection. Learn more about boosting the value of server > >>>>>> virtualization. > >>>>>> http://p.sf.net/sfu/vmware-sfdev2dev > >>>>>> _______________________________________________ > >>>>>> Gambas-user mailing list > >>>>>> Gambas-user at lists.sourceforge.net > >>>>>> https://lists.sourceforge.net/lists/listinfo/gambas-user > >>>>>> > >>>>>> > >>>>>> > >>>>>> -------------------------------------------------------------------- > >>>>>>-- -- ------ Benefiting from Server Virtualization: Beyond Initial > >>>>>> Workload Consolidation -- Increasing the use of server > >>>>>> virtualization is a top priority.Virtualization can reduce costs, > >>>>>> simplify management, and improve application availability and > >>>>>> disaster protection. Learn more about boosting the value of server > >>>>>> virtualization. > >>>>>> http://p.sf.net/sfu/vmware-sfdev2dev > >>>>>> > >>>>>> > >>>>>> _______________________________________________ > >>>>>> Gambas-user mailing list > >>>>>> Gambas-user at lists.sourceforge.net > >>>>>> https://lists.sourceforge.net/lists/listinfo/gambas-user > >>>> > >>>> this is how i would do it when the mouse cursor get to the right or > >>>> the bottom of the image it starts to strech but you could just limit > >>>> the mouse travel and the rest you could make how you wanted easy i > >>>> think hope it helps > >>> > >>> ----------------------------------------------------------------------- > >>>-- ----- Benefiting from Server Virtualization: Beyond Initial Workload > >>> Consolidation -- Increasing the use of server virtualization is a top > >>> priority.Virtualization can reduce costs, simplify management, and > >>> improve application availability and disaster protection. Learn more > >>> about boosting the value of server virtualization. > >>> http://p.sf.net/sfu/vmware-sfdev2dev > >>> _______________________________________________ > >>> Gambas-user mailing list > >>> Gambas-user at lists.sourceforge.net > >>> https://lists.sourceforge.net/lists/listinfo/gambas-user > >> > >> just some more tinkering > >> > >> > >> > >> ------------------------------------------------------------------------ > >>------ Benefiting from Server Virtualization: Beyond Initial Workload > >> Consolidation -- Increasing the use of server virtualization is a top > >> priority.Virtualization can reduce costs, simplify management, and > >> improve application availability and disaster protection. Learn more > >> about boosting the value of server virtualization. > >> http://p.sf.net/sfu/vmware-sfdev2dev > >> > >> > >> _______________________________________________ > >> Gambas-user mailing list > >> Gambas-user at lists.sourceforge.net > >> https://lists.sourceforge.net/lists/listinfo/gambas-user > > hi richard try this > -------------- next part -------------- A non-text attachment was scrubbed... Name: Mag-0.0.4.tar.gz Type: application/x-compressed-tar Size: 130343 bytes Desc: not available URL: From jussi.lahtinen at ...626... Sat Apr 16 13:52:39 2011 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Sat, 16 Apr 2011 14:52:39 +0300 Subject: [Gambas-user] Potentially difficult to find error in the IDE In-Reply-To: <201104161705.18882.rterry@...1946...> References: <201104161705.18882.rterry@...1946...> Message-ID: Yes, there still are some situations when error messages aren't properly shown. I haven't be able to reproduce this bug consistently. To me this happens randomly and rarely. Also I don't see the quick flashes, because my project is full screen and when execution stops, focus isn't automatically changed to IDE. If you know way to reproduce this every time, maybe you can send project to demonstrate it. Jussi On Sat, Apr 16, 2011 at 10:05, richard terry wrote: > Hi Benoit, > > This could be difficult to trace for a user: > > This scenario > > I had a form, to which at run time, I added a combo box (ie the combo not > put > on the form in the IDE) and I'd put it in the declarations section at the > top. > > I then changed my mind, and decided I'd put it on the form in the IDE, but > as > I'd written the code for this module 18 months ago, I'd forgotten I'd > originally declared it in code. > > When the project ran (of course it wouldn't) the execution stopped at the > very > last line in the file, not giving a visible error message, but after doing > this > several time I noticed a quick flash of a message saying 'cmbTemplates > already > in form definition... or similar). Searching for it, I then found the text > at > the very top of my declaration section. > > Had I not gimpsed the flash of the error message, I would have continued to > be > puzzled - I had by the way, searched the entire program for the offending > text > and for some reason the search hadn't picked it up in the declarations > section. > > Regards > > Richard > > > ------------------------------------------------------------------------------ > Benefiting from Server Virtualization: Beyond Initial Workload > Consolidation -- Increasing the use of server virtualization is a top > priority.Virtualization can reduce costs, simplify management, and improve > application availability and disaster protection. Learn more about boosting > the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From jussi.lahtinen at ...626... Sat Apr 16 13:59:37 2011 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Sat, 16 Apr 2011 14:59:37 +0300 Subject: [Gambas-user] Display TextLabel on Message box In-Reply-To: <4DA9691E.2010702@...2481...> References: <4DA9691E.2010702@...2481...> Message-ID: No, nothing wrong with the code. It should display given message with OK button. But I don't think you can put TextLabel on Message box. I think you need to write your own form for it. Jussi On Sat, Apr 16, 2011 at 13:02, Shane Powell wrote: > On 16/04/11 18:31, Ganesh Kumar wrote: > > Hi Guys., > > > > How to do it ? > > > > Display TextLabel on Message box. This is my code. > > > > ************************************************************ > > PUBLIC SUB Button1_Click() > > Message.Info("Hallo, this is your message", "OK") > > END > > ************************************************************ > > > > please Help me.... > > > > -Ganesh. > > > remove the comma after Hallo > > > > ------------------------------------------------------------------------------ > Benefiting from Server Virtualization: Beyond Initial Workload > Consolidation -- Increasing the use of server virtualization is a top > priority.Virtualization can reduce costs, simplify management, and improve > application availability and disaster protection. Learn more about boosting > the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From rterry at ...1946... Sat Apr 16 14:03:25 2011 From: rterry at ...1946... (richard terry) Date: Sat, 16 Apr 2011 22:03:25 +1000 Subject: [Gambas-user] Potentially difficult to find error in the IDE In-Reply-To: References: <201104161705.18882.rterry@...1946...> Message-ID: <201104162203.25102.rterry@...1946...> On Saturday 16 April 2011 21:52:39 Jussi Lahtinen wrote: > Yes, there still are some situations when error messages aren't properly > shown. > I haven't be able to reproduce this bug consistently. To me this happens > randomly and rarely. > Also I don't see the quick flashes, because my project is full screen and > when execution stops, > focus isn't automatically changed to IDE. > > If you know way to reproduce this every time, maybe you can send project to > demonstrate it. Would if I could. I've spent many hours delving into hard to reproduce bugs and sending Benoit little projects - I always do when its reproducable. Regards richard > > Jussi > > On Sat, Apr 16, 2011 at 10:05, richard terry wrote: > > Hi Benoit, > > > > This could be difficult to trace for a user: > > > > This scenario > > > > I had a form, to which at run time, I added a combo box (ie the combo not > > put > > on the form in the IDE) and I'd put it in the declarations section at the > > top. > > > > I then changed my mind, and decided I'd put it on the form in the IDE, > > but as > > I'd written the code for this module 18 months ago, I'd forgotten I'd > > originally declared it in code. > > > > When the project ran (of course it wouldn't) the execution stopped at the > > very > > last line in the file, not giving a visible error message, but after > > doing this > > several time I noticed a quick flash of a message saying 'cmbTemplates > > already > > in form definition... or similar). Searching for it, I then found the > > text at > > the very top of my declaration section. > > > > Had I not gimpsed the flash of the error message, I would have continued > > to be > > puzzled - I had by the way, searched the entire program for the offending > > text > > and for some reason the search hadn't picked it up in the declarations > > section. > > > > Regards > > > > Richard > > > > > > ------------------------------------------------------------------------- > >----- Benefiting from Server Virtualization: Beyond Initial Workload > > Consolidation -- Increasing the use of server virtualization is a top > > priority.Virtualization can reduce costs, simplify management, and > > improve application availability and disaster protection. Learn more > > about boosting the value of server virtualization. > > http://p.sf.net/sfu/vmware-sfdev2dev > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > --------------------------------------------------------------------------- > --- Benefiting from Server Virtualization: Beyond Initial Workload > Consolidation -- Increasing the use of server virtualization is a top > priority.Virtualization can reduce costs, simplify management, and improve > application availability and disaster protection. Learn more about boosting > the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Sat Apr 16 15:31:44 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sat, 16 Apr 2011 15:31:44 +0200 Subject: [Gambas-user] Potentially difficult to find error in the IDE In-Reply-To: <201104162203.25102.rterry@...1946...> References: <201104161705.18882.rterry@...1946...> <201104162203.25102.rterry@...1946...> Message-ID: <201104161531.44695.gambas@...1...> > On Saturday 16 April 2011 21:52:39 Jussi Lahtinen wrote: > > Yes, there still are some situations when error messages aren't properly > > shown. > > I haven't be able to reproduce this bug consistently. To me this happens > > randomly and rarely. > > Also I don't see the quick flashes, because my project is full screen and > > when execution stops, > > focus isn't automatically changed to IDE. > > > > If you know way to reproduce this every time, maybe you can send project > > to demonstrate it. > > Would if I could. I've spent many hours delving into hard to reproduce bugs > and sending Benoit little projects - I always do when its reproducable. > > Regards > > richard > The revision #3771 should fix most of the problem. Now the form code is always compiled *before* the class code. Consequently errors like an identifier declared twice is always raised inside the source code. Maybe there are other cases not handled by this fix. Regards, -- Beno?t Minisini From gambas at ...1... Sat Apr 16 15:35:21 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sat, 16 Apr 2011 15:35:21 +0200 Subject: [Gambas-user] Can not draw outside of draw event handler In-Reply-To: <1301464663.15182.4.camel@...2493...> References: <1301157879.30774.4.camel@...2493...> <201103300112.41326.gambas@...1...> <1301464663.15182.4.camel@...2493...> Message-ID: <201104161535.21637.gambas@...1...> > On Wed, 2011-03-30 at 01:12 +0200, Beno?t Minisini wrote: > > > Please check that the Draw.FillRect uses the Background property and > > > not the FillColor property. > > > > > > is this ok? > > > > > > > > > See from previous email project99. > > > > Normally, Draw.FillRect() takes the color as its fifth argument. When not > > specified, it actually uses the Background color. Do you think that it > > should use the FillColor by default instead? > > yes my thought says, that i expected it should use the fillcolor > property. Forgot to say that it was done in revision #3748. Regards, -- Beno?t Minisini From jussi.lahtinen at ...626... Sat Apr 16 18:45:31 2011 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Sat, 16 Apr 2011 19:45:31 +0300 Subject: [Gambas-user] Global search & replace In-Reply-To: <201104150127.12982.gambas@...1...> References: <201104102144.04319.rterry@...1946...> <201104121241.20787.gambas@...1...> <201104131414.06919.rterry@...1946...> <201104150127.12982.gambas@...1...> Message-ID: It's good now, but I would like to see confirmation question, in case of accidental click on wrong button. My suggested code to FSearch: Private Sub Browse(Optional bOnlySource As Boolean, Optional bReplace As Boolean) Dim sDir As String Dim sFile As String Dim sPath As String Dim iPos As Integer Dim iLen As Integer Dim aFind As String[] Dim sName As String Dim sExt As String If InitSearch() Then Return 'OnlySource = bOnlySource * If Message.Question(Subst$(("Are you sure you want to replace all intances of '&1' with '&2'?"), SearchString, ReplaceString), ("Yes"), ("No")) <> 1 Then Return* ... Jussi 2011/4/15 Beno?t Minisini > > On Tuesday 12 April 2011 20:41:20 Beno?t Minisini wrote: > > > > On Sunday 10 April 2011 22:17:20 Olivier Cruilles wrote: > > > > Thanks, I'll try that, but I would have thought the gambas editor > > > > should accomodate global replaces. > > > > > > > > Regards > > > > > > > > Richard > > > > > > Global replace was added in revision #3753. > > > > > > To activate it, you must check the "Replace all" entry in the menu of > the > > > "Browse" MenuButton, just before starting browsing. > > > > That's a bit cryptic Benoit, there is room under the current procedure > > chekbox for a 'whole project' checkbox. > > > > REgards > > > > richard > > > > The global search & replace GUI should be simpler in revision #3765. > > Regards, > > -- > Beno?t Minisini > > > ------------------------------------------------------------------------------ > Benefiting from Server Virtualization: Beyond Initial Workload > Consolidation -- Increasing the use of server virtualization is a top > priority.Virtualization can reduce costs, simplify management, and improve > application availability and disaster protection. Learn more about boosting > the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From jussi.lahtinen at ...626... Sat Apr 16 19:03:17 2011 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Sat, 16 Apr 2011 20:03:17 +0300 Subject: [Gambas-user] Global search & replace In-Reply-To: References: <201104102144.04319.rterry@...1946...> <201104121241.20787.gambas@...1...> <201104131414.06919.rterry@...1946...> <201104150127.12982.gambas@...1...> Message-ID: Hmmm... that's not good, my error... it will be asked also when you use browse feature! And I'm not sure it is very logical to have "Replace", "Replace all" and "Browse and replace"... "Replace all" should replace all, not just in current directory. Jussi On Sat, Apr 16, 2011 at 19:45, Jussi Lahtinen wrote: > It's good now, but I would like to see confirmation question, in case of > accidental click on wrong button. > My suggested code to FSearch: > > Private Sub Browse(Optional bOnlySource As Boolean, Optional bReplace As > Boolean) > > Dim sDir As String > Dim sFile As String > Dim sPath As String > Dim iPos As Integer > Dim iLen As Integer > Dim aFind As String[] > Dim sName As String > Dim sExt As String > > If InitSearch() Then Return > 'OnlySource = bOnlySource > > * If Message.Question(Subst$(("Are you sure you want to replace all > intances of '&1' with '&2'?"), SearchString, ReplaceString), ("Yes"), > ("No")) <> 1 Then Return* > > ... > > > Jussi > > > > > 2011/4/15 Beno?t Minisini > >> > On Tuesday 12 April 2011 20:41:20 Beno?t Minisini wrote: >> > > > On Sunday 10 April 2011 22:17:20 Olivier Cruilles wrote: >> > > > Thanks, I'll try that, but I would have thought the gambas editor >> > > > should accomodate global replaces. >> > > > >> > > > Regards >> > > > >> > > > Richard >> > > >> > > Global replace was added in revision #3753. >> > > >> > > To activate it, you must check the "Replace all" entry in the menu of >> the >> > > "Browse" MenuButton, just before starting browsing. >> > >> > That's a bit cryptic Benoit, there is room under the current procedure >> > chekbox for a 'whole project' checkbox. >> > >> > REgards >> > >> > richard >> > >> >> The global search & replace GUI should be simpler in revision #3765. >> >> Regards, >> >> -- >> Beno?t Minisini >> >> >> ------------------------------------------------------------------------------ >> Benefiting from Server Virtualization: Beyond Initial Workload >> Consolidation -- Increasing the use of server virtualization is a top >> priority.Virtualization can reduce costs, simplify management, and improve >> application availability and disaster protection. Learn more about >> boosting >> the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > From jussi.lahtinen at ...626... Sat Apr 16 19:12:16 2011 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Sat, 16 Apr 2011 20:12:16 +0300 Subject: [Gambas-user] Global search & replace In-Reply-To: References: <201104102144.04319.rterry@...1946...> <201104121241.20787.gambas@...1...> <201104131414.06919.rterry@...1946...> <201104150127.12982.gambas@...1...> Message-ID: Public Sub btnBrowseReplace_Click() If InitSearch() Then Return If Message.Question(Subst$(("Are you sure you want to replace all intances of '&1' with '&2'?"), SearchString, ReplaceString), ("Yes"), ("No")) <> 1 Then Return Browse(chkSourceOnly.Value, True) End Jussi On Sat, Apr 16, 2011 at 20:03, Jussi Lahtinen wrote: > Hmmm... that's not good, my error... it will be asked also when you use > browse feature! > And I'm not sure it is very logical to have "Replace", "Replace all" and > "Browse and replace"... > "Replace all" should replace all, not just in current directory. > > Jussi > > > > On Sat, Apr 16, 2011 at 19:45, Jussi Lahtinen wrote: > >> It's good now, but I would like to see confirmation question, in case of >> accidental click on wrong button. >> My suggested code to FSearch: >> >> Private Sub Browse(Optional bOnlySource As Boolean, Optional bReplace As >> Boolean) >> >> Dim sDir As String >> Dim sFile As String >> Dim sPath As String >> Dim iPos As Integer >> Dim iLen As Integer >> Dim aFind As String[] >> Dim sName As String >> Dim sExt As String >> >> If InitSearch() Then Return >> 'OnlySource = bOnlySource >> >> * If Message.Question(Subst$(("Are you sure you want to replace all >> intances of '&1' with '&2'?"), SearchString, ReplaceString), ("Yes"), >> ("No")) <> 1 Then Return* >> >> ... >> >> >> Jussi >> >> >> >> >> 2011/4/15 Beno?t Minisini >> >>> > On Tuesday 12 April 2011 20:41:20 Beno?t Minisini wrote: >>> > > > On Sunday 10 April 2011 22:17:20 Olivier Cruilles wrote: >>> > > > Thanks, I'll try that, but I would have thought the gambas editor >>> > > > should accomodate global replaces. >>> > > > >>> > > > Regards >>> > > > >>> > > > Richard >>> > > >>> > > Global replace was added in revision #3753. >>> > > >>> > > To activate it, you must check the "Replace all" entry in the menu of >>> the >>> > > "Browse" MenuButton, just before starting browsing. >>> > >>> > That's a bit cryptic Benoit, there is room under the current procedure >>> > chekbox for a 'whole project' checkbox. >>> > >>> > REgards >>> > >>> > richard >>> > >>> >>> The global search & replace GUI should be simpler in revision #3765. >>> >>> Regards, >>> >>> -- >>> Beno?t Minisini >>> >>> >>> ------------------------------------------------------------------------------ >>> Benefiting from Server Virtualization: Beyond Initial Workload >>> Consolidation -- Increasing the use of server virtualization is a top >>> priority.Virtualization can reduce costs, simplify management, and >>> improve >>> application availability and disaster protection. Learn more about >>> boosting >>> the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev >>> _______________________________________________ >>> Gambas-user mailing list >>> Gambas-user at lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>> >> >> > From jussi.lahtinen at ...626... Sat Apr 16 19:16:03 2011 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Sat, 16 Apr 2011 20:16:03 +0300 Subject: [Gambas-user] Global search & replace In-Reply-To: References: <201104102144.04319.rterry@...1946...> <201104121241.20787.gambas@...1...> <201104131414.06919.rterry@...1946...> <201104150127.12982.gambas@...1...> Message-ID: "intances", should be "instances"... sometimes hard to get it right.... Jussi On Sat, Apr 16, 2011 at 20:12, Jussi Lahtinen wrote: > Public Sub btnBrowseReplace_Click() > > If InitSearch() Then Return > > > If Message.Question(Subst$(("Are you sure you want to replace all > intances of '&1' with '&2'?"), SearchString, ReplaceString), ("Yes"), > ("No")) <> 1 Then Return > > Browse(chkSourceOnly.Value, True) > > End > > > Jussi > > > > > On Sat, Apr 16, 2011 at 20:03, Jussi Lahtinen wrote: > >> Hmmm... that's not good, my error... it will be asked also when you use >> browse feature! >> And I'm not sure it is very logical to have "Replace", "Replace all" and >> "Browse and replace"... >> "Replace all" should replace all, not just in current directory. >> >> Jussi >> >> >> >> On Sat, Apr 16, 2011 at 19:45, Jussi Lahtinen wrote: >> >>> It's good now, but I would like to see confirmation question, in case of >>> accidental click on wrong button. >>> My suggested code to FSearch: >>> >>> Private Sub Browse(Optional bOnlySource As Boolean, Optional bReplace As >>> Boolean) >>> >>> Dim sDir As String >>> Dim sFile As String >>> Dim sPath As String >>> Dim iPos As Integer >>> Dim iLen As Integer >>> Dim aFind As String[] >>> Dim sName As String >>> Dim sExt As String >>> >>> If InitSearch() Then Return >>> 'OnlySource = bOnlySource >>> >>> * If Message.Question(Subst$(("Are you sure you want to replace all >>> intances of '&1' with '&2'?"), SearchString, ReplaceString), ("Yes"), >>> ("No")) <> 1 Then Return* >>> >>> ... >>> >>> >>> Jussi >>> >>> >>> >>> >>> 2011/4/15 Beno?t Minisini >>> >>>> > On Tuesday 12 April 2011 20:41:20 Beno?t Minisini wrote: >>>> > > > On Sunday 10 April 2011 22:17:20 Olivier Cruilles wrote: >>>> > > > Thanks, I'll try that, but I would have thought the gambas editor >>>> > > > should accomodate global replaces. >>>> > > > >>>> > > > Regards >>>> > > > >>>> > > > Richard >>>> > > >>>> > > Global replace was added in revision #3753. >>>> > > >>>> > > To activate it, you must check the "Replace all" entry in the menu >>>> of the >>>> > > "Browse" MenuButton, just before starting browsing. >>>> > >>>> > That's a bit cryptic Benoit, there is room under the current procedure >>>> > chekbox for a 'whole project' checkbox. >>>> > >>>> > REgards >>>> > >>>> > richard >>>> > >>>> >>>> The global search & replace GUI should be simpler in revision #3765. >>>> >>>> Regards, >>>> >>>> -- >>>> Beno?t Minisini >>>> >>>> >>>> ------------------------------------------------------------------------------ >>>> Benefiting from Server Virtualization: Beyond Initial Workload >>>> Consolidation -- Increasing the use of server virtualization is a top >>>> priority.Virtualization can reduce costs, simplify management, and >>>> improve >>>> application availability and disaster protection. Learn more about >>>> boosting >>>> the value of server virtualization. >>>> http://p.sf.net/sfu/vmware-sfdev2dev >>>> _______________________________________________ >>>> Gambas-user mailing list >>>> Gambas-user at lists.sourceforge.net >>>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>>> >>> >>> >> > From gambas at ...1... Sat Apr 16 19:38:40 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sat, 16 Apr 2011 19:38:40 +0200 Subject: [Gambas-user] Global search & replace In-Reply-To: References: <201104102144.04319.rterry@...1946...> Message-ID: <201104161938.40790.gambas@...1...> > Hmmm... that's not good, my error... it will be asked also when you use > browse feature! > And I'm not sure it is very logical to have "Replace", "Replace all" and > "Browse and replace"... > "Replace all" should replace all, not just in current directory. > > Jussi > You mean "in current file", not "in current directory", do you? And yes, it is logical to replace all only in the current file. Think about renaming a private class variable, for example. -- Beno?t Minisini From jussi.lahtinen at ...626... Sat Apr 16 19:46:37 2011 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Sat, 16 Apr 2011 20:46:37 +0300 Subject: [Gambas-user] Global search & replace In-Reply-To: <201104161938.40790.gambas@...1...> References: <201104102144.04319.rterry@...1946...> <201104161938.40790.gambas@...1...> Message-ID: > You mean "in current file", not "in current directory", do you? > Oh, yes.. a lot of errors from me... > And yes, it is logical to replace all only in the current file. Think about > renaming a private class variable, for example. > I think you misunderstand what I meant... This is what I mean (look also at attachment): Public Sub btnReplaceAll_Click() If InitSearch() Then Return If chkCurrentFile.Value = True Then If Message.Question(Subst$(("Are you sure you want to replace all instances in this file of '&1' with '&2'?"), SearchString, ReplaceString),("Yes"), ("No")) <> 1 Then Return Run(GO_FORWARD + DO_REPLACE + DO_ALL) Else If Message.Question(Subst$(("Are you sure you want to replace all instances of '&1' with '&2'?"), SearchString, ReplaceString),("Yes"), ("No")) <> 1 Then Return Browse(chkSourceOnly.Value, True) Endif End Just testing it for errors... not my best day for me to concentrate. Jussi -------------- next part -------------- A non-text attachment was scrubbed... Name: myversion.png Type: image/png Size: 33352 bytes Desc: not available URL: From gambas at ...1... Sun Apr 17 02:01:31 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sun, 17 Apr 2011 02:01:31 +0200 Subject: [Gambas-user] Global search & replace In-Reply-To: References: <201104102144.04319.rterry@...1946...> <201104161938.40790.gambas@...1...> Message-ID: <201104170201.31501.gambas@...1...> > > You mean "in current file", not "in current directory", do you? > > Oh, yes.. a lot of errors from me... > > > And yes, it is logical to replace all only in the current file. Think > > about renaming a private class variable, for example. > > I think you misunderstand what I meant... > This is what I mean (look also at attachment): > > Public Sub btnReplaceAll_Click() > > If InitSearch() Then Return > > If chkCurrentFile.Value = True Then > > If Message.Question(Subst$(("Are you sure you want to replace all > instances in this file of '&1' with '&2'?"), SearchString, > ReplaceString),("Yes"), ("No")) <> 1 Then Return > > Run(GO_FORWARD + DO_REPLACE + DO_ALL) > Else > > If Message.Question(Subst$(("Are you sure you want to replace all > instances of '&1' with '&2'?"), SearchString, ReplaceString),("Yes"), > ("No")) <> 1 Then Return > > Browse(chkSourceOnly.Value, True) > Endif > > End > > Just testing it for errors... not my best day for me to concentrate. > > > Jussi I think what I have done in revision #3772 is a bit more practical. Tell me! -- Beno?t Minisini From shanep at ...2481... Sun Apr 17 02:16:52 2011 From: shanep at ...2481... (Shane Powell) Date: Sun, 17 Apr 2011 10:16:52 +1000 Subject: [Gambas-user] an "Is this possible question" about images In-Reply-To: <201104162138.35482.rterry@...1946...> References: <201104151315.44281.rterry@...1946...> <201104161527.09596.rterry@...1946...> <4DA97036.90501@...2481...> <201104162138.35482.rterry@...1946...> Message-ID: <4DAA3174.5090708@...2481...> On 16/04/11 21:38, richard terry wrote: > On Saturday 16 April 2011 20:32:22 Shane Powell wrote: > Hi Shane, > > I''ve re-arranged the screen from 0.0.3 to show you what happens when you > have a (roughly) proportional picture. > > If you leave the drawing code as is in DrawingArea1_Draw() you'll see what I > mean about the area under the mouse cursor point not being translated into the > viewing window. I've set it back to the shoulder Xray which is tiny. > > I wondered if there was a logical relationship then, between the mouse cursor > using this drawing method and what to show. > > Regards > > Richard > >> On 16/04/11 15:27, richard terry wrote: >>> On Saturday 16 April 2011 10:29:15 Shane Powell wrote: >>> >>> Hi Shane, >>> >>> I had an 11MB picture I wanted to magnify (I'll send you an image of this >>> off list), with your last code iteration only part of the image was >>> shown, so I changed the code in the drawingarea1_draw, to make the whole >>> image show. >>> >>> However now, the mouse pointer dosn't show what's under it. >>> >>> ?? fixable?? >>> >>> I'll send make the picture where the mouse was so that you can see what >>> the mouse was actually pointing at and what showed in the magnified area. >>> >>> Otherwise, the prototype looks good. We should buff it up and put it into >>> the gambas examples! >>> >>> Regards >>> >>> richard >>> >>>> On 16/04/11 08:53, richard terry wrote: >>>>> On Saturday 16 April 2011 00:23:47 Shane Powell wrote: >>>>> >>>>> Thanks heaps to shane, Caveat and all - I'll try a look at all this >>>>> today and report back. >>>>> >>>>> Regards >>>>> >>>>> Richard >>>>> >>>>>> On 15/04/11 22:58, richard terry wrote: >>>>>>> On Friday 15 April 2011 17:02:25 richard terry wrote: >>>>>>> Hi Kevin/List, >>>>>>> >>>>>>> I took at quick look at this, but my lame brain never functions with >>>>>>> basic mathematical problems, I enclose an embryonic code. >>>>>>> >>>>>>> This 'sort of' works, theres a drawing area into which I loaded the >>>>>>> image of a shoulder Xray and then another on top which will be the >>>>>>> magnifier. I put a couple of textboxes on it to change some of the >>>>>>> internal values, but can't seem to figure out the magnification >>>>>>> factors. >>>>>>> >>>>>>> If I click over this it does move around and magnify, albeit not >>>>>>> lined up properly and sometimes it seems to get lost. It would be >>>>>>> nice to have this be say a circle, with a border, and be accurate, >>>>>>> maybe someone can modfy the code to make it work. >>>>>>> >>>>>>> Any help appreciated. >>>>>>> >>>>>>>> On Friday 15 April 2011 16:15:13 Kevin Fishburne wrote: >>>>>>>> Thanks, and to Rolf-Werner Eilert's reply, I'll take a look at >>>>>>>> these suggestions when I go home. >>>>>>>> >>>>>>>> I need a little 'side project' to stave off the bordum of the >>>>>>>> hum-drum debugging of the main project. >>>>>>>> >>>>>>>> Will post back my sucess or lack therof >>>>>>>> >>>>>>>> Regards >>>>>>>> >>>>>>>> Richard >>>>>>>> >>>>>>>>> On 04/15/2011 12:47 AM, richard terry wrote: >>>>>>>>>>> Do you need it to look like a fisheye-style lens effect, or just >>>>>>>>>>> box-zoom an area? If the latter this can be done easily in gb >>>>>>>>>>> code. >>>>>>>>>> Just the box-zoom . >>>>>>>>>> >>>>>>>>>> Any change of you giving me a helping hand? I've not done anything >>>>>>>>>> much with images or drawing. >>>>>>>>>> >>>>>>>>>> I'll mail you a sample png if you want - the purpose here is to >>>>>>>>>> magnify areas of either skin, xray films or dermatascope images - >>>>>>>>>> all are images at the end of the day. >>>>>>>>>> >>>>>>>>>> Its for our open - source medical records project that Ian and I >>>>>>>>>> are chuggling slowly along with - not releasable as yet by I'm >>>>>>>>>> hoping that by the end of 2011 it will be pretty much beta. >>>>>>>>> That is very cool. I'm doing a game so I know a little about images >>>>>>>>> in gb. >>>>>>>>> >>>>>>>>> I'm going to assume that you're using Qt or GTK and not SDL or >>>>>>>>> OpenGL, but correct me if I'm wrong. For those the easiest way to >>>>>>>>> do graphics is with a DrawingArea control. After creating it on the >>>>>>>>> form I'd change the Cached property to True so it will >>>>>>>>> automatically redraw itself if something moves over it. >>>>>>>>> >>>>>>>>> You create image variables and load image files into them like >>>>>>>>> this: >>>>>>>>> >>>>>>>>> Dim/Public someimage As Image >>>>>>>>> someimage = Image.Load("FleshEatingVirusNooooo.jpg") >>>>>>>>> >>>>>>>>> You write images to the DrawingArea control like this: >>>>>>>>> >>>>>>>>> Draw.Begin(DrawingArea1) >>>>>>>>> Draw.Image(someimage, X, Y, [Width, Height, SrcX, SrcY, >>>>>>>>> SrcWidth, SrcHeight]) >>>>>>>>> ' Add more "Draw.Image" statements here to composite >>>>>>>>> additional images into the DrawingArea. >>>>>>>>> Draw.End ' Commits the composition to the DrawingArea so that it >>>>>>>>> may be seen. May need a "Wait" statement if done repeatedly. >>>>>>>>> >>>>>>>>> The [bracketed] parameters are optional. someimage is the source >>>>>>>>> and the DrawingArea is the target. You can specify a subset of the >>>>>>>>> source (the area to be zoomed) by playing with SrcX and SrcY >>>>>>>>> (upper-left corner of source to be drawn) and SrcWidth and >>>>>>>>> SrcHeight (width and height relative to SrcX and SrcY of source to >>>>>>>>> be drawn). You can scale the source by playing with Width and >>>>>>>>> Height. >>>>>>>>> >>>>>>>>> So that the source image writes to the DrawingArea don't leave a >>>>>>>>> trail, I'd first draw the main (unzoomed) image to the DrawingArea, >>>>>>>>> then draw the zoomed area onto that for each "frame" that you draw. >>>>>>>>> The logic would go something like: >>>>>>>>> >>>>>>>>> ' Create your image variables. >>>>>>>>> ' Load images into your image variables. >>>>>>>>> Draw.Begin(DrawingAreaControlName) >>>>>>>>> ' Draw the main image into the DrawingArea. >>>>>>>>> ' Draw part of the main image into the DrawingArea adjusted by >>>>>>>>> cursor position, zoom area size and zoom level. >>>>>>>>> ' Draw text or whatever else you need to into the DrawingArea. >>>>>>>>> Draw.End >>>>>>>>> >>>>>>>>> To draw text, which is really cool, you may do something like this >>>>>>>>> inside the Draw.Begin/End: >>>>>>>>> >>>>>>>>> Draw.Foreground = Color.Black >>>>>>>>> Draw.Text("Look, it's text on an image with a crappy shadow!!!", X, >>>>>>>>> Y) Draw.Foreground = Color.White >>>>>>>>> Draw.Text("Look, it's text on an image with a crappy shadow!!!", X >>>>>>>>> + 1, Y - 1) >>>>>>>>> >>>>>>>>> I don't have any project examples that are simple enough to >>>>>>>>> demonstrate this, but if you're really having trouble I could put >>>>>>>>> something together. >>>>>>>> -------------------------------------------------------------------- >>>>>>>> -- -- --- --- Benefiting from Server Virtualization: Beyond Initial >>>>>>>> Workload Consolidation -- Increasing the use of server >>>>>>>> virtualization is a top priority.Virtualization can reduce costs, >>>>>>>> simplify management, and improve application availability and >>>>>>>> disaster protection. Learn more about boosting the value of server >>>>>>>> virtualization. >>>>>>>> http://p.sf.net/sfu/vmware-sfdev2dev >>>>>>>> _______________________________________________ >>>>>>>> Gambas-user mailing list >>>>>>>> Gambas-user at lists.sourceforge.net >>>>>>>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> -------------------------------------------------------------------- >>>>>>>> -- -- ------ Benefiting from Server Virtualization: Beyond Initial >>>>>>>> Workload Consolidation -- Increasing the use of server >>>>>>>> virtualization is a top priority.Virtualization can reduce costs, >>>>>>>> simplify management, and improve application availability and >>>>>>>> disaster protection. Learn more about boosting the value of server >>>>>>>> virtualization. >>>>>>>> http://p.sf.net/sfu/vmware-sfdev2dev >>>>>>>> >>>>>>>> >>>>>>>> _______________________________________________ >>>>>>>> Gambas-user mailing list >>>>>>>> Gambas-user at lists.sourceforge.net >>>>>>>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>>>>> this is how i would do it when the mouse cursor get to the right or >>>>>> the bottom of the image it starts to strech but you could just limit >>>>>> the mouse travel and the rest you could make how you wanted easy i >>>>>> think hope it helps >>>>> ----------------------------------------------------------------------- >>>>> -- ----- Benefiting from Server Virtualization: Beyond Initial Workload >>>>> Consolidation -- Increasing the use of server virtualization is a top >>>>> priority.Virtualization can reduce costs, simplify management, and >>>>> improve application availability and disaster protection. Learn more >>>>> about boosting the value of server virtualization. >>>>> http://p.sf.net/sfu/vmware-sfdev2dev >>>>> _______________________________________________ >>>>> Gambas-user mailing list >>>>> Gambas-user at lists.sourceforge.net >>>>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>>> just some more tinkering >>>> >>>> >>>> >>>> ------------------------------------------------------------------------ >>>> ------ Benefiting from Server Virtualization: Beyond Initial Workload >>>> Consolidation -- Increasing the use of server virtualization is a top >>>> priority.Virtualization can reduce costs, simplify management, and >>>> improve application availability and disaster protection. Learn more >>>> about boosting the value of server virtualization. >>>> http://p.sf.net/sfu/vmware-sfdev2dev >>>> >>>> >>>> _______________________________________________ >>>> Gambas-user mailing list >>>> Gambas-user at lists.sourceforge.net >>>> https://lists.sourceforge.net/lists/listinfo/gambas-user >> hi richard try this >> >> >> >> ------------------------------------------------------------------------------ >> Benefiting from Server Virtualization: Beyond Initial Workload >> Consolidation -- Increasing the use of server virtualization is a top >> priority.Virtualization can reduce costs, simplify management, and improve >> application availability and disaster protection. Learn more about boosting >> the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev >> >> >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user ok i see what you mean The reason for this is the magnifying code works with the original picture loaded but when you load the main picture it has been scaled up to fit the drawing area or in some case maybe scaled down and possibly not keeping the aspect ratio. to my mind showing the picture at it original size and then magnifying a small area would be the way to but if not you just need to work with the picture in the drawingarea. also if this is the case why not just scale the whole picture up and down ? From jussi.lahtinen at ...626... Sun Apr 17 02:29:35 2011 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Sun, 17 Apr 2011 03:29:35 +0300 Subject: [Gambas-user] Global search & replace In-Reply-To: <201104170201.31501.gambas@...1...> References: <201104102144.04319.rterry@...1946...> <201104161938.40790.gambas@...1...> <201104170201.31501.gambas@...1...> Message-ID: Yes, good job! Now it's clear and logical. Jussi 2011/4/17 Beno?t Minisini > > > You mean "in current file", not "in current directory", do you? > > > > Oh, yes.. a lot of errors from me... > > > > > And yes, it is logical to replace all only in the current file. Think > > > about renaming a private class variable, for example. > > > > I think you misunderstand what I meant... > > This is what I mean (look also at attachment): > > > > Public Sub btnReplaceAll_Click() > > > > If InitSearch() Then Return > > > > If chkCurrentFile.Value = True Then > > > > If Message.Question(Subst$(("Are you sure you want to replace all > > instances in this file of '&1' with '&2'?"), SearchString, > > ReplaceString),("Yes"), ("No")) <> 1 Then Return > > > > Run(GO_FORWARD + DO_REPLACE + DO_ALL) > > Else > > > > If Message.Question(Subst$(("Are you sure you want to replace all > > instances of '&1' with '&2'?"), SearchString, ReplaceString),("Yes"), > > ("No")) <> 1 Then Return > > > > Browse(chkSourceOnly.Value, True) > > Endif > > > > End > > > > Just testing it for errors... not my best day for me to concentrate. > > > > > > Jussi > > I think what I have done in revision #3772 is a bit more practical. Tell > me! > > -- > Beno?t Minisini > > > ------------------------------------------------------------------------------ > Benefiting from Server Virtualization: Beyond Initial Workload > Consolidation -- Increasing the use of server virtualization is a top > priority.Virtualization can reduce costs, simplify management, and improve > application availability and disaster protection. Learn more about boosting > the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From rterry at ...1946... Sun Apr 17 05:21:49 2011 From: rterry at ...1946... (richard terry) Date: Sun, 17 Apr 2011 13:21:49 +1000 Subject: [Gambas-user] an "Is this possible question" about images In-Reply-To: <4DAA3174.5090708@...2481...> References: <201104151315.44281.rterry@...1946...> <201104162138.35482.rterry@...1946...> <4DAA3174.5090708@...2481...> Message-ID: <201104171321.49555.rterry@...1946...> On Sunday 17 April 2011 10:16:52 Shane Powell wrote: > On 16/04/11 21:38, richard terry wrote: > > On Saturday 16 April 2011 20:32:22 Shane Powell wrote: > > Hi Shane, > > > > I''ve re-arranged the screen from 0.0.3 to show you what happens when > > you have a (roughly) proportional picture. > > > > If you leave the drawing code as is in DrawingArea1_Draw() you'll see > > what I mean about the area under the mouse cursor point not being > > translated into the viewing window. I've set it back to the shoulder Xray > > which is tiny. > > > > I wondered if there was a logical relationship then, between the mouse > > cursor using this drawing method and what to show. > > > > Regards > > > > Richard > > > >> On 16/04/11 15:27, richard terry wrote: > >>> On Saturday 16 April 2011 10:29:15 Shane Powell wrote: > >>> > >>> Hi Shane, > >>> > >>> I had an 11MB picture I wanted to magnify (I'll send you an image of > >>> this off list), with your last code iteration only part of the image > >>> was shown, so I changed the code in the drawingarea1_draw, to make the > >>> whole image show. > >>> > >>> However now, the mouse pointer dosn't show what's under it. > >>> > >>> ?? fixable?? > >>> > >>> I'll send make the picture where the mouse was so that you can see what > >>> the mouse was actually pointing at and what showed in the magnified > >>> area. > >>> > >>> Otherwise, the prototype looks good. We should buff it up and put it > >>> into the gambas examples! > >>> > >>> Regards > >>> > >>> richard > >>> > >>>> On 16/04/11 08:53, richard terry wrote: > >>>>> On Saturday 16 April 2011 00:23:47 Shane Powell wrote: > >>>>> > >>>>> Thanks heaps to shane, Caveat and all - I'll try a look at all this > >>>>> today and report back. > >>>>> > >>>>> Regards > >>>>> > >>>>> Richard > >>>>> > >>>>>> On 15/04/11 22:58, richard terry wrote: > >>>>>>> On Friday 15 April 2011 17:02:25 richard terry wrote: > >>>>>>> Hi Kevin/List, > >>>>>>> > >>>>>>> I took at quick look at this, but my lame brain never functions > >>>>>>> with basic mathematical problems, I enclose an embryonic code. > >>>>>>> > >>>>>>> This 'sort of' works, theres a drawing area into which I loaded the > >>>>>>> image of a shoulder Xray and then another on top which will be the > >>>>>>> magnifier. I put a couple of textboxes on it to change some of the > >>>>>>> internal values, but can't seem to figure out the magnification > >>>>>>> factors. > >>>>>>> > >>>>>>> If I click over this it does move around and magnify, albeit not > >>>>>>> lined up properly and sometimes it seems to get lost. It would be > >>>>>>> nice to have this be say a circle, with a border, and be accurate, > >>>>>>> maybe someone can modfy the code to make it work. > >>>>>>> > >>>>>>> Any help appreciated. > >>>>>>> > >>>>>>>> On Friday 15 April 2011 16:15:13 Kevin Fishburne wrote: > >>>>>>>> Thanks, and to Rolf-Werner Eilert's reply, I'll take a look at > >>>>>>>> these suggestions when I go home. > >>>>>>>> > >>>>>>>> I need a little 'side project' to stave off the bordum of the > >>>>>>>> hum-drum debugging of the main project. > >>>>>>>> > >>>>>>>> Will post back my sucess or lack therof > >>>>>>>> > >>>>>>>> Regards > >>>>>>>> > >>>>>>>> Richard > >>>>>>>> > >>>>>>>>> On 04/15/2011 12:47 AM, richard terry wrote: > >>>>>>>>>>> Do you need it to look like a fisheye-style lens effect, or > >>>>>>>>>>> just box-zoom an area? If the latter this can be done easily in > >>>>>>>>>>> gb code. > >>>>>>>>>> > >>>>>>>>>> Just the box-zoom . > >>>>>>>>>> > >>>>>>>>>> Any change of you giving me a helping hand? I've not done > >>>>>>>>>> anything much with images or drawing. > >>>>>>>>>> > >>>>>>>>>> I'll mail you a sample png if you want - the purpose here is to > >>>>>>>>>> magnify areas of either skin, xray films or dermatascope images > >>>>>>>>>> - all are images at the end of the day. > >>>>>>>>>> > >>>>>>>>>> Its for our open - source medical records project that Ian and I > >>>>>>>>>> are chuggling slowly along with - not releasable as yet by I'm > >>>>>>>>>> hoping that by the end of 2011 it will be pretty much beta. > >>>>>>>>> > >>>>>>>>> That is very cool. I'm doing a game so I know a little about > >>>>>>>>> images in gb. > >>>>>>>>> > >>>>>>>>> I'm going to assume that you're using Qt or GTK and not SDL or > >>>>>>>>> OpenGL, but correct me if I'm wrong. For those the easiest way to > >>>>>>>>> do graphics is with a DrawingArea control. After creating it on > >>>>>>>>> the form I'd change the Cached property to True so it will > >>>>>>>>> automatically redraw itself if something moves over it. > >>>>>>>>> > >>>>>>>>> You create image variables and load image files into them like > >>>>>>>>> this: > >>>>>>>>> > >>>>>>>>> Dim/Public someimage As Image > >>>>>>>>> someimage = Image.Load("FleshEatingVirusNooooo.jpg") > >>>>>>>>> > >>>>>>>>> You write images to the DrawingArea control like this: > >>>>>>>>> > >>>>>>>>> Draw.Begin(DrawingArea1) > >>>>>>>>> Draw.Image(someimage, X, Y, [Width, Height, SrcX, SrcY, > >>>>>>>>> SrcWidth, SrcHeight]) > >>>>>>>>> ' Add more "Draw.Image" statements here to composite > >>>>>>>>> additional images into the DrawingArea. > >>>>>>>>> Draw.End ' Commits the composition to the DrawingArea so that it > >>>>>>>>> may be seen. May need a "Wait" statement if done repeatedly. > >>>>>>>>> > >>>>>>>>> The [bracketed] parameters are optional. someimage is the source > >>>>>>>>> and the DrawingArea is the target. You can specify a subset of > >>>>>>>>> the source (the area to be zoomed) by playing with SrcX and SrcY > >>>>>>>>> (upper-left corner of source to be drawn) and SrcWidth and > >>>>>>>>> SrcHeight (width and height relative to SrcX and SrcY of source > >>>>>>>>> to be drawn). You can scale the source by playing with Width and > >>>>>>>>> Height. > >>>>>>>>> > >>>>>>>>> So that the source image writes to the DrawingArea don't leave a > >>>>>>>>> trail, I'd first draw the main (unzoomed) image to the > >>>>>>>>> DrawingArea, then draw the zoomed area onto that for each "frame" > >>>>>>>>> that you draw. The logic would go something like: > >>>>>>>>> > >>>>>>>>> ' Create your image variables. > >>>>>>>>> ' Load images into your image variables. > >>>>>>>>> Draw.Begin(DrawingAreaControlName) > >>>>>>>>> ' Draw the main image into the DrawingArea. > >>>>>>>>> ' Draw part of the main image into the DrawingArea adjusted by > >>>>>>>>> cursor position, zoom area size and zoom level. > >>>>>>>>> ' Draw text or whatever else you need to into the DrawingArea. > >>>>>>>>> Draw.End > >>>>>>>>> > >>>>>>>>> To draw text, which is really cool, you may do something like > >>>>>>>>> this inside the Draw.Begin/End: > >>>>>>>>> > >>>>>>>>> Draw.Foreground = Color.Black > >>>>>>>>> Draw.Text("Look, it's text on an image with a crappy shadow!!!", > >>>>>>>>> X, Y) Draw.Foreground = Color.White > >>>>>>>>> Draw.Text("Look, it's text on an image with a crappy shadow!!!", > >>>>>>>>> X + 1, Y - 1) > >>>>>>>>> > >>>>>>>>> I don't have any project examples that are simple enough to > >>>>>>>>> demonstrate this, but if you're really having trouble I could put > >>>>>>>>> something together. > >>>>>>>> > >>>>>>>> ------------------------------------------------------------------ > >>>>>>>>-- -- -- --- --- Benefiting from Server Virtualization: Beyond > >>>>>>>> Initial Workload Consolidation -- Increasing the use of server > >>>>>>>> virtualization is a top priority.Virtualization can reduce costs, > >>>>>>>> simplify management, and improve application availability and > >>>>>>>> disaster protection. Learn more about boosting the value of server > >>>>>>>> virtualization. > >>>>>>>> http://p.sf.net/sfu/vmware-sfdev2dev > >>>>>>>> _______________________________________________ > >>>>>>>> Gambas-user mailing list > >>>>>>>> Gambas-user at lists.sourceforge.net > >>>>>>>> https://lists.sourceforge.net/lists/listinfo/gambas-user > >>>>>>>> > >>>>>>>> > >>>>>>>> > >>>>>>>> ------------------------------------------------------------------ > >>>>>>>>-- -- -- ------ Benefiting from Server Virtualization: Beyond > >>>>>>>> Initial Workload Consolidation -- Increasing the use of server > >>>>>>>> virtualization is a top priority.Virtualization can reduce costs, > >>>>>>>> simplify management, and improve application availability and > >>>>>>>> disaster protection. Learn more about boosting the value of server > >>>>>>>> virtualization. > >>>>>>>> http://p.sf.net/sfu/vmware-sfdev2dev > >>>>>>>> > >>>>>>>> > >>>>>>>> _______________________________________________ > >>>>>>>> Gambas-user mailing list > >>>>>>>> Gambas-user at lists.sourceforge.net > >>>>>>>> https://lists.sourceforge.net/lists/listinfo/gambas-user > >>>>>> > >>>>>> this is how i would do it when the mouse cursor get to the right or > >>>>>> the bottom of the image it starts to strech but you could just limit > >>>>>> the mouse travel and the rest you could make how you wanted easy i > >>>>>> think hope it helps > >>>>> > >>>>> --------------------------------------------------------------------- > >>>>>-- -- ----- Benefiting from Server Virtualization: Beyond Initial > >>>>> Workload Consolidation -- Increasing the use of server virtualization > >>>>> is a top priority.Virtualization can reduce costs, simplify > >>>>> management, and improve application availability and disaster > >>>>> protection. Learn more about boosting the value of server > >>>>> virtualization. > >>>>> http://p.sf.net/sfu/vmware-sfdev2dev > >>>>> _______________________________________________ > >>>>> Gambas-user mailing list > >>>>> Gambas-user at lists.sourceforge.net > >>>>> https://lists.sourceforge.net/lists/listinfo/gambas-user > >>>> > >>>> just some more tinkering > >>>> > >>>> > >>>> > >>>> ---------------------------------------------------------------------- > >>>>-- ------ Benefiting from Server Virtualization: Beyond Initial > >>>> Workload Consolidation -- Increasing the use of server virtualization > >>>> is a top priority.Virtualization can reduce costs, simplify > >>>> management, and improve application availability and disaster > >>>> protection. Learn more about boosting the value of server > >>>> virtualization. > >>>> http://p.sf.net/sfu/vmware-sfdev2dev > >>>> > >>>> > >>>> _______________________________________________ > >>>> Gambas-user mailing list > >>>> Gambas-user at lists.sourceforge.net > >>>> https://lists.sourceforge.net/lists/listinfo/gambas-user > >> > >> hi richard try this > >> > >> > >> > >> ------------------------------------------------------------------------ > >>------ Benefiting from Server Virtualization: Beyond Initial Workload > >> Consolidation -- Increasing the use of server virtualization is a top > >> priority.Virtualization can reduce costs, simplify management, and > >> improve application availability and disaster protection. Learn more > >> about boosting the value of server virtualization. > >> http://p.sf.net/sfu/vmware-sfdev2dev > >> > >> > >> _______________________________________________ > >> Gambas-user mailing list > >> Gambas-user at lists.sourceforge.net > >> https://lists.sourceforge.net/lists/listinfo/gambas-user > > ok i see what you mean The reason for this is the magnifying code works > with the original picture loaded but when you load the main picture it > has been scaled up to fit the drawing area or in some case maybe scaled > down and possibly not keeping the aspect ratio. to my mind showing the > picture at it original size and then magnifying a small area would be > the way to but if not you just need to work with the picture in the > drawingarea. also if this is the case why not just scale the whole > picture up and down ? One does need to see the whole picture, I guess displaying this keeping the aspect ration would be the way to go. Also my original method was to have a second drawing area with property not fixed, sitting on top of the picture, which the mouse would then move around magnifying what was under it. I had hoped at some point to make this a 'fancy' design - ie looking like a magnifying glass, with the contents being the magnifed area. For Xrays, the method you describe (up/down scaling) would work well. For dermoscopy pictures (hi-magnification snaps of skin lesions), you really need to move over a section of the image. Anway, thank for all your input/help. If you are interested in continuing to develop this little module, I'd love some help, as I don't have the abilities to do it. Regards Richard > > --------------------------------------------------------------------------- > --- Benefiting from Server Virtualization: Beyond Initial Workload > Consolidation -- Increasing the use of server virtualization is a top > priority.Virtualization can reduce costs, simplify management, and improve > application availability and disaster protection. Learn more about boosting > the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From rterry at ...1946... Sun Apr 17 05:23:42 2011 From: rterry at ...1946... (richard terry) Date: Sun, 17 Apr 2011 13:23:42 +1000 Subject: [Gambas-user] Menu (feature request) Message-ID: <201104171323.42831.rterry@...1946...> Hi Benoit, In my every evolving design environment I have many occasions to want to copy a menu structure from one form to another. At the moment, this is possible by a multi-select of the menu and its items, and a copy, then load the other form, and then paste it into the menu editor on the other form. Wondered if at any stage there could be a popup menu over the menu editor which would allow you to say copy to form or move to form. Regards Richard From rterry at ...1946... Sun Apr 17 07:35:59 2011 From: rterry at ...1946... (richard terry) Date: Sun, 17 Apr 2011 15:35:59 +1000 Subject: [Gambas-user] Version 3773 - code blocks Message-ID: <201104171535.59128.rterry@...1946...> HI Benoit, Been using this for a few hours with troublesome problems. Code blocks are no longer working - the program seems to skip over them which is making it very hard to debug. Regards Richard From demosthenesk at ...626... Sun Apr 17 08:18:56 2011 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Sun, 17 Apr 2011 09:18:56 +0300 Subject: [Gambas-user] Can not draw outside of draw event handler In-Reply-To: <201104161535.21637.gambas@...1...> References: <1301157879.30774.4.camel@...2493...> <201103300112.41326.gambas@...1...> <1301464663.15182.4.camel@...2493...> <201104161535.21637.gambas@...1...> Message-ID: <1303021136.483.3.camel@...2494...> ok! On Sat, 2011-04-16 at 15:35 +0200, Beno?t Minisini wrote: > > On Wed, 2011-03-30 at 01:12 +0200, Beno?t Minisini wrote: > > > > Please check that the Draw.FillRect uses the Background property and > > > > not the FillColor property. > > > > > > > > is this ok? > > > > > > > > > > > > See from previous email project99. > > > > > > Normally, Draw.FillRect() takes the color as its fifth argument. When not > > > specified, it actually uses the Background color. Do you think that it > > > should use the FillColor by default instead? > > > > yes my thought says, that i expected it should use the fillcolor > > property. > > Forgot to say that it was done in revision #3748. > > Regards, > -- Regards, Demosthenes From bugcy013 at ...626... Sun Apr 17 09:56:37 2011 From: bugcy013 at ...626... (Ganesh Kumar) Date: Sun, 17 Apr 2011 07:56:37 +0000 Subject: [Gambas-user] Display TextLabel on Message box In-Reply-To: References: <4DA9691E.2010702@...2481...> Message-ID: Hi Jussi, Thanks for your kindly input for me.. I want shell script output print in the textbox. Thats why i ask... please help me. > No, nothing wrong with the code. > It should display given message with OK button. > > But I don't think you can put TextLabel on Message box. > I think you need to write your own form for it. -Ganesh -- Did I learn something today? If not, I wasted it. From shanep at ...2481... Sun Apr 17 11:20:16 2011 From: shanep at ...2481... (Shane Powell) Date: Sun, 17 Apr 2011 19:20:16 +1000 Subject: [Gambas-user] Magnify Message-ID: <4DAAB0D0.8020802@...2481...> Hi Richard is this more what you are looking for you can now maximise for full screen still some bug e.g. when the mouse cursor moves to the edges From shanep at ...2481... Sun Apr 17 11:39:45 2011 From: shanep at ...2481... (Shane Powell) Date: Sun, 17 Apr 2011 19:39:45 +1000 Subject: [Gambas-user] Dialog filter Message-ID: <4DAAB561.8000404@...2481...> hi list Is there anyway of having all of the dialog filters as a filter e.g. *.png *. jpeg *.gif and then one for all the filters e.g. all supported graphics files From rterry at ...1946... Sun Apr 17 12:39:45 2011 From: rterry at ...1946... (richard terry) Date: Sun, 17 Apr 2011 20:39:45 +1000 Subject: [Gambas-user] Magnify In-Reply-To: <4DAAB0D0.8020802@...2481...> References: <4DAAB0D0.8020802@...2481...> Message-ID: <201104172039.45805.rterry@...1946...> On Sunday 17 April 2011 19:20:16 Shane Powell wrote: > Hi Richard is this more what you are looking for you can now maximise > for full screen > still some bug e.g. when the mouse cursor moves to the edges > > --------------------------------------------------------------------------- > --- Benefiting from Server Virtualization: Beyond Initial Workload > Consolidation -- Increasing the use of server virtualization is a top > priority.Virtualization can reduce costs, simplify management, and improve > application availability and disaster protection. Learn more about boosting > the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > Hi shane, No attatchement received, will look forward to seeing it. REgards Richard From Gambas at ...1950... Sun Apr 17 13:44:07 2011 From: Gambas at ...1950... (Caveat) Date: Sun, 17 Apr 2011 13:44:07 +0200 Subject: [Gambas-user] Magnify In-Reply-To: <201104172039.45805.rterry@...1946...> References: <4DAAB0D0.8020802@...2481...> <201104172039.45805.rterry@...1946...> Message-ID: <1303040647.3237.1.camel@...2150...> Just happened across this site, try hovering over the product image :-D http://www.aliexpress.com/fm-store/801365/210402976-365646138/Free-shipping-5QTY-Wifi-Bridge-Wireless-Access-Points-AP-for-Dreambox-RJ45-DM800-DM800HD-Dreambox-best.html Regards, Caveat On Sun, 2011-04-17 at 20:39 +1000, richard terry wrote: > On Sunday 17 April 2011 19:20:16 Shane Powell wrote: > > Hi Richard is this more what you are looking for you can now maximise > > for full screen > > still some bug e.g. when the mouse cursor moves to the edges > > > > --------------------------------------------------------------------------- > > --- Benefiting from Server Virtualization: Beyond Initial Workload > > Consolidation -- Increasing the use of server virtualization is a top > > priority.Virtualization can reduce costs, simplify management, and improve > > application availability and disaster protection. Learn more about boosting > > the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > Hi shane, > > No attatchement received, will look forward to seeing it. > > REgards > > Richard > > ------------------------------------------------------------------------------ > Benefiting from Server Virtualization: Beyond Initial Workload > Consolidation -- Increasing the use of server virtualization is a top > priority.Virtualization can reduce costs, simplify management, and improve > application availability and disaster protection. Learn more about boosting > the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From rterry at ...1946... Sun Apr 17 14:09:00 2011 From: rterry at ...1946... (richard terry) Date: Sun, 17 Apr 2011 22:09:00 +1000 Subject: [Gambas-user] Magnify In-Reply-To: <1303040647.3237.1.camel@...2150...> References: <4DAAB0D0.8020802@...2481...> <201104172039.45805.rterry@...1946...> <1303040647.3237.1.camel@...2150...> Message-ID: <201104172209.00802.rterry@...1946...> On Sunday 17 April 2011 21:44:07 Caveat wrote: > Just happened across this site, try hovering over the product image :-D > Yes, exactly the same concept we've been doing, except current co-ords a little off, but I think there is another update on the way. Richard > http://www.aliexpress.com/fm-store/801365/210402976-365646138/Free-shipping > -5QTY-Wifi-Bridge-Wireless-Access-Points-AP-for-Dreambox-RJ45-DM800-DM800HD > -Dreambox-best.html > > Regards, > Caveat > > On Sun, 2011-04-17 at 20:39 +1000, richard terry wrote: > > On Sunday 17 April 2011 19:20:16 Shane Powell wrote: > > > Hi Richard is this more what you are looking for you can now maximise > > > for full screen > > > still some bug e.g. when the mouse cursor moves to the edges > > > > > > ----------------------------------------------------------------------- > > >---- --- Benefiting from Server Virtualization: Beyond Initial Workload > > > Consolidation -- Increasing the use of server virtualization is a top > > > priority.Virtualization can reduce costs, simplify management, and > > > improve application availability and disaster protection. Learn more > > > about boosting the value of server virtualization. > > > http://p.sf.net/sfu/vmware-sfdev2dev > > > _______________________________________________ > > > Gambas-user mailing list > > > Gambas-user at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > Hi shane, > > > > No attatchement received, will look forward to seeing it. > > > > REgards > > > > Richard > > > > ------------------------------------------------------------------------- > >----- Benefiting from Server Virtualization: Beyond Initial Workload > > Consolidation -- Increasing the use of server virtualization is a top > > priority.Virtualization can reduce costs, simplify management, and > > improve application availability and disaster protection. Learn more > > about boosting the value of server virtualization. > > http://p.sf.net/sfu/vmware-sfdev2dev > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > --------------------------------------------------------------------------- > --- Benefiting from Server Virtualization: Beyond Initial Workload > Consolidation -- Increasing the use of server virtualization is a top > priority.Virtualization can reduce costs, simplify management, and improve > application availability and disaster protection. Learn more about boosting > the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From shanep at ...2481... Sun Apr 17 14:28:58 2011 From: shanep at ...2481... (Shane Powell) Date: Sun, 17 Apr 2011 22:28:58 +1000 Subject: [Gambas-user] Magnify In-Reply-To: <201104172039.45805.rterry@...1946...> References: <4DAAB0D0.8020802@...2481...> <201104172039.45805.rterry@...1946...> Message-ID: <4DAADD0A.4050208@...2481...> On 17/04/11 20:39, richard terry wrote: > On Sunday 17 April 2011 19:20:16 Shane Powell wrote: >> Hi Richard is this more what you are looking for you can now maximise >> for full screen >> still some bug e.g. when the mouse cursor moves to the edges >> >> --------------------------------------------------------------------------- >> --- Benefiting from Server Virtualization: Beyond Initial Workload >> Consolidation -- Increasing the use of server virtualization is a top >> priority.Virtualization can reduce costs, simplify management, and improve >> application availability and disaster protection. Learn more about boosting >> the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > Hi shane, > > No attatchement received, will look forward to seeing it. > > REgards > > Richard > > ------------------------------------------------------------------------------ > Benefiting from Server Virtualization: Beyond Initial Workload > Consolidation -- Increasing the use of server virtualization is a top > priority.Virtualization can reduce costs, simplify management, and improve > application availability and disaster protection. Learn more about boosting > the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user sorry -------------- next part -------------- A non-text attachment was scrubbed... Name: Mag-0.0.5.tar.gz Type: application/x-gzip Size: 5590 bytes Desc: not available URL: From rterry at ...1946... Sun Apr 17 15:35:16 2011 From: rterry at ...1946... (richard terry) Date: Sun, 17 Apr 2011 23:35:16 +1000 Subject: [Gambas-user] Magnify In-Reply-To: <4DAADD0A.4050208@...2481...> References: <4DAAB0D0.8020802@...2481...> <201104172039.45805.rterry@...1946...> <4DAADD0A.4050208@...2481...> Message-ID: <201104172335.16487.rterry@...1946...> On Sunday 17 April 2011 22:28:58 Shane Powell wrote: Hi Shane, that's getting pretty cool. Maybe someone on the list can show how to make the magnified inset have an outline like say a magnifying glass! Also I wonder if there is some way to have it expand with the size of the form and still retain its accuracy. Anway, its great, thanks for your efforts on this. Regards Richard > On 17/04/11 20:39, richard terry wrote: > > On Sunday 17 April 2011 19:20:16 Shane Powell wrote: > >> Hi Richard is this more what you are looking for you can now maximise > >> for full screen > >> still some bug e.g. when the mouse cursor moves to the edges > >> > >> ------------------------------------------------------------------------ > >>--- --- Benefiting from Server Virtualization: Beyond Initial Workload > >> Consolidation -- Increasing the use of server virtualization is a top > >> priority.Virtualization can reduce costs, simplify management, and > >> improve application availability and disaster protection. Learn more > >> about boosting the value of server virtualization. > >> http://p.sf.net/sfu/vmware-sfdev2dev > >> _______________________________________________ > >> Gambas-user mailing list > >> Gambas-user at lists.sourceforge.net > >> https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > Hi shane, > > > > No attatchement received, will look forward to seeing it. > > > > REgards > > > > Richard > > > > ------------------------------------------------------------------------- > >----- Benefiting from Server Virtualization: Beyond Initial Workload > > Consolidation -- Increasing the use of server virtualization is a top > > priority.Virtualization can reduce costs, simplify management, and > > improve application availability and disaster protection. Learn more > > about boosting the value of server virtualization. > > http://p.sf.net/sfu/vmware-sfdev2dev > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > sorry > From math.eber at ...221... Sun Apr 17 19:06:46 2011 From: math.eber at ...221... (Matti) Date: Sun, 17 Apr 2011 19:06:46 +0200 Subject: [Gambas-user] Dialog filter In-Reply-To: <4DAAB561.8000404@...2481...> References: <4DAAB561.8000404@...2481...> Message-ID: <4DAB1E26.8020909@...221...> Hi Shane, try something like Dialog.Filter = ["*.jpg; *.jpeg", ("JPEG files"), "*.jpg;*.jpeg;*.png;*.bmp", ("All picture files")] See wiki: [first pattern, first description, second pattern, second description, third...] Am 17.04.2011 11:39, schrieb Shane Powell: > hi list > Is there anyway of having all of the dialog filters as a filter > e.g. *.png *. jpeg *.gif and then one for all the filters e.g. all > supported graphics files > From gambas.fr at ...626... Sun Apr 17 22:08:07 2011 From: gambas.fr at ...626... (Fabien Bodard) Date: Sun, 17 Apr 2011 22:08:07 +0200 Subject: [Gambas-user] Magnify In-Reply-To: <201104172335.16487.rterry@...1946...> References: <4DAAB0D0.8020802@...2481...> <201104172039.45805.rterry@...1946...> <4DAADD0A.4050208@...2481...> <201104172335.16487.rterry@...1946...> Message-ID: Hi Richard, This is a short code that do what you need i think. It use a mix of the Draw and paint class... And it is fast Best regards, -- Fabien Bodard -------------- next part -------------- A non-text attachment was scrubbed... Name: Mag-0.0.5.tar.gz Type: application/x-gzip Size: 130960 bytes Desc: not available URL: From rterry at ...1946... Mon Apr 18 00:59:15 2011 From: rterry at ...1946... (richard terry) Date: Mon, 18 Apr 2011 08:59:15 +1000 Subject: [Gambas-user] Magnify In-Reply-To: References: <4DAAB0D0.8020802@...2481...> <201104172335.16487.rterry@...1946...> Message-ID: <201104180859.15662.rterry@...1946...> On Monday 18 April 2011 06:08:07 Fabien Bodard wrote: > Hi Richard, > > > This is a short code that do what you need i think. > > It use a mix of the Draw and paint class... And it is fast > > Best regards, > Thanks, I'll incorporate that into Shanes 0.0.5 and repost as 0.0.6 Richard From shanep at ...2481... Mon Apr 18 03:42:45 2011 From: shanep at ...2481... (Shane Powell) Date: Mon, 18 Apr 2011 11:42:45 +1000 Subject: [Gambas-user] Magnify In-Reply-To: References: <4DAAB0D0.8020802@...2481...> <201104172039.45805.rterry@...1946...> <4DAADD0A.4050208@...2481...> <201104172335.16487.rterry@...1946...> Message-ID: <4DAB9715.4060400@...2481...> On 18/04/11 06:08, Fabien Bodard wrote: > Hi Richard, > > > This is a short code that do what you need i think. > > It use a mix of the Draw and paint class... And it is fast > > Best regards, > > > > > ------------------------------------------------------------------------------ > Benefiting from Server Virtualization: Beyond Initial Workload > Consolidation -- Increasing the use of server virtualization is a top > priority.Virtualization can reduce costs, simplify management, and improve > application availability and disaster protection. Learn more about boosting > the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev > > > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user That great fabien haven't used paint before From shanep at ...2481... Mon Apr 18 03:54:07 2011 From: shanep at ...2481... (Shane Powell) Date: Mon, 18 Apr 2011 11:54:07 +1000 Subject: [Gambas-user] Dialog filter In-Reply-To: <4DAB1E26.8020909@...221...> References: <4DAAB561.8000404@...2481...> <4DAB1E26.8020909@...221...> Message-ID: <4DAB99BF.1040108@...2481...> On 18/04/11 03:06, Matti wrote: > Hi Shane, > > try something like > Dialog.Filter = ["*.jpg; *.jpeg", ("JPEG files"), "*.jpg;*.jpeg;*.png;*.bmp", > ("All picture files")] > > See wiki: [first pattern, first description, second pattern, second description, > third...] > > > Am 17.04.2011 11:39, schrieb Shane Powell: >> hi list >> Is there anyway of having all of the dialog filters as a filter >> e.g. *.png *. jpeg *.gif and then one for all the filters e.g. all >> supported graphics files >> > > ------------------------------------------------------------------------------ > Benefiting from Server Virtualization: Beyond Initial Workload > Consolidation -- Increasing the use of server virtualization is a top > priority.Virtualization can reduce costs, simplify management, and improve > application availability and disaster protection. Learn more about boosting > the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user Thanks Matti just what i was after From rterry at ...1946... Mon Apr 18 04:36:58 2011 From: rterry at ...1946... (richard terry) Date: Mon, 18 Apr 2011 12:36:58 +1000 Subject: [Gambas-user] Magnify In-Reply-To: <4DAB9715.4060400@...2481...> References: <4DAAB0D0.8020802@...2481...> <4DAB9715.4060400@...2481...> Message-ID: <201104181236.58978.rterry@...1946...> On Monday 18 April 2011 11:42:45 Shane Powell wrote: Shane, would you have time to add Fabiens code to yours and re-issue as 0.0.6? I think this little program should then go into the Gambas Examples as its really cool. Richard > On 18/04/11 06:08, Fabien Bodard wrote: > > Hi Richard, > > > > > > This is a short code that do what you need i think. > > > > It use a mix of the Draw and paint class... And it is fast > > > > Best regards, > > > > > > > > > > ------------------------------------------------------------------------- > >----- Benefiting from Server Virtualization: Beyond Initial Workload > > Consolidation -- Increasing the use of server virtualization is a top > > priority.Virtualization can reduce costs, simplify management, and > > improve application availability and disaster protection. Learn more > > about boosting the value of server virtualization. > > http://p.sf.net/sfu/vmware-sfdev2dev > > > > > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > That great fabien haven't used paint before > --------------------------------------------------------------------------- > --- Benefiting from Server Virtualization: Beyond Initial Workload > Consolidation -- Increasing the use of server virtualization is a top > priority.Virtualization can reduce costs, simplify management, and improve > application availability and disaster protection. Learn more about boosting > the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From shanep at ...2481... Mon Apr 18 06:25:05 2011 From: shanep at ...2481... (Shane Powell) Date: Mon, 18 Apr 2011 14:25:05 +1000 Subject: [Gambas-user] Magnify Message-ID: <4DABBD21.9010908@...2481...> here you go richard -------------- next part -------------- A non-text attachment was scrubbed... Name: Magnify-0.0.6.tar.gz Type: application/x-gzip Size: 130779 bytes Desc: not available URL: From rterry at ...1946... Mon Apr 18 06:55:33 2011 From: rterry at ...1946... (richard terry) Date: Mon, 18 Apr 2011 14:55:33 +1000 Subject: [Gambas-user] Magnify In-Reply-To: <4DABBD21.9010908@...2481...> References: <4DABBD21.9010908@...2481...> Message-ID: <201104181455.33953.rterry@...1946...> On Monday 18 April 2011 14:25:05 Shane Powell wrote: > here you go richard > Thanks, I"ll take a closer look tonight. The minimum magnification factor on this one seems too great to be useful, but maybe its adjustable. Regards richard From kevinfishburne at ...1887... Mon Apr 18 07:12:44 2011 From: kevinfishburne at ...1887... (Kevin Fishburne) Date: Mon, 18 Apr 2011 01:12:44 -0400 Subject: [Gambas-user] using a "file system database" In-Reply-To: <4DA7F8D4.7090809@...221...> References: <4DA7F23D.6070105@...1887...> <4DA7F8D4.7090809@...221...> Message-ID: <4DABC84C.1090900@...1887...> On 04/15/2011 03:50 AM, Rolf-Werner Eilert wrote: > Am 15.04.2011 09:22, schrieb Kevin Fishburne: >> I'm in the early phases of creating a "database" that uses the file >> system for data organization rather than a traditional software database >> such as MySQL, etc. I'm hoping that this could be faster since my >> requirements are very specific and (I think) don't need a general >> purpose database. >> >> I will have 4,194,304 "cells", each of which has about three datafiles >> that will need to be opened, read from, written to and closed regularly. >> I could consolidate the three files into one, reducing the number of >> files, but this would increase the amount of time taken to parse the >> files and slow the program significantly. >> >> I'm considering dividing them into hierarchies of directories to avoid >> having four to 16 million data files in the same directory. Initial >> tests hit file system (or file space, not sure yet) limits. >> >> Does anyone have any insights into the ext3/4 filesystem, possible >> alternate file systems, and databases to know what the best solution >> would be for this type of problem? Any insights into the most efficient >> way to create hierarchies of directories and files would be appreciated >> as well. > > Spontaneously, I know that when creating a filesystem you have the > possibility of determining the sector size. As far as I read, people who > know there will be a lot of very small files (especially when the file > size is predictable) prefer to set a smaller sector size to avoid > wasting space (may have been one reason in your test) and vice-versa. > When you set up a system with default values, these are a compromise > between efficiency and waste (if your sector size is too small and the > files regularly are longer than that, you will waste space again and it > costs a lot sector jumping time). > > My experience is that file systems are extremely efficient and fast > under Linux. And they are intelligently cached which might be of help in > your case. The more RAM you have the better here. Hi Rolf. Excellent information. I refined the routine that was creating the directories and files and will be performing tests this week to see what filesystem and filesystem characteristics are the fastest for this. Do you know if there is a program like gparted that allows you to specify these details? I'm not averse to using software RAID if necessary. -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sales at ...1887... phone: (770) 853-6271 From kevinfishburne at ...1887... Mon Apr 18 07:24:58 2011 From: kevinfishburne at ...1887... (Kevin Fishburne) Date: Mon, 18 Apr 2011 01:24:58 -0400 Subject: [Gambas-user] using a "file system database" In-Reply-To: <4DA7FA3A.7000209@...1909...> References: <4DA7F23D.6070105@...1887...> <4DA7FA3A.7000209@...1909...> Message-ID: <4DABCB2A.6070108@...1887...> On 04/15/2011 03:56 AM, Doriano Blengino wrote: > Kevin Fishburne ha scritto: >> I'm in the early phases of creating a "database" that uses the file >> system for data organization rather than a traditional software database >> such as MySQL, etc. I'm hoping that this could be faster since my >> requirements are very specific and (I think) don't need a general >> purpose database. >> >> I will have 4,194,304 "cells", each of which has about three datafiles >> that will need to be opened, read from, written to and closed regularly. >> I could consolidate the three files into one, reducing the number of >> files, but this would increase the amount of time taken to parse the >> files and slow the program significantly. >> >> I'm considering dividing them into hierarchies of directories to avoid >> having four to 16 million data files in the same directory. Initial >> tests hit file system (or file space, not sure yet) limits. >> >> Does anyone have any insights into the ext3/4 filesystem, possible >> alternate file systems, and databases to know what the best solution >> would be for this type of problem? Any insights into the most efficient >> way to create hierarchies of directories and files would be appreciated >> as well. >> > Very interesting problem. > You could take a look at the Squid proxy, which has similar problems: > how to cache files quickly. > > For the file system, the more sophisticated is, the more it is expensive > to modify it; etx3/4 or reiserfs are journaled, so they are slower and > heavier to manage. But it could be that a well-planned journaled fs is > faster than a bad-planned non-journaled fs... On the other hand, the > journaling should guarantee data solidity... don't know where you want > to set a balance between speed and reliability. Some of them (or all of > them) don't actually guarantee "data" reliability, but only metadata. > > 4M files are a lot. If you want speed, you should use them in binary > format, coalesce some of them into one, and use seek() to navigate. > Otherwise, the computer will spend more time in searching for a file > than actually read it. > > How much big these files are? And can them be binary? Or at least some > of them? Hi Doriano. Good advice about functionality versus speed. I'm going to be testing both ext2 and xfs this week to see which is superior for my purposes. As far as data integrity, I'll probably have some sort of local RAID as a backup target with slow, incremental writes to it. If the server dies, then at least most of the game data will be preserved without harming the performance of the server app. So the weakness of the filesystem with regard to crash recovery is irrelevant. Yes, the files are binary. I'll be reading their values directly into their corresponding datatypes, and writing values back the same way. There will be very few strings written. Each "field" of the data files will be a predetermined length so I can just jump ahead without even using Seek. Right now the field length is 64 bytes, which leaves me plenty of reserved space (32 bytes) for additional info. My current plan is to create a directory for each region ([65536/32/32]^2). Each region directory contains 32^2 data files (1024). Hopefully this won't stress any particular file system as far as how many directories and files are contained within a single directory. -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sales at ...1887... phone: (770) 853-6271 From bbruen at ...2308... Mon Apr 18 07:41:22 2011 From: bbruen at ...2308... (Bruce Bruen) Date: Mon, 18 Apr 2011 15:11:22 +0930 Subject: [Gambas-user] Creating a Variant[] on the fly Message-ID: <201104181511.23205.bbruen@...2308...> I have a custom gridview control which has a method "Add", which adds a Variant[] array into an internal collection. IOW it exposes the method : PUBLIC SUB Add(dataitem as Variant[], key as String) This allows me to add "any" type of data into the grideview row as the custom control knows how to convert the received data into strings. But when I try the following: csvRelData.Add([.LocalCardinality, .TargetCardinality], "Cardinalities") where .LocalCardinality and .TargetCardinality are both integers, I get a "Type mismatch: wanted Variant[], got Integer[] instead" error. I know I could declare and load a Variant[] variable locally, item by item, but this expands the code so much. (The control is going to display something like the PropertyList in the IDE but there are three columns, the parameter name, eg "Cardinalities" and two values, one for the local instance and one for the target instance.) Is there (again) something simple that I just can't see today to make this construct work? -- best regards Bruce Bruen From kevinfishburne at ...1887... Mon Apr 18 07:48:40 2011 From: kevinfishburne at ...1887... (Kevin Fishburne) Date: Mon, 18 Apr 2011 01:48:40 -0400 Subject: [Gambas-user] using a "file system database" In-Reply-To: <1302856383.7968.14.camel@...2150...> References: <4DA7F23D.6070105@...1887...> <1302856383.7968.14.camel@...2150...> Message-ID: <4DABD0B8.2040700@...1887...> On 04/15/2011 04:33 AM, Caveat wrote: > Hi Kevin > If you can find a way to talk to this database, it could provide just > what you're looking for in terms of speed: > > http://hsqldb.org/ > > It's a SQL database, but it can be run entirely in RAM. I've used it > before (although I don't recall using it from Gambas...yet!) and it's an > amazing piece of work. > > 4M files sounds like a LOT of files, so it worries me that it'll prove > too slow. I'm not convinced that using the file system would be any > faster than using a 'proper' database. > > If you do go the fs route, there's some discussion here: > http://fixunix.com/ubuntu/356538-filesystem-lots-small-files.html which > may help. Hi Caveat, thanks for the info. I found this quote in the link: "In any case, the key here is that he has a _lot_ of _small_ files; this just cries out for a filesystem with a small blocksize and a large number of inodes. I believe that the EXT2 filesystem should handle his requirements, given a small (say 1k or 2k) blocksize and a suitable ratio of bytes/inode. You might even find a predefined fstype in /etc/mke2fs.conf that suites the requirements." The server almost exclusively deals with millions of very small files, so I'll start at the bottom of what is allowable and benchmark subsequently larger settings for comparison. The files will start pretty small (many empty), and their number of records will change over time. I'll probably not even code pruning routines, as there will only be so many objects stored in a single file due to game mechanics. A sufficiently large RAID should be able to accommodate for raw storage, though seeks will take longer over time as the files slowly increase with dead data. I'll at least allow overwriting dead fields with new ones to keep things sane. -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sales at ...1887... phone: (770) 853-6271 From shanep at ...2481... Mon Apr 18 09:18:27 2011 From: shanep at ...2481... (Shane Powell) Date: Mon, 18 Apr 2011 17:18:27 +1000 Subject: [Gambas-user] slider/spinbox Message-ID: <4DABE5C3.3000706@...2481...> How about a slider and or a spinbox having float values ? From gambas.fr at ...626... Mon Apr 18 09:20:18 2011 From: gambas.fr at ...626... (Fabien Bodard) Date: Mon, 18 Apr 2011 09:20:18 +0200 Subject: [Gambas-user] Magnify In-Reply-To: <201104181455.33953.rterry@...1946...> References: <4DABBD21.9010908@...2481...> <201104181455.33953.rterry@...1946...> Message-ID: i think magnify factor must be between 2 and 4 max 2011/4/18 richard terry : > On Monday 18 April 2011 14:25:05 Shane Powell wrote: >> here you go richard >> > Thanks, I"ll take a closer look tonight. The minimum ?magnification factor on > this one seems too great to be useful, but maybe its adjustable. > > Regards > > richard > > ------------------------------------------------------------------------------ > Benefiting from Server Virtualization: Beyond Initial Workload > Consolidation -- Increasing the use of server virtualization is a top > priority.Virtualization can reduce costs, simplify management, and improve > application availability and disaster protection. Learn more about boosting > the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Fabien Bodard From gambas.fr at ...626... Mon Apr 18 09:24:49 2011 From: gambas.fr at ...626... (Fabien Bodard) Date: Mon, 18 Apr 2011 09:24:49 +0200 Subject: [Gambas-user] slider/spinbox In-Reply-To: <4DABE5C3.3000706@...2481...> References: <4DABE5C3.3000706@...2481...> Message-ID: 2011/4/18 Shane Powell : > How about a slider and or a spinbox having float values ? for slider the workaround will be to use a *100 factor slider.step = 2 slider.maxvalue = 400 Slider.MinValue = 200 slider.value = 2.22 * 100 'preset value zoom = Slider.value/100 > > > ------------------------------------------------------------------------------ > Benefiting from Server Virtualization: Beyond Initial Workload > Consolidation -- Increasing the use of server virtualization is a top > priority.Virtualization can reduce costs, simplify management, and improve > application availability and disaster protection. Learn more about boosting > the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Fabien Bodard From shanep at ...2481... Mon Apr 18 09:41:55 2011 From: shanep at ...2481... (Shane Powell) Date: Mon, 18 Apr 2011 17:41:55 +1000 Subject: [Gambas-user] slider/spinbox In-Reply-To: References: <4DABE5C3.3000706@...2481...> Message-ID: <4DABEB43.2080802@...2481...> On 18/04/11 17:24, Fabien Bodard wrote: > 2011/4/18 Shane Powell: >> How about a slider and or a spinbox having float values ? > for slider the workaround will be to use a *100 factor > > slider.step = 2 > > slider.maxvalue = 400 > Slider.MinValue = 200 > > > slider.value = 2.22 * 100 'preset value > > zoom = Slider.value/100 > >> >> ------------------------------------------------------------------------------ >> Benefiting from Server Virtualization: Beyond Initial Workload >> Consolidation -- Increasing the use of server virtualization is a top >> priority.Virtualization can reduce costs, simplify management, and improve >> application availability and disaster protection. Learn more about boosting >> the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > Hi fabien your work around is what i was thinking to i just wondered if it would be worth while having controls with this already ? From shanep at ...2481... Mon Apr 18 09:44:26 2011 From: shanep at ...2481... (Shane Powell) Date: Mon, 18 Apr 2011 17:44:26 +1000 Subject: [Gambas-user] Magnify In-Reply-To: References: <4DABBD21.9010908@...2481...> <201104181455.33953.rterry@...1946...> Message-ID: <4DABEBDA.2070902@...2481...> On 18/04/11 17:20, Fabien Bodard wrote: > i think magnify factor must be between 2 and 4 max > > 2011/4/18 richard terry: >> On Monday 18 April 2011 14:25:05 Shane Powell wrote: >>> here you go richard >>> >> Thanks, I"ll take a closer look tonight. The minimum magnification factor on >> this one seems too great to be useful, but maybe its adjustable. >> >> Regards >> >> richard >> >> ------------------------------------------------------------------------------ >> Benefiting from Server Virtualization: Beyond Initial Workload >> Consolidation -- Increasing the use of server virtualization is a top >> priority.Virtualization can reduce costs, simplify management, and improve >> application availability and disaster protection. Learn more about boosting >> the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > Hi Fabein I have altered your code to allow any scale from 1 up i will post it soon From gambas.fr at ...626... Mon Apr 18 09:47:21 2011 From: gambas.fr at ...626... (Fabien Bodard) Date: Mon, 18 Apr 2011 09:47:21 +0200 Subject: [Gambas-user] slider/spinbox In-Reply-To: <4DABEB43.2080802@...2481...> References: <4DABE5C3.3000706@...2481...> <4DABEB43.2080802@...2481...> Message-ID: 2011/4/18 Shane Powell : > On 18/04/11 17:24, Fabien Bodard wrote: >> 2011/4/18 Shane Powell: >>> How about a slider and or a spinbox having float values ? >> for slider the workaround will be ?to use a *100 factor >> >> slider.step = 2 >> >> slider.maxvalue = 400 >> Slider.MinValue = 200 >> >> >> slider.value = 2.22 * 100 ?'preset value >> >> zoom = Slider.value/100 >> >>> >>> ------------------------------------------------------------------------------ >>> Benefiting from Server Virtualization: Beyond Initial Workload >>> Consolidation -- Increasing the use of server virtualization is a top >>> priority.Virtualization can reduce costs, simplify management, and improve >>> application availability and disaster protection. Learn more about boosting >>> the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev >>> _______________________________________________ >>> Gambas-user mailing list >>> Gambas-user at lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>> >> >> > > Hi fabien your work around is what i was thinking ?to i just wondered if > it would be worth while having > controls with this already ? This is a question for Benoit :) > > > ------------------------------------------------------------------------------ > Benefiting from Server Virtualization: Beyond Initial Workload > Consolidation -- Increasing the use of server virtualization is a top > priority.Virtualization can reduce costs, simplify management, and improve > application availability and disaster protection. Learn more about boosting > the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Fabien Bodard From shanep at ...2481... Mon Apr 18 10:06:54 2011 From: shanep at ...2481... (Shane Powell) Date: Mon, 18 Apr 2011 18:06:54 +1000 Subject: [Gambas-user] Magnify Message-ID: <4DABF11E.9020509@...2481...> Just some more tinkering -------------- next part -------------- A non-text attachment was scrubbed... Name: Magnify-0.0.6.tar.gz Type: application/x-gzip Size: 130974 bytes Desc: not available URL: From bbruen at ...2308... Mon Apr 18 10:15:16 2011 From: bbruen at ...2308... (Bruce Bruen) Date: Mon, 18 Apr 2011 17:45:16 +0930 Subject: [Gambas-user] Creating a Variant[] on the fly In-Reply-To: <201104181511.23205.bbruen@...2308...> References: <201104181511.23205.bbruen@...2308...> Message-ID: <201104181745.17607.bbruen@...2308...> On Monday, April 18, 2011 03:11:22 PM Bruce Bruen wrote: > I have a custom gridview control which has a method "Add", which adds a > Variant[] array into an internal collection. IOW it exposes the method : > > PUBLIC SUB Add(dataitem as Variant[], key as String) > > This allows me to add "any" type of data into the grideview row as the > custom control knows how to convert the received data into strings. > > But when I try the following: > csvRelData.Add([.LocalCardinality, .TargetCardinality], "Cardinalities") > where .LocalCardinality and .TargetCardinality are both integers, I get a > "Type mismatch: wanted Variant[], got Integer[] instead" error. > > I know I could declare and load a Variant[] variable locally, item by item, > but this expands the code so much. > > (The control is going to display something like the PropertyList in the IDE > but there are three columns, the parameter name, eg "Cardinalities" and two > values, one for the local instance and one for the target instance.) > > Is there (again) something simple that I just can't see today to make this > construct work? Nevermind, I got around it by DIM vArray as New Variant[] varray=["Cardinalities",.LocalCardinality,.TargetCardinality] csvRelData.Add(varray,"Cardinalities") varray=["Transpose",.LocalSliceMethod,.TargetSliceMethod] csvRelData.Add(varray,"Transpose"] etc which only doubles the size of the code. But it would be nice if there was some way to cast an array as Variant[] :-) -- best regards Bruce Bruen From gambas at ...1... Mon Apr 18 10:30:14 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Mon, 18 Apr 2011 10:30:14 +0200 Subject: [Gambas-user] Creating a Variant[] on the fly In-Reply-To: <201104181745.17607.bbruen@...2308...> References: <201104181511.23205.bbruen@...2308...> <201104181745.17607.bbruen@...2308...> Message-ID: <201104181030.14947.gambas@...1...> > > Nevermind, I got around it by > > DIM vArray as New Variant[] > > varray=["Cardinalities",.LocalCardinality,.TargetCardinality] > csvRelData.Add(varray,"Cardinalities") > varray=["Transpose",.LocalSliceMethod,.TargetSliceMethod] > csvRelData.Add(varray,"Transpose"] > etc > > which only doubles the size of the code. > > But it would be nice if there was some way to cast an array as Variant[] > :-) Normally that casting is automatic in Gambas 3. Which version do you use? -- Beno?t Minisini From doriano.blengino at ...1909... Mon Apr 18 10:32:09 2011 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Mon, 18 Apr 2011 10:32:09 +0200 Subject: [Gambas-user] using a "file system database" In-Reply-To: <4DABCB2A.6070108@...1887...> References: <4DA7F23D.6070105@...1887...> <4DA7FA3A.7000209@...1909...> <4DABCB2A.6070108@...1887...> Message-ID: <4DABF709.1010903@...1909...> Kevin Fishburne ha scritto: > On 04/15/2011 03:56 AM, Doriano Blengino wrote: > >> Kevin Fishburne ha scritto: >> >>> I'm in the early phases of creating a "database" that uses the file >>> system for data organization rather than a traditional software database >>> such as MySQL,... >>> >>> I will have 4,194,304 "cells", each of which has about three datafiles >>> that will need to be opened, read from, written to and closed regularly. >>> ... >>> I'm considering dividing them into hierarchies of directories to avoid >>> having four to 16 million data files in the same directory. Initial >>> tests hit file system (or file space, not sure yet) limits. >>> >>> >>> >> Very interesting problem. >> >> For the file system, the more sophisticated is, the more it is expensive >> to modify it; etx3/4 or reiserfs are journaled, so they are slower and >> heavier to manage. But it could be that a well-planned journaled fs is >> faster than a bad-planned non-journaled fs... >> > Hi Doriano. Good advice about functionality versus speed. I'm going to > be testing both ext2 and xfs this week to see which is superior for my > purposes. As far as data integrity, I'll probably have some sort of > local RAID as a backup target with slow, incremental writes to it. If > the server dies, then at least most of the game data will be preserved > without harming the performance of the server app. So the weakness of > the filesystem with regard to crash recovery is irrelevant. > Please let us know about your tests... > > My current plan is to create a directory for each region > ([65536/32/32]^2). Each region directory contains 32^2 data files > (1024). Hopefully this won't stress any particular file system as far as > how many directories and files are contained within a single directory. > But... I am missing something... the number of files was 4M, right? And 64 directories with 1024 files does not sum up to 4M... Regards, Doriano From oceanosoftlapalma at ...626... Mon Apr 18 11:00:25 2011 From: oceanosoftlapalma at ...626... (=?ISO-8859-1?Q?Ricardo_D=EDaz_Mart=EDn?=) Date: Mon, 18 Apr 2011 11:00:25 +0200 Subject: [Gambas-user] Some issues in revision 3776 Message-ID: Hi list, I have updated gambas3 from svn this weekend and I got now some issues: 1- What's happened with gb.info component? It can be selected in project dependencies but it's missing. 2- I usually save a reference to open forms in a collection in the main class of my applications to improve application management. When finish the application I clean the forms collection using something like: Dim f as Form For Each f in ApplicationFormCollection f = Null Next ApplicationFormCollection.Clear() ApplicationFormCollection = Null >From gambas3 revision 3776 open forms are not destroyed and keep alive whit this code. I need to modify to this: Dim f as Form For Each f in ApplicationFormCollection *f.Close()* f = Null Next ApplicationFormCollection.Clear() ApplicationFormCollection = Null Why forms are not finished when you set these to null? Regards, Ricardo D?az From gambas at ...1... Mon Apr 18 11:08:48 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Mon, 18 Apr 2011 11:08:48 +0200 Subject: [Gambas-user] Some issues in revision 3776 In-Reply-To: References: Message-ID: <201104181108.48107.gambas@...1...> > Hi list, > > I have updated gambas3 from svn this weekend and I got now some issues: What's the last used version before? > > 1- What's happened with gb.info component? It can be selected in project > dependencies but it's missing. gb.info has been removed. But I forgot to remove it from the IDE list. > > 2- I usually save a reference to open forms in a collection in the main > class of my applications to improve application management. When finish the > application I clean the forms collection using something like: > > Dim f as Form > > > For Each f in ApplicationFormCollection > > f = Null > > Next > > > ApplicationFormCollection.Clear() > > ApplicationFormCollection = Null > > >From gambas3 revision 3776 open forms are not destroyed and keep alive > >whit > > this code. I need to modify to this: > > Dim f as Form > > > For Each f in ApplicationFormCollection > > *f.Close()* > f = Null > > Next > > > ApplicationFormCollection.Clear() > > ApplicationFormCollection = Null > > Why forms are not finished when you set these to null? > This is the normal behaviour now. Form were closed automatically in the past, because the first opened form automatically became the "main window". Closing the main window closes all other forms. But that behaviour is sometimes unwanted, so it must be explicit now, by defining the Application.MainWindow property. Otherwise, there is no main window at all, and forms must be closed explicitely. Regards, -- Beno?t Minisini From gambas at ...1... Mon Apr 18 11:09:11 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Mon, 18 Apr 2011 11:09:11 +0200 Subject: [Gambas-user] Version 3773 - code blocks In-Reply-To: <201104171535.59128.rterry@...1946...> References: <201104171535.59128.rterry@...1946...> Message-ID: <201104181109.11138.gambas@...1...> > HI Benoit, > > Been using this for a few hours with troublesome problems. > > Code blocks are no longer working - the program seems to skip over them > which is making it very hard to debug. > > Regards > > Richard > What is "code blocks"? -- Beno?t Minisini From kevinfishburne at ...1887... Mon Apr 18 11:31:23 2011 From: kevinfishburne at ...1887... (Kevin Fishburne) Date: Mon, 18 Apr 2011 05:31:23 -0400 Subject: [Gambas-user] using a "file system database" In-Reply-To: <4DABF709.1010903@...1909...> References: <4DA7F23D.6070105@...1887...> <4DA7FA3A.7000209@...1909...> <4DABCB2A.6070108@...1887...> <4DABF709.1010903@...1909...> Message-ID: <4DAC04EB.6000007@...1887...> On 04/18/2011 04:32 AM, Doriano Blengino wrote: > Kevin Fishburne ha scritto: >> On 04/15/2011 03:56 AM, Doriano Blengino wrote: >> >>> Kevin Fishburne ha scritto: >>> >>>> I'm in the early phases of creating a "database" that uses the file >>>> system for data organization rather than a traditional software database >>>> such as MySQL,... >>>> >>>> I will have 4,194,304 "cells", each of which has about three datafiles >>>> that will need to be opened, read from, written to and closed regularly. >>>> ... >>>> I'm considering dividing them into hierarchies of directories to avoid >>>> having four to 16 million data files in the same directory. Initial >>>> tests hit file system (or file space, not sure yet) limits. >>>> >>>> >>>> >>> Very interesting problem. >>> >>> For the file system, the more sophisticated is, the more it is expensive >>> to modify it; etx3/4 or reiserfs are journaled, so they are slower and >>> heavier to manage. But it could be that a well-planned journaled fs is >>> faster than a bad-planned non-journaled fs... >>> >> Hi Doriano. Good advice about functionality versus speed. I'm going to >> be testing both ext2 and xfs this week to see which is superior for my >> purposes. As far as data integrity, I'll probably have some sort of >> local RAID as a backup target with slow, incremental writes to it. If >> the server dies, then at least most of the game data will be preserved >> without harming the performance of the server app. So the weakness of >> the filesystem with regard to crash recovery is irrelevant. >> > Please let us know about your tests... I will. >> >> My current plan is to create a directory for each region >> ([65536/32/32]^2). Each region directory contains 32^2 data files >> (1024). Hopefully this won't stress any particular file system as far as >> how many directories and files are contained within a single directory. >> > But... I am missing something... the number of files was 4M, right? And > 64 directories with 1024 files does not sum up to 4M... A cell is 32x32 tiles (bytes), and the map is 65536^2 tiles, so there are 2048^2 cells. Each of these are organized into directories of 32^2 cells (regions). The data files alone are 4.2 million in number, the directories that organize them hopefully add a layer of filesystem efficiency. Right now a separate directory is created for each region and empty data files are created for each cell within that region. -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sales at ...1887... phone: (770) 853-6271 From oceanosoftlapalma at ...626... Mon Apr 18 11:50:00 2011 From: oceanosoftlapalma at ...626... (=?ISO-8859-1?Q?Ricardo_D=EDaz_Mart=EDn?=) Date: Mon, 18 Apr 2011 11:50:00 +0200 Subject: [Gambas-user] Some issues in revision 3776 In-Reply-To: <201104181108.48107.gambas@...1...> References: <201104181108.48107.gambas@...1...> Message-ID: Thanks Benoit for fast reply. Ok, I'm going to change the "FormsCleaner" sub to include f.Close() Only for your information, last used version was 3572 (2011-02-14) Regards, Ricardo D?az 2011/4/18 Beno?t Minisini > > Hi list, > > > > I have updated gambas3 from svn this weekend and I got now some issues: > > What's the last used version before? > > > > > 1- What's happened with gb.info component? It can be selected in project > > dependencies but it's missing. > > gb.info has been removed. But I forgot to remove it from the IDE list. > > > > > 2- I usually save a reference to open forms in a collection in the main > > class of my applications to improve application management. When finish > the > > application I clean the forms collection using something like: > > > > Dim f as Form > > > > > > For Each f in ApplicationFormCollection > > > > f = Null > > > > Next > > > > > > ApplicationFormCollection.Clear() > > > > ApplicationFormCollection = Null > > > > >From gambas3 revision 3776 open forms are not destroyed and keep alive > > >whit > > > > this code. I need to modify to this: > > > > Dim f as Form > > > > > > For Each f in ApplicationFormCollection > > > > *f.Close()* > > f = Null > > > > Next > > > > > > ApplicationFormCollection.Clear() > > > > ApplicationFormCollection = Null > > > > Why forms are not finished when you set these to null? > > > > This is the normal behaviour now. > > Form were closed automatically in the past, because the first opened form > automatically became the "main window". Closing the main window closes all > other forms. > > But that behaviour is sometimes unwanted, so it must be explicit now, by > defining the Application.MainWindow property. Otherwise, there is no main > window at all, and forms must be closed explicitely. > > Regards, > > -- > Beno?t Minisini > > > ------------------------------------------------------------------------------ > Benefiting from Server Virtualization: Beyond Initial Workload > Consolidation -- Increasing the use of server virtualization is a top > priority.Virtualization can reduce costs, simplify management, and improve > application availability and disaster protection. Learn more about boosting > the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From rterry at ...1946... Mon Apr 18 12:11:58 2011 From: rterry at ...1946... (richard terry) Date: Mon, 18 Apr 2011 20:11:58 +1000 Subject: [Gambas-user] Version 3773 - code blocks In-Reply-To: <201104181109.11138.gambas@...1...> References: <201104171535.59128.rterry@...1946...> <201104181109.11138.gambas@...1...> Message-ID: <201104182011.58949.rterry@...1946...> On Monday 18 April 2011 19:09:11 Beno?t Minisini wrote: > > HI Benoit, > > > > Been using this for a few hours with troublesome problems. > > > > Code blocks are no longer working - the program seems to skip over them > > which is making it very hard to debug. > > > > Regards > > > > Richard > > What is "code blocks"? Breakpoints. > From bbruen at ...2308... Mon Apr 18 12:28:52 2011 From: bbruen at ...2308... (Bruce Bruen) Date: Mon, 18 Apr 2011 19:58:52 +0930 Subject: [Gambas-user] Creating a Variant[] on the fly In-Reply-To: <201104181030.14947.gambas@...1...> References: <201104181511.23205.bbruen@...2308...> <201104181745.17607.bbruen@...2308...> <201104181030.14947.gambas@...1...> Message-ID: <201104181958.53156.bbruen@...2308...> On Monday, April 18, 2011 06:00:14 PM Beno?t Minisini wrote: > > Nevermind, I got around it by > > > > DIM vArray as New Variant[] > > > > varray=["Cardinalities",.LocalCardinality,.TargetCardinality] > > csvRelData.Add(varray,"Cardinalities") > > varray=["Transpose",.LocalSliceMethod,.TargetSliceMethod] > > csvRelData.Add(varray,"Transpose"] > > etc > > > > which only doubles the size of the code. > > > > But it would be nice if there was some way to cast an array as Variant[] > > > > :-) > > Normally that casting is automatic in Gambas 3. Which version do you use? Still on Gambas 2, frantically awaiting! gb2 correctly (according to the docs) internally casts the inline array to the type of the first element. However, because my control handles a lot of stuff of different types (sometimes I am adding an object that has its own rendering method (e.g. SliceMethod has a "StrRep" method that converts a geo-thingo (magnetometers) into a string) I need (read "want") to pass the array specifically as a Variant[]. The inline array, when I coerce it into a Variant[] works beautifully. My desire is just a matter of reducing the calling code to its' simplest form (to lower the incidence of our coding errors!) So I will restate my desire as : It would be nice to be able to cast an inline array into a Variant[] rather than have it automatically be cast according to the first element. -- best regards Bruce Bruen From jussi.lahtinen at ...626... Mon Apr 18 16:33:24 2011 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Mon, 18 Apr 2011 17:33:24 +0300 Subject: [Gambas-user] Creating a Variant[] on the fly In-Reply-To: <201104181958.53156.bbruen@...2308...> References: <201104181511.23205.bbruen@...2308...> <201104181745.17607.bbruen@...2308...> <201104181030.14947.gambas@...1...> <201104181958.53156.bbruen@...2308...> Message-ID: You can do it this way; Create class named InlineVariant, paste this in; PUBLIC FUNCTION _call(...) AS Variant[] DIM Var AS Variant DIM aVar AS NEW Variant[] FOR EACH var IN Param aVar.Add(var) NEXT RETURN aVar END Then use it like this; csvRelData.Add(InlineVariant(.LocalCardinality, .TargetCardinality), "Cardinalities") Jussi On Mon, Apr 18, 2011 at 13:28, Bruce Bruen wrote: > On Monday, April 18, 2011 06:00:14 PM Beno?t Minisini wrote: > > > Nevermind, I got around it by > > > > > > DIM vArray as New Variant[] > > > > > > varray=["Cardinalities",.LocalCardinality,.TargetCardinality] > > > csvRelData.Add(varray,"Cardinalities") > > > varray=["Transpose",.LocalSliceMethod,.TargetSliceMethod] > > > csvRelData.Add(varray,"Transpose"] > > > etc > > > > > > which only doubles the size of the code. > > > > > > But it would be nice if there was some way to cast an array as > Variant[] > > > > > > :-) > > > > Normally that casting is automatic in Gambas 3. Which version do you use? > > Still on Gambas 2, frantically awaiting! > > gb2 correctly (according to the docs) internally casts the inline array to > the > type of the first element. > > However, because my control handles a lot of stuff of different types > (sometimes > I am adding an object that has its own rendering method (e.g. SliceMethod > has > a "StrRep" method that converts a geo-thingo (magnetometers) into a > string) I > need (read "want") to pass the array specifically as a Variant[]. > > The inline array, when I coerce it into a Variant[] works beautifully. My > desire is just a matter of reducing the calling code to its' simplest form > (to > lower the incidence of our coding errors!) > > So I will restate my desire as : > It would be nice to be able to cast an inline array into a Variant[] rather > than have it automatically be cast according to the first element. > > -- > best regards > Bruce Bruen > > > ------------------------------------------------------------------------------ > Benefiting from Server Virtualization: Beyond Initial Workload > Consolidation -- Increasing the use of server virtualization is a top > priority.Virtualization can reduce costs, simplify management, and improve > application availability and disaster protection. Learn more about boosting > the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From rterry at ...1946... Tue Apr 19 00:46:10 2011 From: rterry at ...1946... (richard terry) Date: Tue, 19 Apr 2011 08:46:10 +1000 Subject: [Gambas-user] Magnify In-Reply-To: <4DABF11E.9020509@...2481...> References: <4DABF11E.9020509@...2481...> Message-ID: <201104190846.10188.rterry@...1946...> On Monday 18 April 2011 18:06:54 Shane Powell wrote: > Just some more tinkering > Hi LIst, I've made some minor mods and put the magnification factor on the mouse wheel. I can make it get more magnified, but don't know how to detect which direction the mouse wheel is moving. Any help appreciated, and I"ll then repost this as Magnifiy-0.0.7 richard From bbruen at ...2308... Tue Apr 19 01:15:43 2011 From: bbruen at ...2308... (Bruce Bruen) Date: Tue, 19 Apr 2011 08:45:43 +0930 Subject: [Gambas-user] Creating a Variant[] on the fly In-Reply-To: References: <201104181511.23205.bbruen@...2308...> <201104181958.53156.bbruen@...2308...> Message-ID: <201104190845.43968.bbruen@...2308...> On Tuesday, April 19, 2011 12:03:24 AM Jussi Lahtinen wrote: > You can do it this way; > > Create class named InlineVariant, paste this in; > > PUBLIC FUNCTION _call(...) AS Variant[] > DIM Var AS Variant > DIM aVar AS NEW Variant[] > > FOR EACH var IN Param > aVar.Add(var) > NEXT > > RETURN aVar > > END > > > Then use it like this; > > csvRelData.Add(InlineVariant(.LocalCardinality, .TargetCardinality), > "Cardinalities") > > > > Jussi > Beautiful! Thanks Jussi. -- best regards Bruce Bruen From shanep at ...2481... Tue Apr 19 02:06:42 2011 From: shanep at ...2481... (Shane Powell) Date: Tue, 19 Apr 2011 10:06:42 +1000 Subject: [Gambas-user] Magnify In-Reply-To: <201104190846.10188.rterry@...1946...> References: <4DABF11E.9020509@...2481...> <201104190846.10188.rterry@...1946...> Message-ID: <4DACD212.30607@...2481...> On 19/04/11 08:46, richard terry wrote: > On Monday 18 April 2011 18:06:54 Shane Powell wrote: >> Just some more tinkering >> > Hi LIst, > > I've made some minor mods and put the magnification factor on the mouse wheel. > > I can make it get more magnified, but don't know how to detect which direction > the mouse wheel is moving. Any help appreciated, and I"ll then repost this as > Magnifiy-0.0.7 > > richard > > ------------------------------------------------------------------------------ > Benefiting from Server Virtualization: Beyond Initial Workload > Consolidation -- Increasing the use of server virtualization is a top > priority.Virtualization can reduce costs, simplify management, and improve > application availability and disaster protection. Learn more about boosting > the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user Hi richard i think you would us the mouse.delta property 1 for scroll up -1 for scroll down From gambas.fr at ...626... Tue Apr 19 12:34:17 2011 From: gambas.fr at ...626... (Fabien Bodard) Date: Tue, 19 Apr 2011 12:34:17 +0200 Subject: [Gambas-user] Magnify In-Reply-To: <4DACD212.30607@...2481...> References: <4DABF11E.9020509@...2481...> <201104190846.10188.rterry@...1946...> <4DACD212.30607@...2481...> Message-ID: What do you want to do exactly Richard ? The v0.06 have Two viewer... mine and shane one ... i think you need to choose one way. I you choose to have a side viewer for the lens, then draw a simple square on the mouse move in the original picture. The square have the size of the viewed part. It's invert proportionnal of the zoom if the viewer have 30*30 then at zoom 2 the Square have 15*15 at Zoom 3 square = 10*10 etc From rterry at ...1946... Tue Apr 19 12:42:33 2011 From: rterry at ...1946... (richard terry) Date: Tue, 19 Apr 2011 20:42:33 +1000 Subject: [Gambas-user] Break points not working Message-ID: <201104192042.33295.rterry@...1946...> Hi list/Benoit. Anyone else having this problem, my program for the last few versions of gambas won't stop at breakpoints. Version: 3778 I deleted my svn (not gambas, my project) and downloaded a complete new SVN, and this has made no difference. Could there be a switch somewhere in a text file which is at fault. If I run another gambas project for example a sample, the execution stops at the designated break point. Regards Richard From rterry at ...1946... Tue Apr 19 12:53:09 2011 From: rterry at ...1946... (richard terry) Date: Tue, 19 Apr 2011 20:53:09 +1000 Subject: [Gambas-user] Magnify In-Reply-To: References: <4DABF11E.9020509@...2481...> <4DACD212.30607@...2481...> Message-ID: <201104192053.09932.rterry@...1946...> On Tuesday 19 April 2011 20:34:17 Fabien Bodard wrote: > What do you want to do exactly Richard ? Hi Fabian I don't really want the side viewer - but the viewer with the circle around it like you drew - on the picture itself. The last version shane posted seemed more accurate in terms of the circle positioning than his earlier ones. Also zoom wise anything more than 1-2-3 times is not of any use. I tried it today just with the circular lens and using the mouse wheel to zoom up, but didn't have time to fine-tune it. Let me take the last one he posted and I'll call it 0.0.7 and we can go from there over the next few days. Had a really bad/busy day at work so am tired ++, and my gambas is playing up big time - not stopping at breakpoints, and object calls not working, odd things - goodness knows why - and I'm desperately trying to look at this tonight in the little time I have as I am dependant on my program to run my clinical practice - even though many sections are not yet finished - I had a horror start to the day when my changes last night meant I couldn't save clinical records, so i had to back track a few versions to be able to continue working. Will post some more. thanks richard > > > The v0.06 have Two viewer... mine and shane one ... i think you need > to choose one way. > > I you choose to have a side viewer for the lens, then draw a simple > square on the mouse move in the original picture. The square have the > size of the viewed part. It's invert proportionnal of the zoom > > > if the viewer have 30*30 then at zoom 2 the Square have 15*15 at Zoom > 3 square = 10*10 etc > > --------------------------------------------------------------------------- > --- Benefiting from Server Virtualization: Beyond Initial Workload > Consolidation -- Increasing the use of server virtualization is a top > priority.Virtualization can reduce costs, simplify management, and improve > application availability and disaster protection. Learn more about boosting > the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From oceanosoftlapalma at ...626... Tue Apr 19 12:55:36 2011 From: oceanosoftlapalma at ...626... (=?ISO-8859-1?Q?Ricardo_D=EDaz_Mart=EDn?=) Date: Tue, 19 Apr 2011 12:55:36 +0200 Subject: [Gambas-user] Why format (0, "#,###") is blank? Message-ID: Hi to all, I'm using gambas3 rev 3777 I think format(0, "#,###") must be 0. I'm not sure but I think in previous gambas3 versions was 0. Regards, Ricardo D?az From rterry at ...1946... Tue Apr 19 13:28:16 2011 From: rterry at ...1946... (richard terry) Date: Tue, 19 Apr 2011 21:28:16 +1000 Subject: [Gambas-user] Gambas ?which words are reserved Message-ID: <201104192128.16342.rterry@...1946...> Tracked down one of my problems (not the breakpoint issue!!! damnn..) However: I've buttons on my main toolbar. My workspace (class) has various tabs loaded onto it as needed during program use, eg progress notes editor, prescription writer, html pages to display results etc, and I did have on each of these a subroutine called this: Public sub Print() 'do whatever printing is needed. end When the button is clicked on the toolbar, it looks at whatever is the activepage in the workspace and does this Public Sub MainToolbar_Click() Dim i as object ..... etc Select case Last.tag 'the tags on the toolbutton .... (code finds the active form which is then set to i case "print" 'find the form on the active window with some code ' when found do this: i = the_active_form Try Object.Call(i, Last.tag) End select So this then would read when the Last.tag is translated. Try Object.Call(i, "Print") Now, this used to work ok, but now it doesnt, however if I change all the print routines on my forms to something else eg "Print_Content" then it does work ie Object.Call(i, "Print_Content") calls the appropriate routine and prints out whatever needs printing on the particular form eg a script, some html results, a letter etc. IE seems like Public Sub Print() end is not allowable in Gambas when calling it via the above method, whearas if you use that syntax and call it from within a form like this Public Sub btnPrint 'click the print button on an actual form Print() end Then it does work. Confused? well I am. Anway, at least I'll be able to print at work tomorrow, but would be interested in Benoit;s comments, plus any help on the breakpoint issue. Regards Richard From shanep at ...2481... Tue Apr 19 13:21:30 2011 From: shanep at ...2481... (Shane Powell) Date: Tue, 19 Apr 2011 21:21:30 +1000 Subject: [Gambas-user] Magnify In-Reply-To: <201104192053.09932.rterry@...1946...> References: <4DABF11E.9020509@...2481...> <4DACD212.30607@...2481...> <201104192053.09932.rterry@...1946...> Message-ID: <4DAD703A.3010803@...2481...> On 19/04/11 20:53, richard terry wrote: > On Tuesday 19 April 2011 20:34:17 Fabien Bodard wrote: >> What do you want to do exactly Richard ? > Hi Fabian > > I don't really want the side viewer - but the viewer with the circle around it > like you drew - on the picture itself. > > The last version shane posted seemed more accurate in terms of the circle > positioning than his earlier ones. > > Also zoom wise anything more than 1-2-3 times is not of any use. I tried it > today just with the circular lens and using the mouse wheel to zoom up, but > didn't have time to fine-tune it. > > Let me take the last one he posted and I'll call it 0.0.7 and we can go from > there over the next few days. > > Had a really bad/busy day at work so am tired ++, and my gambas is playing up > big time - not stopping at breakpoints, and object calls not working, odd > things - goodness knows why - and I'm desperately trying to look at this > tonight in the little time I have as I am dependant on my program to run my > clinical practice - even though many sections are not yet finished - I had a > horror start to the day when my changes last night meant I couldn't save > clinical records, so i had to back track a few versions to be able to continue > working. > > Will post some more. > > thanks > > richard > >> >> The v0.06 have Two viewer... mine and shane one ... i think you need >> to choose one way. >> >> I you choose to have a side viewer for the lens, then draw a simple >> square on the mouse move in the original picture. The square have the >> size of the viewed part. It's invert proportionnal of the zoom >> >> >> if the viewer have 30*30 then at zoom 2 the Square have 15*15 at Zoom >> 3 square = 10*10 etc >> >> --------------------------------------------------------------------------- >> --- Benefiting from Server Virtualization: Beyond Initial Workload >> Consolidation -- Increasing the use of server virtualization is a top >> priority.Virtualization can reduce costs, simplify management, and improve >> application availability and disaster protection. Learn more about boosting >> the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > ------------------------------------------------------------------------------ > Benefiting from Server Virtualization: Beyond Initial Workload > Consolidation -- Increasing the use of server virtualization is a top > priority.Virtualization can reduce costs, simplify management, and improve > application availability and disaster protection. Learn more about boosting > the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user Hi richard i had play with the scroll wheel but didn't like it much because when you have a large image loaded and you have scrollbars it gets a bit confusing when the image scrolls around would you like me to post what i have done ? From gambas at ...1... Tue Apr 19 14:14:59 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Tue, 19 Apr 2011 14:14:59 +0200 Subject: [Gambas-user] Why format (0, "#,###") is blank? In-Reply-To: References: Message-ID: <201104191414.59430.gambas@...1...> > Hi to all, > > I'm using gambas3 rev 3777 > > I think format(0, "#,###") must be 0. I'm not sure but I think in previous > gambas3 versions was 0. > > Regards, > Ricardo D?az Mmm. This is a corner case. If you want a zero, use "#,##0". Regards, -- Beno?t Minisini From gambas at ...1... Tue Apr 19 14:15:52 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Tue, 19 Apr 2011 14:15:52 +0200 Subject: [Gambas-user] Break points not working In-Reply-To: <201104192042.33295.rterry@...1946...> References: <201104192042.33295.rterry@...1946...> Message-ID: <201104191415.52890.gambas@...1...> > Hi list/Benoit. > > Anyone else having this problem, my program for the last few versions of > gambas won't stop at breakpoints. > > Version: 3778 > > I deleted my svn (not gambas, my project) and downloaded a complete new > SVN, and this has made no difference. > > Could there be a switch somewhere in a text file which is at fault. > > If I run another gambas project for example a sample, the execution stops > at the designated break point. > > Regards > > Richard > I had the same problem recently on a specific projet, but couldn't find the reason. Strange... -- Beno?t Minisini From oceanosoftlapalma at ...626... Tue Apr 19 14:18:10 2011 From: oceanosoftlapalma at ...626... (=?ISO-8859-1?Q?Ricardo_D=EDaz_Mart=EDn?=) Date: Tue, 19 Apr 2011 14:18:10 +0200 Subject: [Gambas-user] Why format (0, "#,###") is blank? In-Reply-To: <201104191414.59430.gambas@...1...> References: <201104191414.59430.gambas@...1...> Message-ID: Thanks 2011/4/19 Beno?t Minisini > > Hi to all, > > > > I'm using gambas3 rev 3777 > > > > I think format(0, "#,###") must be 0. I'm not sure but I think in > previous > > gambas3 versions was 0. > > > > Regards, > > Ricardo D?az > > Mmm. This is a corner case. If you want a zero, use "#,##0". > > Regards, > > -- > Beno?t Minisini > > > ------------------------------------------------------------------------------ > Benefiting from Server Virtualization: Beyond Initial Workload > Consolidation -- Increasing the use of server virtualization is a top > priority.Virtualization can reduce costs, simplify management, and improve > application availability and disaster protection. Learn more about boosting > the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Tue Apr 19 14:18:10 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Tue, 19 Apr 2011 14:18:10 +0200 Subject: [Gambas-user] Gambas ?which words are reserved In-Reply-To: <201104192128.16342.rterry@...1946...> References: <201104192128.16342.rterry@...1946...> Message-ID: <201104191418.10835.gambas@...1...> > Tracked down one of my problems (not the breakpoint issue!!! damnn..) > > However: > > I've buttons on my main toolbar. My workspace (class) has various tabs > loaded onto it as needed during program use, eg progress notes editor, > prescription writer, html pages to display results etc, and I did have on > each of these a subroutine called this: > > Public sub Print() > 'do whatever printing is needed. > end > > > > When the button is clicked on the toolbar, it looks at whatever is the > activepage in the workspace and does this > > Public Sub MainToolbar_Click() > Dim i as object > ..... etc > > Select case Last.tag 'the tags on the toolbutton > > .... (code finds the active form which is then set to i > > case "print" > 'find the form on the active window with some code > ' when found do this: > i = the_active_form > Try Object.Call(i, Last.tag) > End select > > > So this then would read when the Last.tag is translated. > > Try Object.Call(i, "Print") > > > Now, this used to work ok, but now it doesnt, however if I change all the > print routines on my forms to something else eg "Print_Content" then > > it does work > > ie Object.Call(i, "Print_Content") calls the appropriate routine and > prints out whatever needs printing on the particular form eg a script, > some html results, a letter etc. > > IE seems like Public Sub Print() > end > is not allowable in Gambas when calling it via the above method, whearas if > you use that syntax and call it from within a form like this > > Public Sub btnPrint > 'click the print button on an actual form > Print() > end > > Then it does work. > > Confused? well I am. > > Anway, at least I'll be able to print at work tomorrow, but would be > interested in Benoit;s comments, plus any help on the breakpoint issue. > > Regards > > Richard > It should work. Can you make a small project that reproduces that strange behaviour? -- Beno?t Minisini From rterry at ...1946... Tue Apr 19 14:54:45 2011 From: rterry at ...1946... (richard terry) Date: Tue, 19 Apr 2011 22:54:45 +1000 Subject: [Gambas-user] Break points not working In-Reply-To: <201104191415.52890.gambas@...1...> References: <201104192042.33295.rterry@...1946...> <201104191415.52890.gambas@...1...> Message-ID: <201104192254.45777.rterry@...1946...> On Tuesday 19 April 2011 22:15:52 Beno?t Minisini wrote: > > Hi list/Benoit. > > > > Anyone else having this problem, my program for the last few versions of > > gambas won't stop at breakpoints. > > > > Version: 3778 > > > > I deleted my svn (not gambas, my project) and downloaded a complete new > > SVN, and this has made no difference. > > > > Could there be a switch somewhere in a text file which is at fault. > > > > If I run another gambas project for example a sample, the execution stops > > at the designated break point. > > > > Regards > > > > Richard > > I had the same problem recently on a specific projet, but couldn't find the > reason. Strange... > mm.......... appreciate the comment but this is fairly critical for me, as I now am finding programming very very difficult. Any chance of hints/help.pointers to try and elucidate the problem, as you must know how breakpoints work. Could deleting any config files etc help?, does it use any specific information, maybe if you describe how the breakpoint system works I could help you find out the bug. Regards richard From rterry at ...1946... Tue Apr 19 14:55:14 2011 From: rterry at ...1946... (richard terry) Date: Tue, 19 Apr 2011 22:55:14 +1000 Subject: [Gambas-user] Gambas ?which words are reserved In-Reply-To: <201104191418.10835.gambas@...1...> References: <201104192128.16342.rterry@...1946...> <201104191418.10835.gambas@...1...> Message-ID: <201104192255.14595.rterry@...1946...> On Tuesday 19 April 2011 22:18:10 Beno?t Minisini wrote: > > Tracked down one of my problems (not the breakpoint issue!!! damnn..) > > > > However: > > > > I've buttons on my main toolbar. My workspace (class) has various tabs > > loaded onto it as needed during program use, eg progress notes editor, > > prescription writer, html pages to display results etc, and I did have on > > each of these a subroutine called this: > > > > Public sub Print() > > 'do whatever printing is needed. > > end > > > > > > > > When the button is clicked on the toolbar, it looks at whatever is the > > activepage in the workspace and does this > > > > Public Sub MainToolbar_Click() > > Dim i as object > > ..... etc > > > > Select case Last.tag 'the tags on the toolbutton > > > > .... (code finds the active form which is then set to i > > > > case "print" > > 'find the form on the active window with some code > > ' when found do this: > > i = the_active_form > > Try Object.Call(i, Last.tag) > > End select > > > > > > So this then would read when the Last.tag is translated. > > > > Try Object.Call(i, "Print") > > > > > > Now, this used to work ok, but now it doesnt, however if I change all the > > print routines on my forms to something else eg "Print_Content" then > > > > it does work > > > > ie Object.Call(i, "Print_Content") calls the appropriate routine and > > prints out whatever needs printing on the particular form eg a script, > > some html results, a letter etc. > > > > IE seems like Public Sub Print() > > end > > is not allowable in Gambas when calling it via the above method, whearas > > if you use that syntax and call it from within a form like this > > > > Public Sub btnPrint > > 'click the print button on an actual form > > Print() > > end > > > > Then it does work. > > > > Confused? well I am. > > > > Anway, at least I'll be able to print at work tomorrow, but would be > > interested in Benoit;s comments, plus any help on the breakpoint issue. > > > > Regards > > > > Richard > > It should work. Can you make a small project that reproduces that strange > behaviour? > Will try tomorrow, off to bed now. Richard From rterry at ...1946... Tue Apr 19 14:58:02 2011 From: rterry at ...1946... (richard terry) Date: Tue, 19 Apr 2011 22:58:02 +1000 Subject: [Gambas-user] Magnify In-Reply-To: <4DAD703A.3010803@...2481...> References: <4DABF11E.9020509@...2481...> <201104192053.09932.rterry@...1946...> <4DAD703A.3010803@...2481...> Message-ID: <201104192258.02722.rterry@...1946...> On Tuesday 19 April 2011 21:21:30 Shane Powell wrote: > On 19/04/11 20:53, richard terry wrote: > > On Tuesday 19 April 2011 20:34:17 Fabien Bodard wrote: > >> What do you want to do exactly Richard ? > > > > Hi Fabian > > > > I don't really want the side viewer - but the viewer with the circle > > around it like you drew - on the picture itself. > > > > The last version shane posted seemed more accurate in terms of the circle > > positioning than his earlier ones. > > > > Also zoom wise anything more than 1-2-3 times is not of any use. I tried > > it today just with the circular lens and using the mouse wheel to zoom > > up, but didn't have time to fine-tune it. > > > > Let me take the last one he posted and I'll call it 0.0.7 and we can go > > from there over the next few days. > > > > Had a really bad/busy day at work so am tired ++, and my gambas is > > playing up big time - not stopping at breakpoints, and object calls not > > working, odd things - goodness knows why - and I'm desperately trying to > > look at this tonight in the little time I have as I am dependant on my > > program to run my clinical practice - even though many sections are not > > yet finished - I had a horror start to the day when my changes last night > > meant I couldn't save clinical records, so i had to back track a few > > versions to be able to continue working. > > > > Will post some more. > > > > thanks > > > > richard > > > >> The v0.06 have Two viewer... mine and shane one ... i think you need > >> to choose one way. > >> > >> I you choose to have a side viewer for the lens, then draw a simple > >> square on the mouse move in the original picture. The square have the > >> size of the viewed part. It's invert proportionnal of the zoom > >> > >> > >> if the viewer have 30*30 then at zoom 2 the Square have 15*15 at Zoom > >> 3 square = 10*10 etc > >> > >> ------------------------------------------------------------------------ > >>--- --- Benefiting from Server Virtualization: Beyond Initial Workload > >> Consolidation -- Increasing the use of server virtualization is a top > >> priority.Virtualization can reduce costs, simplify management, and > >> improve application availability and disaster protection. Learn more > >> about boosting the value of server virtualization. > >> http://p.sf.net/sfu/vmware-sfdev2dev > >> _______________________________________________ > >> Gambas-user mailing list > >> Gambas-user at lists.sourceforge.net > >> https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > ------------------------------------------------------------------------- > >----- Benefiting from Server Virtualization: Beyond Initial Workload > > Consolidation -- Increasing the use of server virtualization is a top > > priority.Virtualization can reduce costs, simplify management, and > > improve application availability and disaster protection. Learn more > > about boosting the value of server virtualization. > > http://p.sf.net/sfu/vmware-sfdev2dev > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > Hi richard i had play with the scroll wheel but didn't like it much > because when you have a large > image loaded and you have scrollbars it gets a bit confusing when the > image scrolls around would you like me to post what i have done ? > Yes, can you rename it 0.0.7? Also I think what I'm going to do is to use imagemagik to re-size the image to the drawing area size before loading it, and make the drawing area expand to the form size, remove the box on the screen, and make the lens permanant, ie not dependant on mouse down, otherwise its is a bit confusing to just have part of the image showing. Will see what you do and then take a look tomorrow as have to head off to bed. thanks. Richard > > --------------------------------------------------------------------------- > --- Benefiting from Server Virtualization: Beyond Initial Workload > Consolidation -- Increasing the use of server virtualization is a top > priority.Virtualization can reduce costs, simplify management, and improve > application availability and disaster protection. Learn more about boosting > the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Tue Apr 19 15:00:34 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Tue, 19 Apr 2011 15:00:34 +0200 Subject: [Gambas-user] Break points not working In-Reply-To: <201104192254.45777.rterry@...1946...> References: <201104192042.33295.rterry@...1946...> <201104191415.52890.gambas@...1...> <201104192254.45777.rterry@...1946...> Message-ID: <201104191500.34431.gambas@...1...> > On Tuesday 19 April 2011 22:15:52 Beno?t Minisini wrote: > > > Hi list/Benoit. > > > > > > Anyone else having this problem, my program for the last few versions > > > of gambas won't stop at breakpoints. > > > > > > Version: 3778 > > > > > > I deleted my svn (not gambas, my project) and downloaded a complete new > > > SVN, and this has made no difference. > > > > > > Could there be a switch somewhere in a text file which is at fault. > > > > > > If I run another gambas project for example a sample, the execution > > > stops at the designated break point. > > > > > > Regards > > > > > > Richard > > > > I had the same problem recently on a specific projet, but couldn't find > > the reason. Strange... > > mm.......... appreciate the comment but this is fairly critical for me, as > I now am finding programming very very difficult. Any chance of > hints/help.pointers to try and elucidate the problem, as you must know how > breakpoints work. Could deleting any config files etc help?, does it use > any specific information, maybe if you describe how the breakpoint system > works I could help you find out the bug. > > Regards > > richard > I have identified where the problem comes from. Now I'm currently making a fix... -- Beno?t Minisini From gambas at ...1... Tue Apr 19 15:16:28 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Tue, 19 Apr 2011 15:16:28 +0200 Subject: [Gambas-user] Break points not working In-Reply-To: <201104191500.34431.gambas@...1...> References: <201104192042.33295.rterry@...1946...> <201104192254.45777.rterry@...1946...> <201104191500.34431.gambas@...1...> Message-ID: <201104191516.28366.gambas@...1...> > > > > > > I had the same problem recently on a specific projet, but couldn't find > > > the reason. Strange... > > > > mm.......... appreciate the comment but this is fairly critical for me, > > as I now am finding programming very very difficult. Any chance of > > hints/help.pointers to try and elucidate the problem, as you must know > > how breakpoints work. Could deleting any config files etc help?, does it > > use any specific information, maybe if you describe how the breakpoint > > system works I could help you find out the bug. > > > > Regards > > > > richard > > I have identified where the problem comes from. Now I'm currently making a > fix... The bug should be fixed in revision #3779. The bug was in how debugging information is generated. So you have to recompile your project. Regards, -- Beno?t Minisini From shanep at ...2481... Tue Apr 19 15:37:05 2011 From: shanep at ...2481... (Shane Powell) Date: Tue, 19 Apr 2011 23:37:05 +1000 Subject: [Gambas-user] Magnify In-Reply-To: <201104192258.02722.rterry@...1946...> References: <4DABF11E.9020509@...2481...> <201104192053.09932.rterry@...1946...> <4DAD703A.3010803@...2481...> <201104192258.02722.rterry@...1946...> Message-ID: <4DAD9001.7040402@...2481...> On 19/04/11 22:58, richard terry wrote: > On Tuesday 19 April 2011 21:21:30 Shane Powell wrote: >> On 19/04/11 20:53, richard terry wrote: >>> On Tuesday 19 April 2011 20:34:17 Fabien Bodard wrote: >>>> What do you want to do exactly Richard ? >>> Hi Fabian >>> >>> I don't really want the side viewer - but the viewer with the circle >>> around it like you drew - on the picture itself. >>> >>> The last version shane posted seemed more accurate in terms of the circle >>> positioning than his earlier ones. >>> >>> Also zoom wise anything more than 1-2-3 times is not of any use. I tried >>> it today just with the circular lens and using the mouse wheel to zoom >>> up, but didn't have time to fine-tune it. >>> >>> Let me take the last one he posted and I'll call it 0.0.7 and we can go >>> from there over the next few days. >>> >>> Had a really bad/busy day at work so am tired ++, and my gambas is >>> playing up big time - not stopping at breakpoints, and object calls not >>> working, odd things - goodness knows why - and I'm desperately trying to >>> look at this tonight in the little time I have as I am dependant on my >>> program to run my clinical practice - even though many sections are not >>> yet finished - I had a horror start to the day when my changes last night >>> meant I couldn't save clinical records, so i had to back track a few >>> versions to be able to continue working. >>> >>> Will post some more. >>> >>> thanks >>> >>> richard >>> >>>> The v0.06 have Two viewer... mine and shane one ... i think you need >>>> to choose one way. >>>> >>>> I you choose to have a side viewer for the lens, then draw a simple >>>> square on the mouse move in the original picture. The square have the >>>> size of the viewed part. It's invert proportionnal of the zoom >>>> >>>> >>>> if the viewer have 30*30 then at zoom 2 the Square have 15*15 at Zoom >>>> 3 square = 10*10 etc >>>> >>>> ------------------------------------------------------------------------ >>>> --- --- Benefiting from Server Virtualization: Beyond Initial Workload >>>> Consolidation -- Increasing the use of server virtualization is a top >>>> priority.Virtualization can reduce costs, simplify management, and >>>> improve application availability and disaster protection. Learn more >>>> about boosting the value of server virtualization. >>>> http://p.sf.net/sfu/vmware-sfdev2dev >>>> _______________________________________________ >>>> Gambas-user mailing list >>>> Gambas-user at lists.sourceforge.net >>>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>> ------------------------------------------------------------------------- >>> ----- Benefiting from Server Virtualization: Beyond Initial Workload >>> Consolidation -- Increasing the use of server virtualization is a top >>> priority.Virtualization can reduce costs, simplify management, and >>> improve application availability and disaster protection. Learn more >>> about boosting the value of server virtualization. >>> http://p.sf.net/sfu/vmware-sfdev2dev >>> _______________________________________________ >>> Gambas-user mailing list >>> Gambas-user at lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/gambas-user >> Hi richard i had play with the scroll wheel but didn't like it much >> because when you have a large >> image loaded and you have scrollbars it gets a bit confusing when the >> image scrolls around would you like me to post what i have done ? >> > Yes, can you rename it 0.0.7? > > Also I think what I'm going to do is to use imagemagik to re-size the image to > the drawing area size before loading it, and make the drawing area expand to > the form size, remove the box on the screen, and make the lens permanant, ie > not dependant on mouse down, otherwise its is a bit confusing to just have > part of the image showing. Will see what you do and then take a look tomorrow > as have to head off to bed. > > thanks. > > Richard > >> --------------------------------------------------------------------------- >> --- Benefiting from Server Virtualization: Beyond Initial Workload >> Consolidation -- Increasing the use of server virtualization is a top >> priority.Virtualization can reduce costs, simplify management, and improve >> application availability and disaster protection. Learn more about boosting >> the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > ------------------------------------------------------------------------------ > Benefiting from Server Virtualization: Beyond Initial Workload > Consolidation -- Increasing the use of server virtualization is a top > priority.Virtualization can reduce costs, simplify management, and improve > application availability and disaster protection. Learn more about boosting > the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user Hi Richard no need to use imagemagik it can all be done in gambas you just need to work with the resized image and as far as making the len permanant you just have to set the drawingarea tracking to true i will have a look tomorrow and send something any thing else that you might need let me know From rterry at ...1946... Tue Apr 19 15:55:24 2011 From: rterry at ...1946... (richard terry) Date: Tue, 19 Apr 2011 23:55:24 +1000 Subject: [Gambas-user] Magnify 0.0.8 In-Reply-To: <4DAD703A.3010803@...2481...> References: <4DABF11E.9020509@...2481...> <201104192053.09932.rterry@...1946...> <4DAD703A.3010803@...2481...> Message-ID: <201104192355.24501.rterry@...1946...> On Tuesday 19 April 2011 21:21:30 Shane Powell wrote: Ok, I couldn't resist before I went to bed, I've skipped a number in case you post 0.0.7 and we get confused. Hope I've sent the correct one, if not re- post. This now works like this. 1) You must load a file first 2) Tries to resize the picture using imagemagik (convert) and warns you (I hope) if that program is not on your computer 3) Loads the picture 4) Then theres a glitch, maybe fabian can help i) no lens appears till I click the mouse, but can't see any code there that does this!!!! ii) after the initial draw but before the lens there is a red circle in the top lef hand side. Other than than, once you click the mouse if works well, including the zoom on the mouse button, I've put smaller increments and a max/min on the mouse zoom. Regards Richard > On 19/04/11 20:53, richard terry wrote: > > On Tuesday 19 April 2011 20:34:17 Fabien Bodard wrote: > >> What do you want to do exactly Richard ? > > > > Hi Fabian > > > > I don't really want the side viewer - but the viewer with the circle > > around it like you drew - on the picture itself. > > > > The last version shane posted seemed more accurate in terms of the circle > > positioning than his earlier ones. > > > > Also zoom wise anything more than 1-2-3 times is not of any use. I tried > > it today just with the circular lens and using the mouse wheel to zoom > > up, but didn't have time to fine-tune it. > > > > Let me take the last one he posted and I'll call it 0.0.7 and we can go > > from there over the next few days. > > > > Had a really bad/busy day at work so am tired ++, and my gambas is > > playing up big time - not stopping at breakpoints, and object calls not > > working, odd things - goodness knows why - and I'm desperately trying to > > look at this tonight in the little time I have as I am dependant on my > > program to run my clinical practice - even though many sections are not > > yet finished - I had a horror start to the day when my changes last night > > meant I couldn't save clinical records, so i had to back track a few > > versions to be able to continue working. > > > > Will post some more. > > > > thanks > > > > richard > > > >> The v0.06 have Two viewer... mine and shane one ... i think you need > >> to choose one way. > >> > >> I you choose to have a side viewer for the lens, then draw a simple > >> square on the mouse move in the original picture. The square have the > >> size of the viewed part. It's invert proportionnal of the zoom > >> > >> > >> if the viewer have 30*30 then at zoom 2 the Square have 15*15 at Zoom > >> 3 square = 10*10 etc > >> > >> ------------------------------------------------------------------------ > >>--- --- Benefiting from Server Virtualization: Beyond Initial Workload > >> Consolidation -- Increasing the use of server virtualization is a top > >> priority.Virtualization can reduce costs, simplify management, and > >> improve application availability and disaster protection. Learn more > >> about boosting the value of server virtualization. > >> http://p.sf.net/sfu/vmware-sfdev2dev > >> _______________________________________________ > >> Gambas-user mailing list > >> Gambas-user at lists.sourceforge.net > >> https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > ------------------------------------------------------------------------- > >----- Benefiting from Server Virtualization: Beyond Initial Workload > > Consolidation -- Increasing the use of server virtualization is a top > > priority.Virtualization can reduce costs, simplify management, and > > improve application availability and disaster protection. Learn more > > about boosting the value of server virtualization. > > http://p.sf.net/sfu/vmware-sfdev2dev > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > Hi richard i had play with the scroll wheel but didn't like it much > because when you have a large > image loaded and you have scrollbars it gets a bit confusing when the > image scrolls around would you like me to post what i have done ? > > > --------------------------------------------------------------------------- > --- Benefiting from Server Virtualization: Beyond Initial Workload > Consolidation -- Increasing the use of server virtualization is a top > priority.Virtualization can reduce costs, simplify management, and improve > application availability and disaster protection. Learn more about boosting > the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -------------- next part -------------- A non-text attachment was scrubbed... Name: Magnify-0.0.8.tar.gz Type: application/x-compressed-tar Size: 6208 bytes Desc: not available URL: From rterry at ...1946... Wed Apr 20 02:04:51 2011 From: rterry at ...1946... (richard terry) Date: Wed, 20 Apr 2011 10:04:51 +1000 Subject: [Gambas-user] Break points not working In-Reply-To: <201104191516.28366.gambas@...1...> References: <201104192042.33295.rterry@...1946...> <201104191500.34431.gambas@...1...> <201104191516.28366.gambas@...1...> Message-ID: <201104201004.51880.rterry@...1946...> On Tuesday 19 April 2011 23:16:28 Beno?t Minisini wrote: > > > > I had the same problem recently on a specific projet, but couldn't > > > > find the reason. Strange... > > > > > > mm.......... appreciate the comment but this is fairly critical for me, > > > as I now am finding programming very very difficult. Any chance of > > > hints/help.pointers to try and elucidate the problem, as you must know > > > how breakpoints work. Could deleting any config files etc help?, does > > > it use any specific information, maybe if you describe how the > > > breakpoint system works I could help you find out the bug. > > > > > > Regards > > > > > > richard > > > > I have identified where the problem comes from. Now I'm currently making > > a fix... > > The bug should be fixed in revision #3779. > > The bug was in how debugging information is generated. So you have to > recompile your project. > > Regards, > Thanks, working again! Your amazing in what you do, I continue to be in awe at your contribution to the community and what gambas is allowing me to do. Regards Richard From shanep at ...2481... Wed Apr 20 06:25:03 2011 From: shanep at ...2481... (Shane Powell) Date: Wed, 20 Apr 2011 14:25:03 +1000 Subject: [Gambas-user] Magnify 0.0.8 In-Reply-To: <201104192355.24501.rterry@...1946...> References: <4DABF11E.9020509@...2481...> <201104192053.09932.rterry@...1946...> <4DAD703A.3010803@...2481...> <201104192355.24501.rterry@...1946...> Message-ID: <4DAE601F.7020408@...2481...> On 19/04/11 23:55, richard terry wrote: > On Tuesday 19 April 2011 21:21:30 Shane Powell wrote: > > Ok, I couldn't resist before I went to bed, I've skipped a number in case you > post 0.0.7 and we get confused. Hope I've sent the correct one, if not re- > post. > > This now works like this. > 1) You must load a file first > 2) Tries to resize the picture using imagemagik (convert) and warns you (I > hope) if that program is not on your computer > 3) Loads the picture > 4) Then theres a glitch, maybe fabian can help > i) no lens appears till I click the mouse, but can't see any code there that > does this!!!! > ii) after the initial draw but before the lens there is a red circle in the > top lef hand side. > > Other than than, once you click the mouse if works well, including the zoom on > the mouse button, I've put smaller increments and a max/min on the mouse zoom. > > Regards > > Richard > > >> On 19/04/11 20:53, richard terry wrote: >>> On Tuesday 19 April 2011 20:34:17 Fabien Bodard wrote: >>>> What do you want to do exactly Richard ? >>> Hi Fabian >>> >>> I don't really want the side viewer - but the viewer with the circle >>> around it like you drew - on the picture itself. >>> >>> The last version shane posted seemed more accurate in terms of the circle >>> positioning than his earlier ones. >>> >>> Also zoom wise anything more than 1-2-3 times is not of any use. I tried >>> it today just with the circular lens and using the mouse wheel to zoom >>> up, but didn't have time to fine-tune it. >>> >>> Let me take the last one he posted and I'll call it 0.0.7 and we can go >>> from there over the next few days. >>> >>> Had a really bad/busy day at work so am tired ++, and my gambas is >>> playing up big time - not stopping at breakpoints, and object calls not >>> working, odd things - goodness knows why - and I'm desperately trying to >>> look at this tonight in the little time I have as I am dependant on my >>> program to run my clinical practice - even though many sections are not >>> yet finished - I had a horror start to the day when my changes last night >>> meant I couldn't save clinical records, so i had to back track a few >>> versions to be able to continue working. >>> >>> Will post some more. >>> >>> thanks >>> >>> richard >>> >>>> The v0.06 have Two viewer... mine and shane one ... i think you need >>>> to choose one way. >>>> >>>> I you choose to have a side viewer for the lens, then draw a simple >>>> square on the mouse move in the original picture. The square have the >>>> size of the viewed part. It's invert proportionnal of the zoom >>>> >>>> >>>> if the viewer have 30*30 then at zoom 2 the Square have 15*15 at Zoom >>>> 3 square = 10*10 etc >>>> >>>> ------------------------------------------------------------------------ >>>> --- --- Benefiting from Server Virtualization: Beyond Initial Workload >>>> Consolidation -- Increasing the use of server virtualization is a top >>>> priority.Virtualization can reduce costs, simplify management, and >>>> improve application availability and disaster protection. Learn more >>>> about boosting the value of server virtualization. >>>> http://p.sf.net/sfu/vmware-sfdev2dev >>>> _______________________________________________ >>>> Gambas-user mailing list >>>> Gambas-user at lists.sourceforge.net >>>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>> ------------------------------------------------------------------------- >>> ----- Benefiting from Server Virtualization: Beyond Initial Workload >>> Consolidation -- Increasing the use of server virtualization is a top >>> priority.Virtualization can reduce costs, simplify management, and >>> improve application availability and disaster protection. Learn more >>> about boosting the value of server virtualization. >>> http://p.sf.net/sfu/vmware-sfdev2dev >>> _______________________________________________ >>> Gambas-user mailing list >>> Gambas-user at lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/gambas-user >> Hi richard i had play with the scroll wheel but didn't like it much >> because when you have a large >> image loaded and you have scrollbars it gets a bit confusing when the >> image scrolls around would you like me to post what i have done ? >> >> >> --------------------------------------------------------------------------- >> --- Benefiting from Server Virtualization: Beyond Initial Workload >> Consolidation -- Increasing the use of server virtualization is a top >> priority.Virtualization can reduce costs, simplify management, and improve >> application availability and disaster protection. Learn more about boosting >> the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> >> >> >> ------------------------------------------------------------------------------ >> Benefiting from Server Virtualization: Beyond Initial Workload >> Consolidation -- Increasing the use of server virtualization is a top >> priority.Virtualization can reduce costs, simplify management, and improve >> application availability and disaster protection. Learn more about boosting >> the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev >> >> >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user Try this richard -------------- next part -------------- A non-text attachment was scrubbed... Name: Magnify-0.0.8-0.0.8.tar.gz Type: application/x-gzip Size: 6406 bytes Desc: not available URL: From rterry at ...1946... Wed Apr 20 07:31:00 2011 From: rterry at ...1946... (richard terry) Date: Wed, 20 Apr 2011 15:31:00 +1000 Subject: [Gambas-user] Magnify 0.0.8 In-Reply-To: <4DAE601F.7020408@...2481...> References: <4DABF11E.9020509@...2481...> <201104192355.24501.rterry@...1946...> <4DAE601F.7020408@...2481...> Message-ID: <201104201531.01004.rterry@...1946...> On Wednesday 20 April 2011 14:25:03 Shane Powell wrote: Thanks, will do in a minute - struggling through patients/paper work. Another consideration is this. At the moment the magnification is magnifying from the loaded image which has been shrunk to fit the drawing area. One really needs a copy of the image, not shown on the screen which would hence be the original image size. The co-ordinates of the mouse, should be taken from the 'shrunken image', but the data for the magnified area needs to be taken from the 'hidden' image, ie the image in memory. Regards Richard > On 19/04/11 23:55, richard terry wrote: > > On Tuesday 19 April 2011 21:21:30 Shane Powell wrote: > > > > Ok, I couldn't resist before I went to bed, I've skipped a number in case > > you post 0.0.7 and we get confused. Hope I've sent the correct one, if > > not re- post. > > > > This now works like this. > > 1) You must load a file first > > 2) Tries to resize the picture using imagemagik (convert) and warns you > > (I hope) if that program is not on your computer > > 3) Loads the picture > > 4) Then theres a glitch, maybe fabian can help > > i) no lens appears till I click the mouse, but can't see any code there > > that does this!!!! > > ii) after the initial draw but before the lens there is a red circle in > > the top lef hand side. > > > > Other than than, once you click the mouse if works well, including the > > zoom on the mouse button, I've put smaller increments and a max/min on > > the mouse zoom. > > > > Regards > > > > Richard > > > >> On 19/04/11 20:53, richard terry wrote: > >>> On Tuesday 19 April 2011 20:34:17 Fabien Bodard wrote: > >>>> What do you want to do exactly Richard ? > >>> > >>> Hi Fabian > >>> > >>> I don't really want the side viewer - but the viewer with the circle > >>> around it like you drew - on the picture itself. > >>> > >>> The last version shane posted seemed more accurate in terms of the > >>> circle positioning than his earlier ones. > >>> > >>> Also zoom wise anything more than 1-2-3 times is not of any use. I > >>> tried it today just with the circular lens and using the mouse wheel to > >>> zoom up, but didn't have time to fine-tune it. > >>> > >>> Let me take the last one he posted and I'll call it 0.0.7 and we can go > >>> from there over the next few days. > >>> > >>> Had a really bad/busy day at work so am tired ++, and my gambas is > >>> playing up big time - not stopping at breakpoints, and object calls not > >>> working, odd things - goodness knows why - and I'm desperately trying > >>> to look at this tonight in the little time I have as I am dependant on > >>> my program to run my clinical practice - even though many sections are > >>> not yet finished - I had a horror start to the day when my changes last > >>> night meant I couldn't save clinical records, so i had to back track a > >>> few versions to be able to continue working. > >>> > >>> Will post some more. > >>> > >>> thanks > >>> > >>> richard > >>> > >>>> The v0.06 have Two viewer... mine and shane one ... i think you need > >>>> to choose one way. > >>>> > >>>> I you choose to have a side viewer for the lens, then draw a simple > >>>> square on the mouse move in the original picture. The square have the > >>>> size of the viewed part. It's invert proportionnal of the zoom > >>>> > >>>> > >>>> if the viewer have 30*30 then at zoom 2 the Square have 15*15 at Zoom > >>>> 3 square = 10*10 etc > >>>> > >>>> ---------------------------------------------------------------------- > >>>>-- --- --- Benefiting from Server Virtualization: Beyond Initial > >>>> Workload Consolidation -- Increasing the use of server virtualization > >>>> is a top priority.Virtualization can reduce costs, simplify > >>>> management, and improve application availability and disaster > >>>> protection. Learn more about boosting the value of server > >>>> virtualization. > >>>> http://p.sf.net/sfu/vmware-sfdev2dev > >>>> _______________________________________________ > >>>> Gambas-user mailing list > >>>> Gambas-user at lists.sourceforge.net > >>>> https://lists.sourceforge.net/lists/listinfo/gambas-user > >>> > >>> ----------------------------------------------------------------------- > >>>-- ----- Benefiting from Server Virtualization: Beyond Initial Workload > >>> Consolidation -- Increasing the use of server virtualization is a top > >>> priority.Virtualization can reduce costs, simplify management, and > >>> improve application availability and disaster protection. Learn more > >>> about boosting the value of server virtualization. > >>> http://p.sf.net/sfu/vmware-sfdev2dev > >>> _______________________________________________ > >>> Gambas-user mailing list > >>> Gambas-user at lists.sourceforge.net > >>> https://lists.sourceforge.net/lists/listinfo/gambas-user > >> > >> Hi richard i had play with the scroll wheel but didn't like it much > >> because when you have a large > >> image loaded and you have scrollbars it gets a bit confusing when the > >> image scrolls around would you like me to post what i have done ? > >> > >> > >> ------------------------------------------------------------------------ > >>--- --- Benefiting from Server Virtualization: Beyond Initial Workload > >> Consolidation -- Increasing the use of server virtualization is a top > >> priority.Virtualization can reduce costs, simplify management, and > >> improve application availability and disaster protection. Learn more > >> about boosting the value of server virtualization. > >> http://p.sf.net/sfu/vmware-sfdev2dev > >> _______________________________________________ > >> Gambas-user mailing list > >> Gambas-user at lists.sourceforge.net > >> https://lists.sourceforge.net/lists/listinfo/gambas-user > >> > >> > >> > >> ------------------------------------------------------------------------ > >>------ Benefiting from Server Virtualization: Beyond Initial Workload > >> Consolidation -- Increasing the use of server virtualization is a top > >> priority.Virtualization can reduce costs, simplify management, and > >> improve application availability and disaster protection. Learn more > >> about boosting the value of server virtualization. > >> http://p.sf.net/sfu/vmware-sfdev2dev > >> > >> > >> _______________________________________________ > >> Gambas-user mailing list > >> Gambas-user at lists.sourceforge.net > >> https://lists.sourceforge.net/lists/listinfo/gambas-user > > Try this richard > From shanep at ...2481... Tue Apr 19 13:24:56 2011 From: shanep at ...2481... (Shane Powell) Date: Tue, 19 Apr 2011 21:24:56 +1000 Subject: [Gambas-user] Magnify Message-ID: <4DAD7108.5000405@...2481...> Here it is anyway -------------- next part -------------- A non-text attachment was scrubbed... Name: Magnify-0.0.6.tar.gz Type: application/x-gzip Size: 131204 bytes Desc: not available URL: From rterry at ...1946... Wed Apr 20 07:49:37 2011 From: rterry at ...1946... (richard terry) Date: Wed, 20 Apr 2011 15:49:37 +1000 Subject: [Gambas-user] Magnify 0.0.8 In-Reply-To: <4DAE601F.7020408@...2481...> References: <4DABF11E.9020509@...2481...> <201104192355.24501.rterry@...1946...> <4DAE601F.7020408@...2481...> Message-ID: <201104201549.37214.rterry@...1946...> On Wednesday 20 April 2011 14:25:03 Shane Powell wrote: Had a quick play with this, works ok, except when the image is expanded the mouse-over is no longer accurate. Have a think about my previous post about the 'hidden image' as the one you read off for the magnified area. I'll take a look at the code tonight when I get home. Whatever happens, even in its simple form now I think it would be nice to put into the examples for Gambas, Maybe Benoit can give us permission to do this. Regards Richard > On 19/04/11 23:55, richard terry wrote: > > On Tuesday 19 April 2011 21:21:30 Shane Powell wrote: > > > > Ok, I couldn't resist before I went to bed, I've skipped a number in case > > you post 0.0.7 and we get confused. Hope I've sent the correct one, if > > not re- post. > > > > This now works like this. > > 1) You must load a file first > > 2) Tries to resize the picture using imagemagik (convert) and warns you > > (I hope) if that program is not on your computer > > 3) Loads the picture > > 4) Then theres a glitch, maybe fabian can help > > i) no lens appears till I click the mouse, but can't see any code there > > that does this!!!! > > ii) after the initial draw but before the lens there is a red circle in > > the top lef hand side. > > > > Other than than, once you click the mouse if works well, including the > > zoom on the mouse button, I've put smaller increments and a max/min on > > the mouse zoom. > > > > Regards > > > > Richard > > > >> On 19/04/11 20:53, richard terry wrote: > >>> On Tuesday 19 April 2011 20:34:17 Fabien Bodard wrote: > >>>> What do you want to do exactly Richard ? > >>> > >>> Hi Fabian > >>> > >>> I don't really want the side viewer - but the viewer with the circle > >>> around it like you drew - on the picture itself. > >>> > >>> The last version shane posted seemed more accurate in terms of the > >>> circle positioning than his earlier ones. > >>> > >>> Also zoom wise anything more than 1-2-3 times is not of any use. I > >>> tried it today just with the circular lens and using the mouse wheel to > >>> zoom up, but didn't have time to fine-tune it. > >>> > >>> Let me take the last one he posted and I'll call it 0.0.7 and we can go > >>> from there over the next few days. > >>> > >>> Had a really bad/busy day at work so am tired ++, and my gambas is > >>> playing up big time - not stopping at breakpoints, and object calls not > >>> working, odd things - goodness knows why - and I'm desperately trying > >>> to look at this tonight in the little time I have as I am dependant on > >>> my program to run my clinical practice - even though many sections are > >>> not yet finished - I had a horror start to the day when my changes last > >>> night meant I couldn't save clinical records, so i had to back track a > >>> few versions to be able to continue working. > >>> > >>> Will post some more. > >>> > >>> thanks > >>> > >>> richard > >>> > >>>> The v0.06 have Two viewer... mine and shane one ... i think you need > >>>> to choose one way. > >>>> > >>>> I you choose to have a side viewer for the lens, then draw a simple > >>>> square on the mouse move in the original picture. The square have the > >>>> size of the viewed part. It's invert proportionnal of the zoom > >>>> > >>>> > >>>> if the viewer have 30*30 then at zoom 2 the Square have 15*15 at Zoom > >>>> 3 square = 10*10 etc > >>>> > >>>> ---------------------------------------------------------------------- > >>>>-- --- --- Benefiting from Server Virtualization: Beyond Initial > >>>> Workload Consolidation -- Increasing the use of server virtualization > >>>> is a top priority.Virtualization can reduce costs, simplify > >>>> management, and improve application availability and disaster > >>>> protection. Learn more about boosting the value of server > >>>> virtualization. > >>>> http://p.sf.net/sfu/vmware-sfdev2dev > >>>> _______________________________________________ > >>>> Gambas-user mailing list > >>>> Gambas-user at lists.sourceforge.net > >>>> https://lists.sourceforge.net/lists/listinfo/gambas-user > >>> > >>> ----------------------------------------------------------------------- > >>>-- ----- Benefiting from Server Virtualization: Beyond Initial Workload > >>> Consolidation -- Increasing the use of server virtualization is a top > >>> priority.Virtualization can reduce costs, simplify management, and > >>> improve application availability and disaster protection. Learn more > >>> about boosting the value of server virtualization. > >>> http://p.sf.net/sfu/vmware-sfdev2dev > >>> _______________________________________________ > >>> Gambas-user mailing list > >>> Gambas-user at lists.sourceforge.net > >>> https://lists.sourceforge.net/lists/listinfo/gambas-user > >> > >> Hi richard i had play with the scroll wheel but didn't like it much > >> because when you have a large > >> image loaded and you have scrollbars it gets a bit confusing when the > >> image scrolls around would you like me to post what i have done ? > >> > >> > >> ------------------------------------------------------------------------ > >>--- --- Benefiting from Server Virtualization: Beyond Initial Workload > >> Consolidation -- Increasing the use of server virtualization is a top > >> priority.Virtualization can reduce costs, simplify management, and > >> improve application availability and disaster protection. Learn more > >> about boosting the value of server virtualization. > >> http://p.sf.net/sfu/vmware-sfdev2dev > >> _______________________________________________ > >> Gambas-user mailing list > >> Gambas-user at lists.sourceforge.net > >> https://lists.sourceforge.net/lists/listinfo/gambas-user > >> > >> > >> > >> ------------------------------------------------------------------------ > >>------ Benefiting from Server Virtualization: Beyond Initial Workload > >> Consolidation -- Increasing the use of server virtualization is a top > >> priority.Virtualization can reduce costs, simplify management, and > >> improve application availability and disaster protection. Learn more > >> about boosting the value of server virtualization. > >> http://p.sf.net/sfu/vmware-sfdev2dev > >> > >> > >> _______________________________________________ > >> Gambas-user mailing list > >> Gambas-user at lists.sourceforge.net > >> https://lists.sourceforge.net/lists/listinfo/gambas-user > > Try this richard > From doriano.blengino at ...1909... Wed Apr 20 09:08:25 2011 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Wed, 20 Apr 2011 09:08:25 +0200 Subject: [Gambas-user] using a "file system database" In-Reply-To: <4DAC04EB.6000007@...1887...> References: <4DA7F23D.6070105@...1887...> <4DA7FA3A.7000209@...1909...> <4DABCB2A.6070108@...1887...> <4DABF709.1010903@...1909...> <4DAC04EB.6000007@...1887...> Message-ID: <4DAE8669.70604@...1909...> Kevin Fishburne ha scritto: >>> My current plan is to create a directory for each region >>> ([65536/32/32]^2). Each region directory contains 32^2 data files >>> (1024). Hopefully this won't stress any particular file system as far as >>> how many directories and files are contained within a single directory. >>> >>> >> But... I am missing something... the number of files was 4M, right? And >> 64 directories with 1024 files does not sum up to 4M... >> > > A cell is 32x32 tiles (bytes), and the map is 65536^2 tiles, so there > are 2048^2 cells. Each of these are organized into directories of 32^2 > cells (regions). The data files alone are 4.2 million in number, the > directories that organize them hopefully add a layer of filesystem > efficiency. Right now a separate directory is created for each region > and empty data files are created for each cell within that region. > > I can't explain myself why I did not understand at first. Well (not)... apparently I missed the square "^2". So there are 4096 directories containing 1024 files each, and each file is 1Kb in size (or not?). If this is correct, you should choose a small allocation unit for your file system (1 or 2 Kb?). Assuming that the file system uses, say, 128 bytes for storing the metadata for a file, you will have 4Gb of data, 512Mb of metadata for the files, and 4K*128=512K of metadata for the directories. More than 12% of the total volume of data is spent for organizing them, which is not a bad number, but in your case this could be improved by merging together, for example, all the files (1024) of a single directory, if this is possible. If the files were different in length, then using the file system to organize them would have been the easiest way. But this is just a theoretical supposition... I have checked the file systems on my old server. The root partition is 2Gb (your cells would not fit there), uses 1K blocks, and has a total of 1M inodes (again the cells would not fit). The /usr partition is 18Gb, uses a block size of 4K, and has a total of 1M inodes. Again, your data would not fit because of the number of files. The biggest partition is 200Gb, uses 4K as block size, and counts 12M inodes. In this partition, your data would take 16Gb of space, but anyway it would fit, at the cost of transferring 4 times the useful data at every read (probably). I think the only pit is speed, and not disk space wasting. If there is enough ram in the computer to cache the 512Mb of metadata, access is very quick (10 milliseconds? Or less?). Otherwise, the same metadata must be read over and over, at every access, which means that the computer will read several Mb to access a single 1k file. These are the opposite and extreme situations - in the reality a certain amount of disk cache will always be in use. My old server has only 96Mb of ram, but as a normal file server performs not badly. Clearly, I don't have 4M files on it... :-) Regards, Doriano From oceanosoftlapalma at ...626... Wed Apr 20 10:24:56 2011 From: oceanosoftlapalma at ...626... (=?ISO-8859-1?Q?Ricardo_D=EDaz_Mart=EDn?=) Date: Wed, 20 Apr 2011 10:24:56 +0200 Subject: [Gambas-user] Change envent in ComboBox is not fired Message-ID: Hi, Example is attached. I'm trying with qt4 libs. Regards, Ricardo D?az [OperatingSystem] OperatingSystem=Linux KernelRelease=2.6.35-28-generic DistributionVendor=Ubuntu DistributionRelease="Ubuntu 10.10" [System] CPUArchitecture=x86_64 TotalRam=2057124 kB Desktop=Gnome [Gambas] Gambas1=Not Installed Gambas2=Not Installed Gambas3=2.99.1 Gambas3Path=/usr/local/bin/gbx3 -------------- next part -------------- A non-text attachment was scrubbed... Name: ComboBoxBug-0.0.1.tar.gz Type: application/x-gzip Size: 4809 bytes Desc: not available URL: From shanep at ...2481... Wed Apr 20 10:45:22 2011 From: shanep at ...2481... (Shane Powell) Date: Wed, 20 Apr 2011 18:45:22 +1000 Subject: [Gambas-user] Magnify 0.0.8 In-Reply-To: <201104201549.37214.rterry@...1946...> References: <4DABF11E.9020509@...2481...> <201104192355.24501.rterry@...1946...> <4DAE601F.7020408@...2481...> <201104201549.37214.rterry@...1946...> Message-ID: <4DAE9D22.6010805@...2481...> On 20/04/11 15:49, richard terry wrote: > On Wednesday 20 April 2011 14:25:03 Shane Powell wrote: > Had a quick play with this, works ok, except when the image is expanded the > mouse-over is no longer accurate. > > Have a think about my previous post about the 'hidden image' as the one you > read off for the magnified area. I'll take a look at the code tonight when I get > home. > > Whatever happens, even in its simple form now I think it would be nice to put > into the examples for Gambas, Maybe Benoit can give us permission to do this. > > Regards > > Richard > >> On 19/04/11 23:55, richard terry wrote: >>> On Tuesday 19 April 2011 21:21:30 Shane Powell wrote: >>> >>> Ok, I couldn't resist before I went to bed, I've skipped a number in case >>> you post 0.0.7 and we get confused. Hope I've sent the correct one, if >>> not re- post. >>> >>> This now works like this. >>> 1) You must load a file first >>> 2) Tries to resize the picture using imagemagik (convert) and warns you >>> (I hope) if that program is not on your computer >>> 3) Loads the picture >>> 4) Then theres a glitch, maybe fabian can help >>> i) no lens appears till I click the mouse, but can't see any code there >>> that does this!!!! >>> ii) after the initial draw but before the lens there is a red circle in >>> the top lef hand side. >>> >>> Other than than, once you click the mouse if works well, including the >>> zoom on the mouse button, I've put smaller increments and a max/min on >>> the mouse zoom. >>> >>> Regards >>> >>> Richard >>> >>>> On 19/04/11 20:53, richard terry wrote: >>>>> On Tuesday 19 April 2011 20:34:17 Fabien Bodard wrote: >>>>>> What do you want to do exactly Richard ? >>>>> Hi Fabian >>>>> >>>>> I don't really want the side viewer - but the viewer with the circle >>>>> around it like you drew - on the picture itself. >>>>> >>>>> The last version shane posted seemed more accurate in terms of the >>>>> circle positioning than his earlier ones. >>>>> >>>>> Also zoom wise anything more than 1-2-3 times is not of any use. I >>>>> tried it today just with the circular lens and using the mouse wheel to >>>>> zoom up, but didn't have time to fine-tune it. >>>>> >>>>> Let me take the last one he posted and I'll call it 0.0.7 and we can go >>>>> from there over the next few days. >>>>> >>>>> Had a really bad/busy day at work so am tired ++, and my gambas is >>>>> playing up big time - not stopping at breakpoints, and object calls not >>>>> working, odd things - goodness knows why - and I'm desperately trying >>>>> to look at this tonight in the little time I have as I am dependant on >>>>> my program to run my clinical practice - even though many sections are >>>>> not yet finished - I had a horror start to the day when my changes last >>>>> night meant I couldn't save clinical records, so i had to back track a >>>>> few versions to be able to continue working. >>>>> >>>>> Will post some more. >>>>> >>>>> thanks >>>>> >>>>> richard >>>>> >>>>>> The v0.06 have Two viewer... mine and shane one ... i think you need >>>>>> to choose one way. >>>>>> >>>>>> I you choose to have a side viewer for the lens, then draw a simple >>>>>> square on the mouse move in the original picture. The square have the >>>>>> size of the viewed part. It's invert proportionnal of the zoom >>>>>> >>>>>> >>>>>> if the viewer have 30*30 then at zoom 2 the Square have 15*15 at Zoom >>>>>> 3 square = 10*10 etc >>>>>> >>>>>> ---------------------------------------------------------------------- >>>>>> -- --- --- Benefiting from Server Virtualization: Beyond Initial >>>>>> Workload Consolidation -- Increasing the use of server virtualization >>>>>> is a top priority.Virtualization can reduce costs, simplify >>>>>> management, and improve application availability and disaster >>>>>> protection. Learn more about boosting the value of server >>>>>> virtualization. >>>>>> http://p.sf.net/sfu/vmware-sfdev2dev >>>>>> _______________________________________________ >>>>>> Gambas-user mailing list >>>>>> Gambas-user at lists.sourceforge.net >>>>>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>>>> ----------------------------------------------------------------------- >>>>> -- ----- Benefiting from Server Virtualization: Beyond Initial Workload >>>>> Consolidation -- Increasing the use of server virtualization is a top >>>>> priority.Virtualization can reduce costs, simplify management, and >>>>> improve application availability and disaster protection. Learn more >>>>> about boosting the value of server virtualization. >>>>> http://p.sf.net/sfu/vmware-sfdev2dev >>>>> _______________________________________________ >>>>> Gambas-user mailing list >>>>> Gambas-user at lists.sourceforge.net >>>>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>>> Hi richard i had play with the scroll wheel but didn't like it much >>>> because when you have a large >>>> image loaded and you have scrollbars it gets a bit confusing when the >>>> image scrolls around would you like me to post what i have done ? >>>> >>>> >>>> ------------------------------------------------------------------------ >>>> --- --- Benefiting from Server Virtualization: Beyond Initial Workload >>>> Consolidation -- Increasing the use of server virtualization is a top >>>> priority.Virtualization can reduce costs, simplify management, and >>>> improve application availability and disaster protection. Learn more >>>> about boosting the value of server virtualization. >>>> http://p.sf.net/sfu/vmware-sfdev2dev >>>> _______________________________________________ >>>> Gambas-user mailing list >>>> Gambas-user at lists.sourceforge.net >>>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>>> >>>> >>>> >>>> ------------------------------------------------------------------------ >>>> ------ Benefiting from Server Virtualization: Beyond Initial Workload >>>> Consolidation -- Increasing the use of server virtualization is a top >>>> priority.Virtualization can reduce costs, simplify management, and >>>> improve application availability and disaster protection. Learn more >>>> about boosting the value of server virtualization. >>>> http://p.sf.net/sfu/vmware-sfdev2dev >>>> >>>> >>>> _______________________________________________ >>>> Gambas-user mailing list >>>> Gambas-user at lists.sourceforge.net >>>> https://lists.sourceforge.net/lists/listinfo/gambas-user >> Try this richard >> > ------------------------------------------------------------------------------ > Benefiting from Server Virtualization: Beyond Initial Workload > Consolidation -- Increasing the use of server virtualization is a top > priority.Virtualization can reduce costs, simplify management, and improve > application availability and disaster protection. Learn more about boosting > the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user just a little fixup I'll leave that last idea up to Richard :-) -------------- next part -------------- A non-text attachment was scrubbed... Name: Magnify-0.0.8-0.0.8.tar.gz Type: application/x-gzip Size: 6501 bytes Desc: not available URL: From math.eber at ...221... Wed Apr 20 19:21:36 2011 From: math.eber at ...221... (Matti) Date: Wed, 20 Apr 2011 19:21:36 +0200 Subject: [Gambas-user] Change envent in ComboBox is not fired In-Reply-To: References: Message-ID: <4DAF1620.5070809@...221...> This is because you have set the ReadOnly property to 'true'. See wiki: in this case the change event is not raised. Set ReadOnly to 'false', and it works. (but you have to replace 'Me.ComboBox1' with 'ComboBox1' in the Message). If you need ReadOnly=True, maybe you could use the Click event? Regards Matti Am 20.04.2011 10:24, schrieb Ricardo D?az Mart?n: > Hi, > > Example is attached. I'm trying with qt4 libs. > > Regards, > Ricardo D?az > > [OperatingSystem] > > OperatingSystem=Linux > > KernelRelease=2.6.35-28-generic > > DistributionVendor=Ubuntu > > DistributionRelease="Ubuntu 10.10" > > [System] > > CPUArchitecture=x86_64 > > TotalRam=2057124 kB > > Desktop=Gnome > > [Gambas] > > Gambas1=Not Installed > > Gambas2=Not Installed > > Gambas3=2.99.1 > > Gambas3Path=/usr/local/bin/gbx3 > > > > ------------------------------------------------------------------------------ > Benefiting from Server Virtualization: Beyond Initial Workload > Consolidation -- Increasing the use of server virtualization is a top > priority.Virtualization can reduce costs, simplify management, and improve > application availability and disaster protection. Learn more about boosting > the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev > > > > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From math.eber at ...221... Wed Apr 20 20:20:35 2011 From: math.eber at ...221... (Matti) Date: Wed, 20 Apr 2011 20:20:35 +0200 Subject: [Gambas-user] Magnify 0.0.8 In-Reply-To: <4DAE9D22.6010805@...2481...> References: <4DABF11E.9020509@...2481...> <201104192355.24501.rterry@...1946...> <4DAE601F.7020408@...2481...> <201104201549.37214.rterry@...1946...> <4DAE9D22.6010805@...2481...> Message-ID: <4DAF23F3.10506@...221...> Hi Shane and Richard (and whoever, didn't follow the conversation), this is a nice idea! After trying it just once with a few images, a question: The lens magnifies, but definitely doesn't show the original size of the image. My test images are about 3200x2400, and your lens shows about 2/3 of the original size. Is this a planned behaviour? Another question: I'm working on an image viewer example for Gambas3. What do you think about joining the projects, putting your magnifying glass somewhere (Zoom menu probably) into the viewer as a menu item? I didn't read your code and don't know if it could be integrated easily, but why not. I just like the idea of having this option in the viewer, instead of having two different examples. So, have a look at my project and tell me what you think. Don't complain about bugs! There have been some big changes, and a lot of the code isn't fixed yet. Regards Matti -------------- next part -------------- A non-text attachment was scrubbed... Name: AnotherImageViewer-0.0.4.tar.gz Type: application/x-gzip Size: 23931 bytes Desc: not available URL: From rterry at ...1946... Thu Apr 21 00:11:02 2011 From: rterry at ...1946... (richard terry) Date: Thu, 21 Apr 2011 08:11:02 +1000 Subject: [Gambas-user] Magnify 0.0.8 In-Reply-To: <4DAF23F3.10506@...221...> References: <4DABF11E.9020509@...2481...> <4DAE9D22.6010805@...2481...> <4DAF23F3.10506@...221...> Message-ID: <201104210811.02398.rterry@...1946...> On Thursday 21 April 2011 04:20:35 Matti wrote: > Hi Shane and Richard (and whoever, didn't follow the conversation), > > this is a nice idea! > > After trying it just once with a few images, a question: The lens > magnifies, but definitely doesn't show the original size of the image. My > test images are about 3200x2400, and your lens shows about 2/3 of the > original size. > Is this a planned behaviour? The problem is that (with my lack of logic) there's been no proper implementation of the magnification. Its much harder than you think. I think the current version 0.0.8 problem is that it is only magnifiying the image from the scaled image once loaded, and not the original, hence the detail blurs as you magnify. I sat down last night and tried a version which keep the original image in memory as an image, and then tried to calculate the start point of the zoom onn the original image, but got into a hell of a mess, it nearly did my head in!. After going to sleep on it I realised that to once you have the magnifier in action, that to start say with mag=1, you have to take into account the ratio of the scaled image to the original real image - for example if the scaled down image was 4 units in area and the original 8 units in area, then to put into the circle on the screen the same info as already there from the original, the sampling size on the orginal would have to be twice as big. As you magnify, the sample size on the original then gets smaller and smaller, but the information is then displayed in the same size circle on the scaled image, hence it is magnified. I sort of tried this last night and got really high definition magnification in the circle (for example I could read the number plate on a car which was reasonably small in the original picture), whearas on 0.0.8, the whole thing was a blurr. So, me - not a mathematitian but that's my take on it, and Yes, I'd be happy to collaborate. It may be of interest to you, and this does work well, though I'm not sure how I would disentangle it from my medical records project, but I've got a great combination of the image editor + webcam form with lots of enhancements I need, - I use it to take pictures of patients (for ID for their file) and to take macro pictures of skin lesions, which I then just shove into their progress notes, plus use it to insert line diagrams of for eg head, face, nose, abdo, draw on them to indicat e the site of a skin lesion to excise etc, then insert it into their progress notes. I tracked down a cute little macro- webcam - IPEVO2 I think it was - after finding even an expensive logitech wouldn't do the job. This webcam is a bit finickyi because the auto-focus hunts a bit under my fluro lights if the subject moves, but with an additional light source it works fine. I can even hold it up next to the Xray box and take really quite good shots of a section of an Xray!!!! I'll take a look at your project over easter and we can all keep in touch. Regards Richard > > Another question: > I'm working on an image viewer example for Gambas3. > What do you think about joining the projects, putting your magnifying glass > somewhere (Zoom menu probably) into the viewer as a menu item? > I didn't read your code and don't know if it could be integrated easily, > but why not. > I just like the idea of having this option in the viewer, instead of having > two different examples. > > So, have a look at my project and tell me what you think. > Don't complain about bugs! There have been some big changes, and a lot of > the code isn't fixed yet. > > Regards > Matti > From oceanosoftlapalma at ...626... Thu Apr 21 08:56:26 2011 From: oceanosoftlapalma at ...626... (=?ISO-8859-1?Q?Ricardo_D=EDaz_Mart=EDn?=) Date: Thu, 21 Apr 2011 08:56:26 +0200 Subject: [Gambas-user] Change envent in ComboBox is not fired In-Reply-To: <4DAF1620.5070809@...221...> References: <4DAF1620.5070809@...221...> Message-ID: Thanks Matti, I'm sorry, I haven't read the doc about. The click() event works as expected. I usually use public controls in projects but in this example I forget to set in project properties. Thanks again. Regards, 2011/4/20 Matti > This is because you have set the ReadOnly property to 'true'. > See wiki: in this case the change event is not raised. > > Set ReadOnly to 'false', and it works. (but you have to replace > 'Me.ComboBox1' > with 'ComboBox1' in the Message). > > If you need ReadOnly=True, maybe you could use the Click event? > > Regards > Matti > > Am 20.04.2011 10:24, schrieb Ricardo D?az Mart?n: > > Hi, > > > > Example is attached. I'm trying with qt4 libs. > > > > Regards, > > Ricardo D?az > > > > [OperatingSystem] > > > > OperatingSystem=Linux > > > > KernelRelease=2.6.35-28-generic > > > > DistributionVendor=Ubuntu > > > > DistributionRelease="Ubuntu 10.10" > > > > [System] > > > > CPUArchitecture=x86_64 > > > > TotalRam=2057124 kB > > > > Desktop=Gnome > > > > [Gambas] > > > > Gambas1=Not Installed > > > > Gambas2=Not Installed > > > > Gambas3=2.99.1 > > > > Gambas3Path=/usr/local/bin/gbx3 > > > > > > > > > ------------------------------------------------------------------------------ > > Benefiting from Server Virtualization: Beyond Initial Workload > > Consolidation -- Increasing the use of server virtualization is a top > > priority.Virtualization can reduce costs, simplify management, and > improve > > application availability and disaster protection. Learn more about > boosting > > the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev > > > > > > > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > ------------------------------------------------------------------------------ > Benefiting from Server Virtualization: Beyond Initial Workload > Consolidation -- Increasing the use of server virtualization is a top > priority.Virtualization can reduce costs, simplify management, and improve > application availability and disaster protection. Learn more about boosting > the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From shanep at ...2481... Thu Apr 21 09:10:04 2011 From: shanep at ...2481... (Shane Powell) Date: Thu, 21 Apr 2011 17:10:04 +1000 Subject: [Gambas-user] Magnify 0.0.8 In-Reply-To: <201104210811.02398.rterry@...1946...> References: <4DABF11E.9020509@...2481...> <4DAE9D22.6010805@...2481...> <4DAF23F3.10506@...221...> <201104210811.02398.rterry@...1946...> Message-ID: <4DAFD84C.5030203@...2481...> On 21/04/11 08:11, richard terry wrote: > On Thursday 21 April 2011 04:20:35 Matti wrote: >> Hi Shane and Richard (and whoever, didn't follow the conversation), >> >> this is a nice idea! >> >> After trying it just once with a few images, a question: The lens >> magnifies, but definitely doesn't show the original size of the image. My >> test images are about 3200x2400, and your lens shows about 2/3 of the >> original size. >> Is this a planned behaviour? > The problem is that (with my lack of logic) there's been no proper > implementation of the magnification. Its much harder than you think. > I think the current version 0.0.8 problem is that it is only magnifiying the > image from the scaled image once loaded, and not the original, hence the > detail blurs as you magnify. > > I sat down last night and tried a version which keep the original image in > memory as an image, and then tried to calculate the start point of the zoom > onn the original image, but got into a hell of a mess, it nearly did my head > in!. > > After going to sleep on it I realised that to once you have the magnifier in > action, that to start say with mag=1, you have to take into account the ratio > of the scaled image to the original real image - for example if the scaled > down image was 4 units in area and the original 8 units in area, then to put > into the circle on the screen the same info as already there from the > original, the sampling size on the orginal would have to be twice as big. As > you magnify, the sample size on the original then gets smaller and smaller, > but the information is then displayed in the same size circle on the scaled > image, hence it is magnified. > > I sort of tried this last night and got really high definition magnification in > the circle (for example I could read the number plate on a car which was > reasonably small in the original picture), whearas on 0.0.8, the whole thing > was a blurr. > > So, me - not a mathematitian but that's my take on it, and Yes, I'd be happy > to collaborate. > > It may be of interest to you, and this does work well, though I'm not sure how > I would disentangle it from my medical records project, but I've got a great > combination of the image editor + webcam form with lots of enhancements I > need, - I use it to take pictures of patients (for ID for their file) and to > take macro pictures of skin lesions, which I then just shove into their > progress notes, plus use it to insert line diagrams of for eg head, face, > nose, abdo, draw on them to indicat e the site of a skin lesion to excise etc, > then insert it into their progress notes. I tracked down a cute little macro- > webcam - IPEVO2 I think it was - after finding even an expensive logitech > wouldn't do the job. This webcam is a bit finickyi because the auto-focus hunts > a bit under my fluro lights if the subject moves, but with an additional light > source it works fine. I can even hold it up next to the Xray box and take > really quite good shots of a section of an Xray!!!! > > I'll take a look at your project over easter and we can all keep in touch. > > Regards > > Richard > > > >> Another question: >> I'm working on an image viewer example for Gambas3. >> What do you think about joining the projects, putting your magnifying glass >> somewhere (Zoom menu probably) into the viewer as a menu item? >> I didn't read your code and don't know if it could be integrated easily, >> but why not. >> I just like the idea of having this option in the viewer, instead of having >> two different examples. >> >> So, have a look at my project and tell me what you think. >> Don't complain about bugs! There have been some big changes, and a lot of >> the code isn't fixed yet. >> >> Regards >> Matti >> > ------------------------------------------------------------------------------ > Benefiting from Server Virtualization: Beyond Initial Workload > Consolidation -- Increasing the use of server virtualization is a top > priority.Virtualization can reduce costs, simplify management, and improve > application availability and disaster protection. Learn more about boosting > the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -------------- next part -------------- A non-text attachment was scrubbed... Name: Magnify-0.0.8-0.0.8.tar.gz Type: application/x-gzip Size: 6585 bytes Desc: not available URL: From rterry at ...1946... Thu Apr 21 09:52:36 2011 From: rterry at ...1946... (richard terry) Date: Thu, 21 Apr 2011 17:52:36 +1000 Subject: [Gambas-user] Magnify 0.0.8 In-Reply-To: <4DAFD84C.5030203@...2481...> References: <4DABF11E.9020509@...2481...> <201104210811.02398.rterry@...1946...> <4DAFD84C.5030203@...2481...> Message-ID: <201104211752.36655.rterry@...1946...> On Thursday 21 April 2011 17:10:04 Shane Powell wrote: Shane, that's really good, seems to work well. Can you rename this 0.0.9 and re-post so no-one gets confused. Great work. Only problem is that with a darkk picture, the black writing in the top right corner dosn't show up. Regards Richard > On 21/04/11 08:11, richard terry wrote: > > On Thursday 21 April 2011 04:20:35 Matti wrote: > >> Hi Shane and Richard (and whoever, didn't follow the conversation), > >> > >> this is a nice idea! > >> > >> After trying it just once with a few images, a question: The lens > >> magnifies, but definitely doesn't show the original size of the image. > >> My test images are about 3200x2400, and your lens shows about 2/3 of the > >> original size. > >> Is this a planned behaviour? > > > > The problem is that (with my lack of logic) there's been no proper > > implementation of the magnification. Its much harder than you think. > > I think the current version 0.0.8 problem is that it is only magnifiying > > the image from the scaled image once loaded, and not the original, hence > > the detail blurs as you magnify. > > > > I sat down last night and tried a version which keep the original image > > in memory as an image, and then tried to calculate the start point of the > > zoom onn the original image, but got into a hell of a mess, it nearly did > > my head in!. > > > > After going to sleep on it I realised that to once you have the magnifier > > in action, that to start say with mag=1, you have to take into account > > the ratio of the scaled image to the original real image - for example > > if the scaled down image was 4 units in area and the original 8 units in > > area, then to put into the circle on the screen the same info as already > > there from the original, the sampling size on the orginal would have to > > be twice as big. As you magnify, the sample size on the original then > > gets smaller and smaller, but the information is then displayed in the > > same size circle on the scaled image, hence it is magnified. > > > > I sort of tried this last night and got really high definition > > magnification in the circle (for example I could read the number plate > > on a car which was reasonably small in the original picture), whearas on > > 0.0.8, the whole thing was a blurr. > > > > So, me - not a mathematitian but that's my take on it, and Yes, I'd be > > happy to collaborate. > > > > It may be of interest to you, and this does work well, though I'm not > > sure how I would disentangle it from my medical records project, but I've > > got a great combination of the image editor + webcam form with lots of > > enhancements I need, - I use it to take pictures of patients (for ID for > > their file) and to take macro pictures of skin lesions, which I then just > > shove into their progress notes, plus use it to insert line diagrams of > > for eg head, face, nose, abdo, draw on them to indicat e the site of a > > skin lesion to excise etc, then insert it into their progress notes. I > > tracked down a cute little macro- webcam - IPEVO2 I think it was - after > > finding even an expensive logitech wouldn't do the job. This webcam is a > > bit finickyi because the auto-focus hunts a bit under my fluro lights if > > the subject moves, but with an additional light source it works fine. I > > can even hold it up next to the Xray box and take really quite good shots > > of a section of an Xray!!!! > > > > I'll take a look at your project over easter and we can all keep in > > touch. > > > > Regards > > > > Richard > > > >> Another question: > >> I'm working on an image viewer example for Gambas3. > >> What do you think about joining the projects, putting your magnifying > >> glass somewhere (Zoom menu probably) into the viewer as a menu item? > >> I didn't read your code and don't know if it could be integrated easily, > >> but why not. > >> I just like the idea of having this option in the viewer, instead of > >> having two different examples. > >> > >> So, have a look at my project and tell me what you think. > >> Don't complain about bugs! There have been some big changes, and a lot > >> of the code isn't fixed yet. > >> > >> Regards > >> Matti > > > > ------------------------------------------------------------------------- > >----- Benefiting from Server Virtualization: Beyond Initial Workload > > Consolidation -- Increasing the use of server virtualization is a top > > priority.Virtualization can reduce costs, simplify management, and > > improve application availability and disaster protection. Learn more > > about boosting the value of server virtualization. > > http://p.sf.net/sfu/vmware-sfdev2dev > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > From tobiasboe1 at ...20... Fri Apr 22 11:33:47 2011 From: tobiasboe1 at ...20... (tobias) Date: Fri, 22 Apr 2011 11:33:47 +0200 Subject: [Gambas-user] gb2 Eval() question Message-ID: <4DB14B7B.80501@...20...> hi, i've been playing around with Eval() for some days, i read that it evaluates only expressions so i understand that DIMs raise "unexpected DIM" but what about SHELL and EXEC which also raise "unexpected ..." what is the difference between Eval("hProcVar = SHELL \"zenity --info --text hello\" WAIT", hVarCollection) and Eval("iIntVar = 5 * 6", hVarCollection)? I think both are assignments to variables and thus expressions? (The same with DIM Var AS Integer = 7 but which I think just tells to make room for a variable and initialises it so isn't an expression, right?) I found nothing else in gb.eval Expression class than "You can use almost any Gambas subroutines and operators." What are the criteria of a gambas expression? best regards, tobi From gambas at ...2524... Fri Apr 22 22:44:21 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Fri, 22 Apr 2011 20:44:21 +0000 Subject: [Gambas-user] Issue 58 in gambas: Gtk-CRITICAL error when form closed while combobox dropdown is showing In-Reply-To: <1-6813199134517018827-8829991973477486015-gambas=googlecode.com@...2524...> References: <1-6813199134517018827-8829991973477486015-gambas=googlecode.com@...2524...> <0-6813199134517018827-8829991973477486015-gambas=googlecode.com@...2524...> Message-ID: <2-6813199134517018827-8829991973477486015-gambas=googlecode.com@...2524...> Updates: Status: Fixed Comment #2 on issue 58 by benoit.m... at ...626...: Gtk-CRITICAL error when form closed while combobox dropdown is showing http://code.google.com/p/gambas/issues/detail?id=58 It should be fixed in revision #3738. From gambas at ...2524... Fri Apr 22 22:48:24 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Fri, 22 Apr 2011 20:48:24 +0000 Subject: [Gambas-user] Issue 58 in gambas: Gtk-CRITICAL error when form closed while combobox dropdown is showing In-Reply-To: <2-6813199134517018827-8829991973477486015-gambas=googlecode.com@...2524...> References: <2-6813199134517018827-8829991973477486015-gambas=googlecode.com@...2524...> <0-6813199134517018827-8829991973477486015-gambas=googlecode.com@...2524...> Message-ID: <3-6813199134517018827-8829991973477486015-gambas=googlecode.com@...2524...> Comment #3 on issue 58 by benoit.m... at ...626...: Gtk-CRITICAL error when form closed while combobox dropdown is showing http://code.google.com/p/gambas/issues/detail?id=58 It should be fixed in revision #3788. From gambas at ...2524... Sat Apr 23 01:27:46 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Fri, 22 Apr 2011 23:27:46 +0000 Subject: [Gambas-user] Issue 46 in gambas: a breakpoint on a commented line has inconsistent behavior In-Reply-To: <3-6813199134517018827-5663216367989010851-gambas=googlecode.com@...2524...> References: <3-6813199134517018827-5663216367989010851-gambas=googlecode.com@...2524...> <0-6813199134517018827-5663216367989010851-gambas=googlecode.com@...2524...> Message-ID: <4-6813199134517018827-5663216367989010851-gambas=googlecode.com@...2524...> Updates: Status: Fixed Comment #4 on issue 46 by benoit.m... at ...626...: a breakpoint on a commented line has inconsistent behavior http://code.google.com/p/gambas/issues/detail?id=46 It should be fixed in revision #3790. I had to change the behaviour of the breakpoint button. From support at ...2529... Sat Apr 23 11:22:34 2011 From: support at ...2529... (John Spikowski) Date: Sat, 23 Apr 2011 02:22:34 -0700 Subject: [Gambas-user] Gambas 3 (64 bit) Message-ID: <1303550554.1837.15.camel@...1833...> I was able to compile from svn Gambas 3 on Ubuntu 10.10 64 bit. Everything seems to have gone well and the examples I ran worked as expected. I now have a 32 bit and 64 bit version I will be maintaining. Does anyone have a step-by-step guide to building a .deb that would install dependencies if needed? I would like to get Gambas 3 in the hands of some of the seasoned Basic programmers I know to take a look and provide some feedback. Asking them to build it from scratch for an evaluation may be asking too much. From linuxos at ...1896... Sat Apr 23 13:19:39 2011 From: linuxos at ...1896... (Olivier Cruilles) Date: Sat, 23 Apr 2011 13:19:39 +0200 Subject: [Gambas-user] Gambas 3 (64 bit) In-Reply-To: <1303550554.1837.15.camel@...1833...> References: <1303550554.1837.15.camel@...1833...> Message-ID: <9BFD12B5-2BF9-4B23-B087-42DE6E3B3290@...1896...> Hello, You can see at this URL for example: http://ubuntuforums.org/showthread.php?t=51003 Olivier Cruilles Mail: linuxos at ...1896... Le 23 avr. 2011 ? 11:22, John Spikowski a ?crit : > > I was able to compile from svn Gambas 3 on Ubuntu 10.10 64 bit. > > Everything seems to have gone well and the examples I ran worked as > expected. I now have a 32 bit and 64 bit version I will be maintaining. > > Does anyone have a step-by-step guide to building a .deb that would > install dependencies if needed? I would like to get Gambas 3 in the > hands of some of the seasoned Basic programmers I know to take a look > and provide some feedback. Asking them to build it from scratch for an > evaluation may be asking too much. > > > > > ------------------------------------------------------------------------------ > 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 at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From and.bertini at ...626... Sat Apr 23 19:31:04 2011 From: and.bertini at ...626... (Andrea Bertini) Date: Sat, 23 Apr 2011 19:31:04 +0200 Subject: [Gambas-user] Gambas 3 working on Ubuntu Natty with Unity interface Message-ID: <4DB30CD8.2070201@...626...> gambas menu is disappeared:-( Andrea Bertini From gambas.fr at ...626... Sat Apr 23 19:49:47 2011 From: gambas.fr at ...626... (Fabien Bodard) Date: Sat, 23 Apr 2011 19:49:47 +0200 Subject: [Gambas-user] Gambas 3 working on Ubuntu Natty with Unity interface In-Reply-To: <4DB30CD8.2070201@...626...> References: <4DB30CD8.2070201@...626...> Message-ID: 2011/4/23 Andrea Bertini : > gambas menu is disappeared:-( > > Andrea Bertini i've choose to not use unity ... it is less handy than cairo doc and take too many memory. the same problem is in the standart mode. you need to remove the applet that show the menu > > ------------------------------------------------------------------------------ > 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 at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Fabien Bodard From kevinfishburne at ...1887... Sat Apr 23 20:38:03 2011 From: kevinfishburne at ...1887... (Kevin Fishburne) Date: Sat, 23 Apr 2011 14:38:03 -0400 Subject: [Gambas-user] Gambas 3 working on Ubuntu Natty with Unity interface In-Reply-To: References: <4DB30CD8.2070201@...626...> Message-ID: <4DB31C8B.2020602@...1887...> On 04/23/2011 01:49 PM, Fabien Bodard wrote: > 2011/4/23 Andrea Bertini: >> gambas menu is disappeared:-( >> >> Andrea Bertini > i've choose to not use unity ... it is less handy than cairo doc and > take too many memory. > > the same problem is in the standart mode. > > you need to remove the applet that show the menu > I made the mistake of upgrading from 10.10 to 11.04 and ended up having to reinstall 10.10. Even using the "Classic" interface wasn't enough. With Canonical's Unity and the GNOME team's GNOME 3, we're stuck between a rock and a hard place. Unity and GNOME 3 are utterly horrible. So horrible, in fact, that I think the combination is going to spell very bad things for Linux users everywhere. Unless they allow both to be as configurable as GNOME 2 (or someone forks GNOME 3), I think we're in some seriously deep shit. -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sales at ...1887... phone: (770) 853-6271 From support at ...2529... Sat Apr 23 20:46:47 2011 From: support at ...2529... (John Spikowski) Date: Sat, 23 Apr 2011 11:46:47 -0700 Subject: [Gambas-user] Gambas 3 (64 bit) In-Reply-To: <9BFD12B5-2BF9-4B23-B087-42DE6E3B3290@...1896...> References: <1303550554.1837.15.camel@...1833...> <9BFD12B5-2BF9-4B23-B087-42DE6E3B3290@...1896...> Message-ID: <1303584407.4552.0.camel@...1833...> On Sat, 2011-04-23 at 13:19 +0200, Olivier Cruilles wrote: > Hello, > > You can see at this URL for example: > > http://ubuntuforums.org/showthread.php?t=51003 Thank You ! From support at ...2529... Sat Apr 23 23:14:54 2011 From: support at ...2529... (John Spikowski) Date: Sat, 23 Apr 2011 14:14:54 -0700 Subject: [Gambas-user] Gambas 3 working on Ubuntu Natty with Unity interface In-Reply-To: <4DB31C8B.2020602@...1887...> References: <4DB30CD8.2070201@...626...> <4DB31C8B.2020602@...1887...> Message-ID: <1303593294.4552.7.camel@...1833...> On Sat, 2011-04-23 at 14:38 -0400, Kevin Fishburne wrote: > I made the mistake of upgrading from 10.10 to 11.04 and ended up having > to reinstall 10.10. Even using the "Classic" interface wasn't enough. > With Canonical's Unity and the GNOME team's GNOME 3, we're stuck between > a rock and a hard place. Unity and GNOME 3 are utterly horrible. So > horrible, in fact, that I think the combination is going to spell very > bad things for Linux users everywhere. Unless they allow both to be as > configurable as GNOME 2 (or someone forks GNOME 3), I think we're in > some seriously deep shit. > Until I see a post by Beno?t that he is developing under Unity, I'm staying right where I'm at. Last time I looked, I didn't have a tail and I don't look like a hamster. ;-) From gambas at ...1... Sat Apr 23 23:18:59 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sat, 23 Apr 2011 23:18:59 +0200 Subject: [Gambas-user] Gambas 3 working on Ubuntu Natty with Unity interface In-Reply-To: <4DB30CD8.2070201@...626...> References: <4DB30CD8.2070201@...626...> Message-ID: <201104232318.59139.gambas@...1...> > 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 From bugcy013 at ...626... Mon Apr 25 10:47:51 2011 From: bugcy013 at ...626... (Ganesh Kumar) Date: Mon, 25 Apr 2011 14:17:51 +0530 Subject: [Gambas-user] How to disable the minimize button on window Message-ID: Hi gurus, I'm new to gambas. does anyone know how to disable minimize button on window..? please help me... -Ganesh. -- Did I learn something today? If not, I wasted it. From Karl.Reinl at ...2345... Mon Apr 25 12:03:54 2011 From: Karl.Reinl at ...2345... (Charlie Reinl) Date: Mon, 25 Apr 2011 12:03:54 +0200 Subject: [Gambas-user] about components in gabas3 Message-ID: <1303725834.6792.5.camel@...40...> Salut, the wiki says this: Installing You can install the component in your home directory by checking the corresponding option in the "Make executable" dialog. Once installed there, the component will be visible in the "Components" tab of the project property dialog as any other globally installed components. To uninstall the component from your home directory, just uncheck the option in the "Make executable" dialog, and make the executable again. I don't find this in rev. 3793 ?? From gambas.fr at ...626... Mon Apr 25 12:23:46 2011 From: gambas.fr at ...626... (Fabien Bodard) Date: Mon, 25 Apr 2011 12:23:46 +0200 Subject: [Gambas-user] How to disable the minimize button on window In-Reply-To: References: Message-ID: 2011/4/25 Ganesh Kumar : > Hi gurus, > > I'm new to gambas. does anyone know how to disable minimize button on > window..? > please help me... you can change the windows type (in gambas2) and on gambas3 set Utility property to true but you can't remove only the minimise button the restore/maximise will be masked too > > -Ganesh. > > > -- > Did I learn something today? If not, I wasted it. > ------------------------------------------------------------------------------ > 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 at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Fabien Bodard From bugcy013 at ...626... Mon Apr 25 14:38:37 2011 From: bugcy013 at ...626... (Ganesh Kumar) Date: Mon, 25 Apr 2011 18:08:37 +0530 Subject: [Gambas-user] How to disable the minimize button on window In-Reply-To: References: Message-ID: Thanks for your replay. I cant understand fully, please give some clear steps about windows type in gambas2. you can change the windows type (in gambas2) and on gambas3 set > Utility property to true > > but you can't remove only the minimise button the restore/maximise > will be masked too > Advance Thanks -Ganesh. -- Did I learn something today? If not, I wasted it. From tobiasboe1 at ...20... Mon Apr 25 17:03:48 2011 From: tobiasboe1 at ...20... (tobias) Date: Mon, 25 Apr 2011 17:03:48 +0200 Subject: [Gambas-user] watcher class Message-ID: <4DB58D54.1050104@...20...> hi, i have to redirect a question again: --- I need an example that demonstrates how to use the Watcher class and its 4 events. can you look at the project and tell me if this is what the watcher class is about? --- happy easter, tobi -------------- next part -------------- A non-text attachment was scrubbed... Name: WATCHER-0.0.27.tar.gz Type: application/x-gzip Size: 35021 bytes Desc: not available URL: From gambas at ...1... Mon Apr 25 18:33:56 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Mon, 25 Apr 2011 18:33:56 +0200 Subject: [Gambas-user] about components in gabas3 In-Reply-To: <1303725834.6792.5.camel@...40...> References: <1303725834.6792.5.camel@...40...> Message-ID: <201104251833.56681.gambas@...1...> > Salut, > > the wiki says this: > > Installing > You can install the component in your home directory by checking the > corresponding option in the "Make executable" dialog. > > Once installed there, the component will be visible in the "Components" > tab of the project property dialog as any other globally installed > components. > > To uninstall the component from your home directory, just uncheck the > option in the "Make executable" dialog, and make the executable again. > > I don't find this in rev. 3793 ?? > This is for Gambas 2 only. Regards, -- Beno?t Minisini From gamedevguy12 at ...626... Mon Apr 25 19:10:34 2011 From: gamedevguy12 at ...626... (Game Guy) Date: Mon, 25 Apr 2011 13:10:34 -0400 Subject: [Gambas-user] Gambas 3 Message-ID: When will Gambas 3 come out? Or is it already out? From kevinfishburne at ...1887... Mon Apr 25 19:41:45 2011 From: kevinfishburne at ...1887... (Kevin Fishburne) Date: Mon, 25 Apr 2011 13:41:45 -0400 Subject: [Gambas-user] How to disable the minimize button on window In-Reply-To: References: Message-ID: <4DB5B259.6010909@...1887...> On 04/25/2011 08:38 AM, Ganesh Kumar wrote: > Thanks for your replay. > > I cant understand fully, please give some clear steps about windows type in > gambas2. > > you can change the windows type (in gambas2) and on gambas3 set >> Utility property to true >> >> but you can't remove only the minimise button the restore/maximise >> will be masked too > Open GAMBAS, create a GTK or Qt project, click on the empty form, and change the Utility property in the list of properties on the right from True to False. Then when you run the program your form will only show the close button and not the minimize and maximize buttons. You can also change it to False in code in the Form_Open procedure by adding "Me.Utility = False" to the procedure. -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sales at ...1887... phone: (770) 853-6271 From gambas.fr at ...626... Mon Apr 25 19:49:53 2011 From: gambas.fr at ...626... (Fabien Bodard) Date: Mon, 25 Apr 2011 19:49:53 +0200 Subject: [Gambas-user] How to disable the minimize button on window In-Reply-To: <4DB5B259.6010909@...1887...> References: <4DB5B259.6010909@...1887...> Message-ID: on gambas 2 you can't remove the minimize button even in the fixed border style 2011/4/25 Kevin Fishburne : > On 04/25/2011 08:38 AM, Ganesh Kumar wrote: >> Thanks for your replay. >> >> I cant understand fully, ?please give some clear steps about windows type in >> gambas2. >> >> you can change the windows type (in gambas2) and on gambas3 set >>> Utility property to true >>> >>> but you can't remove only the minimise button the restore/maximise >>> will be masked too >> > > Open GAMBAS, create a GTK or Qt project, click on the empty form, and > change the Utility property in the list of properties on the right from > True to False. Then when you run the program your form will only show > the close button and not the minimize and maximize buttons. You can also > change it to False in code in the Form_Open procedure by adding > "Me.Utility = False" to the procedure. > > -- > Kevin Fishburne > Eight Virtues > www: http://sales.eightvirtues.com > e-mail: sales at ...1887... > phone: (770) 853-6271 > > > ------------------------------------------------------------------------------ > 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 at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Fabien Bodard From Karl.Reinl at ...2345... Mon Apr 25 19:57:20 2011 From: Karl.Reinl at ...2345... (Charlie Reinl) Date: Mon, 25 Apr 2011 19:57:20 +0200 Subject: [Gambas-user] about components in gabas3 In-Reply-To: <201104251833.56681.gambas@...1...> References: <1303725834.6792.5.camel@...40...> <201104251833.56681.gambas@...1...> Message-ID: <1303754240.6325.5.camel@...40...> Am Montag, den 25.04.2011, 18:33 +0200 schrieb Beno?t Minisini: > > Salut, > > > > the wiki says this: > > > > Installing > > You can install the component in your home directory by checking the > > corresponding option in the "Make executable" dialog. > > > > Once installed there, the component will be visible in the "Components" > > tab of the project property dialog as any other globally installed > > components. > > > > To uninstall the component from your home directory, just uncheck the > > option in the "Make executable" dialog, and make the executable again. > > > > I don't find this in rev. 3793 ?? > > > > This is for Gambas 2 only. > > Regards, > Humm, 'How To Program Components In Gambas' page say on top, just after the Introduction : All the information below is for Gambas 3. So please enlighten me, how/what to do it in gambas3. -- Amicalement Charlie From gambas at ...1... Mon Apr 25 20:09:21 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Mon, 25 Apr 2011 20:09:21 +0200 Subject: [Gambas-user] How to disable the minimize button on window In-Reply-To: References: Message-ID: <201104252009.21154.gambas@...1...> > Hi gurus, > > I'm new to gambas. does anyone know how to disable minimize button on > window..? > please help me... > > -Ganesh. On X-Window, window borders are not managed by the application, but by a special program named "window manager". The window manager can do what he wants with windows, and can ignore any specific request made by the application. Moreover, I hate when windows don't have a minimize button, like on MS Windows (an old trauma). So, if you really need no minimize button, you have to create a borderless window, and manage everything yourself. Of course, I can tell you more if you tell us what you want to do exactly. Regards, -- Beno?t Minisini From gambas at ...1... Mon Apr 25 20:14:50 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Mon, 25 Apr 2011 20:14:50 +0200 Subject: [Gambas-user] watcher class In-Reply-To: <4DB58D54.1050104@...20...> References: <4DB58D54.1050104@...20...> Message-ID: <201104252014.50707.gambas@...1...> > hi, > i have to redirect a question again: > --- > I need an example that demonstrates how to use the Watcher class and its > 4 events. can you look at the project and tell me if this is what the > watcher class is about? > --- > > happy easter, > tobi I can't speak German, so it's hard for me to guess what all these messages mean. Anyway, I can tell you that the Watcher class was created long before the Observer class. Now, it is less useful. The Watcher class will tell you when a control is moved, resized, shown, or hidden. The Window class already has these events because they are useful for windows. For all other class, Watcher is useful only for very specific needs. Regards, -- Beno?t Minisini From tobiasboe1 at ...20... Mon Apr 25 21:08:58 2011 From: tobiasboe1 at ...20... (tobias) Date: Mon, 25 Apr 2011 21:08:58 +0200 Subject: [Gambas-user] watcher class In-Reply-To: <201104252014.50707.gambas@...1...> References: <4DB58D54.1050104@...20...> <201104252014.50707.gambas@...1...> Message-ID: <4DB5C6CA.70400@...20...> hi, thanks for your reply. i told him that it will be like this with the watcher but he didn't believe me :) oh, i forgot to translate it because i don't even understand the concept of this test project... the english one is attached now.. i found that it may be difficult show the FMain because the start class (to selecting a language. maybe this component fails to translate the project for you?) is deleted... the program exits on my pc when the start class is deleted... i think this is logical and expected behaviour but i just translate this projects. regards, tobi -------------- next part -------------- A non-text attachment was scrubbed... Name: WATCHER-0.0.27.tar.gz Type: application/x-gzip Size: 24275 bytes Desc: not available URL: From handriolijr at ...626... Wed Apr 27 00:53:53 2011 From: handriolijr at ...626... (Hamilton Geminiano Andrioli Junior) Date: Tue, 26 Apr 2011 19:53:53 -0300 Subject: [Gambas-user] needing help... Message-ID: <1303858433.6221.2.camel@...2581...> i'm trying to make a project in GAMBAS, and I need to activate a WebCam. When I call Try WebCam = New VideoDevice ("/dev/video0") It shows an error. Sometimes, when it runs, I get only static. Cheese, aMsn and Skype works fine. Any help? Please.. From rterry at ...1946... Wed Apr 27 01:06:31 2011 From: rterry at ...1946... (richard terry) Date: Wed, 27 Apr 2011 09:06:31 +1000 Subject: [Gambas-user] needing help... In-Reply-To: <1303858433.6221.2.camel@...2581...> References: <1303858433.6221.2.camel@...2581...> Message-ID: <201104270906.32031.rterry@...1946...> On Wednesday 27 April 2011 08:53:53 Hamilton Geminiano Andrioli Junior wrote: > i'm trying to make a project in GAMBAS, and I need to activate a WebCam. > When I call > > Try WebCam = New VideoDevice ("/dev/video0") > > It shows an error. > > Sometimes, when it runs, I get only static. > > Cheese, aMsn and Skype works fine. > > Any help? > Please.. > > > --------------------------------------------------------------------------- > --- 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 at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > There are two webcam examples in gambas, I've tried these and they work, you should try that first. If your code still fails, go to project, make, source achive and post it to the list for us to look at what you are doing. Richard. From gambas at ...1... Wed Apr 27 02:00:48 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Wed, 27 Apr 2011 02:00:48 +0200 Subject: [Gambas-user] gb2 Eval() question In-Reply-To: <4DB14B7B.80501@...20...> References: <4DB14B7B.80501@...20...> Message-ID: <201104270200.48969.gambas@...1...> > hi, > i've been playing around with Eval() for some days, i read that it > evaluates only expressions so i understand that DIMs raise "unexpected > DIM" but what about SHELL and EXEC which also raise "unexpected ..." > what is the difference between > Eval("hProcVar = SHELL \"zenity --info --text hello\" WAIT", > hVarCollection) and > Eval("iIntVar = 5 * 6", hVarCollection)? > I think both are assignments to variables and thus expressions? (The > same with DIM Var AS Integer = 7 but which I think just tells to make > room for a variable and initialises it so isn't an expression, right?) > I found nothing else in gb.eval Expression class than "You can use > almost any Gambas subroutines and operators." > What are the criteria of a gambas expression? > > best regards, > tobi > In Gambas 2, Eval() cannot evaluate assignments, nor instructions. In Gambas 3, Eval() can evaluate assignments, by using the "LET" keyword at the beginning of the expression string. Regards, -- Beno?t Minisini From support at ...2529... Wed Apr 27 07:23:54 2011 From: support at ...2529... (John Spikowski) Date: Tue, 26 Apr 2011 22:23:54 -0700 Subject: [Gambas-user] How to build Gambas - web page needs updating Message-ID: <1303881834.10162.2.camel@...1833...> > Package list Here is the list of all packages that must be made: gambas2-devel gambas2-examples gambas2-gb-chart gambas2-gb-compress gambas2-gb-crypt gambas2-gb-db gambas2-gb-db-firebird gambas2-gb-db-form gambas2-gb-db-mysql gambas2-gb-db-odbc gambas2-gb-db-postgresql gambas2-gb-db-sqlite2 gambas2-gb-db-sqlite3 gambas2-gb-desktop gambas2-gb-form gambas2-gb-form-dialog gambas2-gb-form-mdi gambas2-gb-gtk gambas2-gb-gui gambas2-gb-image gambas2-gb-info gambas2-gb-net gambas2-gb-net-curl gambas2-gb-net-smtp gambas2-gb-opengl gambas2-gb-option gambas2-gb-pcre gambas2-gb-pdf gambas2-gb-qt gambas2-gb-qt-ext gambas2-gb-qt-kde gambas2-gb-qt-kde-html gambas2-gb-qt-opengl gambas2-gb-report gambas2-gb-sdl gambas2-gb-sdl-sound gambas2-gb-settings gambas2-gb-v4l gambas2-gb-vb gambas2-gb-web gambas2-gb-xml gambas2-gb-xml-rpc gambas2-gb-xml-xslt gambas2-help gambas2-ide gambas2-runtime gambas2-script > Shouldn't this list show Gambas3 modules on this page. http://gambasdoc.org/help/howto/package From support at ...2529... Wed Apr 27 07:26:21 2011 From: support at ...2529... (John Spikowski) Date: Tue, 26 Apr 2011 22:26:21 -0700 Subject: [Gambas-user] How to build Gambas - web page needs updating Message-ID: <1303881981.10162.4.camel@...1833...> Never mind. I didn't see the switch to Gambas 2 section as I paged down to the end. From nando_f at ...951... Wed Apr 27 09:00:04 2011 From: nando_f at ...951... (nando) Date: Wed, 27 Apr 2011 03:00:04 -0400 Subject: [Gambas-user] needing help... In-Reply-To: <201104270906.32031.rterry@...1946...> References: <1303858433.6221.2.camel@...2581...> <201104270906.32031.rterry@...1946...> Message-ID: <20110427065819.M97444@...951...> Some versions of motherboards plus resolution size cannot handle two camera simultaneously. There is a technical reason I won't go into here. Use the lowest resolution settings first and then try it. -Fernando ---------- Original Message ----------- From: richard terry To: mailing list for gambas users Sent: Wed, 27 Apr 2011 09:06:31 +1000 Subject: Re: [Gambas-user] needing help... > On Wednesday 27 April 2011 08:53:53 Hamilton Geminiano Andrioli Junior wrote: > > i'm trying to make a project in GAMBAS, and I need to activate a WebCam. > > When I call > > > > Try WebCam = New VideoDevice ("/dev/video0") > > > > It shows an error. > > > > Sometimes, when it runs, I get only static. > > > > Cheese, aMsn and Skype works fine. > > > > Any help? > > Please.. > > > > > > --------------------------------------------------------------------------- > > --- 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 at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > There are two webcam examples in gambas, I've tried these and they work, you > should try that first. > > If your code still fails, go to project, make, source achive and post it to > the list for us to look at what you are doing. > > 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 at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user ------- End of Original Message ------- From rterry at ...1946... Wed Apr 27 10:13:57 2011 From: rterry at ...1946... (richard terry) Date: Wed, 27 Apr 2011 18:13:57 +1000 Subject: [Gambas-user] Base 64 question Message-ID: <201104271813.57960.rterry@...1946...> 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 From nando_f at ...951... Wed Apr 27 19:48:39 2011 From: nando_f at ...951... (nando) Date: Wed, 27 Apr 2011 13:48:39 -0400 Subject: [Gambas-user] Base 64 question In-Reply-To: <201104271813.57960.rterry@...1946...> References: <201104271813.57960.rterry@...1946...> Message-ID: <20110427174801.M6446@...951...> 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 at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user ------- End of Original Message ------- From rainbof at ...626... Wed Apr 27 22:14:35 2011 From: rainbof at ...626... (Ondrej Beranek) Date: Wed, 27 Apr 2011 22:14:35 +0200 Subject: [Gambas-user] needing help... In-Reply-To: <20110427065819.M97444@...951...> References: <1303858433.6221.2.camel@...2581...> <201104270906.32031.rterry@...1946...> <20110427065819.M97444@...951...> Message-ID: i mean, problem is in video4linux. Try run gambas with old video4linux compatibility library. LD_PRELOAD=/usr/lib/libv4l/v4l1compat.so gambas2 (run this command from command line) Andreas. 2011/4/27 nando > Some versions of motherboards plus resolution size cannot handle two camera > simultaneously. There is a technical reason I won't go into here. > Use the lowest resolution settings first and then try it. > -Fernando > > > ---------- Original Message ----------- > From: richard terry > To: mailing list for gambas users > Sent: Wed, 27 Apr 2011 09:06:31 +1000 > Subject: Re: [Gambas-user] needing help... > > > On Wednesday 27 April 2011 08:53:53 Hamilton Geminiano Andrioli Junior > wrote: > > > i'm trying to make a project in GAMBAS, and I need to activate a > WebCam. > > > When I call > > > > > > Try WebCam = New VideoDevice ("/dev/video0") > > > > > > It shows an error. > > > > > > Sometimes, when it runs, I get only static. > > > > > > Cheese, aMsn and Skype works fine. > > > > > > Any help? > > > Please.. > > > > > > > > > > --------------------------------------------------------------------------- > > > --- 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 at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > There are two webcam examples in gambas, I've tried these and they work, > you > > should try that first. > > > > If your code still fails, go to project, make, source achive and post it > to > > the list for us to look at what you are doing. > > > > 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 at 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 at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From ihaywood at ...1979... Wed Apr 27 23:38:45 2011 From: ihaywood at ...1979... (Ian Haywood) Date: Thu, 28 Apr 2011 07:38:45 +1000 Subject: [Gambas-user] Base 64 question In-Reply-To: <20110427174801.M6446@...951...> References: <201104271813.57960.rterry@...1946...> <20110427174801.M6446@...951...> Message-ID: 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 at 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 at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From handriolijr at ...626... Thu Apr 28 00:20:31 2011 From: handriolijr at ...626... (Hamilton Geminiano Andrioli Junior) Date: Wed, 27 Apr 2011 19:20:31 -0300 Subject: [Gambas-user] Thanks, and help me again... Message-ID: <1303942831.2165.3.camel@...2581...> Yesterday I had your help and FINALLY my webcam startes to work on Gambas. Now I have 2 more questions: I just ran LD_PRELOAD=/usr/lib/libv4l/v4l1compat.so gambas2 and worked! 1st: Will it work after compilation? 2nd: How I make Gambas start every time with the video compatibility? Thanks again!!! Hamilton.... From Gambas at ...1950... Thu Apr 28 02:40:57 2011 From: Gambas at ...1950... (Caveat) Date: Thu, 28 Apr 2011 02:40:57 +0200 Subject: [Gambas-user] Base 64 question In-Reply-To: References: <201104271813.57960.rterry@...1946...> <20110427174801.M6446@...951...> Message-ID: <1303951257.3309.2951.camel@...2150...> Hi Richard, I don't know of any base64 decode function in Gambas, but then I didn't look that hard ;-) There are various different flavours of base64, so be sure you know which variant you're dealing with. I enclose with this mail a source archive of a little project I've put together (sorry, it's Gambas2, hope that's OK) that demonstrates decoding (and encoding) of base64 data. I found the information on how to put together the encode and decode algorithms here: http://en.wikipedia.org/wiki/Base64 There's also a reference to base64 in Gambas here: http://www.gambasforum.com/index.php?topic=330.0 The algorithms given in those code snippets could well be far more efficient than mine. My Base64 Project ----------------- First thing to try is just hit the Encode button, it should convert the text in the top textarea into base64 and place the result in the lower textarea. Generally, if the In textbox is blank, the input for Encode or Decode will be the upper textarea, and if the Out textbox is blank, the output of the Encode or Decode will be shown in the lower textarea. To encode binary data, you'll need to use a file as input, so use the In textbox to specify the file name. To decode base64 that represents binary data, you'll need to use a file as output, so use the Out textbox to specify the output file name. You can try out binary to base64 using fluffy.jpg (shipped with the project) as your In file. To test round-trip (so start with a binary, encode it to base64, then decode the base64 data to make an identical binary)... enter fluffy.jpg in the In textbox, blank the Out textbox, hit Encode. In the lower textarea Select All, Copy... then in the upper textarea Paste. Now clear the In textbox and enter coffee.jpg in the Out textbox. Hit Decode. You *should* find a new file in your Base64 project directory called coffee.jpg, and it *should* be identical to the fluffy.jpg shipped with the project. I'm not convinced that my completely untuned, horribly inefficient algorithms in Gambas will be the best way to go if speed is of the essence or if the pdf files are gonna be more than a few 100 kbs... you might find it quicker/more robust to call out to a built-in function in java/python/some other program... Anyways, all the (commented) source is there for you to see/fiddle with...so have fun, but if you have any questions, just give me a shout. Regards, Caveat On Thu, 2011-04-28 at 07:38 +1000, Ian Haywood wrote: > 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 at 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 at 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 at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -------------- next part -------------- A non-text attachment was scrubbed... Name: Base64-0.0.1.tar.gz Type: application/x-compressed-tar Size: 13683 bytes Desc: not available URL: From nando_f at ...951... Thu Apr 28 05:29:55 2011 From: nando_f at ...951... (nando) Date: Wed, 27 Apr 2011 23:29:55 -0400 Subject: [Gambas-user] Gambas 2 IDE different with running issue Message-ID: <20110428032701.M38645@...951...> I am using Gambas 2 now, but I noticed that what I design in the IDE is sized different (larger) when running. I find this very odd because it doesn't look correct. Does anyone know what I am missing ? -Fernando From nando_f at ...951... Thu Apr 28 05:48:49 2011 From: nando_f at ...951... (nando) Date: Wed, 27 Apr 2011 23:48:49 -0400 Subject: [Gambas-user] Thanks, and help me again... In-Reply-To: <1303942831.2165.3.camel@...2581...> References: <1303942831.2165.3.camel@...2581...> Message-ID: <20110428034638.M5039@...951...> For #2. you can place your preload in /etc/rc.local file to start every time for all users. Use a text editor and type the command as the very last line. This file is like autoexec.bat for windows. -Fenando ---------- Original Message ----------- From: Hamilton Geminiano Andrioli Junior To: gambas-user at lists.sourceforge.net Sent: Wed, 27 Apr 2011 19:20:31 -0300 Subject: [Gambas-user] Thanks, and help me again... > Yesterday I had your help and FINALLY my webcam startes to work on > Gambas. Now I have 2 more questions: > > I just ran LD_PRELOAD=/usr/lib/libv4l/v4l1compat.so gambas2 and worked! > > 1st: Will it work after compilation? > 2nd: How I make Gambas start every time with the video compatibility? > > Thanks again!!! > Hamilton.... > > ------------------------------------------------------------------------------ > 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 at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user ------- End of Original Message ------- From rainbof at ...626... Thu Apr 28 07:25:19 2011 From: rainbof at ...626... (Ondrej Beranek) Date: Thu, 28 Apr 2011 07:25:19 +0200 Subject: [Gambas-user] Gambas 2 IDE different with running issue In-Reply-To: <20110428032701.M38645@...951...> References: <20110428032701.M38645@...951...> Message-ID: set "expand" property to value "false" :D 2011/4/28 nando > I am using Gambas 2 now, but I noticed that > what I design in the IDE is sized different (larger) when running. > I find this very odd because it doesn't look correct. > Does anyone know what I am missing ? > -Fernando > > > ------------------------------------------------------------------------------ > 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 at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From robert1juhasz at ...626... Thu Apr 28 09:15:03 2011 From: robert1juhasz at ...626... (JUHASZ Robert) Date: Thu, 28 Apr 2011 09:15:03 +0200 Subject: [Gambas-user] Eval error Message-ID: <1303974903.2162.7.camel@...2425...> Hello, I recently upgraded to ubuntu 11.04. My Gambas is 2.21. The eval function worked well on 10.10 and before. Now Eval("1/2") gives good results (works with integers) but Eval("1.2/2") gives a syntax error (it seems not working with floats). Robi From Gambas at ...1950... Thu Apr 28 09:25:47 2011 From: Gambas at ...1950... (Caveat) Date: Thu, 28 Apr 2011 09:25:47 +0200 Subject: [Gambas-user] Eval error In-Reply-To: <1303974903.2162.7.camel@...2425...> References: <1303974903.2162.7.camel@...2425...> Message-ID: <1303975547.3309.4572.camel@...2150...> 11.04 is officially out (sometime) today, so I guess you're using a beta right now. You haven't changed locales along with upgrading, have you? On Thu, 2011-04-28 at 09:15 +0200, JUHASZ Robert wrote: > Hello, > > I recently upgraded to ubuntu 11.04. My Gambas is 2.21. > The eval function worked well on 10.10 and before. > > Now Eval("1/2") gives good results (works with integers) but > Eval("1.2/2") gives a syntax error (it seems not working with floats). > > Robi > ------------------------------------------------------------------------------ > 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 at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From nando_f at ...951... Thu Apr 28 09:58:31 2011 From: nando_f at ...951... (nando) Date: Thu, 28 Apr 2011 03:58:31 -0400 Subject: [Gambas-user] Gambas 2 IDE different with running issue In-Reply-To: References: <20110428032701.M38645@...951...> Message-ID: <20110428075757.M26066@...951...> Wow, I didn't see that! Silly me. Thanks! ---------- Original Message ----------- From: Ondrej Beranek To: nando_f at ...951..., mailing list for gambas users Sent: Thu, 28 Apr 2011 07:25:19 +0200 Subject: Re: [Gambas-user] Gambas 2 IDE different with running issue > set "expand" property to value "false" :D > > 2011/4/28 nando > > > I am using Gambas 2 now, but I noticed that > > what I design in the IDE is sized different (larger) when running. > > I find this very odd because it doesn't look correct. > > Does anyone know what I am missing ? > > -Fernando > > > > > > ------------------------------------------------------------------------------ > > 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 at 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 at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user ------- End of Original Message ------- From robert1juhasz at ...626... Thu Apr 28 10:12:28 2011 From: robert1juhasz at ...626... (JUHASZ Robert) Date: Thu, 28 Apr 2011 10:12:28 +0200 Subject: [Gambas-user] Eval error In-Reply-To: <1303975547.3309.4572.camel@...2150...> References: <1303974903.2162.7.camel@...2425...> <1303975547.3309.4572.camel@...2150...> Message-ID: <1303978348.2162.10.camel@...2425...> Yes, it's beta and I only did the upgrade, changed nothing else. Robi -----Original Message----- From: Caveat Reply-to: Gambas at ...1950..., mailing list for gambas users To: mailing list for gambas users Subject: Re: [Gambas-user] Eval error Date: Thu, 28 Apr 2011 09:25:47 +0200 11.04 is officially out (sometime) today, so I guess you're using a beta right now. You haven't changed locales along with upgrading, have you? From Gambas at ...1950... Thu Apr 28 10:51:07 2011 From: Gambas at ...1950... (Caveat) Date: Thu, 28 Apr 2011 10:51:07 +0200 Subject: [Gambas-user] Eval error In-Reply-To: <1303978348.2162.10.camel@...2425...> References: <1303974903.2162.7.camel@...2425...> <1303975547.3309.4572.camel@...2150...> <1303978348.2162.10.camel@...2425...> Message-ID: <1303980667.3309.4843.camel@...2150...> Yup, seems I can confirm the bug. Works OK in ubuntu 10.10, but not 11.04. In both systems, looking at Application.Env I get: GDM_LANG: en_US.utf8 and LANG: en_US.utf8 Regards, Caveat On Thu, 2011-04-28 at 10:12 +0200, JUHASZ Robert wrote: > Yes, it's beta and I only did the upgrade, changed nothing else. > > Robi > > -----Original Message----- > From: Caveat > Reply-to: Gambas at ...1950..., mailing list for gambas users > > To: mailing list for gambas users > Subject: Re: [Gambas-user] Eval error > Date: Thu, 28 Apr 2011 09:25:47 +0200 > > 11.04 is officially out (sometime) today, so I guess you're using a beta > right now. > > You haven't changed locales along with upgrading, have you? > ------------------------------------------------------------------------------ > 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 at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From gambas.fr at ...626... Thu Apr 28 12:16:31 2011 From: gambas.fr at ...626... (Fabien Bodard) Date: Thu, 28 Apr 2011 12:16:31 +0200 Subject: [Gambas-user] Base 64 question In-Reply-To: <1303951257.3309.2951.camel@...2150...> References: <201104271813.57960.rterry@...1946...> <20110427174801.M6446@...951...> <1303951257.3309.2951.camel@...2150...> Message-ID: gb.xml ! 2011/4/28 Caveat : > Hi Richard, > > I don't know of any base64 decode function in Gambas, but then I didn't > look that hard ;-) > > There are various different flavours of base64, so be sure you know > which variant you're dealing with. > > I enclose with this mail a source archive of a little project I've put > together (sorry, it's Gambas2, hope that's OK) that demonstrates > decoding (and encoding) of base64 data. ?I found the information on how > to put together the encode and decode algorithms here: > http://en.wikipedia.org/wiki/Base64 > > There's also a reference to base64 in Gambas here: > http://www.gambasforum.com/index.php?topic=330.0 > The algorithms given in those code snippets could well be far more > efficient than mine. > > My Base64 Project > ----------------- > First thing to try is just hit the Encode button, it should convert the > text in the top textarea into base64 and place the result in the lower > textarea. Generally, if the In textbox is blank, the input for Encode or > Decode will be the upper textarea, and if the Out textbox is blank, the > output of the Encode or Decode will be shown in the lower textarea. ?To > encode binary data, you'll need to use a file as input, so use the In > textbox to specify the file name. ?To decode base64 that represents > binary data, you'll need to use a file as output, so use the Out textbox > to specify the output file name. > > You can try out binary to base64 using fluffy.jpg (shipped with the > project) as your In file. > > To test round-trip (so start with a binary, encode it to base64, then > decode the base64 data to make an identical binary)... enter fluffy.jpg > in the In textbox, blank the Out textbox, hit Encode. ?In the lower > textarea Select All, Copy... then in the upper textarea Paste. ?Now > clear the In textbox and enter coffee.jpg in the Out textbox. ?Hit > Decode. ?You *should* find a new file in your Base64 project directory > called coffee.jpg, and it *should* be identical to the fluffy.jpg > shipped with the project. > > I'm not convinced that my completely untuned, horribly inefficient > algorithms in Gambas will be the best way to go if speed is of the > essence or if the pdf files are gonna be more than a few 100 kbs... you > might find it quicker/more robust to call out to a built-in function in > java/python/some other program... > > Anyways, all the (commented) source is there for you to see/fiddle > with...so have fun, but if you have any questions, just give me a shout. > > Regards, > Caveat > > > > On Thu, 2011-04-28 at 07:38 +1000, Ian Haywood wrote: >> 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 at 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 at 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 at 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 at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > -- Fabien Bodard From Gambas at ...1950... Thu Apr 28 12:51:28 2011 From: Gambas at ...1950... (Caveat) Date: Thu, 28 Apr 2011 12:51:28 +0200 Subject: [Gambas-user] Base 64 question In-Reply-To: References: <201104271813.57960.rterry@...1946...> <20110427174801.M6446@...951...> <1303951257.3309.2951.camel@...2150...> Message-ID: <1303987888.3023.41.camel@...2150...> Huh? The files are not (afaik) xml. Does gb.xml have some hidden feature that decodes a base64 file to its binary equivalent? Could you maybe expand just a little on your 8-character response? ;-) On Thu, 2011-04-28 at 12:16 +0200, Fabien Bodard wrote: > gb.xml ! > > 2011/4/28 Caveat : > > Hi Richard, > > > > I don't know of any base64 decode function in Gambas, but then I didn't > > look that hard ;-) > > > > There are various different flavours of base64, so be sure you know > > which variant you're dealing with. > > > > I enclose with this mail a source archive of a little project I've put > > together (sorry, it's Gambas2, hope that's OK) that demonstrates > > decoding (and encoding) of base64 data. I found the information on how > > to put together the encode and decode algorithms here: > > http://en.wikipedia.org/wiki/Base64 > > > > There's also a reference to base64 in Gambas here: > > http://www.gambasforum.com/index.php?topic=330.0 > > The algorithms given in those code snippets could well be far more > > efficient than mine. > > > > My Base64 Project > > ----------------- > > First thing to try is just hit the Encode button, it should convert the > > text in the top textarea into base64 and place the result in the lower > > textarea. Generally, if the In textbox is blank, the input for Encode or > > Decode will be the upper textarea, and if the Out textbox is blank, the > > output of the Encode or Decode will be shown in the lower textarea. To > > encode binary data, you'll need to use a file as input, so use the In > > textbox to specify the file name. To decode base64 that represents > > binary data, you'll need to use a file as output, so use the Out textbox > > to specify the output file name. > > > > You can try out binary to base64 using fluffy.jpg (shipped with the > > project) as your In file. > > > > To test round-trip (so start with a binary, encode it to base64, then > > decode the base64 data to make an identical binary)... enter fluffy.jpg > > in the In textbox, blank the Out textbox, hit Encode. In the lower > > textarea Select All, Copy... then in the upper textarea Paste. Now > > clear the In textbox and enter coffee.jpg in the Out textbox. Hit > > Decode. You *should* find a new file in your Base64 project directory > > called coffee.jpg, and it *should* be identical to the fluffy.jpg > > shipped with the project. > > > > I'm not convinced that my completely untuned, horribly inefficient > > algorithms in Gambas will be the best way to go if speed is of the > > essence or if the pdf files are gonna be more than a few 100 kbs... you > > might find it quicker/more robust to call out to a built-in function in > > java/python/some other program... > > > > Anyways, all the (commented) source is there for you to see/fiddle > > with...so have fun, but if you have any questions, just give me a shout. > > > > Regards, > > Caveat > > > > > > > > On Thu, 2011-04-28 at 07:38 +1000, Ian Haywood wrote: > >> 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 at 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 at 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 at 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 at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > From rterry at ...1946... Thu Apr 28 13:33:18 2011 From: rterry at ...1946... (richard terry) Date: Thu, 28 Apr 2011 21:33:18 +1000 Subject: [Gambas-user] Base 64 question In-Reply-To: References: <201104271813.57960.rterry@...1946...> <1303951257.3309.2951.camel@...2150...> Message-ID: <201104282133.18295.rterry@...1946...> On Thursday 28 April 2011 20:16:31 Fabien Bodard wrote: I tried this: XmlReader.Decode(data, "?????" what goes in the encoding type "?????" I looked on the website to no avail I tried strings like "Base64", "base64" etc couldn't figure it out. any hlep appreciated. Richard > gb.xml ! > > 2011/4/28 Caveat : > > Hi Richard, > > > > I don't know of any base64 decode function in Gambas, but then I didn't > > look that hard ;-) > > > > There are various different flavours of base64, so be sure you know > > which variant you're dealing with. > > > > I enclose with this mail a source archive of a little project I've put > > together (sorry, it's Gambas2, hope that's OK) that demonstrates > > decoding (and encoding) of base64 data. I found the information on how > > to put together the encode and decode algorithms here: > > http://en.wikipedia.org/wiki/Base64 > > > > There's also a reference to base64 in Gambas here: > > http://www.gambasforum.com/index.php?topic=330.0 > > The algorithms given in those code snippets could well be far more > > efficient than mine. > > > > My Base64 Project > > ----------------- > > First thing to try is just hit the Encode button, it should convert the > > text in the top textarea into base64 and place the result in the lower > > textarea. Generally, if the In textbox is blank, the input for Encode or > > Decode will be the upper textarea, and if the Out textbox is blank, the > > output of the Encode or Decode will be shown in the lower textarea. To > > encode binary data, you'll need to use a file as input, so use the In > > textbox to specify the file name. To decode base64 that represents > > binary data, you'll need to use a file as output, so use the Out textbox > > to specify the output file name. > > > > You can try out binary to base64 using fluffy.jpg (shipped with the > > project) as your In file. > > > > To test round-trip (so start with a binary, encode it to base64, then > > decode the base64 data to make an identical binary)... enter fluffy.jpg > > in the In textbox, blank the Out textbox, hit Encode. In the lower > > textarea Select All, Copy... then in the upper textarea Paste. Now > > clear the In textbox and enter coffee.jpg in the Out textbox. Hit > > Decode. You *should* find a new file in your Base64 project directory > > called coffee.jpg, and it *should* be identical to the fluffy.jpg > > shipped with the project. > > > > I'm not convinced that my completely untuned, horribly inefficient > > algorithms in Gambas will be the best way to go if speed is of the > > essence or if the pdf files are gonna be more than a few 100 kbs... you > > might find it quicker/more robust to call out to a built-in function in > > java/python/some other program... > > > > Anyways, all the (commented) source is there for you to see/fiddle > > with...so have fun, but if you have any questions, just give me a shout. > > > > Regards, > > Caveat > > > > On Thu, 2011-04-28 at 07:38 +1000, Ian Haywood wrote: > >> 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 at 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 at 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 at 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 at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas.fr at ...626... Thu Apr 28 13:37:02 2011 From: gambas.fr at ...626... (Fabien Bodard) Date: Thu, 28 Apr 2011 13:37:02 +0200 Subject: [Gambas-user] Base 64 question In-Reply-To: <1303987888.3023.41.camel@...2150...> References: <201104271813.57960.rterry@...1946...> <20110427174801.M6446@...951...> <1303951257.3309.2951.camel@...2150...> <1303987888.3023.41.camel@...2150...> Message-ID: Dim hr As New XmlReader Print hr.Decode("kjshkjshskshjskh", "Base64") :) !!! 2011/4/28 Caveat : > Huh? ?The files are not (afaik) xml. > > Does gb.xml have some hidden feature that decodes a base64 file to its > binary equivalent? > > Could you maybe expand just a little on your 8-character response? ;-) > > On Thu, 2011-04-28 at 12:16 +0200, Fabien Bodard wrote: >> gb.xml ! >> >> 2011/4/28 Caveat : >> > Hi Richard, >> > >> > I don't know of any base64 decode function in Gambas, but then I didn't >> > look that hard ;-) >> > >> > There are various different flavours of base64, so be sure you know >> > which variant you're dealing with. >> > >> > I enclose with this mail a source archive of a little project I've put >> > together (sorry, it's Gambas2, hope that's OK) that demonstrates >> > decoding (and encoding) of base64 data. ?I found the information on how >> > to put together the encode and decode algorithms here: >> > http://en.wikipedia.org/wiki/Base64 >> > >> > There's also a reference to base64 in Gambas here: >> > http://www.gambasforum.com/index.php?topic=330.0 >> > The algorithms given in those code snippets could well be far more >> > efficient than mine. >> > >> > My Base64 Project >> > ----------------- >> > First thing to try is just hit the Encode button, it should convert the >> > text in the top textarea into base64 and place the result in the lower >> > textarea. Generally, if the In textbox is blank, the input for Encode or >> > Decode will be the upper textarea, and if the Out textbox is blank, the >> > output of the Encode or Decode will be shown in the lower textarea. ?To >> > encode binary data, you'll need to use a file as input, so use the In >> > textbox to specify the file name. ?To decode base64 that represents >> > binary data, you'll need to use a file as output, so use the Out textbox >> > to specify the output file name. >> > >> > You can try out binary to base64 using fluffy.jpg (shipped with the >> > project) as your In file. >> > >> > To test round-trip (so start with a binary, encode it to base64, then >> > decode the base64 data to make an identical binary)... enter fluffy.jpg >> > in the In textbox, blank the Out textbox, hit Encode. ?In the lower >> > textarea Select All, Copy... then in the upper textarea Paste. ?Now >> > clear the In textbox and enter coffee.jpg in the Out textbox. ?Hit >> > Decode. ?You *should* find a new file in your Base64 project directory >> > called coffee.jpg, and it *should* be identical to the fluffy.jpg >> > shipped with the project. >> > >> > I'm not convinced that my completely untuned, horribly inefficient >> > algorithms in Gambas will be the best way to go if speed is of the >> > essence or if the pdf files are gonna be more than a few 100 kbs... you >> > might find it quicker/more robust to call out to a built-in function in >> > java/python/some other program... >> > >> > Anyways, all the (commented) source is there for you to see/fiddle >> > with...so have fun, but if you have any questions, just give me a shout. >> > >> > Regards, >> > Caveat >> > >> > >> > >> > On Thu, 2011-04-28 at 07:38 +1000, Ian Haywood wrote: >> >> 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 at 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 at 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 at 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 at 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 at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Fabien Bodard From gambas.fr at ...626... Thu Apr 28 13:38:52 2011 From: gambas.fr at ...626... (Fabien Bodard) Date: Thu, 28 Apr 2011 13:38:52 +0200 Subject: [Gambas-user] Base 64 question In-Reply-To: <201104282133.18295.rterry@...1946...> References: <201104271813.57960.rterry@...1946...> <1303951257.3309.2951.camel@...2150...> <201104282133.18295.rterry@...1946...> Message-ID: Print XmlReader.Decode("strvalue", "Base64") 2011/4/28 richard terry : > On Thursday 28 April 2011 20:16:31 Fabien Bodard wrote: > I tried ?this: > ?XmlReader.Decode(data, "?????" > > what goes in the encoding type "?????" > > I looked on the website to no avail > I tried strings like "Base64", "base64" etc > > couldn't figure it out. > > any hlep appreciated. > > Richard > > >> gb.xml ! >> >> 2011/4/28 Caveat : >> > Hi Richard, >> > >> > I don't know of any base64 decode function in Gambas, but then I didn't >> > look that hard ;-) >> > >> > There are various different flavours of base64, so be sure you know >> > which variant you're dealing with. >> > >> > I enclose with this mail a source archive of a little project I've put >> > together (sorry, it's Gambas2, hope that's OK) that demonstrates >> > decoding (and encoding) of base64 data. ?I found the information on how >> > to put together the encode and decode algorithms here: >> > http://en.wikipedia.org/wiki/Base64 >> > >> > There's also a reference to base64 in Gambas here: >> > http://www.gambasforum.com/index.php?topic=330.0 >> > The algorithms given in those code snippets could well be far more >> > efficient than mine. >> > >> > My Base64 Project >> > ----------------- >> > First thing to try is just hit the Encode button, it should convert the >> > text in the top textarea into base64 and place the result in the lower >> > textarea. Generally, if the In textbox is blank, the input for Encode or >> > Decode will be the upper textarea, and if the Out textbox is blank, the >> > output of the Encode or Decode will be shown in the lower textarea. ?To >> > encode binary data, you'll need to use a file as input, so use the In >> > textbox to specify the file name. ?To decode base64 that represents >> > binary data, you'll need to use a file as output, so use the Out textbox >> > to specify the output file name. >> > >> > You can try out binary to base64 using fluffy.jpg (shipped with the >> > project) as your In file. >> > >> > To test round-trip (so start with a binary, encode it to base64, then >> > decode the base64 data to make an identical binary)... enter fluffy.jpg >> > in the In textbox, blank the Out textbox, hit Encode. ?In the lower >> > textarea Select All, Copy... then in the upper textarea Paste. ?Now >> > clear the In textbox and enter coffee.jpg in the Out textbox. ?Hit >> > Decode. ?You *should* find a new file in your Base64 project directory >> > called coffee.jpg, and it *should* be identical to the fluffy.jpg >> > shipped with the project. >> > >> > I'm not convinced that my completely untuned, horribly inefficient >> > algorithms in Gambas will be the best way to go if speed is of the >> > essence or if the pdf files are gonna be more than a few 100 kbs... you >> > might find it quicker/more robust to call out to a built-in function in >> > java/python/some other program... >> > >> > Anyways, all the (commented) source is there for you to see/fiddle >> > with...so have fun, but if you have any questions, just give me a shout. >> > >> > Regards, >> > Caveat >> > >> > On Thu, 2011-04-28 at 07:38 +1000, Ian Haywood wrote: >> >> 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 at 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 at 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 at 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 at 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 at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Fabien Bodard From rterry at ...1946... Thu Apr 28 13:50:55 2011 From: rterry at ...1946... (richard terry) Date: Thu, 28 Apr 2011 21:50:55 +1000 Subject: [Gambas-user] Base 64 question In-Reply-To: References: <201104271813.57960.rterry@...1946...> <201104282133.18295.rterry@...1946...> Message-ID: <201104282150.55792.rterry@...1946...> On Thursday 28 April 2011 21:38:52 Fabien Bodard wrote: > Print XmlReader.Decode("strvalue", "Base64") Funny that, I based my head against a wall trying exactly that syntax, I eventually found some old gambas code on the web that worked. But... just typed it in again, and it works. Dunno......... maybe I didn't capitalise it or something. Anway, thanks. Like everything else in gambas, blindingly simple if you know. Richard > > 2011/4/28 richard terry : > > On Thursday 28 April 2011 20:16:31 Fabien Bodard wrote: > > I tried this: > > XmlReader.Decode(data, "?????" > > > > what goes in the encoding type "?????" > > > > I looked on the website to no avail > > I tried strings like "Base64", "base64" etc > > > > couldn't figure it out. > > > > any hlep appreciated. > > > > Richard > > > >> gb.xml ! > >> > >> 2011/4/28 Caveat : > >> > Hi Richard, > >> > > >> > I don't know of any base64 decode function in Gambas, but then I > >> > didn't look that hard ;-) > >> > > >> > There are various different flavours of base64, so be sure you know > >> > which variant you're dealing with. > >> > > >> > I enclose with this mail a source archive of a little project I've put > >> > together (sorry, it's Gambas2, hope that's OK) that demonstrates > >> > decoding (and encoding) of base64 data. I found the information on > >> > how to put together the encode and decode algorithms here: > >> > http://en.wikipedia.org/wiki/Base64 > >> > > >> > There's also a reference to base64 in Gambas here: > >> > http://www.gambasforum.com/index.php?topic=330.0 > >> > The algorithms given in those code snippets could well be far more > >> > efficient than mine. > >> > > >> > My Base64 Project > >> > ----------------- > >> > First thing to try is just hit the Encode button, it should convert > >> > the text in the top textarea into base64 and place the result in the > >> > lower textarea. Generally, if the In textbox is blank, the input for > >> > Encode or Decode will be the upper textarea, and if the Out textbox is > >> > blank, the output of the Encode or Decode will be shown in the lower > >> > textarea. To encode binary data, you'll need to use a file as input, > >> > so use the In textbox to specify the file name. To decode base64 that > >> > represents binary data, you'll need to use a file as output, so use > >> > the Out textbox to specify the output file name. > >> > > >> > You can try out binary to base64 using fluffy.jpg (shipped with the > >> > project) as your In file. > >> > > >> > To test round-trip (so start with a binary, encode it to base64, then > >> > decode the base64 data to make an identical binary)... enter > >> > fluffy.jpg in the In textbox, blank the Out textbox, hit Encode. In > >> > the lower textarea Select All, Copy... then in the upper textarea > >> > Paste. Now clear the In textbox and enter coffee.jpg in the Out > >> > textbox. Hit Decode. You *should* find a new file in your Base64 > >> > project directory called coffee.jpg, and it *should* be identical to > >> > the fluffy.jpg shipped with the project. > >> > > >> > I'm not convinced that my completely untuned, horribly inefficient > >> > algorithms in Gambas will be the best way to go if speed is of the > >> > essence or if the pdf files are gonna be more than a few 100 kbs... > >> > you might find it quicker/more robust to call out to a built-in > >> > function in java/python/some other program... > >> > > >> > Anyways, all the (commented) source is there for you to see/fiddle > >> > with...so have fun, but if you have any questions, just give me a > >> > shout. > >> > > >> > Regards, > >> > Caveat > >> > > >> > On Thu, 2011-04-28 at 07:38 +1000, Ian Haywood wrote: > >> >> 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 at 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 at 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 at 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 at 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 at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > From rterry at ...1946... Thu Apr 28 14:09:33 2011 From: rterry at ...1946... (richard terry) Date: Thu, 28 Apr 2011 22:09:33 +1000 Subject: [Gambas-user] Base 64 question In-Reply-To: <201104282150.55792.rterry@...1946...> References: <201104271813.57960.rterry@...1946...> <201104282150.55792.rterry@...1946...> Message-ID: <201104282209.33598.rterry@...1946...> On Thursday 28 April 2011 21:50:55 richard terry wrote: I've tried them both the xml reader and the subroutine below, on a real-life file, a hl7 file containg a pdf of a vascular result this code written by Christer Nygren and some others, on my machine seems considerably faster than the xml.decode function Public Sub FromB64(B64Str As String) As String Dim Position As Long Dim dt As Byte Dim B64Decoded, u, c As String Dim Tkn, p As Integer Position = 1 Tkn = 0 Do Until Position > Len(B64Str) Wait c = Mid(B64Str, Position, 1) p = InStr(B64Const, c) If p > 1 Then p = p - 2 Inc Tkn Select Case Tkn Case 1 dt = (p * &h4) Case 2 B64Decoded = B64Decoded & Chr(dt + ((p And &H30&) / &H10&)) dt = (p And &HF&) * &H10& Case 3 B64Decoded = B64Decoded & Chr(dt + ((p And &H3C&) / 4)) dt = (p And &H3&) * &H40& Case 4 B64Decoded = B64Decoded & Chr(dt + p) End Select If Tkn = 4 Then Tkn = 0 Else ' Ej skrivbart tecken If p = 1 Then Position = Len(B64Str) + 1 End If Endif Inc Position Loop Select Case Tkn Case 1 B64Decoded = B64Decoded & Chr(dt) End Select Return B64Decoded End ??coments from those who know? richard > On Thursday 28 April 2011 21:38:52 Fabien Bodard wrote: > > Print XmlReader.Decode("strvalue", "Base64") > > Funny that, I based my head against a wall trying exactly that syntax, I > eventually found some old gambas code on the web that worked. > > But... just typed it in again, and it works. Dunno......... maybe I didn't > capitalise it or something. > > Anway, thanks. > > Like everything else in gambas, blindingly simple if you know. > > > Richard > > > 2011/4/28 richard terry : > > > On Thursday 28 April 2011 20:16:31 Fabien Bodard wrote: > > > I tried this: > > > XmlReader.Decode(data, "?????" > > > > > > what goes in the encoding type "?????" > > > > > > I looked on the website to no avail > > > I tried strings like "Base64", "base64" etc > > > > > > couldn't figure it out. > > > > > > any hlep appreciated. > > > > > > Richard > > > > > >> gb.xml ! > > >> > > >> 2011/4/28 Caveat : > > >> > Hi Richard, > > >> > > > >> > I don't know of any base64 decode function in Gambas, but then I > > >> > didn't look that hard ;-) > > >> > > > >> > There are various different flavours of base64, so be sure you know > > >> > which variant you're dealing with. > > >> > > > >> > I enclose with this mail a source archive of a little project I've > > >> > put together (sorry, it's Gambas2, hope that's OK) that demonstrates > > >> > decoding (and encoding) of base64 data. I found the information on > > >> > how to put together the encode and decode algorithms here: > > >> > http://en.wikipedia.org/wiki/Base64 > > >> > > > >> > There's also a reference to base64 in Gambas here: > > >> > http://www.gambasforum.com/index.php?topic=330.0 > > >> > The algorithms given in those code snippets could well be far more > > >> > efficient than mine. > > >> > > > >> > My Base64 Project > > >> > ----------------- > > >> > First thing to try is just hit the Encode button, it should convert > > >> > the text in the top textarea into base64 and place the result in the > > >> > lower textarea. Generally, if the In textbox is blank, the input for > > >> > Encode or Decode will be the upper textarea, and if the Out textbox > > >> > is blank, the output of the Encode or Decode will be shown in the > > >> > lower textarea. To encode binary data, you'll need to use a file as > > >> > input, so use the In textbox to specify the file name. To decode > > >> > base64 that represents binary data, you'll need to use a file as > > >> > output, so use the Out textbox to specify the output file name. > > >> > > > >> > You can try out binary to base64 using fluffy.jpg (shipped with the > > >> > project) as your In file. > > >> > > > >> > To test round-trip (so start with a binary, encode it to base64, > > >> > then decode the base64 data to make an identical binary)... enter > > >> > fluffy.jpg in the In textbox, blank the Out textbox, hit Encode. In > > >> > the lower textarea Select All, Copy... then in the upper textarea > > >> > Paste. Now clear the In textbox and enter coffee.jpg in the Out > > >> > textbox. Hit Decode. You *should* find a new file in your Base64 > > >> > project directory called coffee.jpg, and it *should* be identical to > > >> > the fluffy.jpg shipped with the project. > > >> > > > >> > I'm not convinced that my completely untuned, horribly inefficient > > >> > algorithms in Gambas will be the best way to go if speed is of the > > >> > essence or if the pdf files are gonna be more than a few 100 kbs... > > >> > you might find it quicker/more robust to call out to a built-in > > >> > function in java/python/some other program... > > >> > > > >> > Anyways, all the (commented) source is there for you to see/fiddle > > >> > with...so have fun, but if you have any questions, just give me a > > >> > shout. > > >> > > > >> > Regards, > > >> > Caveat > > >> > > > >> > On Thu, 2011-04-28 at 07:38 +1000, Ian Haywood wrote: > > >> >> 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 at 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 at 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 at 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 at 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 at 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 at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From Gambas at ...1950... Thu Apr 28 16:57:17 2011 From: Gambas at ...1950... (Caveat) Date: Thu, 28 Apr 2011 16:57:17 +0200 Subject: [Gambas-user] Base 64 question In-Reply-To: <201104282209.33598.rterry@...1946...> References: <201104271813.57960.rterry@...1946...> <201104282150.55792.rterry@...1946...> <201104282209.33598.rterry@...1946...> Message-ID: <1304002637.3023.545.camel@...2150...> xml.Decode...pfft! Funny, I never would have thought to look in gb.xml for a base64 decoder! Anyhoo, did you compare xml.Decode and the routine below with the decode function I wrote in the example project I sent earlier... or are you *still* waiting for my decode function to return a result? lol I'm wondering if the Wait is doing much useful in the subroutine below (in theory it should be allowing processing of all pending events, but no user interaction). Perhaps you could remove it and see what happens... Regards, Caveat On Thu, 2011-04-28 at 22:09 +1000, richard terry wrote: > On Thursday 28 April 2011 21:50:55 richard terry wrote: > > I've tried them both the xml reader and the subroutine below, on a real-life > file, a hl7 file containg a pdf of a vascular result > > this code written by > Christer Nygren and some others, > > on my machine seems considerably faster than the xml.decode function > > Public Sub FromB64(B64Str As String) As String > Dim Position As Long > Dim dt As Byte > Dim B64Decoded, u, c As String > Dim Tkn, p As Integer > > Position = 1 > Tkn = 0 > Do Until Position > Len(B64Str) > Wait > c = Mid(B64Str, Position, 1) > p = InStr(B64Const, c) > If p > 1 Then > p = p - 2 > Inc Tkn > Select Case Tkn > Case 1 > dt = (p * &h4) > Case 2 > B64Decoded = B64Decoded & Chr(dt + ((p And &H30&) / &H10&)) > dt = (p And &HF&) * &H10& > Case 3 > B64Decoded = B64Decoded & Chr(dt + ((p And &H3C&) / 4)) > dt = (p And &H3&) * &H40& > Case 4 > B64Decoded = B64Decoded & Chr(dt + p) > End Select > If Tkn = 4 Then Tkn = 0 > Else ' Ej skrivbart tecken > If p = 1 Then > Position = Len(B64Str) + 1 > End If > Endif > Inc Position > Loop > Select Case Tkn > Case 1 > B64Decoded = B64Decoded & Chr(dt) > End Select > Return B64Decoded > End > > ??coments from those who know? > > richard > > > > On Thursday 28 April 2011 21:38:52 Fabien Bodard wrote: > > > Print XmlReader.Decode("strvalue", "Base64") > > > > Funny that, I based my head against a wall trying exactly that syntax, I > > eventually found some old gambas code on the web that worked. > > > > But... just typed it in again, and it works. Dunno......... maybe I didn't > > capitalise it or something. > > > > Anway, thanks. > > > > Like everything else in gambas, blindingly simple if you know. > > > > > > Richard > > > > > 2011/4/28 richard terry : > > > > On Thursday 28 April 2011 20:16:31 Fabien Bodard wrote: > > > > I tried this: > > > > XmlReader.Decode(data, "?????" > > > > > > > > what goes in the encoding type "?????" > > > > > > > > I looked on the website to no avail > > > > I tried strings like "Base64", "base64" etc > > > > > > > > couldn't figure it out. > > > > > > > > any hlep appreciated. > > > > > > > > Richard > > > > > > > >> gb.xml ! > > > >> > > > >> 2011/4/28 Caveat : > > > >> > Hi Richard, > > > >> > > > > >> > I don't know of any base64 decode function in Gambas, but then I > > > >> > didn't look that hard ;-) > > > >> > > > > >> > There are various different flavours of base64, so be sure you know > > > >> > which variant you're dealing with. > > > >> > > > > >> > I enclose with this mail a source archive of a little project I've > > > >> > put together (sorry, it's Gambas2, hope that's OK) that demonstrates > > > >> > decoding (and encoding) of base64 data. I found the information on > > > >> > how to put together the encode and decode algorithms here: > > > >> > http://en.wikipedia.org/wiki/Base64 > > > >> > > > > >> > There's also a reference to base64 in Gambas here: > > > >> > http://www.gambasforum.com/index.php?topic=330.0 > > > >> > The algorithms given in those code snippets could well be far more > > > >> > efficient than mine. > > > >> > > > > >> > My Base64 Project > > > >> > ----------------- > > > >> > First thing to try is just hit the Encode button, it should convert > > > >> > the text in the top textarea into base64 and place the result in the > > > >> > lower textarea. Generally, if the In textbox is blank, the input for > > > >> > Encode or Decode will be the upper textarea, and if the Out textbox > > > >> > is blank, the output of the Encode or Decode will be shown in the > > > >> > lower textarea. To encode binary data, you'll need to use a file as > > > >> > input, so use the In textbox to specify the file name. To decode > > > >> > base64 that represents binary data, you'll need to use a file as > > > >> > output, so use the Out textbox to specify the output file name. > > > >> > > > > >> > You can try out binary to base64 using fluffy.jpg (shipped with the > > > >> > project) as your In file. > > > >> > > > > >> > To test round-trip (so start with a binary, encode it to base64, > > > >> > then decode the base64 data to make an identical binary)... enter > > > >> > fluffy.jpg in the In textbox, blank the Out textbox, hit Encode. In > > > >> > the lower textarea Select All, Copy... then in the upper textarea > > > >> > Paste. Now clear the In textbox and enter coffee.jpg in the Out > > > >> > textbox. Hit Decode. You *should* find a new file in your Base64 > > > >> > project directory called coffee.jpg, and it *should* be identical to > > > >> > the fluffy.jpg shipped with the project. > > > >> > > > > >> > I'm not convinced that my completely untuned, horribly inefficient > > > >> > algorithms in Gambas will be the best way to go if speed is of the > > > >> > essence or if the pdf files are gonna be more than a few 100 kbs... > > > >> > you might find it quicker/more robust to call out to a built-in > > > >> > function in java/python/some other program... > > > >> > > > > >> > Anyways, all the (commented) source is there for you to see/fiddle > > > >> > with...so have fun, but if you have any questions, just give me a > > > >> > shout. > > > >> > > > > >> > Regards, > > > >> > Caveat > > > >> > > > > >> > On Thu, 2011-04-28 at 07:38 +1000, Ian Haywood wrote: > > > >> >> 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 at 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 at 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 at 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 at 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 at 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 at 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 at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From imageek247 at ...626... Thu Apr 28 18:18:10 2011 From: imageek247 at ...626... (Christian DaGeek247 Stephens) Date: Thu, 28 Apr 2011 11:18:10 -0500 Subject: [Gambas-user] Using a listbox in gambas 2 Message-ID: *I have gambas installed on a pc that does not have internet. The documentation included in the install does not have any info on listboxes. I have some questions. How do I add a item into a listbox? How do I read a line of text from a listbox? How do I delete an item from the listbox? Thanks for your help. [?] * -- *Live Chat room!* *http://dglivechat.tk My Website: dageek247.tk* *Calvin: *BU-URP! *Mom:* Good heavens, Calvin! What do we say after that? *Calvin:* "Must be a barge coming through!" *Mom:* WHAT Do you say?! *Calvin: *That sure tasted better going down than coming up! *Mom: *Three strikes and you're history kiddo. *Calvin: *excuse me. -------------- next part -------------- A non-text attachment was scrubbed... Name: 347.gif Type: image/gif Size: 186 bytes Desc: not available URL: From math.eber at ...221... Thu Apr 28 20:14:13 2011 From: math.eber at ...221... (Matti) Date: Thu, 28 Apr 2011 20:14:13 +0200 Subject: [Gambas-user] Using a listbox in gambas 2 In-Reply-To: References: Message-ID: <4DB9AE75.8030801@...221...> But you seem to have internet on another machine, do you? http://gambasdoc.org/help/comp/gb.qt/listbox Am 28.04.2011 18:18, schrieb Christian DaGeek247 Stephens: > *I have gambas installed on a pc that does not have internet. The > documentation included in the install does not have any info on listboxes. I > have some questions. How do I add a item into a listbox? How do I read a > line of text from a listbox? How do I delete an item from the listbox? > Thanks for your help. [?] > * > > > > ------------------------------------------------------------------------------ > 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 at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From jussi.lahtinen at ...626... Thu Apr 28 20:44:55 2011 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Thu, 28 Apr 2011 21:44:55 +0300 Subject: [Gambas-user] Base 64 question In-Reply-To: <1304002637.3023.545.camel@...2150...> References: <201104271813.57960.rterry@...1946...> <201104282150.55792.rterry@...1946...> <201104282209.33598.rterry@...1946...> <1304002637.3023.545.camel@...2150...> Message-ID: Maybe "wait" is for refreshing progress bar or similar... Jussi On Thu, Apr 28, 2011 at 17:57, Caveat wrote: > xml.Decode...pfft! Funny, I never would have thought to look in gb.xml > for a base64 decoder! > > Anyhoo, did you compare xml.Decode and the routine below with the decode > function I wrote in the example project I sent earlier... or are you > *still* waiting for my decode function to return a result? lol > > I'm wondering if the Wait is doing much useful in the subroutine below > (in theory it should be allowing processing of all pending events, but > no user interaction). Perhaps you could remove it and see what > happens... > > Regards, > Caveat > > On Thu, 2011-04-28 at 22:09 +1000, richard terry wrote: > > On Thursday 28 April 2011 21:50:55 richard terry wrote: > > > > I've tried them both the xml reader and the subroutine below, on a > real-life > > file, a hl7 file containg a pdf of a vascular result > > > > this code written by > > Christer Nygren and some others, > > > > on my machine seems considerably faster than the xml.decode function > > > > Public Sub FromB64(B64Str As String) As String > > Dim Position As Long > > Dim dt As Byte > > Dim B64Decoded, u, c As String > > Dim Tkn, p As Integer > > > > Position = 1 > > Tkn = 0 > > Do Until Position > Len(B64Str) > > Wait > > c = Mid(B64Str, Position, 1) > > p = InStr(B64Const, c) > > If p > 1 Then > > p = p - 2 > > Inc Tkn > > Select Case Tkn > > Case 1 > > dt = (p * &h4) > > Case 2 > > B64Decoded = B64Decoded & Chr(dt + ((p And &H30&) / &H10&)) > > dt = (p And &HF&) * &H10& > > Case 3 > > B64Decoded = B64Decoded & Chr(dt + ((p And &H3C&) / 4)) > > dt = (p And &H3&) * &H40& > > Case 4 > > B64Decoded = B64Decoded & Chr(dt + p) > > End Select > > If Tkn = 4 Then Tkn = 0 > > Else ' Ej skrivbart tecken > > If p = 1 Then > > Position = Len(B64Str) + 1 > > End If > > Endif > > Inc Position > > Loop > > Select Case Tkn > > Case 1 > > B64Decoded = B64Decoded & Chr(dt) > > End Select > > Return B64Decoded > > End > > > > ??coments from those who know? > > > > richard > > > > > > > On Thursday 28 April 2011 21:38:52 Fabien Bodard wrote: > > > > Print XmlReader.Decode("strvalue", "Base64") > > > > > > Funny that, I based my head against a wall trying exactly that syntax, > I > > > eventually found some old gambas code on the web that worked. > > > > > > But... just typed it in again, and it works. Dunno......... maybe I > didn't > > > capitalise it or something. > > > > > > Anway, thanks. > > > > > > Like everything else in gambas, blindingly simple if you know. > > > > > > > > > Richard > > > > > > > 2011/4/28 richard terry : > > > > > On Thursday 28 April 2011 20:16:31 Fabien Bodard wrote: > > > > > I tried this: > > > > > XmlReader.Decode(data, "?????" > > > > > > > > > > what goes in the encoding type "?????" > > > > > > > > > > I looked on the website to no avail > > > > > I tried strings like "Base64", "base64" etc > > > > > > > > > > couldn't figure it out. > > > > > > > > > > any hlep appreciated. > > > > > > > > > > Richard > > > > > > > > > >> gb.xml ! > > > > >> > > > > >> 2011/4/28 Caveat : > > > > >> > Hi Richard, > > > > >> > > > > > >> > I don't know of any base64 decode function in Gambas, but then I > > > > >> > didn't look that hard ;-) > > > > >> > > > > > >> > There are various different flavours of base64, so be sure you > know > > > > >> > which variant you're dealing with. > > > > >> > > > > > >> > I enclose with this mail a source archive of a little project > I've > > > > >> > put together (sorry, it's Gambas2, hope that's OK) that > demonstrates > > > > >> > decoding (and encoding) of base64 data. I found the information > on > > > > >> > how to put together the encode and decode algorithms here: > > > > >> > http://en.wikipedia.org/wiki/Base64 > > > > >> > > > > > >> > There's also a reference to base64 in Gambas here: > > > > >> > http://www.gambasforum.com/index.php?topic=330.0 > > > > >> > The algorithms given in those code snippets could well be far > more > > > > >> > efficient than mine. > > > > >> > > > > > >> > My Base64 Project > > > > >> > ----------------- > > > > >> > First thing to try is just hit the Encode button, it should > convert > > > > >> > the text in the top textarea into base64 and place the result in > the > > > > >> > lower textarea. Generally, if the In textbox is blank, the input > for > > > > >> > Encode or Decode will be the upper textarea, and if the Out > textbox > > > > >> > is blank, the output of the Encode or Decode will be shown in > the > > > > >> > lower textarea. To encode binary data, you'll need to use a > file as > > > > >> > input, so use the In textbox to specify the file name. To > decode > > > > >> > base64 that represents binary data, you'll need to use a file as > > > > >> > output, so use the Out textbox to specify the output file name. > > > > >> > > > > > >> > You can try out binary to base64 using fluffy.jpg (shipped with > the > > > > >> > project) as your In file. > > > > >> > > > > > >> > To test round-trip (so start with a binary, encode it to base64, > > > > >> > then decode the base64 data to make an identical binary)... > enter > > > > >> > fluffy.jpg in the In textbox, blank the Out textbox, hit Encode. > In > > > > >> > the lower textarea Select All, Copy... then in the upper > textarea > > > > >> > Paste. Now clear the In textbox and enter coffee.jpg in the Out > > > > >> > textbox. Hit Decode. You *should* find a new file in your > Base64 > > > > >> > project directory called coffee.jpg, and it *should* be > identical to > > > > >> > the fluffy.jpg shipped with the project. > > > > >> > > > > > >> > I'm not convinced that my completely untuned, horribly > inefficient > > > > >> > algorithms in Gambas will be the best way to go if speed is of > the > > > > >> > essence or if the pdf files are gonna be more than a few 100 > kbs... > > > > >> > you might find it quicker/more robust to call out to a built-in > > > > >> > function in java/python/some other program... > > > > >> > > > > > >> > Anyways, all the (commented) source is there for you to > see/fiddle > > > > >> > with...so have fun, but if you have any questions, just give me > a > > > > >> > shout. > > > > >> > > > > > >> > Regards, > > > > >> > Caveat > > > > >> > > > > > >> > On Thu, 2011-04-28 at 07:38 +1000, Ian Haywood wrote: > > > > >> >> 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 < > nando_f at ...951...> > > > > > > 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 at 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 at 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 at 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 at 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 at 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 at 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 at 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 at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From rainbof at ...626... Thu Apr 28 22:08:31 2011 From: rainbof at ...626... (Ondrej Beranek) Date: Thu, 28 Apr 2011 22:08:31 +0200 Subject: [Gambas-user] Gambas 2 IDE different with running issue In-Reply-To: <20110428075757.M26066@...951...> References: <20110428032701.M38645@...951...> <20110428075757.M26066@...951...> Message-ID: sry, property has name "(Scaled)" 2011/4/28 nando > Wow, I didn't see that! > Silly me. > Thanks! > > > ---------- Original Message ----------- > From: Ondrej Beranek > To: nando_f at ...951..., mailing list for gambas users > > Sent: Thu, 28 Apr 2011 07:25:19 +0200 > Subject: Re: [Gambas-user] Gambas 2 IDE different with running issue > > > set "expand" property to value "false" :D > > > > 2011/4/28 nando > > > > > I am using Gambas 2 now, but I noticed that > > > what I design in the IDE is sized different (larger) when running. > > > I find this very odd because it doesn't look correct. > > > Does anyone know what I am missing ? > > > -Fernando > > > > > > > > > > ------------------------------------------------------------------------------ > > > 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 at 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 at 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 at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From rterry at ...1946... Fri Apr 29 00:31:39 2011 From: rterry at ...1946... (richard terry) Date: Fri, 29 Apr 2011 08:31:39 +1000 Subject: [Gambas-user] Base 64 question In-Reply-To: <1304002637.3023.545.camel@...2150...> References: <201104271813.57960.rterry@...1946...> <201104282209.33598.rterry@...1946...> <1304002637.3023.545.camel@...2150...> Message-ID: <201104290831.39172.rterry@...1946...> On Friday 29 April 2011 00:57:17 Caveat wrote: > xml.Decode...pfft! Funny, I never would have thought to look in gb.xml > for a base64 decoder! > > Anyhoo, did you compare xml.Decode and the routine below with the decode > function I wrote in the example project I sent earlier... or are you > *still* waiting for my decode function to return a result? lol Didn't yet test it, must admit I'd missed it in the post - pressure of work and quick scrolling, I'll take a look richard > > I'm wondering if the Wait is doing much useful in the subroutine below > (in theory it should be allowing processing of all pending events, but > no user interaction). Perhaps you could remove it and see what > happens... > > Regards, > Caveat > > On Thu, 2011-04-28 at 22:09 +1000, richard terry wrote: > > On Thursday 28 April 2011 21:50:55 richard terry wrote: > > > > I've tried them both the xml reader and the subroutine below, on a > > real-life file, a hl7 file containg a pdf of a vascular result > > > > this code written by > > Christer Nygren and some others, > > > > on my machine seems considerably faster than the xml.decode function > > > > Public Sub FromB64(B64Str As String) As String > > Dim Position As Long > > Dim dt As Byte > > Dim B64Decoded, u, c As String > > Dim Tkn, p As Integer > > > > Position = 1 > > Tkn = 0 > > Do Until Position > Len(B64Str) > > Wait > > c = Mid(B64Str, Position, 1) > > p = InStr(B64Const, c) > > If p > 1 Then > > p = p - 2 > > Inc Tkn > > Select Case Tkn > > Case 1 > > dt = (p * &h4) > > Case 2 > > B64Decoded = B64Decoded & Chr(dt + ((p And &H30&) / &H10&)) > > dt = (p And &HF&) * &H10& > > Case 3 > > B64Decoded = B64Decoded & Chr(dt + ((p And &H3C&) / 4)) > > dt = (p And &H3&) * &H40& > > Case 4 > > B64Decoded = B64Decoded & Chr(dt + p) > > End Select > > If Tkn = 4 Then Tkn = 0 > > Else ' Ej skrivbart tecken > > If p = 1 Then > > Position = Len(B64Str) + 1 > > End If > > Endif > > Inc Position > > Loop > > Select Case Tkn > > Case 1 > > B64Decoded = B64Decoded & Chr(dt) > > End Select > > Return B64Decoded > > End > > > > ??coments from those who know? > > > > richard > > > > > On Thursday 28 April 2011 21:38:52 Fabien Bodard wrote: > > > > Print XmlReader.Decode("strvalue", "Base64") > > > > > > Funny that, I based my head against a wall trying exactly that syntax, > > > I eventually found some old gambas code on the web that worked. > > > > > > But... just typed it in again, and it works. Dunno......... maybe I > > > didn't capitalise it or something. > > > > > > Anway, thanks. > > > > > > Like everything else in gambas, blindingly simple if you know. > > > > > > > > > Richard > > > > > > > 2011/4/28 richard terry : > > > > > On Thursday 28 April 2011 20:16:31 Fabien Bodard wrote: > > > > > I tried this: > > > > > XmlReader.Decode(data, "?????" > > > > > > > > > > what goes in the encoding type "?????" > > > > > > > > > > I looked on the website to no avail > > > > > I tried strings like "Base64", "base64" etc > > > > > > > > > > couldn't figure it out. > > > > > > > > > > any hlep appreciated. > > > > > > > > > > Richard > > > > > > > > > >> gb.xml ! > > > > >> > > > > >> 2011/4/28 Caveat : > > > > >> > Hi Richard, > > > > >> > > > > > >> > I don't know of any base64 decode function in Gambas, but then I > > > > >> > didn't look that hard ;-) > > > > >> > > > > > >> > There are various different flavours of base64, so be sure you > > > > >> > know which variant you're dealing with. > > > > >> > > > > > >> > I enclose with this mail a source archive of a little project > > > > >> > I've put together (sorry, it's Gambas2, hope that's OK) that > > > > >> > demonstrates decoding (and encoding) of base64 data. I found > > > > >> > the information on how to put together the encode and decode > > > > >> > algorithms here: http://en.wikipedia.org/wiki/Base64 > > > > >> > > > > > >> > There's also a reference to base64 in Gambas here: > > > > >> > http://www.gambasforum.com/index.php?topic=330.0 > > > > >> > The algorithms given in those code snippets could well be far > > > > >> > more efficient than mine. > > > > >> > > > > > >> > My Base64 Project > > > > >> > ----------------- > > > > >> > First thing to try is just hit the Encode button, it should > > > > >> > convert the text in the top textarea into base64 and place the > > > > >> > result in the lower textarea. Generally, if the In textbox is > > > > >> > blank, the input for Encode or Decode will be the upper > > > > >> > textarea, and if the Out textbox is blank, the output of the > > > > >> > Encode or Decode will be shown in the lower textarea. To encode > > > > >> > binary data, you'll need to use a file as input, so use the In > > > > >> > textbox to specify the file name. To decode base64 that > > > > >> > represents binary data, you'll need to use a file as output, so > > > > >> > use the Out textbox to specify the output file name. > > > > >> > > > > > >> > You can try out binary to base64 using fluffy.jpg (shipped with > > > > >> > the project) as your In file. > > > > >> > > > > > >> > To test round-trip (so start with a binary, encode it to base64, > > > > >> > then decode the base64 data to make an identical binary)... > > > > >> > enter fluffy.jpg in the In textbox, blank the Out textbox, hit > > > > >> > Encode. In the lower textarea Select All, Copy... then in the > > > > >> > upper textarea Paste. Now clear the In textbox and enter > > > > >> > coffee.jpg in the Out textbox. Hit Decode. You *should* find a > > > > >> > new file in your Base64 project directory called coffee.jpg, and > > > > >> > it *should* be identical to the fluffy.jpg shipped with the > > > > >> > project. > > > > >> > > > > > >> > I'm not convinced that my completely untuned, horribly > > > > >> > inefficient algorithms in Gambas will be the best way to go if > > > > >> > speed is of the essence or if the pdf files are gonna be more > > > > >> > than a few 100 kbs... you might find it quicker/more robust to > > > > >> > call out to a built-in function in java/python/some other > > > > >> > program... > > > > >> > > > > > >> > Anyways, all the (commented) source is there for you to > > > > >> > see/fiddle with...so have fun, but if you have any questions, > > > > >> > just give me a shout. > > > > >> > > > > > >> > Regards, > > > > >> > Caveat > > > > >> > > > > > >> > On Thu, 2011-04-28 at 07:38 +1000, Ian Haywood wrote: > > > > >> >> 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 at 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 at 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 at 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 at 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 at 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 at 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 at 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 at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...2524... Fri Apr 29 03:24:59 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Fri, 29 Apr 2011 01:24:59 +0000 Subject: [Gambas-user] Issue 62 in gambas: No way to rename project Message-ID: <0-6813199134517018827-3330375153225390755-gambas=googlecode.com@...2524...> Status: New Owner: ---- Labels: Version Type-Bug Priority-Medium OpSys-Any Dist-Any Arch-Any Desktop-Any GUI-Any New issue 62 by richard.... at ...626...: No way to rename project http://code.google.com/p/gambas/issues/detail?id=62 1) It is impossible to rename a project. 2) GIVE THE FOLLOWING INFORMATIONS (if they are appropriate): Version: 2.21 Operating system: Linux Distribution: Ubuntu 10.10 Architecture: x86_64 GUI component: GTK+ Desktop used: Gnome 3) Applies to any project 4) n/a 5) Create a project. Be unable to rename it. From gambas at ...2524... Fri Apr 29 03:32:13 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Fri, 29 Apr 2011 01:32:13 +0000 Subject: [Gambas-user] Issue 62 in gambas: No way to rename project In-Reply-To: <0-6813199134517018827-3330375153225390755-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-3330375153225390755-gambas=googlecode.com@...2524...> Message-ID: <1-6813199134517018827-3330375153225390755-gambas=googlecode.com@...2524...> Updates: Status: WontFix Labels: -Version Version-2.23.0 Comment #1 on issue 62 by benoit.m... at ...626...: No way to rename project http://code.google.com/p/gambas/issues/detail?id=62 Just rename the directory that contains the project, that's all. From keithclark at ...2185... Fri Apr 29 04:22:49 2011 From: keithclark at ...2185... (Keith Clark) Date: Thu, 28 Apr 2011 22:22:49 -0400 Subject: [Gambas-user] Gambas 3 not out yet? Message-ID: <1304043769.3862.0.camel@...2582...> 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 From support at ...2529... Fri Apr 29 05:53:25 2011 From: support at ...2529... (John Spikowski) Date: Thu, 28 Apr 2011 20:53:25 -0700 Subject: [Gambas-user] Gambas 3 not out yet? In-Reply-To: <1304043769.3862.0.camel@...2582...> References: <1304043769.3862.0.camel@...2582...> Message-ID: <1304049205.9070.9.camel@...1833...> 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) John From ihaywood at ...1979... Fri Apr 29 06:33:10 2011 From: ihaywood at ...1979... (Ian Haywood) Date: Fri, 29 Apr 2011 14:33:10 +1000 Subject: [Gambas-user] Gambas 3 not out yet? In-Reply-To: <1304049205.9070.9.camel@...1833...> References: <1304043769.3862.0.camel@...2582...> <1304049205.9070.9.camel@...1833...> Message-ID: 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 From gambas.fr at ...626... Fri Apr 29 08:19:55 2011 From: gambas.fr at ...626... (Fabien Bodard) Date: Fri, 29 Apr 2011 08:19:55 +0200 Subject: [Gambas-user] Base 64 question In-Reply-To: <1304002637.3023.545.camel@...2150...> References: <201104271813.57960.rterry@...1946...> <201104282150.55792.rterry@...1946...> <201104282209.33598.rterry@...1946...> <1304002637.3023.545.camel@...2150...> Message-ID: 2011/4/28 Caveat : > xml.Decode...pfft! ?Funny, I never would have thought to look in gb.xml > for a base64 decoder! true ... i've found it in the past when i've made a little program to extract mail attachement in old mail directories > Anyhoo, did you compare xml.Decode and the routine below with the decode > function I wrote in the example project I sent earlier... or are you > *still* waiting for my decode function to return a result? lol > > I'm wondering if the Wait is doing much useful in the subroutine below > (in theory it should be allowing processing of all pending events, but > no user interaction). ?Perhaps you could remove it and see what > happens... > > Regards, > Caveat > > On Thu, 2011-04-28 at 22:09 +1000, richard terry wrote: >> On Thursday 28 April 2011 21:50:55 richard terry wrote: >> >> I've tried them both the xml reader and the subroutine below, on a real-life >> file, a hl7 file containg a pdf of a vascular result >> >> this code written by >> Christer Nygren and some others, >> >> on my machine seems considerably faster than the xml.decode function >> >> Public Sub FromB64(B64Str As String) As String >> ? Dim Position As Long >> ? Dim dt As Byte >> ? Dim B64Decoded, u, c As String >> ? Dim Tkn, p As Integer >> >> ? ?Position = 1 >> ? Tkn = 0 >> ? Do Until Position > Len(B64Str) >> ? ? Wait >> ? ? c = Mid(B64Str, Position, 1) >> ? ? p = InStr(B64Const, c) >> ? ? If p > 1 Then >> ? ? ? p = p - 2 >> ? ? ? Inc Tkn >> ? ? ? Select Case Tkn >> ? ? ? ? Case 1 >> ? ? ? ? ? dt = (p * &h4) >> ? ? ? ? Case 2 >> ? ? ? ? ? B64Decoded = B64Decoded & Chr(dt + ((p And &H30&) / &H10&)) >> ? ? ? ? ? dt = (p And &HF&) * &H10& >> ? ? ? ? Case 3 >> ? ? ? ? ? B64Decoded = B64Decoded & Chr(dt + ((p And &H3C&) / 4)) >> ? ? ? ? ? dt = (p And &H3&) * &H40& >> ? ? ? ? Case 4 >> ? ? ? ? ? B64Decoded = B64Decoded & Chr(dt + p) >> ? ? ? End Select >> ? ? ? If Tkn = 4 Then Tkn = 0 >> ? ?Else ? ?' Ej skrivbart tecken >> ? ? ?If p = 1 Then >> ? ? ? ?Position = Len(B64Str) + 1 >> ? ? ?End If >> ? ?Endif >> ? ?Inc Position >> ? Loop >> ? ?Select Case Tkn >> ? ? ?Case 1 >> ? ? ? ?B64Decoded = B64Decoded & Chr(dt) >> ? ?End Select >> ? Return B64Decoded >> End >> >> ??coments from those who know? >> >> richard >> >> >> > On Thursday 28 April 2011 21:38:52 Fabien Bodard wrote: >> > > Print XmlReader.Decode("strvalue", "Base64") >> > >> > Funny that, I based my head against a wall trying exactly that syntax, I >> > eventually found some old gambas code on the web that worked. >> > >> > But... just typed it in again, and it works. Dunno......... maybe I didn't >> > capitalise it or something. >> > >> > Anway, thanks. >> > >> > Like everything else in gambas, blindingly simple if you know. >> > >> > >> > Richard >> > >> > > 2011/4/28 richard terry : >> > > > On Thursday 28 April 2011 20:16:31 Fabien Bodard wrote: >> > > > I tried ?this: >> > > > ?XmlReader.Decode(data, "?????" >> > > > >> > > > what goes in the encoding type "?????" >> > > > >> > > > I looked on the website to no avail >> > > > I tried strings like "Base64", "base64" etc >> > > > >> > > > couldn't figure it out. >> > > > >> > > > any hlep appreciated. >> > > > >> > > > Richard >> > > > >> > > >> gb.xml ! >> > > >> >> > > >> 2011/4/28 Caveat : >> > > >> > Hi Richard, >> > > >> > >> > > >> > I don't know of any base64 decode function in Gambas, but then I >> > > >> > didn't look that hard ;-) >> > > >> > >> > > >> > There are various different flavours of base64, so be sure you know >> > > >> > which variant you're dealing with. >> > > >> > >> > > >> > I enclose with this mail a source archive of a little project I've >> > > >> > put together (sorry, it's Gambas2, hope that's OK) that demonstrates >> > > >> > decoding (and encoding) of base64 data. ?I found the information on >> > > >> > how to put together the encode and decode algorithms here: >> > > >> > http://en.wikipedia.org/wiki/Base64 >> > > >> > >> > > >> > There's also a reference to base64 in Gambas here: >> > > >> > http://www.gambasforum.com/index.php?topic=330.0 >> > > >> > The algorithms given in those code snippets could well be far more >> > > >> > efficient than mine. >> > > >> > >> > > >> > My Base64 Project >> > > >> > ----------------- >> > > >> > First thing to try is just hit the Encode button, it should convert >> > > >> > the text in the top textarea into base64 and place the result in the >> > > >> > lower textarea. Generally, if the In textbox is blank, the input for >> > > >> > Encode or Decode will be the upper textarea, and if the Out textbox >> > > >> > is blank, the output of the Encode or Decode will be shown in the >> > > >> > lower textarea. ?To encode binary data, you'll need to use a file as >> > > >> > input, so use the In textbox to specify the file name. ?To decode >> > > >> > base64 that represents binary data, you'll need to use a file as >> > > >> > output, so use the Out textbox to specify the output file name. >> > > >> > >> > > >> > You can try out binary to base64 using fluffy.jpg (shipped with the >> > > >> > project) as your In file. >> > > >> > >> > > >> > To test round-trip (so start with a binary, encode it to base64, >> > > >> > then decode the base64 data to make an identical binary)... enter >> > > >> > fluffy.jpg in the In textbox, blank the Out textbox, hit Encode. ?In >> > > >> > the lower textarea Select All, Copy... then in the upper textarea >> > > >> > Paste. ?Now clear the In textbox and enter coffee.jpg in the Out >> > > >> > textbox. ?Hit Decode. ?You *should* find a new file in your Base64 >> > > >> > project directory called coffee.jpg, and it *should* be identical to >> > > >> > the fluffy.jpg shipped with the project. >> > > >> > >> > > >> > I'm not convinced that my completely untuned, horribly inefficient >> > > >> > algorithms in Gambas will be the best way to go if speed is of the >> > > >> > essence or if the pdf files are gonna be more than a few 100 kbs... >> > > >> > you might find it quicker/more robust to call out to a built-in >> > > >> > function in java/python/some other program... >> > > >> > >> > > >> > Anyways, all the (commented) source is there for you to see/fiddle >> > > >> > with...so have fun, but if you have any questions, just give me a >> > > >> > shout. >> > > >> > >> > > >> > Regards, >> > > >> > Caveat >> > > >> > >> > > >> > On Thu, 2011-04-28 at 07:38 +1000, Ian Haywood wrote: >> > > >> >> 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 at 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 at 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 at 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 at 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 at 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 at 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 at 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 at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Fabien Bodard From gambas at ...2524... Fri Apr 29 10:35:20 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Fri, 29 Apr 2011 08:35:20 +0000 Subject: [Gambas-user] Issue 62 in gambas: No way to rename project In-Reply-To: <1-6813199134517018827-3330375153225390755-gambas=googlecode.com@...2524...> References: <1-6813199134517018827-3330375153225390755-gambas=googlecode.com@...2524...> <0-6813199134517018827-3330375153225390755-gambas=googlecode.com@...2524...> Message-ID: <2-6813199134517018827-3330375153225390755-gambas=googlecode.com@...2524...> Comment #2 on issue 62 by richard.... at ...626...: No way to rename project http://code.google.com/p/gambas/issues/detail?id=62 Doing it that way doesn't change the project title. I can edit .settings but it would be nice for there to be a Project -> Rename dialog that would rename all the instances of the project name, say even with built packages. Liking Gambas so far. Very quick. From kevinfishburne at ...1887... Fri Apr 29 10:49:16 2011 From: kevinfishburne at ...1887... (Kevin Fishburne) Date: Fri, 29 Apr 2011 04:49:16 -0400 Subject: [Gambas-user] Issue 62 in gambas: No way to rename project In-Reply-To: <2-6813199134517018827-3330375153225390755-gambas=googlecode.com@...2524...> References: <1-6813199134517018827-3330375153225390755-gambas=googlecode.com@...2524...> <0-6813199134517018827-3330375153225390755-gambas=googlecode.com@...2524...> <2-6813199134517018827-3330375153225390755-gambas=googlecode.com@...2524...> Message-ID: <4DBA7B8C.4090300@...1887...> On 04/29/2011 04:35 AM, gambas at ...2524... wrote: > Comment #2 on issue 62 by richard.... at ...626...: No way to rename project > http://code.google.com/p/gambas/issues/detail?id=62 > > Doing it that way doesn't change the project title. > > I can edit .settings but it would be nice for there to be a Project -> > Rename dialog that would rename all the instances of the project name, > say even with built packages. > > Liking Gambas so far. Very quick. Without commenting on the suggested feature, GAMBAS could benefit from a feature request list with registered voting and reason. Nothing would ever have to be taken seriously, but it could be an idea board for what people who are using it need. Avoiding bloat as always would remain the same. -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sales at ...1887... phone: (770) 853-6271 From gambas at ...1... Fri Apr 29 13:57:08 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Fri, 29 Apr 2011 13:57:08 +0200 Subject: [Gambas-user] Base 64 question In-Reply-To: References: <201104271813.57960.rterry@...1946...> <1304002637.3023.545.camel@...2150...> Message-ID: <201104291357.08888.gambas@...1...> > 2011/4/28 Caveat : > > xml.Decode...pfft! Funny, I never would have thought to look in gb.xml > > for a base64 decoder! > > true ... i've found it in the past when i've made a little program to > extract mail attachement in old mail directories > Maybe encoding & decoding BASE64 should be standard in Gambas? I can do the same remark for URL encoding & decoding functions located in gb.web at the moment. I just have to find good names for the functions... ToBase64$() ToUrl$() FromBase64$() FromUrl$() Or two generic functions like Conv$(). Encode() and Decode() with a code argument: gb.Base64, gb.URI... They won't match Shell$(), Quote$(), Unquote$(), Html$(). But maybe it's not that important. If people are aware of other useful encoding/decoding functions, they should tell now. -- Beno?t Minisini From gambas.fr at ...626... Fri Apr 29 13:59:53 2011 From: gambas.fr at ...626... (Fabien Bodard) Date: Fri, 29 Apr 2011 13:59:53 +0200 Subject: [Gambas-user] Base 64 question In-Reply-To: <201104291357.08888.gambas@...1...> References: <201104271813.57960.rterry@...1946...> <1304002637.3023.545.camel@...2150...> <201104291357.08888.gambas@...1...> Message-ID: Le 29 avril 2011 13:57, Beno?t Minisini a ?crit : >> 2011/4/28 Caveat : >> > xml.Decode...pfft! ?Funny, I never would have thought to look in gb.xml >> > for a base64 decoder! >> >> true ... i've found it in the past when i've made a little program to >> extract mail attachement in old mail directories >> > > Maybe encoding & decoding BASE64 should be standard in Gambas? I can do the > same remark for URL encoding & decoding functions located in gb.web at the > moment. > > I just have to find good names for the functions... > > ? ? ? ?ToBase64$() > ? ? ? ?ToUrl$() > ? ? ? ?FromBase64$() > ? ? ? ?FromUrl$() > > Or two generic functions like Conv$(). Encode() and Decode() with a code > argument: gb.Base64, gb.URI... > > They won't match Shell$(), Quote$(), Unquote$(), Html$(). But maybe it's not > that important. > > If people are aware of other useful encoding/decoding functions, they should > tell now. md5 ? > > -- > Beno?t Minisini > > ------------------------------------------------------------------------------ > 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 at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Fabien Bodard From oceanosoftlapalma at ...626... Fri Apr 29 16:25:41 2011 From: oceanosoftlapalma at ...626... (=?ISO-8859-1?Q?Ricardo_D=EDaz_Mart=EDn?=) Date: Fri, 29 Apr 2011 16:25:41 +0200 Subject: [Gambas-user] Gambas 3 working on Ubuntu Natty with Unity interface In-Reply-To: <201104232318.59139.gambas@...1...> References: <4DB30CD8.2070201@...626...> <201104232318.59139.gambas@...1...> Message-ID: 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 at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Fri Apr 29 16:28:02 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Fri, 29 Apr 2011 16:28:02 +0200 Subject: [Gambas-user] Gambas 3 working on Ubuntu Natty with Unity interface In-Reply-To: References: <4DB30CD8.2070201@...626...> <201104232318.59139.gambas@...1...> Message-ID: <201104291628.02263.gambas@...1...> > Something new in this issue? > > Regards, > Ricardo D?az > I'm not using Natty, so no. -- Beno?t Minisini From and.bertini at ...626... Sat Apr 30 11:02:36 2011 From: and.bertini at ...626... (Andrea Bertini) Date: Sat, 30 Apr 2011 11:02:36 +0200 Subject: [Gambas-user] Gambas3: webview control Message-ID: <4DBBD02C.9000708@...626...> 1. userid and password management is planned or possible? 2. how to enable flash plugin? 3. it is possible from code to send data to field of a web page? thx Andrea Bertini From gambas at ...2524... Sat Apr 30 15:42:23 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Sat, 30 Apr 2011 13:42:23 +0000 Subject: [Gambas-user] Issue 62 in gambas: No way to rename project In-Reply-To: <2-6813199134517018827-3330375153225390755-gambas=googlecode.com@...2524...> References: <2-6813199134517018827-3330375153225390755-gambas=googlecode.com@...2524...> <0-6813199134517018827-3330375153225390755-gambas=googlecode.com@...2524...> Message-ID: <3-6813199134517018827-3330375153225390755-gambas=googlecode.com@...2524...> Comment #3 on issue 62 by benoit.m... at ...626...: No way to rename project http://code.google.com/p/gambas/issues/detail?id=62 To change the project title, go to the first tab of the project property dialog in the IDE, and modify the field named "title". From frederic.176 at ...626... Sat Apr 30 17:30:33 2011 From: frederic.176 at ...626... (Federico Leite) Date: Sat, 30 Apr 2011 15:30:33 +0000 Subject: [Gambas-user] Bakcground property in FileView Message-ID: Hi, the Background property in FileView doesn't works...Well, it's simple: Property Bakcground As Integer Private Function Background_Read() As Integer Return $hIconView.Background End Private Sub Background_Write(Value As Integer) $hIconView.Background = Value End Regards, -- Federico Leite ############################################## Areida Developer