From gambas at ...1... Sat Nov 1 00:45:05 2008 From: gambas at ...1... (Benoit Minisini) Date: Sat, 1 Nov 2008 01:45:05 +0200 Subject: [Gambas-user] Shipping translations for my project In-Reply-To: <1f1e8c1b0810310554h3a9203aarfa2bbf84c34bc1a1@...627...> References: <1f1e8c1b0810300846r7b23c351na802bb6630a4be7c@...627...> <200810311247.20725.gambas@...1...> <1f1e8c1b0810310554h3a9203aarfa2bbf84c34bc1a1@...627...> Message-ID: <200811010045.05612.gambas@...1...> On vendredi 31 octobre 2008, M0E Lnx wrote: > The code I'm using now is somewhat similar, except, I'm using a > columnview, and storing the LANGUAGE CODE as the key for each entry > and the LANGUAGE NAME as the .text property for each entry. I foud > it's easier to do it this way than it is to keep up with 2 arrays of > the same thing, I just use what gambas already has. > > So when you select an item in the columnview, you can easily get it's > LANG CODE by getting the selection's key. > > > But beniot is right... It seems to me that the resulting binary should > be able to rdir(.lang) > The Dir()/RDir() bug was fixed in revision #1665. So Dir(".lang") should work as expected now! Regards, -- Benoit Minisini From david_villalobos_c at ...43... Sat Nov 1 00:51:10 2008 From: david_villalobos_c at ...43... (David Villalobos Cambronero) Date: Fri, 31 Oct 2008 16:51:10 -0700 (PDT) Subject: [Gambas-user] Create source packages for SVN Message-ID: <228442.62144.qm@...1782...> Hi Benoit and All, I have been working on a application on a SVN server provided by Google Code. This is my problem: I download the last version of my project, make a tar.gz with Mandriva, I get home and start working on it, then I create a source package (tar.gz) to take it to my office and try to upload the changes, but I realized that Gambas 3 delete all .svn directories so I can upload them. Is a good idea to have an option for packages from svn? I mean, have the option to not erase those directories? If Gambas realized that the current project is controlled with svn then it won't delete the .svn directories. Best Regards -- David From gambas at ...1... Sat Nov 1 00:58:16 2008 From: gambas at ...1... (Benoit Minisini) Date: Sat, 1 Nov 2008 01:58:16 +0200 Subject: [Gambas-user] Create source packages for SVN In-Reply-To: <228442.62144.qm@...1782...> References: <228442.62144.qm@...1782...> Message-ID: <200811010058.16250.gambas@...1...> On samedi 01 novembre 2008, David Villalobos Cambronero wrote: > Hi Benoit and All, > > I have been working on a application on a SVN server provided by Google > Code. This is my problem: > > I download the last version of my project, make a tar.gz with Mandriva, I > get home and start working on it, then I create a source package (tar.gz) > to take it to my office and try to upload the changes, but I realized that > Gambas 3 delete all .svn directories so I can upload them. > > Is a good idea to have an option for packages from svn? I mean, have the > option to not erase those directories? If Gambas realized that the > current project is controlled with svn then it won't delete the .svn > directories. > > Best Regards > > > -- > David I guess you created the source package from the IDE. Gambas does not destroy the .svn directories, it just does not put them in the source package. Just make your source package normally, outside of the IDE, and you won't have any problem. Regards, -- Benoit Minisini From david_villalobos_c at ...43... Sat Nov 1 01:04:52 2008 From: david_villalobos_c at ...43... (David Villalobos Cambronero) Date: Fri, 31 Oct 2008 17:04:52 -0700 (PDT) Subject: [Gambas-user] Create source packages for SVN References: <228442.62144.qm@...1782...> <200811010058.16250.gambas@...1...> Message-ID: <631341.77251.qm@...1657...> Sure, I know, the .svn directories are not destroyed, but can we add the option to the IDE or it is not a good idea? Saludos -- David ----- Original Message ---- From: Benoit Minisini To: mailing list for gambas users Sent: Friday, October 31, 2008 5:58:16 PM Subject: Re: [Gambas-user] Create source packages for SVN On samedi 01 novembre 2008, David Villalobos Cambronero wrote: > Hi Benoit and All, > > I have been working on a application on a SVN server provided by Google > Code. This is my problem: > > I download the last version of my project, make a tar.gz with Mandriva, I > get home and start working on it, then I create a source package (tar.gz) > to take it to my office and try to upload the changes, but I realized that > Gambas 3 delete all .svn directories so I can upload them. > > Is a good idea to have an option for packages from svn? I mean, have the > option to not erase those directories? If Gambas realized that the > current project is controlled with svn then it won't delete the .svn > directories. > > Best Regards > > > -- > David I guess you created the source package from the IDE. Gambas does not destroy the .svn directories, it just does not put them in the source package. Just make your source package normally, outside of the IDE, and you won't have any problem. Regards, -- Benoit Minisini ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From doriano.blengino at ...1909... Sat Nov 1 08:19:53 2008 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Sat, 01 Nov 2008 08:19:53 +0100 Subject: [Gambas-user] Please help with directory problem In-Reply-To: <61452b690810311452k4f138726v1364bece5d279206@...627...> References: <61452b690810301324t29ef04f9h27ef9e6a46d028f5@...627...> <490AC32B.90700@...1909...> <61452b690810310552v10b3dcd0icf882207a767add6@...627...> <200810311357.37388.gambas@...1...> <61452b690810311452k4f138726v1364bece5d279206@...627...> Message-ID: <490C0319.9080300@...1909...> Kari Laine ha scritto: > On Fri, Oct 31, 2008 at 2:57 PM, Benoit Minisini < > gambas at ...1...> wrote: > > >> On vendredi 31 octobre 2008, Kari Laine wrote: >> >>> Thanks Benoit ! >>> >> I often forget the WAIT keyword after a SHELL or EXEC command, so now I >> think >> this syntax was not a really good idea. >> >> I should have used the opposite syntax, i.e. a keyword like "BACKGROUND" >> or "DO NOT WAIT"! >> >> >> > Hi, > > I still have a problem. > The routine is now following > > PUBLIC SUB makedirs(sHak AS String) > DIM haks AS NEW String[300] > DIM hak2 AS String > DIM crtdir AS String > > crtdir = "/home/kari/backup_work/cdroot/" > haks = Split(sHak, "/") > FOR EACH hak2 IN haks > IF hak2 = "" THEN CONTINUE > > crtdir = crtdir &/ hak2 > 'SHELL "mkdir " & crtdir > 'TRY MKDIR crtdir > SHELL "mkdir " & crtdir WAIT > > 'PRINT crtdir > NEXT > > END > Anyway, why don't you use a simpler "mkdir -p ...."? I read your other subsequent message too, about the error, and noticed you solved. So, you *can* work out by gambas code, and your task is done. This is not a "gambas" suggestion, but in the end a "mkdir -p" is cleaner, easier, and faster... Right after a "mkdir -p ..." you can test for the directory existance, to see if all went well. Cheers, Doriano From klaine8 at ...626... Sat Nov 1 12:38:37 2008 From: klaine8 at ...626... (Kari Laine) Date: Sat, 1 Nov 2008 13:38:37 +0200 Subject: [Gambas-user] Please help with directory problem In-Reply-To: <490C0319.9080300@...1909...> References: <61452b690810301324t29ef04f9h27ef9e6a46d028f5@...627...> <490AC32B.90700@...1909...> <61452b690810310552v10b3dcd0icf882207a767add6@...627...> <200810311357.37388.gambas@...1...> <61452b690810311452k4f138726v1364bece5d279206@...627...> <490C0319.9080300@...1909...> Message-ID: <61452b690811010438h461185e9l17dca54ec284e131@...627...> On Sat, Nov 1, 2008 at 9:19 AM, Doriano Blengino < doriano.blengino at ...1909...> wrote: > Kari Laine ha scritto: > Anyway, why don't you use a simpler "mkdir -p ...."? > I didn't remember it ? Thanks > I read your other subsequent message too, about the error, and noticed > you solved. > So, you *can* work out by gambas code, and your task is done. > This is not a "gambas" suggestion, but in the end a "mkdir -p" is > cleaner, easier, and faster... > Right after a "mkdir -p ..." you can test for the directory existance, > to see if all went well. > Best Regards Kari Laine From markus.schatten at ...2005... Sat Nov 1 14:01:35 2008 From: markus.schatten at ...2005... (Markus Schatten) Date: Sat, 1 Nov 2008 14:01:35 +0100 Subject: [Gambas-user] Regular expressions In-Reply-To: <200810312336.58787.markus.schatten@...2005...> References: <61452b690810301324t29ef04f9h27ef9e6a46d028f5@...627...> <200810311740.03468.sourceforge-raindog2@...94...> <200810312336.58787.markus.schatten@...2005...> Message-ID: <200811011401.36077.markus.schatten@...2005...> Just if someone needs it, I've added an optional argument submatchindex that will return the matches of a given submatch. PRIVATE FUNCTION FindAll(subj AS String, pattern AS String, OPTIONAL submatchindex AS Integer = 0) AS String[] DIM re AS Regexp DIM matches AS NEW String[] re = NEW Regexp(subj, pattern) DO WHILE re.offset >= 0 AND subj <> "" IF submatchindex = 0 THEN matches.push(re.Text) ELSE matches.push(re.SubMatches[submatchindex].Text) END IF IF Len(subj) > Len(re.text) THEN subj = Mid(subj, re.offset + Len(re.text) + 1) ELSE subj = "" END IF IF subj <> "" THEN re.exec(subj) LOOP RETURN matches END Best regards, -- Markus Schatten, MSc Faculty of Organization and Informatics Vara?din, Croatia http://www.foi.hr From ronstk at ...239... Sat Nov 1 15:29:13 2008 From: ronstk at ...239... (Ron_1st) Date: Sat, 1 Nov 2008 16:29:13 +0200 Subject: [Gambas-user] Please help with directory problem In-Reply-To: <61452b690810311515l68a4fe65s639643a3be860d2e@...627...> References: <61452b690810301324t29ef04f9h27ef9e6a46d028f5@...627...> <61452b690810311452k4f138726v1364bece5d279206@...627...> <61452b690810311515l68a4fe65s639643a3be860d2e@...627...> Message-ID: <200811011529.14468.ronstk@...239...> On Friday 31 October 2008, Kari Laine wrote: > On Fri, Oct 31, 2008 at 11:52 PM, Kari Laine wrote: > > > On Fri, Oct 31, 2008 at 2:57 PM, Benoit Minisini < > > gambas at ...1...> wrote: > > > >> On vendredi 31 octobre 2008, Kari Laine wrote: > >> > Thanks Benoit ! > >> > >> I often forget the WAIT keyword after a SHELL or EXEC command, so now I > >> think > >> this syntax was not a really good idea. > >> > >> I should have used the opposite syntax, i.e. a keyword like "BACKGROUND" > >> or "DO NOT WAIT"! > >> > >> > > Hi, > > > > I still have a problem. > > The routine is now following > > > > PUBLIC SUB makedirs(sHak AS String) > > DIM haks AS NEW String[300] > > DIM hak2 AS String > > DIM crtdir AS String > > > > crtdir = "/home/kari/backup_work/cdroot/" > > haks = Split(sHak, "/") > > FOR EACH hak2 IN haks > > IF hak2 = "" THEN CONTINUE > > > > crtdir = crtdir &/ hak2 > > 'SHELL "mkdir " & crtdir > > 'TRY MKDIR crtdir > > SHELL "mkdir " & crtdir WAIT > > > > 'PRINT crtdir > > NEXT > > > > END > > When I'm see it right you are creating a sequence of dirs crtdir = "/home/kari/backup_work/cdroot/" sHak="my/nice/path/to/files" you could do a SHELL "mkdir -p " & crtdir &/ sHak WAIT ------ for mkdir there are two ways to create: 1) 'mkdir my nice path to files' this will create all given dirs in the current working directory. /home/kari/backup_work/cdroot/my /home/kari/backup_work/cdroot/nice /home/kari/backup_work/cdroot/path ... 2) 'mkdir my/nice/path/to/files' this will create the whole path in one go /home/kari/backup_work/cdroot/my/nice/path/to/files Using the -p option prevent errors if the directory already exists. Best regards Ron_1st -- A: Delete the text you reply on. Q: What to do to get my post on top? A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail? From lordheavym at ...626... Sat Nov 1 20:08:27 2008 From: lordheavym at ...626... (Laurent Carlier) Date: Sat, 1 Nov 2008 20:08:27 +0100 Subject: [Gambas-user] Release of Gambas 2.9 In-Reply-To: <200810301530.30410.gambas@...1...> References: <200810301530.30410.gambas@...1...> Message-ID: <200811012008.27956.lordheavym@...626...> Le jeudi 30 octobre 2008 15:30:30 Benoit Minisini, vous avez ?crit : > Hi, > > Finally, two months after the release of Gambas 2.8, here is a new version. > > The main changes are: > > * The code editor can now use any font. Consequently, you will be able to > use chinese and other non western languages in your code, and Liang Wei > should be happy. > > * The IDE creates packages inside their own directories. > > * A "paste special" feature has been implemented. You can paste text as > plain text, HTML, as a quoted string, as a comment, as PRINT instructions. > > * Gambas Server Pages allows you to create web pages dynamically. See the > old mail about that in the mailing-list for more information, or the > documentation page on the wiki. > > * Deleted forms now become immediately invalid. This may produce new errors > in your old code ('Invalid object'). > > * The networking components were fixed. But not all bugs were erased for > sure. > > There are many other fixes, so go there to see the full changelog: > http://gambas.sf.net/changelog2.html. > > Regards, You can access too through gnunet: gnunet://ecrs/chk/93KVR9KID65QO64GRBK3GKQ8JTPVSCA7JQSBM5BNF39DDCA98CCJ4J1OV5UO02BI7OS8FRBVF1N80VV7IVM62TJVETC31P9S9BA178G.KK251UONP00MM5V0H5GFVAV83E2TCR54UULFHBUB78N6OM3JEUR9FU8LAE340U8HPNGV34D4C9CO325RMRIBJRP6O68P0MQS50E4AUG.12619061 ps : http://gnunet.org/ From gambas at ...1938... Sun Nov 2 11:01:02 2008 From: gambas at ...1938... (gambas at ...1938...) Date: Sun, 2 Nov 2008 11:01:02 +0100 Subject: [Gambas-user] gambas3 and gb.ldap Message-ID: <200811021101.02626.gambas@...1938...> Hi List, I've compiled gambas3 from SVN and missing gb.ldap. configure never said, that this component would be disabled. Here is the ERROR-log of configure: configure: WARNING: Unable to find file: libintl.so configure: WARNING: Unable to find file: libiconv.so configure: WARNING: *** foreign function interface is disabled configure: WARNING: Unable to find file: libfbclient.so configure: WARNING: *** firebird driver is disabled configure: WARNING: Unable to find file: libqte-mt.so configure: WARNING: *** QT/Embedded component is disabled configure: WARNING: *** Gnome desktop routines is disabled No complaints about missing ldap-libs When I open a project and browse the online help, I even can't see no docs regarding gb.ldap. What I'm missing? TIA Stevie From rospolosco at ...152... Sun Nov 2 11:32:31 2008 From: rospolosco at ...152... (Stefano Palmeri) Date: Sun, 2 Nov 2008 11:32:31 +0100 Subject: [Gambas-user] bug in 2.9 or something wrong in my project Message-ID: <200811021132.32023.rospolosco@...152...> Hi, Benoit. Just downloaded the 2.9 and compiled. I tried to make an installation package and get an error message "Unable to create desktop shortcut" (see attached image). I close the warning box many times, before I can make the package. Same message (once) if I "Compile All". The strange thing is this happens only with this project. So there must be something wrong in my project or something new in Gambas. In the past I didn't get any error with this project source. I've attached the project so you can see what's wrong. Just try to make an installation package and you could see the bug. Gambas 2.9 Slackware 12.1 Qt: 3.3.8b KDE: 3.5.9 Best regards, Stefano Palmeri -------------- next part -------------- A non-text attachment was scrubbed... Name: gbxgol-0.4.tar.gz Type: application/x-tgz Size: 94103 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: unable-to-create.jpg Type: image/jpeg Size: 13005 bytes Desc: not available URL: From gambas at ...1... Sun Nov 2 12:20:04 2008 From: gambas at ...1... (Benoit Minisini) Date: Sun, 2 Nov 2008 13:20:04 +0200 Subject: [Gambas-user] gambas3 and gb.ldap In-Reply-To: <200811021101.02626.gambas@...1938...> References: <200811021101.02626.gambas@...1938...> Message-ID: <200811021220.04420.gambas@...1...> On dimanche 02 novembre 2008, gambas at ...1938... wrote: > Hi List, > > I've compiled gambas3 from SVN and missing gb.ldap. > configure never said, that this component would be disabled. > Here is the ERROR-log of configure: > > configure: WARNING: Unable to find file: libintl.so > configure: WARNING: Unable to find file: libiconv.so > configure: WARNING: *** foreign function interface is disabled > configure: WARNING: Unable to find file: libfbclient.so > configure: WARNING: *** firebird driver is disabled > configure: WARNING: Unable to find file: libqte-mt.so > configure: WARNING: *** QT/Embedded component is disabled > configure: WARNING: *** Gnome desktop routines is disabled > > No complaints about missing ldap-libs > > When I open a project and browse the online help, I even can't see no docs > regarding gb.ldap. > > What I'm missing? > > TIA > Stevie > gb.ldap has been removed because it was not maintained and buggy. Regards, -- Benoit Minisini From gambas at ...1... Sun Nov 2 12:21:53 2008 From: gambas at ...1... (Benoit Minisini) Date: Sun, 2 Nov 2008 13:21:53 +0200 Subject: [Gambas-user] Word Wrap in GridView or TableView In-Reply-To: <490AB8DD.5080803@...221...> References: <490AB8DD.5080803@...221...> Message-ID: <200811021221.53885.gambas@...1...> On vendredi 31 octobre 2008, Rolf-Werner Eilert wrote: > Hi, > > The Re. says it all: Is there an automatic word-wrapping (line wrap) in > GridView or TableView? > > Or could this be done by code (inserting LF for instance)? If so, the > line height for that cell should be increased properly, could one find > the necessary data, and does this work? > > Thanks for your hints! > > Rolf > It should be possible to add a WordWrap property in Gambas 3. I note that in my TODO file. Regards, -- Benoit Minisini From gambas at ...1... Sun Nov 2 12:29:08 2008 From: gambas at ...1... (Benoit Minisini) Date: Sun, 2 Nov 2008 13:29:08 +0200 Subject: [Gambas-user] bug in 2.9 or something wrong in my project In-Reply-To: <200811021132.32023.rospolosco@...152...> References: <200811021132.32023.rospolosco@...152...> Message-ID: <200811021229.08157.gambas@...1...> On dimanche 02 novembre 2008, Stefano Palmeri wrote: > Hi, Benoit. > > Just downloaded the 2.9 and compiled. > > I tried to make an installation package > and get an error message "Unable to create desktop shortcut" > (see attached image). I close the warning box many times, before > I can make the package. > Same message (once) if I "Compile All". > > The strange thing is this happens only with this project. > So there must be something wrong > in my project or something new in Gambas. > > In the past I didn't get any error with this project source. > > I've attached the project so you can see what's wrong. > Just try to make an installation package and you could > see the bug. > > Gambas 2.9 > Slackware 12.1 > Qt: 3.3.8b > KDE: 3.5.9 > > Best regards, > > Stefano Palmeri Can you tell me: - The contents of the XDG_CONFIG_HOME environment variable, if it exists? - The contents of the XDG_CONFIG_DIRS environment variable, if it exists? - The contents of the /etc/xdg directory if it exists? -- Benoit Minisini From gambas at ...1938... Sun Nov 2 12:39:44 2008 From: gambas at ...1938... (gambas at ...1938...) Date: Sun, 2 Nov 2008 12:39:44 +0100 Subject: [Gambas-user] gambas3 and gb.ldap In-Reply-To: <200811021220.04420.gambas@...1...> References: <200811021101.02626.gambas@...1938...> <200811021220.04420.gambas@...1...> Message-ID: <200811021239.44975.gambas@...1938...> Am Sonntag, 2. November 2008 12:20:04 schrieb Benoit Minisini: > On dimanche 02 novembre 2008, gambas at ...1938... wrote: > > Hi List, > > > > I've compiled gambas3 from SVN and missing gb.ldap. > > configure never said, that this component would be disabled. > > Here is the ERROR-log of configure: > > > > configure: WARNING: Unable to find file: libintl.so > > configure: WARNING: Unable to find file: libiconv.so > > configure: WARNING: *** foreign function interface is disabled > > configure: WARNING: Unable to find file: libfbclient.so > > configure: WARNING: *** firebird driver is disabled > > configure: WARNING: Unable to find file: libqte-mt.so > > configure: WARNING: *** QT/Embedded component is disabled > > configure: WARNING: *** Gnome desktop routines is disabled > > > > No complaints about missing ldap-libs > > > > When I open a project and browse the online help, I even can't see no > > docs regarding gb.ldap. > > > > What I'm missing? > > > > TIA > > Stevie > > gb.ldap has been removed because it was not maintained and buggy. > > Regards, :-(((( Hmm....in gb.net.curl I found something about "ldapsearchfailed" and "ldapcannotbind". Is there a way to query my ldap-server using this class?? TIA Stevie From gambas at ...1... Sun Nov 2 12:44:24 2008 From: gambas at ...1... (Benoit Minisini) Date: Sun, 2 Nov 2008 13:44:24 +0200 Subject: [Gambas-user] gambas3 and gb.ldap In-Reply-To: <200811021239.44975.gambas@...1938...> References: <200811021101.02626.gambas@...1938...> <200811021220.04420.gambas@...1...> <200811021239.44975.gambas@...1938...> Message-ID: <200811021244.24387.gambas@...1...> On dimanche 02 novembre 2008, gambas at ...1938... wrote: > Am Sonntag, 2. November 2008 12:20:04 schrieb Benoit Minisini: > > On dimanche 02 novembre 2008, gambas at ...1938... wrote: > > > Hi List, > > > > > > I've compiled gambas3 from SVN and missing gb.ldap. > > > configure never said, that this component would be disabled. > > > Here is the ERROR-log of configure: > > > > > > configure: WARNING: Unable to find file: libintl.so > > > configure: WARNING: Unable to find file: libiconv.so > > > configure: WARNING: *** foreign function interface is disabled > > > configure: WARNING: Unable to find file: libfbclient.so > > > configure: WARNING: *** firebird driver is disabled > > > configure: WARNING: Unable to find file: libqte-mt.so > > > configure: WARNING: *** QT/Embedded component is disabled > > > configure: WARNING: *** Gnome desktop routines is disabled > > > > > > No complaints about missing ldap-libs > > > > > > When I open a project and browse the online help, I even can't see no > > > docs regarding gb.ldap. > > > > > > What I'm missing? > > > > > > TIA > > > Stevie > > > > gb.ldap has been removed because it was not maintained and buggy. > > > > Regards, > > > :-(((( > > Hmm....in gb.net.curl I found something about "ldapsearchfailed" > and "ldapcannotbind". Is there a way to query my ldap-server using this > class?? > > TIA > Stevie > If I remember, you can make ldap queries by using ldap command-line tools. Someone talked about that on the mailing-list: I suggest you search about that in user and developer mailing-list! Regards, -- Benoit Minisini From rospolosco at ...152... Sun Nov 2 12:45:55 2008 From: rospolosco at ...152... (Stefano Palmeri) Date: Sun, 2 Nov 2008 12:45:55 +0100 Subject: [Gambas-user] bug in 2.9 or something wrong in my project In-Reply-To: <200811021229.08157.gambas@...1...> References: <200811021132.32023.rospolosco@...152...> <200811021229.08157.gambas@...1...> Message-ID: <200811021245.55307.rospolosco@...152...> Il domenica 2 novembre 2008 12:29:08 Benoit Minisini ha scritto: > On dimanche 02 novembre 2008, Stefano Palmeri wrote: > > Hi, Benoit. > > > > Just downloaded the 2.9 and compiled. > > > > I tried to make an installation package > > and get an error message "Unable to create desktop shortcut" > > (see attached image). I close the warning box many times, before > > I can make the package. > > Same message (once) if I "Compile All". > > > > The strange thing is this happens only with this project. > > So there must be something wrong > > in my project or something new in Gambas. > > > > In the past I didn't get any error with this project source. > > > > I've attached the project so you can see what's wrong. > > Just try to make an installation package and you could > > see the bug. > > > > Gambas 2.9 > > Slackware 12.1 > > Qt: 3.3.8b > > KDE: 3.5.9 > > > > Best regards, > > > > Stefano Palmeri > > Can you tell me: > - The contents of the XDG_CONFIG_HOME environment variable, if it exists? > - The contents of the XDG_CONFIG_DIRS environment variable, if it exists? > - The contents of the /etc/xdg directory if it exists? stefano at ...1536...:~$ env | grep XDG XDG_CONFIG_DIRS=/etc/xdg:/etc/kde/xdg:/etc/xfce/xdg:/etc/kde/xdg:/etc/xfce/xdg In /etc/xdg there's a directory called autostart. In autostart there's only a printer desktop file (attached). Bye. -------------- next part -------------- A non-text attachment was scrubbed... Name: hplip-systray.desktop Type: application/x-desktop Size: 296 bytes Desc: not available URL: From gambas at ...1938... Sun Nov 2 12:54:03 2008 From: gambas at ...1938... (gambas at ...1938...) Date: Sun, 2 Nov 2008 12:54:03 +0100 Subject: [Gambas-user] gambas3 and gb.ldap In-Reply-To: <200811021244.24387.gambas@...1...> References: <200811021101.02626.gambas@...1938...> <200811021239.44975.gambas@...1938...> <200811021244.24387.gambas@...1...> Message-ID: <200811021254.03219.gambas@...1938...> Am Sonntag, 2. November 2008 12:44:24 schrieb Benoit Minisini: > On dimanche 02 novembre 2008, gambas at ...1938... wrote: > > Am Sonntag, 2. November 2008 12:20:04 schrieb Benoit Minisini: > > > On dimanche 02 novembre 2008, gambas at ...1938... wrote: > > > > Hi List, > > > > > > > > I've compiled gambas3 from SVN and missing gb.ldap. > > > > configure never said, that this component would be disabled. > > > > Here is the ERROR-log of configure: > > > > > > > > configure: WARNING: Unable to find file: libintl.so > > > > configure: WARNING: Unable to find file: libiconv.so > > > > configure: WARNING: *** foreign function interface is disabled > > > > configure: WARNING: Unable to find file: libfbclient.so > > > > configure: WARNING: *** firebird driver is disabled > > > > configure: WARNING: Unable to find file: libqte-mt.so > > > > configure: WARNING: *** QT/Embedded component is disabled > > > > configure: WARNING: *** Gnome desktop routines is disabled > > > > > > > > No complaints about missing ldap-libs > > > > > > > > When I open a project and browse the online help, I even can't see no > > > > docs regarding gb.ldap. > > > > > > > > What I'm missing? > > > > > > > > TIA > > > > Stevie > > > > > > gb.ldap has been removed because it was not maintained and buggy. > > > > > > Regards, > > > > > :-(((( > > > > Hmm....in gb.net.curl I found something about "ldapsearchfailed" > > and "ldapcannotbind". Is there a way to query my ldap-server using this > > class?? > > > > TIA > > Stevie > > If I remember, you can make ldap queries by using ldap command-line tools. > Someone talked about that on the mailing-list: I suggest you search about > that in user and developer mailing-list! > > Regards, Yes, that's right! I used them in my shellscripts lightyears ago. One last question: What's about the future of ldap-support in gambas? I guess LDAP is as important as db-support. Greetz Stevie From gambas at ...1... Sun Nov 2 13:17:46 2008 From: gambas at ...1... (Benoit Minisini) Date: Sun, 2 Nov 2008 14:17:46 +0200 Subject: [Gambas-user] gambas3 and gb.ldap In-Reply-To: <200811021254.03219.gambas@...1938...> References: <200811021101.02626.gambas@...1938...> <200811021244.24387.gambas@...1...> <200811021254.03219.gambas@...1938...> Message-ID: <200811021317.46635.gambas@...1...> On dimanche 02 novembre 2008, gambas at ...1938... wrote: > Am Sonntag, 2. November 2008 12:44:24 schrieb Benoit Minisini: > > On dimanche 02 novembre 2008, gambas at ...1938... wrote: > > > Am Sonntag, 2. November 2008 12:20:04 schrieb Benoit Minisini: > > > > On dimanche 02 novembre 2008, gambas at ...1938... wrote: > > > > > Hi List, > > > > > > > > > > I've compiled gambas3 from SVN and missing gb.ldap. > > > > > configure never said, that this component would be disabled. > > > > > Here is the ERROR-log of configure: > > > > > > > > > > configure: WARNING: Unable to find file: libintl.so > > > > > configure: WARNING: Unable to find file: libiconv.so > > > > > configure: WARNING: *** foreign function interface is disabled > > > > > configure: WARNING: Unable to find file: libfbclient.so > > > > > configure: WARNING: *** firebird driver is disabled > > > > > configure: WARNING: Unable to find file: libqte-mt.so > > > > > configure: WARNING: *** QT/Embedded component is disabled > > > > > configure: WARNING: *** Gnome desktop routines is disabled > > > > > > > > > > No complaints about missing ldap-libs > > > > > > > > > > When I open a project and browse the online help, I even can't see > > > > > no docs regarding gb.ldap. > > > > > > > > > > What I'm missing? > > > > > > > > > > TIA > > > > > Stevie > > > > > > > > gb.ldap has been removed because it was not maintained and buggy. > > > > > > > > Regards, > > > > > > > :-(((( > > > > > > Hmm....in gb.net.curl I found something about "ldapsearchfailed" > > > and "ldapcannotbind". Is there a way to query my ldap-server using this > > > class?? > > > > > > TIA > > > Stevie > > > > If I remember, you can make ldap queries by using ldap command-line > > tools. Someone talked about that on the mailing-list: I suggest you > > search about that in user and developer mailing-list! > > > > Regards, > > Yes, that's right! I used them in my shellscripts lightyears ago. > One last question: What's about the future of ldap-support in gambas? > I guess LDAP is as important as db-support. > > Greetz > Stevie > I won't do it, but if there is a volunteer... Otherwise, I don't know ldap very well, but it seems that the command-line tools are enough for querying and filling a ldap server. If you know these tools well, you can even write a ldap component in Gambas that use them. Regards, -- Benoit Minisini From gambas at ...1... Sun Nov 2 13:23:00 2008 From: gambas at ...1... (Benoit Minisini) Date: Sun, 2 Nov 2008 14:23:00 +0200 Subject: [Gambas-user] bug in 2.9 or something wrong in my project In-Reply-To: <200811021245.55307.rospolosco@...152...> References: <200811021132.32023.rospolosco@...152...> <200811021229.08157.gambas@...1...> <200811021245.55307.rospolosco@...152...> Message-ID: <200811021323.00411.gambas@...1...> On dimanche 02 novembre 2008, Stefano Palmeri wrote: > Il domenica 2 novembre 2008 12:29:08 Benoit Minisini ha scritto: > > On dimanche 02 novembre 2008, Stefano Palmeri wrote: > > > Hi, Benoit. > > > > > > Just downloaded the 2.9 and compiled. > > > > > > I tried to make an installation package > > > and get an error message "Unable to create desktop shortcut" > > > (see attached image). I close the warning box many times, before > > > I can make the package. > > > Same message (once) if I "Compile All". > > > > > > The strange thing is this happens only with this project. > > > So there must be something wrong > > > in my project or something new in Gambas. > > > > > > In the past I didn't get any error with this project source. > > > > > > I've attached the project so you can see what's wrong. > > > Just try to make an installation package and you could > > > see the bug. > > > > > > Gambas 2.9 > > > Slackware 12.1 > > > Qt: 3.3.8b > > > KDE: 3.5.9 > > > > > > Best regards, > > > > > > Stefano Palmeri > > > > Can you tell me: > > - The contents of the XDG_CONFIG_HOME environment variable, if it exists? > > - The contents of the XDG_CONFIG_DIRS environment variable, if it exists? > > - The contents of the /etc/xdg directory if it exists? > > stefano at ...1536...:~$ env | grep XDG > XDG_CONFIG_DIRS=/etc/xdg:/etc/kde/xdg:/etc/xfce/xdg:/etc/kde/xdg:/etc/xfce/ >xdg > > In /etc/xdg there's a directory called autostart. In autostart > there's only a printer desktop file (attached). > > Bye. Can you try the revision #1667? -- Benoit Minisini From gambas at ...1938... Sun Nov 2 13:29:24 2008 From: gambas at ...1938... (gambas at ...1938...) Date: Sun, 2 Nov 2008 13:29:24 +0100 Subject: [Gambas-user] gambas3 and gb.ldap In-Reply-To: <200811021317.46635.gambas@...1...> References: <200811021101.02626.gambas@...1938...> <200811021254.03219.gambas@...1938...> <200811021317.46635.gambas@...1...> Message-ID: <200811021329.24887.gambas@...1938...> Am Sonntag, 2. November 2008 13:17:46 schrieb Benoit Minisini: > > One last question: What's about the future of ldap-support in gambas? > > I guess LDAP is as important as db-support. > > > > Greetz > > Stevie > > I won't do it, but if there is a volunteer... > > Otherwise, I don't know ldap very well, but it seems that the command-line > tools are enough for querying and filling a ldap server. > > If you know these tools well, you can even write a ldap component in Gambas > that use them. > > Regards, In my current project, I will play around with the tools and I hope I will get familiar with it, again. ...perhaps I will try to write a component. ...what's up with a re-write of gb.ldap??? ...possible solution??? Greetz Stevie From gambas at ...1... Sun Nov 2 14:04:18 2008 From: gambas at ...1... (Benoit Minisini) Date: Sun, 2 Nov 2008 15:04:18 +0200 Subject: [Gambas-user] gambas3 and gb.ldap In-Reply-To: <20081102135919.57e17aef@...626...> References: <200811021101.02626.gambas@...1938...> <200811021244.24387.gambas@...1...> <20081102135919.57e17aef@...626...> Message-ID: <200811021404.18729.gambas@...1...> On dimanche 02 novembre 2008, David Paleino wrote: > On Sun, 2 Nov 2008 13:44:24 +0200, Benoit Minisini wrote: > > On dimanche 02 novembre 2008, gambas at ...1938... wrote: > > > Hmm....in gb.net.curl I found something about "ldapsearchfailed" > > > and "ldapcannotbind". Is there a way to query my ldap-server using this > > > class?? > > > > If I remember, you can make ldap queries by using ldap command-line > > tools. Someone > > That was me, I believe. > > > talked about that on the mailing-list: I suggest you search about that in > > user and developer mailing-list! > > I've attached the relevant file (oh, well, almost the only one of that old > project). > > Supposing Stevie can "build" a correct LDAP query (see, for example, the > buildLdapQuery() function in the code), the relevant code is in > btnSearch_Click(). > > I didn't check the docs, but I believe I'll start coding a new gb.ldap > component, sooner or later :) (i.e. it depends on how much that is > requested) > > Kindly, > David Apparently you attachment is broken... -- Benoit Minisini From d.paleino at ...626... Sun Nov 2 14:17:32 2008 From: d.paleino at ...626... (David Paleino) Date: Sun, 2 Nov 2008 14:17:32 +0100 Subject: [Gambas-user] gambas3 and gb.ldap References: <200811021101.02626.gambas@...1938...> <200811021244.24387.gambas@...1...> <20081102135919.57e17aef@...626...> <200811021404.18729.gambas@...1...> Message-ID: <20081102141732.12c3b7ad@...626...> On Sun, 2 Nov 2008 15:04:18 +0200, Benoit Minisini wrote: > On dimanche 02 novembre 2008, David Paleino wrote: > > > I've attached the relevant file (oh, well, almost the only one of that old > > project). > > Apparently you attachment is broken... Uhm, sorry for that. Online, then: http://www.hanskalabs.net/private/frmMain.class Kindly, David -- . ''`. Debian maintainer | http://wiki.debian.org/DavidPaleino : :' : Linuxer #334216 --|-- http://www.hanskalabs.net/ `. `'` GPG: 1392B174 ----|---- http://snipr.com/qa_page `- 2BAB C625 4E66 E7B8 450A C3E1 E6AA 9017 1392 B174 -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 197 bytes Desc: not available URL: From rospolosco at ...152... Sun Nov 2 15:58:31 2008 From: rospolosco at ...152... (Stefano Palmeri) Date: Sun, 2 Nov 2008 15:58:31 +0100 Subject: [Gambas-user] bug in 2.9 or something wrong in my project In-Reply-To: <200811021323.00411.gambas@...1...> References: <200811021132.32023.rospolosco@...152...> <200811021245.55307.rospolosco@...152...> <200811021323.00411.gambas@...1...> Message-ID: <200811021558.31553.rospolosco@...152...> Il domenica 2 novembre 2008 13:23:00 Benoit Minisini ha scritto: > On dimanche 02 novembre 2008, Stefano Palmeri wrote: > > Il domenica 2 novembre 2008 12:29:08 Benoit Minisini ha scritto: > > > On dimanche 02 novembre 2008, Stefano Palmeri wrote: > > > > Hi, Benoit. > > > > > > > > Just downloaded the 2.9 and compiled. > > > > > > > > I tried to make an installation package > > > > and get an error message "Unable to create desktop shortcut" > > > > (see attached image). I close the warning box many times, before > > > > I can make the package. > > > > Same message (once) if I "Compile All". > > > > > > > > The strange thing is this happens only with this project. > > > > So there must be something wrong > > > > in my project or something new in Gambas. > > > > > > > > In the past I didn't get any error with this project source. > > > > > > > > I've attached the project so you can see what's wrong. > > > > Just try to make an installation package and you could > > > > see the bug. > > > > > > > > Gambas 2.9 > > > > Slackware 12.1 > > > > Qt: 3.3.8b > > > > KDE: 3.5.9 > > > > > > > > Best regards, > > > > > > > > Stefano Palmeri > > > > > > Can you tell me: > > > - The contents of the XDG_CONFIG_HOME environment variable, if it > > > exists? - The contents of the XDG_CONFIG_DIRS environment variable, if > > > it exists? - The contents of the /etc/xdg directory if it exists? > > > > stefano at ...1536...:~$ env | grep XDG > > XDG_CONFIG_DIRS=/etc/xdg:/etc/kde/xdg:/etc/xfce/xdg:/etc/kde/xdg:/etc/xfc > >e/ xdg > > > > In /etc/xdg there's a directory called autostart. In autostart > > there's only a printer desktop file (attached). > > > > Bye. > > Can you try the revision #1667? Tried rev. 1668. It works fine, no more errors. Thanks. Bye, Stefano From epileg at ...626... Sun Nov 2 16:45:07 2008 From: epileg at ...626... (=?UTF-8?B?RXDDrWxlZw==?=) Date: Sun, 02 Nov 2008 16:45:07 +0100 Subject: [Gambas-user] problem compiling trunk rev. 1668 Message-ID: <490DCB03.1040008@...626...> Hello, I have a problem compiling the gambas3 subversion 1668 in my Ubuntu 8.04 (Hardy Heron) Making all in opengl make[5]: Entering directory `/home/epileg/Escriptori/prova/gb.qt/src/opengl' /bin/bash ../../libtool --tag=CXX --mode=link g++ -pipe -Wall -fno-exceptions -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os -fno-omit-frame-pointer -module -O1 -z defs -L/usr/X11R6/lib @QTOPENGL_LDFLAGS@ -o gb.qt.opengl.la -rpath /usr/local/lib/gambas3 main.lo CGLarea_moc.lo CGLarea.lo -lqt-mt -laudio -lXt -ljpeg -lpng -lz -lXi -lXrender -lXrandr -lXcursor -lXinerama -lXft -lfreetype -lfontconfig -lXext -lX11 -lm -lSM -lICE -ldl -lpthread -lGL -lGLU g++ -shared -nostdlib /usr/lib/gcc/i486-linux-gnu/4.2.4/../../../../lib/crti.o /usr/lib/gcc/i486-linux-gnu/4.2.4/crtbeginS.o .libs/main.o .libs/CGLarea_moc.o .libs/CGLarea.o -L/usr/X11R6/lib /usr/lib/libqt-mt.so -laudio -lXt /usr/lib/libjpeg.so -lpng -lz -lXi -lXrender -lXrandr -lXcursor -lXinerama -lXft /usr/lib/libfreetype.so -lfontconfig -lXext -lX11 -lSM -lICE -ldl -lpthread -lGL -lGLU -L/usr/lib/gcc/i486-linux-gnu/4.2.4 -L/usr/lib/gcc/i486-linux-gnu/4.2.4/../../../../lib -L/lib/../lib -L/usr/lib/../lib -L/usr/lib/gcc/i486-linux-gnu/4.2.4/../../.. -lstdc++ -lm -lc -lgcc_s /usr/lib/gcc/i486-linux-gnu/4.2.4/crtendS.o /usr/lib/gcc/i486-linux-gnu/4.2.4/../../../../lib/crtn.o @QTOPENGL_LDFLAGS@ -Wl,-soname -Wl,gb.qt.opengl.so.0 -o .libs/gb.qt.opengl.so.0.0.0 g++: @QTOPENGL_LDFLAGS@: No such file or directory make[5]: *** [gb.qt.opengl.la] Error 1 make[5]: Leaving directory `/home/epileg/Escriptori/prova/gb.qt/src/opengl' make[4]: *** [all-recursive] Error 1 make[4]: Leaving directory `/home/epileg/Escriptori/prova/gb.qt/src' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/home/epileg/Escriptori/prova/gb.qt' make[2]: *** [all] Error 2 make[2]: Leaving directory `/home/epileg/Escriptori/prova/gb.qt' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/epileg/Escriptori/prova' make: *** [all] Error 2 epileg at ...1008...:~/Escriptori/prova$ Best regards, Ep?leg. From eilert-sprachen at ...221... Mon Nov 3 08:36:03 2008 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Mon, 03 Nov 2008 08:36:03 +0100 Subject: [Gambas-user] Word Wrap in GridView or TableView In-Reply-To: <200811021221.53885.gambas@...1...> References: <490AB8DD.5080803@...221...> <200811021221.53885.gambas@...1...> Message-ID: <490EA9E3.2070006@...221...> Benoit Minisini schrieb: > On vendredi 31 octobre 2008, Rolf-Werner Eilert wrote: >> Hi, >> >> The Re. says it all: Is there an automatic word-wrapping (line wrap) in >> GridView or TableView? >> >> Or could this be done by code (inserting LF for instance)? If so, the >> line height for that cell should be increased properly, could one find >> the necessary data, and does this work? >> >> Thanks for your hints! >> >> Rolf >> > > It should be possible to add a WordWrap property in Gambas 3. I note that in > my TODO file. > > Regards, > Oh yeah, that would be really great, thanks a lot! Rolf From david_villalobos_c at ...43... Mon Nov 3 13:46:08 2008 From: david_villalobos_c at ...43... (David Villalobos Cambronero) Date: Mon, 3 Nov 2008 04:46:08 -0800 (PST) Subject: [Gambas-user] Error in Process managment Message-ID: <25596.37929.qm@...1657...> Hi Benoit, The code attached in the example used to work (Gambas 3 SVN 1652), but now it doesn't, you made some changes in the Process behavoir, do I have to change something or I'm doing something wrong? Best regards -- David -------------- next part -------------- A non-text attachment was scrubbed... Name: Process.Error-0.0.1.tar.gz Type: x-unknown/octet-stream Size: 7748 bytes Desc: not available URL: From sbungay at ...981... Mon Nov 3 18:16:25 2008 From: sbungay at ...981... (Stephen Bungay) Date: Mon, 03 Nov 2008 12:16:25 -0500 Subject: [Gambas-user] Instantiating forms and then referencing them... Message-ID: <490F31E9.3070103@...981...> Consider the following procedure from Form_Main Private Sub InitializeControls() Dim hFormX As FormX Dim hFormY As FormY TabStrip1.Index = 0 hFormX = New FormX(TabStrip1) As "X_Form" TabStrip1.Index = 1 hFormY = New FormY(TabStrip1) As "Y_Form" TabStrip1.Index = 0 End If I then try to reference X_Form or Y_Form (to access a property or method) by using the name "X-Form" or "Y_Form" (from within Form_Main), I get an "Unknown identifier "X_Form". Question: How do I reference properties or methods inside the instantiated forms? From sbungay at ...981... Mon Nov 3 22:19:31 2008 From: sbungay at ...981... (Stephen Bungay) Date: Mon, 03 Nov 2008 16:19:31 -0500 Subject: [Gambas-user] Instantiating forms and then referencing them... In-Reply-To: <490F31E9.3070103@...981...> References: <490F31E9.3070103@...981...> Message-ID: <490F6AE3.3020708@...981...> Replying to self... never mind... I've got it... Stephen Bungay wrote: > Consider the following procedure from Form_Main > > Private Sub InitializeControls() > Dim hFormX As FormX > Dim hFormY As FormY > > TabStrip1.Index = 0 > hFormX = New FormX(TabStrip1) As "X_Form" > > TabStrip1.Index = 1 > hFormY = New FormY(TabStrip1) As "Y_Form" > > > TabStrip1.Index = 0 > End > > If I then try to reference X_Form or Y_Form (to access a property or > method) by using the name "X-Form" or "Y_Form" (from within Form_Main), > I get an "Unknown identifier "X_Form". > Question: How do I reference properties or methods inside the > instantiated forms? > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Tue Nov 4 06:06:21 2008 From: gambas at ...1... (Benoit Minisini) Date: Tue, 4 Nov 2008 06:06:21 +0100 Subject: [Gambas-user] Error in Process managment In-Reply-To: <25596.37929.qm@...1657...> References: <25596.37929.qm@...1657...> Message-ID: <200811040606.21357.gambas@...1...> On lundi 3 novembre 2008, David Villalobos Cambronero wrote: > Hi Benoit, > > The code attached in the example used to work (Gambas 3 SVN 1652), but now > it doesn't, you made some changes in the Process behavoir, do I have to > change something or I'm doing something wrong? > > Best regards > > > -- > David Now SHELL and EXEC do not raise events explicitely. You must use the "AS" keyword. I did that because now you can run a process, and read its output reliably without having to use the Read event. But if you want to catch the standard error, using events is mandatory. Regards, -- Benoit Minisini From jara.svec at ...2006... Tue Nov 4 09:00:22 2008 From: jara.svec at ...2006... (Jaroslav Svec) Date: Tue, 04 Nov 2008 09:00:22 +0100 Subject: [Gambas-user] tableview catch event in edit mode Message-ID: <49100116.50901@...2006...> 1) Is there possibility to catch Key.Code of tableview in edit mode? It works for me only outside edit mode (using tableview_keypress). 2) If I use tableview.cancel() inside tableview_change() it does nothing. 3) If I use tableview.cancel() inside tableview_save() the form which owns tableview crashes. Tableview.cancel() should stop editing cell and return to browse mode. Is it right? How can I use tableview.cancel()? Thanks Jarda -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/x-pkcs7-signature Size: 3258 bytes Desc: S/MIME Cryptographic Signature URL: From wspinto at ...1405... Tue Nov 4 12:00:12 2008 From: wspinto at ...1405... (Wellington de Souza Pinto) Date: Tue, 04 Nov 2008 09:00:12 -0200 Subject: [Gambas-user] skiptaskbar question??????? Message-ID: <1225796412.49102b3c9f786@...1433...> Hi! in gambas2.9 svn I create one form without border, skiptaskbar = true, mask = true with transparent background image and one textbox control with setfocus in textbox. when i run the program the form is not focus and not textbox too. I need click in form to show the focus of textbox. If i change the skiptaskbar = false the program work fine. I need in my program one form with skiptaskbar = true, no border, transparent background via mask = true. Is my login form. Any ideia? --------------------------------------------------------------- |||||/ Wellington de Souza Pinto C o o ] wspinto at ...1405... ^ -x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x- ___________________________________________________________________________________ Para fazer uma liga??o DDD pra perto ou pra longe, faz um 21. A Embratel tem tarifas muito baratas esperando por voc?. Aproveite! From gareth at ...1689... Tue Nov 4 11:48:32 2008 From: gareth at ...1689... (Gareth Bult) Date: Tue, 4 Nov 2008 10:48:32 +0000 (GMT) Subject: [Gambas-user] Problem with READ on a UDP socket In-Reply-To: <3942225.56581225795408860.JavaMail.root@...1834...> Message-ID: <32405454.56691225795712821.JavaMail.root@...1834...> Hi, I think I reported this quite a while ago but it still seems to be a problem ... using READ to try to acquire less than the entire available buffer doesn't seem to work .. and if I read the entire buffer, there's no obvious way to break the packet down into it's constituent parts ... Anyone any ideas? (and anyone any idea where the other 24 bytes are going ??) PRIVATE $udp AS UdpSocket PUBLIC SUB _new() $udp = NEW UdpSocket AS "Socket" $udp.Bind(2000) END PUBLIC SUB Socket_Read() DIM cmd AS Byte DIM siz AS Long PRINT Lof($udp) READ #$udp, cmd, 1 PRINT Lof($udp) 'READ #$udp, siz, 8 <= generates error if uncommented END $shell> echo "R00000011Hello World 123" |nc -u localhost 2000 25 0 <=== "should be 24!" -- Managing Director, Encryptec Limited Tel: 0845 5082719, Mob: 0785 3305393 Email: gareth at ...1689... Statements made are at all times subject to Encryptec's Terms and Conditions of Business, which are available upon request. From gareth at ...1689... Tue Nov 4 13:09:14 2008 From: gareth at ...1689... (Gareth Bult) Date: Tue, 4 Nov 2008 12:09:14 +0000 (GMT) Subject: [Gambas-user] Multiple instances of Gambas ... Message-ID: <29841944.57421225800554645.JavaMail.root@...1834...> Hi, I used to be able to run multiple instances of Gambas which was really handy for multiple component projects, however when I run a second instance now it dumps out immediately with the trace listed below. I've tried this on the standard Ubuntu 8.10 distro, and on the stable 2.9 compiled from source, same results. Any ideas? $ /usr/bin/gambas2 *** glibc detected *** /usr/bin/gambas2: double free or corruption (out): 0x09526138 *** ======= Backtrace: ========= /lib/tls/i686/cmov/libc.so.6[0xb76f53f4] /lib/tls/i686/cmov/libc.so.6(cfree+0x96)[0xb76f7456] /usr/lib/libstdc++.so.6(_ZdlPv+0x21)[0xb7372031] /usr/lib/libqt-mt.so.3(_ZN6QGList6removeEPv+0x61)[0xb7d8cfc1] /usr/lib/libqt-mt.so.3(_ZN12QApplication16sendPostedEventsEP7QObjecti+0x26b)[0xb7a537bb] /usr/lib/libqt-mt.so.3(_ZN7QWidget4showEv+0x3b4)[0xb7aefc94] /usr/lib/libqt-mt.so.3(_ZN11QMainWindow4showEv+0x35)[0xb7bb0d45] /usr/lib/gambas2/gb.qt.so[0xb6fc9cf3] /usr/lib/gambas2/gb.qt.so[0xb6fc9d97] /usr/bin/gambas2[0x804e738] /usr/bin/gambas2[0x804efe9] /usr/bin/gambas2[0x805144d] /usr/bin/gambas2[0x804f327] /usr/bin/gambas2[0x804f5fd] /usr/bin/gambas2[0x80629ac] /lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xe5)[0xb769c685] /usr/bin/gambas2[0x804ae11] ======= Memory map: ======== 08048000-08071000 r-xp 00000000 fe:07 552037 /usr/bin/gbx2 08071000-08072000 r--p 00028000 fe:07 552037 /usr/bin/gbx2 08072000-08077000 rw-p 00029000 fe:07 552037 /usr/bin/gbx2 08077000-08079000 rw-p 08077000 00:00 0 09249000-0959e000 rw-p 09249000 00:00 0 [heap] b6900000-b6921000 rw-p b6900000 00:00 0 b6921000-b6a00000 ---p b6921000 00:00 0 b6a3c000-b6ac5000 r--p 00000000 fe:07 681877 /usr/share/fonts/truetype/ttf-dejavu/DejaVuSans-Bold.ttf b6ac5000-b6ae9000 r-xp 00000000 fe:07 764489 /usr/lib/qt3/plugins/inputmethods/libqsimple.so b6ae9000-b6aea000 rw-p 00024000 fe:07 764489 /usr/lib/qt3/plugins/inputmethods/libqsimple.so b6aea000-b6aee000 r-xp 00000000 fe:07 764488 /usr/lib/qt3/plugins/inputmethods/libqimsw-none.so b6aee000-b6aef000 rw-p 00003000 fe:07 764488 /usr/lib/qt3/plugins/inputmethods/libqimsw-none.so b6aef000-b6b17000 r-xp 00000000 fe:07 552161 /usr/lib/libkdefx.so.4.2.0 b6b17000-b6b18000 ---p 00028000 fe:07 552161 /usr/lib/libkdefx.so.4.2.0 b6b18000-b6b19000 r--p 00028000 fe:07 552161 /usr/lib/libkdefx.so.4.2.0 b6b19000-b6b1a000 rw-p 00029000 fe:07 552161 /usr/lib/libkdefx.so.4.2.0 b6b1a000-b6b38000 r-xp 00000000 fe:07 1025825 /usr/lib/kde3/plugins/styles/plastik.so b6b38000-b6b39000 r--p 0001d000 fe:07 1025825 /usr/lib/kde3/plugins/styles/plastik.so b6b39000-b6b3a000 rw-p 0001e000 fe:07 1025825 /usr/lib/kde3/plugins/styles/plastik.so b6b3a000-b6b69000 r-xp 00000000 fe:07 551035 /usr/lib/liblcms.so.1.0.16 b6b69000-b6b6a000 r--p 0002e000 fe:07 551035 /usr/lib/liblcms.so.1.0.16 b6b6a000-b6b6b000 rw-p 0002f000 fe:07 551035 /usr/lib/liblcms.so.1.0.16 b6b6b000-b6b6e000 rw-p b6b6b000 00:00 0 b6b6e000-b6bd9000 r-xp 00000000 fe:07 551068 /usr/lib/libmng.so.1.1.0.9 b6bd9000-b6bdc000 rw-p 0006a000 fe:07 551068 /usr/lib/libmng.so.1.1.0.9 b6bdd000-b6be8000 r-xp 00000000 fe:07 764490 /usr/lib/qt3/plugins/inputmethods/libqxim.so b6be8000-b6be9000 rw-p 0000a000 fe:07 764490 /usr/lib/qt3/plugins/inputmethods/libqxim.so b6be9000-b6bf2000 r-xp 00000000 fe:07 764487 /usr/lib/qt3/plugins/inputmethods/libqimsw-multi.so b6bf2000-b6bf3000 rw-p 00008000 fe:07 764487 /usr/lib/qt3/plugins/inputmethods/libqimsw-multi.so b6bf3000-b6bf4000 r--p 00000000 fe:07 815046 /usr/share/locale-langpack/en_GB/LC_MESSAGES/libc.mo b6bf4000-b6bf8000 r-xp 00000000 fe:07 764485 /usr/lib/qt3/plugins/imageformats/libqmng.so b6bf8000-b6bf9000 rw-p 00003000 fe:07 764485 /usr/lib/qt3/plugins/imageformats/libqmng.so b6bf9000-b6c8e000 r--p 00000000 fe:07 681878 /usr/share/fonts/truetype/ttf-dejavu/DejaVuSans.ttf b6c8e000-b6c94000 r--s 00000000 fe:07 17507 /var/cache/fontconfig/945677eb7aeaf62f1d50efc3fb3ec7d8-x86.cache-2 b6c94000-b6c95000 r--s 00000000 fe:07 17511 /var/cache/fontconfig/99e8ed0e538f840c565b6ed5dad60d56-x86.cache-2 b6c95000-b6c98000 r--s 00000000 fe:07 17508 /var/cache/fontconfig/e383d7ea5fbe662a33d9b44caf393297-x86.cache-2 b6c98000-b6c99000 r--s 00000000 fe:07 17504 /var/cache/fontconfig/fd9505950c048a77dc4b710eb6a628ed-x86.cache-2 b6c99000-b6c9a000 r--s 00000000 fe:07 17501 /var/cache/fontconfig/a2ab74764b07279e7c36ddb1d302cf26-x86.cache-2 b6c9a000-b6c9b000 r--s 00000000 fe:07 17484 /var/cache/fontconfig/4c73fe0c47614734b17d736dbde7580a-x86.cache-2 b6c9b000-b6c9d000 r--s 00000000 fe:07 17483 /var/cache/fontconfig/646addb8444faa74ee138aa00ab0b6a0-x86.cache-2 b6c9d000-b6ca0000 r--s 00000000 fe:07 17482 /var/cache/fontconfig/a755afe4a08bf5b97852ceb7400b47bc-x86.cache-2 b6ca0000-b6ca7000 r--s 00000000 fe:07 17481 /var/cache/fontconfig/6d41288fd70b0be22e8c3a91e032eec0-x86.cache-2 b6ca7000-b6caa000 r--s 00000000 fe:07 17480 /var/cache/fontconfig/de156ccd2eddbdc19d37a45b8b2aac9c-x86.cache-2 b6caa000-b6cac000 r--s 00000000 fe:07 17479 /var/cache/fontconfig/da1bd5ca8443ffe22927a23ce431d198-x86.cache-2 b6cac000-b6cb4000 r--s 00000000 fe:07 17478 /var/cache/fontconfig/e3de0de479f42330eadf588a55fb5bf4-x86.cache-2 b6cb4000-b6cbf000 r--s 00000000 fe:07 17477 /var/cache/fontconfig/0f34bcd4b6ee430af32735b75db7f02b-x86.cache-2 b6cbf000-b6cc0000 r--s 00000000 fe:07 17476 /var/cache/fontconfig/4794a0821666d79190d59a36cb4f44b5-x86.cache-2 b6cc0000-b6ce2000 r--s 00000000 fe:07 17475 /var/cache/fontconfig/365b55f210c0a22e9a19e35191240f32-x86.cache-2 b6ce2000-b6ce4000 r--s 00000000 fe:07 17474 /var/cache/fontconfig/2c5ba8142dffc8bf0377700342b8ca1a-x86.cache-2 b6ce4000-b6ce7000 r--s 00000000 fe:07 17473 /var/cache/fontconfig/de9486f0b47a4d768a594cb4198cb1c6-x86.cache-2 b6ce7000-b6cee000 r--s 00000000 fe:07 17471 /var/cache/fontconfig/d52a8644073d54c13679302ca1180695-x86.cache-2 b6cee000-b6cf4000 r--s 00000000 fe:07 16445 /var/cache/fontconfig/089dead882dea3570ffc31a9898cfb69-x86.cache-2 b6cf4000-b6cfb000 r--s 00000000 fe:07 16458 /var/cache/fontconfig/e13b20fdb08344e0e664864cc2ede53d-x86.cache-2 b6cfb000-b6d3a000 r--p 00000000 fe:07 582547 /usr/lib/locale/en_GB.utf8/LC_CTYPE b6d3a000-b6d3b000 r--p 00000000 fe:07 582552 /usr/lib/locale/en_GB.utf8/LC_NUMERIC b6d3b000-b6d3c000 r--p 00000000 fe:07 582127 /usr/lib/locale/en_GB.utf8/LC_TIME b6d3c000-b6e1d000 r--p 00000000 fe:07 582546 /usr/lib/locale/en_GB.utf8/LC_COLLATE b6e1d000-b6e1e000 r--p 00000000 fe:07 582128 /usr/lib/locale/en_GB.utf8/LC_MONETARY b6e1e000-b6e1f000 r--p 00000000 fe:07 589830 /usr/lib/locale/en_GB.utf8/LC_MESSAGES/SYS_LC_MESSAGES b6e1f000-b6e20000 r--p 00000000 fe:07 582519 /usr/lib/locale/en_GB.utf8/LC_PAPER b6e20000-b6e21000 r--p 00000000 fe:07 582551 /usr/lib/locale/en_GB.utf8/LC_NAME b6e21000-b6e22000 r--p 00000000 fe:07 582129 /usr/lib/locale/en_GB.utf8/LC_ADDRESS b6e22000-b6e23000 r--p 00000000 fe:07 582130 /usr/lib/locale/en_GB.utf8/LC_TELEPHONE b6e23000-b6e24000 r--p 00000000 fe:07 582515 /usr/lib/locale/en_GB.utf8/LC_MEASUREMENT b6e24000-b6e2b000 r--s 00000000 fe:07 1933555 /usr/lib/gconv/gconv-modules.cache b6e2b000-b6e43000 r-xp 00000000 fe:07 731557 /usr/lib/gambas2/gb.qt.ext.so.0.0.0 b6e43000-b6e44000 r--p 00018000 fe:07 731557 /usr/lib/gambas2/gb.qt.ext.so.0.0.0 b6e44000-b6e46000 rw-p 00019000 fe:07 731557 /usr/lib/gambas2/gb.qt.ext.so.0.0.0 b6e46000-b6e47000 rw-p b6e46000 00:00 0 b6e47000-b6e70000 r--p 00000000 fe:07 731583 /usr/lib/gambas2/gb.desktop.gambas b6e70000-b6e74000 r-xp 00000000 fe:07 550484 /usr/lib/libXtst.so.6.1.0 b6e74000-b6e75000 rw-p 00003000 fe:07 550484 /usr/lib/libXtst.so.6.1.0 b6e75000-b6e78000 r--p 00000000 fe:07 731525 /usr/lib/gambas2/gb.settings.gambas b6e78000-b6e81000 r--p 00000000 fe:07 731590 /usr/lib/gambas2/gb.form.mdi.gambas b6e81000-b6e89000 r-xp 00000000 fe:07 731500 /usr/lib/gambas2/gb.eval.so.0.0.0 b6e89000-b6e8a000 r--p 00007000 fe:07 731500 /usr/lib/gambas2/gb.eval.so.0.0.0 b6e8a000-b6e8c000 rw-p 00008000 fe:07 731500 /usr/lib/gambas2/gb.eval.so.0.0.0 b6e8c000-b6e8d000 rw-p b6e8c000 00:00 0 b6e8d000-b6f8b000 r--p 00000000 fe:07 731527 /usr/lib/gambas2/gb.form.gambas b6f8b000-b700f000 r-xp 00000000 fe:07 731510 /usr/lib/gambas2/gb.qt.so.0.0.0 b700f000-b7015000 r--p 00083000 fe:07 731510 /usr/lib/gambas2/gb.qt.so.0.0.0 b7015000-b7021000 rw-p 00089000 fe:07 731510 /usr/lib/gambas2/gb.qt.so.0.0.0 b7021000-b721d000 r--p 00000000 fe:07 552254 /usr/bin/gambas2.gambas b721d000-b7227000 r-xp 00000000 fe:07 1246220 /lib/tls/i686/cmov/libnss_files-2.8.90.so b7227000-b7228000 r--p 00009000 fe:07 1246220 /lib/tls/i686/cmov/libnss_files-2.8.90.so b7228000-b7229000 rw-p 0000a000 fe:07 1246220 /lib/tls/i686/cmov/libnss_files-2.8.90.so b7229000-b7232000 r-xp 00000000 fe:07 1246224 /lib/tls/i686/cmov/libnss_nis-2.8.90.so b7232000-b7233000 r--p 00008000 fe:07 1246224 /lib/tls/i686/cmov/libnss_nis-2.8.90.so b7233000-b7234000 rw-p 00009000 fe:07 1246224 /lib/tls/i686/cmov/libnss_nis-2.8.90.so b7234000-b7249000 r-xp 00000000 fe:07 1246214 /lib/tls/i686/cmov/libnsl-2.8.90.so b7249000-b724a000 r--p 00014000 fe:07 1246214 /lib/tls/i686/cmov/libnsl-2.8.90.so b724a000-b724b000 rw-p 00015000 Aborted -- Managing Director, Encryptec Limited Tel: 0845 5082719, Mob: 0785 3305393 Email: gareth at ...1689... Statements made are at all times subject to Encryptec's Terms and Conditions of Business, which are available upon request. From gambas at ...1... Tue Nov 4 13:45:40 2008 From: gambas at ...1... (Benoit Minisini) Date: Tue, 4 Nov 2008 13:45:40 +0100 Subject: [Gambas-user] Problem with READ on a UDP socket In-Reply-To: <32405454.56691225795712821.JavaMail.root@...1834...> References: <32405454.56691225795712821.JavaMail.root@...1834...> Message-ID: <200811041345.40486.gambas@...1...> On mardi 4 novembre 2008, Gareth Bult wrote: > Hi, > > I think I reported this quite a while ago but it still seems to be a > problem ... using READ to try to acquire less than the entire available > buffer doesn't seem to work .. and if I read the entire buffer, there's no > obvious way to break the packet down into it's constituent parts ... > > Anyone any ideas? > (and anyone any idea where the other 24 bytes are going ??) > > PRIVATE $udp AS UdpSocket > > PUBLIC SUB _new() > > $udp = NEW UdpSocket AS "Socket" > $udp.Bind(2000) > > END > > PUBLIC SUB Socket_Read() > > DIM cmd AS Byte > DIM siz AS Long > > PRINT Lof($udp) > READ #$udp, cmd, 1 > PRINT Lof($udp) > 'READ #$udp, siz, 8 <= generates error if uncommented > > END > > $shell> echo "R00000011Hello World 123" |nc -u localhost 2000 > > 25 > 0 <=== "should be 24!" Can you try your code with Gambas 3? I have changed many things in the gb.net component there, but I didn't backported them to Gambas 2. If it fixes your problem, I will do! Regards, -- Benoit Minisini From gambas at ...1... Tue Nov 4 13:47:24 2008 From: gambas at ...1... (Benoit Minisini) Date: Tue, 4 Nov 2008 13:47:24 +0100 Subject: [Gambas-user] Multiple instances of Gambas ... In-Reply-To: <29841944.57421225800554645.JavaMail.root@...1834...> References: <29841944.57421225800554645.JavaMail.root@...1834...> Message-ID: <200811041347.24849.gambas@...1...> On mardi 4 novembre 2008, Gareth Bult wrote: > Hi, > > I used to be able to run multiple instances of Gambas which was really > handy for multiple component projects, however when I run a second instance > now it dumps out immediately with the trace listed below. I've tried this > on the standard Ubuntu 8.10 distro, and on the stable 2.9 compiled from > source, same results. Any ideas? > I don't have this problem there (Mandriva 2009.0). Can you provide a true backtrace of the crash, with debugging information enabled? -- Benoit Minisini From gambas at ...1... Tue Nov 4 13:48:30 2008 From: gambas at ...1... (Benoit Minisini) Date: Tue, 4 Nov 2008 13:48:30 +0100 Subject: [Gambas-user] skiptaskbar question??????? In-Reply-To: <1225796412.49102b3c9f786@...1433...> References: <1225796412.49102b3c9f786@...1433...> Message-ID: <200811041348.30937.gambas@...1...> On mardi 4 novembre 2008, Wellington de Souza Pinto wrote: > Hi! > > in gambas2.9 svn > > I create one form without border, skiptaskbar = true, mask = true with > transparent background image and one textbox control with setfocus in > textbox. > > when i run the program the form is not focus and not textbox too. I need > click in form to show the focus of textbox. > > If i change the skiptaskbar = false the program work fine. > > I need in my program one form with skiptaskbar = true, no border, > transparent background via mask = true. Is my login form. > > Any ideia? > Can you send me your form in a small project (with the picture mask, and everything needed to display it)? -- Benoit Minisini From gambas at ...1... Tue Nov 4 14:18:10 2008 From: gambas at ...1... (Benoit Minisini) Date: Tue, 4 Nov 2008 14:18:10 +0100 Subject: [Gambas-user] Problem with READ on a UDP socket In-Reply-To: <200811041345.40486.gambas@...1...> References: <32405454.56691225795712821.JavaMail.root@...1834...> <200811041345.40486.gambas@...1...> Message-ID: <200811041418.10662.gambas@...1...> On mardi 4 novembre 2008, Benoit Minisini wrote: > On mardi 4 novembre 2008, Gareth Bult wrote: > > Hi, > > > > I think I reported this quite a while ago but it still seems to be a > > problem ... using READ to try to acquire less than the entire available > > buffer doesn't seem to work .. and if I read the entire buffer, there's > > no obvious way to break the packet down into it's constituent parts ... > > > > Anyone any ideas? > > (and anyone any idea where the other 24 bytes are going ??) > > > > PRIVATE $udp AS UdpSocket > > > > PUBLIC SUB _new() > > > > $udp = NEW UdpSocket AS "Socket" > > $udp.Bind(2000) > > > > END > > > > PUBLIC SUB Socket_Read() > > > > DIM cmd AS Byte > > DIM siz AS Long > > > > PRINT Lof($udp) > > READ #$udp, cmd, 1 > > PRINT Lof($udp) > > 'READ #$udp, siz, 8 <= generates error if uncommented > > > > END > > > > $shell> echo "R00000011Hello World 123" |nc -u localhost 2000 > > > > 25 > > 0 <=== "should be 24!" > > Can you try your code with Gambas 3? > > I have changed many things in the gb.net component there, but I didn't > backported them to Gambas 2. If it fixes your problem, I will do! > > Regards, I tested your little code, and I confirm that any read entirely voids the internal socket buffer. I will investigate... -- Benoit Minisini From gambas at ...1... Tue Nov 4 15:35:21 2008 From: gambas at ...1... (Benoit Minisini) Date: Tue, 4 Nov 2008 15:35:21 +0100 Subject: [Gambas-user] Problem with READ on a UDP socket In-Reply-To: <32405454.56691225795712821.JavaMail.root@...1834...> References: <32405454.56691225795712821.JavaMail.root@...1834...> Message-ID: <200811041535.21630.gambas@...1...> On mardi 4 novembre 2008, Gareth Bult wrote: > Hi, > > I think I reported this quite a while ago but it still seems to be a > problem ... using READ to try to acquire less than the entire available > buffer doesn't seem to work .. and if I read the entire buffer, there's no > obvious way to break the packet down into it's constituent parts ... > > Anyone any ideas? > (and anyone any idea where the other 24 bytes are going ??) > > PRIVATE $udp AS UdpSocket > > PUBLIC SUB _new() > > $udp = NEW UdpSocket AS "Socket" > $udp.Bind(2000) > > END > > PUBLIC SUB Socket_Read() > > DIM cmd AS Byte > DIM siz AS Long > > PRINT Lof($udp) > READ #$udp, cmd, 1 > PRINT Lof($udp) > 'READ #$udp, siz, 8 <= generates error if uncommented > > END > > $shell> echo "R00000011Hello World 123" |nc -u localhost 2000 > > 25 > 0 <=== "should be 24!" After having investigated, it seems that this is a property of the UDP sockets. According to the manual page, when you read a message from a socket, "If a message is too long to fit in the supplied buffer, excess bytes may be discarded depending on the type of socket the message is received from". You should not have this behaviour if you use a TCP socket. But note that Gambas could be more user-friendly by maintaining an internal message buffer for UDP sockets, so that successive READs in the same event handler work as you expected. I will think about that. Regards, -- Benoit Minisini From wdahn at ...1000... Tue Nov 4 16:03:59 2008 From: wdahn at ...1000... (Werner) Date: Tue, 04 Nov 2008 23:03:59 +0800 Subject: [Gambas-user] Problem with READ on a UDP socket In-Reply-To: <200811041535.21630.gambas@...1...> References: <32405454.56691225795712821.JavaMail.root@...1834...> <200811041535.21630.gambas@...1...> Message-ID: <4910645F.1040605@...1000...> Benoit Minisini wrote: > On mardi 4 novembre 2008, Gareth Bult wrote: > >> Hi, >> >> I think I reported this quite a while ago but it still seems to be a >> problem ... using READ to try to acquire less than the entire available >> buffer doesn't seem to work .. and if I read the entire buffer, there's no >> obvious way to break the packet down into it's constituent parts ... >> >> Anyone any ideas? >> (and anyone any idea where the other 24 bytes are going ??) >> >> PRIVATE $udp AS UdpSocket >> >> PUBLIC SUB _new() >> >> $udp = NEW UdpSocket AS "Socket" >> $udp.Bind(2000) >> >> END >> >> PUBLIC SUB Socket_Read() >> >> DIM cmd AS Byte >> DIM siz AS Long >> >> PRINT Lof($udp) >> READ #$udp, cmd, 1 >> PRINT Lof($udp) >> 'READ #$udp, siz, 8 <= generates error if uncommented >> >> END >> >> $shell> echo "R00000011Hello World 123" |nc -u localhost 2000 >> >> 25 >> 0 <=== "should be 24!" >> > > After having investigated, it seems that this is a property of the UDP > sockets. > > According to the manual page, when you read a message from a socket, "If a > message is too long to fit in the supplied buffer, excess bytes may be > discarded depending on the type of socket the message is received from". > > You should not have this behaviour if you use a TCP socket. > > But note that Gambas could be more user-friendly by maintaining an internal > message buffer for UDP sockets, so that successive READs in the same event > handler work as you expected. I will think about that. > > Regards, > > > also, receiving udp broadcasts works only for one application. Any additional gambas application on the same machine throws a "Cannot bind to that socket" error. Best Regards Werner From david_villalobos_c at ...43... Tue Nov 4 16:09:28 2008 From: david_villalobos_c at ...43... (David Villalobos Cambronero) Date: Tue, 4 Nov 2008 07:09:28 -0800 (PST) Subject: [Gambas-user] Error in Process managment References: <25596.37929.qm@...1657...> <200811040606.21357.gambas@...1...> Message-ID: <775820.22642.qm@...1678...> mmmm I see, can you send me a cuople of lines as example? Just to be clear... Saludos -- David ----- Original Message ---- From: Benoit Minisini To: mailing list for gambas users Sent: Monday, November 3, 2008 11:06:21 PM Subject: Re: [Gambas-user] Error in Process managment On lundi 3 novembre 2008, David Villalobos Cambronero wrote: > Hi Benoit, > > The code attached in the example used to work (Gambas 3 SVN 1652), but now > it doesn't, you made some changes in the Process behavoir, do I have to > change something or I'm doing something wrong? > > Best regards > > > -- > David Now SHELL and EXEC do not raise events explicitely. You must use the "AS" keyword. I did that because now you can run a process, and read its output reliably without having to use the Read event. But if you want to catch the standard error, using events is mandatory. Regards, -- Benoit Minisini ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From david_villalobos_c at ...43... Tue Nov 4 16:10:53 2008 From: david_villalobos_c at ...43... (David Villalobos Cambronero) Date: Tue, 4 Nov 2008 07:10:53 -0800 (PST) Subject: [Gambas-user] Error in Process managment Message-ID: <796667.72485.qm@...1657...> Forget it!!! I see the documentation.... sorry... Regards -- David ----- Original Message ---- From: David Villalobos Cambronero To: mailing list for gambas users Sent: Tuesday, November 4, 2008 9:09:28 AM Subject: Re: [Gambas-user] Error in Process managment mmmm I see, can you send me a cuople of lines as example? Just to be clear... Saludos -- David ----- Original Message ---- From: Benoit Minisini To: mailing list for gambas users Sent: Monday, November 3, 2008 11:06:21 PM Subject: Re: [Gambas-user] Error in Process managment On lundi 3 novembre 2008, David Villalobos Cambronero wrote: > Hi Benoit, > > The code attached in the example used to work (Gambas 3 SVN 1652), but now > it doesn't, you made some changes in the Process behavoir, do I have to > change something or I'm doing something wrong? > > Best regards > > > -- > David Now SHELL and EXEC do not raise events explicitely. You must use the "AS" keyword. I did that because now you can run a process, and read its output reliably without having to use the Read event. But if you want to catch the standard error, using events is mandatory. Regards, -- Benoit Minisini ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From gambas at ...1... Tue Nov 4 16:17:45 2008 From: gambas at ...1... (Benoit Minisini) Date: Tue, 4 Nov 2008 16:17:45 +0100 Subject: [Gambas-user] Error in Process managment In-Reply-To: <775820.22642.qm@...1678...> References: <25596.37929.qm@...1657...> <200811040606.21357.gambas@...1...> <775820.22642.qm@...1678...> Message-ID: <200811041617.45217.gambas@...1...> On mardi 4 novembre 2008, David Villalobos Cambronero wrote: > mmmm I see, can you send me a cuople of lines as example? Just to be > clear... > > Saludos > > > -- > David > In your example: SHELL "window" FOR READ AS "Process" will give you the previous behaviour. In other words, the 'AS "Process"' was implicit. Now it must be explicit. -- Benoit Minisini From almodook at ...2007... Tue Nov 4 16:18:47 2008 From: almodook at ...2007... (moon_walker) Date: Tue, 4 Nov 2008 07:18:47 -0800 (PST) Subject: [Gambas-user] Databrowser.gridview events.? Message-ID: <20293106.post@...1379...> Hi all, i would like to ask if there is an event raised if i click a row in the databrowser? Another question if i can catch the events of the control buttons of the databrowser? (movefirst, save, etc...) This is not working: PUBLIC SUB DataBrowser1_MouseDown() Message.Info("catched") END Thanks and regards from hungary. Attila -- View this message in context: http://www.nabble.com/Databrowser.gridview-events.--tp20293106p20293106.html Sent from the gambas-user mailing list archive at Nabble.com. From david_villalobos_c at ...43... Tue Nov 4 16:24:17 2008 From: david_villalobos_c at ...43... (David Villalobos Cambronero) Date: Tue, 4 Nov 2008 07:24:17 -0800 (PST) Subject: [Gambas-user] Error in Process managment References: <25596.37929.qm@...1657...> <200811040606.21357.gambas@...1...> <775820.22642.qm@...1678...> <200811041617.45217.gambas@...1...> Message-ID: <427748.79292.qm@...1655...> Great !!!! I will try... Saludos -- David ----- Original Message ---- From: Benoit Minisini To: mailing list for gambas users Sent: Tuesday, November 4, 2008 9:17:45 AM Subject: Re: [Gambas-user] Error in Process managment On mardi 4 novembre 2008, David Villalobos Cambronero wrote: > mmmm I see, can you send me a cuople of lines as example? Just to be > clear... > > Saludos > > > -- > David > In your example: SHELL "window" FOR READ AS "Process" will give you the previous behaviour. In other words, the 'AS "Process"' was implicit. Now it must be explicit. -- Benoit Minisini ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From gareth at ...1689... Tue Nov 4 16:27:48 2008 From: gareth at ...1689... (Gareth Bult) Date: Tue, 4 Nov 2008 15:27:48 +0000 (GMT) Subject: [Gambas-user] Problem with READ on a UDP socket In-Reply-To: <17456817.59171225812359546.JavaMail.root@...1834...> Message-ID: <12266674.59191225812468882.JavaMail.root@...1834...> I would love to and indeed have tried .. can't compile the SVN code tho'. I get the following problem, apparently it's a known issue with libtool, problem is I've not come across a known solution yet .. :( (I'm on Ubuntu 8.10, which subject to popular press coverage is a ****** nightmare.) $ ./reconf-all --force libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, `.'. libtoolize: copying file `./ltmain.sh' libtoolize: putting auxiliary files in `.'. libtoolize: copying file `libltdl/config/compile' libtoolize: copying file `libltdl/config/config.guess' libtoolize: copying file `libltdl/config/config.sub' libtoolize: copying file `libltdl/config/depcomp' libtoolize: copying file `libltdl/config/install-sh' libtoolize: copying file `libltdl/config/missing' libtoolize: copying file `libltdl/config/ltmain.sh' libtoolize: putting macros in `libltdl/m4'. libtoolize: copying file `libltdl/m4/argz.m4' libtoolize: copying file `libltdl/m4/libtool.m4' libtoolize: copying file `libltdl/m4/ltdl.m4' libtoolize: copying file `libltdl/m4/ltoptions.m4' libtoolize: copying file `libltdl/m4/ltsugar.m4' libtoolize: copying file `libltdl/m4/ltversion.m4' libtoolize: copying file `libltdl/m4/lt~obsolete.m4' libtoolize: putting libltdl files in `libltdl'. libtoolize: copying file `libltdl/COPYING.LIB' libtoolize: copying file `libltdl/README' libtoolize: copying file `libltdl/Makefile.am' libtoolize: copying file `libltdl/configure.ac' libtoolize: copying file `libltdl/aclocal.m4' libtoolize: copying file `libltdl/Makefile.in' libtoolize: copying file `libltdl/config-h.in' libtoolize: copying file `libltdl/configure' libtoolize: copying file `libltdl/argz_.h' libtoolize: copying file `libltdl/argz.c' libtoolize: copying file `libltdl/loaders/dld_link.c' libtoolize: copying file `libltdl/loaders/dlopen.c' libtoolize: copying file `libltdl/loaders/dyld.c' libtoolize: copying file `libltdl/loaders/load_add_on.c' libtoolize: copying file `libltdl/loaders/loadlibrary.c' libtoolize: copying file `libltdl/loaders/shl_load.c' libtoolize: copying file `libltdl/lt__dirent.c' libtoolize: copying file `libltdl/lt__strl.c' libtoolize: copying file `libltdl/libltdl/lt__alloc.h' libtoolize: copying file `libltdl/libltdl/lt__dirent.h' libtoolize: copying file `libltdl/libltdl/lt__glibc.h' libtoolize: copying file `libltdl/libltdl/lt__private.h' libtoolize: copying file `libltdl/libltdl/lt__strl.h' libtoolize: copying file `libltdl/libltdl/lt_dlloader.h' libtoolize: copying file `libltdl/libltdl/lt_error.h' libtoolize: copying file `libltdl/libltdl/lt_system.h' libtoolize: copying file `libltdl/libltdl/slist.h' libtoolize: copying file `libltdl/loaders/preopen.c' libtoolize: copying file `libltdl/lt__alloc.c' libtoolize: copying file `libltdl/lt_dlloader.c' libtoolize: copying file `libltdl/lt_error.c' libtoolize: copying file `libltdl/ltdl.c' libtoolize: copying file `libltdl/ltdl.h' libtoolize: copying file `libltdl/slist.c' libtoolize: You should add the contents of the following files to `aclocal.m4': libtoolize: `libltdl/m4/libtool.m4' libtoolize: `libltdl/m4/ltoptions.m4' libtoolize: `libltdl/m4/ltversion.m4' libtoolize: `libltdl/m4/ltsugar.m4' libtoolize: `libltdl/m4/lt~obsolete.m4' libtoolize: `libltdl/m4/argz.m4' libtoolize: `libltdl/m4/ltdl.m4' libtoolize: or else add `AC_CONFIG_MACRO_DIR([libltdl/m4])' to configure.ac. libtoolize: Remember to add `LT_CONFIG_LTDL_DIR([libltdl])' to `configure.ac'. libtoolize: Consider using `AC_CONFIG_AUX_DIR([libltdl/config])' in configure.ac. libtoolize: Consider adding `-I m4' to ACLOCAL_AMFLAGS in Makefile.am. configure.ac:69: required file `./config.guess' not found configure.ac:69: `automake --add-missing' can install `config.guess' configure.ac:69: required file `./config.sub' not found configure.ac:69: `automake --add-missing' can install `config.sub' autoreconf: automake failed with exit status: 1 ----- Original Message ----- From: "Benoit Minisini" To: "mailing list for gambas users" Sent: Tuesday, 4 November, 2008 12:45:40 PM GMT +00:00 GMT Britain, Ireland, Portugal Subject: Re: [Gambas-user] Problem with READ on a UDP socket On mardi 4 novembre 2008, Gareth Bult wrote: > Hi, > > I think I reported this quite a while ago but it still seems to be a > problem ... using READ to try to acquire less than the entire available > buffer doesn't seem to work .. and if I read the entire buffer, there's no > obvious way to break the packet down into it's constituent parts ... > > Anyone any ideas? > (and anyone any idea where the other 24 bytes are going ??) > > PRIVATE $udp AS UdpSocket > > PUBLIC SUB _new() > > $udp = NEW UdpSocket AS "Socket" > $udp.Bind(2000) > > END > > PUBLIC SUB Socket_Read() > > DIM cmd AS Byte > DIM siz AS Long > > PRINT Lof($udp) > READ #$udp, cmd, 1 > PRINT Lof($udp) > 'READ #$udp, siz, 8 <= generates error if uncommented > > END > > $shell> echo "R00000011Hello World 123" |nc -u localhost 2000 > > 25 > 0 <=== "should be 24!" Can you try your code with Gambas 3? I have changed many things in the gb.net component there, but I didn't backported them to Gambas 2. If it fixes your problem, I will do! Regards, -- Benoit Minisini ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- Managing Director, Encryptec Limited Tel: 0845 5082719, Mob: 0785 3305393 Email: gareth at ...1689... Statements made are at all times subject to Encryptec's Terms and Conditions of Business, which are available upon request. From gareth at ...1689... Tue Nov 4 16:29:10 2008 From: gareth at ...1689... (Gareth Bult) Date: Tue, 4 Nov 2008 15:29:10 +0000 (GMT) Subject: [Gambas-user] Multiple instances of Gambas ... In-Reply-To: <200811041347.24849.gambas@...1...> Message-ID: <26007807.59241225812550181.JavaMail.root@...1834...> Hi, Again, would love to, unfortunately I just picked Gambas up for a small project and I've forgotten all the ins and outs of debugging, is there a URL you can point me at with the relevant instructions ? Gareth. ----- Original Message ----- From: "Benoit Minisini" To: "mailing list for gambas users" Sent: Tuesday, 4 November, 2008 12:47:24 PM GMT +00:00 GMT Britain, Ireland, Portugal Subject: Re: [Gambas-user] Multiple instances of Gambas ... On mardi 4 novembre 2008, Gareth Bult wrote: > Hi, > > I used to be able to run multiple instances of Gambas which was really > handy for multiple component projects, however when I run a second instance > now it dumps out immediately with the trace listed below. I've tried this > on the standard Ubuntu 8.10 distro, and on the stable 2.9 compiled from > source, same results. Any ideas? > I don't have this problem there (Mandriva 2009.0). Can you provide a true backtrace of the crash, with debugging information enabled? -- Benoit Minisini ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- Managing Director, Encryptec Limited Tel: 0845 5082719, Mob: 0785 3305393 Email: gareth at ...1689... Statements made are at all times subject to Encryptec's Terms and Conditions of Business, which are available upon request. From gareth at ...1689... Tue Nov 4 16:33:35 2008 From: gareth at ...1689... (Gareth Bult) Date: Tue, 4 Nov 2008 15:33:35 +0000 (GMT) Subject: [Gambas-user] Problem with READ on a UDP socket In-Reply-To: <200811041535.21630.gambas@...1...> Message-ID: <31228244.59271225812815286.JavaMail.root@...1834...> Erm, Ok .. I was expecting a buffer layer between socket library and Gambas .. but that aside, If I'm expecting a binary packet via a UDP socket, for example; - 1 byte - 4 bytes - 2 bytes - up to 1024, dictated by Can anyone tell me in Gambas how I would go about transferring data from the packet to Gambas Variables? READ #$udp,data,lof($udp) Would give me the contents of the packet as a string, but I can't seem to see an effective / efficient way of breaking it down from there .. anyone ? tia Gareth. ----- Original Message ----- From: "Benoit Minisini" To: "mailing list for gambas users" Sent: Tuesday, 4 November, 2008 2:35:21 PM GMT +00:00 GMT Britain, Ireland, Portugal Subject: Re: [Gambas-user] Problem with READ on a UDP socket On mardi 4 novembre 2008, Gareth Bult wrote: > Hi, > > I think I reported this quite a while ago but it still seems to be a > problem ... using READ to try to acquire less than the entire available > buffer doesn't seem to work .. and if I read the entire buffer, there's no > obvious way to break the packet down into it's constituent parts ... > > Anyone any ideas? > (and anyone any idea where the other 24 bytes are going ??) > > PRIVATE $udp AS UdpSocket > > PUBLIC SUB _new() > > $udp = NEW UdpSocket AS "Socket" > $udp.Bind(2000) > > END > > PUBLIC SUB Socket_Read() > > DIM cmd AS Byte > DIM siz AS Long > > PRINT Lof($udp) > READ #$udp, cmd, 1 > PRINT Lof($udp) > 'READ #$udp, siz, 8 <= generates error if uncommented > > END > > $shell> echo "R00000011Hello World 123" |nc -u localhost 2000 > > 25 > 0 <=== "should be 24!" After having investigated, it seems that this is a property of the UDP sockets. According to the manual page, when you read a message from a socket, "If a message is too long to fit in the supplied buffer, excess bytes may be discarded depending on the type of socket the message is received from". You should not have this behaviour if you use a TCP socket. But note that Gambas could be more user-friendly by maintaining an internal message buffer for UDP sockets, so that successive READs in the same event handler work as you expected. I will think about that. Regards, -- Benoit Minisini ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- Managing Director, Encryptec Limited Tel: 0845 5082719, Mob: 0785 3305393 Email: gareth at ...1689... Statements made are at all times subject to Encryptec's Terms and Conditions of Business, which are available upon request. From gambas at ...1... Tue Nov 4 16:51:14 2008 From: gambas at ...1... (Benoit Minisini) Date: Tue, 4 Nov 2008 16:51:14 +0100 Subject: [Gambas-user] Problem with READ on a UDP socket In-Reply-To: <31228244.59271225812815286.JavaMail.root@...1834...> References: <31228244.59271225812815286.JavaMail.root@...1834...> Message-ID: <200811041651.14974.gambas@...1...> On mardi 4 novembre 2008, Gareth Bult wrote: > Erm, Ok .. I was expecting a buffer layer between socket library and Gambas > .. but that aside, If I'm expecting a binary packet via a UDP socket, for > example; > > - 1 byte > - 4 bytes > - 2 bytes > - up to 1024, dictated by > > Can anyone tell me in Gambas how I would go about transferring data from > the packet to Gambas Variables? > > READ #$udp,data,lof($udp) > > Would give me the contents of the packet as a string, but I can't seem to > see an effective / efficient way of breaking it down from there .. anyone ? > > tia > Gareth. > Without that buffer, it is brain-fucking: DIM sData AS String DIM pBuffer AS Pointer DIM iType AS Byte DIM iNumber AS Integer ... READ #$udp, sData, Lof($udp) pBuffer = Alloc(len(sData)) WRITE #pBuffer, sData, len(sData) READ #pBuffer, iType READ #pBuffer, iNumber ... Free(pBuffer) I will try to fix that in Gambas 3, then backporting all gb.net fixes to Gambas 2 once they are done. Regards, -- Benoit Minisini From gambas at ...1... Tue Nov 4 17:14:39 2008 From: gambas at ...1... (Benoit Minisini) Date: Tue, 4 Nov 2008 17:14:39 +0100 Subject: [Gambas-user] Multiple instances of Gambas ... In-Reply-To: <26007807.59241225812550181.JavaMail.root@...1834...> References: <26007807.59241225812550181.JavaMail.root@...1834...> Message-ID: <200811041714.39337.gambas@...1...> On mardi 4 novembre 2008, Gareth Bult wrote: > Hi, > > Again, would love to, unfortunately I just picked Gambas up for a small > project and I've forgotten all the ins and outs of debugging, is there a > URL you can point me at with the relevant instructions ? > > Gareth. > On the web site, in the troubleshooting section. Anyway, you can get a backtrace by allowing core dumps, and running gdb on them. $ ulimit -c 32000 $ ./gambas2.gambas ... *crash* ...core dump $ gdb gbx2 ... (gdb) bt Regards, -- Benoit Minisini From gareth at ...1689... Tue Nov 4 17:21:38 2008 From: gareth at ...1689... (Gareth Bult) Date: Tue, 4 Nov 2008 16:21:38 +0000 (GMT) Subject: [Gambas-user] Problem with READ on a UDP socket In-Reply-To: <200811041651.14974.gambas@...1...> Message-ID: <29364127.59921225815698497.JavaMail.root@...1834...> >Without that buffer, it is brain-fucking: No, I can live with that solution.. :-) It was using a pointer as a stream that I missed .. Many thanks, Gareth. ----- Original Message ----- From: "Benoit Minisini" To: "mailing list for gambas users" Sent: Tuesday, 4 November, 2008 3:51:14 PM GMT +00:00 GMT Britain, Ireland, Portugal Subject: Re: [Gambas-user] Problem with READ on a UDP socket On mardi 4 novembre 2008, Gareth Bult wrote: > Erm, Ok .. I was expecting a buffer layer between socket library and Gambas > .. but that aside, If I'm expecting a binary packet via a UDP socket, for > example; > > - 1 byte > - 4 bytes > - 2 bytes > - up to 1024, dictated by > > Can anyone tell me in Gambas how I would go about transferring data from > the packet to Gambas Variables? > > READ #$udp,data,lof($udp) > > Would give me the contents of the packet as a string, but I can't seem to > see an effective / efficient way of breaking it down from there .. anyone ? > > tia > Gareth. > Without that buffer, it is brain-fucking: DIM sData AS String DIM pBuffer AS Pointer DIM iType AS Byte DIM iNumber AS Integer ... READ #$udp, sData, Lof($udp) pBuffer = Alloc(len(sData)) WRITE #pBuffer, sData, len(sData) READ #pBuffer, iType READ #pBuffer, iNumber ... Free(pBuffer) I will try to fix that in Gambas 3, then backporting all gb.net fixes to Gambas 2 once they are done. Regards, -- Benoit Minisini ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- Managing Director, Encryptec Limited Tel: 0845 5082719, Mob: 0785 3305393 Email: gareth at ...1689... Statements made are at all times subject to Encryptec's Terms and Conditions of Business, which are available upon request. From gambas at ...1... Tue Nov 4 17:22:05 2008 From: gambas at ...1... (Benoit Minisini) Date: Tue, 4 Nov 2008 17:22:05 +0100 Subject: [Gambas-user] Databrowser.gridview events.? In-Reply-To: <20293106.post@...1379...> References: <20293106.post@...1379...> Message-ID: <200811041722.05223.gambas@...1...> On mardi 4 novembre 2008, moon_walker wrote: > Hi all, > > i would like to ask if there is an event raised if i click a row in the > databrowser? > Another question if i can catch the events of the control buttons of the > databrowser? > (movefirst, save, etc...) > > This is not working: > > PUBLIC SUB DataBrowser1_MouseDown() > > Message.Info("catched") > > END > > Thanks > and regards from hungary. > > Attila DataBrowser's goal is just browsing. If you need more control, you have to create your own one, by using a DataView, and buttons that call DataView methods. The DataView control has an 'Activate' event that is raised each time the current record change (It should have been named 'Change' or 'Click' instead). If this is not what you need, you will have to catch events on the DataView GridView yourself, by using its GridView property. That property returns the underlying GridView control. Then you use the Observer class to catch the events. Regards, -- Benoit Minisini From m0e.lnx at ...626... Tue Nov 4 17:35:04 2008 From: m0e.lnx at ...626... (M0E Lnx) Date: Tue, 4 Nov 2008 10:35:04 -0600 Subject: [Gambas-user] How to make a treeview un-clickeable Message-ID: <1f1e8c1b0811040835w2ff624fbgcccca42ae993d91c@...627...> Can anyone suggest a way to do this? I have a treeview which I intend to use as a simple list of tasks to perform. The treeview selection and pictures and stuff are controlled and affected by other objects in the form. What I need is a way to keep the user from clicking on different items on the treeview, because the seleced = true proerty changes when the user clicks on it. I really dont want to use the treeview.enabled = false method. This grays out the entire trieeview. I need it to look alive, but yet be locked for any clicking From gambas at ...1... Tue Nov 4 17:58:23 2008 From: gambas at ...1... (Benoit Minisini) Date: Tue, 4 Nov 2008 17:58:23 +0100 Subject: [Gambas-user] How to make a treeview un-clickeable In-Reply-To: <1f1e8c1b0811040835w2ff624fbgcccca42ae993d91c@...627...> References: <1f1e8c1b0811040835w2ff624fbgcccca42ae993d91c@...627...> Message-ID: <200811041758.23651.gambas@...1...> On mardi 4 novembre 2008, M0E Lnx wrote: > Can anyone suggest a way to do this? > > I have a treeview which I intend to use as a simple list of tasks to > perform. The treeview selection and pictures and stuff are controlled and > affected by other objects in the form. > > What I need is a way to keep the user from clicking on different items > on the treeview, because the seleced = true proerty changes when the > user clicks on it. > > I really dont want to use the treeview.enabled = false method. This > grays out the entire trieeview. > I need it to look alive, but yet be locked for any clicking > TreeView.Mode = TreeView.None ? -- Benoit Minisini From gareth at ...1689... Tue Nov 4 18:13:55 2008 From: gareth at ...1689... (Gareth Bult) Date: Tue, 4 Nov 2008 17:13:55 +0000 (GMT) Subject: [Gambas-user] Multiple instances of Gambas ... In-Reply-To: <5123827.60461225818743446.JavaMail.root@...1834...> Message-ID: <4351023.60511225818835288.JavaMail.root@...1834...> Ok, Now I'm confused .. firstly on Ubuntu, try as I might I can't get a core dump .. will have to work on this. In the meantime, if it helps .. I have 4 screens .. I start Gambas on screen 3 .. then "gambas2" will work quite happily on screens 2,3 and 4 , but will give the dump as quoted if started on screen 1... although I'm sure it wasn't working on 2 and 4 earlier. Will have to experiment, will come back to you, possibly after a reboot ... Gareth. ----- Original Message ----- From: "Benoit Minisini" To: "mailing list for gambas users" Sent: Tuesday, 4 November, 2008 4:14:39 PM GMT +00:00 GMT Britain, Ireland, Portugal Subject: Re: [Gambas-user] Multiple instances of Gambas ... On mardi 4 novembre 2008, Gareth Bult wrote: > Hi, > > Again, would love to, unfortunately I just picked Gambas up for a small > project and I've forgotten all the ins and outs of debugging, is there a > URL you can point me at with the relevant instructions ? > > Gareth. > On the web site, in the troubleshooting section. Anyway, you can get a backtrace by allowing core dumps, and running gdb on them. $ ulimit -c 32000 $ ./gambas2.gambas ... *crash* ...core dump $ gdb gbx2 ... (gdb) bt Regards, -- Benoit Minisini ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- Managing Director, Encryptec Limited Tel: 0845 5082719, Mob: 0785 3305393 Email: gareth at ...1689... Statements made are at all times subject to Encryptec's Terms and Conditions of Business, which are available upon request. From pokerbirch at ...1601... Tue Nov 4 18:42:46 2008 From: pokerbirch at ...1601... (birchy) Date: Tue, 4 Nov 2008 09:42:46 -0800 (PST) Subject: [Gambas-user] Parsing HTML with Split(). Is this a BUG?? Message-ID: <20311394.post@...1379...> Hi, i'm new to Gambas following a full migration from Windows XP/VB6 to Ubuntu 8.04/Gambas. I have used VB6 for around 6 years and am really loving Gambas, however i have a small problem. I am working on a web app that downloads the HTML source of a web page and then parses various information from it. Correct me if i am wrong, but Gambas does not have an HTML parsing library, so i am working on my own function. The problem i have is with the Split() function: --------------------------------------------------------------------------- DIM sa AS String[] sa = Split("this is a split test ", "") --------------------------------------------------------------------------- This produces an array of 13 elements due to it splitting on each SINGLE character rather than the specified string. I expected it to produce an array of 2 strings: "this is a" and " split test ". The same question remains unanswered on http://www.nabble.com/How-to-split-a-string--to9047840.html#a9047840 THIS thread. At this stage, i am assuming that i'll need to write my own split function using the InStr(), Mid$(), Left$(), Right$() functions?? -- View this message in context: http://www.nabble.com/Parsing-HTML-with-Split%28%29.-Is-this-a-BUG---tp20311394p20311394.html Sent from the gambas-user mailing list archive at Nabble.com. From m0e.lnx at ...626... Tue Nov 4 19:41:50 2008 From: m0e.lnx at ...626... (M0E Lnx) Date: Tue, 4 Nov 2008 12:41:50 -0600 Subject: [Gambas-user] How to make a treeview un-clickeable In-Reply-To: <200811041758.23651.gambas@...1...> References: <1f1e8c1b0811040835w2ff624fbgcccca42ae993d91c@...627...> <200811041758.23651.gambas@...1...> Message-ID: <1f1e8c1b0811041041p24658018g90ef17cbeed19acb@...627...> THanks On Tue, Nov 4, 2008 at 10:58 AM, Benoit Minisini wrote: > On mardi 4 novembre 2008, M0E Lnx wrote: >> Can anyone suggest a way to do this? >> >> I have a treeview which I intend to use as a simple list of tasks to >> perform. The treeview selection and pictures and stuff are controlled and >> affected by other objects in the form. >> >> What I need is a way to keep the user from clicking on different items >> on the treeview, because the seleced = true proerty changes when the >> user clicks on it. >> >> I really dont want to use the treeview.enabled = false method. This >> grays out the entire trieeview. >> I need it to look alive, but yet be locked for any clicking >> > > TreeView.Mode = TreeView.None ? > > -- > Benoit Minisini > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From almodook at ...2007... Tue Nov 4 19:49:42 2008 From: almodook at ...2007... (moon_walker) Date: Tue, 4 Nov 2008 10:49:42 -0800 (PST) Subject: [Gambas-user] Databrowser.gridview events.? In-Reply-To: <200811041722.05223.gambas@...1...> References: <20293106.post@...1379...> <200811041722.05223.gambas@...1...> Message-ID: <20328618.post@...1379...> Benoit Minisini wrote: > > > ... > If this is not what you need, you will have to catch events on the > DataView > GridView yourself, by using its GridView property. That property returns > the > underlying GridView control. Then you use the Observer class to catch the > events. > > Regards, > > -- > Benoit Minisini > > ------------------------------------------------------------------------- > > Hi Benoit, thank you for your prompt reply. I will then create my own thing with dataview. Could you maybe explain in more detail this OBSERVER class. I read many time about it but i do not really understood its usages since i saw no explicite example how to use it. Thanks Attila -- View this message in context: http://www.nabble.com/Databrowser.gridview-events.--tp20293106p20328618.html Sent from the gambas-user mailing list archive at Nabble.com. From pokerbirch at ...1601... Tue Nov 4 19:58:52 2008 From: pokerbirch at ...1601... (birchy) Date: Tue, 4 Nov 2008 10:58:52 -0800 (PST) Subject: [Gambas-user] Web Services: Working with WSDL Message-ID: <20328779.post@...1379...> I'm fairly new to Gambas and really like it's improvements over VB6, however i'm finding that documentation and source code examples are quite poor. Many of my projects are web related and involve either scraping information from a web page or working with SOAP protocols. So this brings me a couple of questions: 1) What is the best way to download and parse HTML? I'm currently using HttpClient to download the HTML and then parsing it manually via a function that uses Instr() and Mid(). 2) Both Java and .Net are able to auto-generate code from a WSDL file. Does Gambas have this feature in one of its libraries? -- View this message in context: http://www.nabble.com/Web-Services%3A-Working-with-WSDL-tp20328779p20328779.html Sent from the gambas-user mailing list archive at Nabble.com. From doriano.blengino at ...1909... Tue Nov 4 21:17:39 2008 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Tue, 04 Nov 2008 21:17:39 +0100 Subject: [Gambas-user] tableview catch event in edit mode In-Reply-To: <49100116.50901@...2006...> References: <49100116.50901@...2006...> Message-ID: <4910ADE3.3010907@...1909...> Jaroslav Svec ha scritto: > 1) Is there possibility to catch Key.Code of tableview in edit mode? > It works for me only outside edit mode (using tableview_keypress). No. Tableview is composed of two "native" controls: a gridview and a (textbox or combobox). When tableview enters edit mode a new, hidden control (the textbox) takes control. The tableview component doesn't care to raise events when they come from the textbox. You can reimplement tableview, or modify it. > 2) If I use tableview.cancel() inside tableview_change() it does nothing. > 3) If I use tableview.cancel() inside tableview_save() the form which > owns tableview crashes. > > Tableview.cancel() should stop editing cell and return to browse mode. > Is it right? > How can I use tableview.cancel()? Sorry, don't know enough about these three questions. Surely Benoit can tell more. Regards, Doriano. From joe1962 at ...626... Tue Nov 4 21:23:33 2008 From: joe1962 at ...626... (Jose J. Rodriguez) Date: Tue, 4 Nov 2008 15:23:33 -0500 Subject: [Gambas-user] Multiple instances of Gambas ... In-Reply-To: <4351023.60511225818835288.JavaMail.root@...1834...> References: <5123827.60461225818743446.JavaMail.root@...1834...> <4351023.60511225818835288.JavaMail.root@...1834...> Message-ID: <6c208f950811041223u3c0382e7s884948f48f6c8f58@...627...> On 11/4/08, Gareth Bult wrote: > I have 4 screens .. I start Gambas on screen 3 .. then "gambas2" will work quite happily on screens 2,3 and 4 , but will give the dump as quoted if started on screen 1... although I'm sure it wasn't working on 2 and 4 earlier. > FWIW, I just ran 2 instances of the Gambas2 IDE on virtual desktop (VD) 1, then 2 on VD2, then tried it the other way around, with no problems. Using Vector Linux 5.9.1 SOHO, KDE 3.5.9 and Gambas2-2.9. Regards, Joe1962 From m0e.lnx at ...626... Tue Nov 4 21:26:21 2008 From: m0e.lnx at ...626... (M0E Lnx) Date: Tue, 4 Nov 2008 14:26:21 -0600 Subject: [Gambas-user] Multiple instances of Gambas ... In-Reply-To: <6c208f950811041223u3c0382e7s884948f48f6c8f58@...627...> References: <5123827.60461225818743446.JavaMail.root@...1834...> <4351023.60511225818835288.JavaMail.root@...1834...> <6c208f950811041223u3c0382e7s884948f48f6c8f58@...627...> Message-ID: <1f1e8c1b0811041226q75d5f9a5l1725e8dff2d52770@...627...> Nice ;) On Tue, Nov 4, 2008 at 2:23 PM, Jose J. Rodriguez wrote: > On 11/4/08, Gareth Bult wrote: >> I have 4 screens .. I start Gambas on screen 3 .. then "gambas2" will work quite happily on screens 2,3 and 4 , but will give the dump as quoted if started on screen 1... although I'm sure it wasn't working on 2 and 4 earlier. >> > > FWIW, I just ran 2 instances of the Gambas2 IDE on virtual desktop > (VD) 1, then 2 on VD2, then tried it the other way around, with no > problems. Using Vector Linux 5.9.1 SOHO, KDE 3.5.9 and Gambas2-2.9. > > Regards, > Joe1962 > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From ron at ...1740... Tue Nov 4 22:25:44 2008 From: ron at ...1740... (Ron) Date: Tue, 04 Nov 2008 22:25:44 +0100 Subject: [Gambas-user] Mysql query question Message-ID: <4910BDD8.1080507@...1740...> Hi, I'm replacing my buggy mysql query's for correct ones... All is well except for this one... DIM sTable as String = "remarks_tags" Main.hDB.Exec("SELECT text FROM " & sTable & " ORDER BY rand() LIMIT 1") This works ok... Replaced by... Main.hDB.Exec("SELECT text FROM &1 ORDER BY rand() LIMIT 1", sTable) Which results in an SQL query syntax error, is this correct behavior? Any ideas? Regards, Ron_2nd From gambas at ...1... Wed Nov 5 00:04:28 2008 From: gambas at ...1... (Benoit Minisini) Date: Wed, 5 Nov 2008 00:04:28 +0100 Subject: [Gambas-user] Parsing HTML with Split(). Is this a BUG?? In-Reply-To: <20311394.post@...1379...> References: <20311394.post@...1379...> Message-ID: <200811050004.28347.gambas@...1...> On mardi 4 novembre 2008, birchy wrote: > Hi, i'm new to Gambas following a full migration from Windows XP/VB6 to > Ubuntu 8.04/Gambas. I have used VB6 for around 6 years and am really loving > Gambas, however i have a small problem. I am working on a web app that > downloads the HTML source of a web page and then parses various information > from it. Correct me if i am wrong, but Gambas does not have an HTML parsing > library, so i am working on my own function. The problem i have is with the > Split() function: > --------------------------------------------------------------------------- > DIM sa AS String[] > sa = Split("this is a split test ", "") > --------------------------------------------------------------------------- > This produces an array of 13 elements due to it splitting on each SINGLE > character rather than the specified string. I expected it to produce an > array of 2 strings: "this is a" and " split test ". > > The same question remains unanswered on > http://www.nabble.com/How-to-split-a-string--to9047840.html#a9047840 THIS > thread. At this stage, i am assuming that i'll need to write my own split > function using the InStr(), Mid$(), Left$(), Right$() functions?? Yep. Split() is not powerful enough for that. -- Benoit Minisini From gambas at ...1... Wed Nov 5 00:05:15 2008 From: gambas at ...1... (Benoit Minisini) Date: Wed, 5 Nov 2008 00:05:15 +0100 Subject: [Gambas-user] Web Services: Working with WSDL In-Reply-To: <20328779.post@...1379...> References: <20328779.post@...1379...> Message-ID: <200811050005.15107.gambas@...1...> On mardi 4 novembre 2008, birchy wrote: > I'm fairly new to Gambas and really like it's improvements over VB6, > however i'm finding that documentation and source code examples are quite > poor. Many of my projects are web related and involve either scraping > information from a web page or working with SOAP protocols. So this brings > me a couple of questions: > 1) What is the best way to download and parse HTML? I'm currently using > HttpClient to download the HTML and then parsing it manually via a function > that uses Instr() and Mid(). > 2) Both Java and .Net are able to auto-generate code from a WSDL file. Does > Gambas have this feature in one of its libraries? What is WSDL? -- Benoit Minisini From gambas at ...1... Wed Nov 5 00:07:34 2008 From: gambas at ...1... (Benoit Minisini) Date: Wed, 5 Nov 2008 00:07:34 +0100 Subject: [Gambas-user] Mysql query question In-Reply-To: <4910BDD8.1080507@...1740...> References: <4910BDD8.1080507@...1740...> Message-ID: <200811050007.34757.gambas@...1...> On mardi 4 novembre 2008, Ron wrote: > Hi, > > I'm replacing my buggy mysql query's for correct ones... > > All is well except for this one... > > DIM sTable as String = "remarks_tags" > > Main.hDB.Exec("SELECT text FROM " & sTable & " ORDER BY rand() LIMIT 1") > This works ok... > > Replaced by... > > Main.hDB.Exec("SELECT text FROM &1 ORDER BY rand() LIMIT 1", sTable) > > Which results in an SQL query syntax error, is this correct behavior? > > Any ideas? > > Regards, > Ron_2nd > &1, &2... are there for quoting SQL values, not SQL table or field names. Moreover, if you want to insert a table or field name in a SQL request, you should use the DB.Quote() function: Main.hDB.Exec("SELECT text FROM " & DB.Quote(sTable) & " ORDER BY rand() LIMIT 1") Regards, -- Benoit Minisini From pokerbirch at ...1601... Wed Nov 5 00:26:47 2008 From: pokerbirch at ...1601... (birchy) Date: Tue, 4 Nov 2008 15:26:47 -0800 (PST) Subject: [Gambas-user] Web Services: Working with WSDL In-Reply-To: <200811050005.15107.gambas@...1...> References: <20328779.post@...1379...> <200811050005.15107.gambas@...1...> Message-ID: <20333544.post@...1379...> Benoit Minisini wrote: > What is WSDL? http://en.wikipedia.org/wiki/Web_Services_Description_Language I am very surprised that you've not heard of this. It is now very commonly used as an API by websites that offer a programming interface. Some of the larger ones are Google, Amazon, Paypal, Betfair, etc. -- View this message in context: http://www.nabble.com/Web-Services%3A-Working-with-WSDL-tp20328779p20333544.html Sent from the gambas-user mailing list archive at Nabble.com. From gambas at ...1... Wed Nov 5 00:41:58 2008 From: gambas at ...1... (Benoit Minisini) Date: Wed, 5 Nov 2008 00:41:58 +0100 Subject: [Gambas-user] Web Services: Working with WSDL In-Reply-To: <20333544.post@...1379...> References: <20328779.post@...1379...> <200811050005.15107.gambas@...1...> <20333544.post@...1379...> Message-ID: <200811050041.58640.gambas@...1...> On mercredi 5 novembre 2008, birchy wrote: > Benoit Minisini wrote: > > What is WSDL? > > http://en.wikipedia.org/wiki/Web_Services_Description_Language > > I am very surprised that you've not heard of this. I'm not very fond of this sort of things. > It is now very commonly > used as an API by websites that offer a programming interface. Some of the > larger ones are Google, Amazon, Paypal, Betfair, etc. When you are talking about "generating code", you mean creating class proxies for the methods described by the WSDL XML syntax? Or accessing them transparently as Gambas classes and methods, the WSDL conversion being done on the fly and transparently? -- Benoit Minisini From gambas at ...1... Wed Nov 5 00:54:57 2008 From: gambas at ...1... (Benoit Minisini) Date: Wed, 5 Nov 2008 00:54:57 +0100 Subject: [Gambas-user] Problem with broadcasting UDP sockets - was Re: Problem with READ on a UDP socket In-Reply-To: <4910645F.1040605@...1000...> References: <32405454.56691225795712821.JavaMail.root@...1834...> <200811041535.21630.gambas@...1...> <4910645F.1040605@...1000...> Message-ID: <200811050054.57995.gambas@...1...> On mardi 4 novembre 2008, Werner wrote: > > also, receiving udp broadcasts works only for one application. Any > additional gambas application on the same machine throws > a "Cannot bind to that socket" error. > > Best Regards > Werner > Can you provide a little example that shows the problem? -- Benoit Minisini From gambas at ...1... Wed Nov 5 00:55:47 2008 From: gambas at ...1... (Benoit Minisini) Date: Wed, 5 Nov 2008 00:55:47 +0100 Subject: [Gambas-user] Problem with READ on a UDP socket In-Reply-To: <29364127.59921225815698497.JavaMail.root@...1834...> References: <29364127.59921225815698497.JavaMail.root@...1834...> Message-ID: <200811050055.47866.gambas@...1...> On mardi 4 novembre 2008, Gareth Bult wrote: > >Without that buffer, it is brain-fucking: > > No, I can live with that solution.. :-) > > It was using a pointer as a stream that I missed .. > > Many thanks, > Gareth. > I have implemented a buffered UdpSocket in the revision #1669 of Gambas 3. If you could try it, it would be great! Regards, -- Benoit Minisini From pokerbirch at ...1601... Wed Nov 5 01:05:45 2008 From: pokerbirch at ...1601... (birchy) Date: Tue, 4 Nov 2008 16:05:45 -0800 (PST) Subject: [Gambas-user] Web Services: Working with WSDL In-Reply-To: <200811050041.58640.gambas@...1...> References: <20328779.post@...1379...> <200811050005.15107.gambas@...1...> <20333544.post@...1379...> <200811050041.58640.gambas@...1...> Message-ID: <20334083.post@...1379...> Benoit Minisini wrote: > When you are talking about "generating code", you mean creating class > proxies > for the methods described by the WSDL XML syntax? Or accessing them > transparently as Gambas classes and methods, the WSDL conversion being > done > on the fly and transparently? Either method would be useful. In Java and .Net, you have the ability to add a Web Service which then asks for the URL of the WSDL file such as http://api.google.com/GoogleSearch.wsdl . The IDE then auto generates the data types and proxies for use within user specified classes and methods. I must admit that i'm not particularly familiar with how the WSDL thing works as i'm currently trying to get it working in Java but not having much success. I suppose the cr?me de la cr?me would be for Gambas to actually create the classes AND the functions within it. No other languages appears to do that, yet the classes and functions required to interact with the website are nearly always the same from user to user. The only parts that change are user specific info such as usernames and passwords which are generally passed as function arguments anyway... -- View this message in context: http://www.nabble.com/Web-Services%3A-Working-with-WSDL-tp20328779p20334083.html Sent from the gambas-user mailing list archive at Nabble.com. From ron at ...1740... Wed Nov 5 01:09:12 2008 From: ron at ...1740... (Ron) Date: Wed, 05 Nov 2008 01:09:12 +0100 Subject: [Gambas-user] Mysql query question In-Reply-To: <200811050007.34757.gambas@...1...> References: <4910BDD8.1080507@...1740...> <200811050007.34757.gambas@...1...> Message-ID: <4910E428.6000402@...1740...> Benoit Minisini wrote: > On mardi 4 novembre 2008, Ron wrote: > >> Hi, >> >> I'm replacing my buggy mysql query's for correct ones... >> >> All is well except for this one... >> >> DIM sTable as String = "remarks_tags" >> >> Main.hDB.Exec("SELECT text FROM " & sTable & " ORDER BY rand() LIMIT 1") >> This works ok... >> >> Replaced by... >> >> Main.hDB.Exec("SELECT text FROM &1 ORDER BY rand() LIMIT 1", sTable) >> >> Which results in an SQL query syntax error, is this correct behavior? >> >> Any ideas? >> >> Regards, >> Ron_2nd >> >> > > &1, &2... are there for quoting SQL values, not SQL table or field names. > > Moreover, if you want to insert a table or field name in a SQL request, you > should use the DB.Quote() function: > > Main.hDB.Exec("SELECT text FROM " & DB.Quote(sTable) & " ORDER BY rand() LIMIT > 1") > > Ok got it, works ok now. Thanks. From wdahn at ...1000... Wed Nov 5 04:57:42 2008 From: wdahn at ...1000... (Werner) Date: Wed, 05 Nov 2008 11:57:42 +0800 Subject: [Gambas-user] Problem with broadcasting UDP sockets - was Re: Problem with READ on a UDP socket In-Reply-To: <200811050054.57995.gambas@...1...> References: <32405454.56691225795712821.JavaMail.root@...1834...> <200811041535.21630.gambas@...1...> <4910645F.1040605@...1000...> <200811050054.57995.gambas@...1...> Message-ID: <491119B6.40202@...1000...> Benoit Minisini wrote: > On mardi 4 novembre 2008, Werner wrote: > >> also, receiving udp broadcasts works only for one application. Any >> additional gambas application on the same machine throws >> a "Cannot bind to that socket" error. >> >> Best Regards >> Werner >> >> > > Can you provide a little example that shows the problem? > > will do, but it might take a week or two. Obviously, more than one computer is needed and I'm a bit short right now. Best Regards Werner Dahn From doriano.blengino at ...1909... Wed Nov 5 06:30:22 2008 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Wed, 05 Nov 2008 06:30:22 +0100 Subject: [Gambas-user] Problem with broadcasting UDP sockets - was Re: Problem with READ on a UDP socket In-Reply-To: <491119B6.40202@...1000...> References: <32405454.56691225795712821.JavaMail.root@...1834...> <200811041535.21630.gambas@...1...> <4910645F.1040605@...1000...> <200811050054.57995.gambas@...1...> <491119B6.40202@...1000...> Message-ID: <49112F6E.5070908@...1909...> Werner ha scritto: > Benoit Minisini wrote: > >> On mardi 4 novembre 2008, Werner wrote: >> >> >>> also, receiving udp broadcasts works only for one application. Any >>> additional gambas application on the same machine throws >>> a "Cannot bind to that socket" error. >>> >>> Best Regards >>> Werner >>> >>> >>> >> Can you provide a little example that shows the problem? >> >> >> > will do, but it might take a week or two. Obviously, more than one > computer is needed and I'm a bit short right now. > The behaviour of "cannot bind to that socket" could be correct. On a single machine there can be only one process listening on a given port. So, if an application binds to a port, no other applications (neither another instance of the same) can bind to that port again. This can be possible if the machine has more than one interface, say "127.0.0.1" and "192.168.1.1". Then two programs can listen on the same port, but on different interfaces. From ron at ...1740... Wed Nov 5 11:23:37 2008 From: ron at ...1740... (Ron) Date: Wed, 05 Nov 2008 11:23:37 +0100 Subject: [Gambas-user] Mysql query question In-Reply-To: <4910E428.6000402@...1740...> References: <4910BDD8.1080507@...1740...> <200811050007.34757.gambas@...1...> <4910E428.6000402@...1740...> Message-ID: <49117429.1010501@...1740...> Ron schreef: > Benoit Minisini wrote: >> On mardi 4 novembre 2008, Ron wrote: >> >>> Hi, >>> >>> I'm replacing my buggy mysql query's for correct ones... >>> >>> All is well except for this one... >>> >>> DIM sTable as String = "remarks_tags" >>> >>> Main.hDB.Exec("SELECT text FROM " & sTable & " ORDER BY rand() LIMIT >>> 1") >>> This works ok... >>> >>> Replaced by... >>> >>> Main.hDB.Exec("SELECT text FROM &1 ORDER BY rand() LIMIT 1", sTable) >>> >>> Which results in an SQL query syntax error, is this correct behavior? >>> >>> Any ideas? >>> >>> Regards, >>> Ron_2nd >>> >>> >> >> &1, &2... are there for quoting SQL values, not SQL table or field >> names. >> Moreover, if you want to insert a table or field name in a SQL >> request, you should use the DB.Quote() function: >> >> Main.hDB.Exec("SELECT text FROM " & DB.Quote(sTable) & " ORDER BY >> rand() LIMIT 1") >> >> > > Ok got it, works ok now. > > Thanks. > Does gambas provide an equivalent for the sql code below? sSql = "CREATE TABLE capture_camera" & iCam & " (" sSql &= "`id` int(11) NOT NULL auto_increment," sSql &= "`stamp` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP," sSql &= "`image` longblob," sSql &= "PRIMARY KEY( `id`)," sSql &= "KEY `timestamp` (`stamp`)" sSql &= ");" Main.hDB.Exec(sSql) This is what I have so far, but the replacement of the KEY and CURRENT_TIMESTAMP on update functionality is unclear to me. It seems it's not here, and I have to keep using the method above. DIM tableCaptures as Table tableCaptures = Main.hDB.Tables.Add("capture_camera" & iCam) tableCaptures.Fields.Add("id", db.Serial) tableCaptures.Fields.Add("stamp", db.date, 32) tableCaptures.Fields.Add("image", db.blob) tableCaptures.PrimaryKey = ["id"] tableCaptures.Update() I'm using the mysql driver. Regards, Ron_2nd From wdahn at ...1000... Wed Nov 5 11:32:34 2008 From: wdahn at ...1000... (Werner) Date: Wed, 05 Nov 2008 18:32:34 +0800 Subject: [Gambas-user] Problem with broadcasting UDP sockets - was Re: Problem with READ on a UDP socket In-Reply-To: <49112F6E.5070908@...1909...> References: <32405454.56691225795712821.JavaMail.root@...1834...> <200811041535.21630.gambas@...1...> <4910645F.1040605@...1000...> <200811050054.57995.gambas@...1...> <491119B6.40202@...1000...> <49112F6E.5070908@...1909...> Message-ID: <49117642.1040005@...1000...> Doriano Blengino wrote: > Werner ha scritto: > >> Benoit Minisini wrote: >> >> >>> On mardi 4 novembre 2008, Werner wrote: >>> >>> >>> >>>> also, receiving udp broadcasts works only for one application. Any >>>> additional gambas application on the same machine throws >>>> a "Cannot bind to that socket" error. >>>> >>>> Best Regards >>>> Werner >>>> >>>> >>>> >>>> >>> Can you provide a little example that shows the problem? >>> >>> >>> >>> >> will do, but it might take a week or two. Obviously, more than one >> computer is needed and I'm a bit short right now. >> >> > The behaviour of "cannot bind to that socket" could be correct. On a > single machine there can be only one process listening on a given port. > So, if an application binds to a port, no other applications (neither > another instance of the same) can bind to that port again. > This can be possible if the machine has more than one interface, say > "127.0.0.1" and "192.168.1.1". Then two programs can listen on the same > port, but on different interfaces. > > Thanks for the clarification. What I had been doing is indeed as you describe it: trying on listen on the same port of the same interface more than once. Maybe I should explain what I have been up to; maybe someone can come up with a better concept. This for a 24 hour dinghy charity race that happens once a year. There are programs that put race data into a mysql database ("providers") and other programs that display the data in different ways ("users") depending on what audience is targeted. Ideally, there could be any number of providers and users on the same machine. How would a "user" know that new data is available? Traditionally, I had been polling the database but it does not scale very well, particularly if new data needs to be displayed fairly quickly. What I had done now is to have each provider (after changing data in the db) send a udp broadcast to the whole subnet saying "to whom it may concern, table x in db y has changed." It does not need to know who the users are. Likewise, the users do not need to know who the providers are. All they need to know is where the database is. It is very simple and worked very well, except I could only have one user per machine. Ideas, anyone? Could database triggers do the job? Best Regards, Werner Dahn From gambas at ...1... Wed Nov 5 11:42:01 2008 From: gambas at ...1... (Benoit Minisini) Date: Wed, 5 Nov 2008 11:42:01 +0100 Subject: [Gambas-user] Problem with broadcasting UDP sockets - was Re: Problem with READ on a UDP socket In-Reply-To: <49117642.1040005@...1000...> References: <32405454.56691225795712821.JavaMail.root@...1834...> <49112F6E.5070908@...1909...> <49117642.1040005@...1000...> Message-ID: <200811051142.01537.gambas@...1...> On mercredi 5 novembre 2008, Werner wrote: > Doriano Blengino wrote: > > Werner ha scritto: > >> Benoit Minisini wrote: > >>> On mardi 4 novembre 2008, Werner wrote: > >>>> also, receiving udp broadcasts works only for one application. Any > >>>> additional gambas application on the same machine throws > >>>> a "Cannot bind to that socket" error. > >>>> > >>>> Best Regards > >>>> Werner > >>> > >>> Can you provide a little example that shows the problem? > >> > >> will do, but it might take a week or two. Obviously, more than one > >> computer is needed and I'm a bit short right now. > > > > The behaviour of "cannot bind to that socket" could be correct. On a > > single machine there can be only one process listening on a given port. > > So, if an application binds to a port, no other applications (neither > > another instance of the same) can bind to that port again. > > This can be possible if the machine has more than one interface, say > > "127.0.0.1" and "192.168.1.1". Then two programs can listen on the same > > port, but on different interfaces. > > Thanks for the clarification. What I had been doing is indeed as you > describe it: trying on listen on the same port of the same interface > more than once. > > Maybe I should explain what I have been up to; maybe someone can come up > with a better concept. > > This for a 24 hour dinghy charity race that happens once a year. > > There are programs that put race data into a mysql database > ("providers") and other programs that display the data in different ways > ("users") depending on what audience is targeted. > Ideally, there could be any number of providers and users on the same > machine. > > How would a "user" know that new data is available? Traditionally, I had > been polling the database but it does not scale very well, particularly > if new data needs to be displayed fairly quickly. > > What I had done now is to have each provider (after changing data in the > db) send a udp broadcast to the whole subnet saying "to whom it may > concern, table x in db y has changed." It does not need to know who the > users are. Likewise, the users do not need to know who the providers > are. All they need to know is where the database is. > > It is very simple and worked very well, except I could only have one > user per machine. > > Ideas, anyone? Could database triggers do the job? > > Best Regards, > Werner Dahn > Maybe you can make a little program that just listen to the socket, and then warn all others programs on the same machine (you can use a file for that). Regards, -- Benoit Minisini From eilert-sprachen at ...221... Wed Nov 5 12:06:00 2008 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Wed, 05 Nov 2008 12:06:00 +0100 Subject: [Gambas-user] Tableview edit on wrong line? Message-ID: <49117E18.2030302@...221...> Hi folks, who's using the edit method in the TableView control? When I tried it for the first time the other day, the editor or listbox always showed up one and a half lines UNDER the position of the cell I had clicked on (but with the correct contents). It doesn't have a frame, so I guess it is supposed to appear within the clicked cell. Everything else runs ok, but the position is not the one expected. Is this a bug or a feature? :-) Regards Rolf From almodook at ...2007... Wed Nov 5 13:00:14 2008 From: almodook at ...2007... (moon_walker) Date: Wed, 5 Nov 2008 04:00:14 -0800 (PST) Subject: [Gambas-user] Tableview edit on wrong line? In-Reply-To: <49117E18.2030302@...221...> References: <49117E18.2030302@...221...> Message-ID: <20340423.post@...1379...> Hi Rolf, i experienced the same issue. It depends on the placing of the tableview on the form. If the tableview is placed on a plain form, it worked for me as expected. If the tableview was placed on a complicated hierarchy (h-split, tabstrip,datasource, v-panel, ) then it was a bit ugly. So i decided to realise the data entry with _menu event and a modal form for dataentry. This method is quite simple and easy to get use to it. br Attila Rolf-Werner Eilert wrote: > > Hi folks, > > who's using the edit method in the TableView control? > > When I tried it for the first time the other day, the editor or listbox > always showed up one and a half lines UNDER the position of the cell I > had clicked on (but with the correct contents). It doesn't have a frame, > so I guess it is supposed to appear within the clicked cell. > > Everything else runs ok, but the position is not the one expected. > > Is this a bug or a feature? :-) > > Regards > > Rolf > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge > Build the coolest Linux based applications with Moblin SDK & win great > prizes > Grand prize is a trip for two to an Open Source event anywhere in the > world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > -- View this message in context: http://www.nabble.com/Tableview-edit-on-wrong-line--tp20339743p20340423.html Sent from the gambas-user mailing list archive at Nabble.com. From gareth at ...1689... Wed Nov 5 13:19:24 2008 From: gareth at ...1689... (Gareth Bult) Date: Wed, 5 Nov 2008 12:19:24 +0000 (GMT) Subject: [Gambas-user] Problem with broadcasting UDP sockets - was Re: Problem with READ on a UDP socket In-Reply-To: <49117642.1040005@...1000...> Message-ID: <14590436.63291225887564966.JavaMail.root@...1834...> Urm, When you say doesn't scale .. exactly how many clients do you have and how quickly do they need to know about updates? Let's say for the sake of argument your SQL server can process 2000 moderate queries per second (not unreasonable) and you want to poll every second with 10 clients. This really isn't much of an overhead .. ??? Bear in mind MySQL has a query cache .. if you go 100 seconds with no updates, 10 clients will make 1000 SQL requests, but these will be identical and the server will probably only have to do any real work once ... so ... ?? Gareth. ----- Original Message ----- From: "Werner" To: gambas-user at lists.sourceforge.net Sent: Wednesday, 5 November, 2008 10:32:34 AM GMT +00:00 GMT Britain, Ireland, Portugal Subject: Re: [Gambas-user] Problem with broadcasting UDP sockets - was Re: Problem with READ on a UDP socket Doriano Blengino wrote: > Werner ha scritto: > >> Benoit Minisini wrote: >> >> >>> On mardi 4 novembre 2008, Werner wrote: >>> >>> >>> >>>> also, receiving udp broadcasts works only for one application. Any >>>> additional gambas application on the same machine throws >>>> a "Cannot bind to that socket" error. >>>> >>>> Best Regards >>>> Werner >>>> >>>> >>>> >>>> >>> Can you provide a little example that shows the problem? >>> >>> >>> >>> >> will do, but it might take a week or two. Obviously, more than one >> computer is needed and I'm a bit short right now. >> >> > The behaviour of "cannot bind to that socket" could be correct. On a > single machine there can be only one process listening on a given port. > So, if an application binds to a port, no other applications (neither > another instance of the same) can bind to that port again. > This can be possible if the machine has more than one interface, say > "127.0.0.1" and "192.168.1.1". Then two programs can listen on the same > port, but on different interfaces. > > Thanks for the clarification. What I had been doing is indeed as you describe it: trying on listen on the same port of the same interface more than once. Maybe I should explain what I have been up to; maybe someone can come up with a better concept. This for a 24 hour dinghy charity race that happens once a year. There are programs that put race data into a mysql database ("providers") and other programs that display the data in different ways ("users") depending on what audience is targeted. Ideally, there could be any number of providers and users on the same machine. How would a "user" know that new data is available? Traditionally, I had been polling the database but it does not scale very well, particularly if new data needs to be displayed fairly quickly. What I had done now is to have each provider (after changing data in the db) send a udp broadcast to the whole subnet saying "to whom it may concern, table x in db y has changed." It does not need to know who the users are. Likewise, the users do not need to know who the providers are. All they need to know is where the database is. It is very simple and worked very well, except I could only have one user per machine. Ideas, anyone? Could database triggers do the job? Best Regards, Werner Dahn ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- Managing Director, Encryptec Limited Tel: 0845 5082719, Mob: 0785 3305393 Email: gareth at ...1689... Statements made are at all times subject to Encryptec's Terms and Conditions of Business, which are available upon request. From pokerbirch at ...1601... Wed Nov 5 13:39:26 2008 From: pokerbirch at ...1601... (birchy) Date: Wed, 5 Nov 2008 04:39:26 -0800 (PST) Subject: [Gambas-user] Parsing HTML with Split(). Is this a BUG?? In-Reply-To: <200811050004.28347.gambas@...1...> References: <20311394.post@...1379...> <200811050004.28347.gambas@...1...> Message-ID: <20340953.post@...1379...> Bugzilla from gambas at ...1... wrote: > Yep. Split() is not powerful enough for that. Ok, thanks. Does Gambas support any HTML parsing libraries or some kind of DOM structure? -- View this message in context: http://www.nabble.com/Parsing-HTML-with-Split%28%29.-Is-this-a-BUG---tp20311394p20340953.html Sent from the gambas-user mailing list archive at Nabble.com. From gambas at ...1... Wed Nov 5 13:48:17 2008 From: gambas at ...1... (Benoit Minisini) Date: Wed, 5 Nov 2008 13:48:17 +0100 Subject: [Gambas-user] Parsing HTML with Split(). Is this a BUG?? In-Reply-To: <20340953.post@...1379...> References: <20311394.post@...1379...> <200811050004.28347.gambas@...1...> <20340953.post@...1379...> Message-ID: <200811051348.17399.gambas@...1...> On mercredi 5 novembre 2008, birchy wrote: > Bugzilla from gambas at ...1... wrote: > > Yep. Split() is not powerful enough for that. > > Ok, thanks. Does Gambas support any HTML parsing libraries or some kind of > DOM structure? No, but you have a gb.xml component. -- Benoit Minisini From doriano.blengino at ...1909... Wed Nov 5 14:33:55 2008 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Wed, 05 Nov 2008 14:33:55 +0100 Subject: [Gambas-user] Problem with broadcasting UDP sockets - was Re: Problem with READ on a UDP socket In-Reply-To: <14590436.63291225887564966.JavaMail.root@...1834...> References: <14590436.63291225887564966.JavaMail.root@...1834...> Message-ID: <4911A0C3.8080004@...1909...> Gareth Bult ha scritto: > Urm, > > When you say doesn't scale .. exactly how many clients do you have and how quickly do they need to know about updates? > > Let's say for the sake of argument your SQL server can process 2000 moderate queries per second (not unreasonable) and you want to poll every second with 10 clients. This really isn't much of an overhead .. ??? > > Bear in mind MySQL has a query cache .. if you go 100 seconds with no updates, 10 clients will make 1000 SQL requests, but these will be identical and the server will probably only have to do any real work once ... so ... ?? > > This for a 24 hour dinghy charity race that happens once a year. > > There are programs that put race data into a mysql database > ("providers") and other programs that display the data in different ways > ("users") depending on what audience is targeted. > Ideally, there could be any number of providers and users on the same > machine. > > How would a "user" know that new data is available? Traditionally, I had > been polling the database but it does not scale very well, particularly > if new data needs to be displayed fairly quickly. > > What I had done now is to have each provider (after changing data in the > db) send a udp broadcast to the whole subnet saying "to whom it may > concern, table x in db y has changed." It does not need to know who the > users are. Likewise, the users do not need to know who the providers > are. All they need to know is where the database is. > > It is very simple and worked very well, except I could only have one > user per machine. > > Ideas, anyone? Could database triggers do the job? > > Best Regards, > Werner Dahn > I agree with Gareth... but assuming that you have many "tables x" in many "db y", you could make one more table in a common database, where to put log records in the form "datetime - table x in db y has been updated". Every user can then do a select on this single table, selecting on "datetime > last-time-I-readed-this-log". Otherwise, as Benoit says, a single daemon listening in every machine could service many users. But it is not so simple to build a reliable system; if a broadcast packet fails to reach a machine, there is no easy way to know about. If broadcasts fire often (say, every 10 seconds), this could be not a problem. So, the database solution, if viable, is guaranteed to work. Cheers, Doriano From eilert-sprachen at ...221... Wed Nov 5 15:26:36 2008 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Wed, 05 Nov 2008 15:26:36 +0100 Subject: [Gambas-user] Tableview edit on wrong line? In-Reply-To: <20340423.post@...1379...> References: <49117E18.2030302@...221...> <20340423.post@...1379...> Message-ID: <4911AD1C.5080902@...221...> This shows me, it's more of a bug... :-) Didn't realise, but my first trial with it took place on a form with a complicated hierarchy. So that's why! First guess: The hidden edit or listbox control is invoked with coordinates which do not take into account the real tableview coordinates when in a hierarchy. Should be easy to repair for someone who knows where it is... Rolf moon_walker schrieb: > Hi Rolf, > > i experienced the same issue. > It depends on the placing of the tableview on the form. > If the tableview is placed on a plain form, it worked for me as expected. > If the tableview was placed on a complicated hierarchy (h-split, > tabstrip,datasource, v-panel, ) > then it was a bit ugly. > > So i decided to realise the data entry with _menu event and a modal form for > dataentry. > This method is quite simple and easy to get use to it. > > > br > Attila > > > Rolf-Werner Eilert wrote: >> Hi folks, >> >> who's using the edit method in the TableView control? >> >> When I tried it for the first time the other day, the editor or listbox >> always showed up one and a half lines UNDER the position of the cell I >> had clicked on (but with the correct contents). It doesn't have a frame, >> so I guess it is supposed to appear within the clicked cell. >> >> Everything else runs ok, but the position is not the one expected. >> >> Is this a bug or a feature? :-) >> >> Regards >> >> Rolf >> >> ------------------------------------------------------------------------- >> This SF.Net email is sponsored by the Moblin Your Move Developer's >> challenge >> Build the coolest Linux based applications with Moblin SDK & win great >> prizes >> Grand prize is a trip for two to an Open Source event anywhere in the >> world >> http://moblin-contest.org/redirect.php?banner_id=100&url=/ >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> >> > From leo_senpao at ...1541... Wed Nov 5 15:40:08 2008 From: leo_senpao at ...1541... (Leo Sendra) Date: Wed, 5 Nov 2008 22:40:08 +0800 (SGT) Subject: [Gambas-user] Tableview edit on wrong line? Message-ID: <522161.23062.qm@...1988...> I also have a problem about edit method in tableview object. When I want to perform a list box using edit method, it doesn't work. Does anybody can show me about the code of using edit method in tableview object??? moon_walker schrieb: > Hi Rolf, > > i experienced the same issue. > It depends on the placing of the tableview on the form. > If the tableview is placed on a plain form, it worked for me as expected. > If the tableview was placed on a complicated hierarchy (h-split, > tabstrip,datasource, v-panel, ) > then it was a bit ugly. > > So i decided to realise the data entry with _menu event and a modal form for > dataentry. > This method is quite simple and easy to get use to it. > > > br > Attila ___________________________________________________________________________ Dapatkan alamat Email baru Anda! Dapatkan nama yang selalu Anda inginkan sebelum diambil orang lain! http://mail.promotions.yahoo.com/newdomains/id/ From eilert-sprachen at ...221... Wed Nov 5 15:57:18 2008 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Wed, 05 Nov 2008 15:57:18 +0100 Subject: [Gambas-user] Tableview edit on wrong line? In-Reply-To: <522161.23062.qm@...1988...> References: <522161.23062.qm@...1988...> Message-ID: <4911B44E.40401@...221...> Shouldn't be a problem. What you need is an array that takes the list contents, then you give Edit the list and set TRUE or FALSE for the edit property of the listbox control. This is my little trial example, "ls" is the array here, "tb" is my tableview in the program which I used for the experiment. To make it easier, I put it into the Click event. In practice, I would rather use double click or so... PUBLIC SUB tb_Click() DIM ls AS NEW String[] ls.Add("eins") ls.Add("zwei") ls.Add("drei") tb.Edit(ls, TRUE) END This is just meant to say "now I would save if this was a real application" :-) PUBLIC SUB tb_Save(Row AS Integer, Column AS Integer, Value AS String) Message.Info(Row & "::" & Column & "::" & Value) END Rolf Leo Sendra schrieb: > I also have a problem about edit method in tableview object. > When I want to perform a list box using edit method, it doesn't work. > Does anybody can show me about the code of using edit method in tableview object??? > > moon_walker schrieb: >> Hi Rolf, >> >> i experienced the same issue. >> It depends on the placing of the tableview on the form. >> If the tableview is placed on a plain form, it worked for me as expected. >> If the tableview was placed on a complicated hierarchy (h-split, >> tabstrip,datasource, v-panel, ) >> then it was a bit ugly. >> >> So i decided to realise the data entry with _menu event and a modal form for >> dataentry. >> This method is quite simple and easy to get use to it. >> >> >> br >> Attila > > > ___________________________________________________________________________ > Dapatkan alamat Email baru Anda! > Dapatkan nama yang selalu Anda inginkan sebelum diambil orang lain! > http://mail.promotions.yahoo.com/newdomains/id/ > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From wdahn at ...1000... Wed Nov 5 17:59:46 2008 From: wdahn at ...1000... (Werner) Date: Thu, 06 Nov 2008 00:59:46 +0800 Subject: [Gambas-user] Problem with broadcasting UDP sockets - was Re: Problem with READ on a UDP socket In-Reply-To: <14590436.63291225887564966.JavaMail.root@...1834...> References: <14590436.63291225887564966.JavaMail.root@...1834...> Message-ID: <4911D102.4030803@...1000...> Gareth Bult wrote: > Urm, > > When you say doesn't scale .. exactly how many clients do you have and how quickly do they need to know about updates? > > Let's say for the sake of argument your SQL server can process 2000 moderate queries per second (not unreasonable) and you want to poll every second with 10 clients. This really isn't much of an overhead .. ??? > > Bear in mind MySQL has a query cache .. if you go 100 seconds with no updates, 10 clients will make 1000 SQL requests, but these will be identical and the server will probably only have to do any real work once ... so ... ?? > > Gareth. > It being a charity race I have to live with whatever hardware I can get my hands on. The server this year was a Celeron 1.8GHz in runlevel 5 with KDE, printing, 2 or 3 apps in use, sometimes a browser for the weather, all in 500 MB. I have a very nice HP Proliant server sitting right next to me here. Unfortunately, it is bespoken :-) Regards Werner From the.at.robert at ...626... Thu Nov 6 13:05:42 2008 From: the.at.robert at ...626... (Robert Moss) Date: Thu, 6 Nov 2008 04:05:42 -0800 Subject: [Gambas-user] Gambas Help - PLEASE - Object Arrays - Need help ASAP Message-ID: Hello, I am fairly new to GAMBAS but a experienced in C++ and VB 6. I am trying to create an array of sockets, so that I can maintain a dynamic number of connections, and use the same code for each. I've been struggling for HOURS searching for the answer on google, and trying as much different code as I can think of, experimenting, but to no avail. I can create the objects, but I can't figure out how to receive messages from them (actually I can't figure out how to distinguish them). A simpler example with buttons: This works, but I need to know WHICH button fired the event, PUBLIC SUB Form_Open() DIM btns[2] AS Button btns[0] = NEW Button(FMain) AS "btns" btns[0].Caption = "Test" btns[0].Left = 50 btns[0].Top = 50 btns[0].Show btns[1] = NEW Button(FMain) AS "btns" btns[1].Caption = "Test 2" btns[1].Left = 150 btns[1].Top = 50 btns[1].Show END PUBLIC SUB btns_Click() Message.Info("augh: ") END ' using PUBLIC SUB btns_Click(Index as Integer) doesnt work ' nor does PUBLIC SUB btns[key]_Click() 'also, using the current function, I tried maybe Message.Info("ID: " & btns.Id) or ANYTHING This functionality is CRUCIAL please help asap. -Robert From rospolosco at ...152... Thu Nov 6 13:16:13 2008 From: rospolosco at ...152... (Stefano Palmeri) Date: Thu, 6 Nov 2008 13:16:13 +0100 Subject: [Gambas-user] Gambas Help - PLEASE - Object Arrays - Need help ASAP In-Reply-To: References: Message-ID: <200811061316.13685.rospolosco@...152...> Il gioved? 6 novembre 2008 13:05:42 Robert Moss ha scritto: > Hello, I am fairly new to GAMBAS but a experienced in C++ and VB 6. I am > trying to create an array of sockets, so that I can maintain a dynamic > number of connections, and use the same code for each. > > I've been struggling for HOURS searching for the answer on google, and > trying as much different code as I can think of, experimenting, but to no > avail. I can create the objects, but I can't figure out how to receive > messages from them (actually I can't figure out how to distinguish them). > > A simpler example with buttons: This works, but I need to know WHICH > button fired the event, > > PUBLIC SUB Form_Open() > > DIM btns[2] AS Button > > btns[0] = NEW Button(FMain) AS "btns" > > btns[0].Caption = "Test" > btns[0].Left = 50 > btns[0].Top = 50 > btns[0].Show > > btns[1] = NEW Button(FMain) AS "btns" > > btns[1].Caption = "Test 2" > btns[1].Left = 150 > btns[1].Top = 50 > > btns[1].Show > > END > > PUBLIC SUB btns_Click() > Message.Info("augh: ") > END > ' using PUBLIC SUB btns_Click(Index as Integer) doesnt work > ' nor does PUBLIC SUB btns[key]_Click() > > 'also, using the current function, I tried maybe Message.Info("ID: " & > btns.Id) or ANYTHING > > This functionality is CRUCIAL please help asap. > > -Robert > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge Build the coolest Linux based applications with Moblin SDK & win > great prizes Grand prize is a trip for two to an Open Source event anywhere > in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user PUBLIC SUB btns_Click() Message.Info("augh: ") PRINT LAST.Caption END From the.at.robert at ...626... Thu Nov 6 13:19:19 2008 From: the.at.robert at ...626... (Robert Moss) Date: Thu, 6 Nov 2008 04:19:19 -0800 Subject: [Gambas-user] Gambas Help - PLEASE - Object Arrays - Need help ASAP In-Reply-To: <200811061316.13685.rospolosco@...152...> References: <200811061316.13685.rospolosco@...152...> Message-ID: Ok, awesome. But what is a control group and how do I use one? I can't find any documentation on it On Thu, Nov 6, 2008 at 4:16 AM, Stefano Palmeri wrote: > Il gioved? 6 novembre 2008 13:05:42 Robert Moss ha scritto: > > Hello, I am fairly new to GAMBAS but a experienced in C++ and VB 6. I am > > trying to create an array of sockets, so that I can maintain a dynamic > > number of connections, and use the same code for each. > > > > I've been struggling for HOURS searching for the answer on google, and > > trying as much different code as I can think of, experimenting, but to no > > avail. I can create the objects, but I can't figure out how to receive > > messages from them (actually I can't figure out how to distinguish them). > > > > A simpler example with buttons: This works, but I need to know WHICH > > button fired the event, > > > > PUBLIC SUB Form_Open() > > > > DIM btns[2] AS Button > > > > btns[0] = NEW Button(FMain) AS "btns" > > > > btns[0].Caption = "Test" > > btns[0].Left = 50 > > btns[0].Top = 50 > > btns[0].Show > > > > btns[1] = NEW Button(FMain) AS "btns" > > > > btns[1].Caption = "Test 2" > > btns[1].Left = 150 > > btns[1].Top = 50 > > > > btns[1].Show > > > > END > > > > PUBLIC SUB btns_Click() > > Message.Info("augh: ") > > END > > ' using PUBLIC SUB btns_Click(Index as Integer) doesnt work > > ' nor does PUBLIC SUB btns[key]_Click() > > > > 'also, using the current function, I tried maybe Message.Info("ID: " & > > btns.Id) or ANYTHING > > > > This functionality is CRUCIAL please help asap. > > > > -Robert > > ------------------------------------------------------------------------- > > This SF.Net email is sponsored by the Moblin Your Move Developer's > > challenge Build the coolest Linux based applications with Moblin SDK & > win > > great prizes Grand prize is a trip for two to an Open Source event > anywhere > > in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > PUBLIC SUB btns_Click() > > Message.Info("augh: ") > > PRINT LAST.Caption > > END > > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge > Build the coolest Linux based applications with Moblin SDK & win great > prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas.fr at ...626... Thu Nov 6 14:08:42 2008 From: gambas.fr at ...626... (Fabien Bodard) Date: Thu, 6 Nov 2008 14:08:42 +0100 Subject: [Gambas-user] Gambas Help - PLEASE - Object Arrays - Need help ASAP In-Reply-To: References: <200811061316.13685.rospolosco@...152...> Message-ID: <6324a42a0811060508n6b518144j420a80f1c2e670b@...627...> robert can you write your question in a more detailled way, ... because i can explain you ... but do you want to know ? to know which button ... you can just put a numer in each in the tag property ... then in the event you get the number by Last.Tag For i = 0 to 10 hBut = New Button(me) as "MyBut" hBut.tag = i hBut.Caption = "button " & i next Public sub MyBut_Click Print Last.Tag where last is your button :)... there is not always the need to maintain an array of reference to it ... as vb do End 2008/11/6 Robert Moss : > Ok, awesome. But what is a control group and how do I use one? I can't find > any documentation on it > > On Thu, Nov 6, 2008 at 4:16 AM, Stefano Palmeri wrote: > >> Il gioved? 6 novembre 2008 13:05:42 Robert Moss ha scritto: >> > Hello, I am fairly new to GAMBAS but a experienced in C++ and VB 6. I am >> > trying to create an array of sockets, so that I can maintain a dynamic >> > number of connections, and use the same code for each. >> > >> > I've been struggling for HOURS searching for the answer on google, and >> > trying as much different code as I can think of, experimenting, but to no >> > avail. I can create the objects, but I can't figure out how to receive >> > messages from them (actually I can't figure out how to distinguish them). >> > >> > A simpler example with buttons: This works, but I need to know WHICH >> > button fired the event, >> > >> > PUBLIC SUB Form_Open() >> > >> > DIM btns[2] AS Button >> > >> > btns[0] = NEW Button(FMain) AS "btns" >> > >> > btns[0].Caption = "Test" >> > btns[0].Left = 50 >> > btns[0].Top = 50 >> > btns[0].Show >> > >> > btns[1] = NEW Button(FMain) AS "btns" >> > >> > btns[1].Caption = "Test 2" >> > btns[1].Left = 150 >> > btns[1].Top = 50 >> > >> > btns[1].Show >> > >> > END >> > >> > PUBLIC SUB btns_Click() >> > Message.Info("augh: ") >> > END >> > ' using PUBLIC SUB btns_Click(Index as Integer) doesnt work >> > ' nor does PUBLIC SUB btns[key]_Click() >> > >> > 'also, using the current function, I tried maybe Message.Info("ID: " & >> > btns.Id) or ANYTHING >> > >> > This functionality is CRUCIAL please help asap. >> > >> > -Robert >> > ------------------------------------------------------------------------- >> > This SF.Net email is sponsored by the Moblin Your Move Developer's >> > challenge Build the coolest Linux based applications with Moblin SDK & >> win >> > great prizes Grand prize is a trip for two to an Open Source event >> anywhere >> > in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ >> > _______________________________________________ >> > Gambas-user mailing list >> > Gambas-user at lists.sourceforge.net >> > https://lists.sourceforge.net/lists/listinfo/gambas-user >> PUBLIC SUB btns_Click() >> >> Message.Info("augh: ") >> >> PRINT LAST.Caption >> >> END >> >> >> ------------------------------------------------------------------------- >> This SF.Net email is sponsored by the Moblin Your Move Developer's >> challenge >> Build the coolest Linux based applications with Moblin SDK & win great >> prizes >> Grand prize is a trip for two to an Open Source event anywhere in the world >> http://moblin-contest.org/redirect.php?banner_id=100&url=/ >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas.fr at ...626... Thu Nov 6 14:09:34 2008 From: gambas.fr at ...626... (Fabien Bodard) Date: Thu, 6 Nov 2008 14:09:34 +0100 Subject: [Gambas-user] Gambas Help - PLEASE - Object Arrays - Need help ASAP In-Reply-To: <6324a42a0811060508n6b518144j420a80f1c2e670b@...627...> References: <200811061316.13685.rospolosco@...152...> <6324a42a0811060508n6b518144j420a80f1c2e670b@...627...> Message-ID: <6324a42a0811060509g221f5ee5laf38dd3743a5ea44@...627...> the group is only the fact that the buttons have the same event handle 2008/11/6 Fabien Bodard : > robert can you write your question in a more detailled way, ... > > because i can explain you ... but do you want to know ? > > to know which button ... you can just put a numer in each in the tag > property ... > > then in the event you get the number by Last.Tag > > > For i = 0 to 10 > > hBut = New Button(me) as "MyBut" > > hBut.tag = i > > hBut.Caption = "button " & i > > next > > > Public sub MyBut_Click > > Print Last.Tag > > where last is your button :)... there is not always the need to > maintain an array of reference to it ... as vb do > > > End > > 2008/11/6 Robert Moss : >> Ok, awesome. But what is a control group and how do I use one? I can't find >> any documentation on it >> >> On Thu, Nov 6, 2008 at 4:16 AM, Stefano Palmeri wrote: >> >>> Il gioved? 6 novembre 2008 13:05:42 Robert Moss ha scritto: >>> > Hello, I am fairly new to GAMBAS but a experienced in C++ and VB 6. I am >>> > trying to create an array of sockets, so that I can maintain a dynamic >>> > number of connections, and use the same code for each. >>> > >>> > I've been struggling for HOURS searching for the answer on google, and >>> > trying as much different code as I can think of, experimenting, but to no >>> > avail. I can create the objects, but I can't figure out how to receive >>> > messages from them (actually I can't figure out how to distinguish them). >>> > >>> > A simpler example with buttons: This works, but I need to know WHICH >>> > button fired the event, >>> > >>> > PUBLIC SUB Form_Open() >>> > >>> > DIM btns[2] AS Button >>> > >>> > btns[0] = NEW Button(FMain) AS "btns" >>> > >>> > btns[0].Caption = "Test" >>> > btns[0].Left = 50 >>> > btns[0].Top = 50 >>> > btns[0].Show >>> > >>> > btns[1] = NEW Button(FMain) AS "btns" >>> > >>> > btns[1].Caption = "Test 2" >>> > btns[1].Left = 150 >>> > btns[1].Top = 50 >>> > >>> > btns[1].Show >>> > >>> > END >>> > >>> > PUBLIC SUB btns_Click() >>> > Message.Info("augh: ") >>> > END >>> > ' using PUBLIC SUB btns_Click(Index as Integer) doesnt work >>> > ' nor does PUBLIC SUB btns[key]_Click() >>> > >>> > 'also, using the current function, I tried maybe Message.Info("ID: " & >>> > btns.Id) or ANYTHING >>> > >>> > This functionality is CRUCIAL please help asap. >>> > >>> > -Robert >>> > ------------------------------------------------------------------------- >>> > This SF.Net email is sponsored by the Moblin Your Move Developer's >>> > challenge Build the coolest Linux based applications with Moblin SDK & >>> win >>> > great prizes Grand prize is a trip for two to an Open Source event >>> anywhere >>> > in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ >>> > _______________________________________________ >>> > Gambas-user mailing list >>> > Gambas-user at lists.sourceforge.net >>> > https://lists.sourceforge.net/lists/listinfo/gambas-user >>> PUBLIC SUB btns_Click() >>> >>> Message.Info("augh: ") >>> >>> PRINT LAST.Caption >>> >>> END >>> >>> >>> ------------------------------------------------------------------------- >>> This SF.Net email is sponsored by the Moblin Your Move Developer's >>> challenge >>> Build the coolest Linux based applications with Moblin SDK & win great >>> prizes >>> Grand prize is a trip for two to an Open Source event anywhere in the world >>> http://moblin-contest.org/redirect.php?banner_id=100&url=/ >>> _______________________________________________ >>> Gambas-user mailing list >>> Gambas-user at lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>> >> ------------------------------------------------------------------------- >> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge >> Build the coolest Linux based applications with Moblin SDK & win great prizes >> Grand prize is a trip for two to an Open Source event anywhere in the world >> http://moblin-contest.org/redirect.php?banner_id=100&url=/ >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > From sourceforge-raindog2 at ...94... Thu Nov 6 14:42:45 2008 From: sourceforge-raindog2 at ...94... (Rob) Date: Thu, 6 Nov 2008 09:42:45 -0400 Subject: [Gambas-user] Gambas Help - PLEASE - Object Arrays - Need help ASAP In-Reply-To: References: <200811061316.13685.rospolosco@...152...> Message-ID: <200811060842.45846.sourceforge-raindog2@...94...> On Thursday 06 November 2008 07:19, Robert Moss wrote: > Ok, awesome. But what is a control group and how do I use one? I can't > find any documentation on it The "control group" concept in the form designer corresponds to what comes after the "AS" when you programmatically create a control. In the example you posted, you're creating a control group. Control groups don't automatically create an array when creating them in the form designer, or allow you to iterate through the controls; it just ensures that all the controls in the group trigger the same events. But you're already creating an array in your code, so you've gotten that part licked. Differentiating between the controls when their event gets fired is where most people get tripped up. Most people use the Tag property of each control to identify it, like this: ' in Form_Open btns[0].tag = 0 btns[1].tag = 1 ' in btns_Click dim btnindex as integer btnindex = LAST.Tag Message.Info("You pressed button " & btnindex) I find this usage clunky as well, but I've also run into situations where I wanted multiple controls of different types to trigger the same event, and control groups allowed me to do that where VB control arrays wouldn't have. Rob From leo_senpao at ...1541... Thu Nov 6 15:15:06 2008 From: leo_senpao at ...1541... (Leo Sendra) Date: Thu, 6 Nov 2008 22:15:06 +0800 (SGT) Subject: [Gambas-user] Tableview edit on wrong line? Message-ID: <109914.98501.qm@...2008...> Thanks.. It's work well... But, should I use a mouse to choose the option in a tableview combo box?? Couldn't I use up arrow and down arrow on my keyboard to choose those option in combo box??? I have already tried up and down arrow. But, it just move to other cell. >Shouldn't be a problem. What you need is an array that takes the list contents, then you give Edit the list and set TRUE or FALSE for the edit property of the listbox >control. This is my little trial example, "ls" is the array here, "tb" is my tableview in the program which I used for the experiment. To make it easier, I put it into the Click >event. In practice, I would rather use double click or so... >PUBLIC SUB tb_Click() >DIM ls AS NEW String[] >ls.Add("eins") >ls.Add("zwei") >ls.Add("drei") >tb.Edit(ls, TRUE) >END >This is just meant to say "now I would save if this was a real application" :-) >PUBLIC SUB tb_Save(Row AS Integer, Column AS Integer, Value AS String) >Message.Info(Row & "::" & Column & "::" & Value) >END >Rolf ___________________________________________________________________________ Dapatkan alamat Email baru Anda! Dapatkan nama yang selalu Anda inginkan sebelum diambil orang lain! http://mail.promotions.yahoo.com/newdomains/id/ From jara.svec at ...2006... Thu Nov 6 16:34:13 2008 From: jara.svec at ...2006... (Jaroslav Svec) Date: Thu, 06 Nov 2008 16:34:13 +0100 Subject: [Gambas-user] Which control of a form has a focus? Message-ID: <49130E75.9050304@...2006...> Hi All, is there posibility to find which control of the form has a focus? regards Jaroslav -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/x-pkcs7-signature Size: 3258 bytes Desc: S/MIME Cryptographic Signature URL: From jara.svec at ...2006... Thu Nov 6 16:47:31 2008 From: jara.svec at ...2006... (Jaroslav Svec) Date: Thu, 06 Nov 2008 16:47:31 +0100 Subject: [Gambas-user] Which control of a form has a focus? In-Reply-To: <49130E75.9050304@...2006...> References: <49130E75.9050304@...2006...> Message-ID: <49131193.2000509@...2006...> A non-text attachment was scrubbed... Name: smime.p7s Type: application/x-pkcs7-signature Size: 3258 bytes Desc: S/MIME Cryptographic Signature URL: From gambas.fr at ...626... Thu Nov 6 17:48:17 2008 From: gambas.fr at ...626... (Fabien Bodard) Date: Thu, 6 Nov 2008 17:48:17 +0100 Subject: [Gambas-user] Web Services: Working with WSDL In-Reply-To: <20334083.post@...1379...> References: <20328779.post@...1379...> <200811050005.15107.gambas@...1...> <20333544.post@...1379...> <200811050041.58640.gambas@...1...> <20334083.post@...1379...> Message-ID: <6324a42a0811060848w5d9dc5bcr65ff0bb26f071dd8@...627...> so if i understand well it's just a file that describe the function gived by the server and usable via the soap protocole. but gambas still not manage soap :/ and i'm too weak to that 2008/11/5 birchy : > > > > Benoit Minisini wrote: >> When you are talking about "generating code", you mean creating class >> proxies >> for the methods described by the WSDL XML syntax? Or accessing them >> transparently as Gambas classes and methods, the WSDL conversion being >> done >> on the fly and transparently? > > Either method would be useful. In Java and .Net, you have the ability to add > a Web Service which then asks for the URL of the WSDL file such as > http://api.google.com/GoogleSearch.wsdl . The IDE then auto generates the > data types and proxies for use within user specified classes and methods. I > must admit that i'm not particularly familiar with how the WSDL thing works > as i'm currently trying to get it working in Java but not having much > success. > > I suppose the cr?me de la cr?me would be for Gambas to actually create the > classes AND the functions within it. No other languages appears to do that, > yet the classes and functions required to interact with the website are > nearly always the same from user to user. The only parts that change are > user specific info such as usernames and passwords which are generally > passed as function arguments anyway... > -- > View this message in context: http://www.nabble.com/Web-Services%3A-Working-with-WSDL-tp20328779p20334083.html > Sent from the gambas-user mailing list archive at Nabble.com. > > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From pokerbirch at ...1601... Thu Nov 6 18:23:38 2008 From: pokerbirch at ...1601... (birchy) Date: Thu, 6 Nov 2008 09:23:38 -0800 (PST) Subject: [Gambas-user] Web Services: Working with WSDL In-Reply-To: <6324a42a0811060848w5d9dc5bcr65ff0bb26f071dd8@...627...> References: <20328779.post@...1379...> <200811050005.15107.gambas@...1...> <20333544.post@...1379...> <200811050041.58640.gambas@...1...> <20334083.post@...1379...> <6324a42a0811060848w5d9dc5bcr65ff0bb26f071dd8@...627...> Message-ID: <20365634.post@...1379...> Fabien Bodard-4 wrote: > > so if i understand well it's just a file that describe the function > gived by the server and usable via the soap protocole. > > but gambas still not manage soap :/ > > and i'm too weak to that Yes, that's basically what a WSDL file does. I'm also weak in SOAP and XML, however i may have a fairly simple solution. In simple terms, SOAP is simply a standard HTTP conversation between a server and client, using XML strings/packets. When Java or .Net auto-generate classes, all they are doing is creating the functions for each operation that the server will recognise. In VB6, my workaround for the lack of WSDL implementation was to write a function for each method and manually build the XML string within the function. I then sent it to the server via a standard HTTP request. I've never studied a WSDL file, but i'm sure it would be possible to parse it and auto-generate a single module or class containing a function for each server request. I'm actually interested in the Betfair web service, so i'll take a look at it when i get time. I don't think this is as difficult as it first seems. =) -- View this message in context: http://www.nabble.com/Web-Services%3A-Working-with-WSDL-tp20328779p20365634.html Sent from the gambas-user mailing list archive at Nabble.com. From doriano.blengino at ...1909... Thu Nov 6 19:37:23 2008 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Thu, 06 Nov 2008 19:37:23 +0100 Subject: [Gambas-user] Gambas Help - PLEASE - Object Arrays - Need help ASAP In-Reply-To: <200811060842.45846.sourceforge-raindog2@...94...> References: <200811061316.13685.rospolosco@...152...> <200811060842.45846.sourceforge-raindog2@...94...> Message-ID: <49133963.8080405@...1909...> Rob ha scritto: > On Thursday 06 November 2008 07:19, Robert Moss wrote: > >> Ok, awesome. But what is a control group and how do I use one? I can't >> find any documentation on it >> > > ' in Form_Open > btns[0].tag = 0 > btns[1].tag = 1 > Could also work (in the event handler): iF LAST=btnUp ... IF LAST=btnDown... i.e., LAST is a reference to the object that raised the event, and you can compare it to anything you like (probably widgets). The tag system is another way - sometimes tags are better, sometimes control/widget reference is. Regards, Doriano From doriano.blengino at ...1909... Thu Nov 6 19:40:50 2008 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Thu, 06 Nov 2008 19:40:50 +0100 Subject: [Gambas-user] Which control of a form has a focus? In-Reply-To: <49130E75.9050304@...2006...> References: <49130E75.9050304@...2006...> Message-ID: <49133A32.6040303@...1909...> Jaroslav Svec ha scritto: > Hi All, > > is there posibility to find which control of the form has a focus? Use application.activecontrol. Salutations, Doriano From sourceforge-raindog2 at ...94... Thu Nov 6 19:54:14 2008 From: sourceforge-raindog2 at ...94... (Rob) Date: Thu, 6 Nov 2008 13:54:14 -0500 Subject: [Gambas-user] Gambas Help - PLEASE - Object Arrays - Need help ASAP In-Reply-To: <49133963.8080405@...1909...> References: <200811060842.45846.sourceforge-raindog2@...94...> <49133963.8080405@...1909...> Message-ID: <200811061354.14724.sourceforge-raindog2@...94...> On Thursday 06 November 2008 13:37, Doriano Blengino wrote: > i.e., LAST is a reference to the object that raised the event, and you > can compare it to anything you like (probably widgets). Yes, that should work, but with limitations. You would have to hardcode the name of the control you wish to compare against at compile time. Gambas lacks enough introspection at present to obtain a reference to an object using its symbol name at run time. (As far as I know, the same is true of VB.) > The tag system is another way - sometimes tags are better, sometimes > control/widget reference is. Agreed. This will be easier if you have "OK" and "Cancel" buttons across the bottom of the screen and want to tell which one got pressed, but if you have an array of 64 buttons (or text boxes, like one of my clients) it might be time to start assigning tags at control creation. Rob From doriano.blengino at ...1909... Thu Nov 6 21:36:00 2008 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Thu, 06 Nov 2008 21:36:00 +0100 Subject: [Gambas-user] Gambas Help - PLEASE - Object Arrays - Need help ASAP In-Reply-To: <200811061354.14724.sourceforge-raindog2@...94...> References: <200811060842.45846.sourceforge-raindog2@...94...> <49133963.8080405@...1909...> <200811061354.14724.sourceforge-raindog2@...94...> Message-ID: <49135530.3070805@...1909...> Rob ha scritto: > On Thursday 06 November 2008 13:37, Doriano Blengino wrote: > >> i.e., LAST is a reference to the object that raised the event, and you >> can compare it to anything you like (probably widgets). >> > > Yes, that should work, but with limitations. You would have to hardcode > the name of the control you wish to compare against at compile time. > Gambas lacks enough introspection at present to obtain a reference to an > object using its symbol name at run time. (As far as I know, the same is > true of VB.) > Gambas does not lack introspection. You can compare LAST.name to a string, or LAST to a variable (an instance variable), or even look at the type of the object (object.Type(LAST)). The symbol name is a reference to the object, Mainly, my thought was directed to groups of widgets created at design time, where the name (symbol) of the widget/control *is* a reference to the object. >> The tag system is another way - sometimes tags are better, sometimes >> control/widget reference is. >> > > Agreed. This will be easier if you have "OK" and "Cancel" buttons across > the bottom of the screen and want to tell which one got pressed, but if > you have an array of 64 buttons (or text boxes, like one of my clients) it > might be time to start assigning tags at control creation. > If you have a true array, then LAST = btns[0] should work. If you don't have an array (ie: for i=0 to 10 bnt = new Button....), then you don't have any reference to the objects you created, so clearly you can't compare to a reference you don't have... But note that you don't have to use Tag - you could use Name, Left, or whatever differentiates these controls each other. Of course, Tag is devoted to such things. Regards, Doriano From jara.svec at ...2006... Thu Nov 6 22:04:28 2008 From: jara.svec at ...2006... (Jaroslav Svec) Date: Thu, 06 Nov 2008 22:04:28 +0100 Subject: [Gambas-user] Which control of a form has a focus? In-Reply-To: <49133A32.6040303@...1909...> References: <49130E75.9050304@...2006...> <49133A32.6040303@...1909...> Message-ID: <49135BDC.2080405@...2006...> A non-text attachment was scrubbed... Name: smime.p7s Type: application/x-pkcs7-signature Size: 3258 bytes Desc: S/MIME Cryptographic Signature URL: From jara.svec at ...2006... Thu Nov 6 22:17:35 2008 From: jara.svec at ...2006... (Jaroslav Svec) Date: Thu, 06 Nov 2008 22:17:35 +0100 Subject: [Gambas-user] Which control of a form has a focus?] Message-ID: <49135EEF.40602@...2006...> Thanks a lot Doriano. It solves any of my troubles with tableview. Jaroslav Doriano Blengino napsal(a): > Jaroslav Svec ha scritto: > >> Hi All, >> >> is there posibility to find which control of the form has a focus? >> > Use application.activecontrol. > > > Salutations, > Doriano > > > From gambas.fr at ...626... Thu Nov 6 23:21:25 2008 From: gambas.fr at ...626... (Fabien Bodard) Date: Thu, 6 Nov 2008 23:21:25 +0100 Subject: [Gambas-user] Compilation under Ubuntu 8.10 In-Reply-To: <6324a42a0811061402u67aac7c7iaadeaff93a9584a5@...627...> References: <6324a42a0811061402u67aac7c7iaadeaff93a9584a5@...627...> Message-ID: <6324a42a0811061421w1ddf660ek6d139d3947e33b83@...627...> an other thing ... don't forget to remove the kde lib from the compilation as the kde 3 packages are not in the kubuntu repos from now ./Configure -C --enable-kde=false 2008/11/6 Fabien Bodard : > I to all ... > > to compile the gambas svn you need to install this package before ... > in other case it will never compile as the 8.10 use a too new libtool > version and have gorgotten to maintain the old one in the > repositories. > From ron at ...1740... Fri Nov 7 00:16:11 2008 From: ron at ...1740... (Ron) Date: Fri, 07 Nov 2008 00:16:11 +0100 Subject: [Gambas-user] socket message Message-ID: <49137ABB.5040409@...1740...> Hi, QSocketNotifier: Multiple socket notifiers for same socket 36 and type read I have start getting these messages in the console for the last days. I guess due to the fact that something has changed in the svn regarding sockets? I'm using the gambas 2.9 trunk. Regards, Ron_2nd From pokerbirch at ...1601... Fri Nov 7 02:30:13 2008 From: pokerbirch at ...1601... (birchy) Date: Thu, 6 Nov 2008 17:30:13 -0800 (PST) Subject: [Gambas-user] Web Services: Working with WSDL In-Reply-To: <20365634.post@...1379...> References: <20328779.post@...1379...> <200811050005.15107.gambas@...1...> <20333544.post@...1379...> <200811050041.58640.gambas@...1...> <20334083.post@...1379...> <6324a42a0811060848w5d9dc5bcr65ff0bb26f071dd8@...627...> <20365634.post@...1379...> Message-ID: <20373153.post@...1379...> I've done a little research into the Betfair soap thing and here are 2 important urls: http://bdphelp.betfair.com/API6/6.0/RefGuide/wwhelp/wwhimpl/js/html/wwhelp.htm Betfair API6 Documentation https://api.betfair.com/global/v3/BFGlobalService.wsdl Betfair API6 Global WSDL file Their documentation states that the Login() request XML should look like this: ? ? ? ? ? The 5 ?'s are user defined values. I don't know how, but we should be able to produce the above XML from the WSDL file?? The WSDL file details the entire protocol, so no other information should be required. Perhaps this can be parsed with libxml or gb.xml? All XML requests should be sent to the server via http, so any "auto" code generation would produce: 1) A standard http function for sending/receiving (curl HttpClient??) 2) A single function for each service call. This would be a simple wrapper for the XML string, something like: PUBLIC FUNCTION Login(locationId AS String, password AS String, productId AS String, username AS String, vendorSoftwareId AS String) AS String DIM s[2] AS String ' build the XML request string s[0] = "" & "" & "" & "" & "" & "" & locationId & "" & "" & password & "" & "" & productId & "" & "" & username & "" & "" & vendorSoftwareId & "" & "" & "" & "" & "" ' set the url s[1] = "http://www.betfair.com/publicapi/v3/BFGlobalService/" ' send the request ' TO DO: pass XML to http function... END -- View this message in context: http://www.nabble.com/Web-Services%3A-Working-with-WSDL-tp20328779p20373153.html Sent from the gambas-user mailing list archive at Nabble.com. From the.at.robert at ...626... Fri Nov 7 11:05:39 2008 From: the.at.robert at ...626... (Robert Moss) Date: Fri, 7 Nov 2008 02:05:39 -0800 Subject: [Gambas-user] Gambas Help - PLEASE - Object Arrays - Need help ASAP In-Reply-To: <49135530.3070805@...1909...> References: <200811060842.45846.sourceforge-raindog2@...94...> <49133963.8080405@...1909...> <200811061354.14724.sourceforge-raindog2@...94...> <49135530.3070805@...1909...> Message-ID: OK, //CODE EXAMPLE AT END OF MSG I have a subclass of Socket, Which is a socket, but contains some extra data, so that in the event handler, I have more than just the TAG property to work with. It seems that I cannot have a dynamically sized array. When i try putting: PUBLIC mySW[] as SWSocket At the top of the form class, it says "Arrays are forbidden here" And if I declare it like: Sub Form_Open () DIM mySW[] as SWSocket it says syntax error. It's requiring me to set an array size, which isn't good, and on top of that, I cannot access the socket outside of that function (and i believe the sockets are destroyed once the open sub ends) I'd like a button on the form that works like this PUBLIC SUB btnAdd_Click() mySw[iNextSw] = new SWSocket; mySw[iNextSw].DoSomeMethod() INC iNextSw END 'With a timer that does: PUBLIC SUB Timer_Tick() 'or whatever it is, not important DIM X as Integer FOR X = 0 TO (iNextSw - 1) mySw[X].SendData NEXT END How can I do this? -Robert On Thu, Nov 6, 2008 at 12:36 PM, Doriano Blengino < doriano.blengino at ...1909...> wrote: > Rob ha scritto: > > On Thursday 06 November 2008 13:37, Doriano Blengino wrote: > > > >> i.e., LAST is a reference to the object that raised the event, and you > >> can compare it to anything you like (probably widgets). > >> > > > > Yes, that should work, but with limitations. You would have to hardcode > > the name of the control you wish to compare against at compile time. > > Gambas lacks enough introspection at present to obtain a reference to an > > object using its symbol name at run time. (As far as I know, the same is > > true of VB.) > > > Gambas does not lack introspection. You can compare LAST.name to a > string, or LAST to a variable (an instance variable), or even look at > the type of the object (object.Type(LAST)). The symbol name is a > reference to the object, > Mainly, my thought was directed to groups of widgets created at design > time, where the name (symbol) of the widget/control *is* a reference to > the object. > > >> The tag system is another way - sometimes tags are better, sometimes > >> control/widget reference is. > >> > > > > Agreed. This will be easier if you have "OK" and "Cancel" buttons across > > the bottom of the screen and want to tell which one got pressed, but if > > you have an array of 64 buttons (or text boxes, like one of my clients) > it > > might be time to start assigning tags at control creation. > > > If you have a true array, then LAST = btns[0] should work. If you don't > have an array (ie: for i=0 to 10 bnt = new Button....), then you don't > have any reference to the objects you created, so clearly you can't > compare to a reference you don't have... > But note that you don't have to use Tag - you could use Name, Left, or > whatever differentiates these controls each other. Of course, Tag is > devoted to such things. > > Regards, > Doriano > > > > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge > Build the coolest Linux based applications with Moblin SDK & win great > prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From the.at.robert at ...626... Fri Nov 7 11:47:48 2008 From: the.at.robert at ...626... (Robert Moss) Date: Fri, 7 Nov 2008 02:47:48 -0800 Subject: [Gambas-user] Accessing elements of dynamic control arrays. Not possible outside of creating function? Help please ^_^ Message-ID: OK, //CODE EXAMPLE AT END OF MSG I have a subclass of Socket, Which is a socket, but contains some extra data, so that in the event handler, I have more than just the TAG property to work with. It seems that I cannot have a dynamically sized array. When i try putting: PUBLIC mySW[] as SWSocket At the top of the form class, it says "Arrays are forbidden here" And if I declare it like: Sub Form_Open () DIM mySW[] as SWSocket it says syntax error. It's requiring me to set an array size, which isn't good, and on top of that, I cannot access the socket outside of that function (and i believe the sockets are destroyed once the open sub ends) I'd like a button on the form that works like this PUBLIC SUB btnAdd_Click() mySw[iNextSw] = new SWSocket; mySw[iNextSw].DoSomeMethod() INC iNextSw END 'With a timer that does: PUBLIC SUB Timer_Tick() 'or whatever it is, not important DIM X as Integer FOR X = 0 TO (iNextSw - 1) mySw[X].SendData NEXT END How can I do this? From gambas.fr at ...626... Fri Nov 7 12:02:49 2008 From: gambas.fr at ...626... (Fabien Bodard) Date: Fri, 7 Nov 2008 12:02:49 +0100 Subject: [Gambas-user] Accessing elements of dynamic control arrays. Not possible outside of creating function? Help please ^_^ In-Reply-To: References: Message-ID: <6324a42a0811070302i9f678c1o2eba768963de2873@...627...> Public MySW as New Object[] PUBLIC SUB btnAdd_Click() Dim hSock as SWSocket hSock = new SWSocket; MySW.Add(hSock) hSock.DoSomeMethod() END PUBLIC SUB Timer_Tick() 'or whatever it is, not important Dim hSock as SWSocket FOR each hSock in MySw hSock.SendData NEXT END And you can access from the outside too 2008/11/7 Robert Moss : > OK, //CODE EXAMPLE AT END OF MSG > > I have a subclass of Socket, Which is a socket, but contains some extra > data, so that in the event handler, I have more than just the TAG property > to work with. > > It seems that I cannot have a dynamically sized array. > > When i try putting: > > PUBLIC mySW[] as SWSocket > > At the top of the form class, it says "Arrays are forbidden here" > And if I declare it like: > Sub Form_Open () > DIM mySW[] as SWSocket > > > it says syntax error. > > It's requiring me to set an array size, which isn't good, and on top of > that, I cannot access the socket outside of that function (and i believe the > sockets are destroyed once the open sub ends) > > I'd like a button on the form that works like this > > PUBLIC SUB btnAdd_Click() > mySw[iNextSw] = new SWSocket; > mySw[iNextSw].DoSomeMethod() > INC iNextSw > > END > > 'With a timer that does: > > PUBLIC SUB Timer_Tick() 'or whatever it is, not important > DIM X as Integer > FOR X = 0 TO (iNextSw - 1) > mySw[X].SendData > NEXT > END > > How can I do this? > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From eilert-sprachen at ...221... Fri Nov 7 12:26:05 2008 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Fri, 07 Nov 2008 12:26:05 +0100 Subject: [Gambas-user] Highlight Editor - highlighting more than 1 line Message-ID: <491425CD.9060808@...221...> Hi folks, a long time ago, I mentioned this, but Benoit meant it was a matter of my code :-) Since I didn't have an opportunity to check it out, I just tried it again today. This is what I found out about the example with the web site HTML code: Highlight Editor will highlight more than one line if the text contains a comment embraced by but only if you set it to Highlight.Comment and nothing else. From my point of view, it shouldn't matter which property of highlighting you use, it's just a choice of colors, right? So try this: Let the Highlight Editor run and look for the first comment line Just insert a Return somewhere within the comment. You'll see that it stays gray, as it should. Stop the program. In the source code, there is SELECT CASE iState CASE Highlight.Normal IF sCar = "<" THEN IF String.Mid$(sText, iInd, 4) = " but only if you set it to > Highlight.Comment and nothing else. > > From my point of view, it shouldn't matter which property of > highlighting you use, it's just a choice of colors, right? So try this: > > Let the Highlight Editor run and look for the first comment line > > > > Just insert a Return somewhere within the comment. You'll see that it > stays gray, as it should. > > Stop the program. In the source code, there is > > SELECT CASE iState > CASE Highlight.Normal > IF sCar = "<" THEN > IF String.Mid$(sText, iInd, 4) = "". Regards, -- Benoit Minisini From eilert-sprachen at ...221... Fri Nov 7 12:53:06 2008 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Fri, 07 Nov 2008 12:53:06 +0100 Subject: [Gambas-user] Highlight Editor - setting background? Message-ID: <49142C22.401@...221...> Just one more question: is it possible to set a background color property for some of the elements such like Editor1.Styles[Highlight.String].Color = Color.DarkRed ^ | ---------------------------------| Is there a BackColor or Color.Background or something like this? Regards Rolf From wspinto at ...1405... Fri Nov 7 13:27:09 2008 From: wspinto at ...1405... (Wellington de Souza Pinto) Date: Fri, 07 Nov 2008 10:27:09 -0200 Subject: [Gambas-user] skiptaskbar Message-ID: <1226060829.4914341de7a02@...1540...> Hi Benoit! I'm have trying send my project to you, but the moderator of list do not permiss send my attachment. Please, is very single my problem! Create one project with one form, and this form properts are: border = none mask = true skiptaskbar = true picture = (any picture with transparent part) put 3 controls: one combobox, 2 textbox in form_load set focus for any of 3 controls run the program and see. the focus of form not work. if you click in any part of form, imediate shou the control with the focus. if you change the border for another other diferent of none, the program work fine. Best Reguards, Pinto, Wellington --------------------------------------------------------------- |||||/ Wellington de Souza Pinto C o o ] wspinto at ...1405... ^ -x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x- ___________________________________________________________________________________ Para fazer uma liga??o DDD pra perto ou pra longe, faz um 21. A Embratel tem tarifas muito baratas esperando por voc?. Aproveite! From wspinto at ...1405... Fri Nov 7 13:28:10 2008 From: wspinto at ...1405... (Wellington de Souza Pinto) Date: Fri, 07 Nov 2008 10:28:10 -0200 Subject: [Gambas-user] skiptaskbar Message-ID: <1226060890.4914345a7c356@...1540...> Hi Benoit! I'm have trying send my project to you, but the moderator of list do not permiss send my attachment. Please, is very single my problem! Create one project with one form, and this form properts are: border = none mask = true skiptaskbar = true picture = (any picture with transparent part) put 3 controls: one combobox, 2 textbox in form_load set focus for any of 3 controls run the program and see. the focus of form not work. if you click in any part of form, imediate shou the control with the focus. if you change the border for another other diferent of none, the program work fine. Best Reguards, Pinto, Wellington --------------------------------------------------------------- |||||/ Wellington de Souza Pinto C o o ] wspinto at ...1405... ^ -x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x- ___________________________________________________________________________________ Para fazer uma liga??o DDD pra perto ou pra longe, faz um 21. A Embratel tem tarifas muito baratas esperando por voc?. Aproveite! From eilert-sprachen at ...221... Fri Nov 7 13:26:26 2008 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Fri, 07 Nov 2008 13:26:26 +0100 Subject: [Gambas-user] Highlight Editor - highlighting more than 1 line In-Reply-To: <200811071249.46748.gambas@...1...> References: <491425CD.9060808@...221...> <200811071249.46748.gambas@...1...> Message-ID: <491433F2.5000709@...221...> Benoit Minisini schrieb: > On vendredi 7 novembre 2008, Rolf-Werner Eilert wrote: >> Hi folks, >> >> a long time ago, I mentioned this, but Benoit meant it was a matter of >> my code :-) Since I didn't have an opportunity to check it out, I just >> tried it again today. >> >> This is what I found out about the example with the web site HTML code: >> Highlight Editor will highlight more than one line if the text contains >> a comment embraced by but only if you set it to >> Highlight.Comment and nothing else. >> >> From my point of view, it shouldn't matter which property of >> highlighting you use, it's just a choice of colors, right? So try this: >> >> Let the Highlight Editor run and look for the first comment line >> >> >> >> Just insert a Return somewhere within the comment. You'll see that it >> stays gray, as it should. >> >> Stop the program. In the source code, there is >> >> SELECT CASE iState >> CASE Highlight.Normal >> IF sCar = "<" THEN >> IF String.Mid$(sText, iInd, 4) = "". > > Regards, > As far as I can see, I did understand it right, but why does this run only if I use Highlight.Comment, not Highlight. ? I do not see a connection here between an array of color codes and the function itself... Just try my experiment as described above, I guess you'll see what I mean :-) Thanks a lot! Regards Rolf From the.at.robert at ...626... Fri Nov 7 14:58:10 2008 From: the.at.robert at ...626... (Robert Moss) Date: Fri, 7 Nov 2008 05:58:10 -0800 Subject: [Gambas-user] Socket cuts out before full page is read. Message-ID: First of all I would like to thank all of you for your efforts ^_^ you have have been a wonderful ally in learning this new language. I am using the socket control to create a local ui to a web interface. I create a request that looks like: GET / HTTP/1.0 Host: www.microsoft.com User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1) and when it reads in the data, it cuts out not even half way thru. I use this code: PRIVATE FUNCTION ConnSend(Data AS String) AS String DIM sBuf AS String DIM i AS Integer 'counter DIM sTotal AS String sBuf = Data ME.Connect(myHTTP.USE_HOST, myHTTP.USE_PORT) 'connects to host:port DO WHILE (ME.Status <> 7) AND (ME.Status > 0) WAIT 0.1 INC i IF i = 200 THEN 'Timeout - Bail DEBUG "Timeout - waiting for connection" MyClose() 'close and quit RETURN "" END IF LOOP i = 0 'reset counter IF ME.Status <> 7 THEN DEBUG "Error: " & ME.Status MyClose() RETURN "" 'ensure we don't go on END IF WRITE #ME, sBuf, Len(sBuf) 'Writes the get or post headers with cookies sometimes DO WHILE Lof(ME) = 0 WAIT 0.1 INC i IF i = 200 THEN 'Timeout - Bail DEBUG "Timeout - Waiting for reply" MyClose() RETURN "" 'ensure we don't go on END IF LOOP DO WHILE (NOT Eof(ME)) READ #ME, sBuf, Lof(ME) 'I previously just used the standard READ #ME, sBuf, Lof(ME) by itself, but i thought this might work sTotal &= sBuf LOOP RETURN sTotal END Is there anything I can do? In the return header, it has Connection: Close and no mention of Chunk (data sending) From gambas at ...1... Fri Nov 7 15:42:40 2008 From: gambas at ...1... (Benoit Minisini) Date: Fri, 7 Nov 2008 15:42:40 +0100 Subject: [Gambas-user] skiptaskbar In-Reply-To: <1226060890.4914345a7c356@...1540...> References: <1226060890.4914345a7c356@...1540...> Message-ID: <200811071542.40280.gambas@...1...> On vendredi 7 novembre 2008, Wellington de Souza Pinto wrote: > Hi Benoit! > > I'm have trying send my project to you, but the moderator of list do not > permiss send my attachment. > > Please, is very single my problem! > > Create one project with one form, and this form properts are: > > border = none > mask = true > skiptaskbar = true > picture = (any picture with transparent part) > > put 3 controls: one combobox, 2 textbox > > in form_load set focus for any of 3 controls > > run the program and see. the focus of form not work. > if you click in any part of form, imediate shou the control with the focus. > > if you change the border for another other diferent of none, the program > work fine. > > Best Reguards, > > Pinto, Wellington > Send your project to me, not to the mailing-list! -- Benoit Minisini From gambas at ...1... Fri Nov 7 15:44:11 2008 From: gambas at ...1... (Benoit Minisini) Date: Fri, 7 Nov 2008 15:44:11 +0100 Subject: [Gambas-user] Socket cuts out before full page is read. In-Reply-To: References: Message-ID: <200811071544.11711.gambas@...1...> On vendredi 7 novembre 2008, Robert Moss wrote: > First of all I would like to thank all of you for your efforts ^_^ you have > have been a wonderful ally in learning this new language. > > I am using the socket control to create a local ui to a web interface. > I create a request that looks like: > > GET / HTTP/1.0 > Host: www.microsoft.com > User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1) > > and when it reads in the data, it cuts out not even half way thru. > > I use this code: > > PRIVATE FUNCTION ConnSend(Data AS String) AS String > DIM sBuf AS String > DIM i AS Integer 'counter > DIM sTotal AS String > > sBuf = Data > > ME.Connect(myHTTP.USE_HOST, myHTTP.USE_PORT) 'connects to host:port > DO WHILE (ME.Status <> 7) AND (ME.Status > 0) > WAIT 0.1 > INC i > IF i = 200 THEN > 'Timeout - Bail > DEBUG "Timeout - waiting for connection" > MyClose() 'close and quit > RETURN "" > END IF > LOOP > i = 0 'reset counter > > IF ME.Status <> 7 THEN > DEBUG "Error: " & ME.Status > MyClose() > RETURN "" 'ensure we don't go on > END IF > > WRITE #ME, sBuf, Len(sBuf) 'Writes the get or post headers with cookies > sometimes > > DO WHILE Lof(ME) = 0 > WAIT 0.1 > INC i > IF i = 200 THEN > 'Timeout - Bail > DEBUG "Timeout - Waiting for reply" > MyClose() > RETURN "" 'ensure we don't go on > END IF > > LOOP > > DO WHILE (NOT Eof(ME)) > READ #ME, sBuf, Lof(ME) 'I previously just used the standard READ #ME, > sBuf, Lof(ME) by itself, but i thought this might work > sTotal &= sBuf > LOOP > > RETURN sTotal > > END > > Is there anything I can do? > > In the return header, it has > > Connection: Close > > and no mention of Chunk (data sending) Do you end your lines with CR+LF? And not just CR? -- Benoit Minisini From the.at.robert at ...626... Fri Nov 7 15:49:38 2008 From: the.at.robert at ...626... (Robert Moss) Date: Fri, 7 Nov 2008 06:49:38 -0800 Subject: [Gambas-user] Socket cuts out before full page is read. In-Reply-To: <200811071544.11711.gambas@...1...> References: <200811071544.11711.gambas@...1...> Message-ID: I end my lines with \n but that is not an issue as the remote server is Unix based. I receive part of the page, actually i receive approx 3,465 bytes. And the last few bytes are like
> MyClose() 'close and quit > > RETURN "" > > END IF > > LOOP > > i = 0 'reset counter > > > > IF ME.Status <> 7 THEN > > DEBUG "Error: " & ME.Status > > MyClose() > > RETURN "" 'ensure we don't go on > > END IF > > > > WRITE #ME, sBuf, Len(sBuf) 'Writes the get or post headers with cookies > > sometimes > > > > DO WHILE Lof(ME) = 0 > > WAIT 0.1 > > INC i > > IF i = 200 THEN > > 'Timeout - Bail > > DEBUG "Timeout - Waiting for reply" > > MyClose() > > RETURN "" 'ensure we don't go on > > END IF > > > > LOOP > > > > DO WHILE (NOT Eof(ME)) > > READ #ME, sBuf, Lof(ME) 'I previously just used the standard READ > #ME, > > sBuf, Lof(ME) by itself, but i thought this might work > > sTotal &= sBuf > > LOOP > > > > RETURN sTotal > > > > END > > > > Is there anything I can do? > > > > In the return header, it has > > > > Connection: Close > > > > and no mention of Chunk (data sending) > > Do you end your lines with CR+LF? And not just CR? > > -- > Benoit Minisini > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge > Build the coolest Linux based applications with Moblin SDK & win great > prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From the.at.robert at ...626... Fri Nov 7 16:17:34 2008 From: the.at.robert at ...626... (Robert Moss) Date: Fri, 7 Nov 2008 07:17:34 -0800 Subject: [Gambas-user] Socket cuts out before full page is read. In-Reply-To: References: <200811071544.11711.gambas@...1...> Message-ID: i tried using \r\n and nothing positive happened. i got 3440 bytes, 1 more byte than previously (recount showed 3439 bytes, i forgot the debug header) DO WHILE (NOT Eof(ME)) 'This crap isnt working READ #ME, sBuf, Lof(ME) sTotal &= sBuf WAIT 1 'I added this line since last message, and after waiting 1 second, i got the error that socket was closed. LOOP Does this look right to you? POST /process_data.php HTTP/1.0 Host: www.myhost.com User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1) Referer: http://www.myhost.com/index.php Cookie: remember=mycine; login=mycine%2B9e6c670bf76e9a2c07a9921c56d3532ecacf2ae5; toolbar=mycine%2BC%2B75a593a34aa5ba8e5e5788b7c899802e; Content-Type: application/x-www-form-urlencoded Content-Length: 99 type=process_data&feedset=0&value=red%20apple&table=stuff&criteria=exact&set_price=340&old_price=0 On Fri, Nov 7, 2008 at 6:49 AM, Robert Moss wrote: > I end my lines with \n but that is not an issue as the remote server is > Unix based. I receive part of the page, actually i receive approx 3,465 > bytes. And the last few bytes are like
> > MyClose() 'close and quit >> > RETURN "" >> > END IF >> > LOOP >> > i = 0 'reset counter >> > >> > IF ME.Status <> 7 THEN >> > DEBUG "Error: " & ME.Status >> > MyClose() >> > RETURN "" 'ensure we don't go on >> > END IF >> > >> > WRITE #ME, sBuf, Len(sBuf) 'Writes the get or post headers with >> cookies >> > sometimes >> > >> > DO WHILE Lof(ME) = 0 >> > WAIT 0.1 >> > INC i >> > IF i = 200 THEN >> > 'Timeout - Bail >> > DEBUG "Timeout - Waiting for reply" >> > MyClose() >> > RETURN "" 'ensure we don't go on >> > END IF >> > >> > LOOP >> > >> > DO WHILE (NOT Eof(ME)) >> > READ #ME, sBuf, Lof(ME) 'I previously just used the standard READ >> #ME, >> > sBuf, Lof(ME) by itself, but i thought this might work >> > sTotal &= sBuf >> > LOOP >> > >> > RETURN sTotal >> > >> > END >> > >> > Is there anything I can do? >> > >> > In the return header, it has >> > >> > Connection: Close >> > >> > and no mention of Chunk (data sending) >> >> Do you end your lines with CR+LF? And not just CR? >> >> -- >> Benoit Minisini >> >> ------------------------------------------------------------------------- >> This SF.Net email is sponsored by the Moblin Your Move Developer's >> challenge >> Build the coolest Linux based applications with Moblin SDK & win great >> prizes >> Grand prize is a trip for two to an Open Source event anywhere in the >> world >> http://moblin-contest.org/redirect.php?banner_id=100&url=/ >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > From gambas at ...1938... Fri Nov 7 17:02:34 2008 From: gambas at ...1938... (gambas at ...1938...) Date: Fri, 7 Nov 2008 17:02:34 +0100 Subject: [Gambas-user] Searching a key in the array of gb.settings Message-ID: <200811071702.34497.gambas@...1938...> Hello List, first question: Is the settings-object an array or a collection?? Onlinehelp says: " ...acts like an read, write array" ....but the syntax for accessing its elements looks like collection. Main-problem: I'm writing a servicemenu which items should be configured through a settingsfile. I have my seetings-array up and can access each element of it, when I know it's key. My users only have a keypad with numbers from 0 to 9, so my settingsfile looks like this. [Actions] 900 = "WriteToGambasML" 901 = "HaveACupOfCoffee" and so on. The users choice is stored in a variable called: sItem What I need to do is, check if the entered number is a valid choice in my servicemenue, but I don't know how. A simple test for printing each element one by one of the collection??? doesn't work: For Each sElement In hCFG["Actions"] Print sElement; Next Accessing a single element this way doesn't work, too: Print hCFG["Action/sItem"] ...because the quotes masks sItem This try gives me a syntax-error Print hCFG["Action/"sItem] Any ideas?? Sorry, if this a stupid question, but I'm still learning all this OO-stuff. TIA Stevie From gambas at ...1... Fri Nov 7 17:15:41 2008 From: gambas at ...1... (Benoit Minisini) Date: Fri, 7 Nov 2008 17:15:41 +0100 Subject: [Gambas-user] Socket cuts out before full page is read. In-Reply-To: References: Message-ID: <200811071715.41438.gambas@...1...> On vendredi 7 novembre 2008, Robert Moss wrote: > i tried using \r\n and nothing positive happened. i got 3440 bytes, 1 more > byte than previously (recount showed 3439 bytes, i forgot the debug header) > > DO WHILE (NOT Eof(ME)) 'This crap isnt working > READ #ME, sBuf, Lof(ME) > sTotal &= sBuf > WAIT 1 'I added this line since last message, and after waiting 1 > second, i got the error that socket was closed. > LOOP > > Does this look right to you? > > POST /process_data.php HTTP/1.0 > Host: www.myhost.com > User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1) > Referer: http://www.myhost.com/index.php > Cookie: remember=mycine; > login=mycine%2B9e6c670bf76e9a2c07a9921c56d3532ecacf2ae5; > toolbar=mycine%2BC%2B75a593a34aa5ba8e5e5788b7c899802e; > Content-Type: application/x-www-form-urlencoded > Content-Length: 99 > > type=process_data&feedset=0&value=red%20apple&table=stuff&criteria=exact&se >t_price=340&old_price=0 > To read a socket, you need to do the same way as in the ClientSocket example, i.e. by using events. If you want to do the way you wrote, you have to use the svn trunk (Gambas 3), because I changed many thing in the gb.net component to allow this way of reading/writing sockets. Regards, -- Benoit Minisini From m0e.lnx at ...626... Fri Nov 7 17:19:48 2008 From: m0e.lnx at ...626... (M0E Lnx) Date: Fri, 7 Nov 2008 10:19:48 -0600 Subject: [Gambas-user] Alternating progressbars Message-ID: <1f1e8c1b0811070819g5795c646w63c9adde9dd33962@...627...> Is there a way to do alternating progressbars in gambas? What I mean is a progressbar that doesn't really display like it does now... but rather shows a little piece of the progressbars and just alternates from left to right From ronstk at ...239... Fri Nov 7 17:21:35 2008 From: ronstk at ...239... (Ron_1st) Date: Fri, 7 Nov 2008 17:21:35 +0100 Subject: [Gambas-user] Searching a key in the array of gb.settings In-Reply-To: <200811071702.34497.gambas@...1938...> References: <200811071702.34497.gambas@...1938...> Message-ID: <200811071721.36205.ronstk@...239...> On Friday 07 November 2008, gambas at ...1938... wrote: > Accessing a single element this way doesn't work, too: > Print hCFG["Action/sItem"] ...because the quotes masks sItem > > This try gives me a syntax-error > Print hCFG["Action/"sItem] Print hCFG["Action/" & sItem] ??? > > Any ideas?? > > Sorry, if this a stupid question, but I'm still learning all this OO-stuff. > We all had a time tho learn walking on the earth (program in gambas) :) Best regards Ron_1st From gambas at ...1938... Fri Nov 7 17:46:27 2008 From: gambas at ...1938... (gambas at ...1938...) Date: Fri, 7 Nov 2008 17:46:27 +0100 Subject: [Gambas-user] Searching a key in the array of gb.settings In-Reply-To: <200811071721.36205.ronstk@...239...> References: <200811071702.34497.gambas@...1938...> <200811071721.36205.ronstk@...239...> Message-ID: <200811071746.27407.gambas@...1938...> Am Freitag, 7. November 2008 17:21:35 schrieb Ron_1st: > Print hCFG["Action/" & sItem] ??? BINGOOOOOOOOOOOOO!!! You're my hero!!! :-))) > > Sorry, if this a stupid question, but I'm still learning all this > > OO-stuff. > > We all had a time tho learn walking on the earth (program in gambas) :) Thanks for your excitation!!! :-)) But one question remains: Is there a way to do something (say PRINT() ) with each element of the settings.object without knowing each single key??? Greetz Stevie From gambas at ...1... Fri Nov 7 17:50:55 2008 From: gambas at ...1... (Benoit Minisini) Date: Fri, 7 Nov 2008 17:50:55 +0100 Subject: [Gambas-user] Searching a key in the array of gb.settings In-Reply-To: <200811071746.27407.gambas@...1938...> References: <200811071702.34497.gambas@...1938...> <200811071721.36205.ronstk@...239...> <200811071746.27407.gambas@...1938...> Message-ID: <200811071750.55886.gambas@...1...> On vendredi 7 novembre 2008, gambas at ...1938... wrote: > > But one question remains: > Is there a way to do something (say PRINT() ) with each element of the > settings.object without knowing each single key??? > > Greetz > Stevie > No way. Do you need it? -- Benoit Minisini From diego at ...1942... Fri Nov 7 18:41:18 2008 From: diego at ...1942... (=?ISO-8859-1?Q?Diego_Fern=E1ndez?=) Date: Fri, 07 Nov 2008 11:41:18 -0600 Subject: [Gambas-user] Compilation under Ubuntu 8.10 In-Reply-To: <6324a42a0811061421w1ddf660ek6d139d3947e33b83@...627...> References: <6324a42a0811061402u67aac7c7iaadeaff93a9584a5@...627...> <6324a42a0811061421w1ddf660ek6d139d3947e33b83@...627...> Message-ID: <49147DBE.7070400@...1942...> Fabien Bodard escribi?: > an other thing ... don't forget to remove the kde lib from the > compilation as the kde 3 packages are not in the kubuntu repos from > now > > ./Configure -C --enable-kde=false > > > > 2008/11/6 Fabien Bodard : > >> I to all ... >> >> to compile the gambas svn you need to install this package before ... >> in other case it will never compile as the 8.10 use a too new libtool >> version and have gorgotten to maintain the old one in the >> repositories. >> >> > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > Hi everyone, Could someone point me in the rigth direction for compiling gambas under ubuntu 8.10. maybe a guide, or a set of steps i can follow. Thanks From ron at ...1740... Fri Nov 7 18:51:32 2008 From: ron at ...1740... (Ron) Date: Fri, 07 Nov 2008 18:51:32 +0100 Subject: [Gambas-user] Compilation under Ubuntu 8.10 In-Reply-To: <49147DBE.7070400@...1942...> References: <6324a42a0811061402u67aac7c7iaadeaff93a9584a5@...627...> <6324a42a0811061421w1ddf660ek6d139d3947e33b83@...627...> <49147DBE.7070400@...1942...> Message-ID: <49148024.2090802@...1740...> Diego Fern?ndez schreef: > Fabien Bodard escribi?: > >> an other thing ... don't forget to remove the kde lib from the >> compilation as the kde 3 packages are not in the kubuntu repos from >> now >> >> ./Configure -C --enable-kde=false >> >> >> >> 2008/11/6 Fabien Bodard : >> >> >>> I to all ... >>> >>> to compile the gambas svn you need to install this package before ... >>> in other case it will never compile as the 8.10 use a too new libtool >>> version and have gorgotten to maintain the old one in the >>> repositories. >>> >>> >>> >> ------------------------------------------------------------------------- >> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge >> Build the coolest Linux based applications with Moblin SDK & win great prizes >> Grand prize is a trip for two to an Open Source event anywhere in the world >> http://moblin-contest.org/redirect.php?banner_id=100&url=/ >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> >> >> > > Hi everyone, > > Could someone point me in the rigth direction for compiling gambas under > ubuntu 8.10. maybe a guide, or a set of steps i can follow. > > Thanks > > I have adapted the 8.04 guide I had to 8.10 look here: (for svn 2.9 gambas btw) http://www.domoticaforum.eu/topic.asp?TOPIC_ID=1581 BUT! Although it compiles, it says it can't find libtoolize, but the resulting install of gambas is far from being stable. It's results in lots of sig 11's here, expecially when starting my gambas project, don't know if this is because i run it on my asus eeebox, but 8.04 was stable. Also the xorg intel video driver is letting my screen blink every ones in a while, maybe that is causeing the havoc, i have read old reported bugreports about this, but couldn't find a solution. I have sent my gdb bt and project to Benoit, but I guess he's a busy guy, or i'm driving him nuts with my problems, or both ;-) I'm thinking about going back to 8.04.1 to be hones, until others have found solutions for this. Regards, Ron_2nd From doriano.blengino at ...1909... Fri Nov 7 19:23:29 2008 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Fri, 07 Nov 2008 19:23:29 +0100 Subject: [Gambas-user] Socket cuts out before full page is read. In-Reply-To: References: <200811071544.11711.gambas@...1...> Message-ID: <491487A1.2030203@...1909...> Robert Moss ha scritto: > I end my lines with \n but that is not an issue as the remote server is Unix > based. I receive part of the page, actually i receive approx 3,465 bytes. > And the last few bytes are like
Hi, i am new in gambas.. I don't find in the archives any post about how to pass values between forms. Ej: Form1 with a textbox control Form 2 with a button control When you click in Form2.button, the Form1.textbox.text change. Could somebody help me? Thanks. From gambas at ...1938... Fri Nov 7 20:26:25 2008 From: gambas at ...1938... (gambas at ...1938...) Date: Fri, 7 Nov 2008 20:26:25 +0100 Subject: [Gambas-user] Searching a key in the array of gb.settings In-Reply-To: <200811071940.00499.gambas@...1938...> References: <200811071702.34497.gambas@...1938...> <200811071750.55886.gambas@...1...> <200811071940.00499.gambas@...1938...> Message-ID: <200811072026.25509.gambas@...1938...> The story goes on! :-) I'm on gambas3. Like mentioned in my last post, I try to check if the users choice "sItem" is a valid entry in my array of gb.settings. Print (hCFG["Action/" & sItem]) If (IsObject(hCFG["Action/" & sItem]) = True) Then Print("Found!!!\n") Else Print("Not Found!!!\n") Endif When I enter an action, which is defintely a valid action in my settingsfile, I always get "Not Found". Entering an invalid action number, I got "Found". *thinking* Changing "True" to "False" in the If-clause turns all in the right way. Entering a valid actionnumber now results in "Found". *thinking again*. :-) Is this a bug or a feature...or simply my mistake? Greetz Stevie From demosthenesk at ...626... Fri Nov 7 20:28:57 2008 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Fri, 7 Nov 2008 21:28:57 +0200 Subject: [Gambas-user] Gambas-diskinfo released! Message-ID: Hi to all! I wrote my second application in gambas and i like to share it with you! Its name is gambas-diskinfo. This small program shows your mounted hard disks and their partitions in a tree view way. By clicking the disk-partition-tree you get info about disks and partitions. For now supports only (hd) IDE and (sd) SCSI disks. That's all. I hope you like it. You can download it from sourceforge.net http://sourceforge.net/search/?type_of_search=soft&words=gambas-diskinfo An extension of this project is to make a partition manager in gambas. -- ???? ???? ?? ?????!!! Regards, Demosthenes Koptsis From pokerbirch at ...1601... Fri Nov 7 21:52:40 2008 From: pokerbirch at ...1601... (birchy) Date: Fri, 7 Nov 2008 12:52:40 -0800 (PST) Subject: [Gambas-user] Alternating progressbars In-Reply-To: <1f1e8c1b0811070819g5795c646w63c9adde9dd33962@...627...> References: <1f1e8c1b0811070819g5795c646w63c9adde9dd33962@...627...> Message-ID: <20388574.post@...1379...> M0E Lnx wrote: > Is there a way to do alternating progressbars in gambas? I also have a need for this kind of progress bar. I guess it could be done with a picture box but then you're writing quite a few lines of code to achieve something fairly trivial. -- View this message in context: http://www.nabble.com/Alternating-progressbars-tp20383755p20388574.html Sent from the gambas-user mailing list archive at Nabble.com. From m0e.lnx at ...626... Fri Nov 7 22:00:05 2008 From: m0e.lnx at ...626... (M0E Lnx) Date: Fri, 7 Nov 2008 15:00:05 -0600 Subject: [Gambas-user] Alternating progressbars In-Reply-To: <20388574.post@...1379...> References: <1f1e8c1b0811070819g5795c646w63c9adde9dd33962@...627...> <20388574.post@...1379...> Message-ID: <1f1e8c1b0811071300s4b135559vb272c10e694d4dcc@...627...> I know other GTK applications can do this... Kind of hoping it gets implemented into gambas3 at least if it doesn't make it in Gambas 2 On Fri, Nov 7, 2008 at 2:52 PM, birchy wrote: > > > M0E Lnx wrote: >> Is there a way to do alternating progressbars in gambas? > > I also have a need for this kind of progress bar. I guess it could be done > with a picture box but then you're writing quite a few lines of code to > achieve something fairly trivial. > -- > View this message in context: http://www.nabble.com/Alternating-progressbars-tp20383755p20388574.html > Sent from the gambas-user mailing list archive at Nabble.com. > > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From doriano.blengino at ...1909... Fri Nov 7 22:54:30 2008 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Fri, 07 Nov 2008 22:54:30 +0100 Subject: [Gambas-user] Values between forms.. In-Reply-To: <481BC3FD4C8542BF85537D5181652B03@...2010...> References: <481BC3FD4C8542BF85537D5181652B03@...2010...> Message-ID: <4914B916.1030809@...1909...> Oscar Cascante Fonseca ha scritto: > Hi, i am new in gambas.. > > I don't find in the archives any post about how to pass values between > forms. > You have to set project option: "Controls of the forms are public". Then, you can access controls of a form from another form, i.e., in Form2.Button1_click(), issue a "Form1.TextBox1.text = something". Hope this helps, Arigato, Doriano From doriano.blengino at ...1909... Fri Nov 7 22:58:16 2008 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Fri, 07 Nov 2008 22:58:16 +0100 Subject: [Gambas-user] Searching a key in the array of gb.settings In-Reply-To: <200811071940.00499.gambas@...1938...> References: <200811071702.34497.gambas@...1938...> <200811071746.27407.gambas@...1938...> <200811071750.55886.gambas@...1...> <200811071940.00499.gambas@...1938...> Message-ID: <4914B9F8.3000500@...1909...> gambas at ...1938... ha scritto: > Am Freitag, 7. November 2008 17:50:55 schrieb Benoit Minisini: > >> On vendredi 7 novembre 2008, gambas at ...1938... wrote: >> >>> But one question remains: >>> Is there a way to do something (say PRINT() ) with each element of the >>> settings.object without knowing each single key??? >>> >>> Greetz >>> Stevie >>> >> No way. Do you need it? >> > > This remembers me I had a similar need... not important, but the possibility to enumerate settings could be handy sometimes. From pokerbirch at ...1601... Fri Nov 7 23:01:56 2008 From: pokerbirch at ...1601... (birchy) Date: Fri, 7 Nov 2008 14:01:56 -0800 (PST) Subject: [Gambas-user] Values between forms.. In-Reply-To: <4914B916.1030809@...1909...> References: <481BC3FD4C8542BF85537D5181652B03@...2010...> <4914B916.1030809@...1909...> Message-ID: <20389706.post@...1379...> Doriano Blengino wrote: > You have to set project option: "Controls of the forms are public". I recently discovered this while trying to access Form controls from a class module. Is it possible to make all controls Public by default (like in VB)? -- View this message in context: http://www.nabble.com/Values-between-forms..-tp20387230p20389706.html Sent from the gambas-user mailing list archive at Nabble.com. From the.at.robert at ...626... Fri Nov 7 23:29:59 2008 From: the.at.robert at ...626... (Robert Moss) Date: Fri, 7 Nov 2008 14:29:59 -0800 Subject: [Gambas-user] InputBox with GTK... Terribly Cramped? Message-ID: Running gambas 2.8, GTK project. When I create an input box, the textbox is about 2 characters wide, the OK and Cancel buttons are stacked right on top of each other, the prompt is squished in the top left corner, and the title gets cut off: eg: ----------------------- | This is my t... [x]| ------------------------ | Hi p [ OK ] | lz ty [ CANCEL] | pe y |[____] <-- thats all the text you can see is this just a bug? From the.at.robert at ...626... Sat Nov 8 00:16:48 2008 From: the.at.robert at ...626... (Robert Moss) Date: Fri, 7 Nov 2008 15:16:48 -0800 Subject: [Gambas-user] Weird Characters in output files. ^X ^Q ^T etc. Message-ID: Hi, Sorry to bug you again, once I get this down i'll be able to help you tackle this mailing list ^_^ I open up a stream like so: Dim fh as File dim myObj as MyObject fh = Open FileName as OUTPUT CREATE for each myObj in MyGroup WRITE #fh, myObj.Name & ":" & str(myObj.Count) & ":" & str(myObj.MaxSize) NEXT Close #fh and the resulting file ( via less file.txt) is: ^Uobjectname:4:10^Sobj2name:5:5^xlastobj:2:10 now, i can understand if i have to append a \n to these, but what is with these "Special" characters preceeding my strings? From gambas at ...1... Sat Nov 8 01:43:25 2008 From: gambas at ...1... (Benoit Minisini) Date: Sat, 8 Nov 2008 01:43:25 +0100 Subject: [Gambas-user] Weird Characters in output files. ^X ^Q ^T etc. In-Reply-To: References: Message-ID: <200811080143.26123.gambas@...1...> On samedi 8 novembre 2008, Robert Moss wrote: > Hi, Sorry to bug you again, once I get this down i'll be able to help you > tackle this mailing list ^_^ > I open up a stream like so: > > Dim fh as File > dim myObj as MyObject > > fh = Open FileName as OUTPUT CREATE > > for each myObj in MyGroup > WRITE #fh, myObj.Name & ":" & str(myObj.Count) & ":" & str(myObj.MaxSize) > NEXT > > Close #fh > > and the resulting file ( via less file.txt) is: > > ^Uobjectname:4:10^Sobj2name:5:5^xlastobj:2:10 > > now, i can understand if i have to append a \n to these, but what is with > these "Special" characters preceeding my strings? These are the length of the strings. Please read the documentation on the WRITE instruction: if you want to write the string contents without the length, use the optional length argument, or use the PRINT instruction. Regards, -- Benoit Minisini From gambas at ...1... Sat Nov 8 01:47:52 2008 From: gambas at ...1... (Benoit Minisini) Date: Sat, 8 Nov 2008 01:47:52 +0100 Subject: [Gambas-user] Highlight Editor - setting background? In-Reply-To: <49142C22.401@...221...> References: <49142C22.401@...221...> Message-ID: <200811080147.52197.gambas@...1...> On vendredi 7 novembre 2008, Rolf-Werner Eilert wrote: > Just one more question: is it possible to set a background color > property for some of the elements such like > > Editor1.Styles[Highlight.String].Color = Color.DarkRed > ^ > > ---------------------------------| > > Is there a BackColor or Color.Background or something like this? > > Regards > > Rolf > This is possible in Gambas 3. Regards, -- Benoit Minisini From steven at ...1545... Sat Nov 8 01:53:00 2008 From: steven at ...1545... (Steven Drinnan) Date: Sat, 08 Nov 2008 08:53:00 +0800 Subject: [Gambas-user] Fedora 9 has 2.9 In-Reply-To: <200809232347.56014.gambas@...1...> References: <1f1e8c1b0809231422y374ae3c6mc2fcaa4445ce1b69@...627...> <200809232347.56014.gambas@...1...> Message-ID: <1226105580.15725.3.camel@...2011...> Just for your info gambas is now in the fedora repos. Just thought you may want to know. Steven From doriano.blengino at ...1909... Sat Nov 8 08:07:52 2008 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Sat, 08 Nov 2008 08:07:52 +0100 Subject: [Gambas-user] Values between forms.. In-Reply-To: <20389706.post@...1379...> References: <481BC3FD4C8542BF85537D5181652B03@...2010...> <4914B916.1030809@...1909...> <20389706.post@...1379...> Message-ID: <49153AC8.20203@...1909...> birchy ha scritto: > Doriano Blengino wrote: > >> You have to set project option: "Controls of the forms are public". >> > > I recently discovered this while trying to access Form controls from a class > module. Is it possible to make all controls Public by default (like in VB)? > I never used VB so I don't know it. About make all controls public, I suppose that that option does what you want... or I am missing something? Cheers, Doriano From gambas at ...1938... Sat Nov 8 11:39:18 2008 From: gambas at ...1938... (gambas at ...1938...) Date: Sat, 8 Nov 2008 11:39:18 +0100 Subject: [Gambas-user] Searching a key in the array of gb.settings In-Reply-To: <4914B9F8.3000500@...1909...> References: <200811071702.34497.gambas@...1938...> <200811071940.00499.gambas@...1938...> <4914B9F8.3000500@...1909...> Message-ID: <200811081139.18261.gambas@...1938...> There is just another thing with gb.settings. Let's say, the user entered a number on his keypad, which is registered in my seetings.file and associated with the action: "SunIsShinigOpenRoofOFCarAndHaveAFunnyRide" :-) Print (hCFG["Action/" & sItem]) Ouput: SunIsShinigOpenRoofOFCarAndHaveAFunnyRide Just for fun: Action = hCFG["Action/" & sItem] Print (Action) Ouput: SunIsShinigOpenRoofOFCarAndHaveAFunnyRide ...as expected. Now I have a function in my programm, with name "SunIsShinigOpenRoofOFCarAndHaveAFunnyRide" Calling this function with hCFG["Action/" & sItem]() or Action() 'is the same as above, I know compiles fine, but when executing the programm, I get: MMain.?.0: #12: Not an object Any ideas?? ...sitting in front of my code with many many "?" in my face. :-) TIA and greetz Stevie From doriano.blengino at ...1909... Sat Nov 8 12:11:51 2008 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Sat, 08 Nov 2008 12:11:51 +0100 Subject: [Gambas-user] Searching a key in the array of gb.settings In-Reply-To: <200811081139.18261.gambas@...1938...> References: <200811071702.34497.gambas@...1938...> <200811071940.00499.gambas@...1938...> <4914B9F8.3000500@...1909...> <200811081139.18261.gambas@...1938...> Message-ID: <491573F7.1060101@...1909...> gambas at ...1938... ha scritto: > There is just another thing with gb.settings. > > Let's say, the user entered a number on his keypad, which is registered in my > seetings.file and associated with the action: > "SunIsShinigOpenRoofOFCarAndHaveAFunnyRide" :-) > > Print (hCFG["Action/" & sItem]) > Ouput: SunIsShinigOpenRoofOFCarAndHaveAFunnyRide > > Just for fun: > Action = hCFG["Action/" & sItem] > Print (Action) > Ouput: SunIsShinigOpenRoofOFCarAndHaveAFunnyRide > What type the variable Action has? Should be string... > Calling this function with > hCFG["Action/" & sItem]() > or > Action() 'is the same as above, I know > > compiles fine, but when executing the programm, I get: > MMain.?.0: #12: Not an object > > Any ideas?? ...sitting in front of my code with many many "?" in my face. :-) > What you are trying to do could only work in true interpreted languages - perhaps; it is a total non-sense in every serious programming language. Gambas is a serious language, so it can not do what you (erroneously) expect. But gambas is not innocent - it lets you to compile non-senses... The error "Not an object" is right: you tried to call a string - which is not an object. More info if you want... Cheers, Doriano From gambas at ...1... Sat Nov 8 15:48:00 2008 From: gambas at ...1... (Benoit Minisini) Date: Sat, 8 Nov 2008 15:48:00 +0100 Subject: [Gambas-user] InputBox with GTK... Terribly Cramped? In-Reply-To: References: Message-ID: <200811081548.00405.gambas@...1...> On vendredi 7 novembre 2008, Robert Moss wrote: > Running gambas 2.8, GTK project. > When I create an input box, the textbox is about 2 characters wide, the OK > and Cancel buttons are stacked right on top of each other, the prompt is > squished in the top left corner, and the title gets cut off: > > eg: > > ----------------------- > > | This is my t... [x]| > > ------------------------ > > | Hi p [ OK ] > | lz ty [ CANCEL] > | pe y > |[____] <-- thats all the text you can see > > is this just a bug? Yes. I fixed it (and others discovered during the process) in revision #1678 (for Gambas 2). Regards, -- Benoit Minisini From pokerbirch at ...1601... Sat Nov 8 16:17:19 2008 From: pokerbirch at ...1601... (birchy) Date: Sat, 8 Nov 2008 07:17:19 -0800 (PST) Subject: [Gambas-user] Values between forms.. In-Reply-To: <49153AC8.20203@...1909...> References: <481BC3FD4C8542BF85537D5181652B03@...2010...> <4914B916.1030809@...1909...> <20389706.post@...1379...> <49153AC8.20203@...1909...> Message-ID: <20397015.post@...1379...> Doriano Blengino wrote: > I suppose that that option does what you > want... or I am missing something? Yes, it does exactly what i want. The reason i asked if it could be set as default is because MOST projects need to reference form controls from class modules. Making them public at all times doesn't appear to have any bad effects...and we could always make them private by using Options. It is purely an efficiency thing - i would guess that the majority of projects need the controls Public, and therefore the Options should reflect that. You could also say i'm lazy. =^D -- View this message in context: http://www.nabble.com/Values-between-forms..-tp20387230p20397015.html Sent from the gambas-user mailing list archive at Nabble.com. From gambas at ...1... Sat Nov 8 16:24:26 2008 From: gambas at ...1... (Benoit Minisini) Date: Sat, 8 Nov 2008 16:24:26 +0100 Subject: [Gambas-user] Values between forms.. In-Reply-To: <20397015.post@...1379...> References: <481BC3FD4C8542BF85537D5181652B03@...2010...> <49153AC8.20203@...1909...> <20397015.post@...1379...> Message-ID: <200811081624.26334.gambas@...1...> On samedi 8 novembre 2008, birchy wrote: > Doriano Blengino wrote: > > I suppose that that option does what you > > want... or I am missing something? > > Yes, it does exactly what i want. The reason i asked if it could be set as > default is because MOST projects need to reference form controls from class > modules. Making them public at all times doesn't appear to have any bad > effects...and we could always make them private by using Options. It is > purely an efficiency thing - i would guess that the majority of projects > need the controls Public, and therefore the Options should reflect that. > > You could also say i'm lazy. =^D This option is there only for helping porting old VB programs to Gambas. Otherwise, making all controls public is a stupid thing. One of the rules of good programming is making the less possible things public, not the most. Regards, -- Benoit Minisini From pokerbirch at ...1601... Sat Nov 8 16:45:19 2008 From: pokerbirch at ...1601... (birchy) Date: Sat, 8 Nov 2008 07:45:19 -0800 (PST) Subject: [Gambas-user] Values between forms.. In-Reply-To: <200811081624.26334.gambas@...1...> References: <481BC3FD4C8542BF85537D5181652B03@...2010...> <4914B916.1030809@...1909...> <20389706.post@...1379...> <49153AC8.20203@...1909...> <20397015.post@...1379...> <200811081624.26334.gambas@...1...> Message-ID: <20397250.post@...1379...> Bugzilla from gambas at ...1... wrote: > One of the rules of good programming is making the less possible things > public I totally agree with this, but if we have a project rich with progress bars and other graphical displays, it is not uncommon to write a class or module to handle them. Perhaps i have misunderstood how to do this in Gambas. How would i do this from a class without making the controls public? PUBLIC SUB test() FMain.Label1.Text = "TEST" END -- View this message in context: http://www.nabble.com/Values-between-forms..-tp20387230p20397250.html Sent from the gambas-user mailing list archive at Nabble.com. From gambas at ...1... Sat Nov 8 16:51:24 2008 From: gambas at ...1... (Benoit Minisini) Date: Sat, 8 Nov 2008 16:51:24 +0100 Subject: [Gambas-user] Values between forms.. In-Reply-To: <20397250.post@...1379...> References: <481BC3FD4C8542BF85537D5181652B03@...2010...> <200811081624.26334.gambas@...1...> <20397250.post@...1379...> Message-ID: <200811081651.24137.gambas@...1...> On samedi 8 novembre 2008, birchy wrote: > Bugzilla from gambas at ...1... wrote: > > One of the rules of good programming is making the less possible things > > public > > I totally agree with this, but if we have a project rich with progress bars > and other graphical displays, it is not uncommon to write a class or module > to handle them. Perhaps i have misunderstood how to do this in Gambas. How > would i do this from a class without making the controls public? > > PUBLIC SUB test() > FMain.Label1.Text = "TEST" > END Then you make a public method just for that. This is the rule I was talking about: the public interface of your class must be minimal. Regards, -- Benoit Minisini From doriano.blengino at ...1909... Sat Nov 8 16:59:43 2008 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Sat, 08 Nov 2008 16:59:43 +0100 Subject: [Gambas-user] Values between forms.. In-Reply-To: <20397250.post@...1379...> References: <481BC3FD4C8542BF85537D5181652B03@...2010...> <4914B916.1030809@...1909...> <20389706.post@...1379...> <49153AC8.20203@...1909...> <20397015.post@...1379...> <200811081624.26334.gambas@...1...> <20397250.post@...1379...> Message-ID: <4915B76F.5030609@...1909...> birchy ha scritto: > Bugzilla from gambas at ...1... wrote: > >> One of the rules of good programming is making the less possible things >> public >> > > I totally agree with this, but if we have a project rich with progress bars > and other graphical displays, it is not uncommon to write a class or module > to handle them. Perhaps i have misunderstood how to do this in Gambas. How > would i do this from a class without making the controls public? > > PUBLIC SUB test() > FMain.Label1.Text = "TEST" > END > Perhaps a wrapper method should be used... with no gain (one thing public instead of another one - where is the improvement?). I am reluctant too to make public all the controls of all the forms - there should be a way to make public just the needed things, perhaps a "publish" keyword, so to make public a few identifier known by the class but hidden inside a form... Regards, Doriano From gambas at ...1... Sat Nov 8 16:59:48 2008 From: gambas at ...1... (Benoit Minisini) Date: Sat, 8 Nov 2008 16:59:48 +0100 Subject: [Gambas-user] Values between forms.. In-Reply-To: <4915B76F.5030609@...1909...> References: <481BC3FD4C8542BF85537D5181652B03@...2010...> <20397250.post@...1379...> <4915B76F.5030609@...1909...> Message-ID: <200811081659.48802.gambas@...1...> On samedi 8 novembre 2008, Doriano Blengino wrote: > birchy ha scritto: > > Bugzilla from gambas at ...1... wrote: > >> One of the rules of good programming is making the less possible things > >> public > > > > I totally agree with this, but if we have a project rich with progress > > bars and other graphical displays, it is not uncommon to write a class or > > module to handle them. Perhaps i have misunderstood how to do this in > > Gambas. How would i do this from a class without making the controls > > public? > > > > PUBLIC SUB test() > > FMain.Label1.Text = "TEST" > > END > > Perhaps a wrapper method should be used... with no gain (one thing > public instead of another one - where is the improvement?). > This is an improvement because you have *only the needed* thing public instead of *everything*. -- Benoit Minisini From the.at.robert at ...626... Sat Nov 8 17:02:59 2008 From: the.at.robert at ...626... (Robert Moss) Date: Sat, 8 Nov 2008 08:02:59 -0800 Subject: [Gambas-user] Values between forms.. In-Reply-To: <481BC3FD4C8542BF85537D5181652B03@...2010...> References: <481BC3FD4C8542BF85537D5181652B03@...2010...> Message-ID: in Form1 you could create : PUBLIC SUB ChangeTextBox(Value as String) Text1.Text = Value END SUB and in form 2: PUBLIC SUB Button_Click() Form1.ChangeTextBox(form2Textbox.text) End Sub On Fri, Nov 7, 2008 at 10:18 AM, Oscar Cascante Fonseca < ocascante at ...2009...> wrote: > Hi, i am new in gambas.. > > I don't find in the archives any post about how to pass values between > forms. > > > > Ej: > > > > Form1 with a textbox control > > Form 2 with a button control > > > > When you click in Form2.button, the Form1.textbox.text change. > > > > Could somebody help me? > > > > Thanks. > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge > Build the coolest Linux based applications with Moblin SDK & win great > prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From pokerbirch at ...1601... Sat Nov 8 17:15:50 2008 From: pokerbirch at ...1601... (birchy) Date: Sat, 8 Nov 2008 08:15:50 -0800 (PST) Subject: [Gambas-user] Values between forms.. In-Reply-To: <4915B76F.5030609@...1909...> References: <481BC3FD4C8542BF85537D5181652B03@...2010...> <4914B916.1030809@...1909...> <20389706.post@...1379...> <49153AC8.20203@...1909...> <20397015.post@...1379...> <200811081624.26334.gambas@...1...> <20397250.post@...1379...> <4915B76F.5030609@...1909...> Message-ID: <20397519.post@...1379...> Doriano Blengino wrote: > there should be a way to make public just the needed things Perhaps an easy solution would be to add a public/private checkbox to the Properties of each control? -- View this message in context: http://www.nabble.com/Values-between-forms..-tp20387230p20397519.html Sent from the gambas-user mailing list archive at Nabble.com. From doriano.blengino at ...1909... Sat Nov 8 18:26:45 2008 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Sat, 08 Nov 2008 18:26:45 +0100 Subject: [Gambas-user] Values between forms.. In-Reply-To: <200811081659.48802.gambas@...1...> References: <481BC3FD4C8542BF85537D5181652B03@...2010...> <20397250.post@...1379...> <4915B76F.5030609@...1909...> <200811081659.48802.gambas@...1...> Message-ID: <4915CBD5.6070602@...1909...> Benoit Minisini ha scritto: > On samedi 8 novembre 2008, Doriano Blengino wrote: > >> birchy ha scritto: >> >>> Bugzilla from gambas at ...1... wrote: >>> >>>> One of the rules of good programming is making the less possible things >>>> public >>>> >>> I totally agree with this, but if we have a project rich with progress >>> bars and other graphical displays, it is not uncommon to write a class or >>> module to handle them. Perhaps i have misunderstood how to do this in >>> Gambas. How would i do this from a class without making the controls >>> public? >>> >> Perhaps a wrapper method should be used... with no gain (one thing >> public instead of another one - where is the improvement?). >> > > This is an improvement because you have *only the needed* thing public instead > of *everything*. > > I agree partly with you. But, if you have something 8 values (or more), then you write a method with eight parameters. Then, in different places, you discover you are not interested in set them all, so you start to write different methods with less parameters, and you want to group them in a reasonable way - or write 8 single-parameter methods (or a method with optional arguments). What a mess... where no lines of code could be enough, you start to write several. Now you are thinking: "So, you did not planned enough, and now you don't know where to go". It is right, and all us programmer do so (and you too). And sometimes, you start write something, and your customer (or yourself) find that things could be better. To make it short, you are right. But a programming language should encourage, not force, good programming techniques. So I would prefer a language that lets me choose - the quick and dirty way, or the "long term", more reasoned one. Best regards, Doriano From gambas at ...1... Sat Nov 8 18:39:16 2008 From: gambas at ...1... (Benoit Minisini) Date: Sat, 8 Nov 2008 18:39:16 +0100 Subject: [Gambas-user] Values between forms.. In-Reply-To: <4915CBD5.6070602@...1909...> References: <481BC3FD4C8542BF85537D5181652B03@...2010...> <200811081659.48802.gambas@...1...> <4915CBD5.6070602@...1909...> Message-ID: <200811081839.16565.gambas@...1...> On samedi 8 novembre 2008, Doriano Blengino wrote: > Benoit Minisini ha scritto: > > On samedi 8 novembre 2008, Doriano Blengino wrote: > >> birchy ha scritto: > >>> Bugzilla from gambas at ...1... wrote: > >>>> One of the rules of good programming is making the less possible > >>>> things public > >>> > >>> I totally agree with this, but if we have a project rich with progress > >>> bars and other graphical displays, it is not uncommon to write a class > >>> or module to handle them. Perhaps i have misunderstood how to do this > >>> in Gambas. How would i do this from a class without making the controls > >>> public? > >> > >> Perhaps a wrapper method should be used... with no gain (one thing > >> public instead of another one - where is the improvement?). > > > > This is an improvement because you have *only the needed* thing public > > instead of *everything*. > > I agree partly with you. But, if you have something 8 values (or more), > then you write a method with eight parameters. Then, in different > places, you discover you are not interested in set them all, so you > start to write different methods with less parameters, and you want to > group them in a reasonable way - or write 8 single-parameter methods (or > a method with optional arguments). What a mess... where no lines of code > could be enough, you start to write several. > > Now you are thinking: "So, you did not planned enough, and now you don't > know where to go". It is right, and all us programmer do so (and you > too). And sometimes, you start write something, and your customer (or > yourself) find that things could be better. > > To make it short, you are right. But a programming language should > encourage, not force, good programming techniques. So I would prefer a > language that lets me choose - the quick and dirty way, or the "long > term", more reasoned one. > > Best regards, > Doriano > There is another constraint in Gambas with making control publics: it uses memory. Having only the option to make all control publics, I prefer to discourage people using it. The solution would be, as said 'birchy', having a checkbox in the property sheet to make controls public or not individually. Something that I will write in the TODO file! Regards, -- Benoit Minisini From gambas at ...1... Sat Nov 8 18:46:22 2008 From: gambas at ...1... (Benoit Minisini) Date: Sat, 8 Nov 2008 18:46:22 +0100 Subject: [Gambas-user] Searching a key in the array of gb.settings In-Reply-To: <4914B9F8.3000500@...1909...> References: <200811071702.34497.gambas@...1938...> <200811071940.00499.gambas@...1938...> <4914B9F8.3000500@...1909...> Message-ID: <200811081846.22715.gambas@...1...> On vendredi 7 novembre 2008, Doriano Blengino wrote: > gambas at ...1938... ha scritto: > > Am Freitag, 7. November 2008 17:50:55 schrieb Benoit Minisini: > >> On vendredi 7 novembre 2008, gambas at ...1938... wrote: > >>> But one question remains: > >>> Is there a way to do something (say PRINT() ) with each element of the > >>> settings.object without knowing each single key??? > >>> > >>> Greetz > >>> Stevie > >> > >> No way. Do you need it? > > This remembers me I had a similar need... not important, but the > possibility to enumerate settings could be handy sometimes. > I implemented that feature in Gambas 3, revision #1682: FOR EACH Key IN Settings.Keys["General"] PRINT Key NEXT That will give you all keys under the 'General' section. Regards, -- Benoit Minisini From gambas at ...1... Sat Nov 8 18:50:11 2008 From: gambas at ...1... (Benoit Minisini) Date: Sat, 8 Nov 2008 18:50:11 +0100 Subject: [Gambas-user] Mysql query question In-Reply-To: <49117429.1010501@...1740...> References: <4910BDD8.1080507@...1740...> <4910E428.6000402@...1740...> <49117429.1010501@...1740...> Message-ID: <200811081850.11239.gambas@...1...> On mercredi 5 novembre 2008, Ron wrote: > Ron schreef: > > Benoit Minisini wrote: > >> On mardi 4 novembre 2008, Ron wrote: > >>> Hi, > >>> > >>> I'm replacing my buggy mysql query's for correct ones... > >>> > >>> All is well except for this one... > >>> > >>> DIM sTable as String = "remarks_tags" > >>> > >>> Main.hDB.Exec("SELECT text FROM " & sTable & " ORDER BY rand() LIMIT > >>> 1") > >>> This works ok... > >>> > >>> Replaced by... > >>> > >>> Main.hDB.Exec("SELECT text FROM &1 ORDER BY rand() LIMIT 1", sTable) > >>> > >>> Which results in an SQL query syntax error, is this correct behavior? > >>> > >>> Any ideas? > >>> > >>> Regards, > >>> Ron_2nd > >> > >> &1, &2... are there for quoting SQL values, not SQL table or field > >> names. > >> Moreover, if you want to insert a table or field name in a SQL > >> request, you should use the DB.Quote() function: > >> > >> Main.hDB.Exec("SELECT text FROM " & DB.Quote(sTable) & " ORDER BY > >> rand() LIMIT 1") > > > > Ok got it, works ok now. > > > > Thanks. > > Does gambas provide an equivalent for the sql code below? > > sSql = "CREATE TABLE capture_camera" & iCam & " (" > sSql &= "`id` int(11) NOT NULL auto_increment," > sSql &= "`stamp` timestamp NOT NULL default CURRENT_TIMESTAMP on update > CURRENT_TIMESTAMP," > sSql &= "`image` longblob," > sSql &= "PRIMARY KEY( `id`)," > sSql &= "KEY `timestamp` (`stamp`)" > sSql &= ");" > Main.hDB.Exec(sSql) > > This is what I have so far, but the replacement of the KEY and > CURRENT_TIMESTAMP on update functionality is unclear to me. > It seems it's not here, and I have to keep using the method above. > > DIM tableCaptures as Table > > tableCaptures = Main.hDB.Tables.Add("capture_camera" & iCam) > tableCaptures.Fields.Add("id", db.Serial) > tableCaptures.Fields.Add("stamp", db.date, 32) > tableCaptures.Fields.Add("image", db.blob) > tableCaptures.PrimaryKey = ["id"] > tableCaptures.Update() > > I'm using the mysql driver. > > Regards, > Ron_2nd > No, gb.db does not provide an interface to that feature, as it is a mysql syntax only. Regards, -- Benoit Minisini From david_villalobos_c at ...43... Sat Nov 8 21:50:36 2008 From: david_villalobos_c at ...43... (David Villalobos Cambronero) Date: Sat, 8 Nov 2008 12:50:36 -0800 (PST) Subject: [Gambas-user] Mysql query question References: <4910BDD8.1080507@...1740...> <4910E428.6000402@...1740...> <49117429.1010501@...1740...> <200811081850.11239.gambas@...1...> Message-ID: <757375.2334.qm@...1658...> Can gb.db.mysql help? Regards -- David ----- Original Message ---- From: Benoit Minisini To: mailing list for gambas users Sent: Saturday, November 8, 2008 11:50:11 AM Subject: Re: [Gambas-user] Mysql query question On mercredi 5 novembre 2008, Ron wrote: > Ron schreef: > > Benoit Minisini wrote: > >> On mardi 4 novembre 2008, Ron wrote: > >>> Hi, > >>> > >>> I'm replacing my buggy mysql query's for correct ones... > >>> > >>> All is well except for this one... > >>> > >>> DIM sTable as String = "remarks_tags" > >>> > >>> Main.hDB.Exec("SELECT text FROM " & sTable & " ORDER BY rand() LIMIT > >>> 1") > >>> This works ok... > >>> > >>> Replaced by... > >>> > >>> Main.hDB.Exec("SELECT text FROM &1 ORDER BY rand() LIMIT 1", sTable) > >>> > >>> Which results in an SQL query syntax error, is this correct behavior? > >>> > >>> Any ideas? > >>> > >>> Regards, > >>> Ron_2nd > >> > >> &1, &2... are there for quoting SQL values, not SQL table or field > >> names. > >> Moreover, if you want to insert a table or field name in a SQL > >> request, you should use the DB.Quote() function: > >> > >> Main.hDB.Exec("SELECT text FROM " & DB.Quote(sTable) & " ORDER BY > >> rand() LIMIT 1") > > > > Ok got it, works ok now. > > > > Thanks. > > Does gambas provide an equivalent for the sql code below? > > sSql = "CREATE TABLE capture_camera" & iCam & " (" > sSql &= "`id` int(11) NOT NULL auto_increment," > sSql &= "`stamp` timestamp NOT NULL default CURRENT_TIMESTAMP on update > CURRENT_TIMESTAMP," > sSql &= "`image` longblob," > sSql &= "PRIMARY KEY( `id`)," > sSql &= "KEY `timestamp` (`stamp`)" > sSql &= ");" > Main.hDB.Exec(sSql) > > This is what I have so far, but the replacement of the KEY and > CURRENT_TIMESTAMP on update functionality is unclear to me. > It seems it's not here, and I have to keep using the method above. > > DIM tableCaptures as Table > > tableCaptures = Main.hDB.Tables.Add("capture_camera" & iCam) > tableCaptures.Fields.Add("id", db.Serial) > tableCaptures.Fields.Add("stamp", db.date, 32) > tableCaptures.Fields.Add("image", db.blob) > tableCaptures.PrimaryKey = ["id"] > tableCaptures.Update() > > I'm using the mysql driver. > > Regards, > Ron_2nd > No, gb.db does not provide an interface to that feature, as it is a mysql syntax only. Regards, -- Benoit Minisini ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From gambas at ...1938... Sat Nov 8 22:38:58 2008 From: gambas at ...1938... (gambas at ...1938...) Date: Sat, 8 Nov 2008 22:38:58 +0100 Subject: [Gambas-user] Searching a key in the array of gb.settings In-Reply-To: <200811081846.22715.gambas@...1...> References: <200811071702.34497.gambas@...1938...> <4914B9F8.3000500@...1909...> <200811081846.22715.gambas@...1...> Message-ID: <200811082238.58089.gambas@...1938...> Am Samstag, 8. November 2008 18:46:22 schrieb Benoit Minisini: > I implemented that feature in Gambas 3, revision #1682: > > FOR EACH Key IN Settings.Keys["General"] > PRINT Key > NEXT > > That will give you all keys under the 'General' section. Many, many thanks! :-) Greetz Stevie From gambas at ...1938... Sat Nov 8 22:36:53 2008 From: gambas at ...1938... (gambas at ...1938...) Date: Sat, 8 Nov 2008 22:36:53 +0100 Subject: [Gambas-user] Searching a key in the array of gb.settings In-Reply-To: <491573F7.1060101@...1909...> References: <200811071702.34497.gambas@...1938...> <200811081139.18261.gambas@...1938...> <491573F7.1060101@...1909...> Message-ID: <200811082236.53986.gambas@...1938...> Am Samstag, 8. November 2008 12:11:51 schrieb Doriano Blengino: > gambas at ...1938... ha scritto: > > There is just another thing with gb.settings. > > > > Let's say, the user entered a number on his keypad, which is registered > > in my seetings.file and associated with the action: > > "SunIsShinigOpenRoofOFCarAndHaveAFunnyRide" :-) > > > > Print (hCFG["Action/" & sItem]) > > Ouput: SunIsShinigOpenRoofOFCarAndHaveAFunnyRide > > > > Just for fun: > > Action = hCFG["Action/" & sItem] > > Print (Action) > > Ouput: SunIsShinigOpenRoofOFCarAndHaveAFunnyRide > > What type the variable Action has? Should be string... It is string! > > Calling this function with > > hCFG["Action/" & sItem]() > > or > > Action() 'is the same as above, I know > > > > compiles fine, but when executing the programm, I get: > > MMain.?.0: #12: Not an object > > > > Any ideas?? ...sitting in front of my code with many many "?" in my face. > > :-) > > What you are trying to do could only work in true interpreted languages > - perhaps; That's the answer why it works in Perl! :whistle: > it is a total non-sense in every serious programming language. > Gambas is a serious language, so it can not do what you (erroneously) > expect. But gambas is not innocent - it lets you to compile non-senses... > > The error "Not an object" is right: you tried to call a string - which > is not an object. Message understood!! ...it's not so easy to release a perl-behavior. ;-) But I'm still lost in the dark. How can I check, if the user entered a valid option of my servicemenu (settingsfile)? TIA Greetz Stevie From sbungay at ...981... Sun Nov 9 05:48:33 2008 From: sbungay at ...981... (Stephen Bungay) Date: Sat, 08 Nov 2008 23:48:33 -0500 Subject: [Gambas-user] Resize event... Message-ID: <49166BA1.4080200@...981...> A form, lets call it "FormX" contains a tabStrip which has another form, call it "FormY" dynamically instantiated inside the TabStrip at run-time. FormY has three controls on it, a calendar, a table, and a VSplit to seperate them. When FormX is resized the TabStrip is resized and I want to couple this to FormY by firing it's resize event. I do this by explicitly calling what I think is the FormY.Resize event, but FormY.Resize wants Width and Height paramters passed to it. This I find kind of strange because FormY_Resize has no Width and Height Parameters in the declared in the event. When the code is stepped through the FormY_Resize does not fire when FormY.Resize(Width,Height) is called and the controls stubbornly remain the size they were when initialized. A couple of questions; 1. Why does FormY.Resize want Width and Height parameters when clearly there are no such parameters in the FormY_Resize event? 2. Why is FormY_Resize not firing? From doriano.blengino at ...1909... Sun Nov 9 10:00:11 2008 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Sun, 09 Nov 2008 10:00:11 +0100 Subject: [Gambas-user] Searching a key in the array of gb.settings In-Reply-To: <200811082236.53986.gambas@...1938...> References: <200811071702.34497.gambas@...1938...> <200811081139.18261.gambas@...1938...> <491573F7.1060101@...1909...> <200811082236.53986.gambas@...1938...> Message-ID: <4916A69B.8030202@...1909...> gambas at ...1938... ha scritto: > >> What you are trying to do could only work in true interpreted languages >> - perhaps; >> > That's the answer why it works in Perl! :whistle: > > >> it is a total non-sense in every serious programming language. >> I have to correct myself. The distinction is not among "serious" languages and "not serious" ones. I don't want to say that Bash, Tcl, Perl and probably others are not serious. The difference is in compiled languages (either compiled to machine code or p-code) and interpreted ones. Sorry if my previous mail offended someone ;-) Problem is that, normally, compiled languages discard informations about names. So if you construct a string in program, there is no way to associate it directly to what was a program symbol. But often compilers keep, for at least a part of the program, some information about the names. > But I'm still lost in the dark. > How can I check, if the user entered a valid option of my servicemenu > (settingsfile)? > I think your program offers a finite set of procedures, and the settings[] content is managed by your program too, so: 1. hCFG["Action/" & sItem] can be empty (""), and so it is invalid, or 2. it contains something your program wrote in it, and so it should be valid 3. unless you take a user input and, without checking it, you use it verbatim. And this is no good. Next problem is to deal with a set of strings, and associate them to the routines. If they are not too much, a simple (in pseudo code): sAction = settings[...] if sAction="Item1" then Item1(); if sAction="Item2" then Item2(); ... or, even better, select sAction case "Item1" Item1() case "Item2" Item2() ... case else print "Unknown command" end select Don't know if there are other ways to store the address of a routine somewhere (an array or a collection) - probably is possible by using object.xxxx methods, but I would stay to the clear and simple method depicted above. If you want me to be more precise, you should give more information about your program. Regards, Doriano From doriano.blengino at ...1909... Sun Nov 9 10:25:46 2008 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Sun, 09 Nov 2008 10:25:46 +0100 Subject: [Gambas-user] Resize event... In-Reply-To: <49166BA1.4080200@...981...> References: <49166BA1.4080200@...981...> Message-ID: <4916AC9A.4040207@...1909...> Stephen Bungay ha scritto: > A form, lets call it "FormX" contains a tabStrip which has another > form, call it "FormY" dynamically instantiated inside the TabStrip at > run-time. FormY has three controls on it, a calendar, a table, and a > VSplit to seperate them. > When FormX is resized the TabStrip is resized and I want to couple > this to FormY by firing it's resize event. I do this by explicitly > calling what I think is the FormY.Resize event, but FormY.Resize wants > Width and Height paramters passed to it. This I find kind of strange > because FormY_Resize has no Width and Height Parameters in the declared > in the event. > When the code is stepped through the FormY_Resize does not fire when > FormY.Resize(Width,Height) is called and the controls stubbornly remain > the size they were when initialized. > A couple of questions; > > 1. Why does FormY.Resize want Width and Height parameters when clearly > there are no such parameters in the FormY_Resize event? > > 2. Why is FormY_Resize not firing? > Do not confuse the resize method with the resize event. You use the resize method when you want your form be resized, by program code. For example, the program loads a picture from disk, and then wants the form to adapt to the size of the picture. So the program issues a "me.resize(hPhoto.width, hPhoto.height)" (well, not exactly so, but you catch the idea). The resize event is fired from the external world, and the form "waits" for it to do something more than merely readjust its children controls. If you want to simply rearrange childrens, then a set of powerful features can be used (panels, h/vboxes, expand, ignore...), and chances are that you succed. So, in the first case, you command the form to resize, and you also have to tell it what sizes to assume. In the second case, the world tells you that the form dimensions are changed; you can read the new dimensions in the Width and Height properties, and take appropriate actions. This is why Form.resize() method takes parameters, and Form_Resize() takes none; because the latter case is only a signal, and you can be not interested in the real dimensions, only want to know that the user resized the form. Apart from this clarification, I had a hard debate with Benoit about embedding forms inside tabstrips. What I remember about the end, is that resize events will not raise. Full stop. I think this is an omission, because when the size of the form changes, a resize event should be fired no matter if the form is child of the desktop or child of a tabstrip. I tried several way to solve, and found none (well, something could be done by using horrible hacks, which breaked form/tabstrip independency). But a stupid trick could be this one: Put a timer on the form, and declare two private variables like "mywidth" and "myheight". Every second, or whatever, the timer event fires, and you do: sub timer1_timer() if mywidth=me.width and myheight=me.height then return ' nothing happened ' form has been resized mywidth = me.width myheight = me.height ' additional code... end Funny uh? Salutations, Doriano From gambas at ...1938... Sun Nov 9 10:37:40 2008 From: gambas at ...1938... (gambas at ...1938...) Date: Sun, 9 Nov 2008 10:37:40 +0100 Subject: [Gambas-user] Searching a key in the array of gb.settings In-Reply-To: <4916A69B.8030202@...1909...> References: <200811071702.34497.gambas@...1938...> <200811082236.53986.gambas@...1938...> <4916A69B.8030202@...1909...> Message-ID: <200811091037.40473.gambas@...1938...> Hi Doriano, Am Sonntag, 9. November 2008 10:00:11 schrieb Doriano Blengino: > gambas at ...1938... ha scritto: > >> What you are trying to do could only work in true interpreted languages > >> - perhaps; > > > > That's the answer why it works in Perl! :whistle: > >> it is a total non-sense in every serious programming language. > > I have to correct myself. The distinction is not among "serious" > languages and "not serious" ones. > I don't want to say that Bash, Tcl, Perl and probably others are not > serious. > The difference is in compiled languages (either compiled to machine code > or p-code) and interpreted ones. > Sorry if my previous mail offended someone ;-) There is no reason you had to worry about ....at least for me. My hint to Perl was only the expression of my "personal brain ignition" :-) ...because I programmed many years in perl. > Problem is that, normally, compiled languages discard informations about > names. So if you construct a string in program, there is no way to > associate it directly to what was a program symbol. But often compilers > keep, for at least a part of the program, some information about the names. That are the things I have to keep in mind, during my "switching process" from perl to gambas. :-) At the moment I'm migrating some perl programms to gambas. Until now, I looked into the perl code and adapted/migrated it to gambas. That was a big mistake! From ron at ...1740... Sun Nov 9 15:54:24 2008 From: ron at ...1740... (Ron) Date: Sun, 09 Nov 2008 15:54:24 +0100 Subject: [Gambas-user] Mysql query question In-Reply-To: <757375.2334.qm@...1658...> References: <4910BDD8.1080507@...1740...> <4910E428.6000402@...1740...> <49117429.1010501@...1740...> <200811081850.11239.gambas@...1...> <757375.2334.qm@...1658...> Message-ID: <4916F9A0.6040903@...1740...> David Villalobos Cambronero wrote: > Can gb.db.mysql help? > > Regards > > > -- > David > > > > ----- Original Message ---- > From: Benoit Minisini > To: mailing list for gambas users > Sent: Saturday, November 8, 2008 11:50:11 AM > Subject: Re: [Gambas-user] Mysql query question > > On mercredi 5 novembre 2008, Ron wrote: > >> Ron schreef: >> >>> Benoit Minisini wrote: >>> >>>> On mardi 4 novembre 2008, Ron wrote: >>>> >>>>> Hi, >>>>> >>>>> I'm replacing my buggy mysql query's for correct ones... >>>>> >>>>> All is well except for this one... >>>>> >>>>> DIM sTable as String = "remarks_tags" >>>>> >>>>> Main.hDB.Exec("SELECT text FROM " & sTable & " ORDER BY rand() LIMIT >>>>> 1") >>>>> This works ok... >>>>> >>>>> Replaced by... >>>>> >>>>> Main.hDB.Exec("SELECT text FROM &1 ORDER BY rand() LIMIT 1", sTable) >>>>> >>>>> Which results in an SQL query syntax error, is this correct behavior? >>>>> >>>>> Any ideas? >>>>> >>>>> Regards, >>>>> Ron_2nd >>>>> >>>> &1, &2... are there for quoting SQL values, not SQL table or field >>>> names. >>>> Moreover, if you want to insert a table or field name in a SQL >>>> request, you should use the DB.Quote() function: >>>> >>>> Main.hDB.Exec("SELECT text FROM " & DB.Quote(sTable) & " ORDER BY >>>> rand() LIMIT 1") >>>> >>> Ok got it, works ok now. >>> >>> Thanks. >>> >> Does gambas provide an equivalent for the sql code below? >> >> sSql = "CREATE TABLE capture_camera" & iCam & " (" >> sSql &= "`id` int(11) NOT NULL auto_increment," >> sSql &= "`stamp` timestamp NOT NULL default CURRENT_TIMESTAMP on update >> CURRENT_TIMESTAMP," >> sSql &= "`image` longblob," >> sSql &= "PRIMARY KEY( `id`)," >> sSql &= "KEY `timestamp` (`stamp`)" >> sSql &= ");" >> Main.hDB.Exec(sSql) >> >> This is what I have so far, but the replacement of the KEY and >> CURRENT_TIMESTAMP on update functionality is unclear to me. >> It seems it's not here, and I have to keep using the method above. >> >> DIM tableCaptures as Table >> >> tableCaptures = Main.hDB.Tables.Add("capture_camera" & iCam) >> tableCaptures.Fields.Add("id", db.Serial) >> tableCaptures.Fields.Add("stamp", db.date, 32) >> tableCaptures.Fields.Add("image", db.blob) >> tableCaptures.PrimaryKey = ["id"] >> tableCaptures.Update() >> >> I'm using the mysql driver. >> >> Regards, >> Ron_2nd >> >> > > No, gb.db does not provide an interface to that feature, as it is a mysql > syntax only. > > Regards, > > No problem I have solved it by setting the timestamp from my code. Regards, Ron. From maximvonk at ...626... Sun Nov 9 18:42:20 2008 From: maximvonk at ...626... (MaxVK) Date: Sun, 9 Nov 2008 09:42:20 -0800 (PST) Subject: [Gambas-user] Latest Gambas packages for Ubuntu - Broken? Message-ID: <20408776.post@...1379...> Hi, please forgive me if I am getting lost along the way here: I'm on and off of the PC at the moment for various reasons, and I seem to spend my time trying to catch up! Anyway, I went to the Gambas website (http://gambas.sourceforge.net/download.html) to find the latest packages for Ubuntu but the link (http://gambas.gnulinex.org/ubuntu) to the newer packages seems to be broken (The page never loads). Does anyone have an alternative link to the latest Ubuntu deb packages please. I currently have Gambas 2.0.0, which I seem to remember updating some time ago now. regards Max -- View this message in context: http://www.nabble.com/Latest-Gambas-packages-for-Ubuntu---Broken--tp20408776p20408776.html Sent from the gambas-user mailing list archive at Nabble.com. From epileg at ...626... Sun Nov 9 19:20:23 2008 From: epileg at ...626... (=?ISO-8859-1?Q?Ep=EDleg?=) Date: Sun, 09 Nov 2008 19:20:23 +0100 Subject: [Gambas-user] Latest Gambas packages for Ubuntu - Broken? In-Reply-To: <20408776.post@...1379...> References: <20408776.post@...1379...> Message-ID: <491729E7.9010707@...626...> En/na MaxVK ha escrit: > Hi, please forgive me if I am getting lost along the way here: I'm on and off > of the PC at the moment for various reasons, and I seem to spend my time > trying to catch up! > > Anyway, I went to the Gambas website > (http://gambas.sourceforge.net/download.html) to find the latest packages > for Ubuntu but the link (http://gambas.gnulinex.org/ubuntu) to the newer > packages seems to be broken (The page never loads). > > Does anyone have an alternative link to the latest Ubuntu deb packages > please. I currently have Gambas 2.0.0, which I seem to remember updating > some time ago now. > > regards > > Max You can build them Yourself. http://packages.debian.org/unstable/source/gambas2 Download the three files (gambas2_2.8.2-1.dsc, gambas2_2.8.2.orig.tar.gz and gambas2_2.8.2-1.diff.gz) and save them in a folder. With the command line go to this folder and type: $ dpkg-source -x gambas2_2.8.2-1.dsc $ cd gambas2-2.8.2/ $ sudo dpkg-buildpackage Probably You will need to install some packages at this moment, do it and try the last command again. After a while You will get all .deb's files. Regards. -- Ep?leg From rterry at ...1946... Sun Nov 9 22:48:07 2008 From: rterry at ...1946... (richard terry) Date: Mon, 10 Nov 2008 08:48:07 +1100 Subject: [Gambas-user] Feature request Message-ID: <200811100848.08048.rterry@...1946...> I've mentioned this one before, wondered if Benoit could give it consideration. Request: Option on the popup menu over the tab for 'Set as Startup' See the picture. When you right click over the tab, you get the menu which includes the tab names and two options - 'Close current tab', 'Close all other tabs'. I wondered if 'Set as startup' could be added here. Reason: When your project has some dozens of forms, and one is constantly developing different forms, one may have to scroll down through the list at the side, and it is both time consuming and often the classes/mods tree is open as well ,which may have another couple of dozen files to have to scroll through. Regards and thanks for the consideration of this. Richard -------------- next part -------------- A non-text attachment was scrubbed... Name: gambas2_popup_on_tab.png Type: image/png Size: 57070 bytes Desc: not available URL: From sbungay at ...981... Mon Nov 10 00:00:50 2008 From: sbungay at ...981... (Stephen Bungay) Date: Sun, 09 Nov 2008 18:00:50 -0500 Subject: [Gambas-user] Resize event... In-Reply-To: <4916AC9A.4040207@...1909...> References: <49166BA1.4080200@...981...> <4916AC9A.4040207@...1909...> Message-ID: <49176BA2.6020202@...981...> Thanks for the clarification, the resize method is new since I last did extensive work with GAMBAS, IMHO it is not required. On thye surface of it setting the Width and Height Properties perform the same function as the Resize method. The timer hack is a major kludge and is not acceptable. If one calls the resize method and the form "resizes" then a "resize event" has occurred and that event should fire. .Parent form resize event occurs due to user interaction .. Programmer's code adjusts tabstrip size. .. Programmer calls embedded forms' resize method with new size params ....Embedded form resizes ....Embedded forms' resize event fires (it just resized after all!) ......Resize event can be used by programmer to adjust child controls. The resize event of an object should fire when that object is resized, full stop. Who or what caused the resize to occur is irrelevant. Benoit: how can one dynamically resize form objects that are embedded in a tabstrip? Doriano Blengino wrote: > Stephen Bungay ha scritto: >> A form, lets call it "FormX" contains a tabStrip which has another >> form, call it "FormY" dynamically instantiated inside the TabStrip at >> run-time. FormY has three controls on it, a calendar, a table, and a >> VSplit to seperate them. >> When FormX is resized the TabStrip is resized and I want to couple >> this to FormY by firing it's resize event. I do this by explicitly >> calling what I think is the FormY.Resize event, but FormY.Resize wants >> Width and Height paramters passed to it. This I find kind of strange >> because FormY_Resize has no Width and Height Parameters in the declared >> in the event. >> When the code is stepped through the FormY_Resize does not fire when >> FormY.Resize(Width,Height) is called and the controls stubbornly remain >> the size they were when initialized. >> A couple of questions; >> >> 1. Why does FormY.Resize want Width and Height parameters when clearly >> there are no such parameters in the FormY_Resize event? >> >> 2. Why is FormY_Resize not firing? >> > Do not confuse the resize method with the resize event. > > You use the resize method when you want your form be resized, by program > code. For example, the program loads a picture from disk, and then wants > the form to adapt to the size of the picture. So the program issues a > "me.resize(hPhoto.width, hPhoto.height)" (well, not exactly so, but you > catch the idea). > > The resize event is fired from the external world, and the form "waits" > for it to do something more than merely readjust its children controls. > If you want to simply rearrange childrens, then a set of powerful > features can be used (panels, h/vboxes, expand, ignore...), and chances > are that you succed. > > So, in the first case, you command the form to resize, and you also have > to tell it what sizes to assume. In the second case, the world tells you > that the form dimensions are changed; you can read the new dimensions in > the Width and Height properties, and take appropriate actions. > This is why Form.resize() method takes parameters, and Form_Resize() > takes none; because the latter case is only a signal, and you can be not > interested in the real dimensions, only want to know that the user > resized the form. > > Apart from this clarification, I had a hard debate with Benoit about > embedding forms inside tabstrips. What I remember about the end, is that > resize events will not raise. Full stop. I think this is an omission, > because when the size of the form changes, a resize event should be > fired no matter if the form is child of the desktop or child of a tabstrip. > > I tried several way to solve, and found none (well, something could be > done by using horrible hacks, which breaked form/tabstrip independency). > But a stupid trick could be this one: > > Put a timer on the form, and declare two private variables like > "mywidth" and "myheight". > Every second, or whatever, the timer event fires, and you do: > > sub timer1_timer() > if mywidth=me.width and myheight=me.height then return ' nothing > happened > ' form has been resized > mywidth = me.width > myheight = me.height > ' additional code... > end > > Funny uh? > > Salutations, > Doriano > > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Mon Nov 10 00:07:36 2008 From: gambas at ...1... (Benoit Minisini) Date: Mon, 10 Nov 2008 00:07:36 +0100 Subject: [Gambas-user] Resize event... In-Reply-To: <4916AC9A.4040207@...1909...> References: <49166BA1.4080200@...981...> <4916AC9A.4040207@...1909...> Message-ID: <200811100007.37091.gambas@...1...> On dimanche 9 novembre 2008, Doriano Blengino wrote: > Stephen Bungay ha scritto: > > A form, lets call it "FormX" contains a tabStrip which has another > > form, call it "FormY" dynamically instantiated inside the TabStrip at > > run-time. FormY has three controls on it, a calendar, a table, and a > > VSplit to seperate them. > > When FormX is resized the TabStrip is resized and I want to couple > > this to FormY by firing it's resize event. I do this by explicitly > > calling what I think is the FormY.Resize event, but FormY.Resize wants > > Width and Height paramters passed to it. This I find kind of strange > > because FormY_Resize has no Width and Height Parameters in the declared > > in the event. > > When the code is stepped through the FormY_Resize does not fire when > > FormY.Resize(Width,Height) is called and the controls stubbornly remain > > the size they were when initialized. > > A couple of questions; > > > > 1. Why does FormY.Resize want Width and Height parameters when clearly > > there are no such parameters in the FormY_Resize event? > > > > 2. Why is FormY_Resize not firing? > > Do not confuse the resize method with the resize event. > > You use the resize method when you want your form be resized, by program > code. For example, the program loads a picture from disk, and then wants > the form to adapt to the size of the picture. So the program issues a > "me.resize(hPhoto.width, hPhoto.height)" (well, not exactly so, but you > catch the idea). > > The resize event is fired from the external world, and the form "waits" > for it to do something more than merely readjust its children controls. > If you want to simply rearrange childrens, then a set of powerful > features can be used (panels, h/vboxes, expand, ignore...), and chances > are that you succed. > > So, in the first case, you command the form to resize, and you also have > to tell it what sizes to assume. In the second case, the world tells you > that the form dimensions are changed; you can read the new dimensions in > the Width and Height properties, and take appropriate actions. > This is why Form.resize() method takes parameters, and Form_Resize() > takes none; because the latter case is only a signal, and you can be not > interested in the real dimensions, only want to know that the user > resized the form. > > Apart from this clarification, I had a hard debate with Benoit about > embedding forms inside tabstrips. What I remember about the end, is that > resize events will not raise. Full stop. I think this is an omission, > because when the size of the form changes, a resize event should be > fired no matter if the form is child of the desktop or child of a tabstrip. > No, if Resize event is not raised, then it was a bug. Are you sure that we talked about that? -- Benoit Minisini From gambas at ...1... Mon Nov 10 00:09:10 2008 From: gambas at ...1... (Benoit Minisini) Date: Mon, 10 Nov 2008 00:09:10 +0100 Subject: [Gambas-user] Feature request In-Reply-To: <200811100848.08048.rterry@...1946...> References: <200811100848.08048.rterry@...1946...> Message-ID: <200811100009.10602.gambas@...1...> On dimanche 9 novembre 2008, richard terry wrote: > I've mentioned this one before, wondered if Benoit could give it > consideration. > > Request: Option on the popup menu over the tab for 'Set as Startup' > > See the picture. When you right click over the tab, you get the menu which > includes the tab names and two options - 'Close current tab', 'Close all > other tabs'. I wondered if 'Set as startup' could be added here. > > Reason: > > When your project has some dozens of forms, and one is constantly > developing different forms, one may have to scroll down through the list at > the side, and it is both time consuming and often the classes/mods tree is > open as well ,which may have another couple of dozen files to have to > scroll through. > > Regards and thanks for the consideration of this. > > Richard This menu is the menu of the Workspace, I can't change it. But I can add a menu entry in the code editor menu and in the form editor menu, with a toolbar button too. If you want. -- Benoit Minisini From ron at ...1740... Sun Nov 9 23:57:43 2008 From: ron at ...1740... (Ron) Date: Sun, 09 Nov 2008 23:57:43 +0100 Subject: [Gambas-user] Build fails Message-ID: <49176AE7.8030506@...1740...> Cannot get this: Path: . URL: https://gambas.svn.sourceforge.net/svnroot/gambas/gambas/branches/2.0 Repository Root: https://gambas.svn.sourceforge.net/svnroot/gambas Repository UUID: 96304659-1d19-0410-acd0-aead272a8bd5 Revision: 1686 Node Kind: directory Schedule: normal Last Changed Author: dcamposf Last Changed Rev: 1686 Last Changed Date: 2008-11-09 16:11:02 +0100 (Sun, 09 Nov 2008) To build on ubuntu 8.04.1 anymore: (build install) Making install in gb.qt make[1]: Entering directory `/home/ron/install/gambas/2.0/gb.qt' Making install in src make[2]: Entering directory `/home/ron/install/gambas/2.0/gb.qt/src' Making install in share make[3]: Entering directory `/home/ron/install/gambas/2.0/gb.qt/src/share' make[4]: Entering directory `/home/ron/install/gambas/2.0/gb.qt/src/share' make[4]: Nothing to be done for `install-exec-am'. make[4]: Nothing to be done for `install-data-am'. make[4]: Leaving directory `/home/ron/install/gambas/2.0/gb.qt/src/share' make[3]: Leaving directory `/home/ron/install/gambas/2.0/gb.qt/src/share' Making install in ext make[3]: Entering directory `/home/ron/install/gambas/2.0/gb.qt/src/ext' /bin/bash ../../libtool --tag=CXX --mode=link g++ -pipe -Wall -fno-exceptions -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os -fno-omit-frame-pointer -module -no-undefined @QT_LDFLAGS@ -o gb.qt.ext.la -rpath /usr/local/lib/gambas2 main.lo CLCDNumber_moc.lo CLCDNumber.lo CDial_moc.lo CDial.lo garray.lo gstring.lo gdocument.lo gview_moc.lo gview.lo CEditor_moc.lo CEditor.lo CDraw.lo CDrawing_moc.lo CDrawing.lo CPrinter_moc.lo CPrinter.lo CTextEdit_moc.lo CTextEdit.lo -lgcc_s -lstdc++ -lpthread -lSM -lICE -lX11 -lXext -lqt-mt g++ -shared -nostdlib /usr/lib/gcc/i486-linux-gnu/4.2.4/../../../../lib/crti.o /usr/lib/gcc/i486-linux-gnu/4.2.4/crtbeginS.o .libs/main.o .libs/CLCDNumber_moc.o .libs/CLCDNumber.o .libs/CDial_moc.o .libs/CDial.o .libs/garray.o .libs/gstring.o .libs/gdocument.o .libs/gview_moc.o .libs/gview.o .libs/CEditor_moc.o .libs/CEditor.o .libs/CDraw.o .libs/CDrawing_moc.o .libs/CDrawing.o .libs/CPrinter_moc.o .libs/CPrinter.o .libs/CTextEdit_moc.o .libs/CTextEdit.o -lpthread -lSM -lICE -lX11 -lXext /usr/lib/libqt-mt.so -L/usr/X11R6/lib -L/usr/lib/gcc/i486-linux-gnu/4.2.4 -L/usr/lib/gcc/i486-linux-gnu/4.2.4/../../../../lib -L/lib/../lib -L/usr/lib/../lib -L/usr/lib/gcc/i486-linux-gnu/4.2.4/../../.. -lstdc++ -lm -lc -lgcc_s /usr/lib/gcc/i486-linux-gnu/4.2.4/crtendS.o /usr/lib/gcc/i486-linux-gnu/4.2.4/../../../../lib/crtn.o @QT_LDFLAGS@ -Wl,-soname -Wl,gb.qt.ext.so.0 -o .libs/gb.qt.ext.so.0.0.0 g++: @QT_LDFLAGS@: No such file or directory make[3]: *** [gb.qt.ext.la] Error 1 make[3]: Leaving directory `/home/ron/install/gambas/2.0/gb.qt/src/ext' make[2]: *** [install-recursive] Error 1 make[2]: Leaving directory `/home/ron/install/gambas/2.0/gb.qt/src' make[1]: *** [install-recursive] Error 1 make[1]: Leaving directory `/home/ron/install/gambas/2.0/gb.qt' make: *** [install-recursive] Error 1 Regards, Ron From rterry at ...1946... Mon Nov 10 01:28:52 2008 From: rterry at ...1946... (richard terry) Date: Mon, 10 Nov 2008 11:28:52 +1100 Subject: [Gambas-user] Feature request In-Reply-To: <200811100009.10602.gambas@...1...> References: <200811100848.08048.rterry@...1946...> <200811100009.10602.gambas@...1...> Message-ID: <200811101128.52189.rterry@...1946...> On Mon, 10 Nov 2008 10:09:10 am Benoit Minisini wrote: > On dimanche 9 novembre 2008, richard terry wrote: > > I've mentioned this one before, wondered if Benoit could give it > > consideration. > > > > Request: Option on the popup menu over the tab for 'Set as Startup' > > > > See the picture. When you right click over the tab, you get the menu > > which includes the tab names and two options - 'Close current tab', > > 'Close all other tabs'. I wondered if 'Set as startup' could be added > > here. > > > > Reason: > > > > When your project has some dozens of forms, and one is constantly > > developing different forms, one may have to scroll down through the list > > at the side, and it is both time consuming and often the classes/mods > > tree is open as well ,which may have another couple of dozen files to > > have to scroll through. > > > > Regards and thanks for the consideration of this. > > > > Richard > > This menu is the menu of the Workspace, I can't change it. > > But I can add a menu entry in the code editor menu and in the form editor > menu, with a toolbar button too. If you want. That would be great!!!! thanks Richard From eilert-sprachen at ...221... Mon Nov 10 08:25:13 2008 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Mon, 10 Nov 2008 08:25:13 +0100 Subject: [Gambas-user] Highlight Editor - setting background? In-Reply-To: <200811080147.52197.gambas@...1...> References: <49142C22.401@...221...> <200811080147.52197.gambas@...1...> Message-ID: <4917E1D9.5070000@...221...> Benoit Minisini schrieb: > On vendredi 7 novembre 2008, Rolf-Werner Eilert wrote: >> Just one more question: is it possible to set a background color >> property for some of the elements such like >> >> Editor1.Styles[Highlight.String].Color = Color.DarkRed >> ^ >> >> ---------------------------------| >> >> Is there a BackColor or Color.Background or something like this? >> >> Regards >> >> Rolf >> > > This is possible in Gambas 3. > > Regards, > Ah :-) good to know... Regards Rolf From gambas at ...1938... Mon Nov 10 09:39:47 2008 From: gambas at ...1938... (gambas at ...1938...) Date: Mon, 10 Nov 2008 09:39:47 +0100 Subject: [Gambas-user] Searching a key in the array of gb.settings In-Reply-To: <200811091037.40473.gambas@...1938...> References: <200811071702.34497.gambas@...1938...> <4916A69B.8030202@...1909...> <200811091037.40473.gambas@...1938...> Message-ID: <200811100939.47824.gambas@...1938...> Am Sonntag, 9. November 2008 10:37:40 schrieb gambas at ...1938...: Hi Doriano, > There is no reason you had to worry about ....at least for me. I fear, this time, I have to correct my self. I think it should be: ...at least NOT for me! Still not sure about the correctness of this sentence. What I wanted to say: No problem for me!!! *lol* Greetz Stevie From doriano.blengino at ...1909... Mon Nov 10 09:47:33 2008 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Mon, 10 Nov 2008 09:47:33 +0100 Subject: [Gambas-user] Resize event... In-Reply-To: <49176BA2.6020202@...981...> References: <49166BA1.4080200@...981...> <4916AC9A.4040207@...1909...> <49176BA2.6020202@...981...> Message-ID: <4917F525.8030607@...1909...> Stephen Bungay ha scritto: > Thanks for the clarification, the resize method is new since I last > did extensive work with GAMBAS, IMHO it is not required. On thye surface > of it setting the Width and Height Properties perform the same function > as the Resize method. > > The timer hack is a major kludge and is not acceptable. > > If one calls the resize method and the form "resizes" then a "resize > event" has occurred and that event should fire. > This point is debatable. My opinion is that event should be raised when things change without program intervention, but it seems that many people don't think so. For example, when I write handlers for checkboxes_click, events are fired when, in code, the value is changed. I write "ckWarn.value=true", and an event fires. This annoys me, because I don't need to be alerted for something I just have done... > .Parent form resize event occurs due to user interaction > .. Programmer's code adjusts tabstrip size. > .. Programmer calls embedded forms' resize method with new size params > ....Embedded form resizes > ....Embedded forms' resize event fires (it just resized after all!) > ......Resize event can be used by programmer to adjust child controls. > > The resize event of an object should fire when that object is > resized, full stop. Who or what caused the resize to occur is irrelevant. > Step 2: the tabstrip could also adjust itself automatically (expand=true) Step 3: call the embedded form resize method. This implies that the tabstrip knows what it has inside, and how that form would like to resize. This breaks independency. Better would be to send an event to embedded form, and let the form decide what to do... Step 4: (see note before). If the embedded form resizes itself, could be a good idea to automatically raise a resize event. I don't think so - I think a program should have the possibility to send events to other objects. In this situation, I would like: 1. The user resizes the main form, which receives a resize event to operate on if wanted. 2. Children of the main form that are in some way affected (expand=true), receive a resize event (if they have it). 3. The tabstrip resizes, either automatically because expand=true or because parent form intervention, and so its children (tabstrip children) receive a resize event 4. The embedded form receives a resize event, and can ignore it or handle it. It seems that one ore more things are missing in gambas... :-) Salutations, Doriano From doriano.blengino at ...1909... Mon Nov 10 09:52:47 2008 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Mon, 10 Nov 2008 09:52:47 +0100 Subject: [Gambas-user] Resize event... In-Reply-To: <200811100007.37091.gambas@...1...> References: <49166BA1.4080200@...981...> <4916AC9A.4040207@...1909...> <200811100007.37091.gambas@...1...> Message-ID: <4917F65F.8090609@...1909...> Benoit Minisini ha scritto: >> Apart from this clarification, I had a hard debate with Benoit about >> embedding forms inside tabstrips. What I remember about the end, is that >> resize events will not raise. Full stop. I think this is an omission, >> because when the size of the form changes, a resize event should be >> fired no matter if the form is child of the desktop or child of a tabstrip. >> >> > > No, if Resize event is not raised, then it was a bug. Are you sure that we > talked about that? > This happened some time ago - could be I am wrong, but the proof is simple to produce. Right now I have no time but, in the course of today, may be I will find the time to build a simple project. Anyway, Stephen Bungay complains for the same reason as me, so I should be right... You can wait for me to send a little project, or Stephen, or you can try by yourself. Regards, Doriano From doriano.blengino at ...1909... Mon Nov 10 10:00:59 2008 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Mon, 10 Nov 2008 10:00:59 +0100 Subject: [Gambas-user] Searching a key in the array of gb.settings In-Reply-To: <200811100939.47824.gambas@...1938...> References: <200811071702.34497.gambas@...1938...> <4916A69B.8030202@...1909...> <200811091037.40473.gambas@...1938...> <200811100939.47824.gambas@...1938...> Message-ID: <4917F84B.5030105@...1909...> gambas at ...1938... ha scritto: >> There is no reason you had to worry about ....at least for me. >> > > I fear, this time, I have to correct my self. I think it should be: > ...at least NOT for me! > Still not sure about the correctness of this sentence. > What I wanted to say: No problem for me!!! *lol* > Uhm... a German and an Italian who speak about English correcteness... I think the first sentence is correct, because the second part refers to the whole first part, so it means "I personally think that 'you did not have to worry'". But the second sentence is also correct, because it could signify "Don't worry, at least, don't worry for me"... Perhaps a good English speaker could help us. Anyway, I still feel guilty... Perl is extensively used for a lot of critical tasks (Spamassassin, Debian maintenance, many others), so this proves its power and "seriousness"... Cheers, Doriano From maximvonk at ...626... Mon Nov 10 12:15:33 2008 From: maximvonk at ...626... (MaxVK) Date: Mon, 10 Nov 2008 03:15:33 -0800 (PST) Subject: [Gambas-user] Latest Gambas packages for Ubuntu - Broken? In-Reply-To: <491729E7.9010707@...626...> References: <20408776.post@...1379...> <491729E7.9010707@...626...> Message-ID: <20418142.post@...1379...> Thanks Ep?leg, but I really don't want the unstable release - I need a rock solid version. Is there an up to date stable version that I can do the same thing with? Better still if there is actually a full .deb release? Regards Max -- View this message in context: http://www.nabble.com/Latest-Gambas-packages-for-Ubuntu---Broken--tp20408776p20418142.html Sent from the gambas-user mailing list archive at Nabble.com. From charles at ...1784... Mon Nov 10 13:07:45 2008 From: charles at ...1784... (charlesg) Date: Mon, 10 Nov 2008 04:07:45 -0800 (PST) Subject: [Gambas-user] Latest Gambas packages for Ubuntu - Broken? In-Reply-To: <20418142.post@...1379...> References: <20408776.post@...1379...> <491729E7.9010707@...626...> <20418142.post@...1379...> Message-ID: <20418753.post@...1379...> Hi If you follow the installation bit in kalaharix.wordpress.com you will currently get 2.8.2. rgds -- View this message in context: http://www.nabble.com/Latest-Gambas-packages-for-Ubuntu---Broken--tp20408776p20418753.html Sent from the gambas-user mailing list archive at Nabble.com. From garulfounix at ...626... Mon Nov 10 13:12:46 2008 From: garulfounix at ...626... (GarulfoUnix) Date: Mon, 10 Nov 2008 13:12:46 +0100 Subject: [Gambas-user] Latest Gambas packages for Ubuntu - Broken? In-Reply-To: <20418142.post@...1379...> References: <20408776.post@...1379...> <491729E7.9010707@...626...> <20418142.post@...1379...> Message-ID: <4918253E.2090106@...626...> MaxVK a ?crit : > Thanks Ep?leg, but I really don't want the unstable release - I need a rock > solid version. Is there an up to date stable version that I can do the same > thing with? Better still if there is actually a full .deb release? > > Regards > > Max > I didn't read your last messages, but if you want a stable version of Gambas, you should install the official Gambas packages from Ubuntu. On my Ubuntu Intrepid 8.10, there is the version 2.7 which is available :) . Regards, GarulfoUnix. From garulfounix at ...626... Mon Nov 10 13:18:21 2008 From: garulfounix at ...626... (GarulfoUnix) Date: Mon, 10 Nov 2008 13:18:21 +0100 Subject: [Gambas-user] Latest Gambas packages for Ubuntu - Broken? In-Reply-To: <20418753.post@...1379...> References: <20408776.post@...1379...> <491729E7.9010707@...626...> <20418142.post@...1379...> <20418753.post@...1379...> Message-ID: <4918268D.2090806@...626...> charlesg a ?crit : > Hi > > If you follow the installation bit in kalaharix.wordpress.com you will > currently get 2.8.2. > > rgds > In addition, here are the depots : * Ubuntu 8.04 LTS : |deb http://azores.linex.org/gambas-other/ hardy main| * Ubuntu 7.10 : |deb http://azores.linex.org/gambas-other/ gutsy main| * Ubuntu 7.04 : |deb http://azores.linex.org/gambas-other/ feisty main| But for Ubuntu 8.10, that isn't available yet. From gambas.fr at ...626... Mon Nov 10 15:24:02 2008 From: gambas.fr at ...626... (Fabien Bodard) Date: Mon, 10 Nov 2008 15:24:02 +0100 Subject: [Gambas-user] Build fails In-Reply-To: <49176AE7.8030506@...1740...> References: <49176AE7.8030506@...1740...> Message-ID: <6324a42a0811100624y261a00bdx2f4690b91595a8d4@...627...> on what distribution ? are you sure to have QT3-dev package installed ? 2008/11/9 Ron : > Cannot get this: > > Path: . > URL: https://gambas.svn.sourceforge.net/svnroot/gambas/gambas/branches/2.0 > Repository Root: https://gambas.svn.sourceforge.net/svnroot/gambas > Repository UUID: 96304659-1d19-0410-acd0-aead272a8bd5 > Revision: 1686 > Node Kind: directory > Schedule: normal > Last Changed Author: dcamposf > Last Changed Rev: 1686 > Last Changed Date: 2008-11-09 16:11:02 +0100 (Sun, 09 Nov 2008) > > To build on ubuntu 8.04.1 anymore: (build install) > > Making install in gb.qt > make[1]: Entering directory `/home/ron/install/gambas/2.0/gb.qt' > Making install in src > make[2]: Entering directory `/home/ron/install/gambas/2.0/gb.qt/src' > Making install in share > make[3]: Entering directory `/home/ron/install/gambas/2.0/gb.qt/src/share' > make[4]: Entering directory `/home/ron/install/gambas/2.0/gb.qt/src/share' > make[4]: Nothing to be done for `install-exec-am'. > make[4]: Nothing to be done for `install-data-am'. > make[4]: Leaving directory `/home/ron/install/gambas/2.0/gb.qt/src/share' > make[3]: Leaving directory `/home/ron/install/gambas/2.0/gb.qt/src/share' > Making install in ext > make[3]: Entering directory `/home/ron/install/gambas/2.0/gb.qt/src/ext' > /bin/bash ../../libtool --tag=CXX --mode=link g++ -pipe -Wall > -fno-exceptions -Wno-unused-value -fsigned-char -fvisibility=hidden -g > -Os -fno-omit-frame-pointer -module -no-undefined @QT_LDFLAGS@ -o > gb.qt.ext.la -rpath /usr/local/lib/gambas2 main.lo CLCDNumber_moc.lo > CLCDNumber.lo CDial_moc.lo CDial.lo garray.lo gstring.lo gdocument.lo > gview_moc.lo gview.lo CEditor_moc.lo CEditor.lo CDraw.lo CDrawing_moc.lo > CDrawing.lo CPrinter_moc.lo CPrinter.lo CTextEdit_moc.lo CTextEdit.lo > -lgcc_s -lstdc++ -lpthread -lSM -lICE -lX11 -lXext -lqt-mt > g++ -shared -nostdlib > /usr/lib/gcc/i486-linux-gnu/4.2.4/../../../../lib/crti.o > /usr/lib/gcc/i486-linux-gnu/4.2.4/crtbeginS.o .libs/main.o > .libs/CLCDNumber_moc.o .libs/CLCDNumber.o .libs/CDial_moc.o > .libs/CDial.o .libs/garray.o .libs/gstring.o .libs/gdocument.o > .libs/gview_moc.o .libs/gview.o .libs/CEditor_moc.o .libs/CEditor.o > .libs/CDraw.o .libs/CDrawing_moc.o .libs/CDrawing.o .libs/CPrinter_moc.o > .libs/CPrinter.o .libs/CTextEdit_moc.o .libs/CTextEdit.o -lpthread -lSM > -lICE -lX11 -lXext /usr/lib/libqt-mt.so -L/usr/X11R6/lib > -L/usr/lib/gcc/i486-linux-gnu/4.2.4 > -L/usr/lib/gcc/i486-linux-gnu/4.2.4/../../../../lib -L/lib/../lib > -L/usr/lib/../lib -L/usr/lib/gcc/i486-linux-gnu/4.2.4/../../.. -lstdc++ > -lm -lc -lgcc_s /usr/lib/gcc/i486-linux-gnu/4.2.4/crtendS.o > /usr/lib/gcc/i486-linux-gnu/4.2.4/../../../../lib/crtn.o @QT_LDFLAGS@ > -Wl,-soname -Wl,gb.qt.ext.so.0 -o .libs/gb.qt.ext.so.0.0.0 > g++: @QT_LDFLAGS@: No such file or directory > make[3]: *** [gb.qt.ext.la] Error 1 > make[3]: Leaving directory `/home/ron/install/gambas/2.0/gb.qt/src/ext' > make[2]: *** [install-recursive] Error 1 > make[2]: Leaving directory `/home/ron/install/gambas/2.0/gb.qt/src' > make[1]: *** [install-recursive] Error 1 > make[1]: Leaving directory `/home/ron/install/gambas/2.0/gb.qt' > make: *** [install-recursive] Error 1 > > Regards, > Ron > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas.fr at ...626... Mon Nov 10 15:36:14 2008 From: gambas.fr at ...626... (Fabien Bodard) Date: Mon, 10 Nov 2008 15:36:14 +0100 Subject: [Gambas-user] Feature request In-Reply-To: <200811101128.52189.rterry@...1946...> References: <200811100848.08048.rterry@...1946...> <200811100009.10602.gambas@...1...> <200811101128.52189.rterry@...1946...> Message-ID: <6324a42a0811100636k28c640ferc95500ec2b5201d9@...627...> i've one or two id?as myself :) maybe i'm going to try them by myself first : About a file filter for the project tree (need to add a collection to manage the files as they are managed directly in the treeview) Allow a single file edition without project back...(gbw, and gbs) Have we to do a lighter editor (i guess there is the classes needed in gambas IDE, just make a linked project)? And many others... as usual ... Fabien From ron at ...1740... Mon Nov 10 15:48:33 2008 From: ron at ...1740... (Ron) Date: Mon, 10 Nov 2008 15:48:33 +0100 Subject: [Gambas-user] Build fails In-Reply-To: <6324a42a0811100624y261a00bdx2f4690b91595a8d4@...627...> References: <49176AE7.8030506@...1740...> <6324a42a0811100624y261a00bdx2f4690b91595a8d4@...627...> Message-ID: <491849C1.7040101@...1740...> Fabien, Yes, $ dpkg --get-selections | grep qt3 libavahi-qt3-1 install libavahi-qt3-dev install libqt3-headers install libqt3-mt install libqt3-mt-dev install qt3-dev-tools install Benoit fixed this problem in build 1689 as of this morning, don't know what was causing it. Regards, Ron_2nd > on what distribution ? > > are you sure to have QT3-dev package installed ? > > > > 2008/11/9 Ron : > >> Cannot get this: >> >> Path: . >> URL: https://gambas.svn.sourceforge.net/svnroot/gambas/gambas/branches/2.0 >> Repository Root: https://gambas.svn.sourceforge.net/svnroot/gambas >> Repository UUID: 96304659-1d19-0410-acd0-aead272a8bd5 >> Revision: 1686 >> Node Kind: directory >> Schedule: normal >> Last Changed Author: dcamposf >> Last Changed Rev: 1686 >> Last Changed Date: 2008-11-09 16:11:02 +0100 (Sun, 09 Nov 2008) >> >> To build on ubuntu 8.04.1 anymore: (build install) >> >> Making install in gb.qt >> make[1]: Entering directory `/home/ron/install/gambas/2.0/gb.qt' >> Making install in src >> make[2]: Entering directory `/home/ron/install/gambas/2.0/gb.qt/src' >> Making install in share >> make[3]: Entering directory `/home/ron/install/gambas/2.0/gb.qt/src/share' >> make[4]: Entering directory `/home/ron/install/gambas/2.0/gb.qt/src/share' >> make[4]: Nothing to be done for `install-exec-am'. >> make[4]: Nothing to be done for `install-data-am'. >> make[4]: Leaving directory `/home/ron/install/gambas/2.0/gb.qt/src/share' >> make[3]: Leaving directory `/home/ron/install/gambas/2.0/gb.qt/src/share' >> Making install in ext >> make[3]: Entering directory `/home/ron/install/gambas/2.0/gb.qt/src/ext' >> /bin/bash ../../libtool --tag=CXX --mode=link g++ -pipe -Wall >> -fno-exceptions -Wno-unused-value -fsigned-char -fvisibility=hidden -g >> -Os -fno-omit-frame-pointer -module -no-undefined @QT_LDFLAGS@ -o >> gb.qt.ext.la -rpath /usr/local/lib/gambas2 main.lo CLCDNumber_moc.lo >> CLCDNumber.lo CDial_moc.lo CDial.lo garray.lo gstring.lo gdocument.lo >> gview_moc.lo gview.lo CEditor_moc.lo CEditor.lo CDraw.lo CDrawing_moc.lo >> CDrawing.lo CPrinter_moc.lo CPrinter.lo CTextEdit_moc.lo CTextEdit.lo >> -lgcc_s -lstdc++ -lpthread -lSM -lICE -lX11 -lXext -lqt-mt >> g++ -shared -nostdlib >> /usr/lib/gcc/i486-linux-gnu/4.2.4/../../../../lib/crti.o >> /usr/lib/gcc/i486-linux-gnu/4.2.4/crtbeginS.o .libs/main.o >> .libs/CLCDNumber_moc.o .libs/CLCDNumber.o .libs/CDial_moc.o >> .libs/CDial.o .libs/garray.o .libs/gstring.o .libs/gdocument.o >> .libs/gview_moc.o .libs/gview.o .libs/CEditor_moc.o .libs/CEditor.o >> .libs/CDraw.o .libs/CDrawing_moc.o .libs/CDrawing.o .libs/CPrinter_moc.o >> .libs/CPrinter.o .libs/CTextEdit_moc.o .libs/CTextEdit.o -lpthread -lSM >> -lICE -lX11 -lXext /usr/lib/libqt-mt.so -L/usr/X11R6/lib >> -L/usr/lib/gcc/i486-linux-gnu/4.2.4 >> -L/usr/lib/gcc/i486-linux-gnu/4.2.4/../../../../lib -L/lib/../lib >> -L/usr/lib/../lib -L/usr/lib/gcc/i486-linux-gnu/4.2.4/../../.. -lstdc++ >> -lm -lc -lgcc_s /usr/lib/gcc/i486-linux-gnu/4.2.4/crtendS.o >> /usr/lib/gcc/i486-linux-gnu/4.2.4/../../../../lib/crtn.o @QT_LDFLAGS@ >> -Wl,-soname -Wl,gb.qt.ext.so.0 -o .libs/gb.qt.ext.so.0.0.0 >> g++: @QT_LDFLAGS@: No such file or directory >> make[3]: *** [gb.qt.ext.la] Error 1 >> make[3]: Leaving directory `/home/ron/install/gambas/2.0/gb.qt/src/ext' >> make[2]: *** [install-recursive] Error 1 >> make[2]: Leaving directory `/home/ron/install/gambas/2.0/gb.qt/src' >> make[1]: *** [install-recursive] Error 1 >> make[1]: Leaving directory `/home/ron/install/gambas/2.0/gb.qt' >> make: *** [install-recursive] Error 1 >> >> Regards, >> Ron >> >> ------------------------------------------------------------------------- >> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge >> Build the coolest Linux based applications with Moblin SDK & win great prizes >> Grand prize is a trip for two to an Open Source event anywhere in the world >> http://moblin-contest.org/redirect.php?banner_id=100&url=/ >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> >> > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Mon Nov 10 17:01:44 2008 From: gambas at ...1... (Benoit Minisini) Date: Mon, 10 Nov 2008 17:01:44 +0100 Subject: [Gambas-user] Feature request In-Reply-To: <200811101128.52189.rterry@...1946...> References: <200811100848.08048.rterry@...1946...> <200811100009.10602.gambas@...1...> <200811101128.52189.rterry@...1946...> Message-ID: <200811101701.45013.gambas@...1...> On lundi 10 novembre 2008, richard terry wrote: > On Mon, 10 Nov 2008 10:09:10 am Benoit Minisini wrote: > > On dimanche 9 novembre 2008, richard terry wrote: > > > I've mentioned this one before, wondered if Benoit could give it > > > consideration. > > > > > > Request: Option on the popup menu over the tab for 'Set as Startup' > > > > > > See the picture. When you right click over the tab, you get the menu > > > which includes the tab names and two options - 'Close current tab', > > > 'Close all other tabs'. I wondered if 'Set as startup' could be added > > > here. > > > > > > Reason: > > > > > > When your project has some dozens of forms, and one is constantly > > > developing different forms, one may have to scroll down through the > > > list at the side, and it is both time consuming and often the > > > classes/mods tree is open as well ,which may have another couple of > > > dozen files to have to scroll through. > > > > > > Regards and thanks for the consideration of this. > > > > > > Richard > > > > This menu is the menu of the Workspace, I can't change it. > > > > But I can add a menu entry in the code editor menu and in the form editor > > menu, with a toolbar button too. If you want. > > That would be great!!!! > > thanks > > Richard > Done in revision #1690 for Gambas 2. The same feature for Gambas 3 will come soon... Regards, -- Benoit Minisini From maximvonk at ...626... Mon Nov 10 17:32:39 2008 From: maximvonk at ...626... (MaxVK) Date: Mon, 10 Nov 2008 08:32:39 -0800 (PST) Subject: [Gambas-user] Latest Gambas packages for Ubuntu - Broken? In-Reply-To: <20418753.post@...1379...> References: <20408776.post@...1379...> <491729E7.9010707@...626...> <20418142.post@...1379...> <20418753.post@...1379...> Message-ID: <20423278.post@...1379...> Thanks charles, but thats for 8.10 and I'm running 7.10 still. Max charlesg wrote: > > Hi > > If you follow the installation bit in kalaharix.wordpress.com you will > currently get 2.8.2. > > rgds > -- View this message in context: http://www.nabble.com/Latest-Gambas-packages-for-Ubuntu---Broken--tp20408776p20423278.html Sent from the gambas-user mailing list archive at Nabble.com. From maximvonk at ...626... Mon Nov 10 17:34:22 2008 From: maximvonk at ...626... (MaxVK) Date: Mon, 10 Nov 2008 08:34:22 -0800 (PST) Subject: [Gambas-user] Latest Gambas packages for Ubuntu - Broken? In-Reply-To: <4918268D.2090806@...626...> References: <20408776.post@...1379...> <491729E7.9010707@...626...> <20418142.post@...1379...> <20418753.post@...1379...> <4918268D.2090806@...626...> Message-ID: <20423314.post@...1379...> Ah, thats what I'm looking for! Many thanks GarulfoUnix, much appreciated. Regards Max GarulfoUnix wrote: > > charlesg a ?crit : >> Hi >> >> If you follow the installation bit in kalaharix.wordpress.com you will >> currently get 2.8.2. >> >> rgds >> > In addition, here are the depots : > > * Ubuntu 8.04 LTS : |deb http://azores.linex.org/gambas-other/ hardy main| > * Ubuntu 7.10 : |deb http://azores.linex.org/gambas-other/ gutsy main| > * Ubuntu 7.04 : |deb http://azores.linex.org/gambas-other/ feisty main| > > But for Ubuntu 8.10, that isn't available yet. > > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge > Build the coolest Linux based applications with Moblin SDK & win great > prizes > Grand prize is a trip for two to an Open Source event anywhere in the > world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > -- View this message in context: http://www.nabble.com/Latest-Gambas-packages-for-Ubuntu---Broken--tp20408776p20423314.html Sent from the gambas-user mailing list archive at Nabble.com. From gambas at ...1... Mon Nov 10 17:43:26 2008 From: gambas at ...1... (Benoit Minisini) Date: Mon, 10 Nov 2008 17:43:26 +0100 Subject: [Gambas-user] Build fails In-Reply-To: <491849C1.7040101@...1740...> References: <49176AE7.8030506@...1740...> <6324a42a0811100624y261a00bdx2f4690b91595a8d4@...627...> <491849C1.7040101@...1740...> Message-ID: <200811101743.26584.gambas@...1...> On lundi 10 novembre 2008, Ron wrote: > Fabien, > > Yes, > $ dpkg --get-selections | grep qt3 > libavahi-qt3-1 install > libavahi-qt3-dev install > libqt3-headers install > libqt3-mt install > libqt3-mt-dev install > qt3-dev-tools install > > Benoit fixed this problem in build 1689 as of this morning, don't know > what was causing it. > > Regards, > Ron_2nd > I don't know too. I think it is a new behaviour of automake/autoconf. -- Benoit Minisini From rterry at ...1946... Mon Nov 10 22:14:06 2008 From: rterry at ...1946... (richard terry) Date: Tue, 11 Nov 2008 08:14:06 +1100 Subject: [Gambas-user] Feature request In-Reply-To: <200811101701.45013.gambas@...1...> References: <200811100848.08048.rterry@...1946...> <200811101128.52189.rterry@...1946...> <200811101701.45013.gambas@...1...> Message-ID: <200811110814.06412.rterry@...1946...> On Tue, 11 Nov 2008 03:01:44 am Benoit Minisini wrote: Thanks, can you let me (the list) know when its there. Regards Richard > On lundi 10 novembre 2008, richard terry wrote: > > On Mon, 10 Nov 2008 10:09:10 am Benoit Minisini wrote: > > > On dimanche 9 novembre 2008, richard terry wrote: > > > > I've mentioned this one before, wondered if Benoit could give it > > > > consideration. > > > > > > > > Request: Option on the popup menu over the tab for 'Set as Startup' > > > > > > > > See the picture. When you right click over the tab, you get the menu > > > > which includes the tab names and two options - 'Close current tab', > > > > 'Close all other tabs'. I wondered if 'Set as startup' could be added > > > > here. > > > > > > > > Reason: > > > > > > > > When your project has some dozens of forms, and one is constantly > > > > developing different forms, one may have to scroll down through the > > > > list at the side, and it is both time consuming and often the > > > > classes/mods tree is open as well ,which may have another couple of > > > > dozen files to have to scroll through. > > > > > > > > Regards and thanks for the consideration of this. > > > > > > > > Richard > > > > > > This menu is the menu of the Workspace, I can't change it. > > > > > > But I can add a menu entry in the code editor menu and in the form > > > editor menu, with a toolbar button too. If you want. > > > > That would be great!!!! > > > > thanks > > > > Richard > > Done in revision #1690 for Gambas 2. The same feature for Gambas 3 will > come soon... > > Regards, From rterry at ...1946... Mon Nov 10 22:50:57 2008 From: rterry at ...1946... (richard terry) Date: Tue, 11 Nov 2008 08:50:57 +1100 Subject: [Gambas-user] Ease of maintaining Gambas3 on an ARCH LINUX BOX In-Reply-To: <4918268D.2090806@...626...> References: <20408776.post@...1379...> <20418753.post@...1379...> <4918268D.2090806@...626...> Message-ID: <200811110850.57693.rterry@...1946...> Noticing the constant procession of people having difficulty updating gambas: Not wanting or meaning to start a flame war, just to point out if anyone is interested in a really really simple brilliant linux which makes re-compiling gambas on a daily basis really easy - try out (you could use virtual box I guess) ARCH linux. (www.archlinux.org) With its simple config files and PKGBUILD files, it is simply a matter of changing the version number each morning which I do when I go to work, and in a few minutes you've the latest package to install. Mind you, I'd stick to kde3 branch as I think KDE4 stinks at the moment. If anyone on the list uses ARCH, here is my package build (may be inaccurate but seems to compile) Also include these in pacman.conf, firstly to get KDE3 and not 4 [kde3] Server=http://csclub.uwaterloo.ca/~jkschmid/arch/kde3/i686 And the binary version of virtual box. [archlinuxfr] Server = http://repo.archlinux.fr/i686/ regards Richard > charlesg a ?crit : > > Hi > > > > If you follow the installation bit in kalaharix.wordpress.com you will > > currently get 2.8.2. > > > > rgds > > In addition, here are the depots : > > * Ubuntu 8.04 LTS : |deb http://azores.linex.org/gambas-other/ hardy main| > * Ubuntu 7.10 : |deb http://azores.linex.org/gambas-other/ gutsy main| > * Ubuntu 7.04 : |deb http://azores.linex.org/gambas-other/ feisty main| > > But for Ubuntu 8.10, that isn't available yet. > > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge Build the coolest Linux based applications with Moblin SDK & win > great prizes Grand prize is a trip for two to an Open Source event anywhere > in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -------------- next part -------------- # Contributor: Toni Foerster # changed by Richard Terry (so it is probably Wrong! rterry at ...1946... # to get the lastest development branch of Gambas libffi added as dependency pkgname=gambas3-svn pkgrel=2 pkgver=1693 arch=('i686') url="http://gambas.sourceforge.net" depends=('libldap' 'librsvg' 'postgresql' 'libmysqlclient' 'curl' 'sqlite2' \ 'sqlite3' 'sdl_mixer' 'sdl_image' 'unixodbc' 'poppler' \ 'libfbclient' 'omniorb' 'libffi' 'autoconf' 'automake') license=('GPL') conflicts=('gambas_3' 'gambas3') install=gambas3-svn.install source=(gambas3.desktop gambas3.png) md5sums=('177837d2a53cd202ab0fc307656a8c50' '682f60d694dd1df53d786c21939622c5') _svntrunk=https://gambas.svn.sourceforge.net/svnroot/gambas/gambas/trunk _svnrevision=1693 build() { msg "Checking out svn-tree..." svn checkout -r $_svnrevision $_svntrunk|| return 1 cd $startdir/src/trunk msg "Configure files..." ./reconf-all ./configure --disable-qte \ --prefix=/usr msg "Start Compiling..." make bindir=$startdir/pkg/usr/bin || return 1 make DESTDIR=$startdir/pkg install || return 1 chmod -R 755 $startdir/pkg/usr/share/gambas3/help install -D -m644 $startdir/src/gambas3.desktop \ $startdir/pkg/usr/share/applications/gambas3.desktop install -D -m644 $startdir/src/gambas3.png \ $startdir/pkg/usr/share/pixmaps/gambas3.png } From gambas at ...1... Tue Nov 11 01:26:01 2008 From: gambas at ...1... (Benoit Minisini) Date: Tue, 11 Nov 2008 01:26:01 +0100 Subject: [Gambas-user] Feature request In-Reply-To: <200811110814.06412.rterry@...1946...> References: <200811100848.08048.rterry@...1946...> <200811101701.45013.gambas@...1...> <200811110814.06412.rterry@...1946...> Message-ID: <200811110126.01606.gambas@...1...> On lundi 10 novembre 2008, richard terry wrote: > On Tue, 11 Nov 2008 03:01:44 am Benoit Minisini wrote: > Thanks, can you let me (the list) know when its there. > > Regards > > Richard > Done in Gambas 3 too. You can subscribe to the gambas-devel-svn mailing-list to be warn each time something is committed. Regards, -- Benoit Minisini From gambas at ...1... Tue Nov 11 01:37:28 2008 From: gambas at ...1... (Benoit Minisini) Date: Tue, 11 Nov 2008 01:37:28 +0100 Subject: [Gambas-user] Tableview edit on wrong line? In-Reply-To: <4911AD1C.5080902@...221...> References: <49117E18.2030302@...221...> <20340423.post@...1379...> <4911AD1C.5080902@...221...> Message-ID: <200811110137.28546.gambas@...1...> On mercredi 5 novembre 2008, Rolf-Werner Eilert wrote: > This shows me, it's more of a bug... :-) Didn't realise, but my first > trial with it took place on a form with a complicated hierarchy. So > that's why! > > First guess: The hidden edit or listbox control is invoked with > coordinates which do not take into account the real tableview > coordinates when in a hierarchy. Should be easy to repair for someone > who knows where it is... > > Rolf > Can you provide me a little example with that bug? Because I could not reproduce it. Thanks. -- Benoit Minisini From rterry at ...1946... Tue Nov 11 01:57:23 2008 From: rterry at ...1946... (richard terry) Date: Tue, 11 Nov 2008 11:57:23 +1100 Subject: [Gambas-user] Feature request In-Reply-To: <200811110126.01606.gambas@...1...> References: <200811100848.08048.rterry@...1946...> <200811110814.06412.rterry@...1946...> <200811110126.01606.gambas@...1...> Message-ID: <200811111157.23957.rterry@...1946...> On Tue, 11 Nov 2008 11:26:01 am Benoit Minisini wrote: > On lundi 10 novembre 2008, richard terry wrote: > > On Tue, 11 Nov 2008 03:01:44 am Benoit Minisini wrote: > > Thanks, can you let me (the list) know when its there. > > > > Regards > > > > Richard > > Done in Gambas 3 too. You can subscribe to the gambas-devel-svn > mailing-list to be warn each time something is committed. > > Regards, Sorry, still cannot see how to access the new feature- 1693 build, ie can't see it as a menu option/button ?what am i missing besides neurones? Richard From pastrano at ...431... Tue Nov 11 03:10:11 2008 From: pastrano at ...431... (Gianni Piccini) Date: Tue, 11 Nov 2008 03:10:11 +0100 Subject: [Gambas-user] Latest Gambas packages for Ubuntu - Broken? In-Reply-To: <20423278.post@...1379...> References: <20408776.post@...1379...> <491729E7.9010707@...626...> <20418142.post@...1379...> <20418753.post@...1379...> <20423278.post@...1379...> Message-ID: <20081111031011.4301a371@...431...> On Mon, 10 Nov 2008 08:32:39 -0800 (PST) MaxVK wrote: > Thanks charles, but thats for 8.10 and I'm running 7.10 still. You should use apt-get "pinning" to use Gambas at a newest version without changing from Gutsy to another... From pokerbirch at ...1601... Tue Nov 11 09:03:01 2008 From: pokerbirch at ...1601... (birchy) Date: Tue, 11 Nov 2008 00:03:01 -0800 (PST) Subject: [Gambas-user] Web application - CURL and Cookies? Message-ID: <20435022.post@...1379...> I have a need to develop a web app that can do the following: 1) interact with a web server via http 2) login to the site and maintain a session via cookies 3) parse the html There is a large selection of libraries that can do this in Java, but i'm much more familiar with VB6/Gambas. As far as i understand, the solutions are: 1) gb.net.curl 2) gb.net.curl 3) gb.xml I have read that curl can handle cookies, but have no idea how to do it in Gambas - are there any code samples? gb.xml is based on libxml2 and i have read that libxml2 can also handle html...but again, i cannot find any information on how to do this in Gambas via gb.xml as the documentation is very incomplete. Can anyone confirm that Gambas is capable of producing my web app, or would i be better off using Java? -- View this message in context: http://www.nabble.com/Web-application---CURL-and-Cookies--tp20435022p20435022.html Sent from the gambas-user mailing list archive at Nabble.com. From garulfounix at ...626... Tue Nov 11 11:30:48 2008 From: garulfounix at ...626... (GarulfoUnix) Date: Tue, 11 Nov 2008 11:30:48 +0100 Subject: [Gambas-user] Web application - CURL and Cookies? In-Reply-To: <20435022.post@...1379...> References: <20435022.post@...1379...> Message-ID: <49195ED8.9050005@...626...> birchy a ?crit : > I have a need to develop a web app that can do the following: > 1) interact with a web server via http > First, you have the HttpClient class into the gb.net.curl, so there is no problem to interact with a server web. > 2) login to the site and maintain a session via cookies > In seconde place, you have also a Session class which allows you to manage sessions. Take a look at this for more information : http://www.gambasdoc.org/help/comp/gb.web/session > 3) parse the html > To my knowledge, there is no parser available in Gambas. > There is a large selection of libraries that can do this in Java, but i'm > much more familiar with VB6/Gambas. As far as i understand, the solutions > are: > 1) gb.net.curl > 2) gb.net.curl > 3) gb.xml > > I have read that curl can handle cookies, but have no idea how to do it in > Gambas - are there any code samples? gb.xml is based on libxml2 and i have > read that libxml2 can also handle html...but again, i cannot find any > information on how to do this in Gambas via gb.xml as the documentation is > very incomplete. Can anyone confirm that Gambas is capable of producing my > web app, or would i be better off using Java? > What you want, Gambas may do it. You should try to find examples for each component that you need. Do you know the GambasForge website ? It's a website which regroups a lots Gambas programs with their source codes. Here is the link : http://www.gambasforge.net/cgi-bin/index.gambas However, if you meet problems with it, don't be amazed. This one is under development at this moment in time. Regards, GarulfoUnix. From maximvonk at ...626... Tue Nov 11 11:31:28 2008 From: maximvonk at ...626... (MaxVK) Date: Tue, 11 Nov 2008 02:31:28 -0800 (PST) Subject: [Gambas-user] Latest Gambas packages for Ubuntu - Broken? In-Reply-To: <20081111031011.4301a371@...431...> References: <20408776.post@...1379...> <491729E7.9010707@...626...> <20418142.post@...1379...> <20418753.post@...1379...> <20423278.post@...1379...> <20081111031011.4301a371@...431...> Message-ID: <20436887.post@...1379...> Thanks everyone: I have two further questions: Firstly, Gianni: What does apt-get "pinning" mean? And secondly, having added the correct package to my sources list an update is suggested straight away, however, I am told that only a partial update is possible, and only a few of the Gambas packages are selected (or indeed selectable). I seem to remember having this problem before, but I cant remember if I found a solution or not, and my system went down shortly after. Is this a normal update procedure? What will happen if only a part of Gambas is updated? Will the rest of the updates suddenly become available? I don't want to jump blindly into this and lose my current Gambas - I barely have the time for development right now, and I don't want to waste what I do have trying to fix a broken installation/update. Regards Max Gianni Piccini wrote: > > On Mon, 10 Nov 2008 08:32:39 -0800 (PST) MaxVK > wrote: > >> Thanks charles, but thats for 8.10 and I'm running 7.10 still. > > You should use apt-get "pinning" to use Gambas at a newest version > without changing from Gutsy to another... > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge > Build the coolest Linux based applications with Moblin SDK & win great > prizes > Grand prize is a trip for two to an Open Source event anywhere in the > world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > -- View this message in context: http://www.nabble.com/Latest-Gambas-packages-for-Ubuntu---Broken--tp20408776p20436887.html Sent from the gambas-user mailing list archive at Nabble.com. From dcamposf at ...626... Tue Nov 11 11:55:16 2008 From: dcamposf at ...626... (Daniel Campos) Date: Tue, 11 Nov 2008 11:55:16 +0100 Subject: [Gambas-user] Latest Gambas packages for Ubuntu - Broken? In-Reply-To: <20436887.post@...1379...> References: <20408776.post@...1379...> <491729E7.9010707@...626...> <20418142.post@...1379...> <20418753.post@...1379...> <20423278.post@...1379...> <20081111031011.4301a371@...431...> <20436887.post@...1379...> Message-ID: <7259b5ae0811110255s1204baa8j3b754d4a00161b7e@...627...> Hi: gambas.gnulinex.org is up and running again. It seems Apache got stuck I don't know why. About Ubuntu packages I'm confident they work, as they install without problems on any fresh Ubuntu system. The only thing is that you should add "universe" and may be "multiverse" branches to your /etc/apt/sources.list file, as some components depend on libraries available there. If you use just the "main" branch, there will be broken dependencies. Daniel 2008/11/11 MaxVK > > Thanks everyone: > > I have two further questions: > > Firstly, Gianni: What does apt-get "pinning" mean? > > And secondly, having added the correct package to my sources list an update > is suggested straight away, however, I am told that only a partial update > is > possible, and only a few of the Gambas packages are selected (or indeed > selectable). > > I seem to remember having this problem before, but I cant remember if I > found a solution or not, and my system went down shortly after. > > Is this a normal update procedure? What will happen if only a part of > Gambas > is updated? Will the rest of the updates suddenly become available? > > I don't want to jump blindly into this and lose my current Gambas - I > barely > have the time for development right now, and I don't want to waste what I > do > have trying to fix a broken installation/update. > > Regards > > Max > > > > Gianni Piccini wrote: > > > > On Mon, 10 Nov 2008 08:32:39 -0800 (PST) MaxVK > > wrote: > > > >> Thanks charles, but thats for 8.10 and I'm running 7.10 still. > > > > You should use apt-get "pinning" to use Gambas at a newest version > > without changing from Gutsy to another... > > > > ------------------------------------------------------------------------- > > This SF.Net email is sponsored by the Moblin Your Move Developer's > > challenge > > Build the coolest Linux based applications with Moblin SDK & win great > > prizes > > Grand prize is a trip for two to an Open Source event anywhere in the > > world > > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > -- > View this message in context: > http://www.nabble.com/Latest-Gambas-packages-for-Ubuntu---Broken--tp20408776p20436887.html > Sent from the gambas-user mailing list archive at Nabble.com. > > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge > Build the coolest Linux based applications with Moblin SDK & win great > prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Tue Nov 11 15:11:02 2008 From: gambas at ...1... (Benoit Minisini) Date: Tue, 11 Nov 2008 15:11:02 +0100 Subject: [Gambas-user] Feature request for Message() In-Reply-To: <1f1e8c1b0810071118u7e2c80f7yaa6f1111b8c12acd@...627...> References: <1f1e8c1b0810071118u7e2c80f7yaa6f1111b8c12acd@...627...> Message-ID: <200811111511.02967.gambas@...1...> On mardi 7 octobre 2008, M0E Lnx wrote: > I'd like to see a way to modify the message's title when using the > Message() function to display a message. > > Maybe it should default to the project title as it does now, but offer > an option to change it > I implemented a Message.Title property in revision #1695. Regards, -- Benoit Minisini From m0e.lnx at ...626... Tue Nov 11 15:17:37 2008 From: m0e.lnx at ...626... (M0E Lnx) Date: Tue, 11 Nov 2008 08:17:37 -0600 Subject: [Gambas-user] Feature request for Message() In-Reply-To: <200811111511.02967.gambas@...1...> References: <1f1e8c1b0810071118u7e2c80f7yaa6f1111b8c12acd@...627...> <200811111511.02967.gambas@...1...> Message-ID: <1f1e8c1b0811110617q480600ccrd056edac5ca66434@...627...> Very nice ;) Thank you On Tue, Nov 11, 2008 at 8:11 AM, Benoit Minisini wrote: > On mardi 7 octobre 2008, M0E Lnx wrote: >> I'd like to see a way to modify the message's title when using the >> Message() function to display a message. >> >> Maybe it should default to the project title as it does now, but offer >> an option to change it >> > > I implemented a Message.Title property in revision #1695. > > Regards, > > -- > Benoit Minisini > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Tue Nov 11 15:42:19 2008 From: gambas at ...1... (Benoit Minisini) Date: Tue, 11 Nov 2008 15:42:19 +0100 Subject: [Gambas-user] Format padding with spaces? In-Reply-To: <48D16C4C.8010708@...1740...> References: <48D16C4C.8010708@...1740...> Message-ID: <200811111542.19456.gambas@...1...> On mercredi 17 septembre 2008, Ron wrote: > Hi, > > I was a bit suprised to find out that Format$ doesn't support space > padding like it does with zero's > > So: > PRINT Format$(72.06, " .##") > PRINT Format$(2.05, " .##") > Prints: > 72.06 > 2.05 > > Any technical reason for this? > > Regards, > Ron_2nd > This is done in revision #1696: PRINT Format(123.45, "#####.##") 123.45 Regards, -- Benoit Minisini From gambas at ...1... Tue Nov 11 15:55:45 2008 From: gambas at ...1... (Benoit Minisini) Date: Tue, 11 Nov 2008 15:55:45 +0100 Subject: [Gambas-user] Web application - CURL and Cookies? In-Reply-To: <20435022.post@...1379...> References: <20435022.post@...1379...> Message-ID: <200811111555.45564.gambas@...1...> On mardi 11 novembre 2008, birchy wrote: > I have a need to develop a web app that can do the following: > 1) interact with a web server via http > 2) login to the site and maintain a session via cookies > 3) parse the html > > There is a large selection of libraries that can do this in Java, but i'm > much more familiar with VB6/Gambas. As far as i understand, the solutions > are: > 1) gb.net.curl > 2) gb.net.curl > 3) gb.xml > > I have read that curl can handle cookies, but have no idea how to do it in > Gambas - are there any code samples? No, but by reading the source code, I can say that: HttpClient.CookieFile allows you to define a file where cookies will be read. And HttpClient.UpdateCookies should tell if the previous file will be updated during the HTTP request. > gb.xml is based on libxml2 and i have > read that libxml2 can also handle html...but again, i cannot find any > information on how to do this in Gambas via gb.xml as the documentation is > very incomplete. Some variant of HTML can be parsed with an XML parser. But most the time it does not work, as HTML is not strict enough. But I just read on the libxml2 website that this library knows how to parse HTML too. So if you find a volunteer to implement it in the gb.xml component? > Can anyone confirm that Gambas is capable of producing my > web app, or would i be better off using Java? No idea. It depends on what you need exactly. Regards, -- Benoit Minisini From gambas at ...1... Tue Nov 11 16:01:49 2008 From: gambas at ...1... (Benoit Minisini) Date: Tue, 11 Nov 2008 16:01:49 +0100 Subject: [Gambas-user] Web application - CURL and Cookies? In-Reply-To: <200811111555.45564.gambas@...1...> References: <20435022.post@...1379...> <200811111555.45564.gambas@...1...> Message-ID: <200811111601.49341.gambas@...1...> On mardi 11 novembre 2008, Benoit Minisini wrote: > > Some variant of HTML can be parsed with an XML parser. But most the time it > does not work, as HTML is not strict enough. > > But I just read on the libxml2 website that this library knows how to parse > HTML too. So if you find a volunteer to implement it in the gb.xml > component? > I talked too fast: gb.xml already know how to parse HTML. The XMLDocument class has a 'HTMLFromString' method for that. Maybe a better name would be 'FromHTMLString'. Anyway, it is there! Regards, -- Benoit Minisini From sbungay at ...981... Tue Nov 11 16:07:24 2008 From: sbungay at ...981... (Stephen Bungay) Date: Tue, 11 Nov 2008 10:07:24 -0500 Subject: [Gambas-user] Resize event... In-Reply-To: <4917F65F.8090609@...1909...> References: <49166BA1.4080200@...981...> <4916AC9A.4040207@...1909...> <200811100007.37091.gambas@...1...> <4917F65F.8090609@...1909...> Message-ID: <49199FAC.1020503@...981...> Sorry I was not on-line at all yesterday and missed some of the conversation. In the cold hard light of it an event is an event is an event, regardless of who or what caused the event to occur. This is a little annoying, but IMHO it's far better to know for sure that an event will fire, no doubt, 100% certainty, than it is having be concerned about the event logic executing (or not) because the change was effected programatically (or not). At any rate, what is happening with the project is that the resize method is being called and the resize event is not being fired. As a result things are not being resized as they should. Benoit, would you like me to send you the project? It is for Gambas 2.99. Doriano Blengino wrote: > Benoit Minisini ha scritto: >>> Apart from this clarification, I had a hard debate with Benoit about >>> embedding forms inside tabstrips. What I remember about the end, is that >>> resize events will not raise. Full stop. I think this is an omission, >>> because when the size of the form changes, a resize event should be >>> fired no matter if the form is child of the desktop or child of a tabstrip. >>> >>> >> No, if Resize event is not raised, then it was a bug. Are you sure that we >> talked about that? >> > This happened some time ago - could be I am wrong, but the proof is > simple to produce. > Right now I have no time but, in the course of today, may be I will find > the time to build a simple project. Anyway, Stephen Bungay complains for > the same reason as me, so I should be right... > > You can wait for me to send a little project, or Stephen, or you can try > by yourself. > > Regards, > Doriano > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Tue Nov 11 18:24:52 2008 From: gambas at ...1... (Benoit Minisini) Date: Tue, 11 Nov 2008 18:24:52 +0100 Subject: [Gambas-user] New syntax for creating collection Message-ID: <200811111824.52572.gambas@...1...> Hi, I added a new syntax for creating collection in Gambas 3, revision #1699. Here it is: [ : , : , ... ] For example: Dim cCol As Collection = ["blue": &H0000FF&, "white": &HFFFFFF&, "red": &HFF0000&] Print cCol["blue"] --> 255 Note that as Gambas functions cannot take more than 63 arguments, you cannot initialize the collection with more than 31 elements. Regards, -- Benoit Minisini From gambas at ...1... Tue Nov 11 18:25:29 2008 From: gambas at ...1... (Benoit Minisini) Date: Tue, 11 Nov 2008 18:25:29 +0100 Subject: [Gambas-user] Resize event... In-Reply-To: <49199FAC.1020503@...981...> References: <49166BA1.4080200@...981...> <4917F65F.8090609@...1909...> <49199FAC.1020503@...981...> Message-ID: <200811111825.29871.gambas@...1...> On mardi 11 novembre 2008, Stephen Bungay wrote: > Sorry I was not on-line at all yesterday and missed some of the > conversation. > > In the cold hard light of it an event is an event is an event, > regardless of who or what caused the event to occur. This is a little > annoying, but IMHO it's far better to know for sure that an event will > fire, no doubt, 100% certainty, than it is having be concerned about the > event logic executing (or not) because the change was effected > programatically (or not). > > At any rate, what is happening with the project is that the resize > method is being called and the resize event is not being fired. As a > result things are not being resized as they should. > > Benoit, would you like me to send you the project? It is for Gambas > 2.99. > For sure. If you can isolate the bug in one form, it would be cool. Regards, -- Benoit Minisini From gambas at ...1... Tue Nov 11 19:37:17 2008 From: gambas at ...1... (Benoit Minisini) Date: Tue, 11 Nov 2008 19:37:17 +0100 Subject: [Gambas-user] Tableview edit on wrong line? In-Reply-To: <49117E18.2030302@...221...> References: <49117E18.2030302@...221...> Message-ID: <200811111937.17949.gambas@...1...> On mercredi 5 novembre 2008, Rolf-Werner Eilert wrote: > Hi folks, > > who's using the edit method in the TableView control? > > When I tried it for the first time the other day, the editor or listbox > always showed up one and a half lines UNDER the position of the cell I > had clicked on (but with the correct contents). It doesn't have a frame, > so I guess it is supposed to appear within the clicked cell. > > Everything else runs ok, but the position is not the one expected. > > Is this a bug or a feature? :-) > > Regards > > Rolf > Yeah. The 'feature' was fixed in revision #1700 & #1701. Regards, -- Benoit Minisini From sbungay at ...981... Tue Nov 11 22:03:51 2008 From: sbungay at ...981... (Stephen Bungay) Date: Tue, 11 Nov 2008 16:03:51 -0500 Subject: [Gambas-user] Resize event... In-Reply-To: <4917F65F.8090609@...1909...> References: <49166BA1.4080200@...981...> <4916AC9A.4040207@...1909...> <200811100007.37091.gambas@...1...> <4917F65F.8090609@...1909...> Message-ID: <4919F337.7020601@...981...> Well, after much consultation with Benoit I finally understand what is going on and how to get around the problem. For the benefit of anyone else who has been reading this thread, Doraino and I were talking about instantiating a form inside a container on another form and resizing that embedded form when the parent is resized. In a nutshell the solution is to reference the instantiated form by it's handle reference, created at the time of it being instantiated, and NOT by its' name. For example, consider an application that has three form classes, FormMain, FormX, and FormY. Form Main will contain a tabstrip and inside that tabstrip we want to instantiate FormX on tabstrip index 0 and FormY on tabstrip index 1. When we resize FormMain we want the embedded forms in their tabs to resize appropriately. Our FormMain Class logic might look like this; ' Gambas class file Private mFormInitialized as Boolean Private mhFormX As FormX Private mhFormY AS FormY Public Sub Form_Open() InitializeControls End Private Sub InitializeControls() TabStrip1.Index = 0 mhFormX = New FormX(TabStrip1) TabStrip1.Index = 1 mhFormY = New FormY(TabStrip1) TabStrip1.Index = 0 mFormInitialized = True End Public Sub Form_Resize() With TabStrip1 .Width = .Parent.width - 10 .Height = .Parent.height - 20 mhFormX.Resize(TabStrip1.Width - 10, Tabstrip1.Height - 10) mhFormY.Resize(TabStrip1.Width - 10, Tabstrip1.Height - 10) End With End The resize events in the forms referenced by mhFormX and mhFormY will now fire as expected, the embedded forms resize events will now fire as expected. Steve. Doriano Blengino wrote: > Benoit Minisini ha scritto: >>> Apart from this clarification, I had a hard debate with Benoit about >>> embedding forms inside tabstrips. What I remember about the end, is that >>> resize events will not raise. Full stop. I think this is an omission, >>> because when the size of the form changes, a resize event should be >>> fired no matter if the form is child of the desktop or child of a tabstrip. >>> >>> >> No, if Resize event is not raised, then it was a bug. Are you sure that we >> talked about that? >> > This happened some time ago - could be I am wrong, but the proof is > simple to produce. > Right now I have no time but, in the course of today, may be I will find > the time to build a simple project. Anyway, Stephen Bungay complains for > the same reason as me, so I should be right... > > You can wait for me to send a little project, or Stephen, or you can try > by yourself. > > Regards, > Doriano > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From rterry at ...1946... Wed Nov 12 00:42:59 2008 From: rterry at ...1946... (richard terry) Date: Wed, 12 Nov 2008 10:42:59 +1100 Subject: [Gambas-user] Startup now on menu - thanks Message-ID: <200811121042.59210.rterry@...1946...> Thanks Benoit, works a treat and saves much hunting and scrolling. Regards Richard From eilert-sprachen at ...221... Wed Nov 12 08:10:03 2008 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Wed, 12 Nov 2008 08:10:03 +0100 Subject: [Gambas-user] Tableview edit on wrong line? In-Reply-To: <200811111937.17949.gambas@...1...> References: <49117E18.2030302@...221...> <200811111937.17949.gambas@...1...> Message-ID: <491A814B.90403@...221...> Benoit Minisini schrieb: > On mercredi 5 novembre 2008, Rolf-Werner Eilert wrote: >> Hi folks, >> >> who's using the edit method in the TableView control? >> >> When I tried it for the first time the other day, the editor or listbox >> always showed up one and a half lines UNDER the position of the cell I >> had clicked on (but with the correct contents). It doesn't have a frame, >> so I guess it is supposed to appear within the clicked cell. >> >> Everything else runs ok, but the position is not the one expected. >> >> Is this a bug or a feature? :-) >> >> Regards >> >> Rolf >> > > Yeah. The 'feature' was fixed in revision #1700 & #1701. > > Regards, > Uuuuh - thank you! Regards Rolf From doriano.blengino at ...1909... Wed Nov 12 09:46:24 2008 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Wed, 12 Nov 2008 09:46:24 +0100 Subject: [Gambas-user] Resize event... In-Reply-To: <4919F337.7020601@...981...> References: <49166BA1.4080200@...981...> <4916AC9A.4040207@...1909...> <200811100007.37091.gambas@...1...> <4917F65F.8090609@...1909...> <4919F337.7020601@...981...> Message-ID: <491A97E0.3050800@...1909...> Stephen Bungay ha scritto: > Well, after much consultation with Benoit I finally understand what > is going on and how to get around the problem. > > For the benefit of anyone else who has been reading this thread, > Doraino and I were talking about instantiating a form inside a container > on another form and resizing that embedded form when the parent is resized. > > In a nutshell the solution is to reference the instantiated form by > it's handle reference, created at the time of it being instantiated, and > NOT by its' name. > > For example, consider an application that has three form classes, > FormMain, FormX, and FormY. Form Main will contain a tabstrip and inside > that tabstrip we want to instantiate FormX on tabstrip index 0 and FormY > on tabstrip index 1. When we resize FormMain we want the embedded forms > in their tabs to resize appropriately. Our FormMain Class logic might > look like this; > > ' Gambas class file > Private mFormInitialized as Boolean > Private mhFormX As FormX > Private mhFormY AS FormY > > Public Sub Form_Open() > InitializeControls > End > > > Private Sub InitializeControls() > TabStrip1.Index = 0 > mhFormX = New FormX(TabStrip1) > > TabStrip1.Index = 1 > mhFormY = New FormY(TabStrip1) > > TabStrip1.Index = 0 > > mFormInitialized = True > End > > > Public Sub Form_Resize() > With TabStrip1 > .Width = .Parent.width - 10 > .Height = .Parent.height - 20 > mhFormX.Resize(TabStrip1.Width - 10, Tabstrip1.Height - 10) > mhFormY.Resize(TabStrip1.Width - 10, Tabstrip1.Height - 10) > End With > End > > The resize events in the forms referenced by mhFormX and mhFormY will > now fire as expected, the embedded forms resize events will now fire as > expected. > > Steve. > Something strange is happening now. I remember something wrong when embedding forms in tabstrip, for sure, and proof is you encounter the same problem. But yesterday I tried again to embed, and I found nothing wrong - both resize and open event were called in the embedded form (resize event was a little slower when embedded, but who cares). I tried both QT and GTK. I never changed my version of Gambas, which is 2.0.0, so it is not a version issue. The only wrong thing is that a mhFormY = New FormY(TabStrip1) as "evformy" doesn't work, and an observer is needed. Now we come to your source. The "mFormInitialized" variable serves what purpose? Then, where is the point to explicitly resize FormX and FormY in a manner so convolute? At the time the form is instanciated, it could be resized - so a single routine can be used to open as many forms are needed. Next, who says that FormX wants to be resized to its "container.width-10" and "container.height-10"? When I say independence, I mean that FormMain has to embed another form, without knowing what that form will do with its geometry. If the explicit call to FormX.resize() has only the purpose to raise a resize event, well - I understand: when the resize event fires, the embedded form can do whatever it wants. But for me, the resize event was firing without any special processing. All this seems messed, but I have a solution/request. How about an extended syntax to RAISE, which permit to send an event to a specified object? Like this: RAISE resize TO mhFormX If the TO keyword is not specified, the event is sended, just like now, to the parent object. Anyway, this should be not needed in this case - I repeat - for me the embedded forms receive form_open and form_resize - still I am sure that there was something wrong, but can't remember what... This evening I will send my test project, if anybody can care. Regards, Doriano From theatre at ...2012... Wed Nov 12 10:07:28 2008 From: theatre at ...2012... (Frank Cox) Date: Wed, 12 Nov 2008 03:07:28 -0600 Subject: [Gambas-user] Centos? x86_64 vs i386? GTK vs QT? Message-ID: <20081112030728.c1cb3036.theatre@...2012...> Hello folks! I installed Gambas2 about two hours ago and have been sitting here in awe since then. To say that I'm impressed would be an understatement, and I'm truly looking forward to playing with this wonderful toy. I have three fairly basic questions (so far) and hope you will bear with me while I try to get up to speed here: First, while my personal desktop and development machine currently runs Fedora 9/x86_64, I maintain some Centos 5/i386 application servers. I would like to be able to develop stuff on my machine here and copy it to the application servers and have it "just work" if I can. Gambas creates something that the file command tells me is a "gbr2 script text executable" when you tell it to make an executable, and that script depends on gbx2. Is there a difference between a gambas-created executable made on an x86_64 machine and one made on an i386 machine? Can I create an executable with gambas2 on my x86_64 machine and expect that it will just-work on an i386 box? Related to this, while gambas2 lives in the standard Fedora 9 repository, I haven't yet found a gambas2 i386 rpm for Centos 5. Is there one available for downloading somewhere that I haven't looked yet, or do I have to compile that myself? And if I have to compile it myself, what's the easy way to do that? Could I just grab a .src.rpm from somewhere and run "rpmbuild--rebuild" on a Centos box? And thirdly, is there a practical difference between a QT and a GTK gambas project? My "hello world" looks pretty much the same regardless of which option I pick. -- MELVILLE THEATRE ~ Melville Sask ~ http://www.melvilletheatre.com DRY CLEANER BUSINESS FOR SALE ~ http://www.canadadrycleanerforsale.com From maximvonk at ...626... Wed Nov 12 13:24:51 2008 From: maximvonk at ...626... (MaxVK) Date: Wed, 12 Nov 2008 04:24:51 -0800 (PST) Subject: [Gambas-user] Latest Gambas packages for Ubuntu - Broken? In-Reply-To: <7259b5ae0811110255s1204baa8j3b754d4a00161b7e@...627...> References: <20408776.post@...1379...> <491729E7.9010707@...626...> <20418142.post@...1379...> <20418753.post@...1379...> <20423278.post@...1379...> <20081111031011.4301a371@...431...> <20436887.post@...1379...> <7259b5ae0811110255s1204baa8j3b754d4a00161b7e@...627...> Message-ID: <20459328.post@...1379...> Thanks Daniel, yes I have those branches added already. I was also concerned because the update said that it wanted to remove those Gambas programs that I have developed myself, and installed using synaptic so that I can update them as I go. I assume that I will have to recompile and reinstall those packages? Cheers Max Daniel Campos-3 wrote: > > Hi: > > gambas.gnulinex.org is up and running again. It seems Apache got stuck I > don't know why. About Ubuntu packages I'm confident they work, as they > install without problems on any fresh Ubuntu system. The only thing is > that > you should add "universe" and may be "multiverse" branches to your > /etc/apt/sources.list file, as some components depend on libraries > available > there. If you use just the "main" branch, there will be broken > dependencies. > > Daniel > > > 2008/11/11 MaxVK > >> >> Thanks everyone: >> >> I have two further questions: >> >> Firstly, Gianni: What does apt-get "pinning" mean? >> >> And secondly, having added the correct package to my sources list an >> update >> is suggested straight away, however, I am told that only a partial update >> is >> possible, and only a few of the Gambas packages are selected (or indeed >> selectable). >> >> I seem to remember having this problem before, but I cant remember if I >> found a solution or not, and my system went down shortly after. >> >> Is this a normal update procedure? What will happen if only a part of >> Gambas >> is updated? Will the rest of the updates suddenly become available? >> >> I don't want to jump blindly into this and lose my current Gambas - I >> barely >> have the time for development right now, and I don't want to waste what I >> do >> have trying to fix a broken installation/update. >> >> Regards >> >> Max >> >> >> >> Gianni Piccini wrote: >> > >> > On Mon, 10 Nov 2008 08:32:39 -0800 (PST) MaxVK >> > wrote: >> > >> >> Thanks charles, but thats for 8.10 and I'm running 7.10 still. >> > >> > You should use apt-get "pinning" to use Gambas at a newest version >> > without changing from Gutsy to another... >> > >> > >> ------------------------------------------------------------------------- >> > This SF.Net email is sponsored by the Moblin Your Move Developer's >> > challenge >> > Build the coolest Linux based applications with Moblin SDK & win great >> > prizes >> > Grand prize is a trip for two to an Open Source event anywhere in the >> > world >> > http://moblin-contest.org/redirect.php?banner_id=100&url=/ >> > _______________________________________________ >> > Gambas-user mailing list >> > Gambas-user at lists.sourceforge.net >> > https://lists.sourceforge.net/lists/listinfo/gambas-user >> > >> > >> >> -- >> View this message in context: >> http://www.nabble.com/Latest-Gambas-packages-for-Ubuntu---Broken--tp20408776p20436887.html >> Sent from the gambas-user mailing list archive at Nabble.com. >> >> >> ------------------------------------------------------------------------- >> This SF.Net email is sponsored by the Moblin Your Move Developer's >> challenge >> Build the coolest Linux based applications with Moblin SDK & win great >> prizes >> Grand prize is a trip for two to an Open Source event anywhere in the >> world >> http://moblin-contest.org/redirect.php?banner_id=100&url=/ >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge > Build the coolest Linux based applications with Moblin SDK & win great > prizes > Grand prize is a trip for two to an Open Source event anywhere in the > world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > -- View this message in context: http://www.nabble.com/Latest-Gambas-packages-for-Ubuntu---Broken--tp20408776p20459328.html Sent from the gambas-user mailing list archive at Nabble.com. From sbungay at ...981... Wed Nov 12 15:49:31 2008 From: sbungay at ...981... (Stephen Bungay) Date: Wed, 12 Nov 2008 09:49:31 -0500 Subject: [Gambas-user] Resize event... In-Reply-To: <491A97E0.3050800@...1909...> References: <49166BA1.4080200@...981...> <4916AC9A.4040207@...1909...> <200811100007.37091.gambas@...1...> <4917F65F.8090609@...1909...> <4919F337.7020601@...981...> <491A97E0.3050800@...1909...> Message-ID: <491AECFB.6050704@...981...> > Now we come to your source. The "mFormInitialized" variable serves what > purpose? mFormInitialized is a hold over from something I used to do in VB, and ocaisionally find useful in Gambas, so I just never removed it. Call that a force of habit. It has proven useful allowing the Initialize Controls subroutine to behave differently based on the value of the boolean flag. > Then, where is the point to explicitly resize FormX and FormY in a > manner so convolute? At the time the form is instanciated, it could be > resized - so a single routine can be used to open as many forms are needed. Actually it is resized at the time it is instantiated. What were doing here is making sure that the embedded forms that we want to resize actually do resize. > Next, who says that FormX wants to be resized to its > "container.width-10" and "container.height-10"? When I say independence, Um... not to put too fine a point on it but the one who says that a form 'wants to be resized is the programmer, purely their judgement call, and no one else's. The programmer is the one in control, if he/she doesn't want FormX to be resized then simply don't call the resize method. If he/she wants to resize it to container.Width-50 them by all means do so. It is up to them. Full stop. > I mean that FormMain has to embed another form, without knowing what > that form will do with its geometry. If the explicit call to > FormX.resize() has only the purpose to raise a resize event, well - I > understand: when the resize event fires, the embedded form can do > whatever it wants. But for me, the resize event was firing without any > special processing. Yes, the point is that the embedded form can do whatever it wants, but it basis its' actions on what form main has done. Therefore the embedded form can be loosely coupled to it's host, passing information back and forth via properties and events. > > All this seems messed, but I have a solution/request. How about an > extended syntax to RAISE, which permit to send an event to a specified > object? Like this: > > RAISE resize TO mhFormX > > If the TO keyword is not specified, the event is sended, just like >now, to the parent object. I can see where that would be useful for raising events that can not be raised any other way. With the resize event we can raise it simply by calling the resize method, so that is not a good example. > Anyway, this should be not needed in this case - I repeat - for me the > embedded forms receive form_open and form_resize - still I am sure that > there was something wrong, but can't remember what... > > This evening I will send my test project, if anybody can care. I'd be interested in learning your results and, although I'm no guru, perhaps I might see something you miss,... and of course it works the other way around... you might see something I've missed. Certainly if you had not replies to my initial email I might not have started talking to Benoit and would still be flailing about. Community helps. Doriano Blengino wrote: > Stephen Bungay ha scritto: >> Well, after much consultation with Benoit I finally understand what >> is going on and how to get around the problem. >> >> For the benefit of anyone else who has been reading this thread, >> Doraino and I were talking about instantiating a form inside a container >> on another form and resizing that embedded form when the parent is resized. >> >> In a nutshell the solution is to reference the instantiated form by >> it's handle reference, created at the time of it being instantiated, and >> NOT by its' name. >> >> For example, consider an application that has three form classes, >> FormMain, FormX, and FormY. Form Main will contain a tabstrip and inside >> that tabstrip we want to instantiate FormX on tabstrip index 0 and FormY >> on tabstrip index 1. When we resize FormMain we want the embedded forms >> in their tabs to resize appropriately. Our FormMain Class logic might >> look like this; >> >> ' Gambas class file >> Private mFormInitialized as Boolean >> Private mhFormX As FormX >> Private mhFormY AS FormY >> >> Public Sub Form_Open() >> InitializeControls >> End >> >> >> Private Sub InitializeControls() >> TabStrip1.Index = 0 >> mhFormX = New FormX(TabStrip1) >> >> TabStrip1.Index = 1 >> mhFormY = New FormY(TabStrip1) >> >> TabStrip1.Index = 0 >> >> mFormInitialized = True >> End >> >> >> Public Sub Form_Resize() >> With TabStrip1 >> .Width = .Parent.width - 10 >> .Height = .Parent.height - 20 >> mhFormX.Resize(TabStrip1.Width - 10, Tabstrip1.Height - 10) >> mhFormY.Resize(TabStrip1.Width - 10, Tabstrip1.Height - 10) >> End With >> End >> >> The resize events in the forms referenced by mhFormX and mhFormY will >> now fire as expected, the embedded forms resize events will now fire as >> expected. >> >> Steve. >> > Something strange is happening now. > I remember something wrong when embedding forms in tabstrip, for sure, > and proof is you encounter the same problem. But yesterday I tried again > to embed, and I found nothing wrong - both resize and open event were > called in the embedded form (resize event was a little slower when > embedded, but who cares). I tried both QT and GTK. > I never changed my version of Gambas, which is 2.0.0, so it is not a > version issue. The only wrong thing is that a > > mhFormY = New FormY(TabStrip1) as "evformy" > > doesn't work, and an observer is needed. > > Now we come to your source. The "mFormInitialized" variable serves what > purpose? > Then, where is the point to explicitly resize FormX and FormY in a > manner so convolute? At the time the form is instanciated, it could be > resized - so a single routine can be used to open as many forms are needed. > Next, who says that FormX wants to be resized to its > "container.width-10" and "container.height-10"? When I say independence, > I mean that FormMain has to embed another form, without knowing what > that form will do with its geometry. If the explicit call to > FormX.resize() has only the purpose to raise a resize event, well - I > understand: when the resize event fires, the embedded form can do > whatever it wants. But for me, the resize event was firing without any > special processing. > > All this seems messed, but I have a solution/request. How about an > extended syntax to RAISE, which permit to send an event to a specified > object? Like this: > > RAISE resize TO mhFormX > > If the TO keyword is not specified, the event is sended, just like now, > to the parent object. > Anyway, this should be not needed in this case - I repeat - for me the > embedded forms receive form_open and form_resize - still I am sure that > there was something wrong, but can't remember what... > > This evening I will send my test project, if anybody can care. > > Regards, > Doriano > > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From smiefert at ...784... Wed Nov 12 15:46:35 2008 From: smiefert at ...784... (Stefan Miefert) Date: Wed, 12 Nov 2008 15:46:35 +0100 Subject: [Gambas-user] Multidimensional dynamic class objects Message-ID: <8D42310D957CFB46AA11921A711D4D160216DD86AE@...1899...> Hello, how can i do this:) something like public objec as classname[] From gambas at ...1... Wed Nov 12 16:25:24 2008 From: gambas at ...1... (Benoit Minisini) Date: Wed, 12 Nov 2008 16:25:24 +0100 Subject: [Gambas-user] Multidimensional dynamic class objects In-Reply-To: <8D42310D957CFB46AA11921A711D4D160216DD86AE@...1899...> References: <8D42310D957CFB46AA11921A711D4D160216DD86AE@...1899...> Message-ID: <200811121625.24075.gambas@...1...> On mercredi 12 novembre 2008, Stefan Miefert wrote: > Hello, > > how can i do this:) > > something like > > public objec as classname[] > You can do it in Gambas 3 only. In Gambas 2, you must use PUBLIC MyObject AS Object[] Regards, -- Benoit Minisini From smiefert at ...784... Wed Nov 12 16:46:21 2008 From: smiefert at ...784... (Stefan Miefert) Date: Wed, 12 Nov 2008 16:46:21 +0100 Subject: [Gambas-user] Multidimensional dynamic class objects In-Reply-To: <200811121625.24075.gambas@...1...> References: <8D42310D957CFB46AA11921A711D4D160216DD86AE@...1899...> <200811121625.24075.gambas@...1...> Message-ID: <8D42310D957CFB46AA11921A711D4D160216DD86B1@...1899...> >You can do it in Gambas 3 only. > >In Gambas 2, you must use PUBLIC MyObject AS Object[] Hello, And how do it ona class? Public my object as new class[] ?!? From smiefert at ...784... Wed Nov 12 16:49:12 2008 From: smiefert at ...784... (Stefan Miefert) Date: Wed, 12 Nov 2008 16:49:12 +0100 Subject: [Gambas-user] Multidimensional dynamic class objects In-Reply-To: <200811121625.24075.gambas@...1...> References: <8D42310D957CFB46AA11921A711D4D160216DD86AE@...1899...> <200811121625.24075.gambas@...1...> Message-ID: <8D42310D957CFB46AA11921A711D4D160216DD86B2@...1899...> Forget my question, i dont read your answer right -----Urspr?ngliche Nachricht----- Von: Benoit Minisini [mailto:gambas at ...1...] Gesendet: Mittwoch, 12. November 2008 16:25 An: mailing list for gambas users Betreff: Re: [Gambas-user] Multidimensional dynamic class objects On mercredi 12 novembre 2008, Stefan Miefert wrote: > Hello, > > how can i do this:) > > something like > > public objec as classname[] > You can do it in Gambas 3 only. In Gambas 2, you must use PUBLIC MyObject AS Object[] Regards, -- Benoit Minisini ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From dcamposf at ...626... Wed Nov 12 16:56:12 2008 From: dcamposf at ...626... (Daniel Campos) Date: Wed, 12 Nov 2008 16:56:12 +0100 Subject: [Gambas-user] Latest Gambas packages for Ubuntu - Broken? In-Reply-To: <20459328.post@...1379...> References: <20408776.post@...1379...> <491729E7.9010707@...626...> <20418142.post@...1379...> <20418753.post@...1379...> <20423278.post@...1379...> <20081111031011.4301a371@...431...> <20436887.post@...1379...> <7259b5ae0811110255s1204baa8j3b754d4a00161b7e@...627...> <20459328.post@...1379...> Message-ID: <7259b5ae0811120756v4ec214c1k98e29a25795244eb@...627...> > > > I was also concerned because the update said that it wanted to remove those > Gambas programs that I have developed myself, and installed using synaptic > so that I can update them as I go. I assume that I will have to recompile > and reinstall those packages? > > If your packages depend on a concrete version, you should at least update Debian Package information a rebuild them, yes. From maximvonk at ...626... Wed Nov 12 17:40:53 2008 From: maximvonk at ...626... (MaxVK) Date: Wed, 12 Nov 2008 08:40:53 -0800 (PST) Subject: [Gambas-user] Latest Gambas packages for Ubuntu - Broken? In-Reply-To: <7259b5ae0811120756v4ec214c1k98e29a25795244eb@...627...> References: <20408776.post@...1379...> <491729E7.9010707@...626...> <20418142.post@...1379...> <20418753.post@...1379...> <20423278.post@...1379...> <20081111031011.4301a371@...431...> <20436887.post@...1379...> <7259b5ae0811110255s1204baa8j3b754d4a00161b7e@...627...> <20459328.post@...1379...> <7259b5ae0811120756v4ec214c1k98e29a25795244eb@...627...> Message-ID: <20464118.post@...1379...> I suspected as much, thanks Daniel. Regards Max Daniel Campos-3 wrote: > >> >> >> I was also concerned because the update said that it wanted to remove >> those >> Gambas programs that I have developed myself, and installed using >> synaptic >> so that I can update them as I go. I assume that I will have to recompile >> and reinstall those packages? >> >> > If your packages depend on a concrete version, you should at least update > Debian Package information a rebuild them, yes. > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge > Build the coolest Linux based applications with Moblin SDK & win great > prizes > Grand prize is a trip for two to an Open Source event anywhere in the > world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > -- View this message in context: http://www.nabble.com/Latest-Gambas-packages-for-Ubuntu---Broken--tp20408776p20464118.html Sent from the gambas-user mailing list archive at Nabble.com. From doriano.blengino at ...1909... Wed Nov 12 17:54:32 2008 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Wed, 12 Nov 2008 17:54:32 +0100 Subject: [Gambas-user] Resize event... In-Reply-To: <491AECFB.6050704@...981...> References: <49166BA1.4080200@...981...> <4916AC9A.4040207@...1909...> <200811100007.37091.gambas@...1...> <4917F65F.8090609@...1909...> <4919F337.7020601@...981...> <491A97E0.3050800@...1909...> <491AECFB.6050704@...981...> Message-ID: <491B0A48.5030108@...1909...> Stephen Bungay ha scritto: > > Now we come to your source. The "mFormInitialized" variable serves what > > purpose? > > mFormInitialized is a hold over from something I used to do in VB, > and ocaisionally find useful in Gambas, so I just never removed it. Call > that a force of habit. It has proven useful allowing the Initialize > Controls subroutine to behave differently based on the value of the > boolean flag. > Agreed. > > Then, where is the point to explicitly resize FormX and FormY in a > > manner so convolute? At the time the form is instanciated, it could be > > resized - so a single routine can be used to open as many forms are > needed. > > > Actually it is resized at the time it is instantiated. What were > doing here is making sure that the embedded forms that we want to resize > actually do resize. > No, it is not so - and, your way could be more correct. The children forms are first instanciated - stop. Then, when a Form_resize event arrives for the main form, the main form resizes the children forms. So we are both wrong... :->> Your way could be more correct, or mine... it depends on the logic of program and other things, like the order initial events are sended to forms. > > Next, who says that FormX wants to be resized to its > > "container.width-10" and "container.height-10"? When I say independence, > > > Um... not to put too fine a point on it but the one who says that a > form 'wants to be resized is the programmer, purely their judgement > call, and no one else's. The programmer is the one in control, if he/she > doesn't want FormX to be resized then simply don't call the resize > method. If he/she wants to resize it to container.Width-50 them by all > means do so. It is up to them. Full stop. > I wrote a sort of MDI application, where the MDI (children) forms are not walking in the main window but instead are put inside a tabstrip (the same as you). There are four or five different form types, and there can be multiple instances of the same form (with different data). At any given moment, the tabstrip can have 1 tab, 2, or 8 (there is a limit). So, in the resize event of the main form, I don't want to call each children form. I want that the embedded forms receive a resize event if, and only if, they are resized. If my main form is resized, but my tabstrip is not, then the children form should not be resized. If my main form has two tabstrips - one expanding and the other not, then things get more complicated. I don't want to be in control for everything, where should be mechanisms to do the work in place of me. > > I mean that FormMain has to embed another form, without knowing what > > that form will do with its geometry. If the explicit call to > > FormX.resize() has only the purpose to raise a resize event, well - I > > understand: when the resize event fires, the embedded form can do > > whatever it wants. But for me, the resize event was firing without any > > special processing. > > Yes, the point is that the embedded form can do whatever it wants, > but it basis its' actions on what form main has done. Therefore the > embedded form can be loosely coupled to it's host, passing information > back and forth via properties and events. > Passing information through properties and events? I had a lot of problems with it... I think embedding a form inside a tabstrip makes sense if you have many of them, dynamic. If it is not so, then why not copy and paste controls from a tabstrip page to another, and voil?? With dynamic forms, problem is when a form chooses to close. How to close the hosting tab?... > > > > All this seems messed, but I have a solution/request. How about an > > extended syntax to RAISE, which permit to send an event to a specified > > object? Like this: > > > > RAISE resize TO mhFormX > > > > If the TO keyword is not specified, the event is sended, just like > >now, to the parent object. > > I can see where that would be useful for raising events that can not > be raised any other way. With the resize event we can raise it simply by > calling the resize method, so that is not a good example. > There is a lot of difference, indeed. A raise event only tells to the destination form "you have been resized; please check". Calling its resize method simply resizes the form and does not tells "you have been resized". If you choose to resize the destination form, then you override its logic. If you send it an event, you use its logic. This is different... More about this. If a form receives a resize event, and decides to resize itself, then a new resize event is fired, which causes the form to be resized, which unleash another resize event... stack overflow! So you can not resize a form inside its resize event handler... or what? I will investigate on this too. > > Anyway, this should be not needed in this case - I repeat - for me the > > embedded forms receive form_open and form_resize - still I am sure that > > there was something wrong, but can't remember what... > > > > This evening I will send my test project, if anybody can care. > > I'd be interested in learning your results and, although I'm no guru, > perhaps I might see something you miss,... and of course it works the > other way around... you might see something I've missed. Certainly if > you had not replies to my initial email I might not have started talking > to Benoit and would still be flailing about. Community helps. > Right. This evening, at home, I will send the project which shows that events fire correctly. Regards, Doriano From sbungay at ...981... Wed Nov 12 18:47:29 2008 From: sbungay at ...981... (Stephen Bungay) Date: Wed, 12 Nov 2008 12:47:29 -0500 Subject: [Gambas-user] Resize event... In-Reply-To: <491B0A48.5030108@...1909...> References: <49166BA1.4080200@...981...> <4916AC9A.4040207@...1909...> <200811100007.37091.gambas@...1...> <4917F65F.8090609@...1909...> <4919F337.7020601@...981...> <491A97E0.3050800@...1909...> <491AECFB.6050704@...981...> <491B0A48.5030108@...1909...> Message-ID: <491B16B1.1090305@...981...> Look forward to it. Doriano Blengino wrote: > Stephen Bungay ha scritto: >> > Now we come to your source. The "mFormInitialized" variable serves what >> > purpose? >> >> mFormInitialized is a hold over from something I used to do in VB, >> and ocaisionally find useful in Gambas, so I just never removed it. Call >> that a force of habit. It has proven useful allowing the Initialize >> Controls subroutine to behave differently based on the value of the >> boolean flag. >> > Agreed. >> > Then, where is the point to explicitly resize FormX and FormY in a >> > manner so convolute? At the time the form is instanciated, it could be >> > resized - so a single routine can be used to open as many forms are >> needed. >> >> >> Actually it is resized at the time it is instantiated. What were >> doing here is making sure that the embedded forms that we want to resize >> actually do resize. >> > No, it is not so - and, your way could be more correct. > The children forms are first instanciated - stop. Then, when a > Form_resize event arrives for the main form, the main form resizes the > children forms. > So we are both wrong... :->> > Your way could be more correct, or mine... it depends on the logic of > program and other things, like the order initial events are sended to forms. > >> > Next, who says that FormX wants to be resized to its >> > "container.width-10" and "container.height-10"? When I say independence, >> >> >> Um... not to put too fine a point on it but the one who says that a >> form 'wants to be resized is the programmer, purely their judgement >> call, and no one else's. The programmer is the one in control, if he/she >> doesn't want FormX to be resized then simply don't call the resize >> method. If he/she wants to resize it to container.Width-50 them by all >> means do so. It is up to them. Full stop. >> > I wrote a sort of MDI application, where the MDI (children) forms are > not walking in the main window but instead are put inside a tabstrip > (the same as you). There are four or five different form types, and > there can be multiple instances of the same form (with different data). > At any given moment, the tabstrip can have 1 tab, 2, or 8 (there is a > limit). So, in the resize event of the main form, I don't want to call > each children form. I want that the embedded forms receive a resize > event if, and only if, they are resized. If my main form is resized, but > my tabstrip is not, then the children form should not be resized. If my > main form has two tabstrips - one expanding and the other not, then > things get more complicated. I don't want to be in control for > everything, where should be mechanisms to do the work in place of me. > >> > I mean that FormMain has to embed another form, without knowing what >> > that form will do with its geometry. If the explicit call to >> > FormX.resize() has only the purpose to raise a resize event, well - I >> > understand: when the resize event fires, the embedded form can do >> > whatever it wants. But for me, the resize event was firing without any >> > special processing. >> >> Yes, the point is that the embedded form can do whatever it wants, >> but it basis its' actions on what form main has done. Therefore the >> embedded form can be loosely coupled to it's host, passing information >> back and forth via properties and events. >> > Passing information through properties and events? I had a lot of > problems with it... > I think embedding a form inside a tabstrip makes sense if you have many > of them, dynamic. If it is not so, then why not copy and paste controls > from a tabstrip page to another, and voil?? > With dynamic forms, problem is when a form chooses to close. How to > close the hosting tab?... > >> > >> > All this seems messed, but I have a solution/request. How about an >> > extended syntax to RAISE, which permit to send an event to a specified >> > object? Like this: >> > >> > RAISE resize TO mhFormX >> > >> > If the TO keyword is not specified, the event is sended, just like >> >now, to the parent object. >> >> I can see where that would be useful for raising events that can not >> be raised any other way. With the resize event we can raise it simply by >> calling the resize method, so that is not a good example. >> > There is a lot of difference, indeed. A raise event only tells to the > destination form "you have been resized; please check". Calling its > resize method simply resizes the form and does not tells "you have been > resized". If you choose to resize the destination form, then you > override its logic. If you send it an event, you use its logic. This is > different... > More about this. If a form receives a resize event, and decides to > resize itself, then a new resize event is fired, which causes the form > to be resized, which unleash another resize event... stack overflow! So > you can not resize a form inside its resize event handler... or what? I > will investigate on this too. > >> > Anyway, this should be not needed in this case - I repeat - for me the >> > embedded forms receive form_open and form_resize - still I am sure that >> > there was something wrong, but can't remember what... >> > >> > This evening I will send my test project, if anybody can care. >> >> I'd be interested in learning your results and, although I'm no guru, >> perhaps I might see something you miss,... and of course it works the >> other way around... you might see something I've missed. Certainly if >> you had not replies to my initial email I might not have started talking >> to Benoit and would still be flailing about. Community helps. >> > Right. This evening, at home, I will send the project which shows that > events fire correctly. > > Regards, > Doriano > > > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From ron at ...1740... Wed Nov 12 19:31:22 2008 From: ron at ...1740... (Ron) Date: Wed, 12 Nov 2008 19:31:22 +0100 Subject: [Gambas-user] Bug: in gb, net socket client code in combination with gb.qt Message-ID: <491B20FA.8070408@...1740...> Hmm, got stuck on another strange bug, preventing me from releasing my project grrr... I posted sometime ago already that after changes in svn I got weird errors like these: QSocketNotifier: Multiple socket notifiers for same socket 18 and type read BUT, my socket code is almost the same as the Gambas example project 'ClientSocket' which worked ok. I was driving me nuts. Then I got a lightbulb moment telling me that QSocketNofifier is a QT thing, so if you change ClientSocket to use component gb.qt instead of gb.gtk, it has the same bug!! If you read a socket you get the above error and no input. I have done my part, now Benoit can fix it, lol.. Using Gambas 2,9 from svn today, and Ubuntu 8.04, and gb.qt. I never had thought that QT had something to do with network sockets. Regards, Ron_2nd. From gambas at ...1... Wed Nov 12 19:34:19 2008 From: gambas at ...1... (Benoit Minisini) Date: Wed, 12 Nov 2008 19:34:19 +0100 Subject: [Gambas-user] Bug: in gb, net socket client code in combination with gb.qt In-Reply-To: <491B20FA.8070408@...1740...> References: <491B20FA.8070408@...1740...> Message-ID: <200811121934.19562.gambas@...1...> On mercredi 12 novembre 2008, Ron wrote: > Hmm, got stuck on another strange bug, preventing me from releasing my > project grrr... > > I posted sometime ago already that after changes in svn I got weird > errors like these: > > QSocketNotifier: Multiple socket notifiers for same socket 18 and type read > > BUT, my socket code is almost the same as the Gambas example project > 'ClientSocket' which worked ok. > I was driving me nuts. > > Then I got a lightbulb moment telling me that QSocketNofifier is a QT > thing, so if you change ClientSocket to use component gb.qt instead of > gb.gtk, it has the same bug!! > > If you read a socket you get the above error and no input. > > I have done my part, now Benoit can fix it, lol.. > > > Using Gambas 2,9 from svn today, and Ubuntu 8.04, and gb.qt. > > > I never had thought that QT had something to do with network sockets. > > Regards, > Ron_2nd. I will look at it. Actually QSocketNotifier are used for watching file descriptors, even if they are not sockets. Regards, -- Benoit Minisini From ron at ...1740... Wed Nov 12 21:24:55 2008 From: ron at ...1740... (Ron) Date: Wed, 12 Nov 2008 21:24:55 +0100 Subject: [Gambas-user] Sending Udp broadcast? Message-ID: <491B3B97.30302@...1740...> Hi, Need some help in how to send a broadcast udp message. Like a wake on lan Magic Packet. I know how to create the message, but how do you sent a broadcast message with udpclient? Came up with this, but it results in a system error. hWOL = NEW UdpSocket AS "WOLSocket" hWOL.Broadcast = TRUE hWOL.Bind(0) IF hWOL.Status = Net.Active THEN PRINT "Active!" WRITE #hWOL, sMsg, Len(sMsg) ELSE PRINT "NotActive!" END IF Thanks. Regards, Ron_2nd. From gambas at ...1... Wed Nov 12 23:04:11 2008 From: gambas at ...1... (Benoit Minisini) Date: Wed, 12 Nov 2008 23:04:11 +0100 Subject: [Gambas-user] Bug: in gb, net socket client code in combination with gb.qt In-Reply-To: <491B20FA.8070408@...1740...> References: <491B20FA.8070408@...1740...> Message-ID: <200811122304.11054.gambas@...1...> On mercredi 12 novembre 2008, Ron wrote: > Hmm, got stuck on another strange bug, preventing me from releasing my > project grrr... > > I posted sometime ago already that after changes in svn I got weird > errors like these: > > QSocketNotifier: Multiple socket notifiers for same socket 18 and type read > > BUT, my socket code is almost the same as the Gambas example project > 'ClientSocket' which worked ok. > I was driving me nuts. > > Then I got a lightbulb moment telling me that QSocketNofifier is a QT > thing, so if you change ClientSocket to use component gb.qt instead of > gb.gtk, it has the same bug!! > > If you read a socket you get the above error and no input. > > I have done my part, now Benoit can fix it, lol.. > > > Using Gambas 2,9 from svn today, and Ubuntu 8.04, and gb.qt. > > > I never had thought that QT had something to do with network sockets. > > Regards, > Ron_2nd. The ClientSocket example did not work, both with gb.gtk and gb.qt, because of a bug in the Socket source code. I fixed the Socket class in the last revisions: now the example works again. But I do not have the warnings you get with Qt. Which Qt version do you use? -- Benoit Minisini From ron at ...1740... Wed Nov 12 23:46:06 2008 From: ron at ...1740... (Ron) Date: Wed, 12 Nov 2008 23:46:06 +0100 Subject: [Gambas-user] Bug: in gb, net socket client code in combination with gb.qt In-Reply-To: <200811122304.11054.gambas@...1...> References: <491B20FA.8070408@...1740...> <200811122304.11054.gambas@...1...> Message-ID: <491B5CAE.2090909@...1740...> Benoit Minisini wrote: > On mercredi 12 novembre 2008, Ron wrote: > >> Hmm, got stuck on another strange bug, preventing me from releasing my >> project grrr... >> >> I posted sometime ago already that after changes in svn I got weird >> errors like these: >> >> QSocketNotifier: Multiple socket notifiers for same socket 18 and type read >> >> BUT, my socket code is almost the same as the Gambas example project >> 'ClientSocket' which worked ok. >> I was driving me nuts. >> >> Then I got a lightbulb moment telling me that QSocketNofifier is a QT >> thing, so if you change ClientSocket to use component gb.qt instead of >> gb.gtk, it has the same bug!! >> >> If you read a socket you get the above error and no input. >> >> I have done my part, now Benoit can fix it, lol.. >> >> >> Using Gambas 2,9 from svn today, and Ubuntu 8.04, and gb.qt. >> >> >> I never had thought that QT had something to do with network sockets. >> >> Regards, >> Ron_2nd. >> > > The ClientSocket example did not work, both with gb.gtk and gb.qt, because of > a bug in the Socket source code. > > I fixed the Socket class in the last revisions: now the example works again. > But I do not have the warnings you get with Qt. Which Qt version do you use? > > ClientSocket with gb.gtk seemed to work ok here, I connected with it to my asterisk manager 192.168.100.2 on TCP port 5038 and got it's prompt back 'Asterisk Call Manager/1.0' Synaptic says installed qt is version 3:3.3.8-b-ubuntu3 Didn't have those udpsocket problems with my serial port code, and I poll every second 24/7, and have about 6 serial devices attached. Knowing that, do you think my signal 11 coredumps on ubuntu 8.10 could be caused by this bug? Anyway, my program seems to work much better now ;-) the errors are gone. Thanks for fixing so fast! Regards, Ron_2nd. From doriano.blengino at ...1909... Wed Nov 12 23:51:19 2008 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Wed, 12 Nov 2008 23:51:19 +0100 Subject: [Gambas-user] Resize event... In-Reply-To: <491B16B1.1090305@...981...> References: <49166BA1.4080200@...981...> <4916AC9A.4040207@...1909...> <200811100007.37091.gambas@...1...> <4917F65F.8090609@...1909...> <4919F337.7020601@...981...> <491A97E0.3050800@...1909...> <491AECFB.6050704@...981...> <491B0A48.5030108@...1909...> <491B16B1.1090305@...981...> Message-ID: <491B5DE7.1020903@...1909...> Stephen Bungay ha scritto: > Look forward to it. > > Doriano Blengino wrote: > >> >> Right. This evening, at home, I will send the project which shows that >> events fire correctly. >> >> Here it is. The swallowed form prints in a textarea some of the events it receives, and resizes itself. Works on Debian Etch/Stable, with Gambas version 2.0.0. Try both GTK and QT, to be sure (GTK has several differences/bugs/features...) :-) Regards, Doriano -------------- next part -------------- A non-text attachment was scrubbed... Name: TestResize-0.0.1.tar.gz Type: application/x-tgz Size: 8335 bytes Desc: not available URL: From sbungay at ...981... Thu Nov 13 00:06:04 2008 From: sbungay at ...981... (Stephen Bungay) Date: Wed, 12 Nov 2008 18:06:04 -0500 Subject: [Gambas-user] Resize event... In-Reply-To: <491B5DE7.1020903@...1909...> References: <49166BA1.4080200@...981...> <4916AC9A.4040207@...1909...> <200811100007.37091.gambas@...1...> <4917F65F.8090609@...1909...> <4919F337.7020601@...981...> <491A97E0.3050800@...1909...> <491AECFB.6050704@...981...> <491B0A48.5030108@...1909...> <491B16B1.1090305@...981...> <491B5DE7.1020903@...1909...> Message-ID: <491B615C.509@...981...> Haven't looked at it yet... so it works OK? Am unpacking it now to have a look. Doriano Blengino wrote: > Stephen Bungay ha scritto: >> Look forward to it. >> >> Doriano Blengino wrote: >> >>> >>> Right. This evening, at home, I will send the project which shows >>> that events fire correctly. >>> >>> > Here it is. The swallowed form prints in a textarea some of the events > it receives, and resizes itself. > Works on Debian Etch/Stable, with Gambas version 2.0.0. > Try both GTK and QT, to be sure (GTK has several > differences/bugs/features...) :-) > > Regards, > Doriano > > > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > > > ------------------------------------------------------------------------ > > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From pastrano at ...431... Thu Nov 13 02:36:56 2008 From: pastrano at ...431... (Gianni Piccini) Date: Thu, 13 Nov 2008 02:36:56 +0100 Subject: [Gambas-user] Latest Gambas packages for Ubuntu - Broken? In-Reply-To: <20436887.post@...1379...> References: <20408776.post@...1379...> <491729E7.9010707@...626...> <20418142.post@...1379...> <20418753.post@...1379...> <20423278.post@...1379...> <20081111031011.4301a371@...431...> <20436887.post@...1379...> Message-ID: <20081113023656.0e160d48@...431...> On Tue, 11 Nov 2008 02:31:28 -0800 (PST) MaxVK wrote: > Firstly, Gianni: What does apt-get "pinning" mean? With apt-get, you can add a repository for the next version of your distro, and use it only for some applications. I've not Ubuntu but Debian, but it's similar, except for names (we are using stable, unstable instead of intrepid etc etc). If I want to use "testing", but I want appxxx to be from "unstable", I can edit /etc/apt/preferences like this: Package: appxxx* Pin: release a=unstable Pin-Priority: 950 Package: * Pin: release a=testing Pin-Priority: 900 And so apt-get will get all apps from testing, except appxxx, from testing, and appxxx from unstable. Look for a how-to, I'm using memory due on this pc I've not this file to check, and probably you'll have to change unstable and testing with intrepid, hoary or what else. Obviously, to upgrade appxxx, with Synaptic you can still choose preferred version for all, and force version for appxxx, after you've added repositories. From rterry at ...1946... Thu Nov 13 04:53:00 2008 From: rterry at ...1946... (richard terry) Date: Thu, 13 Nov 2008 14:53:00 +1100 Subject: [Gambas-user] Draw Editor Dosn't Draw Circle AnyMore In-Reply-To: <200810301210.28068.gambas@...1...> References: <200810250756.40669.rterry@...1946...> <200810251024.30163.rterry@...1946...> <200810301210.28068.gambas@...1...> Message-ID: <200811131453.00677.rterry@...1946...> On Thu, 30 Oct 2008 10:10:28 pm Benoit Minisini wrote: > On samedi 25 octobre 2008, richard terry wrote: > > On Fri, 24 Oct 2008 10:10:03 am Benoit Minisini wrote: > > > On vendredi 24 octobre 2008, richard terry wrote: > > > > Just noticed my app stopped being able to draw circles, so I checked > > > > the draw editor and it dosn't either, but the square still works > > > > ?why ?any ideas > > > > > > > > Regards > > > > > > > > Richard > > > > > > Can you give more details please? > > > > If build I think 1647. > > > > If you edit a picture, and use the say draw a square button, you can > > draw the square over the picture. If you use the circle tool, the cursor > > seems to draw the circle, but no circle ends up on the picture. > > > > The picture shows a square drawn, and a screen dump whilst I'm drawing a > > circle with the mouse. However as soon as I release the mouse, there is > > no circle left on the picture, unlike the square which is left as you can > > see above. Remember that this dump is taken whilst holdiing the mouse > > down and the circle disappears (ie is not drawn) once the mouose is > > released > > > > > > Regards Richard > > > > > > Regards > > > > > > Richard > > I cannot reproduce your bug, both with Gambas 2 and Gambas 3. Each time I > wanted to draw a circle, I had the circle drawn as expected. > > Someone else having this problem ? Hi, Still exists in latest builds on my machine. I went to another machine I don't use for programming and built gambas de-novo, same problem withi no circle. Using KDE/kernel 2.6.27/gambas 1701 build. As this little circle is important to me I wondered if Benoit could give me any way of tracking it down!! Regards Richard From rterry at ...1946... Thu Nov 13 08:06:45 2008 From: rterry at ...1946... (richard terry) Date: Thu, 13 Nov 2008 18:06:45 +1100 Subject: [Gambas-user] lib Poppler Problem Message-ID: <200811131806.45469.rterry@...1946...> I just upgraded my system and now have no /usr/lib/libpoppler.so.3, but this file /usr/lib/libpoppler.so.4, so Gambas won't run (at least the pdf module) despite a routine re-compile using 1703 I guess I can symlink, but wondered if this is my machine problem or if the pdf component of gambas is somehow pre-linked to the old library. Regards Richard From wdahn at ...1000... Thu Nov 13 09:35:42 2008 From: wdahn at ...1000... (Werner) Date: Thu, 13 Nov 2008 16:35:42 +0800 Subject: [Gambas-user] Sending Udp broadcast? In-Reply-To: <491B3B97.30302@...1740...> References: <491B3B97.30302@...1740...> Message-ID: <491BE6DE.6060600@...1000...> Ron wrote: > Hi, > > Need some help in how to send a broadcast udp message. > > Like a wake on lan Magic Packet. > I know how to create the message, but how do you sent a broadcast > message with udpclient? > > Came up with this, but it results in a system error. > > hWOL = NEW UdpSocket AS "WOLSocket" > hWOL.Broadcast = TRUE > hWOL.Bind(0) > IF hWOL.Status = Net.Active THEN > PRINT "Active!" > WRITE #hWOL, sMsg, Len(sMsg) > ELSE > PRINT "NotActive!" > END IF > > Thanks. > > Regards, > Ron_2nd. > '------------- Broadcast class ----------------------------------- ' Gambas class file 'broadcasts a UDP message to all computers (including self) 'on the same class C subnet(s) PUBLIC TXmitter AS UdpSocket PUBLIC SUB _new() TXmitter = NEW UdpSocket AS "TXmitter" TXmitter.Broadcast = TRUE TXmitter.Bind(0) END PUBLIC SUB Send(thePort AS Integer, OPTIONAL theMessage AS String = " ") DIM host AS String DIM IPs AS String[] DIM IP AS String DIM thisIP AS String[] TXmitter.TargetPort = thePort EXEC ["hostname", "-i"] TO host IPs = Split(Trim$(host), " ") FOR EACH IP IN IPs thisIP = Split(IP, ".") IF CInt(thisIP[0]) = 127 THEN CONTINUE TXmitter.TargetHost = thisIP[0] & "." & thisIP[1] & "." & thisIP[2] & "." & "255" WRITE #TXmitter, theMessage, Len(theMessage) NEXT END PUBLIC SUB TXmitter_Error() PRINT "Error" & Error.Text END PUBLIC SUB Close() IF TXmitter.Status > 0 THEN CLOSE #TXmitter END '-------------------- 'using the Broadcast class: 'declaration section: PUBLIC BCast AS NEW Broadcast 'UDP broadcaster 'in the code: BCast.Send(12345, "Hello World!") '============================================================== 'UDP Receiver (same port as transmitter): PUBLIC netReceiver AS UdpSocket 'for incoming lap change information PUBLIC SUB Form_Open() netReceiver = NEW UdpSocket AS "netReceiver" netReceiver.Bind(12345) END PUBLIC SUB Form_Close() IF netReceiver.Status > 0 THEN CLOSE #netReceiver END PUBLIC SUB netReceiver_Read() DIM receivedData AS String DIM receivedFields AS String[] READ #netReceiver, receivedData, Lof(netReceiver) 'your code here END '-------------------------- Best Regards Werner From ron at ...1740... Thu Nov 13 09:57:24 2008 From: ron at ...1740... (Ron) Date: Thu, 13 Nov 2008 09:57:24 +0100 Subject: [Gambas-user] Sending Udp broadcast? In-Reply-To: <491BE6DE.6060600@...1000...> References: <491B3B97.30302@...1740...> <491BE6DE.6060600@...1000...> Message-ID: <491BEBF4.9040200@...1740...> Werner schreef: > Ron wrote: > >> Hi, >> >> Need some help in how to send a broadcast udp message. >> >> Like a wake on lan Magic Packet. >> I know how to create the message, but how do you sent a broadcast >> message with udpclient? >> >> Came up with this, but it results in a system error. >> >> hWOL = NEW UdpSocket AS "WOLSocket" >> hWOL.Broadcast = TRUE >> hWOL.Bind(0) >> IF hWOL.Status = Net.Active THEN >> PRINT "Active!" >> WRITE #hWOL, sMsg, Len(sMsg) >> ELSE >> PRINT "NotActive!" >> END IF >> >> Thanks. >> >> Regards, >> Ron_2nd. >> >> > '------------- Broadcast class ----------------------------------- > ' Gambas class file > 'broadcasts a UDP message to all computers (including self) > 'on the same class C subnet(s) > > PUBLIC TXmitter AS UdpSocket > > PUBLIC SUB _new() > TXmitter = NEW UdpSocket AS "TXmitter" > TXmitter.Broadcast = TRUE > TXmitter.Bind(0) > END > > PUBLIC SUB Send(thePort AS Integer, OPTIONAL theMessage AS String = " ") > DIM host AS String > DIM IPs AS String[] > DIM IP AS String > DIM thisIP AS String[] > TXmitter.TargetPort = thePort > EXEC ["hostname", "-i"] TO host > IPs = Split(Trim$(host), " ") > FOR EACH IP IN IPs > thisIP = Split(IP, ".") > IF CInt(thisIP[0]) = 127 THEN CONTINUE > TXmitter.TargetHost = thisIP[0] & "." & thisIP[1] & "." & thisIP[2] > & "." & "255" > WRITE #TXmitter, theMessage, Len(theMessage) > NEXT > END > > PUBLIC SUB TXmitter_Error() > PRINT "Error" & Error.Text > END > > PUBLIC SUB Close() > IF TXmitter.Status > 0 THEN CLOSE #TXmitter > END > > > '-------------------- > 'using the Broadcast class: > > 'declaration section: > PUBLIC BCast AS NEW Broadcast 'UDP broadcaster > > 'in the code: > BCast.Send(12345, "Hello World!") > > '============================================================== > 'UDP Receiver (same port as transmitter): > > PUBLIC netReceiver AS UdpSocket 'for incoming lap change information > > > PUBLIC SUB Form_Open() > netReceiver = NEW UdpSocket AS "netReceiver" > netReceiver.Bind(12345) > END > > PUBLIC SUB Form_Close() > IF netReceiver.Status > 0 THEN CLOSE #netReceiver > END > > > PUBLIC SUB netReceiver_Read() > DIM receivedData AS String > DIM receivedFields AS String[] > READ #netReceiver, receivedData, Lof(netReceiver) > 'your code here > END > > '-------------------------- > > Best Regards > Werner > > > Thanks! I have noticed that Ubuntu 8.04 only returns localhost address on hostname -i ron at ...2013...:~$ hostname -i 127.0.1.1 But thats no problem in my case. Regards, Ron_2nd. From wdahn at ...1000... Thu Nov 13 11:02:27 2008 From: wdahn at ...1000... (Werner) Date: Thu, 13 Nov 2008 18:02:27 +0800 Subject: [Gambas-user] Sending Udp broadcast? In-Reply-To: <491BEBF4.9040200@...1740...> References: <491B3B97.30302@...1740...> <491BE6DE.6060600@...1000...> <491BEBF4.9040200@...1740...> Message-ID: <491BFB33.8030506@...1000...> > Thanks! > > I have noticed that Ubuntu 8.04 only returns localhost address on > hostname -i > > ron at ...2013...:~$ hostname -i > 127.0.1.1 > > But thats no problem in my case. I have this on openSUSE 11.0: $ hostname -V net-tools 1.60 hostname 1.100 (2001-04-14) Also, I had forgotten to mention that Broadcast.Close should be called when the application terminates. From ron at ...1740... Thu Nov 13 11:08:15 2008 From: ron at ...1740... (Ron) Date: Thu, 13 Nov 2008 11:08:15 +0100 Subject: [Gambas-user] Sending Udp broadcast? In-Reply-To: <491BFB33.8030506@...1000...> References: <491B3B97.30302@...1740...> <491BE6DE.6060600@...1000...> <491BEBF4.9040200@...1740...> <491BFB33.8030506@...1000...> Message-ID: <491BFC8F.8030604@...1740...> Werner schreef: >> Thanks! >> >> I have noticed that Ubuntu 8.04 only returns localhost address on >> hostname -i >> >> ron at ...2013...:~$ hostname -i >> 127.0.1.1 >> >> But thats no problem in my case. >> > I have this on openSUSE 11.0: > $ hostname -V > net-tools 1.60 > hostname 1.100 (2001-04-14) > > Also, I had forgotten to mention that Broadcast.Close should be called > when the application terminates. > > > Here it reports: ron at ...2013...:~$ hostname -V hostname 2.94 Linux and compatibility... hmmm Regards, Ron_2nd. From gambas at ...1... Thu Nov 13 11:18:39 2008 From: gambas at ...1... (Benoit Minisini) Date: Thu, 13 Nov 2008 11:18:39 +0100 Subject: [Gambas-user] lib Poppler Problem In-Reply-To: <200811131806.45469.rterry@...1946...> References: <200811131806.45469.rterry@...1946...> Message-ID: <200811131118.39310.gambas@...1...> On jeudi 13 novembre 2008, richard terry wrote: > I just upgraded my system and now have no /usr/lib/libpoppler.so.3, but > this file > > /usr/lib/libpoppler.so.4, so Gambas won't run (at least the pdf module) > despite a routine re-compile using 1703 > > > I guess I can symlink, but wondered if this is my machine problem or if the > pdf component of gambas is somehow pre-linked to the old library. > > Regards > > Richard > I think you made something wrong somewhere: either Gambas recompile the gb.pdf component without error, and then it will work, or Gambas recompile the gb.pdf component with an error, and it will not work. I don't know what you are talking about with "pre-linked to the old library", but, yes, any executable on your system has a internal list of the shared libraries it needs, and if you remove one of them, it will complain. (When Gambas loads the component in our specific case). Regards, -- Benoit Minisini From sbungay at ...981... Thu Nov 13 15:05:04 2008 From: sbungay at ...981... (Stephen Bungay) Date: Thu, 13 Nov 2008 09:05:04 -0500 Subject: [Gambas-user] Resize event... In-Reply-To: <491B5DE7.1020903@...1909...> References: <49166BA1.4080200@...981...> <4916AC9A.4040207@...1909...> <200811100007.37091.gambas@...1...> <4917F65F.8090609@...1909...> <4919F337.7020601@...981...> <491A97E0.3050800@...1909...> <491AECFB.6050704@...981...> <491B0A48.5030108@...1909...> <491B16B1.1090305@...981...> <491B5DE7.1020903@...1909...> Message-ID: <491C3410.8080009@...981...> I two lines of code to the resize event so that the embedded form does get positioned in the middle of the parent (perhaps I just misunderstood the print statement "received RESIZE event - I want to be middle in the middle"?). Anyway, this all seems to work quite nicely. Works properly under Gambas 2.8 Kubuntu 7.04. Regards Steve. Doriano Blengino wrote: > Stephen Bungay ha scritto: >> Look forward to it. >> >> Doriano Blengino wrote: >> >>> >>> Right. This evening, at home, I will send the project which shows >>> that events fire correctly. >>> >>> > Here it is. The swallowed form prints in a textarea some of the events > it receives, and resizes itself. > Works on Debian Etch/Stable, with Gambas version 2.0.0. > Try both GTK and QT, to be sure (GTK has several > differences/bugs/features...) :-) > > Regards, > Doriano > > > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > > > ------------------------------------------------------------------------ > > _______________________________________________ > 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: TestResize.tar.gz Type: application/x-gzip Size: 10218 bytes Desc: not available URL: From wdahn at ...1000... Thu Nov 13 18:21:38 2008 From: wdahn at ...1000... (Werner) Date: Fri, 14 Nov 2008 01:21:38 +0800 Subject: [Gambas-user] Sending Udp broadcast? In-Reply-To: <491BFC8F.8030604@...1740...> References: <491B3B97.30302@...1740...> <491BE6DE.6060600@...1000...> <491BEBF4.9040200@...1740...> <491BFB33.8030506@...1000...> <491BFC8F.8030604@...1740...> Message-ID: <491C6222.2030100@...1000...> Ron wrote: > Werner schreef: > >>> Thanks! >>> >>> I have noticed that Ubuntu 8.04 only returns localhost address on >>> hostname -i >>> >>> ron at ...2013...:~$ hostname -i >>> 127.0.1.1 >>> >>> But thats no problem in my case. >>> >>> >> I have this on openSUSE 11.0: >> $ hostname -V >> net-tools 1.60 >> hostname 1.100 (2001-04-14) >> >> Also, I had forgotten to mention that Broadcast.Close should be called >> when the application terminates. >> >> >> >> > Here it reports: > > ron at ...2013...:~$ hostname -V > hostname 2.94 > > Linux and compatibility... hmmm > > Regards, > Ron_2nd. > Please let me know how you get your ip adresse(s) so I can make this class more resiliant. Werner From ron at ...1740... Thu Nov 13 18:27:52 2008 From: ron at ...1740... (Ron) Date: Thu, 13 Nov 2008 18:27:52 +0100 Subject: [Gambas-user] Sending Udp broadcast? In-Reply-To: <491C6222.2030100@...1000...> References: <491B3B97.30302@...1740...> <491BE6DE.6060600@...1000...> <491BEBF4.9040200@...1740...> <491BFB33.8030506@...1000...> <491BFC8F.8030604@...1740...> <491C6222.2030100@...1000...> Message-ID: <491C6398.1020701@...1740...> Werner schreef: > Ron wrote: > >> Werner schreef: >> >> >>>> Thanks! >>>> >>>> I have noticed that Ubuntu 8.04 only returns localhost address on >>>> hostname -i >>>> >>>> ron at ...2013...:~$ hostname -i >>>> 127.0.1.1 >>>> >>>> But thats no problem in my case. >>>> >>>> >>>> >>> I have this on openSUSE 11.0: >>> $ hostname -V >>> net-tools 1.60 >>> hostname 1.100 (2001-04-14) >>> >>> Also, I had forgotten to mention that Broadcast.Close should be called >>> when the application terminates. >>> >>> >>> >>> >>> >> Here it reports: >> >> ron at ...2013...:~$ hostname -V >> hostname 2.94 >> >> Linux and compatibility... hmmm >> >> Regards, >> Ron_2nd. >> >> > Please let me know how you get your ip adresse(s) so I can make this > class more resiliant. > Werner > > I found out hostname on ubuntu only reports ip addresses which are in /etc/hosts If you add the 192.168 address to it, hostname reports it too. Maybe query with ipconfig is more save? I have a domotica project, with devices table so I keep ip adresses and mac adresses of pc's in my db. Regards, Ron_2nd From almodook at ...2007... Thu Nov 13 21:22:09 2008 From: almodook at ...2007... (moon_walker) Date: Thu, 13 Nov 2008 12:22:09 -0800 (PST) Subject: [Gambas-user] New Error message with 2.9 Message-ID: <20488836.post@...1379...> Hi, i just updated my 2.8 to 2.9 successfully on OpenSuSE 11 with packages by valor's repo. If i want to create an executable or even edit the project properties i receive an error message: "Unable to create desktop shortcut. File is a directory. Project.SearchPathVariable.2372" please help. br Attila -- View this message in context: http://www.nabble.com/New-Error-message-with-2.9-tp20488836p20488836.html Sent from the gambas-user mailing list archive at Nabble.com. From demosthenesk at ...626... Fri Nov 14 16:38:01 2008 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Fri, 14 Nov 2008 17:38:01 +0200 Subject: [Gambas-user] Beginers questions Message-ID: Hi to all, i have two simple questions as a beginner, 1) how to have access to control values from different forms? For example i have 2 forms, Form1 and Form2 I want to write something like the next code, in Form2 ------- Form1 code ---------------- TextArea1.Text="Hello world" ----------------------------------------- ------- Form2 code ---------------- Message.info(Form1.TextArea1.Text) ----------------------------------------- but i cant. is there any way? 2) how to add a separator line with menu editor in a menu. I use gambas2-2.9.0 and openSuse10.2 Thanks my friends for your time -- ???? ???? ?? ?????!!! Regards, Demosthenes Koptsis From wdahn at ...1000... Fri Nov 14 17:15:01 2008 From: wdahn at ...1000... (Werner) Date: Sat, 15 Nov 2008 00:15:01 +0800 Subject: [Gambas-user] Beginers questions In-Reply-To: References: Message-ID: <491DA405.5020807@...1000...> Demosthenes Koptsis wrote: > Hi to all, > > i have two simple questions as a beginner, > > 1) how to have access to control values from different forms? > > For example i have 2 forms, Form1 and Form2 > I want to write something like the next code, in Form2 > > ------- Form1 code ---------------- > TextArea1.Text="Hello world" > ----------------------------------------- > > ------- Form2 code ---------------- > Message.info(Form1.TextArea1.Text) > ----------------------------------------- > > but i cant. is there any way? > In Project Properties there is a checkbox "Form Controls are public". > 2) how to add a separator line with menu editor in a menu. > Have to pass on this one. Have you tried just a minus sign? > > I use gambas2-2.9.0 and openSuse10.2 > > Thanks my friends for your time > > From ron at ...1740... Fri Nov 14 17:22:15 2008 From: ron at ...1740... (Ron) Date: Fri, 14 Nov 2008 17:22:15 +0100 Subject: [Gambas-user] Beginers questions In-Reply-To: <491DA405.5020807@...1000...> References: <491DA405.5020807@...1000...> Message-ID: <491DA5B7.5010902@...1740...> Werner schreef: > Demosthenes Koptsis wrote: > >> Hi to all, >> >> i have two simple questions as a beginner, >> >> 1) how to have access to control values from different forms? >> >> For example i have 2 forms, Form1 and Form2 >> I want to write something like the next code, in Form2 >> >> ------- Form1 code ---------------- >> TextArea1.Text="Hello world" >> ----------------------------------------- >> >> ------- Form2 code ---------------- >> Message.info(Form1.TextArea1.Text) >> ----------------------------------------- >> >> but i cant. is there any way? >> >> > In Project Properties there is a checkbox "Form Controls are public". > >> 2) how to add a separator line with menu editor in a menu. >> >> > Have to pass on this one. Have you tried just a minus sign? > > Do insert menu, and clear the Caption field, ie an empty menu entry. Regards, Ron_2nd. From sbungay at ...981... Fri Nov 14 17:40:48 2008 From: sbungay at ...981... (Stephen Bungay) Date: Fri, 14 Nov 2008 11:40:48 -0500 Subject: [Gambas-user] Beginers questions In-Reply-To: References: Message-ID: <491DAA10.2050706@...981...> Demosthenes Koptsis wrote: > Hi to all, > > i have two simple questions as a beginner, > > 1) how to have access to control values from different forms? > Set the controls in all forms to be public as Werner suggests, or use properties and strictly control what information gets exposed to the outside world. > For example i have 2 forms, Form1 and Form2 > I want to write something like the next code, in Form2 > > ------- Form1 code ---------------- > TextArea1.Text="Hello world" > ----------------------------------------- > > ------- Form2 code ---------------- > Message.info(Form1.TextArea1.Text) > ----------------------------------------- > > but i cant. is there any way? > > 2) how to add a separator line with menu editor in a menu. > > > I use gambas2-2.9.0 and openSuse10.2 > > Thanks my friends for your time > Can't help you with this one.. I know I've done this but it was so long ago now... I'g have to hunt down an example. From rospolosco at ...152... Fri Nov 14 20:24:33 2008 From: rospolosco at ...152... (Stefano Palmeri) Date: Fri, 14 Nov 2008 20:24:33 +0100 Subject: [Gambas-user] New Error message with 2.9 In-Reply-To: <20488836.post@...1379...> References: <20488836.post@...1379...> Message-ID: <200811142024.34106.rospolosco@...152...> Il gioved? 13 novembre 2008 21:22:09 moon_walker ha scritto: > Hi, > > i just updated my 2.8 to 2.9 successfully on OpenSuSE 11 with packages by > valor's repo. > If i want to create an executable or even edit the project properties i > receive an error message: > > "Unable to create desktop shortcut. > File is a directory. > Project.SearchPathVariable.2372" > > please help. > > br > Attila I had the same problem on slackware. Benoit fixed it in svn version. Bye, Stefano From almodook at ...2007... Fri Nov 14 20:34:46 2008 From: almodook at ...2007... (moon_walker) Date: Fri, 14 Nov 2008 11:34:46 -0800 (PST) Subject: [Gambas-user] New Error message with 2.9 In-Reply-To: <200811142024.34106.rospolosco@...152...> References: <20488836.post@...1379...> <200811142024.34106.rospolosco@...152...> Message-ID: <20507030.post@...1379...> Hi Stefano, thanks, but what means SVN version? :-) thx Attila Stefano Palmeri wrote: > > Il gioved? 13 novembre 2008 21:22:09 moon_walker ha scritto: > > I had the same problem on slackware. Benoit fixed it in svn version. > > Bye, > > Stefano > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge > Build the coolest Linux based applications with Moblin SDK & win great > prizes > Grand prize is a trip for two to an Open Source event anywhere in the > world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > -- View this message in context: http://www.nabble.com/New-Error-message-with-2.9-tp20488836p20507030.html Sent from the gambas-user mailing list archive at Nabble.com. From epileg at ...626... Fri Nov 14 21:38:25 2008 From: epileg at ...626... (=?UTF-8?B?RXDDrWxlZw==?=) Date: Fri, 14 Nov 2008 21:38:25 +0100 Subject: [Gambas-user] Latest Gambas packages for Ubuntu - Broken? In-Reply-To: <20418142.post@...1379...> References: <20408776.post@...1379...> <491729E7.9010707@...626...> <20418142.post@...1379...> Message-ID: <491DE1C1.7040504@...626...> En/na MaxVK ha escrit: > Thanks Ep?leg, but I really don't want the unstable release - I need a rock > solid version. Is there an up to date stable version that I can do the same > thing with? Better still if there is actually a full .deb release? > > Regards > > Max unstable? If I go to http://gambas.sourceforge.net/, I can read that the stable version is 2.9.0, and the unstable is the svn trunk, the future gambas3. Best regards, -- Ep?leg From maximvonk at ...626... Fri Nov 14 21:49:22 2008 From: maximvonk at ...626... (MaxVK) Date: Fri, 14 Nov 2008 12:49:22 -0800 (PST) Subject: [Gambas-user] Latest Gambas packages for Ubuntu - Broken? In-Reply-To: <491DE1C1.7040504@...626...> References: <20408776.post@...1379...> <491729E7.9010707@...626...> <20418142.post@...1379...> <491DE1C1.7040504@...626...> Message-ID: <20508049.post@...1379...> Ep?leg wrote: > > ...You can build them Yourself. > > http://packages.debian.org/unstable/source/gambas2 > Heh! I didn't actually follow the link because it used the word 'unstable', hence my reply! -- View this message in context: http://www.nabble.com/Latest-Gambas-packages-for-Ubuntu---Broken--tp20408776p20508049.html Sent from the gambas-user mailing list archive at Nabble.com. From tomas.eroles at ...277... Sat Nov 15 09:37:15 2008 From: tomas.eroles at ...277... (Tomas Eroles i Forner) Date: Sat, 15 Nov 2008 09:37:15 +0100 Subject: [Gambas-user] Beginers questions In-Reply-To: <491DAA10.2050706@...981...> References: <491DAA10.2050706@...981...> Message-ID: <1226738236.4569.14.camel@...2014...> Hi all! El dv 14 de 11 del 2008 a les 11:40 -0500, en/na Stephen Bungay va escriure: > Demosthenes Koptsis wrote: > > Hi to all, > > > > i have two simple questions as a beginner, > > > > 1) how to have access to control values from different forms? > > > > Set the controls in all forms to be public as Werner suggests, or use > properties and strictly control what information gets exposed to the > outside world. I don't like this method, because everything is public and in large projects it can be a source of problems. My advice is to include public methods in the form you want to use from another. > > > For example i have 2 forms, Form1 and Form2 > > I want to write something like the next code, in Form2 > > > > ------- Form1 code ---------------- > > TextArea1.Text="Hello world" > > ----------------------------------------- > > > > ------- Form2 code ---------------- > > Message.info(Form1.TextArea1.Text) > > ----------------------------------------- > > > > but i cant. is there any way? On form1 put that: Public Sub SetTextArea1(myText as String) me.TextArea1.Text = myText End Sub Then, on form2, you can add these lines where you need: [....] Form1.SetTextArea1("Hello world!!") [....] Hope be useful > > > > 2) how to add a separator line with menu editor in a menu. > > > > > > I use gambas2-2.9.0 and openSuse10.2 > > > > Thanks my friends for your time > > > Can't help you with this one.. I know I've done this but it was so > long ago now... I'g have to hunt down an example. > In the menu editor, add a menu entry where you want, and clear the caption Regards > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From rospolosco at ...152... Sat Nov 15 10:25:26 2008 From: rospolosco at ...152... (Stefano Palmeri) Date: Sat, 15 Nov 2008 10:25:26 +0100 Subject: [Gambas-user] New Error message with 2.9 In-Reply-To: <20507030.post@...1379...> References: <20488836.post@...1379...> <200811142024.34106.rospolosco@...152...> <20507030.post@...1379...> Message-ID: <200811151025.26812.rospolosco@...152...> Il venerd? 14 novembre 2008 20:34:46 moon_walker ha scritto: > Hi Stefano, > > thanks, > but what means SVN version? :-) > > thx > Attila > From nkoch22 at ...626... Sat Nov 15 19:15:27 2008 From: nkoch22 at ...626... (Nicolas Koch) Date: Sat, 15 Nov 2008 21:15:27 +0300 Subject: [Gambas-user] ColumnView and exec or shell to button Message-ID: <73abb3e80811151015u7a8a3a76y2d656e8bbeba2563@...627...> I can't figure out how to have each item in the ColumnView1 have a command and then run from a single button_click() Can someone help me out here? Each row or key will have there own shell command that needs to be run. Thanks in advance From nkoch22 at ...626... Sat Nov 15 20:34:48 2008 From: nkoch22 at ...626... (Nicolas Koch) Date: Sat, 15 Nov 2008 22:34:48 +0300 Subject: [Gambas-user] ColumnView and exec or shell to button In-Reply-To: <73abb3e80811151015u7a8a3a76y2d656e8bbeba2563@...627...> References: <73abb3e80811151015u7a8a3a76y2d656e8bbeba2563@...627...> Message-ID: <73abb3e80811151134pe92af1co19d2d24e6961bf9a@...627...> For the button_click() I have the following PUBLIC SUB button_Click() IF ColumnView1.Item.Selected = NULL THEN RETURN message("error") ELSE makeOperations() ENDIF END I still don't understand how to add a command to the a row or item I have listed On Sat, Nov 15, 2008 at 9:15 PM, Nicolas Koch wrote: > I can't figure out how to have each item in the ColumnView1 have a > command and then run from a single button_click() Can someone help > me out here? Each row or key will have there own shell command that > needs to be run. > > Thanks in advance > From doriano.blengino at ...1909... Sat Nov 15 20:59:48 2008 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Sat, 15 Nov 2008 20:59:48 +0100 Subject: [Gambas-user] ColumnView and exec or shell to button In-Reply-To: <73abb3e80811151134pe92af1co19d2d24e6961bf9a@...627...> References: <73abb3e80811151015u7a8a3a76y2d656e8bbeba2563@...627...> <73abb3e80811151134pe92af1co19d2d24e6961bf9a@...627...> Message-ID: <491F2A34.2050602@...1909...> Nicolas Koch ha scritto: > For the button_click() I have the following > > PUBLIC SUB button_Click() > > IF ColumnView1.Item.Selected = NULL THEN RETURN > message("error") > ELSE > makeOperations() > ENDIF > > END > > I still don't understand how to add a command to the a row or item I have listed > Not sure, but... makeOperations(ColumnView1.Current.text) will pass to makeOperations() a string -- the text of the item. You can also display a value and use another value (key <-> text). Could this work? Read carefully the documentation about Columnview. -- Doriano Blengino "Listen twice before you speak. This is why we have two ears, but only one mouth." From arosa at ...2015... Sat Nov 15 20:45:31 2008 From: arosa at ...2015... (Toni) Date: Sat, 15 Nov 2008 19:45:31 +0000 Subject: [Gambas-user] Dynamic menu click event Message-ID: <491F26DB.9080403@...2015...> Hi, I am new to Gambas and I don't know how to solve a problem regarding setting events for new objects. I am creating a dynamic menu, but I don't know how to assign an event handler to it. Here 2 examples of what I've tried without succes: Not working 1: [...] DIM mnu AS Menu mnu = NEW Menu(PopUPTray) mnu.Name = "a" PUBLIC SUB a_Click() Message("You clicked on 'a'") END Not Working 2: (I Don't really know what's "Action" for, but it seemed promising :) ) DIM mnu AS Menu mnu = NEW Menu(PopUPTray) mnu.Name = "a" mnu.Action = "a_Click" [....] PUBLIC SUB a_Click() Message("You clicked on 'a'") END And another question, if I want to publish my application once finished, is there a place gambas-specific, other than gambasforge (that seems to abandoned and registration doesn't work anymore) ? Thanks! Regards, Toni Rosa From nkoch22 at ...626... Sat Nov 15 21:24:39 2008 From: nkoch22 at ...626... (Nicolas Koch) Date: Sat, 15 Nov 2008 23:24:39 +0300 Subject: [Gambas-user] ColumnView and exec or shell to button In-Reply-To: <491F2A34.2050602@...1909...> References: <73abb3e80811151015u7a8a3a76y2d656e8bbeba2563@...627...> <73abb3e80811151134pe92af1co19d2d24e6961bf9a@...627...> <491F2A34.2050602@...1909...> Message-ID: <73abb3e80811151224r27473025k56c0b552f14a9a1c@...627...> well this is what I got so far Just to clarify Software = CloumnView1 ' Gambas class file PUBLIC SUB Form_Open() ME.Text = "wrtest" END 'ColumnView PUBLIC SUB _new() DIM iwidth AS Integer DIM irowcounter AS Integer DIM icolcounter AS Integer 'Software Software.Columns.Count = 2 iwidth = Software.Width / Software.Columns.Count Software.Columns[0].Width = 200 Software.Columns[0].Text = " Name" Software.Columns[1].Width = 400 Software.Columns[1].Text = " Description" ' Software List Software.Clear() Software.Add("key1", "wrtest") Software.Add("key1-1", "test1", NULL, "key1") Software.Add("key1-2", "test2", NULL, "key1") END 'Install Software PUBLIC SUB Install_Click() IF Software.Current = NULL THEN RETURN END Where would I add the command for each row in the column? Is this correct so far? Nick On Sat, Nov 15, 2008 at 10:59 PM, Doriano Blengino wrote: > Nicolas Koch ha scritto: >> For the button_click() I have the following >> >> PUBLIC SUB button_Click() >> >> IF ColumnView1.Item.Selected = NULL THEN RETURN >> message("error") >> ELSE >> makeOperations() >> ENDIF >> >> END >> >> I still don't understand how to add a command to the a row or item I have listed >> > Not sure, but... > makeOperations(ColumnView1.Current.text) > > will pass to makeOperations() a string -- the text of the item. You can > also display a value and use another value (key <-> text). > > Could this work? > > Read carefully the documentation about Columnview. > > > -- > Doriano Blengino > > "Listen twice before you speak. > This is why we have two ears, but only one mouth." > > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From doriano.blengino at ...1909... Sat Nov 15 21:40:43 2008 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Sat, 15 Nov 2008 21:40:43 +0100 Subject: [Gambas-user] Dynamic menu click event In-Reply-To: <491F26DB.9080403@...2015...> References: <491F26DB.9080403@...2015...> Message-ID: <491F33CB.1050808@...1909...> Toni ha scritto: > Hi, > > I am new to Gambas and I don't know how to solve a problem regarding > setting events for new objects. > I am creating a dynamic menu, but I don't know how to assign an event > handler to it. > Here 2 examples of what I've tried without succes: > > Not working 1: > [...] > DIM mnu AS Menu > mnu = NEW Menu(PopUPTray) > mnu.Name = "a" > > PUBLIC SUB a_Click() > Message("You clicked on 'a'") > END > Correct is: mnu = new menu(blablah) AS "menua" public sub menua_click() .... end The only situation where the event handler name has something to do with object name is when you use the GUI designer: if you put a Button1 on the form, the event handler name will be Button1_click(). In all the other cases (ie, when instantiating from code), you must use the AS "xxx" syntax. Regards, -- Doriano Blengino "Listen twice before you speak. This is why we have two ears, but only one mouth." From arosa at ...2015... Sat Nov 15 22:15:16 2008 From: arosa at ...2015... (Toni) Date: Sat, 15 Nov 2008 21:15:16 +0000 Subject: [Gambas-user] Dynamic menu click event In-Reply-To: <491F33CB.1050808@...1909...> References: <491F26DB.9080403@...2015...> <491F33CB.1050808@...1909...> Message-ID: <491F3BE4.70801@...2015...> Hi Doriano, thanks for your answer! I have a related doubt... If I instantiate some Menu objects from code and I assign them all to the same "handling function", is there a way, inside this function, to know which Menu object was the one that fired the event? Regards, Toni Rosa En/na Doriano Blengino ha escrit: > Toni ha scritto: > >> Hi, >> >> I am new to Gambas and I don't know how to solve a problem regarding >> setting events for new objects. >> I am creating a dynamic menu, but I don't know how to assign an event >> handler to it. >> Here 2 examples of what I've tried without succes: >> >> Not working 1: >> [...] >> DIM mnu AS Menu >> mnu = NEW Menu(PopUPTray) >> mnu.Name = "a" >> >> PUBLIC SUB a_Click() >> Message("You clicked on 'a'") >> END >> >> > Correct is: > > mnu = new menu(blablah) AS "menua" > > public sub menua_click() > .... > end > > > The only situation where the event handler name has something to do with > object name is when you use the GUI designer: if you put a Button1 on > the form, the event handler name will be Button1_click(). In all the > other cases (ie, when instantiating from code), you must use the AS > "xxx" syntax. > > Regards, > > From doriano.blengino at ...1909... Sat Nov 15 22:42:48 2008 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Sat, 15 Nov 2008 22:42:48 +0100 Subject: [Gambas-user] ColumnView and exec or shell to button In-Reply-To: <73abb3e80811151224r27473025k56c0b552f14a9a1c@...627...> References: <73abb3e80811151015u7a8a3a76y2d656e8bbeba2563@...627...> <73abb3e80811151134pe92af1co19d2d24e6961bf9a@...627...> <491F2A34.2050602@...1909...> <73abb3e80811151224r27473025k56c0b552f14a9a1c@...627...> Message-ID: <491F4258.6030703@...1909...> Nicolas Koch ha scritto: > well this is what I got so far > > Just to clarify Software = CloumnView1 > > ' Gambas class file > > > ' Software List > Software.Clear() > Software.Add("key1", "wrtest") > Software.Add("key1-1", "test1", NULL, "key1") > Software.Add("key1-2", "test2", NULL, "key1") > > END > > 'Install Software > > PUBLIC SUB Install_Click() > > IF Software.Current = NULL THEN RETURN > > END > > > Where would I add the command for each row in the column? Is this > correct so far? > As far I can see, there is nothing wrong. But: what are "wrtest", "test1" and so on? If they are command names, ie executables, then you are showing them through the Software Columnview. Install_Click() could do: IF Software.Current = NULL THEN RETURN SHELL Software.Current.text this would execute "wrtest", "test1", "test2", depending on what is the current item of Software. Regards, -- Doriano Blengino "Listen twice before you speak. This is why we have two ears, but only one mouth." From jjmoncar at ...626... Sun Nov 16 04:05:20 2008 From: jjmoncar at ...626... (jjmoncar) Date: Sun, 16 Nov 2008 22:35:20 +1930 Subject: [Gambas-user] celdas de listview Message-ID: <7522e790811151905pe053411jbb836a2858f7e37f@...627...> buenas noches. estoy tratando de hacer una aplicacion con el listview de manera que cuando se haga click en una celda esta cambie de color. el siguiente codigo lo hace, pero me cambia el color de ambas celdas. espero me puedan ayudar. PUBLIC SUB Form_Open() TableView1.Columns.Count = 4 TableView1.Rows.Count = 4 TableView1.Columns[0].Width = 32 TableView1.Columns[1].Width = 136 TableView1.Columns[2].Width = 236 TableView1[0, 2].BackColor = &00C000& END PUBLIC SUB TableView1_Click() 'aqui se supone que si hago clic en la celda [0,2] le debe cambiar el color IF TableView1[0, 2] THEN TableView1[0, 2].BackColor = &0000FF& ENDIF IF TableView1[0, 2] THEN TableView1[0, 1].BackColor = &FFFF00& ENDIF END -- ??? From nkoch22 at ...626... Sun Nov 16 04:29:13 2008 From: nkoch22 at ...626... (Nicolas Koch) Date: Sun, 16 Nov 2008 06:29:13 +0300 Subject: [Gambas-user] ColumnView and exec or shell to button In-Reply-To: <491F4258.6030703@...1909...> References: <73abb3e80811151015u7a8a3a76y2d656e8bbeba2563@...627...> <73abb3e80811151134pe92af1co19d2d24e6961bf9a@...627...> <491F2A34.2050602@...1909...> <73abb3e80811151224r27473025k56c0b552f14a9a1c@...627...> <491F4258.6030703@...1909...> Message-ID: <73abb3e80811151929o4e2952a2yc0f4cf4062c3c1e8@...627...> Doriano, Thanks for the help I actually came up with something similar before I got your email. This is what I used. Thanks again for the help. PUBLIC SUB Install_Click() DIM thisKey AS String DIM data AS String IF Software.Current = NULL THEN RETURN data = Software.Current.Text SHELL "~/.wrtest" &/ data END Regards, Nick On Sun, Nov 16, 2008 at 12:42 AM, Doriano Blengino wrote: > Nicolas Koch ha scritto: >> well this is what I got so far >> >> Just to clarify Software = CloumnView1 >> >> ' Gambas class file >> >> >> ' Software List >> Software.Clear() >> Software.Add("key1", "wrtest") >> Software.Add("key1-1", "test1", NULL, "key1") >> Software.Add("key1-2", "test2", NULL, "key1") >> >> END >> >> 'Install Software >> >> PUBLIC SUB Install_Click() >> >> IF Software.Current = NULL THEN RETURN >> >> END >> >> >> Where would I add the command for each row in the column? Is this >> correct so far? >> > As far I can see, there is nothing wrong. But: what are "wrtest", > "test1" and so on? If they are command names, ie executables, then you > are showing them through the Software Columnview. Install_Click() could do: > > IF Software.Current = NULL THEN RETURN > SHELL Software.Current.text > > this would execute "wrtest", "test1", "test2", depending on what is the current item of Software. > > Regards, > > -- > Doriano Blengino > > "Listen twice before you speak. > This is why we have two ears, but only one mouth." > > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From doriano.blengino at ...1909... Sun Nov 16 09:32:32 2008 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Sun, 16 Nov 2008 09:32:32 +0100 Subject: [Gambas-user] Dynamic menu click event In-Reply-To: <491F3BE4.70801@...2015...> References: <491F26DB.9080403@...2015...> <491F33CB.1050808@...1909...> <491F3BE4.70801@...2015...> Message-ID: <491FDAA0.7070200@...1909...> Toni ha scritto: > Hi Doriano, thanks for your answer! > I have a related doubt... > If I instantiate some Menu objects from code and I assign them all to > the same "handling function", is there a way, inside this function, to > know which Menu object was the one that fired the event? > The LAST variable is a reference to the current object (inside a event handler). For example: public sub buttons_click() print LAST.text end will print the caption of the button which raised "click". Salutations, -- Doriano Blengino "Listen twice before you speak. This is why we have two ears, but only one mouth." From doriano.blengino at ...1909... Sun Nov 16 09:45:12 2008 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Sun, 16 Nov 2008 09:45:12 +0100 Subject: [Gambas-user] celdas de listview In-Reply-To: <7522e790811151905pe053411jbb836a2858f7e37f@...627...> References: <7522e790811151905pe053411jbb836a2858f7e37f@...627...> Message-ID: <491FDD98.6090307@...1909...> jjmoncar ha scritto: > buenas noches. > > estoy tratando de hacer una aplicacion con el listview de manera que cuando > se haga click en una celda esta cambie de color. el siguiente codigo lo > hace, pero me cambia el color de ambas celdas. espero me puedan ayudar. > Uhm, I think you should write in English to this list... The following code is strange: > PUBLIC SUB TableView1_Click() > 'aqui se supone que si hago clic en la celda [0,2] le debe cambiar el color > IF TableView1[0, 2] THEN > TableView1[0, 2].BackColor = &0000FF& > ENDIF > IF TableView1[0, 2] THEN > TableView1[0, 1].BackColor = &FFFF00& > ENDIF > > First, you have a test in "Tableview1[0,2]". This expression returns an object, so it is almost always true. Then, you do two identical tests, so one of them should be enough. I would write: PUBLIC SUB TableView1_Click() IF TableView1[LAST.Row, Last.Column].BackColor=&hFF THEN TableView1[LAST.Row, Last.Column].BackColor = &hFFFF00 else TableView1[LAST.Row, Last.Column].BackColor = &hFF ENDIF END This code alternates between two colors. Regards, -- Doriano Blengino "Listen twice before you speak. This is why we have two ears, but only one mouth." From almodook at ...2007... Sun Nov 16 11:06:57 2008 From: almodook at ...2007... (moon_walker) Date: Sun, 16 Nov 2008 02:06:57 -0800 (PST) Subject: [Gambas-user] New Error message with 2.9 In-Reply-To: <200811151025.26812.rospolosco@...152...> References: <20488836.post@...1379...> <200811142024.34106.rospolosco@...152...> <20507030.post@...1379...> <200811151025.26812.rospolosco@...152...> Message-ID: <20523865.post@...1379...> Thanks Stephano! br Attila Stefano Palmeri wrote: > > Il venerd? 14 novembre 2008 20:34:46 moon_walker ha scritto: >> Hi Stefano, >> >> thanks, >> but what means SVN version? :-) >> >> thx >> Attila >> > > From Gambas site download page: > > ------------------------------------------------------------------------------------------------- > > To get a snapshot of the 2.x development version, do: > > $ mkdir 2.0 > $ svn checkout > https://gambas.svn.sourceforge.net/svnroot/gambas/gambas/branches/2.0 > $ cd 2.0 > $ ./reconf-all > > Do not forget to install automake and autoconf, otherwise the ./reconf-all > script will not work. > > -------------------------------------------------------------------------------------------------- > > The svn version is the current version Benoit is working on. It adds fixes > or changes day by day and then it will become probably 2.9.1. > > After ./reconf-all, then you have to run ./configure, make and make > install. > If you want to use this version, uninstall previous Gambas. > > Bye, > > Stefano > >> Stefano Palmeri wrote: >> > Il gioved? 13 novembre 2008 21:22:09 moon_walker ha scritto: >> > >> > I had the same problem on slackware. Benoit fixed it in svn version. >> > >> > Bye, >> > >> > Stefano >> > >> > >> ------------------------------------------------------------------------- >> > This SF.Net email is sponsored by the Moblin Your Move Developer's >> > challenge >> > Build the coolest Linux based applications with Moblin SDK & win great >> > prizes >> > Grand prize is a trip for two to an Open Source event anywhere in the >> > world >> > http://moblin-contest.org/redirect.php?banner_id=100&url=/ >> > _______________________________________________ >> > Gambas-user mailing list >> > Gambas-user at lists.sourceforge.net >> > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge > Build the coolest Linux based applications with Moblin SDK & win great > prizes > Grand prize is a trip for two to an Open Source event anywhere in the > world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > -- View this message in context: http://www.nabble.com/New-Error-message-with-2.9-tp20488836p20523865.html Sent from the gambas-user mailing list archive at Nabble.com. From jshackney at ...626... Sun Nov 16 19:39:40 2008 From: jshackney at ...626... (Jason Hackney) Date: Sun, 16 Nov 2008 13:39:40 -0500 Subject: [Gambas-user] Base Conversion Message-ID: <799be1690811161039t55ffb502j8c18bc8257dfb77b@...627...> A cursory look through the docs didn't turn up anything... Is there a function to convert base, say base 10 to base 36? Or base 16 to base 36. I want to get to base 36 from either base10 or base16. It shouldn't be too difficult to hack something together, but was wondering if I'm overlooking something that's already there. Thanks! From nkoch22 at ...626... Sun Nov 16 20:34:38 2008 From: nkoch22 at ...626... (Nicolas Koch) Date: Sun, 16 Nov 2008 22:34:38 +0300 Subject: [Gambas-user] columnview and combobox list as directories "ls" Message-ID: <73abb3e80811161134s365ba0bai8f567a9cb67dbf3c@...627...> Hey everyone, I have been looking for an example, but have been unable to find the following: 1st thing I need a combobox1 to have a list that gets its items from a directory listing "ls" 2nd thing is a ColumnView1 that has 3 columns Directory, Size and Location and also Refresh() ColumnView1.Columns.Count = 3 iwidth = ColumnView1.Width / ColumnView1.Columns.Count ColumnView1.Columns[0].Width = 100 ColumnView1.Columns[0].Text = " Directory" ColumnView1.Columns[1].Width = 100 ColumnView1.Columns[1].Text = " Cellar Size" ColumnView1.Columns[2].Width = 300 ColumnView1.Columns[2].Text = " Location" Hope someone can go out of there way to help me out here. Maybe someone has done something similar before? Thanks in advance, Nick From pvera at ...729... Sun Nov 16 20:27:00 2008 From: pvera at ...729... (Pablo Vera) Date: Sun, 16 Nov 2008 13:27:00 -0600 Subject: [Gambas-user] Base Conversion In-Reply-To: <799be1690811161039t55ffb502j8c18bc8257dfb77b@...627...> References: <799be1690811161039t55ffb502j8c18bc8257dfb77b@...627...> Message-ID: <49207404.3080403@...729...> Here is a VB6 code to convert to and from base36, it should work almost the same in Gambas: ' Support functions ' Get a base36 digit Private Function D36(ByVal N As Integer) As String D36 = Chr$(N + IIf(N <= 9, 48, 55)) End Function ' base36 Logarithm Private Function Log36(ByVal X As Double) As Double Log36 = Log(X) / Log(36#) End Function ' Convert a base10 number (Num10) to base36 with a maximum of RNum digits ' Public Function ToBase36(ByVal Num10 As Long, ByVal RNum As Integer) As String Dim Num36 As String, Base As Long, Mult As Integer, E As Integer Num36 = String$(RNum, "0") If Num10 > 0 Then E = Int(Log36(Num10)) Do Base = 36 ^ E Mult = Int(Num10 / Base) Mid$(Num36, RNum - E, 1) = D36(Mult) Num10 = Num10 - Mult * Base E = E - 1 Loop Until E < 0 End If ToBase36 = Num36 End Function ' Convert a base36 number (Num36) back to base10 ' Public Function ToBase10(ByVal Num36 As String) As Long Dim Num10 As Long, I As Integer, D As Long, C As String, E As Integer Num10 = 0 E = Len(Num36) For I = E To 1 Step -1 C = UCase$(MID$(Num36, I, 1)) If C >= "A" And C <= "Z" Then D = ASc(C) - 55 ElseIf C >= "0" And C <= "9" Then D = ASc(C) - 48 Else D = 0 End If Num10 = Num10 + D * (36 ^ (E - I)) Next I ToBase10 = Num10 End Function Pablo _____________________________________________________________________ Jason Hackney wrote: > A cursory look through the docs didn't turn up anything... Is there a > function to convert base, say base 10 to base 36? Or base 16 to base 36. I > want to get to base 36 from either base10 or base16. > > It shouldn't be too difficult to hack something together, but was wondering > if I'm overlooking something that's already there. > > Thanks! > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > From jshackney at ...626... Sun Nov 16 21:50:07 2008 From: jshackney at ...626... (Jason Hackney) Date: Sun, 16 Nov 2008 15:50:07 -0500 Subject: [Gambas-user] Base Conversion In-Reply-To: <49207404.3080403@...729...> References: <799be1690811161039t55ffb502j8c18bc8257dfb77b@...627...> <49207404.3080403@...729...> Message-ID: <799be1690811161250t30f8db0co975e53be7b009b37@...627...> Thanks. There was a python snippet I found on wikipedia earlier. Maybe I'll knock something together in the next few days when I get a little more free time. On Sun, Nov 16, 2008 at 2:27 PM, Pablo Vera wrote: > Here is a VB6 code to convert to and from base36, it should work almost > the same in Gambas: > > > ' Support functions > > ' Get a base36 digit > Private Function D36(ByVal N As Integer) As String > D36 = Chr$(N + IIf(N <= 9, 48, 55)) > End Function > > ' base36 Logarithm > Private Function Log36(ByVal X As Double) As Double > Log36 = Log(X) / Log(36#) > End Function > > > ' Convert a base10 number (Num10) to base36 with a maximum of RNum digits > ' > Public Function ToBase36(ByVal Num10 As Long, ByVal RNum As Integer) As > String > Dim Num36 As String, Base As Long, Mult As Integer, E As Integer > Num36 = String$(RNum, "0") > > If Num10 > 0 Then > E = Int(Log36(Num10)) > > Do > Base = 36 ^ E > Mult = Int(Num10 / Base) > Mid$(Num36, RNum - E, 1) = D36(Mult) > > Num10 = Num10 - Mult * Base > E = E - 1 > Loop Until E < 0 > End If > > ToBase36 = Num36 > End Function > > > ' Convert a base36 number (Num36) back to base10 > ' > Public Function ToBase10(ByVal Num36 As String) As Long > Dim Num10 As Long, I As Integer, D As Long, C As String, E As Integer > Num10 = 0 > > E = Len(Num36) > For I = E To 1 Step -1 > C = UCase$(MID$(Num36, I, 1)) > If C >= "A" And C <= "Z" Then > D = ASc(C) - 55 > ElseIf C >= "0" And C <= "9" Then > D = ASc(C) - 48 > Else > D = 0 > End If > Num10 = Num10 + D * (36 ^ (E - I)) > Next I > > ToBase10 = Num10 > End Function > > Pablo > _____________________________________________________________________ > > > > Jason Hackney wrote: > > A cursory look through the docs didn't turn up anything... Is there a > > function to convert base, say base 10 to base 36? Or base 16 to base 36. > I > > want to get to base 36 from either base10 or base16. > > > > It shouldn't be too difficult to hack something together, but was > wondering > > if I'm overlooking something that's already there. > > > > Thanks! > > ------------------------------------------------------------------------- > > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge > > Build the coolest Linux based applications with Moblin SDK & win great > prizes > > Grand prize is a trip for two to an Open Source event anywhere in the > world > > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge > Build the coolest Linux based applications with Moblin SDK & win great > prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From smiefert at ...784... Mon Nov 17 10:53:46 2008 From: smiefert at ...784... (Stefan Miefert) Date: Mon, 17 Nov 2008 10:53:46 +0100 Subject: [Gambas-user] Collection initialize Message-ID: <8D42310D957CFB46AA11921A711D4D160216DD86F5@...1899...> Hello, how can i do something like this Public mycollection as new collection = [field1 = "test",field2="test2"] ? From sbungay at ...981... Mon Nov 17 20:45:33 2008 From: sbungay at ...981... (Stephen Bungay) Date: Mon, 17 Nov 2008 14:45:33 -0500 Subject: [Gambas-user] Collection initialize In-Reply-To: <8D42310D957CFB46AA11921A711D4D160216DD86F5@...1899...> References: <8D42310D957CFB46AA11921A711D4D160216DD86F5@...1899...> Message-ID: <4921C9DD.9060802@...981...> Collections don't work that way. What you do is create a class for the field items, add the values to the class, then add the instance of the class to the collection. ' Gambas Class File ' This class is going to be added to a collection Public Field1 AS String Public Field2 AS String Public Field3 AS String Public Field4 AS String 'Gambas Class File ' This is another class file... perhaps your form.. ' ClassMyRecord is a gambas class that has the record structure in it. DIM MyRecord AS ClassMyRecord DIM X AS Integer X = 1 ' This is the index into the collection. ' if iterating through a recordset and adding it ' to a collection a FOR loop would be used. For this ' one-off example I'm setting it to 1, just so it works. MyRecord = NEW ClassMyRecord WITH MyRecord .Field1 = "This" .Field2 = "is" .Field3 = "a" .Field4 = "test." END WITH MyClass.add(MyRecord,X) MyRecord = NULL Stefan Miefert wrote: > Hello, > > how can i do something like this > > Public mycollection as new collection = [field1 = "test",field2="test2"] > > > ? > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From rterry at ...1946... Tue Nov 18 00:59:36 2008 From: rterry at ...1946... (richard terry) Date: Tue, 18 Nov 2008 10:59:36 +1100 Subject: [Gambas-user] Signal 11 with wrong syntax 1703 Message-ID: <200811181059.36359.rterry@...1946...> I put in this typo not remembering the item key was a string -> signall 11 crash. Str(lvwLabRequests.Item.key + 1) Regards Richard From arosa at ...2015... Tue Nov 18 14:32:17 2008 From: arosa at ...2015... (Toni) Date: Tue, 18 Nov 2008 13:32:17 +0000 Subject: [Gambas-user] Install package dependencies Message-ID: <4922C3E1.709@...2015...> Hi everybody, I'm new to Gambas and I'm not sure if my question is valid or simply erroneous due to my lack of knowledge about Gambas, but in any case, the problem is that I've just finished a new application, and I wanted to distribute it as a .deb package. After creating the package, when I try to install it into a new machine, it complains about a "gambas2-runtime" dependency. I guess I could download and install this package in the new machine, but... Is there a way to distribute this "gambas2-runtime" (and maybe not just this, but all the application dependencies) within the same application package? If not, how it is "normally" solved? Thanks! Toni From almodook at ...2007... Tue Nov 18 17:14:23 2008 From: almodook at ...2007... (moon_walker) Date: Tue, 18 Nov 2008 08:14:23 -0800 (PST) Subject: [Gambas-user] New Error message with 2.9 In-Reply-To: <200811151025.26812.rospolosco@...152...> References: <20488836.post@...1379...> <200811142024.34106.rospolosco@...152...> <20507030.post@...1379...> <200811151025.26812.rospolosco@...152...> Message-ID: <20562726.post@...1379...> Thanks again. I tryed it as you described and worked it fine. The error disappeared also. So how do i uninstall the previous version if i want to keep this revision? Thx Attila Stefano Palmeri wrote: > > Il venerd? 14 novembre 2008 20:34:46 moon_walker ha scritto: >> Hi Stefano, >> >> thanks, >> but what means SVN version? :-) >> >> thx >> Attila >> > > From Gambas site download page: > > ------------------------------------------------------------------------------------------------- > > To get a snapshot of the 2.x development version, do: > > $ mkdir 2.0 > $ svn checkout > https://gambas.svn.sourceforge.net/svnroot/gambas/gambas/branches/2.0 > $ cd 2.0 > $ ./reconf-all > > Do not forget to install automake and autoconf, otherwise the ./reconf-all > script will not work. > > -------------------------------------------------------------------------------------------------- > > The svn version is the current version Benoit is working on. It adds fixes > or changes day by day and then it will become probably 2.9.1. > > After ./reconf-all, then you have to run ./configure, make and make > install. > If you want to use this version, uninstall previous Gambas. > > Bye, > > Stefano > >> > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge > Build the coolest Linux based applications with Moblin SDK & win great > prizes > Grand prize is a trip for two to an Open Source event anywhere in the > world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > -- View this message in context: http://www.nabble.com/New-Error-message-with-2.9-tp20488836p20562726.html Sent from the gambas-user mailing list archive at Nabble.com. From almodook at ...2007... Tue Nov 18 17:16:36 2008 From: almodook at ...2007... (moon_walker) Date: Tue, 18 Nov 2008 08:16:36 -0800 (PST) Subject: [Gambas-user] New Error message with 2.9 In-Reply-To: <200811151025.26812.rospolosco@...152...> References: <20488836.post@...1379...> <200811142024.34106.rospolosco@...152...> <20507030.post@...1379...> <200811151025.26812.rospolosco@...152...> Message-ID: <20562769.post@...1379...> Thanks again. I tryed it as you described and worked it fine. The error disappeared also. So how do i uninstall the previous version if i want to keep this revision? Thx Attila Stefano Palmeri wrote: > > Il venerd? 14 novembre 2008 20:34:46 moon_walker ha scritto: >> Hi Stefano, >> >> thanks, >> but what means SVN version? :-) >> >> thx >> Attila >> > > From Gambas site download page: > > ------------------------------------------------------------------------------------------------- > > To get a snapshot of the 2.x development version, do: > > $ mkdir 2.0 > $ svn checkout > https://gambas.svn.sourceforge.net/svnroot/gambas/gambas/branches/2.0 > $ cd 2.0 > $ ./reconf-all > > Do not forget to install automake and autoconf, otherwise the ./reconf-all > script will not work. > > -------------------------------------------------------------------------------------------------- > > The svn version is the current version Benoit is working on. It adds fixes > or changes day by day and then it will become probably 2.9.1. > > After ./reconf-all, then you have to run ./configure, make and make > install. > If you want to use this version, uninstall previous Gambas. > > Bye, > > Stefano > >> > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge > Build the coolest Linux based applications with Moblin SDK & win great > prizes > Grand prize is a trip for two to an Open Source event anywhere in the > world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > -- View this message in context: http://www.nabble.com/New-Error-message-with-2.9-tp20488836p20562769.html Sent from the gambas-user mailing list archive at Nabble.com. From rospolosco at ...152... Tue Nov 18 17:47:57 2008 From: rospolosco at ...152... (Stefano Palmeri) Date: Tue, 18 Nov 2008 17:47:57 +0100 Subject: [Gambas-user] New Error message with 2.9 In-Reply-To: <20562769.post@...1379...> References: <20488836.post@...1379...> <200811151025.26812.rospolosco@...152...> <20562769.post@...1379...> Message-ID: <200811181747.57723.rospolosco@...152...> Il marted? 18 novembre 2008 17:16:36 moon_walker ha scritto: > Thanks again. > I tryed it as you described and worked it fine. > The error disappeared also. > > So how do i uninstall the previous version if i want to keep this revision? > > Thx > Attila > > Stefano Palmeri wrote: > > Il venerd? 14 novembre 2008 20:34:46 moon_walker ha scritto: > >> Hi Stefano, > >> > >> thanks, > >> but what means SVN version? :-) > >> > >> thx > >> Attila > > > > From Gambas site download page: > > > > ------------------------------------------------------------------------- > >------------------------ > > > > To get a snapshot of the 2.x development version, do: > > > > $ mkdir 2.0 > > $ svn checkout > > https://gambas.svn.sourceforge.net/svnroot/gambas/gambas/branches/2.0 > > $ cd 2.0 > > $ ./reconf-all > > > > Do not forget to install automake and autoconf, otherwise the > > ./reconf-all script will not work. > > > > ------------------------------------------------------------------------- > >------------------------- > > > > The svn version is the current version Benoit is working on. It adds > > fixes or changes day by day and then it will become probably 2.9.1. > > > > After ./reconf-all, then you have to run ./configure, make and make > > install. > > If you want to use this version, uninstall previous Gambas. > > > > Bye, > > > > Stefano > > > >> > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > ------------------------------------------------------------------------- > > This SF.Net email is sponsored by the Moblin Your Move Developer's > > challenge > > Build the coolest Linux based applications with Moblin SDK & win great > > prizes > > Grand prize is a trip for two to an Open Source event anywhere in the > > world > > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user ohi, ohi... You should have unistalled the previous before installing the revision version. Anyway, no problem. If you compiled 2.9 from source package, just go in the source directory where you compiled it and run as root: make uninstall then go in the revision directory and run again make install If installed 2.9 with an RPM package uninstall it with your package manager, and then go in the revision directory and run again: make install That's all. The svn version installs in the same location of the stable version, so you probably overwrote same files. Bye, Stefano From almodook at ...2007... Wed Nov 19 11:37:30 2008 From: almodook at ...2007... (moon_walker) Date: Wed, 19 Nov 2008 02:37:30 -0800 (PST) Subject: [Gambas-user] New Error message with 2.9 In-Reply-To: <200811181747.57723.rospolosco@...152...> References: <20488836.post@...1379...> <200811142024.34106.rospolosco@...152...> <20507030.post@...1379...> <200811151025.26812.rospolosco@...152...> <20562769.post@...1379...> <200811181747.57723.rospolosco@...152...> Message-ID: <20577192.post@...1379...> Stefano Palmeri wrote: > > Il marted? 18 novembre 2008 17:16:36 moon_walker ha scritto: > ps://lists.sourceforge.net/lists/listinfo/gambas-user > > ohi, ohi... You should have unistalled the previous before installing > the revision version. Anyway, no problem. > > If you compiled 2.9 from source package, just go in the source directory > where you compiled it and run as root: > > make uninstall > > then go in the revision directory and run again > > make install > > If installed 2.9 with an RPM package uninstall it with > your package manager, and then go in the revision directory > and run again: > > make install > > That's all. The svn version installs in the same location > of the stable version, so you probably overwrote same files. > > Bye, > > Stefano > > hm :-) oops. i installed the original version with RPM manager (YAST). So i should remove the gambas2 from yast then. Garzie. -- View this message in context: http://www.nabble.com/New-Error-message-with-2.9-tp20488836p20577192.html Sent from the gambas-user mailing list archive at Nabble.com. From demosthenesk at ...626... Thu Nov 20 13:12:13 2008 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Thu, 20 Nov 2008 14:12:13 +0200 Subject: [Gambas-user] Install package dependencies In-Reply-To: <4922C3E1.709@...2015...> References: <4922C3E1.709@...2015...> Message-ID: i dont know to tell you how to make a .dep package but this page may help you for gambas2-runtime http://gambasdoc.org/help/howto/package On Tue, Nov 18, 2008 at 3:32 PM, Toni wrote: > Hi everybody, > > I'm new to Gambas and I'm not sure if my question is valid or simply > erroneous due to my lack of knowledge about Gambas, but in any case, the > problem is that I've just finished a new application, and I wanted to > distribute it as a .deb package. After creating the package, when I try > to install it into a new machine, it complains about a "gambas2-runtime" > dependency. > > I guess I could download and install this package in the new machine, > but... Is there a way to distribute this "gambas2-runtime" (and maybe > not just this, but all the application dependencies) within the same > application package? If not, how it is "normally" solved? > > Thanks! > Toni > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge > Build the coolest Linux based applications with Moblin SDK & win great > prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > 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... Thu Nov 20 13:29:24 2008 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Thu, 20 Nov 2008 14:29:24 +0200 Subject: [Gambas-user] lblHelp issue Message-ID: Hi to all of you my friends, I want to report an issue about gambas2 project. In IDE environment the lblHelp does not show all its text when i click a property with long text. Is that true or is my misuse? -- ???? ???? ?? ?????!!! Regards, Demosthenes Koptsis From demosthenesk at ...626... Thu Nov 20 13:31:59 2008 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Thu, 20 Nov 2008 14:31:59 +0200 Subject: [Gambas-user] Beginers questions In-Reply-To: <1226738236.4569.14.camel@...2014...> References: <491DAA10.2050706@...981...> <1226738236.4569.14.camel@...2014...> Message-ID: For now i write small apps and i will use Werner method. Thanks a lot for your respond! On Sat, Nov 15, 2008 at 10:37 AM, Tomas Eroles i Forner < tomas.eroles at ...277...> wrote: > Hi all! > > El dv 14 de 11 del 2008 a les 11:40 -0500, en/na Stephen Bungay va > escriure: > > Demosthenes Koptsis wrote: > > > Hi to all, > > > > > > i have two simple questions as a beginner, > > > > > > 1) how to have access to control values from different forms? > > > > > > > Set the controls in all forms to be public as Werner suggests, or use > > properties and strictly control what information gets exposed to the > > outside world. > > I don't like this method, because everything is public and in large > projects it can be a source of problems. > My advice is to include public methods in the form you want to use from > another. > > > > > > For example i have 2 forms, Form1 and Form2 > > > I want to write something like the next code, in Form2 > > > > > > ------- Form1 code ---------------- > > > TextArea1.Text="Hello world" > > > ----------------------------------------- > > > > > > ------- Form2 code ---------------- > > > Message.info(Form1.TextArea1.Text) > > > ----------------------------------------- > > > > > > but i cant. is there any way? > > On form1 put that: > > Public Sub SetTextArea1(myText as String) > me.TextArea1.Text = myText > End Sub > > Then, on form2, you can add these lines where you need: > > [....] > Form1.SetTextArea1("Hello world!!") > [....] > > Hope be useful > > > > > > > 2) how to add a separator line with menu editor in a menu. > > > > > > > > > I use gambas2-2.9.0 and openSuse10.2 > > > > > > Thanks my friends for your time > > > > > Can't help you with this one.. I know I've done this but it was so > > long ago now... I'g have to hunt down an example. > > > > In the menu editor, add a menu entry where you want, and clear the > caption > > > Regards > > > ------------------------------------------------------------------------- > > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge > > Build the coolest Linux based applications with Moblin SDK & win great > prizes > > Grand prize is a trip for two to an Open Source event anywhere in the > world > > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge > Build the coolest Linux based applications with Moblin SDK & win great > prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- ???? ???? ?? ?????!!! Regards, Demosthenes Koptsis From gambas at ...1938... Thu Nov 20 17:08:12 2008 From: gambas at ...1938... (gambas at ...1938...) Date: Thu, 20 Nov 2008 17:08:12 +0100 Subject: [Gambas-user] compiling a programm on the console Message-ID: <200811201708.12282.gambas@...1938...> Hi Dear List! When entering CTRL+ALT+m in the IDE, what does it do in background? gbc3 -vam and then a gba3 -v ??? Problem is: I've upgraded to latest svn and recompiled (in the IDE) my console-programm AND one of my modules (classes), which is used by the programm. ...and everything is fine. Because I did a gambas-upgrade on the test machine, too, now I need to recompile the same project and module on another machine without X (so I have no IDE). When triggering the two commands mentioned above (for compiling the programm and the module), I get no errors. But when starting the programm, I get: ERROR: #2: Cannot load class 'ModDummy': Version too old. Please recompile the project. Any hints? :-) TIA Stevie From gareth at ...1689... Thu Nov 20 18:19:19 2008 From: gareth at ...1689... (Gareth Bult) Date: Thu, 20 Nov 2008 17:19:19 +0000 (GMT) Subject: [Gambas-user] Building Gambas on Ubuntu 8.10 Message-ID: <32191799.125001227201559545.JavaMail.root@...1834...> Hi, It looks like the version of libtool now on Ubuntu 8.10 (V2.2) is incompatible with the version Gambas uses (1.5?) and as a result I can't build either the 2.x or 3.x svn trees. Anyone got a fix / way round this ? # make make all-recursive make[1]: Entering directory `/usr/src/gambas2/trunk' Making all in main make[2]: Entering directory `/usr/src/gambas2/trunk/main' make all-recursive make[3]: Entering directory `/usr/src/gambas2/trunk/main' Making all in libltdl make[4]: Entering directory `/usr/src/gambas2/trunk/main/libltdl' make all-am make[5]: Entering directory `/usr/src/gambas2/trunk/main/libltdl' /bin/bash ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -g -O2 -c -o ltdl.lo ltdl.c ./libtool: line 466: CDPATH: command not found ./libtool: line 1144: func_opt_split: command not found libtool: Version mismatch error. This is libtool 2.2.4 Debian-2.2.4-0ubuntu4, but the libtool: definition of this LT_INIT comes from an older release. libtool: You should recreate aclocal.m4 with macros from libtool 2.2.4 Debian-2.2.4-0ubuntu4 libtool: and run autoconf again. make[5]: *** [ltdl.lo] Error 63 make[5]: Leaving directory `/usr/src/gambas2/trunk/main/libltdl' make[4]: *** [all] Error 2 make[4]: Leaving directory `/usr/src/gambas2/trunk/main/libltdl' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/usr/src/gambas2/trunk/main' make[2]: *** [all] Error 2 make[2]: Leaving directory `/usr/src/gambas2/trunk/main' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/usr/src/gambas2/trunk' make: *** [all] Error 2 -- Managing Director, Encryptec Limited Tel: 0845 5082719, Mob: 0785 3305393 Email: gareth at ...1689... Statements made are at all times subject to Encryptec's Terms and Conditions of Business, which are available upon request. From gambas at ...1938... Thu Nov 20 19:09:46 2008 From: gambas at ...1938... (gambas at ...1938...) Date: Thu, 20 Nov 2008 19:09:46 +0100 Subject: [Gambas-user] compiling a programm on the console In-Reply-To: <200811201708.12282.gambas@...1938...> References: <200811201708.12282.gambas@...1938...> Message-ID: <200811201909.46908.gambas@...1938...> Hi List! Funny to answer his own question! :-)))) The trick is: - Open the module-project in the IDE of your developing machine. - Press CTRL+ALT+m (Don't know, if simply saving the project is sufficient.) - Copy the $ProjectName.module-file into the project directory on the target machine - gbc3 -av - gba3 -v Ready!!!! :-) @Benoit When opening an "old" project with a newer version of the Gambas IDE, are you doing any modifications on the source file? Simply recompiling the old (unmodified) sources with the new version of gbc3 was not successfull. Greetz Stevie Am Donnerstag, 20. November 2008 17:08:12 schrieb UNTRUSTED, sender is "gambas-user-bounces at lists.sourceforge.net": > Hi Dear List! > > When entering CTRL+ALT+m in the IDE, what does it do in background? > gbc3 -vam > > and then a > > gba3 -v > > ??? > Problem is: > I've upgraded to latest svn and recompiled (in the IDE) my console-programm > AND one of my modules (classes), which is used by the programm. ...and > everything is fine. > > Because I did a gambas-upgrade on the test machine, too, now I need to > recompile the same project and module on another machine without X (so I > have no IDE). When triggering the two commands mentioned above (for > compiling the programm and the module), I get no errors. But when starting > the programm, I get: > ERROR: #2: Cannot load class 'ModDummy': Version too old. Please recompile > the project. > > Any hints? :-) > > TIA > Stevie From doriano.blengino at ...1909... Thu Nov 20 21:07:39 2008 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Thu, 20 Nov 2008 21:07:39 +0100 Subject: [Gambas-user] compiling a programm on the console In-Reply-To: <200811201909.46908.gambas@...1938...> References: <200811201708.12282.gambas@...1938...> <200811201909.46908.gambas@...1938...> Message-ID: <4925C38B.3010007@...1909...> gambas at ...1938... ha scritto: > Hi List! > > Funny to answer his own question! :-)))) > The trick is: > - Open the module-project in the IDE of your developing machine. > - Press CTRL+ALT+m (Don't know, if simply saving the project is sufficient.) > - Copy the $ProjectName.module-file into the project directory on the target > machine > - gbc3 -av > - gba3 -v > > Ready!!!! :-) > > @Benoit > When opening an "old" project with a newer version of the Gambas IDE, are you > doing any modifications on the source file? > Simply recompiling the old (unmodified) sources with the new version of gbc3 > was not successfull. > I am not sure (only Benoit knows well enough) but consider: often compilers look at the date (modification time) of source-files and objects-files; if the object file exists and is no older than the source, they simply keep it. A "touch source-files" can fake the compiler into thinking the source has been modified, and a recompilation is needed. Perhaps there is a switch on the command line to obtain an unconditional build... Regards, -- Doriano Blengino "Listen twice before you speak. This is why we have two ears, but only one mouth." From gambas at ...1938... Thu Nov 20 21:40:17 2008 From: gambas at ...1938... (gambas at ...1938...) Date: Thu, 20 Nov 2008 21:40:17 +0100 Subject: [Gambas-user] compiling a programm on the console In-Reply-To: <4925C38B.3010007@...1909...> References: <200811201708.12282.gambas@...1938...> <200811201909.46908.gambas@...1938...> <4925C38B.3010007@...1909...> Message-ID: <200811202140.17171.gambas@...1938...> Hi Doriano! I've kept that in mind. :-) ...during my investigations I always moved the executable out of the project directory, so the compiler had to do it's job! It _seems_ to be like this: 1) Open the old source in the gambas IDE 2) Simply store it (there is no need to compile it) 3) move the old executable (just for safeness) 4) scp -r the whole project directory to the target machine 5) ssh to the target machine 6) gbc3 -va 7) gba3 -v ...and it works, like expected. I know this description differs a little bit from my last posting, but I came to it, after I send my mail to the list. Only performing steps 6 and 7 (with svn from today) on the "old" sources on the target machine, doesn't work. I fiddled hours and hours to get rid of this...and there are chances, that I made something (anything??? :-) ) wrong...but I have another "clean" machine, where I could verify this scenario. Greetz to Italy!! :-))) Stevie Am Donnerstag, 20. November 2008 21:07:39 schrieb Doriano Blengino: > gambas at ...1938... ha scritto: > > Hi List! > > > > Funny to answer his own question! :-)))) > > The trick is: > > - Open the module-project in the IDE of your developing machine. > > - Press CTRL+ALT+m (Don't know, if simply saving the project is > > sufficient.) - Copy the $ProjectName.module-file into the project > > directory on the target machine > > - gbc3 -av > > - gba3 -v > > > > Ready!!!! :-) > > > > @Benoit > > When opening an "old" project with a newer version of the Gambas IDE, are > > you doing any modifications on the source file? > > Simply recompiling the old (unmodified) sources with the new version of > > gbc3 was not successfull. > > I am not sure (only Benoit knows well enough) but consider: often > compilers look at the date (modification time) of source-files and > objects-files; if the object file exists and is no older than the > source, they simply keep it. A "touch source-files" can fake the > compiler into thinking the source has been modified, and a recompilation > is needed. Perhaps there is a switch on the command line to obtain an > unconditional build... > > Regards, From gambas at ...1... Thu Nov 20 22:31:38 2008 From: gambas at ...1... (Benoit Minisini) Date: Thu, 20 Nov 2008 22:31:38 +0100 Subject: [Gambas-user] lblHelp issue In-Reply-To: References: Message-ID: <200811202231.39008.gambas@...1...> On jeudi 20 novembre 2008, Demosthenes Koptsis wrote: > Hi to all of you my friends, > > I want to report an issue about gambas2 project. > > In IDE environment the lblHelp does not show all its text when i click a > property with long text. > > Is that true or is my misuse? Can you be more specific? Which property do you display? Can you provide a screenshot? -- Benoit Minisini From gambas at ...1... Thu Nov 20 22:36:05 2008 From: gambas at ...1... (Benoit Minisini) Date: Thu, 20 Nov 2008 22:36:05 +0100 Subject: [Gambas-user] Building Gambas on Ubuntu 8.10 In-Reply-To: <32191799.125001227201559545.JavaMail.root@...1834...> References: <32191799.125001227201559545.JavaMail.root@...1834...> Message-ID: <200811202236.05529.gambas@...1...> On jeudi 20 novembre 2008, Gareth Bult wrote: > Hi, > > It looks like the version of libtool now on Ubuntu 8.10 (V2.2) is > incompatible with the version Gambas uses (1.5?) and as a result I can't > build either the 2.x or 3.x svn trees. > > Anyone got a fix / way round this ? > I have no fix, because they are not compatible indeed. Ubuntu should provide both version of libtool. If I remember, you can install it by just taking the *.deb package from Debian. Maybe there is a way to compile a project made with libtool 1.5 with libtool 2.x, but at the moment I don't know. I think Gambas should not be the only project with that problem, and it is the first time I see libtool 2. If some Ubuntu 8.10 user had compiled another project with libtool 2, please tell us the result! Regards, -- Benoit Minisini From arosa at ...2015... Fri Nov 21 01:09:01 2008 From: arosa at ...2015... (Toni) Date: Fri, 21 Nov 2008 00:09:01 +0000 Subject: [Gambas-user] Building Gambas on Ubuntu 8.10 In-Reply-To: <32191799.125001227201559545.JavaMail.root@...1834...> References: <32191799.125001227201559545.JavaMail.root@...1834...> Message-ID: <4925FC1D.5010201@...2015...> Hi Gareth, I compiled Gambas on my Ubuntu 8.10 "downgrading" libtool to version 1.5 before compiling. I downloaded the libtool 1.5 package and then I did "sudo dpkg --force-downgrade -i libtool_1.5.26-1ubuntu1_amd64.deb" to install it (note the --force-downgrade) Cheers, Toni En/na Gareth Bult ha escrit: > Hi, > > It looks like the version of libtool now on Ubuntu 8.10 (V2.2) is incompatible with the version Gambas uses (1.5?) and as a result I can't build either the 2.x or 3.x svn trees. > > Anyone got a fix / way round this ? > > # make > make all-recursive > make[1]: Entering directory `/usr/src/gambas2/trunk' > Making all in main > make[2]: Entering directory `/usr/src/gambas2/trunk/main' > make all-recursive > make[3]: Entering directory `/usr/src/gambas2/trunk/main' > Making all in libltdl > make[4]: Entering directory `/usr/src/gambas2/trunk/main/libltdl' > make all-am > make[5]: Entering directory `/usr/src/gambas2/trunk/main/libltdl' > /bin/bash ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -g -O2 -c -o ltdl.lo ltdl.c > ./libtool: line 466: CDPATH: command not found > ./libtool: line 1144: func_opt_split: command not found > libtool: Version mismatch error. This is libtool 2.2.4 Debian-2.2.4-0ubuntu4, but the > libtool: definition of this LT_INIT comes from an older release. > libtool: You should recreate aclocal.m4 with macros from libtool 2.2.4 Debian-2.2.4-0ubuntu4 > libtool: and run autoconf again. > make[5]: *** [ltdl.lo] Error 63 > make[5]: Leaving directory `/usr/src/gambas2/trunk/main/libltdl' > make[4]: *** [all] Error 2 > make[4]: Leaving directory `/usr/src/gambas2/trunk/main/libltdl' > make[3]: *** [all-recursive] Error 1 > make[3]: Leaving directory `/usr/src/gambas2/trunk/main' > make[2]: *** [all] Error 2 > make[2]: Leaving directory `/usr/src/gambas2/trunk/main' > make[1]: *** [all-recursive] Error 1 > make[1]: Leaving directory `/usr/src/gambas2/trunk' > make: *** [all] Error 2 > > From pokerbirch at ...1601... Fri Nov 21 05:05:24 2008 From: pokerbirch at ...1601... (birchy) Date: Thu, 20 Nov 2008 20:05:24 -0800 (PST) Subject: [Gambas-user] Web Services: Working with WSDL In-Reply-To: <20373153.post@...1379...> References: <20328779.post@...1379...> <200811050005.15107.gambas@...1...> <20333544.post@...1379...> <200811050041.58640.gambas@...1...> <20334083.post@...1379...> <6324a42a0811060848w5d9dc5bcr65ff0bb26f071dd8@...627...> <20365634.post@...1379...> <20373153.post@...1379...> Message-ID: <20614928.post@...1379...> I've done some further research into adding SOAP capabilities to Gambas and have discovered the gSOAP open source library which is a C library. It is well documented, cross platform, and available in many Linux repositories, including Ubuntu and other Debian packages. What gSOAP does is, it takes a WSDL file (either a http or a local file) and generates a C/C++ header from it. It then compiles a set of C/C++ class files for use within a project AND a full set of request and response XML files, like the one i posted above. Now i'm quite new to Gambas, i've never used XML/DOM, and the gb.xml documentation is not yet available...but i think the addition of SOAP services would be quite a simple task for someone familiar with XML, DOM, and C code. My very rough proposal is: 1) add gSOAP to Gambas as gb.WebServices or perhaps include it in gb.Web 2) allow users to create a WebService object: DIM ws AS NEW WebService 3) specify the WSDL file (which may be local or remote) something like: ws.WSDL.URL = "https://api.betfair.com/global/v3/BFGlobalService.wsdl" (or) ws.WSDL.FILE = "~/BFGlobalService.wsdl" maybe it would be better to specify the WSDL like this?: DIM ws AS NEW WebService("https://api.betfair.com/global/v3/BFGlobalService.wsdl") 4) pass the WSDL location into gSOAP and let it create the C/C++/XML files Note that gSOAP can't directly handle https, so it may be better to download ALL files via WGET or similar and pass them as a local file? 5) only the xml files are relevent, so the C++ files can be deleted (unless these are easier to work with/can be directly converted into Gambas syntax??) 6) wrap the xml files into single functions within the WebService class, similar to the code in my previous post 7) add a http function to the WebService for the request/response stuff (curl HttpClient?) Looking at what i've just written, it may be easier to just let gSOAP do its thing and then just convert the C classes into Gambas classes? I'm just stabbing in the dark as i know nothing about the development of Gambas. -- View this message in context: http://www.nabble.com/Web-Services%3A-Working-with-WSDL-tp20328779p20614928.html Sent from the gambas-user mailing list archive at Nabble.com. From teguhpwd at ...626... Fri Nov 21 06:59:16 2008 From: teguhpwd at ...626... (teguh eko) Date: Fri, 21 Nov 2008 12:59:16 +0700 Subject: [Gambas-user] Gambas-user Digest, Vol 30, Issue 46 In-Reply-To: References: Message-ID: <49a402650811202159j71fe0679n119ed1b6e1dcf120@...627...> Hello, I'm newbie in gambas.. my name is Teguh Eko Yuniarto from Indonesia. Please teach me how to make report using gambas, how to use gb.report. thanks.. Regard's From doriano.blengino at ...1909... Fri Nov 21 08:32:05 2008 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Fri, 21 Nov 2008 08:32:05 +0100 Subject: [Gambas-user] compiling a programm on the console In-Reply-To: <200811202140.17171.gambas@...1938...> References: <200811201708.12282.gambas@...1938...> <200811201909.46908.gambas@...1938...> <4925C38B.3010007@...1909...> <200811202140.17171.gambas@...1938...> Message-ID: <492663F5.7040809@...1909...> gambas at ...1938... ha scritto: > Hi Doriano! > > I've kept that in mind. :-) ...during my investigations I always moved the > executable out of the project directory, so the compiler had to do it's job! > > It _seems_ to be like this: > 1) Open the old source in the gambas IDE > 2) Simply store it (there is no need to compile it) > 3) move the old executable (just for safeness) > 4) scp -r the whole project directory to the target machine > 5) ssh to the target machine > 6) gbc3 -va > 7) gba3 -v > ...and it works, like expected. > > I know this description differs a little bit from my last posting, but I came > to it, after I send my mail to the list. > > Only performing steps 6 and 7 (with svn from today) on the "old" sources on > the target machine, doesn't work. > > I fiddled hours and hours to get rid of this...and there are chances, that I > made something (anything??? :-) ) wrong...but I have another "clean" > machine, where I could verify this scenario. > Uhm... may be the compiler looks at the project source file? I see a .project file and, more likely, a .gambas directory where there seem to reside compiled files... Cheers, Doriano From jscops at ...11... Fri Nov 21 08:33:46 2008 From: jscops at ...11... (Jacky) Date: Fri, 21 Nov 2008 08:33:46 +0100 Subject: [Gambas-user] Gambas-user Digest, Vol 30, Issue 46 In-Reply-To: <49a402650811202159j71fe0679n119ed1b6e1dcf120@...627...> References: <49a402650811202159j71fe0679n119ed1b6e1dcf120@...627...> Message-ID: <200811210833.46592.jscops@...11...> Le Friday 21 November 2008 06:59:16 teguh eko, vous avez ?crit?: > Hello, > > I'm newbie in gambas.. > my name is Teguh Eko Yuniarto from Indonesia. > > Please teach me how to make report using gambas, how to use gb.report. Salut, you can see the gb.report example in gambas2-x.x.x/comp/src cordialement Jacky From gambas at ...1938... Fri Nov 21 10:42:43 2008 From: gambas at ...1938... (gambas at ...1938...) Date: Fri, 21 Nov 2008 10:42:43 +0100 Subject: [Gambas-user] compiling a programm on the console In-Reply-To: <492663F5.7040809@...1909...> References: <200811201708.12282.gambas@...1938...> <200811202140.17171.gambas@...1938...> <492663F5.7040809@...1909...> Message-ID: <200811211042.43993.gambas@...1938...> Hi Doriano! Surely Benoit could shed some light on this. ...at the moment, it's OK for me to know, that I had to open and store the old sources with the new version of the gambas IDE and than recompile on the target machine. Thanks for your help! Greetz Stevie Am Freitag, 21. November 2008 08:32:05 schrieb Doriano Blengino: > gambas at ...1938... ha scritto: > > Hi Doriano! > > > > I've kept that in mind. :-) ...during my investigations I always moved > > the executable out of the project directory, so the compiler had to do > > it's job! > > > > It _seems_ to be like this: > > 1) Open the old source in the gambas IDE > > 2) Simply store it (there is no need to compile it) > > 3) move the old executable (just for safeness) > > 4) scp -r the whole project directory to the target machine > > 5) ssh to the target machine > > 6) gbc3 -va > > 7) gba3 -v > > ...and it works, like expected. > > > > I know this description differs a little bit from my last posting, but I > > came to it, after I send my mail to the list. > > > > Only performing steps 6 and 7 (with svn from today) on the "old" sources > > on the target machine, doesn't work. > > > > I fiddled hours and hours to get rid of this...and there are chances, > > that I made something (anything??? :-) ) wrong...but I have another > > "clean" machine, where I could verify this scenario. > > Uhm... may be the compiler looks at the project source file? I see a > .project file and, more likely, a .gambas directory where there seem to > reside compiled files... > > Cheers, > > Doriano From charles at ...1784... Fri Nov 21 10:58:27 2008 From: charles at ...1784... (charlesg) Date: Fri, 21 Nov 2008 01:58:27 -0800 (PST) Subject: [Gambas-user] OOP and TextBox Message-ID: <20618177.post@...1379...> Hello, I need more control of cell entry than can be provided by tableview. I have laboriously placed textboxes over (and under) gridview cells in much the same way I imagine that tableview itself is constructed. It works. Not knowing much about OOP it strikes me that there must be an easier solution. Can I create say forty textboxes programmatically and then move from one to the other also under program control? I suppose what I am looking for is textbox[] :-D. If that were possible then the following could be reduced to one sub. ' Gambas class file PUBLIC SUB txt1_KeyPress() IF Key.code = Key.right THEN {dosomething with the entry then} txt2.SetFocus ENDIF END PUBLIC SUB txt2_KeyPress() IF Key.code = Key.right THEN {dosomething with the entry then} txt3.SetFocus ENDIF END PUBLIC SUB txt3_KeyPress() IF Key.code = Key.right THEN {dosomething with the entry then} txt4.SetFocus ENDIF END PUBLIC SUB txt4_KeyPress() IF Key.code = Key.right THEN {dosomething with the entry then} txt1.SetFocus ENDIF END -- View this message in context: http://www.nabble.com/OOP-and-TextBox-tp20618177p20618177.html Sent from the gambas-user mailing list archive at Nabble.com. From jscops at ...11... Fri Nov 21 11:52:26 2008 From: jscops at ...11... (Jacky) Date: Fri, 21 Nov 2008 11:52:26 +0100 Subject: [Gambas-user] OOP and TextBox In-Reply-To: <20618177.post@...1379...> References: <20618177.post@...1379...> Message-ID: <200811211152.26158.jscops@...11...> Le Friday 21 November 2008 10:58:27 charlesg, vous avez ?crit?: > Hello, > > I need more control of cell entry than can be provided by tableview. I have > laboriously placed textboxes over (and under) gridview cells in much the > same way I imagine that tableview itself is constructed. It works. > > Not knowing much about OOP it strikes me that there must be an easier > solution. Can I create say forty textboxes programmatically and then move > from one to the other also under program control? I suppose what I am > looking for is textbox[] :-D. If that were possible then the following > could be reduced to one sub. > > ' Gambas class file > PUBLIC SUB txt1_KeyPress() > IF Key.code = Key.right THEN > {dosomething with the entry then} > txt2.SetFocus > ENDIF > END > > PUBLIC SUB txt2_KeyPress() > IF Key.code = Key.right THEN > {dosomething with the entry then} > txt3.SetFocus > ENDIF > END > > PUBLIC SUB txt3_KeyPress() > IF Key.code = Key.right THEN > {dosomething with the entry then} > txt4.SetFocus > ENDIF > END > > PUBLIC SUB txt4_KeyPress() > IF Key.code = Key.right THEN > {dosomething with the entry then} > txt1.SetFocus > ENDIF > END Salut This is an example i have made for my program. I hope it is that you want ? Jacky -------------- next part -------------- A non-text attachment was scrubbed... Name: Test_tableview.tar.gz Type: application/x-tgz Size: 10555 bytes Desc: not available URL: From charles at ...1784... Fri Nov 21 12:40:39 2008 From: charles at ...1784... (charlesg) Date: Fri, 21 Nov 2008 03:40:39 -0800 (PST) Subject: [Gambas-user] OOP and TextBox In-Reply-To: <200811211152.26158.jscops@...11...> References: <20618177.post@...1379...> <200811211152.26158.jscops@...11...> Message-ID: <20619605.post@...1379...> Jacky-12, Ha! It will take me a little time to understand it fully but it looks absolutely spot on. Thank you, -- View this message in context: http://www.nabble.com/OOP-and-TextBox-tp20618177p20619605.html Sent from the gambas-user mailing list archive at Nabble.com. From l.jumadi at ...626... Fri Nov 21 14:07:44 2008 From: l.jumadi at ...626... (L Jumadi) Date: Fri, 21 Nov 2008 20:07:44 +0700 Subject: [Gambas-user] How to set property dynamically Message-ID: <3b3b9f170811210507j4386d1dcn5b489a1263fa97d3@...627...> I just want to know wheter gambas can set property inside a virtual collection. For Example I try to set Rows.H of a Gridview, I try command like this: Object.SetProperty(Obj,"Rows.H",10) (Where Obj is a Gridview, and of course "Rows.H" usually a variable) It return error. Is there any other way to do it? I have trouble to read property too (Dynamically), but someway gambas debugger can read it properly (I think it should use to read it dynamically). Am I missing something? Regards. L.Jumadi From gambas at ...1... Fri Nov 21 14:13:48 2008 From: gambas at ...1... (Benoit Minisini) Date: Fri, 21 Nov 2008 14:13:48 +0100 Subject: [Gambas-user] How to set property dynamically In-Reply-To: <3b3b9f170811210507j4386d1dcn5b489a1263fa97d3@...627...> References: <3b3b9f170811210507j4386d1dcn5b489a1263fa97d3@...627...> Message-ID: <200811211413.48049.gambas@...1...> On vendredi 21 novembre 2008, L Jumadi wrote: > I just want to know wheter gambas can set property inside a virtual > collection. For Example I try to set Rows.H of a Gridview, I try command > like this: > > Object.SetProperty(Obj,"Rows.H",10) > > (Where Obj is a Gridview, and of course "Rows.H" usually a variable) > > It return error. Is there any other way to do it? I have trouble to > read property too (Dynamically), but someway gambas debugger can read > it properly (I think it should use to read it dynamically). Am I > missing something? > > Regards. > > L.Jumadi > You can't do that with Object.SetProperty. But the question is: why do you use Object.SetProperty? You can use an Object reference: DIM hObject AS Object = Obj hObject.Rows.H = 10 -- Benoit Minisini From gambas at ...1... Fri Nov 21 14:17:23 2008 From: gambas at ...1... (Benoit Minisini) Date: Fri, 21 Nov 2008 14:17:23 +0100 Subject: [Gambas-user] compiling a programm on the console In-Reply-To: <200811201708.12282.gambas@...1938...> References: <200811201708.12282.gambas@...1938...> Message-ID: <200811211417.23288.gambas@...1...> On jeudi 20 novembre 2008, gambas at ...1938... wrote: > Hi Dear List! > > When entering CTRL+ALT+m in the IDE, what does it do in background? > gbc3 -vam > > and then a > > gba3 -v > > ??? > Problem is: > I've upgraded to latest svn and recompiled (in the IDE) my console-programm > AND one of my modules (classes), which is used by the programm. ...and > everything is fine. What do you mean by recompiling a project AND "one of my modules"? > > Because I did a gambas-upgrade on the test machine, too, now I need to > recompile the same project and module on another machine without X (so I > have no IDE). When triggering the two commands mentioned above (for > compiling the programm and the module), I get no errors. But when starting > the programm, I get: > ERROR: #2: Cannot load class 'ModDummy': Version too old. Please recompile > the project. > That message means that ModDummy was compiled with a compiler 'older' than the interpreter that tries to load it. 'older' means that the bytecode version is lower. Regards, -- Benoit Minisini From gambas at ...1... Fri Nov 21 14:18:31 2008 From: gambas at ...1... (Benoit Minisini) Date: Fri, 21 Nov 2008 14:18:31 +0100 Subject: [Gambas-user] compiling a programm on the console In-Reply-To: <200811201909.46908.gambas@...1938...> References: <200811201708.12282.gambas@...1938...> <200811201909.46908.gambas@...1938...> Message-ID: <200811211418.31862.gambas@...1...> On jeudi 20 novembre 2008, gambas at ...1938... wrote: > @Benoit > When opening an "old" project with a newer version of the Gambas IDE, are > you doing any modifications on the source file? > Simply recompiling the old (unmodified) sources with the new version of > gbc3 was not successfull. > > Greetz > Stevie > It depends. When loading a Gambas 2 project in the Gambas 3 IDE, the ".project" file is upgraded. But the project is not automatically compiled again. -- Benoit Minisini From gambas at ...1... Fri Nov 21 14:27:11 2008 From: gambas at ...1... (Benoit Minisini) Date: Fri, 21 Nov 2008 14:27:11 +0100 Subject: [Gambas-user] compiling a programm on the console In-Reply-To: <200811211042.43993.gambas@...1938...> References: <200811201708.12282.gambas@...1938...> <492663F5.7040809@...1909...> <200811211042.43993.gambas@...1938...> Message-ID: <200811211427.11116.gambas@...1...> On vendredi 21 novembre 2008, gambas at ...1938... wrote: > Hi Doriano! > > Surely Benoit could shed some light on this. ...at the moment, it's OK for > me to know, that I had to open and store the old sources with the new > version of the gambas IDE and than recompile on the target machine. > Thanks for your help! > > Greetz > Stevie > I don't understand all your story. I think you didn't give all the information. I just can tell you that: - The "Version too old" message means that a class was compiled with a compiler having an older bytecode version than the interpreter used for running the class. - "Make executable" in the IDE recompiles the project entirely before making the archive. - If you don't recompile all, then the compiler compiles only the source files that are newer than their corresponding bytecode files. Regards, -- Benoit Minisini From doriano.blengino at ...1909... Fri Nov 21 14:41:37 2008 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Fri, 21 Nov 2008 14:41:37 +0100 Subject: [Gambas-user] compiling a programm on the console In-Reply-To: <200811211427.11116.gambas@...1...> References: <200811201708.12282.gambas@...1938...> <492663F5.7040809@...1909...> <200811211042.43993.gambas@...1938...> <200811211427.11116.gambas@...1...> Message-ID: <4926BA91.8090704@...1909...> Benoit Minisini ha scritto: > - "Make executable" in the IDE recompiles the project entirely before making > the archive. > > - If you don't recompile all, then the compiler compiles only the source files > that are newer than their corresponding bytecode files. > A little out of topic, but a little related too. I made several specialized controls, all in a component called Accounting. When compiling, an option asks about installing this component in the user home directory. Fine. It seems that a compiled app, which uses these components, does not include them - right? It searches for them... in which order? /usr/share/gambas2/... && /usr/lib/gambas2/..., then ~/.local/... So I copied my components in the system-wide store too (/usr/...) to let them be accessible by every user. Now, when launching the IDE to modify my app, it loads the system-wide components instead of my local copy. So, if I modify my component, then I must copy it again to the system-wide directories before going on with my app... Is this right? I think that the IDE, if not all applications, should give precedence to the home directory, or the last-modified (more up-to-date) component... or am I wrong? Thanks, regards, Doriano From gambas at ...1... Fri Nov 21 14:53:10 2008 From: gambas at ...1... (Benoit Minisini) Date: Fri, 21 Nov 2008 14:53:10 +0100 Subject: [Gambas-user] compiling a programm on the console In-Reply-To: <4926BA91.8090704@...1909...> References: <200811201708.12282.gambas@...1938...> <200811211427.11116.gambas@...1...> <4926BA91.8090704@...1909...> Message-ID: <200811211453.10649.gambas@...1...> On vendredi 21 novembre 2008, Doriano Blengino wrote: > Benoit Minisini ha scritto: > > - "Make executable" in the IDE recompiles the project entirely before > > making the archive. > > > > - If you don't recompile all, then the compiler compiles only the source > > files that are newer than their corresponding bytecode files. > > A little out of topic, but a little related too. > > I made several specialized controls, all in a component called Accounting. > When compiling, an option asks about installing this component in the > user home directory. Fine. > > It seems that a compiled app, which uses these components, does not > include them - right? It searches for them... in which order? > /usr/share/gambas2/... && /usr/lib/gambas2/..., then ~/.local/... > > So I copied my components in the system-wide store too (/usr/...) to > let them be accessible by every user. > > Now, when launching the IDE to modify my app, it loads the system-wide > components instead of my local copy. So, if I modify my component, then > I must copy it again to the system-wide directories before going on with > my app... > > Is this right? I think that the IDE, if not all applications, should > give precedence to the home directory, or the last-modified (more > up-to-date) component... or am I wrong? > > Thanks, regards, > > Doriano > You are wrong. :-) The system directory has priority over the home directory, for security reasons. Regards, -- Benoit Minisini From gambas at ...1938... Fri Nov 21 14:59:10 2008 From: gambas at ...1938... (gambas at ...1938...) Date: Fri, 21 Nov 2008 14:59:10 +0100 Subject: [Gambas-user] compiling a programm on the console In-Reply-To: <200811211417.23288.gambas@...1...> References: <200811201708.12282.gambas@...1938...> <200811211417.23288.gambas@...1...> Message-ID: <200811211459.10945.gambas@...1938...> Hi Benoit! I told the whole story as far as I realized it. ...sorry for perhaps being a little bit unspecific! :-( What you wrote in your mails, is what I saw yesterday. ...so I recompiled the module ModDummy AND my app on the target machine without X (and so without the Gambas IDE) with gbc2 and gba3. ....But the error persisted. I had to open and save the sources in the Gambas IDE (on my notebook with X and so on), copy it to the target machine and recompile it with gbc3 and gba3. ...after that the error was gone. Just recompiling the sources (without opening and saving with the IDE) didn't work. It's no problem for me...I just struggled over this. Greetz Stevie Am Freitag, 21. November 2008 14:17:23 schrieb Benoit Minisini: > On jeudi 20 novembre 2008, gambas at ...1938... wrote: > > Hi Dear List! > > > > When entering CTRL+ALT+m in the IDE, what does it do in background? > > gbc3 -vam > > > > and then a > > > > gba3 -v > > > > ??? > > Problem is: > > I've upgraded to latest svn and recompiled (in the IDE) my > > console-programm AND one of my modules (classes), which is used by the > > programm. ...and everything is fine. > > What do you mean by recompiling a project AND "one of my modules"? > > > Because I did a gambas-upgrade on the test machine, too, now I need to > > recompile the same project and module on another machine without X (so I > > have no IDE). When triggering the two commands mentioned above (for > > compiling the programm and the module), I get no errors. But when > > starting the programm, I get: > > ERROR: #2: Cannot load class 'ModDummy': Version too old. Please > > recompile the project. > > That message means that ModDummy was compiled with a compiler 'older' than > the interpreter that tries to load it. 'older' means that the bytecode > version is lower. > > Regards, From doriano.blengino at ...1909... Fri Nov 21 16:07:21 2008 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Fri, 21 Nov 2008 16:07:21 +0100 Subject: [Gambas-user] compiling a programm on the console In-Reply-To: <200811211453.10649.gambas@...1...> References: <200811201708.12282.gambas@...1938...> <200811211427.11116.gambas@...1...> <4926BA91.8090704@...1909...> <200811211453.10649.gambas@...1...> Message-ID: <4926CEA9.6010109@...1909...> Benoit Minisini ha scritto: >> Is this right? I think that the IDE, if not all applications, should >> give precedence to the home directory, or the last-modified (more >> up-to-date) component... or am I wrong? >> >> Thanks, regards, >> >> Doriano >> >> > > > You are wrong. :-) > > The system directory has priority over the home directory, for security > reasons. > I could agree for compiled apps, even if in my thought security is not achieved through these mechanisms. On the other hand, there is nothing in those components that could not be done in the IDE itself... I mean: if I, as a regular user, wanted to do something forbidden, I could compile a dangerous thing and run it - either in gambas or with a C compiler. If I want to install a thirdy-party gambas-forbidden-rootkit, well, the IDE will not prohibit me to do so... so where is the security? Gambas would prohibit to use a personal copy of a component already present in the system - it seems not a big deal to me... but of course, as always, I could be wrong. Regards, Doriano From steven at ...1652... Fri Nov 21 16:57:20 2008 From: steven at ...1652... (Steven Lobbezoo) Date: Fri, 21 Nov 2008 16:57:20 +0100 Subject: [Gambas-user] List server Message-ID: <1227283040.3689.32.camel@...1936...> Hi Benoit, As promised i've set up an mailman installation on my server. I've created a gambas mailing list at your convenience. If you're still interested, i'll send you the list managers password, so you can change it's settings to your liking. The list is called : gambas at ...1721... kindest, Steven From linuxos at ...1896... Fri Nov 21 19:22:20 2008 From: linuxos at ...1896... (Olivier Cruilles) Date: Fri, 21 Nov 2008 19:22:20 +0100 Subject: [Gambas-user] Question about signal management inside gambas console program ? Message-ID: <4B4356F7-E5D7-4E48-8CAA-5DCB2D243CE9@...1896...> Hello Benoit, Just some questions about how to manage inside gambas console program, Unix signal. In a bash script for example, I can use the TRAP command to activate some procedure when Unix event appear. In my gambas console program, for example I'll like to be able to write in log file some text lines before quit the program when I receive the signal SIGTERM. It's possible in gambas or not ? Thank you in advance Olivier Cruilles From jshorie at ...2016... Fri Nov 21 20:53:34 2008 From: jshorie at ...2016... (Jon Shorie) Date: Fri, 21 Nov 2008 14:53:34 -0500 Subject: [Gambas-user] .tk toolkit Message-ID: <200811211453.34338.jshorie@...2016...> Does anyone know whether it is possible to use the .tk toolkit with gambas instead of .gtk or .qt? From gambas at ...1... Fri Nov 21 20:55:06 2008 From: gambas at ...1... (Benoit Minisini) Date: Fri, 21 Nov 2008 20:55:06 +0100 Subject: [Gambas-user] Question about signal management inside gambas console program ? In-Reply-To: <4B4356F7-E5D7-4E48-8CAA-5DCB2D243CE9@...1896...> References: <4B4356F7-E5D7-4E48-8CAA-5DCB2D243CE9@...1896...> Message-ID: <200811212055.06862.gambas@...1...> On vendredi 21 novembre 2008, Olivier Cruilles wrote: > Hello Benoit, > > Just some questions about how to manage inside gambas console program, > Unix signal. > > In a bash script for example, I can use the TRAP command to activate > some procedure when > Unix event appear. > > In my gambas console program, for example I'll like to be able to > write in log file some text lines before quit the program > when I receive the signal SIGTERM. > > It's possible in gambas or not ? > > Thank you in advance > > Olivier Cruilles > Bonsoir, Je pense que nous sommes fran?ais tous les deux, alors on va parler fran?ais. :-) Il n'y a rien pour l'instant pour intercepter les signaux dans Gambas, mais c'est pr?vu. Ce sera certainement une m?thode publique de la classe de d?marrage appel?e "Application_Signal" qui recevra en param?tre le type de signal ?mis. Cordialement, -- Benoit Minisini From gambas at ...1... Fri Nov 21 21:00:45 2008 From: gambas at ...1... (Benoit Minisini) Date: Fri, 21 Nov 2008 21:00:45 +0100 Subject: [Gambas-user] Question about signal management inside gambas console program ? In-Reply-To: <200811212055.06862.gambas@...1...> References: <4B4356F7-E5D7-4E48-8CAA-5DCB2D243CE9@...1896...> <200811212055.06862.gambas@...1...> Message-ID: <200811212100.45684.gambas@...1...> On vendredi 21 novembre 2008, Benoit Minisini wrote: > On vendredi 21 novembre 2008, Olivier Cruilles wrote: > > Hello Benoit, > > > > Just some questions about how to manage inside gambas console program, > > Unix signal. > > > > In a bash script for example, I can use the TRAP command to activate > > some procedure when > > Unix event appear. > > > > In my gambas console program, for example I'll like to be able to > > write in log file some text lines before quit the program > > when I receive the signal SIGTERM. > > > > It's possible in gambas or not ? > > > > Thank you in advance > > > > Olivier Cruilles > > Bonsoir, > > Je pense que nous sommes fran?ais tous les deux, alors on va parler > fran?ais. :-) > > Il n'y a rien pour l'instant pour intercepter les signaux dans Gambas, mais > c'est pr?vu. Ce sera certainement une m?thode publique de la classe de > d?marrage appel?e "Application_Signal" qui recevra en param?tre le type de > signal ?mis. > > Cordialement, Oops, sorry, I thought I was answering my private e-mail, not the mailing-list! Here is the answer in english: There is nothing to catch signals in Gambas yet, but this is planned. It should be a public method named "Application_Signal" that will take the signal type as argument. Regards, -- Benoit Minisini From garulfounix at ...626... Fri Nov 21 21:03:45 2008 From: garulfounix at ...626... (GarulfoUnix) Date: Fri, 21 Nov 2008 21:03:45 +0100 Subject: [Gambas-user] .tk toolkit In-Reply-To: <200811211453.34338.jshorie@...2016...> References: <200811211453.34338.jshorie@...2016...> Message-ID: <200811212103.45679.garulfounix@...626...> On Friday 21 November 2008 20:53:34 Jon Shorie wrote: > Does anyone know whether it is possible to use the .tk toolkit with gambas > instead of .gtk or .qt? > > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge Build the coolest Linux based applications with Moblin SDK & win > great prizes Grand prize is a trip for two to an Open Source event anywhere > in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user There is no Tk component for Gambas and if you want my opinion, This is not needed because this toolkit is poor enough (and old). However, I would like to know why do you want to use the Tk toolkit ? From linuxos at ...1896... Fri Nov 21 21:33:16 2008 From: linuxos at ...1896... (Olivier Cruilles) Date: Fri, 21 Nov 2008 21:33:16 +0100 Subject: [Gambas-user] Question about signal management inside gambas console program ? In-Reply-To: <200811212055.06862.gambas@...1...> References: <4B4356F7-E5D7-4E48-8CAA-5DCB2D243CE9@...1896...> <200811212055.06862.gambas@...1...> Message-ID: <7DE35C44-D072-4B19-A4BC-AACB23562824@...1896...> Bonsoir Benoit, En effet nous sommes tous les deux fran?ais, d?sol? pour l'erreur. Merci pour la reponse, je patienterais jusque la. Mon programme fonctionne d?ja, c'?tait juste pour le finir proprement. Olivier CRUILLES Le 21 nov. 08 ? 20:55, Benoit Minisini a ?crit : > On vendredi 21 novembre 2008, Olivier Cruilles wrote: >> Hello Benoit, >> >> Just some questions about how to manage inside gambas console >> program, >> Unix signal. >> >> In a bash script for example, I can use the TRAP command to activate >> some procedure when >> Unix event appear. >> >> In my gambas console program, for example I'll like to be able to >> write in log file some text lines before quit the program >> when I receive the signal SIGTERM. >> >> It's possible in gambas or not ? >> >> Thank you in advance >> >> Olivier Cruilles >> > > Bonsoir, > > Je pense que nous sommes fran?ais tous les deux, alors on va parler > fran?ais. :-) > > Il n'y a rien pour l'instant pour intercepter les signaux dans > Gambas, mais > c'est pr?vu. Ce sera certainement une m?thode publique de la classe de > d?marrage appel?e "Application_Signal" qui recevra en param?tre le > type de > signal ?mis. > > Cordialement, > > -- > Benoit Minisini > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge > Build the coolest Linux based applications with Moblin SDK & win > great prizes > Grand prize is a trip for two to an Open Source event anywhere in > the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > Olivier Cruilles Mail: linuxos at ...1896... From neptunia at ...787... Sat Nov 22 11:18:15 2008 From: neptunia at ...787... (=?koi8-r?Q?=E9=CC=D8=D1_=FE=C5=D2=CE=D9=C8?=) Date: Sat, 22 Nov 2008 13:18:15 +0300 Subject: [Gambas-user] Text highlite and layout Message-ID: Hi! It it possible to make reserved words to appear not in all caps? Like in VB etc. From d.paleino at ...626... Sat Nov 22 11:50:14 2008 From: d.paleino at ...626... (David Paleino) Date: Sat, 22 Nov 2008 11:50:14 +0100 Subject: [Gambas-user] Text highlite and layout References: Message-ID: <20081122115014.05ea22c6@...626...> On Sat, 22 Nov 2008 13:18:15 +0300, ???? ?????? wrote: > Hi! > > It it possible to make reserved words to appear not in all caps? I'd second this -- I don't know why, just a gut feeling, but looking those ALL-CAPS reserved words might portrait Gambas as a "toy language" (no offense, I know it is *not*, but newcomers might believe so). OTOH, AFAICR BASIC had ALL-CAPS reserved words -- but I might be plain wrong, I had only a quick shot at QBASIC hundreds of years ago. Just my two cents, David -- . ''`. Debian maintainer | http://wiki.debian.org/DavidPaleino : :' : Linuxer #334216 --|-- http://www.hanskalabs.net/ `. `'` GPG: 1392B174 ----|---- http://snipr.com/qa_page `- 2BAB C625 4E66 E7B8 450A C3E1 E6AA 9017 1392 B174 -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 197 bytes Desc: not available URL: From gambas at ...1... Sat Nov 22 13:17:54 2008 From: gambas at ...1... (Benoit Minisini) Date: Sat, 22 Nov 2008 13:17:54 +0100 Subject: [Gambas-user] Text highlite and layout In-Reply-To: <20081122115014.05ea22c6@...626...> References: <20081122115014.05ea22c6@...626...> Message-ID: <200811221317.54139.gambas@...1...> On samedi 22 novembre 2008, David Paleino wrote: > On Sat, 22 Nov 2008 13:18:15 +0300, ???? ?????? wrote: > > Hi! > > > > It it possible to make reserved words to appear not in all caps? > > I'd second this -- I don't know why, just a gut feeling, but looking those > ALL-CAPS reserved words might portrait Gambas as a "toy language" (no > offense, I know it is *not*, but newcomers might believe so). > > OTOH, AFAICR BASIC had ALL-CAPS reserved words -- but I might be plain > wrong, I had only a quick shot at QBASIC hundreds of years ago. > > Just my two cents, > David This is done, but only in Gambas 3. Regards, -- Benoit Minisini From l.jumadi at ...626... Sat Nov 22 14:54:03 2008 From: l.jumadi at ...626... (L Jumadi) Date: Sat, 22 Nov 2008 20:54:03 +0700 Subject: [Gambas-user] Gambas-user Digest, Vol 30, Issue 49 In-Reply-To: References: Message-ID: <3b3b9f170811220554k63450a22n57bc3c1fbe1b1040@...627...> On vendredi 21 novembre 2008, L Jumadi wrote: > I just want to know wheter gambas can set property inside a virtual > collection. For Example I try to set Rows.H of a Gridview, I try command > like this: > > Object.SetProperty(Obj,"Rows.H",10) > > (Where Obj is a Gridview, and of course "Rows.H" usually a variable) > > It return error. Is there any other way to do it? I have trouble to > read property too (Dynamically), but someway gambas debugger can read > it properly (I think it should use to read it dynamically). Am I > missing something? >You can't do that with Object.SetProperty. But the question is: why do you use >Object.SetProperty? >You can use an Object reference: >DIM hObject AS Object = Obj >hObject.Rows.H = 10 >-- >Benoit Minisini Of course I do that because actually Rows.H is a data in a database. FYI: Right now I create a database driven application with gambas. So I never use any of gambas form (Can you Imagine that?!) but can display GUI like if we use a form. Everything driven by the data. From the data my program create the form dynamically. So user (actually it's me as programmer) can modify the property of an object just by editting the data. So far it going well until i want to modify the rows.h. May be I can intercept that with some other code, but in the future if there is many virtual object like this I must code it one by one. So if there any solution for this I can set other "maybe in the future" virtual object. Regards L.Jumadi From gambas at ...1... Sat Nov 22 14:57:37 2008 From: gambas at ...1... (Benoit Minisini) Date: Sat, 22 Nov 2008 14:57:37 +0100 Subject: [Gambas-user] Gambas-user Digest, Vol 30, Issue 49 In-Reply-To: <3b3b9f170811220554k63450a22n57bc3c1fbe1b1040@...627...> References: <3b3b9f170811220554k63450a22n57bc3c1fbe1b1040@...627...> Message-ID: <200811221457.37125.gambas@...1...> On samedi 22 novembre 2008, L Jumadi wrote: > On vendredi 21 novembre 2008, L Jumadi wrote: > > I just want to know wheter gambas can set property inside a virtual > > collection. For Example I try to set Rows.H of a Gridview, I try command > > like this: > > > > Object.SetProperty(Obj,"Rows.H",10) > > > > (Where Obj is a Gridview, and of course "Rows.H" usually a variable) > > > > It return error. Is there any other way to do it? I have trouble to > > read property too (Dynamically), but someway gambas debugger can read > > it properly (I think it should use to read it dynamically). Am I > > missing something? > > > >You can't do that with Object.SetProperty. But the question is: why do > > you use Object.SetProperty? > > > >You can use an Object reference: > > > >DIM hObject AS Object = Obj > >hObject.Rows.H = 10 > >-- > >Benoit Minisini > > Of course I do that because actually Rows.H is a data in a database. > FYI: Right now I create a database driven application with gambas. So > I never use any of gambas form (Can you Imagine that?!) but can > display GUI like if we use a form. Everything driven by the data. From > the data my program create the form dynamically. So user (actually > it's me as programmer) can modify the property of an object just by > editting the data. So far it going well until i want to modify the > rows.h. May be I can intercept that with some other code, but in the > future if there is many virtual object like this I must code it one by > one. So if there any solution for this I can set other "maybe in the > future" virtual object. > > Regards > > L.Jumadi > Then you can use the Eval() function: Dim hGridView As GridView Dim cValue As New Collection Dim sProp As String = "Row.H" cValue["This"] = hGridView Print Eval("This." & sProp, cValue) -- Benoit Minisini From nkoch22 at ...626... Sat Nov 22 15:23:09 2008 From: nkoch22 at ...626... (Nicolas Koch) Date: Sat, 22 Nov 2008 17:23:09 +0300 Subject: [Gambas-user] how-to execute file or bash script packaged inside gambas Message-ID: <73abb3e80811220623n302fcfeev4e6239f59cbd19ea@...627...> Ok so I have created a gambas application and everything works except for exec or shell a bash script that is packaged in the data folder update.sh How do I get Gambas to run scripts packaged in project.gambas? From rospolosco at ...152... Sat Nov 22 16:33:57 2008 From: rospolosco at ...152... (Stefano Palmeri) Date: Sat, 22 Nov 2008 16:33:57 +0100 Subject: [Gambas-user] how-to execute file or bash script packaged inside gambas In-Reply-To: <73abb3e80811220623n302fcfeev4e6239f59cbd19ea@...627...> References: <73abb3e80811220623n302fcfeev4e6239f59cbd19ea@...627...> Message-ID: <200811221633.58014.rospolosco@...152...> Il sabato 22 novembre 2008 15:23:09 Nicolas Koch ha scritto: > Ok so I have created a gambas application and everything works except > for exec or shell a bash script that is packaged in the data folder > update.sh > > How do I get Gambas to run scripts packaged in project.gambas? > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge Build the coolest Linux based applications with Moblin SDK & win > great prizes Grand prize is a trip for two to an Open Source event anywhere > in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user --------------------------------------------- DIM sTempScript as String sTempScript = Temp$ COPY "update.sh" TO sTempscript SHELL sTempScript WAIT -------------------------------------------- This works if update.sh is in the project folder. If you create a sub-folder to store your data the code is: COPY "your_sub-folder/update.sh" TO sTempscript Bye, Stefano From nkoch22 at ...626... Sat Nov 22 19:46:49 2008 From: nkoch22 at ...626... (Nicolas Koch) Date: Sat, 22 Nov 2008 21:46:49 +0300 Subject: [Gambas-user] how-to execute file or bash script packaged inside gambas In-Reply-To: <200811221633.58014.rospolosco@...152...> References: <73abb3e80811220623n302fcfeev4e6239f59cbd19ea@...627...> <200811221633.58014.rospolosco@...152...> Message-ID: <73abb3e80811221046m47de909ev1c4e261c052aa09b@...627...> Stefano, Thank you so much. > --------------------------------------------- > DIM sTempScript as String > > sTempScript = Temp$ > > COPY "update.sh" TO sTempscript > > SHELL sTempScript WAIT > -------------------------------------------- Regards, Nick From amsbradley at ...679... Sat Nov 22 22:14:45 2008 From: amsbradley at ...679... (amsbradley at ...679...) Date: Sat, 22 Nov 2008 21:14:45 -0000 (GMT) Subject: [Gambas-user] Request for removal from Gambas-user List Message-ID: <1403.77.100.108.76.1227388485.RVMUQ2BbS0h9QA==.squirrel@...2018...> Please remove my name from the list of individuals wanting to receive info on Gambas. From webbox.uk at ...626... Sat Nov 22 22:55:15 2008 From: webbox.uk at ...626... (Kris Douglas) Date: Sat, 22 Nov 2008 21:55:15 +0000 Subject: [Gambas-user] Request for removal from Gambas-user List In-Reply-To: <1403.77.100.108.76.1227388485.RVMUQ2BbS0h9QA==.squirrel@...2018...> References: <1403.77.100.108.76.1227388485.RVMUQ2BbS0h9QA==.squirrel@...2018...> Message-ID: <8d424b9e0811221355x4329619ft11d1cfe59a9c1adf@...627...> *> Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user >* -- Kris Douglas Softdel Limited Hosting Services Web: www.softdel.net Mail: kris at ...1986... Company No. 6135915 Registered in England and Wales From the.at.robert at ...626... Sun Nov 23 09:58:50 2008 From: the.at.robert at ...626... (Robert Moss) Date: Sun, 23 Nov 2008 00:58:50 -0800 Subject: [Gambas-user] Using an Image in a PictureBox or help with my issue Message-ID: I need to use an Image because i need to be able to get pixel data (ie read the color values in an image) via Image[x,y]. I would also like this image to be visible on screen, but the only box i've found is PictureBox, which uses a picture, and it will not load an image. (and pictures dont do pic[x,y]) So I'd like to do: 'PictureBox on form Dim i as Image i = Image.Load("Myfile.jpg") PicBox1.Picture = i 'this is where error comes obviously as it wants a picture, but i need to use images ^_^ Message(str(Image[x,y])) Thanks so much Note: If there is an easy way to go from Dec to RGB (i assume return value is DEC) that would be cool, but thats not my issue From wdahn at ...1000... Sun Nov 23 10:07:55 2008 From: wdahn at ...1000... (Werner) Date: Sun, 23 Nov 2008 17:07:55 +0800 Subject: [Gambas-user] Using an Image in a PictureBox or help with my issue In-Reply-To: References: Message-ID: <49291D6B.3090402@...1000...> Robert Moss wrote: > I need to use an Image because i need to be able to get pixel data (ie read > the color values in an image) via Image[x,y]. > I would also like this image to be visible on screen, but the only box i've > found is PictureBox, which uses a picture, and it will not load an image. > (and pictures dont do pic[x,y]) > > So I'd like to do: > 'PictureBox on form > Dim i as Image > > i = Image.Load("Myfile.jpg") > > PicBox1.Picture = i 'this is where error comes obviously as it wants a > picture, but i need to use images ^_^ > > Message(str(Image[x,y])) > > Thanks so much > PicBox1.Picture = i 'this is where error comes obviously as it wants a try this: PicBox1.Picture.Image = i Regards Werner From the.at.robert at ...626... Sun Nov 23 10:39:04 2008 From: the.at.robert at ...626... (Robert Moss) Date: Sun, 23 Nov 2008 01:39:04 -0800 Subject: [Gambas-user] Using an Image in a PictureBox or help with my issue In-Reply-To: <49291D6B.3090402@...1000...> References: <49291D6B.3090402@...1000...> Message-ID: I get a Null Object error, and when i look at Picture.Image's properties in the IDE, it looks like Image is readonly., even when i do PicBox.Picture.Image.Load("filename") i get the same Null Object Error. I've also noticed that you can NOT use the ^ and MOD operators in the same expression =p On Sun, Nov 23, 2008 at 1:07 AM, Werner wrote: > Robert Moss wrote: > > I need to use an Image because i need to be able to get pixel data (ie > read > > the color values in an image) via Image[x,y]. > > I would also like this image to be visible on screen, but the only box > i've > > found is PictureBox, which uses a picture, and it will not load an image. > > (and pictures dont do pic[x,y]) > > > > So I'd like to do: > > 'PictureBox on form > > Dim i as Image > > > > i = Image.Load("Myfile.jpg") > > > > PicBox1.Picture = i 'this is where error comes obviously as it wants a > > picture, but i need to use images ^_^ > > > > Message(str(Image[x,y])) > > > > Thanks so much > > > > PicBox1.Picture = i 'this is where error comes obviously as it wants a > > try this: > > PicBox1.Picture.Image = i > > Regards > Werner > > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge > Build the coolest Linux based applications with Moblin SDK & win great > prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From doriano.blengino at ...1909... Sun Nov 23 10:50:08 2008 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Sun, 23 Nov 2008 10:50:08 +0100 Subject: [Gambas-user] Using an Image in a PictureBox or help with my issue In-Reply-To: References: Message-ID: <49292750.4000902@...1909...> Robert Moss ha scritto: > I need to use an Image because i need to be able to get pixel data (ie read > the color values in an image) via Image[x,y]. > I would also like this image to be visible on screen, but the only box i've > found is PictureBox, which uses a picture, and it will not load an image. > (and pictures dont do pic[x,y]) > > So I'd like to do: > 'PictureBox on form > Dim i as Image > > i = Image.Load("Myfile.jpg") > > PicBox1.Picture = i 'this is where error comes obviously as it wants a > picture, but i need to use images ^_^ > May be... picbox1.picture = i.picture? (I didn't try) Cheers, -- Doriano Blengino "Listen twice before you speak. This is why we have two ears, but only one mouth." From gambas.fr at ...626... Sun Nov 23 12:38:06 2008 From: gambas.fr at ...626... (Fabien Bodard) Date: Sun, 23 Nov 2008 12:38:06 +0100 Subject: [Gambas-user] A little thing about function parameters Message-ID: <6324a42a0811230338h51b809f5r49fcd07310f645b3@...627...> Hi Benoit, It's a think i've seen since many time.. 'Class Tmenu Public sub _New (sText as String, sLink as String, OPTIONAL hParent as Tmenu, OPTIONAL aAutoSelect as String[]) Text = sText {Link} = sLink IF aAutoSections.Exist(Request["section"]) THEN ME.IsSelected = TRUE IF NOT IsNull(hParent) THEN hParent.Children.Add(ME) End Well, the problem is i can't call this by this way Dim hMenu as Tmenu hMenu = NEW Tmenu("Sommaire", "/",, ["index"]) I need in fact write this : hMenu = NEW Tmenu("Sommaire", "/", NULL, ["index"]) in VB it is possible and the both are simple to read i think. Why the compiler does not take care about that ? Best regards, Fabien Bodard From gambas.fr at ...626... Sun Nov 23 13:05:11 2008 From: gambas.fr at ...626... (Fabien Bodard) Date: Sun, 23 Nov 2008 13:05:11 +0100 Subject: [Gambas-user] How to make a direct call to a module function Message-ID: <6324a42a0811230405x687123a0p7ef58dfac58cddd3@...627...> I want to call a module function dynamiquely in the idea it is that : Modules [sMyModule].Functions[sMyFunction](param) Please help me quikly ... it really stop me. I know how to do with class but with module ? is a module a class ? (i don't remember) Fabien From gambas.fr at ...626... Sun Nov 23 13:22:21 2008 From: gambas.fr at ...626... (Fabien Bodard) Date: Sun, 23 Nov 2008 13:22:21 +0100 Subject: [Gambas-user] How to make a direct call to a module function In-Reply-To: <6324a42a0811230405x687123a0p7ef58dfac58cddd3@...627...> References: <6324a42a0811230405x687123a0p7ef58dfac58cddd3@...627...> Message-ID: <6324a42a0811230422x4dbbcf6bg3a0dd6876b3fd899@...627...> oups, in fact i can handle that as a class dim hClass as Class dim s as String hClass = Classes["MyModuleName"] For each s in hClass.Symbols PRINT s & iif(hClass[s].Kind = Class.Method, " ==> is a Method", "") Next Sorry 2008/11/23 Fabien Bodard : > I want to call a module function dynamiquely > > > in the idea it is that : > > Modules [sMyModule].Functions[sMyFunction](param) > > Please help me quikly ... it really stop me. I know how to do with > class but with module ? > > is a module a class ? (i don't remember) > > Fabien > From gambas at ...1... Sun Nov 23 23:49:55 2008 From: gambas at ...1... (Benoit Minisini) Date: Sun, 23 Nov 2008 23:49:55 +0100 Subject: [Gambas-user] A little thing about function parameters In-Reply-To: <6324a42a0811230338h51b809f5r49fcd07310f645b3@...627...> References: <6324a42a0811230338h51b809f5r49fcd07310f645b3@...627...> Message-ID: <200811232349.55667.gambas@...1...> On dimanche 23 novembre 2008, Fabien Bodard wrote: > Hi Benoit, > > It's a think i've seen since many time.. > > > > 'Class Tmenu > > Public sub _New (sText as String, sLink as String, OPTIONAL hParent as > Tmenu, OPTIONAL aAutoSelect as String[]) > > Text = sText > {Link} = sLink > > IF aAutoSections.Exist(Request["section"]) THEN ME.IsSelected = TRUE > > IF NOT IsNull(hParent) THEN hParent.Children.Add(ME) > > End > > Well, the problem is i can't call this by this way > > > Dim hMenu as Tmenu > > hMenu = NEW Tmenu("Sommaire", "/",, ["index"]) > > I need in fact write this : > > hMenu = NEW Tmenu("Sommaire", "/", NULL, ["index"]) > > > in VB it is possible and the both are simple to read i think. > > Why the compiler does not take care about that ? > > Best regards, > > Fabien Bodard > You do not have to specify optional arguments, unless when using the NEW keyword. I don't remember at the moment if there is a good reason for that limitation. I will investigate... Regards, -- Benoit Minisini From rterry at ...1946... Mon Nov 24 03:18:31 2008 From: rterry at ...1946... (richard terry) Date: Mon, 24 Nov 2008 13:18:31 +1100 Subject: [Gambas-user] Editor Bug in line numbering Message-ID: <200811241318.31484.rterry@...1946...> 1710 (and before) When you paste/align in the editor and have lin-numbers 4 digits, the line numbers and any text in the editor overlap see the piccie. Regards Richard -------------- next part -------------- A non-text attachment was scrubbed... Name: editor_margin_error.png Type: image/png Size: 6174 bytes Desc: not available URL: From linuxos at ...1896... Mon Nov 24 07:50:37 2008 From: linuxos at ...1896... (Olivier Cruilles) Date: Mon, 24 Nov 2008 07:50:37 +0100 Subject: [Gambas-user] Editor Bug in line numbering In-Reply-To: <200811241318.31484.rterry@...1946...> References: <200811241318.31484.rterry@...1946...> Message-ID: <3A0E8B33-C0D2-40C7-AEC3-636643EE3FD0@...1896...> Hello Richard, I had the same problem when I reload my project in the new version 2.90 of Gambas. I solved the problem after reselecting the theme in the preferences panel in the IDE Olivier Cruilles Mail: linuxos at ...1896... Le 24 nov. 08 ? 03:18, richard terry a ?crit : > 1710 (and before) > > When you paste/align in the editor and have lin-numbers 4 digits, > the line > numbers and any text in the editor overlap > > > see the piccie. > > Regards > > Richard > < > editor_margin_error > .png > > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge > Build the coolest Linux based applications with Moblin SDK & win > great prizes > Grand prize is a trip for two to an Open Source event anywhere in > the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/_______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From gambas at ...1... Mon Nov 24 13:07:52 2008 From: gambas at ...1... (Benoit Minisini) Date: Mon, 24 Nov 2008 13:07:52 +0100 Subject: [Gambas-user] Editor Bug in line numbering In-Reply-To: <200811241318.31484.rterry@...1946...> References: <200811241318.31484.rterry@...1946...> Message-ID: <200811241307.52311.gambas@...1...> On lundi 24 novembre 2008, richard terry wrote: > 1710 (and before) > > When you paste/align in the editor and have lin-numbers 4 digits, the line > numbers and any text in the editor overlap > > > see the piccie. > > Regards > > Richard How many lines did you have in the file before the paste? How many lines after the paste? -- Benoit Minisini From leo_senpao at ...1541... Mon Nov 24 16:20:13 2008 From: leo_senpao at ...1541... (Leo Sendra) Date: Mon, 24 Nov 2008 23:20:13 +0800 (SGT) Subject: [Gambas-user] Ask about report in gambas Message-ID: <551830.57550.qm@...2003...> Hi all, I have a difficulty in making a report in gambas. How can I make a report in gambas? As we know, VB has a crystal report. Does gambas also have a tool for report like that? Thank you.... ___________________________________________________________________________ Nama baru untuk Anda! Dapatkan nama yang selalu Anda inginkan di domain baru @ymail dan @rocketmail. Cepat sebelum diambil orang lain! http://mail.promotions.yahoo.com/newdomains/id/ From gambasforum at ...2019... Mon Nov 24 16:13:23 2008 From: gambasforum at ...2019... (Lars Hoeger) Date: Mon, 24 Nov 2008 16:13:23 +0100 Subject: [Gambas-user] Clientsocket uses huge Systemresources after Connetion Message-ID: <492AC493.1080903@...2019...> Hi, I'am writing gambas 2.8 applications (clients) which are runnig on a terminalserver-cluster (nx). The problem I have is, that each gambas 2.8 programm increases its consumption of systemresources extremly after connecting to a server (TCP). I've tried, whether this behavior also happens, when a very simple client-application connects to an also very simple server-application on localhost, and found out, that there are the same problems. Without clientsockets I can let up to 40 people to work on one terminalserver. With clientsockets only 15 to 20 people an work on the same machine. Has anyone an idea? Thanks Lars From gambas at ...1... Mon Nov 24 16:56:58 2008 From: gambas at ...1... (Benoit Minisini) Date: Mon, 24 Nov 2008 16:56:58 +0100 Subject: [Gambas-user] Clientsocket uses huge Systemresources after Connetion In-Reply-To: <492AC493.1080903@...2019...> References: <492AC493.1080903@...2019...> Message-ID: <200811241656.58858.gambas@...1...> On lundi 24 novembre 2008, Lars Hoeger wrote: > Hi, > > I'am writing gambas 2.8 applications (clients) which are runnig on a > terminalserver-cluster (nx). The problem I have is, that each gambas 2.8 > programm increases its consumption of systemresources extremly after > connecting to a server (TCP). I've tried, whether this behavior also > happens, when a very simple client-application connects to an also very > simple server-application on localhost, and found out, that there are > the same problems. > > Without clientsockets I can let up to 40 people to work on one > terminalserver. With clientsockets only 15 to 20 people an work on the > same machine. > > Has anyone an idea? > > Thanks > > Lars > That bug was fixed in the current 2.0 branches. Compile it if you cannot wait for the release of gambas 2.10. Regards, -- Benoit Minisini From e.cazzola at ...1176... Mon Nov 24 18:45:56 2008 From: e.cazzola at ...1176... (Emiliano Cazzola) Date: Mon, 24 Nov 2008 18:45:56 +0100 Subject: [Gambas-user] Ask about report in gambas In-Reply-To: <551830.57550.qm@...2003...> References: <551830.57550.qm@...2003...> Message-ID: <492AE854.4070100@...1176...> Hi Leo, I've search a similar tool, but at moment it seems that there are not. At the end I've written a wrapper to use reports designed with IReport (the graphical interface for JasperReport) in Gambas. Emiliano. From budgieboy52 at ...1601... Mon Nov 24 18:58:33 2008 From: budgieboy52 at ...1601... (John Harrold) Date: Mon, 24 Nov 2008 17:58:33 +0000 Subject: [Gambas-user] Using an Image in a PictureBox or help with my issue In-Reply-To: <49292750.4000902@...1909...> References: <49292750.4000902@...1909...> Message-ID: <9fb6e46c0811240958i600936c8ma2cb03570a9ce2bb@...627...> Hi Load the image into the picturebox like: PictureBox1.Picture = Picture.load("images/bookmark.png") (Here you use the path and filename to your image.) Then you can do the following: Message(Str(PictureBox1.Picture.Image[x, y])) Budgieboy 2008/11/23 Doriano Blengino > Robert Moss ha scritto: > > I need to use an Image because i need to be able to get pixel data (ie > read > > the color values in an image) via Image[x,y]. > > I would also like this image to be visible on screen, but the only box > i've > > found is PictureBox, which uses a picture, and it will not load an image. > > (and pictures dont do pic[x,y]) > > > > So I'd like to do: > > 'PictureBox on form > > Dim i as Image > > > > i = Image.Load("Myfile.jpg") > > > > PicBox1.Picture = i 'this is where error comes obviously as it wants a > > picture, but i need to use images ^_^ > > > May be... picbox1.picture = i.picture? (I didn't try) > > Cheers, > > -- > Doriano Blengino > > "Listen twice before you speak. > This is why we have two ears, but only one mouth." > > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge > Build the coolest Linux based applications with Moblin SDK & win great > prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From demosthenesk at ...626... Mon Nov 24 19:30:59 2008 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Mon, 24 Nov 2008 20:30:59 +0200 Subject: [Gambas-user] lblHelp issue In-Reply-To: <200811202231.39008.gambas@...1...> References: <200811202231.39008.gambas@...1...> Message-ID: i attach a screenshot. On Thu, Nov 20, 2008 at 11:31 PM, Benoit Minisini < gambas at ...1...> wrote: > On jeudi 20 novembre 2008, Demosthenes Koptsis wrote: > > Hi to all of you my friends, > > > > I want to report an issue about gambas2 project. > > > > In IDE environment the lblHelp does not show all its text when i click a > > property with long text. > > > > Is that true or is my misuse? > > Can you be more specific? Which property do you display? Can you provide a > screenshot? > > -- > Benoit Minisini > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge > Build the coolest Linux based applications with Moblin SDK & win great > prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > 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: lblHelp-issue1.png Type: image/png Size: 10349 bytes Desc: not available URL: From gambas at ...1... Mon Nov 24 19:34:13 2008 From: gambas at ...1... (Benoit Minisini) Date: Mon, 24 Nov 2008 19:34:13 +0100 Subject: [Gambas-user] lblHelp issue In-Reply-To: References: <200811202231.39008.gambas@...1...> Message-ID: <200811241934.14119.gambas@...1...> On lundi 24 novembre 2008, Demosthenes Koptsis wrote: > i attach a screenshot. > > The help panel does not resize automatically, you must enlarge it by hand to see the remaining text. Regards, -- Benoit Minisini From dfuchs at ...2000... Mon Nov 24 20:33:39 2008 From: dfuchs at ...2000... (dfuchs at ...2000...) Date: Mon, 24 Nov 2008 20:33:39 +0100 Subject: [Gambas-user] Creating a Gambas component Message-ID: <7FFF362038271F42A765BEF934C12AB8042BA3A3@...2001...> I have created a Gambas 2 project that contains some user controls, and I would like to make it a component. I have successfully compiled and installed the component, including its .component, .list and .info files in their proper places. So now I can insert the controls provided by my project into a form in the Gambas IDE. Still, some things do not work as I imagine they should, and I have some questions: - Can I make the IDE's property window display the public properties that are new with my controls, compared to UserControl? This would be most helpful, in fact, it was the main reason why I wished to make a component. I have seen that there is a hidden property named _Properties to every control class which obviously contains the names of the properties to display in the IDE. Can I assign values to this property in Gambas code, and will this have the desired effect? - My controls do not draw themselves when inserted into a form in the IDE. They only draw a rectangle and the name of the control. Can I make them show their real look in the IDE? As for visualization (which works very well once a form containing my controls has been launched), my controls draw themselves through a DrawingArea that fills them completely. - In the toolbox, my controls are represented by tool buttons displaying only a question mark. Can I make the Gambas IDE's toolbox display my self-defined controls with an icon of my choice? - In the "components" tab of the project properties dialog, my component is listed as "not finished but stable" but without a description. How can I make the description show? The project, including full HTML documentation in English, is to be found under www.sourceforge.net/projects/gambasmeasuring/ Thanks for any help to come, Daniel Fuchs From leo_senpao at ...1541... Mon Nov 24 20:36:50 2008 From: leo_senpao at ...1541... (Leo Sendra) Date: Tue, 25 Nov 2008 03:36:50 +0800 (SGT) Subject: [Gambas-user] Ask About Report in Gambas Message-ID: <715741.62048.qm@...2004...> Hi Emiliano, Could you give me some examples to make a report using your suggested tool? How can I get that tool? Thanks... Berbagi foto Flickr dengan teman di dalam Messenger From gambas at ...1... Mon Nov 24 20:52:11 2008 From: gambas at ...1... (Benoit Minisini) Date: Mon, 24 Nov 2008 20:52:11 +0100 Subject: [Gambas-user] Creating a Gambas component In-Reply-To: <7FFF362038271F42A765BEF934C12AB8042BA3A3@...2001...> References: <7FFF362038271F42A765BEF934C12AB8042BA3A3@...2001...> Message-ID: <200811242052.11889.gambas@...1...> On lundi 24 novembre 2008, dfuchs at ...2000... wrote: > I have created a Gambas 2 project that contains some user controls, and > I would like to make it a component. > > > > I have successfully compiled and installed the component, including its > .component, .list and .info files in their proper places. So now I can > insert the controls provided by my project into a form in the Gambas > IDE. Still, some things do not work as I imagine they should, and I have > some questions: > Hi, You should use the developer mailing-list for development questions. First, go read the "how to program components in Gambas" page on the wiki, you will find many answers there. > > > - Can I make the IDE's property window display the public properties > that are new with my controls, compared to UserControl? This would be > most helpful, in fact, it was the main reason why I wished to make a > component. I have seen that there is a hidden property named _Properties > to every control class which obviously contains the names of the > properties to display in the IDE. Can I assign values to this property > in Gambas code, and will this have the desired effect? Yes. The detailed answer is in the "how to" wiki page. > > > > - My controls do not draw themselves when inserted into a form in the > IDE. They only draw a rectangle and the name of the control. Can I make > them show their real look in the IDE? As for visualization (which works > very well once a form containing my controls has been launched), my > controls draw themselves through a DrawingArea that fills them > completely. You can't. The IDE can only display the real look of the controls it already uses. Otherwise, it just display a rectangle with the name of the control and its class icon. For sure, it would be nicer to always see the real look of the control. But it would slow down the IDE a lot, as it would have to load some code each time a project uses a component, and unload it when the project is closed. What a mess... > > > > - In the toolbox, my controls are represented by tool buttons displaying > only a question mark. Can I make the Gambas IDE's toolbox display my > self-defined controls with an icon of my choice? Yes. See the "howto". > > > > - In the "components" tab of the project properties dialog, my component > is listed as "not finished but stable" but without a description. How > can I make the description show? Oops. This is a design bug: the default component names are stored in the IDE source code, so that they are translated with the other IDE strings. But this does not work with user-defined components! I will fix that. > > > > The project, including full HTML documentation in English, is to be > found under www.sourceforge.net/projects/gambasmeasuring/ > > > > Thanks for any help to come, > > > > Daniel Fuchs > Regards, -- Benoit Minisini From rterry at ...1946... Mon Nov 24 21:32:53 2008 From: rterry at ...1946... (richard terry) Date: Tue, 25 Nov 2008 07:32:53 +1100 Subject: [Gambas-user] Editor Bug in line numbering In-Reply-To: <200811241307.52311.gambas@...1...> References: <200811241318.31484.rterry@...1946...> <200811241307.52311.gambas@...1...> Message-ID: <200811250732.53940.rterry@...1946...> On Mon, 24 Nov 2008 11:07:52 pm you wrote: > On lundi 24 novembre 2008, richard terry wrote: > > 1710 (and before) > > > > When you paste/align in the editor and have lin-numbers 4 digits, the > > line numbers and any text in the editor overlap > > > > > > see the piccie. > > > > Regards > > > > Richard > > How many lines did you have in the file before the paste? How many lines > after the paste? Tried it again in another file, The before/after lines add up (ie it adds n lines), it just visually dosn't leave a column aftef the line numbers. Regards Richard From rterry at ...1946... Mon Nov 24 21:36:35 2008 From: rterry at ...1946... (richard terry) Date: Tue, 25 Nov 2008 07:36:35 +1100 Subject: [Gambas-user] Creating a Gambas component In-Reply-To: <7FFF362038271F42A765BEF934C12AB8042BA3A3@...2001...> References: <7FFF362038271F42A765BEF934C12AB8042BA3A3@...2001...> Message-ID: <200811250736.35458.rterry@...1946...> On Tue, 25 Nov 2008 06:33:39 am dfuchs at ...2000... wrote: I don't suppose that when You've got a this working you could write a tutorial on it for everyone could you?, I tried to make a control and failed miserably. regards Richard > I have created a Gambas 2 project that contains some user controls, and > I would like to make it a component. > > > > I have successfully compiled and installed the component, including its > .component, .list and .info files in their proper places. So now I can > insert the controls provided by my project into a form in the Gambas > IDE. Still, some things do not work as I imagine they should, and I have > some questions: > > > > - Can I make the IDE's property window display the public properties > that are new with my controls, compared to UserControl? This would be > most helpful, in fact, it was the main reason why I wished to make a > component. I have seen that there is a hidden property named _Properties > to every control class which obviously contains the names of the > properties to display in the IDE. Can I assign values to this property > in Gambas code, and will this have the desired effect? > > > > - My controls do not draw themselves when inserted into a form in the > IDE. They only draw a rectangle and the name of the control. Can I make > them show their real look in the IDE? As for visualization (which works > very well once a form containing my controls has been launched), my > controls draw themselves through a DrawingArea that fills them > completely. > > > > - In the toolbox, my controls are represented by tool buttons displaying > only a question mark. Can I make the Gambas IDE's toolbox display my > self-defined controls with an icon of my choice? > > > > - In the "components" tab of the project properties dialog, my component > is listed as "not finished but stable" but without a description. How > can I make the description show? > > > > The project, including full HTML documentation in English, is to be > found under www.sourceforge.net/projects/gambasmeasuring/ > > > > Thanks for any help to come, > > > > Daniel Fuchs > > > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge Build the coolest Linux based applications with Moblin SDK & win > great prizes Grand prize is a trip for two to an Open Source event anywhere > in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From rterry at ...1946... Mon Nov 24 21:47:23 2008 From: rterry at ...1946... (richard terry) Date: Tue, 25 Nov 2008 07:47:23 +1100 Subject: [Gambas-user] Tracking down Signal 11's Message-ID: <200811250747.23389.rterry@...1946...> I wondered if there was a method of tracking down a signal 11 when one really hasn't much clue where to start eg. may happen only on closing a form. Regards Richard From luigi.floyd at ...2020... Mon Nov 24 21:40:24 2008 From: luigi.floyd at ...2020... (=?ISO-8859-1?Q?Luis_Alberto_Cacho_Garc=EDa?=) Date: Mon, 24 Nov 2008 12:40:24 -0800 (PST) Subject: [Gambas-user] Creating a Gambas component Message-ID: <308429.49683.qm@...2021...> A non-text attachment was scrubbed... Name: Untitled.png Type: application/octet-stream Size: 34505 bytes Desc: not available URL: From gambas at ...1... Mon Nov 24 22:47:54 2008 From: gambas at ...1... (Benoit Minisini) Date: Mon, 24 Nov 2008 22:47:54 +0100 Subject: [Gambas-user] Tracking down Signal 11's In-Reply-To: <200811250747.23389.rterry@...1946...> References: <200811250747.23389.rterry@...1946...> Message-ID: <200811242247.54137.gambas@...1...> On lundi 24 novembre 2008, richard terry wrote: > I wondered if there was a method of tracking down a signal 11 when one > really hasn't much clue where to start eg. may happen only on closing a > form. > > Regards > > Richard > The signal #11, a.k.a. "Segmentation fault" means that there is a bug somewhere in Gambas (or in a library it uses). To fix it, send me your project and explain me how to reproduce the bug. If you can't reproduce the bug, or cannot send me your project, you can: - Try to isolate the crash in a small sub-project, and send me that sub-project. - Allows core dumps, use gdb to get the backtrace information, and send me that backtrace. You should have Gambas compiled with debugging information for that. See the troubleshooting section of the web site for more details. - Use valgrind: this tool will tell you exactly where something wrong happened in the program. Send me the valgrind output then. You should have Gambas compiled with debugging information too. Regards, -- Benoit Minisini From gambas at ...1... Mon Nov 24 22:48:32 2008 From: gambas at ...1... (Benoit Minisini) Date: Mon, 24 Nov 2008 22:48:32 +0100 Subject: [Gambas-user] Signal 11 with wrong syntax 1703 In-Reply-To: <200811181059.36359.rterry@...1946...> References: <200811181059.36359.rterry@...1946...> Message-ID: <200811242248.33023.gambas@...1...> On mardi 18 novembre 2008, richard terry wrote: > I put in this typo not remembering the item key was a string > -> signall 11 crash. > > Str(lvwLabRequests.Item.key + 1) > > Regards > > Richard > This bug should have been fixed in revision #1716. Regards, -- Benoit Minisini From rterry at ...1946... Tue Nov 25 00:41:07 2008 From: rterry at ...1946... (richard terry) Date: Tue, 25 Nov 2008 10:41:07 +1100 Subject: [Gambas-user] Tracking down Signal 11's In-Reply-To: <200811242247.54137.gambas@...1...> References: <200811250747.23389.rterry@...1946...> <200811242247.54137.gambas@...1...> Message-ID: <200811251041.07881.rterry@...1946...> On Tue, 25 Nov 2008 08:47:54 am you wrote: > On lundi 24 novembre 2008, richard terry wrote: > > I wondered if there was a method of tracking down a signal 11 when one > > really hasn't much clue where to start eg. may happen only on closing a > > form. > > > > Regards > > > > Richard > > The signal #11, a.k.a. "Segmentation fault" means that there is a bug > somewhere in Gambas (or in a library it uses). > > To fix it, send me your project and explain me how to reproduce the bug. > > If you can't reproduce the bug, or cannot send me your project, you can: > > - Try to isolate the crash in a small sub-project, and send me that > sub-project. > > - Allows core dumps, use gdb to get the backtrace information Can you explain how to do this? > , and send me > that backtrace. You should have Gambas compiled with debugging information ?how to set a flag to do this > for that. See the troubleshooting section of the web site for more details. Sorry for being so thick but I cannot find that page. I've looked at: http://gambasdoc.org/help/ and searched it with google but can't find anything specific, so Whatis the address to the page: > > - Use valgrind: this tool will tell you exactly where something wrong > happened in the program. Send me the valgrind output then. I've installed that, will have to learn how to use it. > You should have > Gambas compiled with debugging information too. > > Regards, Thanks. From rterry at ...1946... Tue Nov 25 00:44:01 2008 From: rterry at ...1946... (richard terry) Date: Tue, 25 Nov 2008 10:44:01 +1100 Subject: [Gambas-user] Libtool and gambas compilation Message-ID: <200811251044.01231.rterry@...1946...> The help page states this: This package was done with the following versions of GNU tools: * automake 1.9.4 * autoconf 2.59 * libtool 1.5.12 Apparently, Gambas does not compile with libtool >= 2.0. However my libtool is this: libtool 2.2.6a-1 And it compiles fine, so maybe this page needs updating? Regards Richard From gambas at ...1... Tue Nov 25 01:16:36 2008 From: gambas at ...1... (Benoit Minisini) Date: Tue, 25 Nov 2008 01:16:36 +0100 Subject: [Gambas-user] Libtool and gambas compilation In-Reply-To: <200811251044.01231.rterry@...1946...> References: <200811251044.01231.rterry@...1946...> Message-ID: <200811250116.36806.gambas@...1...> On mardi 25 novembre 2008, richard terry wrote: > The help page states this: > > This package was done with the following versions of GNU tools: > > * automake 1.9.4 > * autoconf 2.59 > * libtool 1.5.12 > > Apparently, Gambas does not compile with libtool >= 2.0. > > However my libtool is this: > > libtool 2.2.6a-1 > > And it compiles fine, so maybe this page needs updating? > > Regards > > Richard > I put that because Gambas compilation broke on the last Ubuntu, and it was using libtool 2. So apparently the fault is not in libtool, but in Ubuntu... Can you post a full output of the configuration process? -- Benoit Minisini From e.cazzola at ...1176... Tue Nov 25 09:58:50 2008 From: e.cazzola at ...1176... (Emiliano Cazzola) Date: Tue, 25 Nov 2008 09:58:50 +0100 Subject: [Gambas-user] Ask About Report in Gambas In-Reply-To: <715741.62048.qm@...2004...> References: <715741.62048.qm@...2004...> Message-ID: <492BBE4A.2040604@...1176...> Leo, IReport is a java based software, you can find informations and tutorials (no Gambas examples) at this page: http://jasperforge.org/plugins/mwiki/index.php/Main_Page?group_id=83 I've used the Gambas xml component to parse the file produced by IReport and a customized version of PdfWriter to draw an save report in pdf format. As example i can send you my classes, with this framework you can produce report with images, barcode, subreport and use datas from database (at the moment not have chart support). Need more test, however work well and the usage is very simple. Emiliano. From eilert-sprachen at ...221... Tue Nov 25 11:06:27 2008 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Tue, 25 Nov 2008 11:06:27 +0100 Subject: [Gambas-user] Setting TableView to Row Message-ID: <492BCE23.9060009@...221...> Hi, is it possible to set TableView.Row from Code during runtime? Would be nice to make sure a certain row in the table is selected before the user begins working with it (e. g. to draw attention to this row). Just tried this IF po > -1 THEN mesListe.Row = po but nothing happened. It should trigger the click event of the TableView (mesListe) to show something, but I guess this isn't possible here, is it? Thanks for your ideas. Rolf From l.jumadi at ...626... Tue Nov 25 14:33:04 2008 From: l.jumadi at ...626... (L Jumadi) Date: Tue, 25 Nov 2008 20:33:04 +0700 Subject: [Gambas-user] SetProperty Virtual Object Dynamically Message-ID: <3b3b9f170811250533j48c6a726r11d809cae8bb81a8@...627...> > On samedi 22 novembre 2008, L Jumadi wrote: >> On vendredi 21 novembre 2008, L Jumadi wrote: >> > I just want to know wheter gambas can set property inside a virtual >> > collection. For Example I try to set Rows.H of a Gridview, I try >> command >> > like this: >> > >> > Object.SetProperty(Obj,"Rows.H",10) >> > >> > (Where Obj is a Gridview, and of course "Rows.H" usually a variable) >> > >> > It return error. Is there any other way to do it? I have trouble to >> > read property too (Dynamically), but someway gambas debugger can read >> > it properly (I think it should use to read it dynamically). Am I >> > missing something? >> > >> >You can't do that with Object.SetProperty. But the question is: why do >> > you use Object.SetProperty? >> > >> >You can use an Object reference: >> > >> >DIM hObject AS Object = Obj >> >hObject.Rows.H = 10 >> >-- >> >Benoit Minisini >> >> Of course I do that because actually Rows.H is a data in a database. >> FYI: Right now I create a database driven application with gambas. So >> I never use any of gambas form (Can you Imagine that?!) but can >> display GUI like if we use a form. Everything driven by the data. From >> the data my program create the form dynamically. So user (actually >> it's me as programmer) can modify the property of an object just by >> editting the data. So far it going well until i want to modify the >> rows.h. May be I can intercept that with some other code, but in the >> future if there is many virtual object like this I must code it one by >> one. So if there any solution for this I can set other "maybe in the >> future" virtual object. > > Then you can use the Eval() function: > > Dim hGridView As GridView > Dim cValue As New Collection > Dim sProp As String = "Row.H" > > cValue["This"] = hGridView > > Print Eval("This." & sProp, cValue) > -- > Benoit Minisini Ok, that's solve the Read property function, how about setproperty? can I use Eval? Or may be there is another way, tks. From rospolosco at ...152... Tue Nov 25 16:27:00 2008 From: rospolosco at ...152... (Stefano Palmeri) Date: Tue, 25 Nov 2008 16:27:00 +0100 Subject: [Gambas-user] Setting TableView to Row In-Reply-To: <492BCE23.9060009@...221...> References: <492BCE23.9060009@...221...> Message-ID: <200811251627.00786.rospolosco@...152...> Il marted? 25 novembre 2008 11:06:27 Rolf-Werner Eilert ha scritto: > Hi, > > is it possible to set TableView.Row from Code during runtime? > > Would be nice to make sure a certain row in the table is selected before > the user begins working with it (e. g. to draw attention to this row). > > Just tried this > > IF po > -1 THEN mesListe.Row = po > > but nothing happened. It should trigger the click event of the TableView > (mesListe) to show something, but I guess this isn't possible here, is it? > > Thanks for your ideas. > > Rolf > I'm not sure that I perfectly understood, but it should be: TableView1.MoveTo(1, 0) this selects and highlights the second row of a tableview. I use gb.qt. Bye, Stefano > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge Build the coolest Linux based applications with Moblin SDK & win > great prizes Grand prize is a trip for two to an Open Source event anywhere > in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From demosthenesk at ...626... Tue Nov 25 20:18:49 2008 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Tue, 25 Nov 2008 21:18:49 +0200 Subject: [Gambas-user] lblHelp issue In-Reply-To: <200811241934.14119.gambas@...1...> References: <200811202231.39008.gambas@...1...> <200811241934.14119.gambas@...1...> Message-ID: ok it was my misuse with the IDE. Thanks by the way! On Mon, Nov 24, 2008 at 8:34 PM, Benoit Minisini < gambas at ...1...> wrote: > On lundi 24 novembre 2008, Demosthenes Koptsis wrote: > > i attach a screenshot. > > > > > > The help panel does not resize automatically, you must enlarge it by hand > to > see the remaining text. > > Regards, > > -- > Benoit Minisini > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge > Build the coolest Linux based applications with Moblin SDK & win great > prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- ???? ???? ?? ?????!!! Regards, Demosthenes Koptsis From david_villalobos_c at ...43... Wed Nov 26 02:23:51 2008 From: david_villalobos_c at ...43... (David Villalobos Cambronero) Date: Tue, 25 Nov 2008 17:23:51 -0800 (PST) Subject: [Gambas-user] Error in DatePicker Message-ID: <736706.24821.qm@...1782...> Hi All, I found an error in the datepicker control, it allows to change the date even it is disabled, attached an example. Benoit, can you validate, please? Regards -- David -------------- next part -------------- A non-text attachment was scrubbed... Name: Error.DatePicker-0.0.1.tar.gz Type: application/x-gzip Size: 7679 bytes Desc: not available URL: From david_villalobos_c at ...43... Wed Nov 26 02:26:27 2008 From: david_villalobos_c at ...43... (David Villalobos Cambronero) Date: Tue, 25 Nov 2008 17:26:27 -0800 (PST) Subject: [Gambas-user] Gambas3 looks strange in Mandriva 2009.0 Message-ID: <183904.10964.qm@...1655...> Hi all, I have installed Gambas 3 in my Mandriva 2009, but it looks very strange (attached some screen shots), does anybody knows why? Or I'm doing something wrong? Regards -- David -------------- next part -------------- A non-text attachment was scrubbed... Name: Gambas-Shot-03 Type: application/octet-stream Size: 86351 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Gambas-Shot-02 Type: application/octet-stream Size: 7138 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Gambas-Shot-01 Type: application/octet-stream Size: 42213 bytes Desc: not available URL: From gambas at ...1... Wed Nov 26 02:57:27 2008 From: gambas at ...1... (Benoit Minisini) Date: Wed, 26 Nov 2008 02:57:27 +0100 Subject: [Gambas-user] Gambas3 looks strange in Mandriva 2009.0 In-Reply-To: <183904.10964.qm@...1655...> References: <183904.10964.qm@...1655...> Message-ID: <200811260257.27690.gambas@...1...> On mercredi 26 novembre 2008, David Villalobos Cambronero wrote: > Hi all, I have installed Gambas 3 in my Mandriva 2009, but it looks very > strange (attached some screen shots), does anybody knows why? Or I'm doing > something wrong? > > Regards > > > -- > David I suppose you don't use KDE, so the QT library uses its default widget theme and colors? -- Benoit Minisini From the.at.robert at ...626... Wed Nov 26 05:01:45 2008 From: the.at.robert at ...626... (Robert Moss) Date: Tue, 25 Nov 2008 20:01:45 -0800 Subject: [Gambas-user] Using an Image in a PictureBox or help with my issue In-Reply-To: <9fb6e46c0811240958i600936c8ma2cb03570a9ce2bb@...627...> References: <49292750.4000902@...1909...> <9fb6e46c0811240958i600936c8ma2cb03570a9ce2bb@...627...> Message-ID: I see. That's a little more complicated than I would have liked, but it's a good solution. Is there anyway I can make myObj an alias for PicBox.Image ? like Dim myImg as Image myImg = PicBox.Image Would that make a copy or assign myImg PicBox.Image's reference On Mon, Nov 24, 2008 at 9:58 AM, John Harrold wrote: > Hi > > Load the image into the picturebox like: > > PictureBox1.Picture = Picture.load("images/bookmark.png") (Here you use > the > path and filename to your image.) > > Then you can do the following: > > Message(Str(PictureBox1.Picture.Image[x, y])) > > Budgieboy > > 2008/11/23 Doriano Blengino > > > Robert Moss ha scritto: > > > I need to use an Image because i need to be able to get pixel data (ie > > read > > > the color values in an image) via Image[x,y]. > > > I would also like this image to be visible on screen, but the only box > > i've > > > found is PictureBox, which uses a picture, and it will not load an > image. > > > (and pictures dont do pic[x,y]) > > > > > > So I'd like to do: > > > 'PictureBox on form > > > Dim i as Image > > > > > > i = Image.Load("Myfile.jpg") > > > > > > PicBox1.Picture = i 'this is where error comes obviously as it wants a > > > picture, but i need to use images ^_^ > > > > > May be... picbox1.picture = i.picture? (I didn't try) > > > > Cheers, > > > > -- > > Doriano Blengino > > > > "Listen twice before you speak. > > This is why we have two ears, but only one mouth." > > > > > > ------------------------------------------------------------------------- > > This SF.Net email is sponsored by the Moblin Your Move Developer's > > challenge > > Build the coolest Linux based applications with Moblin SDK & win great > > prizes > > Grand prize is a trip for two to an Open Source event anywhere in the > world > > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge > Build the coolest Linux based applications with Moblin SDK & win great > prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From eilert-sprachen at ...221... Wed Nov 26 10:11:04 2008 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Wed, 26 Nov 2008 10:11:04 +0100 Subject: [Gambas-user] Setting TableView to Row In-Reply-To: <200811251627.00786.rospolosco@...152...> References: <492BCE23.9060009@...221...> <200811251627.00786.rospolosco@...152...> Message-ID: <492D12A8.3080602@...221...> Stefano Palmeri schrieb: > Il marted? 25 novembre 2008 11:06:27 Rolf-Werner Eilert ha scritto: >> Hi, >> >> is it possible to set TableView.Row from Code during runtime? >> >> Would be nice to make sure a certain row in the table is selected before >> the user begins working with it (e. g. to draw attention to this row). >> >> Just tried this >> >> IF po > -1 THEN mesListe.Row = po >> >> but nothing happened. It should trigger the click event of the TableView >> (mesListe) to show something, but I guess this isn't possible here, is it? >> >> Thanks for your ideas. >> >> Rolf >> > > I'm not sure that I perfectly understood, but it should be: > > TableView1.MoveTo(1, 0) Ok, I didn't perfectly express my thoughts :-) The question was how to get the event as if the user had clicked the row. If I do it by code the way you describe it, the click event isn't raised, so I will have to take care the other SUB is called then. > I use gb.qt. So do I... And do you know a way to scroll the tableview down to a new entry to make it visible WITHOUT selecting the row? I tried TableView.Row = 17 'no problem, works like MoveTo TableView.Current.EnsureVisible 'that runs good TableView.Row = -1 'that destroys the selection I just want to show the user "here is something new, please click me!" without setting the selection to the line. Regards, Rolf From rospolosco at ...152... Wed Nov 26 12:09:12 2008 From: rospolosco at ...152... (Stefano Palmeri) Date: Wed, 26 Nov 2008 12:09:12 +0100 Subject: [Gambas-user] Setting TableView to Row In-Reply-To: <492D12A8.3080602@...221...> References: <492BCE23.9060009@...221...> <200811251627.00786.rospolosco@...152...> <492D12A8.3080602@...221...> Message-ID: <200811261209.12375.rospolosco@...152...> Il mercoled? 26 novembre 2008 10:11:04 Rolf-Werner Eilert ha scritto: > Stefano Palmeri schrieb: > > Il marted? 25 novembre 2008 11:06:27 Rolf-Werner Eilert ha scritto: > >> Hi, > >> > >> is it possible to set TableView.Row from Code during runtime? > >> > >> Would be nice to make sure a certain row in the table is selected before > >> the user begins working with it (e. g. to draw attention to this row). > >> > >> Just tried this > >> > >> IF po > -1 THEN mesListe.Row = po > >> > >> but nothing happened. It should trigger the click event of the TableView > >> (mesListe) to show something, but I guess this isn't possible here, is > >> it? > >> > >> Thanks for your ideas. > >> > >> Rolf > > > > I'm not sure that I perfectly understood, but it should be: > > > > TableView1.MoveTo(1, 0) > > Ok, I didn't perfectly express my thoughts :-) The question was how to > get the event as if the user had clicked the row. If I do it by code the > way you describe it, the click event isn't raised, so I will have to > take care the other SUB is called then. > > > I use gb.qt. > > So do I... > > And do you know a way to scroll the tableview down to a new entry to > make it visible WITHOUT selecting the row? I tried > > TableView.Row = 17 'no problem, works like MoveTo > TableView.Current.EnsureVisible 'that runs good > TableView.Row = -1 'that destroys the selection > > I just want to show the user "here is something new, please click me!" > without setting the selection to the line. > > > Regards, > > Rolf > Ok, I'm definitevely stupid because I don't understand. I've attached a little example. There's a Tableview and a Button. Pressing the button you add a new row, that is shown to the user but NOT selected. So, run my example, and write some comments about "what to do, when to do, where to do". Using the example we have a common project to work on. > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge Build the coolest Linux based applications with Moblin SDK & win > great prizes Grand prize is a trip for two to an Open Source event anywhere > in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > 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: table-0.0.1.tar.gz Type: application/x-tgz Size: 7943 bytes Desc: not available URL: From david_villalobos_c at ...43... Wed Nov 26 13:12:42 2008 From: david_villalobos_c at ...43... (David Villalobos Cambronero) Date: Wed, 26 Nov 2008 04:12:42 -0800 (PST) Subject: [Gambas-user] Gambas3 looks strange in Mandriva 2009.0 References: <183904.10964.qm@...1655...> <200811260257.27690.gambas@...1...> Message-ID: <504986.69240.qm@...1657...> Mmmmm nop, I use KDE, don't like GTK. I installed Gambas as always do, is there a clue to install Gambas 3 in Mandriva 2009.0, or what can we do to ensure I'm doing the correct thing? Regards. -- David ----- Original Message ---- From: Benoit Minisini To: mailing list for gambas users Sent: Tuesday, November 25, 2008 7:57:27 PM Subject: Re: [Gambas-user] Gambas3 looks strange in Mandriva 2009.0 On mercredi 26 novembre 2008, David Villalobos Cambronero wrote: > Hi all, I have installed Gambas 3 in my Mandriva 2009, but it looks very > strange (attached some screen shots), does anybody knows why? Or I'm doing > something wrong? > > Regards > > > -- > David I suppose you don't use KDE, so the QT library uses its default widget theme and colors? -- Benoit Minisini ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From gambas at ...1... Wed Nov 26 14:43:30 2008 From: gambas at ...1... (Benoit Minisini) Date: Wed, 26 Nov 2008 14:43:30 +0100 Subject: [Gambas-user] Gambas3 looks strange in Mandriva 2009.0 In-Reply-To: <504986.69240.qm@...1657...> References: <183904.10964.qm@...1655...> <200811260257.27690.gambas@...1...> <504986.69240.qm@...1657...> Message-ID: <200811261443.30388.gambas@...1...> On mercredi 26 novembre 2008, David Villalobos Cambronero wrote: > Mmmmm nop, I use KDE, I mean, KDE 3 or KDE 4 ? -- Benoit Minisini From david_villalobos_c at ...43... Wed Nov 26 15:55:29 2008 From: david_villalobos_c at ...43... (David Villalobos Cambronero) Date: Wed, 26 Nov 2008 06:55:29 -0800 (PST) Subject: [Gambas-user] Gambas3 looks strange in Mandriva 2009.0 References: <183904.10964.qm@...1655...> <200811260257.27690.gambas@...1...> <504986.69240.qm@...1657...> <200811261443.30388.gambas@...1...> Message-ID: <726228.98401.qm@...1658...> Well, I think KDE 4, the one included in Mandriva 2009 by default. Regards -- David ----- Original Message ---- From: Benoit Minisini To: mailing list for gambas users Sent: Wednesday, November 26, 2008 7:43:30 AM Subject: Re: [Gambas-user] Gambas3 looks strange in Mandriva 2009.0 On mercredi 26 novembre 2008, David Villalobos Cambronero wrote: > Mmmmm nop, I use KDE, I mean, KDE 3 or KDE 4 ? -- Benoit Minisini ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From gambas at ...1... Wed Nov 26 16:07:11 2008 From: gambas at ...1... (Benoit Minisini) Date: Wed, 26 Nov 2008 16:07:11 +0100 Subject: [Gambas-user] Gambas3 looks strange in Mandriva 2009.0 In-Reply-To: <726228.98401.qm@...1658...> References: <183904.10964.qm@...1655...> <200811261443.30388.gambas@...1...> <726228.98401.qm@...1658...> Message-ID: <200811261607.11519.gambas@...1...> On mercredi 26 novembre 2008, David Villalobos Cambronero wrote: > Well, I think KDE 4, the one included in Mandriva 2009 by default. > > Regards > > > -- > David > So KDE3 is not installed, and QT3 uses its default widget and color style! Run /usr/lib/qt3/bin/qtconfig and configure the qt3 library. Regards, -- Benoit Minisini From eilert-sprachen at ...221... Wed Nov 26 17:50:01 2008 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Wed, 26 Nov 2008 17:50:01 +0100 Subject: [Gambas-user] Setting TableView to Row In-Reply-To: <200811261209.12375.rospolosco@...152...> References: <492BCE23.9060009@...221...> <200811251627.00786.rospolosco@...152...> <492D12A8.3080602@...221...> <200811261209.12375.rospolosco@...152...> Message-ID: <492D7E39.5030209@...221...> Stefano Palmeri schrieb: > Il mercoled? 26 novembre 2008 10:11:04 Rolf-Werner Eilert ha scritto: >> Stefano Palmeri schrieb: >>> Il marted? 25 novembre 2008 11:06:27 Rolf-Werner Eilert ha scritto: >>>> Hi, >>>> >>>> is it possible to set TableView.Row from Code during runtime? >>>> >>>> Would be nice to make sure a certain row in the table is selected before >>>> the user begins working with it (e. g. to draw attention to this row). >>>> >>>> Just tried this >>>> >>>> IF po > -1 THEN mesListe.Row = po >>>> >>>> but nothing happened. It should trigger the click event of the TableView >>>> (mesListe) to show something, but I guess this isn't possible here, is >>>> it? >>>> >>>> Thanks for your ideas. >>>> >>>> Rolf >>> I'm not sure that I perfectly understood, but it should be: >>> >>> TableView1.MoveTo(1, 0) >> Ok, I didn't perfectly express my thoughts :-) The question was how to >> get the event as if the user had clicked the row. If I do it by code the >> way you describe it, the click event isn't raised, so I will have to >> take care the other SUB is called then. >> >>> I use gb.qt. >> So do I... >> >> And do you know a way to scroll the tableview down to a new entry to >> make it visible WITHOUT selecting the row? I tried >> >> TableView.Row = 17 'no problem, works like MoveTo >> TableView.Current.EnsureVisible 'that runs good >> TableView.Row = -1 'that destroys the selection >> >> I just want to show the user "here is something new, please click me!" >> without setting the selection to the line. >> >> >> Regards, >> >> Rolf >> > > Ok, I'm definitevely stupid because I don't understand. No you aren't :-) I am... Thanks for your little example. It performs well, just as expected... in Gambas 2. My project still is in Gambas 1, an older one which I didn't have the time yet to convert to Gambas 2. So that seems to be the reason, the TableView simply seems to react different in those versions, more clever in Gambas 2. I cannot persuade it to react like this in Gambas 1. If you add TableView.Row = -1, it jumps back to the beginning of the list. Ok, I'll keep it like TableView.MoveTo(position, 0) TableView.EnsureVisible which sets the blue selection on that line and makes it a bit visible (really only a bit in my app, but one can see something...) And the next step will be to make a little window appear for a few seconds or some other hint somewhere around there saying "You got something new to look for". Anyway, thanks a lot for your help! Rolf From rterry at ...1946... Wed Nov 26 21:33:06 2008 From: rterry at ...1946... (richard terry) Date: Thu, 27 Nov 2008 07:33:06 +1100 Subject: [Gambas-user] Charts and Graphing In-Reply-To: <6324a42a0804010136q280d2d11sf054e06856a8a2d2@...627...> References: <47F1C682.8040500@...151...> <6324a42a0804010136q280d2d11sf054e06856a8a2d2@...627...> Message-ID: <200811270733.06381.rterry@...1946...> I wondered what the status of the Chart component was. I only have one old email Fabien wrote in reply to a question on this back in April. Is it being actively developed. Does anyone have experience/code in simple graphing. My program can now save things like downloaded hl7 pathology results, blood pressures etc, and I want to be able to re-display as graphs when I need them. I have looked at the current do-laboriously-by-hand example already, but the hold demo of the chart component that fabian was developing looked to have more general application. Regards Richard From nkoch22 at ...626... Thu Nov 27 00:37:36 2008 From: nkoch22 at ...626... (Nicolas Koch) Date: Thu, 27 Nov 2008 02:37:36 +0300 Subject: [Gambas-user] ComboBox Error when ComboBox.Remove("1") / possible bug in gb.gtk? Message-ID: <73abb3e80811261537y68b42f31q9e742ca761d159b8@...627...> Hello Gambas Users, Ok an interesting problem I've noticed in gb.gtk or with gb.gui. If you have a ComboBox with items in it and you try to hide one of the items from listing invoking ComboBox1.Remove("1") you'll get this error. (test 26729): Gtk-WARNING **: gtktreemodel.c:429: Negative numbers in path -1 passed to gtk_tree_path_new_from_string The reason why I am trying to hide the hidden folders beginning with . but show the non hidden folders in the ComboBox1 Although the console spits out this error it does what it is supposed to and removes the hidden folder. There is no error on gb.QT and works with the same code. Without ComboBox1.Remove("1") the error disappears and shows hidden folders like the following .data save pictures tmp With ComboBox1.Remove("1") the error shows, but works save pictures tmp Here is the code: PUBLIC $DIR AS String PUBLIC sPath AS String 'PRIVATE SHOW_HIDDEN_FILES AS Boolean PUBLIC SUB sPath($FILE AS String) sPath = "~/src/test" ComboBox11.Clear FOR EACH $DIR IN Dir(sPath, "*") ComboBox1.Add($DIR) NEXT ComboBox1.Remove("1") END Is there a better way of doing this? Thanks in advance, Nick From gambas at ...1... Thu Nov 27 00:50:48 2008 From: gambas at ...1... (Benoit Minisini) Date: Thu, 27 Nov 2008 00:50:48 +0100 Subject: [Gambas-user] ComboBox Error when ComboBox.Remove("1") / possible bug in gb.gtk? In-Reply-To: <73abb3e80811261537y68b42f31q9e742ca761d159b8@...627...> References: <73abb3e80811261537y68b42f31q9e742ca761d159b8@...627...> Message-ID: <200811270050.48605.gambas@...1...> On jeudi 27 novembre 2008, Nicolas Koch wrote: > Hello Gambas Users, > > Ok an interesting problem I've noticed in gb.gtk or with gb.gui. If > you have a ComboBox with items in it and you try to hide one of the > items from listing invoking ComboBox1.Remove("1") you'll get this > error. > > (test 26729): Gtk-WARNING **: gtktreemodel.c:429: Negative numbers in > path -1 passed to gtk_tree_path_new_from_string > > The reason why I am trying to hide the hidden folders beginning with . > but show the non hidden folders in the ComboBox1 > > Although the console spits out this error it does what it is supposed > to and removes the hidden folder. > > There is no error on gb.QT and works with the same code. > I don't have the warning, so I think you should upgrade to Gambas 2.9, or wait for Gambas 2.10. > Without ComboBox1.Remove("1") the error disappears and shows hidden > folders like the following > > .data > save > pictures > tmp > > With ComboBox1.Remove("1") the error shows, but works > > save > pictures > tmp > > Here is the code: > > PUBLIC $DIR AS String > PUBLIC sPath AS String > 'PRIVATE SHOW_HIDDEN_FILES AS Boolean > > PUBLIC SUB sPath($FILE AS String) > sPath = "~/src/test" > > ComboBox11.Clear > FOR EACH $DIR IN Dir(sPath, "*") > ComboBox1.Add($DIR) > NEXT > ComboBox1.Remove("1") > > END > > > Is there a better way of doing this? Many. :-) The argument of Remove is an integer, not a string. You should not create public global variables when you just need local variables. You can do: ComboBox.List = Dir(sPath) Regards, -- Benoit Minisini From gambas at ...1... Thu Nov 27 00:58:32 2008 From: gambas at ...1... (Benoit Minisini) Date: Thu, 27 Nov 2008 00:58:32 +0100 Subject: [Gambas-user] Error in DatePicker In-Reply-To: <736706.24821.qm@...1782...> References: <736706.24821.qm@...1782...> Message-ID: <200811270058.32819.gambas@...1...> On mercredi 26 novembre 2008, David Villalobos Cambronero wrote: > Hi All, I found an error in the datepicker control, it allows to change the > date even it is disabled, attached an example. > > Benoit, can you validate, please? > > Regards > > > -- > David I confirm. The next commit will have a fix. Regards, -- Benoit Minisini From nkoch22 at ...626... Thu Nov 27 01:06:06 2008 From: nkoch22 at ...626... (Nicolas Koch) Date: Thu, 27 Nov 2008 03:06:06 +0300 Subject: [Gambas-user] ComboBox Error when ComboBox.Remove("1") / possible bug in gb.gtk? In-Reply-To: <200811270050.48605.gambas@...1...> References: <73abb3e80811261537y68b42f31q9e742ca761d159b8@...627...> <200811270050.48605.gambas@...1...> Message-ID: <73abb3e80811261606t32210d6fp750f1bd09e7af43d@...627...> I am in Gambas 2.9 And even if I do ComboBox.List = Dir(sPath) hidden folders show. I was trying to hide those and ComboBox1.Remove("1") was the only way I could find that works. It works but spits out error as I said. Nick On Thu, Nov 27, 2008 at 2:50 AM, Benoit Minisini wrote: > On jeudi 27 novembre 2008, Nicolas Koch wrote: >> Hello Gambas Users, >> >> Ok an interesting problem I've noticed in gb.gtk or with gb.gui. If >> you have a ComboBox with items in it and you try to hide one of the >> items from listing invoking ComboBox1.Remove("1") you'll get this >> error. >> >> (test 26729): Gtk-WARNING **: gtktreemodel.c:429: Negative numbers in >> path -1 passed to gtk_tree_path_new_from_string >> >> The reason why I am trying to hide the hidden folders beginning with . >> but show the non hidden folders in the ComboBox1 >> >> Although the console spits out this error it does what it is supposed >> to and removes the hidden folder. >> >> There is no error on gb.QT and works with the same code. >> > > I don't have the warning, so I think you should upgrade to Gambas 2.9, or wait > for Gambas 2.10. > >> Without ComboBox1.Remove("1") the error disappears and shows hidden >> folders like the following >> >> .data >> save >> pictures >> tmp >> >> With ComboBox1.Remove("1") the error shows, but works >> >> save >> pictures >> tmp >> >> Here is the code: >> >> PUBLIC $DIR AS String >> PUBLIC sPath AS String >> 'PRIVATE SHOW_HIDDEN_FILES AS Boolean >> >> PUBLIC SUB sPath($FILE AS String) >> sPath = "~/src/test" >> >> ComboBox11.Clear >> FOR EACH $DIR IN Dir(sPath, "*") >> ComboBox1.Add($DIR) >> NEXT >> ComboBox1.Remove("1") >> >> END >> >> >> Is there a better way of doing this? > > Many. :-) > > The argument of Remove is an integer, not a string. > > You should not create public global variables when you just need local > variables. > > You can do: ComboBox.List = Dir(sPath) > > Regards, > > -- > Benoit Minisini > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Thu Nov 27 01:09:48 2008 From: gambas at ...1... (Benoit Minisini) Date: Thu, 27 Nov 2008 01:09:48 +0100 Subject: [Gambas-user] ComboBox Error when ComboBox.Remove("1") / possible bug in gb.gtk? In-Reply-To: <73abb3e80811261606t32210d6fp750f1bd09e7af43d@...627...> References: <73abb3e80811261537y68b42f31q9e742ca761d159b8@...627...> <200811270050.48605.gambas@...1...> <73abb3e80811261606t32210d6fp750f1bd09e7af43d@...627...> Message-ID: <200811270109.48243.gambas@...1...> On jeudi 27 novembre 2008, Nicolas Koch wrote: > I am in Gambas 2.9 > > And even if I do ComboBox.List = Dir(sPath) hidden folders show. Of course: you must put Dir(sPath) in a string array, removes elements from the array, and assing the array to ComboBox1.List. > I > was trying to hide those and ComboBox1.Remove("1") was the only way I > could find that works. It works but spits out error as I said. ComboBox1.Remove("1") will remove the second element of the ComboBox. And you must use 1, not "1" which is a string. You are lucky, because Gambas automatically converts string to numbers when he needs. Regards, -- Benoit Minisini From ronstk at ...239... Thu Nov 27 01:20:48 2008 From: ronstk at ...239... (Ron_1st) Date: Thu, 27 Nov 2008 01:20:48 +0100 Subject: [Gambas-user] ComboBox Error when ComboBox.Remove("1") / possible bug in gb.gtk? In-Reply-To: <73abb3e80811261537y68b42f31q9e742ca761d159b8@...627...> References: <73abb3e80811261537y68b42f31q9e742ca761d159b8@...627...> Message-ID: <200811270120.48567.ronstk@...239...> On Thursday 27 November 2008, Nicolas Koch wrote: > PUBLIC SUB sPath($FILE AS String) > ? sPath = "~/src/test" > > ? ComboBox11.Clear > ? FOR EACH $DIR IN Dir(sPath, "*") > ? ? ComboBox1.Add($DIR) if left$($dir,1)<>"." then > ? NEXT > ? ComboBox1.Remove("1") > > END > FOR EACH $DIR IN Dir(sPath, "*") if left$($DIR,1)<>"." then ComboBox1.Add($DIR) NEXT Best regards Ron_1st From nkoch22 at ...626... Thu Nov 27 01:47:39 2008 From: nkoch22 at ...626... (Nicolas Koch) Date: Thu, 27 Nov 2008 03:47:39 +0300 Subject: [Gambas-user] ComboBox Error when ComboBox.Remove("1") / possible bug in gb.gtk? In-Reply-To: <200811270120.48567.ronstk@...239...> References: <73abb3e80811261537y68b42f31q9e742ca761d159b8@...627...> <200811270120.48567.ronstk@...239...> Message-ID: <73abb3e80811261647o1ba2f229u58125fe7d2ab9f6b@...627...> > FOR EACH $DIR IN Dir(sPath, "*") > if left$($DIR,1)<>"." then ComboBox1.Add($DIR) > NEXT Thanks Ron and Thank you for schooling me Benoit for explaining to me what I was doing wrong. Best Regards, Nick From wdahn at ...1000... Thu Nov 27 04:14:43 2008 From: wdahn at ...1000... (Werner) Date: Thu, 27 Nov 2008 11:14:43 +0800 Subject: [Gambas-user] Charts and Graphing In-Reply-To: <200811270733.06381.rterry@...1946...> References: <47F1C682.8040500@...151...> <6324a42a0804010136q280d2d11sf054e06856a8a2d2@...627...> <200811270733.06381.rterry@...1946...> Message-ID: <492E10A3.7020809@...1000...> richard terry wrote: > I wondered what the status of the Chart component was. > > I only have one old email Fabien wrote in reply to a question on this back in > April. Is it being actively developed. > > Does anyone have experience/code in simple graphing. > > My program can now save things like downloaded hl7 pathology results, blood > pressures etc, and I want to be able to re-display as graphs when I need > them. > > I have looked at the current do-laboriously-by-hand example already, but the > hold demo of the chart component that fabian was developing looked to have > more general application. > > Regards > > Richard > I use an external program, xmgrace. xmgrace is a very powerful and stable graph program, although the user interface sucks no end. However, when it's running in the background controlled by another program that doesn't matter. I'm very happy with the results. If you're interested I'll be happy to send you the code. Best Regards Werner From rterry at ...1946... Thu Nov 27 04:41:46 2008 From: rterry at ...1946... (richard terry) Date: Thu, 27 Nov 2008 14:41:46 +1100 Subject: [Gambas-user] Chart component - error messages Message-ID: <200811271441.46774.rterry@...1946...> Whilst attempting to use this class I get: '_Caxes' class is missing Also help (both local and on the web site) seems to be missing. file:///usr/share/gambas3/help/help/comp/gb+chart/chart/type.html Any help appreciated. Richard From gambas.fr at ...626... Thu Nov 27 08:42:23 2008 From: gambas.fr at ...626... (Fabien Bodard) Date: Thu, 27 Nov 2008 08:42:23 +0100 Subject: [Gambas-user] Chart component - error messages In-Reply-To: <200811271441.46774.rterry@...1946...> References: <200811271441.46774.rterry@...1946...> Message-ID: <6324a42a0811262342r486a5317tae19f60fc7dcc05a@...627...> hi richard, this componant is not yet finished. i've many work to do around, gambas .. and so many late to retreive. I think i'm not going to work on this part since january as i've promish to finsh the Gambasforge site before. Fabien Bodard 2008/11/27 richard terry : > Whilst attempting to use this class I get: > > '_Caxes' class is missing > > Also help (both local and on the web site) seems to be missing. > > file:///usr/share/gambas3/help/help/comp/gb+chart/chart/type.html > > Any help appreciated. > > Richard > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas.fr at ...626... Thu Nov 27 09:54:20 2008 From: gambas.fr at ...626... (Fabien Bodard) Date: Thu, 27 Nov 2008 09:54:20 +0100 Subject: [Gambas-user] Chart component - error messages In-Reply-To: <6324a42a0811262342r486a5317tae19f60fc7dcc05a@...627...> References: <200811271441.46774.rterry@...1946...> <6324a42a0811262342r486a5317tae19f60fc7dcc05a@...627...> Message-ID: <6324a42a0811270054h70ebb39q3701843e6969eeaf@...627...> http://gambasdoc.org/help/howto/makechart From gambas.fr at ...626... Thu Nov 27 10:12:10 2008 From: gambas.fr at ...626... (Fabien Bodard) Date: Thu, 27 Nov 2008 10:12:10 +0100 Subject: [Gambas-user] Chart component - error messages In-Reply-To: <6324a42a0811270054h70ebb39q3701843e6969eeaf@...627...> References: <200811271441.46774.rterry@...1946...> <6324a42a0811262342r486a5317tae19f60fc7dcc05a@...627...> <6324a42a0811270054h70ebb39q3701843e6969eeaf@...627...> Message-ID: <6324a42a0811270112k454694cs4739bb9261a14b48@...627...> Ok i've send a complete demo of the gb.chart capabilities... http://wwwgambasforge.net/datas/codes/chartsdemo-0.0.1.tar.gz Regards, Fabien Bodard 2008/11/27 Fabien Bodard : > http://gambasdoc.org/help/howto/makechart > From gambas.fr at ...626... Thu Nov 27 10:12:28 2008 From: gambas.fr at ...626... (Fabien Bodard) Date: Thu, 27 Nov 2008 10:12:28 +0100 Subject: [Gambas-user] Chart component - error messages In-Reply-To: <6324a42a0811270112k454694cs4739bb9261a14b48@...627...> References: <200811271441.46774.rterry@...1946...> <6324a42a0811262342r486a5317tae19f60fc7dcc05a@...627...> <6324a42a0811270054h70ebb39q3701843e6969eeaf@...627...> <6324a42a0811270112k454694cs4739bb9261a14b48@...627...> Message-ID: <6324a42a0811270112r30a60947ibb874c49662515a3@...627...> http://www.gambasforge.net/datas/codes/chartsdemo-0.0.1.tar.gz 2008/11/27 Fabien Bodard : > Ok i've send a complete demo of the gb.chart capabilities... > > http://wwwgambasforge.net/datas/codes/chartsdemo-0.0.1.tar.gz > > Regards, > Fabien Bodard > > 2008/11/27 Fabien Bodard : >> http://gambasdoc.org/help/howto/makechart >> > From demosthenesk at ...626... Thu Nov 27 10:32:20 2008 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Thu, 27 Nov 2008 11:32:20 +0200 Subject: [Gambas-user] To fast do..loops for process management! Message-ID: Hi dear list, I write a front-end for mpg123 mp3 console player in gambas2 but i came face to face with a bug and i need your help! i dont know if the bug is due to gambas or my writing code or mpg123 player's. The story is like this.... '### I have two public vars PUBLIC hProcess AS Process 'varProcess is a Process variable for SHELL command PUBLIC iNrPlayingSong AS Integer 'public var to hold the nr of playing song '### i execute a command to play mp3 songs ..... 'format sting command sCommand = "mpg123 -vC@ " & sPlaylistFile 'play in verbose mode (v), interactive (C), and load a playlist (@) 'execute command hProcess = SHELL sCommand FOR INPUT OUTPUT ..... '### previous track sub PUBLIC SUB btnPreviousTrack_Click() IF NOT IsNull(hProcess) THEN IF hProcess.State = 1 THEN PRINT #hProcess, "d" 'mpg123 recieve a keyboard "d" to go previous track ENDIF END '### next track sub PUBLIC SUB btnNextTrack_Click() IF NOT IsNull(hProcess) THEN IF hProcess.State = 1 THEN PRINT #hProcess, "f" 'mpg123 recieve a keyboard "f" to go next track ENDIF END '### NOTE, the previous SUBs are the same. They differ only to letters "f" and "d" '#### A wait sub for the system, see next! PUBLIC SUB WaitSystem() 'wait the system FMain.Mouse = 3 WAIT 0.05 FMain.Mouse = 0 END '########### So far with no bug, the code is working '### i write a sub if user click in playlist a list item = a mp3 track PUBLIC SUB lvwPlayList_DblClick() DIM iCounter AS Integer = iNrPlayingSong 'var get current playing song and also act as counter. iNrPlayingSong get its value from SUB Process_Read() IF NOT IsNull(lvwPlayList.Key) THEN '### This do..loop part working fine 'if user click an item with key greater than number of playing song IF (lvwPlayList.key + 1) > iCounter THEN 'go next track DO IF iCounter = (lvwPlayList.key + 1) THEN BREAK 'PRINT "Go next track" btnNextTrack_Click() INC iCounter LOOP ENDIF 'if user click an item with key smaller than number of playing song IF (lvwPlayList.key + 1) < iCounter THEN 'go previous track DO IF iCounter = (lvwPlayList.key + 1) THEN BREAK 'PRINT "Go previous track" btnPreviousTrack_Click() ' ### Now the strange bug '!FIXEME! #################################################################################### WaitSystem() '***!!!!!***---> ### [ -- i need to force a wait system sub to working correctly --- ] 'Probably there is a bug. 'the hProcess does not recieve the btnPreviousTrack_Click() command as recieves btnNextTrack_Click() 'The same code in btnNextTrack_Click() works fine. 'Sorry for the annoying bug. '!FIXEME! #################################################################################### DEC iCounter LOOP ENDIF ENDIF END '#################### To test this bug make a long playlist with up to 200 mp3s. if you check the two subs btnNextTrack_Click() and btnPreviousTrack_Click() are the same. If you check the two DO..LOOPs parts are the same, they only change in btnNextTrack_Click() and btnPreviousTrack_Click(). In first case the btnNextTrack_Click() works. In second case i need to force a wait to application to work the btnPreviousTrack_Click(). I test to PRINT the vars which they be read from Sub Read_Process and they are ok. Vars iNrPlayingSong, iCounter are OK. My conclusion is that hProcess cannot recieve so quickly the previous command from gambas2. So the questions now! Is this a bug of mpg123 player or a bug of gambas in process management? I attach my project if you want to look its strange bug. -- ???? ???? ?? ?????!!! Regards, Demosthenes Koptsis -------------- next part -------------- A non-text attachment was scrubbed... Name: gambas-mpg123player-src.tar.gz Type: application/x-gzip Size: 35281 bytes Desc: not available URL: From rterry at ...1946... Thu Nov 27 21:36:10 2008 From: rterry at ...1946... (richard terry) Date: Fri, 28 Nov 2008 07:36:10 +1100 Subject: [Gambas-user] Chart component - error messages In-Reply-To: <6324a42a0811270112k454694cs4739bb9261a14b48@...627...> References: <200811271441.46774.rterry@...1946...> <6324a42a0811270054h70ebb39q3701843e6969eeaf@...627...> <6324a42a0811270112k454694cs4739bb9261a14b48@...627...> Message-ID: <200811280736.10936.rterry@...1946...> On Thu, 27 Nov 2008 08:12:10 pm you wrote: Hi Fabian, thanks for the information and looking forward to the time when it is more complete. However, the link below seems invalid. Could you check and post me the correct one. Regards Ricard > Ok i've send a complete demo of the gb.chart capabilities... > > http://wwwgambasforge.net/datas/codes/chartsdemo-0.0.1.tar.gz > > Regards, > Fabien Bodard > > 2008/11/27 Fabien Bodard : > > http://gambasdoc.org/help/howto/makechart From rterry at ...1946... Thu Nov 27 21:42:08 2008 From: rterry at ...1946... (richard terry) Date: Fri, 28 Nov 2008 07:42:08 +1100 Subject: [Gambas-user] Chart component - error messages In-Reply-To: <6324a42a0811270112k454694cs4739bb9261a14b48@...627...> References: <200811271441.46774.rterry@...1946...> <6324a42a0811270054h70ebb39q3701843e6969eeaf@...627...> <6324a42a0811270112k454694cs4739bb9261a14b48@...627...> Message-ID: <200811280742.08448.rterry@...1946...> On Thu, 27 Nov 2008 08:12:10 pm you wrote: Ah, sorry, you just forgot the fullstop after www. Got the file. Regards Richard > Ok i've send a complete demo of the gb.chart capabilities... > > http://wwwgambasforge.net/datas/codes/chartsdemo-0.0.1.tar.gz > > Regards, > Fabien Bodard > > 2008/11/27 Fabien Bodard : > > http://gambasdoc.org/help/howto/makechart From rterry at ...1946... Thu Nov 27 21:44:21 2008 From: rterry at ...1946... (richard terry) Date: Fri, 28 Nov 2008 07:44:21 +1100 Subject: [Gambas-user] Chart component - error messages In-Reply-To: <6324a42a0811270112k454694cs4739bb9261a14b48@...627...> References: <200811271441.46774.rterry@...1946...> <6324a42a0811270054h70ebb39q3701843e6969eeaf@...627...> <6324a42a0811270112k454694cs4739bb9261a14b48@...627...> Message-ID: <200811280744.21136.rterry@...1946...> On Thu, 27 Nov 2008 08:12:10 pm you wrote: Ok, now getting the same error I described in a previous email - CAxes class missing, see the piccie. Regards Richard > Ok i've send a complete demo of the gb.chart capabilities... > > http://wwwgambasforge.net/datas/codes/chartsdemo-0.0.1.tar.gz > > Regards, > Fabien Bodard > > 2008/11/27 Fabien Bodard : > > http://gambasdoc.org/help/howto/makechart -------------- next part -------------- A non-text attachment was scrubbed... Name: chardemo_error.png Type: image/png Size: 12882 bytes Desc: not available URL: From almodook at ...2007... Sat Nov 29 00:32:43 2008 From: almodook at ...2007... (moon_walker) Date: Fri, 28 Nov 2008 15:32:43 -0800 (PST) Subject: [Gambas-user] Form does not get focus Message-ID: <20742005.post@...1379...> Hi Gurus, i have a problem again:-): PUBLIC SUB TableView3_Menu() DIM lform AS Form lform = NEW dataentry(did.Value, "fertilizer", tableview3.X, tableview3.Y) lform.showmodal END The resulting form do not get the focus upon the opening IF dataentry.skiptaskbar = TRUE. :-) Is this correct? Could you please somebody explain this. Thanks Attila -- View this message in context: http://www.nabble.com/Form-does-not-get-focus-tp20742005p20742005.html Sent from the gambas-user mailing list archive at Nabble.com. From budgieboy52 at ...1601... Sat Nov 29 14:07:02 2008 From: budgieboy52 at ...1601... (John Harrold) Date: Sat, 29 Nov 2008 13:07:02 +0000 Subject: [Gambas-user] Using an Image in a PictureBox or help with my issue In-Reply-To: References: <49292750.4000902@...1909...> <9fb6e46c0811240958i600936c8ma2cb03570a9ce2bb@...627...> Message-ID: <9fb6e46c0811290507yceb7259pbca651e75a8a4ed3@...627...> I'm no Gambas expert but as far as I understand you can't reference the image that way. you would need to do: DIM myImg as Image myImg=PicBox.Picture.Image Even then I think it will make a copy of the image and not be an alias. If you make changes to myImg to have them reflected in the original you would have to write back the image: PicBox.Picture.Image=myImg Dont think that makes things any easier. Budgieboy 2008/11/26 Robert Moss > I see. That's a little more complicated than I would have liked, but it's a > good solution. Is there anyway I can make myObj an alias for PicBox.Image ? > > like > Dim myImg as Image > myImg = PicBox.Image > > Would that make a copy or assign myImg PicBox.Image's reference > > > On Mon, Nov 24, 2008 at 9:58 AM, John Harrold >wrote: > > > Hi > > > > Load the image into the picturebox like: > > > > PictureBox1.Picture = Picture.load("images/bookmark.png") (Here you use > > the > > path and filename to your image.) > > > > Then you can do the following: > > > > Message(Str(PictureBox1.Picture.Image[x, y])) > > > > Budgieboy > > > > 2008/11/23 Doriano Blengino > > > > > Robert Moss ha scritto: > > > > I need to use an Image because i need to be able to get pixel data > (ie > > > read > > > > the color values in an image) via Image[x,y]. > > > > I would also like this image to be visible on screen, but the only > box > > > i've > > > > found is PictureBox, which uses a picture, and it will not load an > > image. > > > > (and pictures dont do pic[x,y]) > > > > > > > > So I'd like to do: > > > > 'PictureBox on form > > > > Dim i as Image > > > > > > > > i = Image.Load("Myfile.jpg") > > > > > > > > PicBox1.Picture = i 'this is where error comes obviously as it wants > a > > > > picture, but i need to use images ^_^ > > > > > > > May be... picbox1.picture = i.picture? (I didn't try) > > > > > > Cheers, > > > > > > -- > > > Doriano Blengino > > > > > > "Listen twice before you speak. > > > This is why we have two ears, but only one mouth." > > > > > > > > > > ------------------------------------------------------------------------- > > > This SF.Net email is sponsored by the Moblin Your Move Developer's > > > challenge > > > Build the coolest Linux based applications with Moblin SDK & win great > > > prizes > > > Grand prize is a trip for two to an Open Source event anywhere in the > > world > > > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > > > _______________________________________________ > > > Gambas-user mailing list > > > Gambas-user at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > ------------------------------------------------------------------------- > > This SF.Net email is sponsored by the Moblin Your Move Developer's > > challenge > > Build the coolest Linux based applications with Moblin SDK & win great > > prizes > > Grand prize is a trip for two to an Open Source event anywhere in the > world > > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge > Build the coolest Linux based applications with Moblin SDK & win great > prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From dfuchs at ...2000... Sat Nov 29 14:39:14 2008 From: dfuchs at ...2000... (dfuchs at ...2000...) Date: Sat, 29 Nov 2008 14:39:14 +0100 Subject: [Gambas-user] Creating a Gambas component In-Reply-To: References: Message-ID: <7FFF362038271F42A765BEF934C12AB80479C56B@...2001...> Thank you for your help and the interest you showed, As Benoit has suggested, any further discussions should take place in the developers' mailing list. But because Richard Terry has asked me: There will be a short tutorial on how to program graphical controls in Gambas, as far as I am a judge, in the component's documentation soon, and the component will include an abstract base class for graphical user controls. "Graphical" meaning that you use drawing methods to visualize your controls as I have done. Regards, Daniel From gambas at ...1... Sat Nov 29 20:25:21 2008 From: gambas at ...1... (Benoit Minisini) Date: Sat, 29 Nov 2008 20:25:21 +0100 Subject: [Gambas-user] Using an Image in a PictureBox or help with my issue In-Reply-To: <9fb6e46c0811290507yceb7259pbca651e75a8a4ed3@...627...> References: <9fb6e46c0811290507yceb7259pbca651e75a8a4ed3@...627...> Message-ID: <200811292025.21140.gambas@...1...> On samedi 29 novembre 2008, John Harrold wrote: > I'm no Gambas expert but as far as I understand you can't reference the > image that way. > > you would need to do: > > DIM myImg as Image > myImg=PicBox.Picture.Image > > Even then I think it will make a copy of the image and not be an alias. If > you make changes to myImg to have them reflected in the original you would > have to write back the image: > > PicBox.Picture.Image=myImg > > Dont think that makes things any easier. > > Budgieboy > To understand why thing are not easier, you must know that on X-Window systems, an image can be stored: - In the program (the process that uses the GUI), an "Image" in Gambas. - Or directly in the X-Window process, a "Picture" in Gambas. Alas, you can only use X-Window drawing commands on Pictures, not on Images. On the contrary, you can only access individual pixels on Images, not on Pictures. The Picture.Image and Image.Picture properties actually move the image data between the X-Window server and your program. It is a relatively heavy process, especially when the image is big. But there is no other way! This is not really true with gb.gtk, as in gb.gtk the conversion is not done when you use the Picture.Image or Image.Picture property, but only when it is really needed. For example, if you really access individual pixels, then the image data will be moved to your process. Not when you will use the Picture.Image property. I hope I was clear enough! Regards, -- Benoit Minisini From the.at.robert at ...626... Sun Nov 30 11:06:25 2008 From: the.at.robert at ...626... (Robert Moss) Date: Sun, 30 Nov 2008 02:06:25 -0800 Subject: [Gambas-user] Using a socket to download an image. Please Help ^_^ Message-ID: I am trying to get an image (or any binary data) downloaded from a website and into a jpg file. I expect I will need to use the Byte[] datatype, but I absolutely can NOT use Callbacks when the data comes in this time. Here is my example: DIM RequestString as string DIM sTotal as string DIM sBuf as string Sock.Connect("host",80) RequestString = MakeGetRequest("/imagesurl.jpg") 'returns a string like HTTP/1.1 GET /page... \r\n its all correct WRITE #Sock, RequestString, Len(RequestString) 'Code to wait for connection, etc is removed for brevity DO UNTIL(EOF(#Sock)) READ #Sock, sBuf, Lof(Sock) sTotal &= sBuf LOOP CLOSE #Sock And after I separate the Content of the reply and dump it to a file, its not readable, I presume this is because I am trying to write binary data as a string p1 = InStr(sTotal, "\r\n\r\n") ImgData = Mid(sTotal, p1) OPEN "localimg.jpg" FOR OUTPUT CREATE AS #myFile WRITE #myFile, ImgData, Len(ImgData) CLOSE #myFile Keep in mind, the http request looks something like HTTP/1.0 200 OK Header-X: Value1 Content-Type: image/jpeg AFdka;h3ijaf #RVA 'Image Data So I need a way to correctly write the binary data to a file without also including the content headers Thank you From doriano.blengino at ...1909... Sun Nov 30 11:39:37 2008 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Sun, 30 Nov 2008 11:39:37 +0100 Subject: [Gambas-user] Using a socket to download an image. Please Help ^_^ In-Reply-To: References: Message-ID: <49326D69.2030208@...1909...> Robert Moss ha scritto: > I am trying to get an image (or any binary data) downloaded from a website > and into a jpg file. I expect I will need to use the Byte[] datatype, but I > absolutely can NOT use Callbacks when the data comes in this time. > > ... > > DO UNTIL(EOF(#Sock)) > READ #Sock, sBuf, Lof(Sock) > sTotal &= sBuf > LOOP > > CLOSE #Sock > > > p1 = InStr(sTotal, "\r\n\r\n") > > ImgData = Mid(sTotal, p1) > > OPEN "localimg.jpg" FOR OUTPUT CREATE AS #myFile > WRITE #myFile, ImgData, Len(ImgData) > CLOSE #myFile > I think there is a problem with InStr(...,"\r\n\r\n"). By taking mid$(...,p1), you retain the two CRLFs, which are not good at the beginning of a jpeg file. You should get rid of the first 4 characters. May be there are still other problems, but this is one for sure. Regards, -- Doriano Blengino "Listen twice before you speak. This is why we have two ears, but only one mouth." From budgieboy52 at ...1601... Sun Nov 30 11:59:58 2008 From: budgieboy52 at ...1601... (John Harrold) Date: Sun, 30 Nov 2008 10:59:58 +0000 Subject: [Gambas-user] Regexpr appears not to be working Message-ID: <9fb6e46c0811300259t50b463e3m88af20c1ecfebd1f@...627...> Hi all I am experimenting with the PCRE class to understand more about regular expressions and Gambas in general I have created a form with two textboxes, one for text input the other for the regular expression text to test against. There are a number of labels for displaying results returned from the call to Regexp. Below is the commented code for the change event for the input textbox:txtInput. The issue I have is with the line marked ***. By looking at the PCRE class documentation it seems that the line should return a string. *PCRE Documentation on .SubMatches* *RegexpSubmatches (gb.pcre)* * .RegexpSubmatches contains the submatches returned from a Regexpmatch. You access it with the SubMatches property of the Regexp class. * * Each member of a .RegexpSubmatches collection simply contains the text of the corresponding submatch. For example, with a subject of "quick brown fox" and a pattern of "brown (\S+)", SubMatches[0] would contain "fox". * It does, however, complain with the following message: *Type mismatch: Wanted Number, Date or String, got .regexprSubMatches instead. * The message seems to me to suggest that an array of .RegexpSubMatches is being returned instead. I have tried to read this returned array into a variety of arrays (string and Object) but it always returns the above message. If I comment out the line I get no errors and the call to Regex returns Regex.Text, Regex.Offset and Regex.SubMatches.Count correctly. Am I understanding the way to use the Regexpr correctly or have I made a fundamental mistake somewhere? Could it be a bug? Budgieboy *Code for input textbox:* *PUBLIC SUB txtInput_Change() DIM Regex AS Regexp IF bCleared = TRUE THEN 'Flag to prevent error if try to send empty string to Regex bCleared = FALSE ELSE IF txtInput.Text = "" THEN 'We have empty input textbox, usually from delete/backspace txtInput.BackColor = Color.RGB(255, 165, 204) RETURN ENDIF Regex = NEW Regexp(txtInput.Text, txtRegex.Text) 'Call Regexpr lblResult.Caption = Regex.Text lblMatch.Caption = Regex.SubMatches.Count lblOffset.Caption = Regex.Offset 'This line below causes error: 'Type mismatch: Wanted Number, Date or String, got .regexprSubMatches instead *** IF Regex.SubMatches > 0 THEN lblSubMatches.Caption = Regex.SubMatches[0].Text 'Indicate success or failure by changing input textbox backcolor IF Regex.Text = "" THEN txtInput.BackColor = Color.RGB(255, 165, 204) 'Pink - failure ELSE txtInput.BackColor = Color.RGB(55, 255, 125) 'Green - success ENDIF bCleared = FALSE ENDIF END* From budgieboy52 at ...1601... Sun Nov 30 12:21:46 2008 From: budgieboy52 at ...1601... (John Harrold) Date: Sun, 30 Nov 2008 11:21:46 +0000 Subject: [Gambas-user] Using an Image in a PictureBox or help with my issue In-Reply-To: <200811292025.21140.gambas@...1...> References: <9fb6e46c0811290507yceb7259pbca651e75a8a4ed3@...627...> <200811292025.21140.gambas@...1...> Message-ID: <9fb6e46c0811300321w606546e8x6c4c0c02e1866ce6@...627...> Thanks Benoit, I now understand why there is both picture and image in the picturebox component. Just one thing: would it make things easier for Robert (original poster) if he used gb.gtk rather than gb.qt; I'm not so clear about that. Budgieboy That's 2008/11/29 Benoit Minisini > On samedi 29 novembre 2008, John Harrold wrote: > > I'm no Gambas expert but as far as I understand you can't reference the > > image that way. > > > > you would need to do: > > > > DIM myImg as Image > > myImg=PicBox.Picture.Image > > > > Even then I think it will make a copy of the image and not be an alias. > If > > you make changes to myImg to have them reflected in the original you > would > > have to write back the image: > > > > PicBox.Picture.Image=myImg > > > > Dont think that makes things any easier. > > > > Budgieboy > > > > To understand why thing are not easier, you must know that on X-Window > systems, an image can be stored: > > - In the program (the process that uses the GUI), an "Image" in Gambas. > > - Or directly in the X-Window process, a "Picture" in Gambas. > > Alas, you can only use X-Window drawing commands on Pictures, not on > Images. > On the contrary, you can only access individual pixels on Images, not on > Pictures. > > The Picture.Image and Image.Picture properties actually move the image data > between the X-Window server and your program. It is a relatively heavy > process, especially when the image is big. But there is no other way! > > This is not really true with gb.gtk, as in gb.gtk the conversion is not > done > when you use the Picture.Image or Image.Picture property, but only when it > is > really needed. > > For example, if you really access individual pixels, then the image data > will > be moved to your process. Not when you will use the Picture.Image property. > > I hope I was clear enough! > > Regards, > -- > Benoit Minisini > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge > Build the coolest Linux based applications with Moblin SDK & win great > prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From joshiggins at ...1601... Sun Nov 30 12:23:12 2008 From: joshiggins at ...1601... (Joshua Higgins) Date: Sun, 30 Nov 2008 11:23:12 +0000 Subject: [Gambas-user] using icons from system theme without specifiying full path Message-ID: <4247f5440811300323q372d25fdpd9adfaf8ff0b67af@...627...> Hi, I need to use the icons in my gambas program from the current system theme in GTK/Gnome. At the moment I've been specifying the full path e.g. /usr/share/icons/Tango/32x32/apps/gnome-keyring-manager.png But ideally I need to just set gnome-keyring-manager as the image and it picks up the right icon. Any way to do this? Thanks. -- joshua higgins >>>>>>------ From pokerbirch at ...1601... Sun Nov 30 17:16:05 2008 From: pokerbirch at ...1601... (birchy) Date: Sun, 30 Nov 2008 08:16:05 -0800 (PST) Subject: [Gambas-user] using icons from system theme without specifiying full path In-Reply-To: <4247f5440811300323q372d25fdpd9adfaf8ff0b67af@...627...> References: <4247f5440811300323q372d25fdpd9adfaf8ff0b67af@...627...> Message-ID: <20759098.post@...1379...> joshiggins wrote: > > Hi, > > I need to use the icons in my gambas program from the current system theme > in GTK/Gnome. At the moment I've been specifying the full path e.g. > > /usr/share/icons/Tango/32x32/apps/gnome-keyring-manager.png > > But ideally I need to just set gnome-keyring-manager as the image and it > picks up the right icon. Any way to do this? Why not copy/paste the icon into your project folder rather than using external paths? -- View this message in context: http://www.nabble.com/using-icons-from-system-theme-without-specifiying-full-path-tp20756670p20759098.html Sent from the gambas-user mailing list archive at Nabble.com. From pokerbirch at ...1601... Sun Nov 30 17:19:11 2008 From: pokerbirch at ...1601... (birchy) Date: Sun, 30 Nov 2008 08:19:11 -0800 (PST) Subject: [Gambas-user] Web application - CURL and Cookies? In-Reply-To: <200811111601.49341.gambas@...1...> References: <20435022.post@...1379...> <200811111555.45564.gambas@...1...> <200811111601.49341.gambas@...1...> Message-ID: <20759131.post@...1379...> Bugzilla from gambas at ...1... wrote: > I talked too fast: gb.xml already know how to parse HTML. The XMLDocument > class has a 'HTMLFromString' method for that. Where is the documentation for this? How do i use it? -- View this message in context: http://www.nabble.com/Web-application---CURL-and-Cookies--tp20435022p20759131.html Sent from the gambas-user mailing list archive at Nabble.com. From joshiggins at ...1601... Sun Nov 30 18:33:34 2008 From: joshiggins at ...1601... (Joshua Higgins) Date: Sun, 30 Nov 2008 17:33:34 +0000 Subject: [Gambas-user] using icons from system theme without specifiying full path In-Reply-To: <20759098.post@...1379...> References: <4247f5440811300323q372d25fdpd9adfaf8ff0b67af@...627...> <20759098.post@...1379...> Message-ID: <4247f5440811300933h764f9271uf56edb71a093ec87@...627...> well.... I'm making an application launcher. It reads all the .desktop files from under /usr/share/applications and after loads of splitting adds them to a ListView. .desktop file layed out as follows: [Desktop Entry] Type=Application Name=Inkscape Comment=Vector Graphics Editor Exec=inkscape Icon=inkscape.png Categories=GNOME;Utility; The problem I'm having is that the icons are described as they are in the theme, i.e. just the file name, not by the path, and I'm struggling to find a reliable way to resolve this back to the path to the icon, which I can then load into Gambas. 2008/11/30 birchy > > > joshiggins wrote: > > > > Hi, > > > > I need to use the icons in my gambas program from the current system > theme > > in GTK/Gnome. At the moment I've been specifying the full path e.g. > > > > /usr/share/icons/Tango/32x32/apps/gnome-keyring-manager.png > > > > But ideally I need to just set gnome-keyring-manager as the image and it > > picks up the right icon. Any way to do this? > > Why not copy/paste the icon into your project folder rather than using > external paths? > -- > View this message in context: > http://www.nabble.com/using-icons-from-system-theme-without-specifiying-full-path-tp20756670p20759098.html > Sent from the gambas-user mailing list archive at Nabble.com. > > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge > Build the coolest Linux based applications with Moblin SDK & win great > prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- joshua higgins >>>>>>------ From the.at.robert at ...626... Sun Nov 30 20:48:03 2008 From: the.at.robert at ...626... (Robert Moss) Date: Sun, 30 Nov 2008 11:48:03 -0800 Subject: [Gambas-user] Using a socket to download an image. Please Help ^_^ In-Reply-To: <49326D69.2030208@...1909...> References: <49326D69.2030208@...1909...> Message-ID: Sorry that's not it, I mis-copied the line, in the actual code it does Mid(sData, p1 + 4) On Sun, Nov 30, 2008 at 2:39 AM, Doriano Blengino < doriano.blengino at ...1909...> wrote: > Robert Moss ha scritto: > > I am trying to get an image (or any binary data) downloaded from a > website > > and into a jpg file. I expect I will need to use the Byte[] datatype, but > I > > absolutely can NOT use Callbacks when the data comes in this time. > > > > ... > > > > DO UNTIL(EOF(#Sock)) > > READ #Sock, sBuf, Lof(Sock) > > sTotal &= sBuf > > LOOP > > > > CLOSE #Sock > > > > > > p1 = InStr(sTotal, "\r\n\r\n") > > > > ImgData = Mid(sTotal, p1) > > > > OPEN "localimg.jpg" FOR OUTPUT CREATE AS #myFile > > WRITE #myFile, ImgData, Len(ImgData) > > CLOSE #myFile > > > I think there is a problem with InStr(...,"\r\n\r\n"). > By taking mid$(...,p1), you retain the two CRLFs, which are not good at > the beginning of a jpeg file. > You should get rid of the first 4 characters. May be there are still > other problems, but this is one for sure. > > Regards, > > -- > Doriano Blengino > > "Listen twice before you speak. > This is why we have two ears, but only one mouth." > > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge > Build the coolest Linux based applications with Moblin SDK & win great > prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From the.at.robert at ...626... Sun Nov 30 20:50:06 2008 From: the.at.robert at ...626... (Robert Moss) Date: Sun, 30 Nov 2008 11:50:06 -0800 Subject: [Gambas-user] Using a socket to download an image. Please Help ^_^ In-Reply-To: References: <49326D69.2030208@...1909...> Message-ID: The ImgData stops writing when it comes to a byte with value &H00 (I believe) although I'm pretty sure it doesn't matter how I write the stream, once it's read as a String, it becomes terminated by any NULL char. So my question is this: How do I read the data from the Socket in binary, write it to a stream file in binary, but STILL I MUST be able to split the data based on the 2 CRLF's On Sun, Nov 30, 2008 at 11:48 AM, Robert Moss wrote: > Sorry that's not it, I mis-copied the line, in the actual code it does > Mid(sData, p1 + 4) > > On Sun, Nov 30, 2008 at 2:39 AM, Doriano Blengino < > doriano.blengino at ...1909...> wrote: > >> Robert Moss ha scritto: >> > I am trying to get an image (or any binary data) downloaded from a >> website >> > and into a jpg file. I expect I will need to use the Byte[] datatype, >> but I >> > absolutely can NOT use Callbacks when the data comes in this time. >> > >> > ... >> > >> > DO UNTIL(EOF(#Sock)) >> > READ #Sock, sBuf, Lof(Sock) >> > sTotal &= sBuf >> > LOOP >> > >> > CLOSE #Sock >> > >> > >> > p1 = InStr(sTotal, "\r\n\r\n") >> > >> > ImgData = Mid(sTotal, p1) >> > >> > OPEN "localimg.jpg" FOR OUTPUT CREATE AS #myFile >> > WRITE #myFile, ImgData, Len(ImgData) >> > CLOSE #myFile >> > >> I think there is a problem with InStr(...,"\r\n\r\n"). >> By taking mid$(...,p1), you retain the two CRLFs, which are not good at >> the beginning of a jpeg file. >> You should get rid of the first 4 characters. May be there are still >> other problems, but this is one for sure. >> >> Regards, >> >> -- >> Doriano Blengino >> >> "Listen twice before you speak. >> This is why we have two ears, but only one mouth." >> >> >> ------------------------------------------------------------------------- >> This SF.Net email is sponsored by the Moblin Your Move Developer's >> challenge >> Build the coolest Linux based applications with Moblin SDK & win great >> prizes >> Grand prize is a trip for two to an Open Source event anywhere in the >> world >> http://moblin-contest.org/redirect.php?banner_id=100&url=/ >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > From gambas at ...1... Sun Nov 30 21:32:53 2008 From: gambas at ...1... (Benoit Minisini) Date: Sun, 30 Nov 2008 21:32:53 +0100 Subject: [Gambas-user] Regexpr appears not to be working In-Reply-To: <9fb6e46c0811300259t50b463e3m88af20c1ecfebd1f@...627...> References: <9fb6e46c0811300259t50b463e3m88af20c1ecfebd1f@...627...> Message-ID: <200811302132.53529.gambas@...1...> On dimanche 30 novembre 2008, John Harrold wrote: > Hi all > I am experimenting with the PCRE class to understand more about regular > expressions and Gambas in general > > I have created a form with two textboxes, one for text input the other for > the regular expression text to test against. > There are a number of labels for displaying results returned from the call > to Regexp. > > Below is the commented code for the change event for the input > textbox:txtInput. > > The issue I have is with the line marked ***. > By looking at the PCRE class documentation it seems that the line should > return a string. > > *PCRE Documentation on .SubMatches* > *RegexpSubmatches (gb.pcre)* > * .RegexpSubmatches contains the submatches returned from a > Regexpmatch. You > access it with the SubMatches > property of the Regexp class. * > > * Each member of a .RegexpSubmatches collection simply contains the text of > the corresponding submatch. For example, with a subject of "quick brown > fox" and a pattern of "brown (\S+)", SubMatches[0] would contain "fox". * > It does, however, complain with the following message: > > *Type mismatch: Wanted Number, Date or String, got .regexprSubMatches > instead. > * > The message seems to me to suggest that an array of .RegexpSubMatches is > being returned instead. > I have tried to read this returned array into a variety of arrays (string > and Object) but it always returns the above message. > > If I comment out the line I get no errors and the call to Regex returns > Regex.Text, Regex.Offset and Regex.SubMatches.Count correctly. > > Am I understanding the way to use the Regexpr correctly or have I made a > fundamental mistake somewhere? > Could it be a bug? > > Budgieboy > > *Code for input textbox:* > > *PUBLIC SUB txtInput_Change() > DIM Regex AS Regexp > > IF bCleared = TRUE THEN 'Flag to prevent error if try to send empty > string to Regex > bCleared = FALSE > > ELSE > IF txtInput.Text = "" THEN 'We have empty input textbox, usually from > delete/backspace > txtInput.BackColor = Color.RGB(255, 165, 204) > RETURN > ENDIF > Regex = NEW Regexp(txtInput.Text, txtRegex.Text) 'Call Regexpr > > lblResult.Caption = Regex.Text > lblMatch.Caption = Regex.SubMatches.Count > lblOffset.Caption = Regex.Offset > > 'This line below causes error: > 'Type mismatch: Wanted Number, Date or String, got .regexprSubMatches > instead > *** IF Regex.SubMatches > 0 THEN lblSubMatches.Caption = > Regex.SubMatches[0].Text --> IF Regex.SubMatches.Count > 0 THEN ... -- Benoit Minisini From rterry at ...1946... Sun Nov 30 21:49:21 2008 From: rterry at ...1946... (richard terry) Date: Mon, 1 Dec 2008 07:49:21 +1100 Subject: [Gambas-user] Using a socket to download an image. Please Help ^_^ In-Reply-To: References: Message-ID: <200812010749.21204.rterry@...1946...> On Mon, 1 Dec 2008 06:50:06 am Robert Moss wrote: Robert this may not be much help to you and I'm not sure how related to your problem it is, but just on the off chance. I struggled with saving a picture and retrieving from a postgres field. The code I included worked really well for a long time, but in the last couple of upgrades though it saves the file ok, it retreives a corrupt image. and I get a libpng error (sob sob) and I havn't had time or inclination to re-look at it. Please if/when you figure it out can I have a few pointers. Regards Richard > The ImgData stops writing when it comes to a byte with value &H00 (I > believe) although I'm pretty sure it doesn't matter how I write the stream, > once it's read as a String, it becomes terminated by any NULL char. So my > question is this: How do I read the data from the Socket in binary, write > it to a stream file in binary, but STILL I MUST be able to split the data > based on the 2 CRLF's > > On Sun, Nov 30, 2008 at 11:48 AM, Robert Moss wrote: > > Sorry that's not it, I mis-copied the line, in the actual code it does > > Mid(sData, p1 + 4) > > > > On Sun, Nov 30, 2008 at 2:39 AM, Doriano Blengino < > > > > doriano.blengino at ...1909...> wrote: > >> Robert Moss ha scritto: > >> > I am trying to get an image (or any binary data) downloaded from a > >> > >> website > >> > >> > and into a jpg file. I expect I will need to use the Byte[] datatype, > >> > >> but I > >> > >> > absolutely can NOT use Callbacks when the data comes in this time. > >> > > >> > ... > >> > > >> > DO UNTIL(EOF(#Sock)) > >> > READ #Sock, sBuf, Lof(Sock) > >> > sTotal &= sBuf > >> > LOOP > >> > > >> > CLOSE #Sock > >> > > >> > > >> > p1 = InStr(sTotal, "\r\n\r\n") > >> > > >> > ImgData = Mid(sTotal, p1) > >> > > >> > OPEN "localimg.jpg" FOR OUTPUT CREATE AS #myFile > >> > WRITE #myFile, ImgData, Len(ImgData) > >> > CLOSE #myFile > >> > >> I think there is a problem with InStr(...,"\r\n\r\n"). > >> By taking mid$(...,p1), you retain the two CRLFs, which are not good at > >> the beginning of a jpeg file. > >> You should get rid of the first 4 characters. May be there are still > >> other problems, but this is one for sure. > >> > >> Regards, > >> > >> -- > >> Doriano Blengino > >> > >> "Listen twice before you speak. > >> This is why we have two ears, but only one mouth." > >> > >> > >> ------------------------------------------------------------------------ > >>- This SF.Net email is sponsored by the Moblin Your Move Developer's > >> challenge > >> Build the coolest Linux based applications with Moblin SDK & win great > >> prizes > >> Grand prize is a trip for two to an Open Source event anywhere in the > >> world > >> http://moblin-contest.org/redirect.php?banner_id=100&url=/ > >> _______________________________________________ > >> Gambas-user mailing list > >> Gambas-user at lists.sourceforge.net > >> https://lists.sourceforge.net/lists/listinfo/gambas-user > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge Build the coolest Linux based applications with Moblin SDK & win > great prizes Grand prize is a trip for two to an Open Source event anywhere > in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > 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: temp_binary_files Type: text/x-objcsrc Size: 1546 bytes Desc: not available URL: From gambas at ...1... Sun Nov 30 22:00:28 2008 From: gambas at ...1... (Benoit Minisini) Date: Sun, 30 Nov 2008 22:00:28 +0100 Subject: [Gambas-user] Form does not get focus In-Reply-To: <20742005.post@...1379...> References: <20742005.post@...1379...> Message-ID: <200811302200.28548.gambas@...1...> On samedi 29 novembre 2008, moon_walker wrote: > Hi Gurus, > > i have a problem again:-): > > PUBLIC SUB TableView3_Menu() > DIM lform AS Form > > lform = NEW dataentry(did.Value, "fertilizer", tableview3.X, tableview3.Y) > lform.showmodal > > END > > The resulting form do not get the focus upon the opening IF > dataentry.skiptaskbar = TRUE. :-) > Is this correct? > Could you please somebody explain this. > > Thanks > Attila This is a bug that was fixed recently, so you will have the fix with the next version. Regards, -- Benoit Minisini From gambas at ...1... Sun Nov 30 22:04:34 2008 From: gambas at ...1... (Benoit Minisini) Date: Sun, 30 Nov 2008 22:04:34 +0100 Subject: [Gambas-user] SetProperty Virtual Object Dynamically In-Reply-To: <3b3b9f170811250533j48c6a726r11d809cae8bb81a8@...627...> References: <3b3b9f170811250533j48c6a726r11d809cae8bb81a8@...627...> Message-ID: <200811302204.34573.gambas@...1...> On mardi 25 novembre 2008, L Jumadi wrote: > > On samedi 22 novembre 2008, L Jumadi wrote: > >> On vendredi 21 novembre 2008, L Jumadi wrote: > >> > I just want to know wheter gambas can set property inside a virtual > >> > collection. For Example I try to set Rows.H of a Gridview, I try > >> > >> command > >> > >> > like this: > >> > > >> > Object.SetProperty(Obj,"Rows.H",10) > >> > > >> > (Where Obj is a Gridview, and of course "Rows.H" usually a variable) > >> > > >> > It return error. Is there any other way to do it? I have trouble to > >> > read property too (Dynamically), but someway gambas debugger can read > >> > it properly (I think it should use to read it dynamically). Am I > >> > missing something? > >> > > >> >You can't do that with Object.SetProperty. But the question is: why do > >> > you use Object.SetProperty? > >> > > >> >You can use an Object reference: > >> > > >> >DIM hObject AS Object = Obj > >> >hObject.Rows.H = 10 > >> >-- > >> >Benoit Minisini > >> > >> Of course I do that because actually Rows.H is a data in a database. > >> FYI: Right now I create a database driven application with gambas. So > >> I never use any of gambas form (Can you Imagine that?!) but can > >> display GUI like if we use a form. Everything driven by the data. From > >> the data my program create the form dynamically. So user (actually > >> it's me as programmer) can modify the property of an object just by > >> editting the data. So far it going well until i want to modify the > >> rows.h. May be I can intercept that with some other code, but in the > >> future if there is many virtual object like this I must code it one by > >> one. So if there any solution for this I can set other "maybe in the > >> future" virtual object. > > > > Then you can use the Eval() function: > > > > Dim hGridView As GridView > > Dim cValue As New Collection > > Dim sProp As String = "Row.H" > > > > cValue["This"] = hGridView > > > > Print Eval("This." & sProp, cValue) > > -- > > Benoit Minisini > > Ok, that's solve the Read property function, how about setproperty? > can I use Eval? Or may be there is another way, tks. > Mmm. You get a point there... I must think about that before finding a solution. Regards, -- Benoit Minisini From ron at ...1740... Sun Nov 30 22:00:53 2008 From: ron at ...1740... (Ron) Date: Sun, 30 Nov 2008 22:00:53 +0100 Subject: [Gambas-user] Using a socket to download an image. Please Help ^_^ In-Reply-To: <200812010749.21204.rterry@...1946...> References: <200812010749.21204.rterry@...1946...> Message-ID: <4932FF05.6020900@...1740...> I use this to fetch an jpg image from my videoserver and store in my MySQL db. Maybe it can help you guys. PRIVATE hDownloadImage AS NEW HttpClient PRIVATE sGetImgUrl AS String PRIVATE iCamPub AS Integer '~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ' grab image from channel #iCam and store it in our database '~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ PUBLIC SUB DownloadImage(sUrl AS String) DIM sDownload AS String hDownloadImage = NEW HttpClient AS "Download" hDownloadImage.URL = "http://" & sUrl hDownloadImage.Async = FALSE hDownloadImage.TimeOut = 3 hDownloadImage.Get() IF hDownloadImage.Status < 0 THEN IF Main.bVideoServerDebug THEN Main.WriteDebugLog("[VideoServer] Error downloading image " & sUrl) ELSE ' success - read the data IF Lof(hDownloadImage) THEN READ #hDownloadImage, sDownload, Lof(hDownloadImage) END IF SaveCapture(sDownload) END PUBLIC SUB SaveCapture(sBuffer AS String) DIM rResult AS Result ' write image to capture table Main.hDB.Begin() rResult = Main.hDB.Create("capture_camera" & iCamPub) rResult!image = sBuffer rResult!stamp = Now() rResult.Update() Main.hDB.Commit() END Regards, Ron_2nd. > On Mon, 1 Dec 2008 06:50:06 am Robert Moss wrote: > > Robert this may not be much help to you and I'm not sure how related to your > problem it is, but just on the off chance. I struggled with saving a picture > and retrieving from a postgres field. > > The code I included worked really well for a long time, but in the last couple > of upgrades though it saves the file ok, it retreives a corrupt image. and I > get a libpng error (sob sob) and I havn't had time or inclination to re-look > at it. > > Please if/when you figure it out can I have a few pointers. > > Regards > > Richard > > > > >> The ImgData stops writing when it comes to a byte with value &H00 (I >> believe) although I'm pretty sure it doesn't matter how I write the stream, >> once it's read as a String, it becomes terminated by any NULL char. So my >> question is this: How do I read the data from the Socket in binary, write >> it to a stream file in binary, but STILL I MUST be able to split the data >> based on the 2 CRLF's >> >> On Sun, Nov 30, 2008 at 11:48 AM, Robert Moss >> > wrote: > >>> Sorry that's not it, I mis-copied the line, in the actual code it does >>> Mid(sData, p1 + 4) >>> >>> On Sun, Nov 30, 2008 at 2:39 AM, Doriano Blengino < >>> >>> doriano.blengino at ...1909...> wrote: >>> >>>> Robert Moss ha scritto: >>>> >>>>> I am trying to get an image (or any binary data) downloaded from a >>>>> >>>> website >>>> >>>> >>>>> and into a jpg file. I expect I will need to use the Byte[] datatype, >>>>> >>>> but I >>>> >>>> >>>>> absolutely can NOT use Callbacks when the data comes in this time. >>>>> >>>>> ... >>>>> >>>>> DO UNTIL(EOF(#Sock)) >>>>> READ #Sock, sBuf, Lof(Sock) >>>>> sTotal &= sBuf >>>>> LOOP >>>>> >>>>> CLOSE #Sock >>>>> >>>>> >>>>> p1 = InStr(sTotal, "\r\n\r\n") >>>>> >>>>> ImgData = Mid(sTotal, p1) >>>>> >>>>> OPEN "localimg.jpg" FOR OUTPUT CREATE AS #myFile >>>>> WRITE #myFile, ImgData, Len(ImgData) >>>>> CLOSE #myFile >>>>> >>>> I think there is a problem with InStr(...,"\r\n\r\n"). >>>> By taking mid$(...,p1), you retain the two CRLFs, which are not good at >>>> the beginning of a jpeg file. >>>> You should get rid of the first 4 characters. May be there are still >>>> other problems, but this is one for sure. >>>> >>>> Regards, >>>> >>>> -- >>>> Doriano Blengino >>>> >>>> "Listen twice before you speak. >>>> This is why we have two ears, but only one mouth." >>>> >>>> >>>> ------------------------------------------------------------------------ >>>> - This SF.Net email is sponsored by the Moblin Your Move Developer's >>>> challenge >>>> Build the coolest Linux based applications with Moblin SDK & win great >>>> prizes >>>> Grand prize is a trip for two to an Open Source event anywhere in the >>>> world >>>> http://moblin-contest.org/redirect.php?banner_id=100&url=/ >>>> _______________________________________________ >>>> Gambas-user mailing list >>>> Gambas-user at lists.sourceforge.net >>>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>>> >> ------------------------------------------------------------------------- >> This SF.Net email is sponsored by the Moblin Your Move Developer's >> challenge Build the coolest Linux based applications with Moblin SDK & win >> great prizes Grand prize is a trip for two to an Open Source event anywhere >> in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > ------------------------------------------------------------------------ > > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From gambas at ...1... Sun Nov 30 22:27:23 2008 From: gambas at ...1... (Benoit Minisini) Date: Sun, 30 Nov 2008 22:27:23 +0100 Subject: [Gambas-user] To fast do..loops for process management! In-Reply-To: References: Message-ID: <200811302227.23994.gambas@...1...> On jeudi 27 novembre 2008, Demosthenes Koptsis wrote: > Hi dear list, > > I write a front-end for mpg123 mp3 console player in gambas2 but i > came face to face with a bug and i need your help! > i dont know if the bug is due to gambas or my writing code or mpg123 > player's. > > The story is like this.... > > '### I have two public vars > > PUBLIC hProcess AS Process 'varProcess is a Process variable for SHELL > command PUBLIC iNrPlayingSong AS Integer 'public var to hold the nr of > playing song > > '### i execute a command to play mp3 songs > > ..... > 'format sting command > sCommand = "mpg123 -vC@ " & sPlaylistFile 'play in verbose mode > (v), interactive (C), and load a playlist (@) > 'execute command > hProcess = SHELL sCommand FOR INPUT OUTPUT > ..... > > > '### previous track sub > PUBLIC SUB btnPreviousTrack_Click() > > IF NOT IsNull(hProcess) THEN > IF hProcess.State = 1 THEN PRINT #hProcess, "d" 'mpg123 recieve > a keyboard "d" to go previous track > ENDIF > > END > > > '### next track sub > PUBLIC SUB btnNextTrack_Click() > > IF NOT IsNull(hProcess) THEN > IF hProcess.State = 1 THEN PRINT #hProcess, "f" 'mpg123 recieve > a keyboard "f" to go next track > ENDIF > > END > > '### NOTE, the previous SUBs are the same. They differ only to letters > "f" and "d" > > > '#### A wait sub for the system, see next! > PUBLIC SUB WaitSystem() > > 'wait the system > FMain.Mouse = 3 > WAIT 0.05 > FMain.Mouse = 0 > > END > > > > '########### So far with no bug, the code is working > > > > '### i write a sub if user click in playlist a list item = a mp3 track > > PUBLIC SUB lvwPlayList_DblClick() > > DIM iCounter AS Integer = iNrPlayingSong 'var get current playing > song and also act as counter. iNrPlayingSong get its value from SUB > Process_Read() > > IF NOT IsNull(lvwPlayList.Key) THEN > > '### This do..loop part working fine > 'if user click an item with key greater than number of playing song > IF (lvwPlayList.key + 1) > iCounter THEN 'go next track > DO > IF iCounter = (lvwPlayList.key + 1) THEN BREAK > 'PRINT "Go next track" > btnNextTrack_Click() > INC iCounter > LOOP > ENDIF > > 'if user click an item with key smaller than number of playing song > IF (lvwPlayList.key + 1) < iCounter THEN 'go previous track > DO > IF iCounter = (lvwPlayList.key + 1) THEN BREAK > 'PRINT "Go previous track" > btnPreviousTrack_Click() > > ' ### Now the strange bug > '!FIXEME! > ########################################################################### >######### WaitSystem() '***!!!!!***---> ### [ -- i need to force a wait > system sub to working correctly --- ] > 'Probably there is a bug. > 'the hProcess does not recieve the btnPreviousTrack_Click() command > as recieves btnNextTrack_Click() > > 'The same code in btnNextTrack_Click() works fine. > 'Sorry for the annoying bug. > '!FIXEME! > ########################################################################### >######### > > DEC iCounter > > LOOP > ENDIF > > ENDIF > > END > > '#################### > > To test this bug make a long playlist with up to 200 mp3s. > > if you check the two subs btnNextTrack_Click() and > btnPreviousTrack_Click() are the same. > If you check the two DO..LOOPs parts are the same, they only change in > btnNextTrack_Click() and btnPreviousTrack_Click(). > In first case the btnNextTrack_Click() works. > In second case i need to force a wait to application to work the > btnPreviousTrack_Click(). > > I test to PRINT the vars which they be read from Sub Read_Process and > they are ok. Vars iNrPlayingSong, iCounter are OK. > My conclusion is that hProcess cannot recieve so quickly the previous > command from gambas2. > So the questions now! > Is this a bug of mpg123 player or a bug of gambas in process management? > > > I attach my project if you want to look its strange bug. > > -- > > ???? ???? ?? ?????!!! > > Regards, > > Demosthenes Koptsis I don't really see any bug, but I can be wrong as your code is not very clear. What I can tell you is that there is no guarantee that you will get the answer of a command sent to mpg123 immediately, so the song number stored in your public variable is not necessarily accurate. Next, the event loop is only run if no code is run, or if you call the WAIT instruction. And the Process_Read function is called only by the event loop! Regards, -- Benoit Minisini From jaap_cramer at ...67... Sun Nov 30 22:32:41 2008 From: jaap_cramer at ...67... (Jaap Cramer) Date: Sun, 30 Nov 2008 22:32:41 +0100 Subject: [Gambas-user] xslt-tranformation in Gambas 2.9 Message-ID: Hello I use the xml and XSLT.Transform routines. And they seem not te wokr anymore, from Gambas version 2.9. I saw on the changelog some changes, but I wonder how to use it correct. I want to apply al XSLT tranformation an a XSL sheet. Code that used to work: DIM x_Xslt, x_Q AS NEW XmlDocument DIM s as String s = file.Load("xml/tanach/LastVerse.xml") x_Xslt.FromString(s) x_Q = Xslt.Transform(x, x_xslt) s = x_Q.ToString("utf-8") ____________ Any help or documentation? tnx in advance. Jaap _________________________________________________________________ Zoek en win prachtige prijzen met Lucky Search! http://www.luckysearch.nl/ From budgieboy52 at ...1601... Sun Nov 30 22:49:28 2008 From: budgieboy52 at ...1601... (John Harrold) Date: Sun, 30 Nov 2008 21:49:28 +0000 Subject: [Gambas-user] Regexpr appears not to be working In-Reply-To: <200811302132.53529.gambas@...1...> References: <9fb6e46c0811300259t50b463e3m88af20c1ecfebd1f@...627...> <200811302132.53529.gambas@...1...> Message-ID: <9fb6e46c0811301349t33c0677bi6f035e18583eda67@...627...> Thanks Benoit Oops! Silly mistake easily done, even more easily overlooked - I must have read that line dozens of times and didn't spot the mistake. Just shows how useful another persons eyes are. Thanks again. Budgieboy 2008/11/30 Benoit Minisini > On dimanche 30 novembre 2008, John Harrold wrote: > > Hi all > > I am experimenting with the PCRE class to understand more about regular > > expressions and Gambas in general > > > > I have created a form with two textboxes, one for text input the other > for > > the regular expression text to test against. > > There are a number of labels for displaying results returned from the > call > > to Regexp. > > > > Below is the commented code for the change event for the input > > textbox:txtInput. > > > > The issue I have is with the line marked ***. > > By looking at the PCRE class documentation it seems that the line should > > return a string. > > > > *PCRE Documentation on .SubMatches* > > *RegexpSubmatches (gb.pcre)* > > * .RegexpSubmatches contains the submatches returned from a > > Regexpmatch. You > > access it with the SubMatches > > property of the Regexp > class. * > > > > * Each member of a .RegexpSubmatches collection simply contains the text > of > > the corresponding submatch. For example, with a subject of "quick brown > > fox" and a pattern of "brown (\S+)", SubMatches[0] would contain "fox". * > > It does, however, complain with the following message: > > > > *Type mismatch: Wanted Number, Date or String, got .regexprSubMatches > > instead. > > * > > The message seems to me to suggest that an array of .RegexpSubMatches is > > being returned instead. > > I have tried to read this returned array into a variety of arrays (string > > and Object) but it always returns the above message. > > > > If I comment out the line I get no errors and the call to Regex returns > > Regex.Text, Regex.Offset and Regex.SubMatches.Count correctly. > > > > Am I understanding the way to use the Regexpr correctly or have I made a > > fundamental mistake somewhere? > > Could it be a bug? > > > > Budgieboy > > > > *Code for input textbox:* > > > > *PUBLIC SUB txtInput_Change() > > DIM Regex AS Regexp > > > > IF bCleared = TRUE THEN 'Flag to prevent error if try to send empty > > string to Regex > > bCleared = FALSE > > > > ELSE > > IF txtInput.Text = "" THEN 'We have empty input textbox, usually > from > > delete/backspace > > txtInput.BackColor = Color.RGB(255, 165, 204) > > RETURN > > ENDIF > > Regex = NEW Regexp(txtInput.Text, txtRegex.Text) 'Call Regexpr > > > > lblResult.Caption = Regex.Text > > lblMatch.Caption = Regex.SubMatches.Count > > lblOffset.Caption = Regex.Offset > > > > 'This line below causes error: > > 'Type mismatch: Wanted Number, Date or String, got > .regexprSubMatches > > instead > > *** IF Regex.SubMatches > 0 THEN lblSubMatches.Caption = > > Regex.SubMatches[0].Text > > --> IF Regex.SubMatches.Count > 0 THEN ... > > -- > Benoit Minisini > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge > Build the coolest Linux based applications with Moblin SDK & win great > prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From Charles.Capaday at ...2023... Sun Nov 30 23:48:58 2008 From: Charles.Capaday at ...2023... (Charles Capaday) Date: Sun, 30 Nov 2008 17:48:58 -0500 Subject: [Gambas-user] Updating the Xandros repos In-Reply-To: <200811302227.23994.gambas@...1...> References: <200811302227.23994.gambas@...1...> Message-ID: Hi, First let me congratulate you on developing an outstanding product and being outstanding in supporting it... Would it be possible to update the Xandros repos to the latest version of gambas, I use it for now to write simple teaching programs for my eight year old boy. I use the EEE PC 900 for that, an ideal platform to develop gambas applications I think. Cheers, Dr. Charles Capaday Professor & Director Brain and Movement Lab. Dept. of Anatomy & Physiology Faculty of Medicine, Laval University http://www.brainandmovementlab.org/ Mailing address: CRULRG F-6500 Hopital Robert-Giffard 2601 de la Canardiere, Beauport, QC G1J 2G3 Canada Tel: +418-663-5747 (Sec.) +418-663-5000 ext. 6736 (Off.) +418-663-5000 ext. 6877 (Lab.) Fax: +418-663-8756