From gambas at ...1... Thu May 1 09:46:20 2008 From: gambas at ...1... (Benoit Minisini) Date: Thu, 1 May 2008 09:46:20 +0200 Subject: [Gambas-user] class enumeration help In-Reply-To: References: Message-ID: <200805010946.20062.gambas@...1...> On mercredi 30 avril 2008, Robin Thompson wrote: > Hi, > > As part of a project I would like to enumerate symbols of user defined > class. > > code: > tst1.class > ' Gambas class file > PUBLIC aan AS Integer > PUBLIC ban AS String > PUBLIC can AS Float > > PUBLIC SUB Main() > DIM test1 AS NEW tst1 > DIM st AS String > > test1.aan = 1 > test1.ban = "hello" > test1.can = 1.1 > > PRINT #File.out, "aan: " & test1.aan > PRINT #File.out, "ban: " & test1.ban > PRINT #File.out, "can: " & test1.can > > WITH Object.Class(test1) > FOR EACH st IN .Symbols > PRINT #File.out, st & ": " & Object.Class(test1)[st].Value > NEXT > END WITH > > END > > Obviously (hopefully!) the output i would expect is: > aan: 1 > ban: hello > can: 1.1 > aan: 1 > ban: hello > can: 1.1 > > However i am in fact getting this: > > aan: 1 > ban: hello > can: 1.1 > aan: > ban: > can: > > Where am I going wrong? > > Thanks for your help, > > RT > The value property returns the value of the symbol when it is a constant, not the value at runtime. To get the runtime value, use Object.GetProperty() *and* Gambas 3. Regards, -- Benoit Minisini From gambas at ...1... Thu May 1 09:56:22 2008 From: gambas at ...1... (Benoit Minisini) Date: Thu, 1 May 2008 09:56:22 +0200 Subject: [Gambas-user] Gambas and QT 4 Message-ID: <200805010956.22768.gambas@...1...> Hi, Just for information... Gambas 3 development version has two QT4 experimental components named gb.qt4 and gb.qt4.ext. These components are usable, but have many bugs yet. *Many* things were completely redesigned in the toolkit, and so, apparently similar functions behave very differently. For example, foreground and background colors do not work correctly anymore with gb.qt4. The worst problem is that QT4 (4.3.4) drawing and resizing is very slow. - As much as GTK+ . :-) The IDE with gb.qt4 and gb.qt4.ext becomes sloppy as hell, even on my Core 2 Duo / 2Go RAM / NVIDIA! Hopefully, that is fixed in the next upcoming QT 4.4 release. I downloaded the QT 4.4 RC1 sources, compiled them (takes 2.5 Gb on my hard disk!), and drawing seems to be twice faster, and resizing does not flicker anymore. That means that KDE 4.1 will have the same speed enhancement, so I am happy. :-) Regards, -- Benoit Minisini From m0e.lnx at ...626... Thu May 1 20:34:27 2008 From: m0e.lnx at ...626... (M0E Lnx) Date: Thu, 1 May 2008 13:34:27 -0500 Subject: [Gambas-user] gb.gui + dialog.openfile question Message-ID: <1f1e8c1b0805011134v66648c45x401c214401b3aa1@...627...> I use gb.gui for my projects, however, I have noticed that when ever I use the dialog.openfile() function, gambas always pulls up a qt openfile dialog. Even if my program is running under a GTK environment Is that intended that way, or is there a way to change it? From gambas at ...1... Thu May 1 20:39:09 2008 From: gambas at ...1... (Benoit Minisini) Date: Thu, 1 May 2008 20:39:09 +0200 Subject: [Gambas-user] gb.gui + dialog.openfile question In-Reply-To: <1f1e8c1b0805011134v66648c45x401c214401b3aa1@...627...> References: <1f1e8c1b0805011134v66648c45x401c214401b3aa1@...627...> Message-ID: <200805012039.09900.gambas@...1...> On jeudi 1 mai 2008, M0E Lnx wrote: > I use gb.gui for my projects, however, I have noticed that when ever I > use the dialog.openfile() function, gambas always pulls up a qt > openfile dialog. Even if my program is running under a GTK environment > > Is that intended that way, or is there a way to change it? > If you get a QT dialog, then gb.gui runs the gb.qt component, not gb.gtk. Which desktop do you run? -- Benoit Minisini From m0e.lnx at ...626... Thu May 1 20:47:32 2008 From: m0e.lnx at ...626... (M0E Lnx) Date: Thu, 1 May 2008 13:47:32 -0500 Subject: [Gambas-user] gb.gui + dialog.openfile question In-Reply-To: <200805012039.09900.gambas@...1...> References: <1f1e8c1b0805011134v66648c45x401c214401b3aa1@...627...> <200805012039.09900.gambas@...1...> Message-ID: <1f1e8c1b0805011147i16eecef5g3851850e91eaf456@...627...> I'm currently running LXDE, but the same thing happens in XFCE4 On Thu, May 1, 2008 at 1:39 PM, Benoit Minisini wrote: > > On jeudi 1 mai 2008, M0E Lnx wrote: > > I use gb.gui for my projects, however, I have noticed that when ever I > > use the dialog.openfile() function, gambas always pulls up a qt > > openfile dialog. Even if my program is running under a GTK environment > > > > Is that intended that way, or is there a way to change it? > > > > If you get a QT dialog, then gb.gui runs the gb.qt component, not gb.gtk. > Which desktop do you run? > > -- > Benoit Minisini > > ------------------------------------------------------------------------- > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference > Don't miss this year's exciting event. There's still time to save $100. > Use priority code J8TL2D2. > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From m0e.lnx at ...626... Thu May 1 20:48:32 2008 From: m0e.lnx at ...626... (M0E Lnx) Date: Thu, 1 May 2008 13:48:32 -0500 Subject: [Gambas-user] gb.gui + dialog.openfile question In-Reply-To: <1f1e8c1b0805011147i16eecef5g3851850e91eaf456@...627...> References: <1f1e8c1b0805011134v66648c45x401c214401b3aa1@...627...> <200805012039.09900.gambas@...1...> <1f1e8c1b0805011147i16eecef5g3851850e91eaf456@...627...> Message-ID: <1f1e8c1b0805011148i35792abeoabcfbb9880bd9ae3@...627...> I should also say that the rest of the application, the GUI, buttons and all message.x look like GTK messages and GUI, except for the openfile and savefile dialogs On Thu, May 1, 2008 at 1:47 PM, M0E Lnx wrote: > I'm currently running LXDE, but the same thing happens in XFCE4 > > > > On Thu, May 1, 2008 at 1:39 PM, Benoit Minisini > wrote: > > > > On jeudi 1 mai 2008, M0E Lnx wrote: > > > I use gb.gui for my projects, however, I have noticed that when ever I > > > use the dialog.openfile() function, gambas always pulls up a qt > > > openfile dialog. Even if my program is running under a GTK environment > > > > > > Is that intended that way, or is there a way to change it? > > > > > > > If you get a QT dialog, then gb.gui runs the gb.qt component, not gb.gtk. > > Which desktop do you run? > > > > -- > > Benoit Minisini > > > > ------------------------------------------------------------------------- > > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference > > Don't miss this year's exciting event. There's still time to save $100. > > Use priority code J8TL2D2. > > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > From gambas at ...1... Thu May 1 21:09:42 2008 From: gambas at ...1... (Benoit Minisini) Date: Thu, 1 May 2008 21:09:42 +0200 Subject: [Gambas-user] gb.gui + dialog.openfile question In-Reply-To: <1f1e8c1b0805011148i35792abeoabcfbb9880bd9ae3@...627...> References: <1f1e8c1b0805011134v66648c45x401c214401b3aa1@...627...> <1f1e8c1b0805011147i16eecef5g3851850e91eaf456@...627...> <1f1e8c1b0805011148i35792abeoabcfbb9880bd9ae3@...627...> Message-ID: <200805012109.42553.gambas@...1...> On jeudi 1 mai 2008, M0E Lnx wrote: > I should also say that the rest of the application, the GUI, buttons > and all message.x look like GTK messages and GUI, except for the > openfile and savefile dialogs > Running gb.qt and gb.gtk in the same process is impossible, so you forgot to tell something, and/or makde a mistake somewhere... -- Benoit Minisini From gambas at ...1... Thu May 1 21:27:25 2008 From: gambas at ...1... (Benoit Minisini) Date: Thu, 1 May 2008 21:27:25 +0200 Subject: [Gambas-user] gb.gui + dialog.openfile question In-Reply-To: <1f1e8c1b0805011148i35792abeoabcfbb9880bd9ae3@...627...> References: <1f1e8c1b0805011134v66648c45x401c214401b3aa1@...627...> <1f1e8c1b0805011147i16eecef5g3851850e91eaf456@...627...> <1f1e8c1b0805011148i35792abeoabcfbb9880bd9ae3@...627...> Message-ID: <200805012127.25587.gambas@...1...> On jeudi 1 mai 2008, M0E Lnx wrote: > I should also say that the rest of the application, the GUI, buttons > and all message.x look like GTK messages and GUI, except for the > openfile and savefile dialogs > Your post was too big to go to the mailing-list, but I saw it anyway. The dialog is not a QT one, it is a Gambas one, but it is made with GTK+. You got it because you used the gb.form.dialog component. Uncheck it to go back to the the standard GTK+ dialogs. Regards, -- Benoit Minisini From m0e.lnx at ...626... Thu May 1 21:30:56 2008 From: m0e.lnx at ...626... (M0E Lnx) Date: Thu, 1 May 2008 14:30:56 -0500 Subject: [Gambas-user] gb.gui + dialog.openfile question In-Reply-To: <200805012127.25587.gambas@...1...> References: <1f1e8c1b0805011134v66648c45x401c214401b3aa1@...627...> <1f1e8c1b0805011147i16eecef5g3851850e91eaf456@...627...> <1f1e8c1b0805011148i35792abeoabcfbb9880bd9ae3@...627...> <200805012127.25587.gambas@...1...> Message-ID: <1f1e8c1b0805011230x2cc4fd28q6c0937cd56ece400@...627...> Ok... you're right... gb.form was checked... Now I got standard dialogs.... however, I get this when the dialog appears (vpackager:21629): Gtk-CRITICAL **: gtk_file_folder_unix_get_info: assertion `strcmp (dirname, folder_unix->filename) == 0' failed What is that? On Thu, May 1, 2008 at 2:27 PM, Benoit Minisini wrote: > On jeudi 1 mai 2008, M0E Lnx wrote: > > > I should also say that the rest of the application, the GUI, buttons > > and all message.x look like GTK messages and GUI, except for the > > openfile and savefile dialogs > > > > Your post was too big to go to the mailing-list, but I saw it anyway. > > The dialog is not a QT one, it is a Gambas one, but it is made with GTK+. You > got it because you used the gb.form.dialog component. Uncheck it to go back > to the the standard GTK+ dialogs. > > Regards, > > -- > > > Benoit Minisini > > ------------------------------------------------------------------------- > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference > Don't miss this year's exciting event. There's still time to save $100. > Use priority code J8TL2D2. > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Thu May 1 21:38:49 2008 From: gambas at ...1... (Benoit Minisini) Date: Thu, 1 May 2008 21:38:49 +0200 Subject: [Gambas-user] gb.gui + dialog.openfile question In-Reply-To: <1f1e8c1b0805011230x2cc4fd28q6c0937cd56ece400@...627...> References: <1f1e8c1b0805011134v66648c45x401c214401b3aa1@...627...> <200805012127.25587.gambas@...1...> <1f1e8c1b0805011230x2cc4fd28q6c0937cd56ece400@...627...> Message-ID: <200805012138.49802.gambas@...1...> On jeudi 1 mai 2008, M0E Lnx wrote: > Ok... you're right... gb.form was checked... Now I got standard > dialogs.... however, I get this when the dialog appears > > (vpackager:21629): Gtk-CRITICAL **: gtk_file_folder_unix_get_info: > assertion `strcmp (dirname, folder_unix->filename) == 0' failed > > What is that? > No idea. I never got that. Maybe you found a bug in gb.gtk... -- Benoit Minisini From dcamposf at ...626... Fri May 2 12:17:05 2008 From: dcamposf at ...626... (Daniel Campos) Date: Fri, 2 May 2008 12:17:05 +0200 Subject: [Gambas-user] 1 May / Basic Message-ID: <7259b5ae0805020317u35da7c78ydd4267effdf0ac3b@...627...> http://www.wired.com/science/discoveries/news/2008/04/dayintech_0501 Regards Daniel From keithclark1966 at ...1709... Sun May 4 01:54:38 2008 From: keithclark1966 at ...1709... (Keith Clark) Date: Sat, 03 May 2008 19:54:38 -0400 Subject: [Gambas-user] New Gambas User and missing gb.web component Message-ID: <1209858878.10512.5.camel@...1897...> I've just installed Gambas in Ubuntu 8.04 and all seemed to go well until I tried to create my first program and ran into the following error: some components are missing: gb.web How can I add that component? Thanks, Keith From linuxos at ...1896... Sun May 4 02:01:53 2008 From: linuxos at ...1896... (linus) Date: Sun, 04 May 2008 02:01:53 +0200 Subject: [Gambas-user] New Gambas User and missing gb.web component In-Reply-To: <1209858878.10512.5.camel@...1897...> References: <1209858878.10512.5.camel@...1897...> Message-ID: <1209859313.2736.3.camel@...1898...> Hello, How do you install Gambas software and witch version did you install ? It is officials packages Ubuntu/Debian? Or did you compiled the Gambas software yourself ? -- Olivier CRUILLES Email: linuxos at ...1896... * hypoaristerolactotherapie : methode de depannage des machines par le coup de pied en bas a gauche. * Mais si, Linux est user-friendly. Mais Linux il choisit ses amis, lui ! * Software is like sex, it's better when it's free (Linus Torvalds) Le samedi 03 mai 2008 ? 19:54 -0400, Keith Clark a ?crit : > I've just installed Gambas in Ubuntu 8.04 and all seemed to go well > until I tried to create my first program and ran into the following > error: > > some components are missing: gb.web > > How can I add that component? > > Thanks, > > Keith > > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference > Don't miss this year's exciting event. There's still time to save $100. > Use priority code J8TL2D2. > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > � > From keithclark1966 at ...1709... Sun May 4 02:05:01 2008 From: keithclark1966 at ...1709... (Keith Clark) Date: Sat, 03 May 2008 20:05:01 -0400 Subject: [Gambas-user] New Gambas User and missing gb.web component In-Reply-To: <1209859313.2736.3.camel@...1898...> References: <1209858878.10512.5.camel@...1897...> <1209859313.2736.3.camel@...1898...> Message-ID: <1209859501.10512.7.camel@...1897...> It was an official package. I did not have to compile it myself. Keith On Sun, 2008-05-04 at 02:01 +0200, linus wrote: > Hello, > > How do you install Gambas software and witch version did you install ? > > It is officials packages Ubuntu/Debian? > Or did you compiled the Gambas software yourself ? > From linuxos at ...1896... Sun May 4 02:11:43 2008 From: linuxos at ...1896... (linus) Date: Sun, 04 May 2008 02:11:43 +0200 Subject: [Gambas-user] New Gambas User and missing gb.web component In-Reply-To: <1209859501.10512.7.camel@...1897...> References: <1209858878.10512.5.camel@...1897...> <1209859313.2736.3.camel@...1898...> <1209859501.10512.7.camel@...1897...> Message-ID: <1209859903.2736.9.camel@...1898...> Witch version of Gambas did you installed ? Are you sure that you have installed all the packages ? Le samedi 03 mai 2008 ? 20:05 -0400, Keith Clark a ?crit : > It was an official package. I did not have to compile it myself. > > Keith > > On Sun, 2008-05-04 at 02:01 +0200, linus wrote: > > Hello, > > > > How do you install Gambas software and witch version did you install ? > > > > It is officials packages Ubuntu/Debian? > > Or did you compiled the Gambas software yourself ? > > > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference > Don't miss this year's exciting event. There's still time to save $100. > Use priority code J8TL2D2. > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > � > From keithclark1966 at ...1709... Sun May 4 02:14:02 2008 From: keithclark1966 at ...1709... (Keith Clark) Date: Sat, 03 May 2008 20:14:02 -0400 Subject: [Gambas-user] New Gambas User and missing gb.web component In-Reply-To: <1209859903.2736.9.camel@...1898...> References: <1209858878.10512.5.camel@...1897...> <1209859313.2736.3.camel@...1898...> <1209859501.10512.7.camel@...1897...> <1209859903.2736.9.camel@...1898...> Message-ID: <1209860042.10512.9.camel@...1897...> I just allowed Ubuntu do its thing. I did not have a choice of what to include/omit. I'm running Gambas 2.0.0 Keith On Sun, 2008-05-04 at 02:11 +0200, linus wrote: > Witch version of Gambas did you installed ? > > Are you sure that you have installed all the packages ? > > > Le samedi 03 mai 2008 ? 20:05 -0400, Keith Clark a ?crit : > > It was an official package. I did not have to compile it myself. > > > > Keith > > > > On Sun, 2008-05-04 at 02:01 +0200, linus wrote: > > > Hello, > > > > > > How do you install Gambas software and witch version did you install ? > > > > > > It is officials packages Ubuntu/Debian? > > > Or did you compiled the Gambas software yourself ? > > > > > > > > > ------------------------------------------------------------------------- > > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference > > Don't miss this year's exciting event. There's still time to save $100. > > Use priority code J8TL2D2. > > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone > > _______________________________________________ > > 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 2008 JavaOne(SM) Conference > Don't miss this year's exciting event. There's still time to save $100. > Use priority code J8TL2D2. > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From linuxos at ...1896... Sun May 4 02:25:19 2008 From: linuxos at ...1896... (linus) Date: Sun, 04 May 2008 02:25:19 +0200 Subject: [Gambas-user] New Gambas User and missing gb.web component In-Reply-To: <1209860042.10512.9.camel@...1897...> References: <1209858878.10512.5.camel@...1897...> <1209859313.2736.3.camel@...1898...> <1209859501.10512.7.camel@...1897...> <1209859903.2736.9.camel@...1898...> <1209860042.10512.9.camel@...1897...> Message-ID: <1209860719.2736.15.camel@...1898...> Can you open a terminal window and write this command ? dpkg -l gambas* or dpkg -l gb* This command search into the list of installed packages of your Ubuntu, all packages begin with: 'gambas' Can you send me the answer of this command please Le samedi 03 mai 2008 ? 20:14 -0400, Keith Clark a ?crit : > I just allowed Ubuntu do its thing. I did not have a choice of what to > include/omit. > > I'm running Gambas 2.0.0 > > Keith > > On Sun, 2008-05-04 at 02:11 +0200, linus wrote: > > Witch version of Gambas did you installed ? > > > > Are you sure that you have installed all the packages ? > > > > > > Le samedi 03 mai 2008 ? 20:05 -0400, Keith Clark a ?crit : > > > It was an official package. I did not have to compile it myself. > > > > > > Keith > > > > > > On Sun, 2008-05-04 at 02:01 +0200, linus wrote: > > > > Hello, > > > > > > > > How do you install Gambas software and witch version did you install ? > > > > > > > > It is officials packages Ubuntu/Debian? > > > > Or did you compiled the Gambas software yourself ? > > > > > > > > > > > > > ------------------------------------------------------------------------- > > > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference > > > Don't miss this year's exciting event. There's still time to save $100. > > > Use priority code J8TL2D2. > > > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone > > > _______________________________________________ > > > 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 2008 JavaOne(SM) Conference > > Don't miss this year's exciting event. There's still time to save $100. > > Use priority code J8TL2D2. > > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone > > _______________________________________________ > > 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 2008 JavaOne(SM) Conference > Don't miss this year's exciting event. There's still time to save $100. > Use priority code J8TL2D2. > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From keithclark1966 at ...1709... Sun May 4 02:36:17 2008 From: keithclark1966 at ...1709... (Keith Clark) Date: Sat, 03 May 2008 20:36:17 -0400 Subject: [Gambas-user] New Gambas User and missing gb.web component In-Reply-To: <1209860719.2736.15.camel@...1898...> References: <1209858878.10512.5.camel@...1897...> <1209859313.2736.3.camel@...1898...> <1209859501.10512.7.camel@...1897...> <1209859903.2736.9.camel@...1898...> <1209860042.10512.9.camel@...1897...> <1209860719.2736.15.camel@...1898...> Message-ID: <1209861377.10512.12.camel@...1897...> How is this? Desired=Unknown/Install/Remove/Purge/Hold | Status=Not/Installed/Config-f/Unpacked/Failed-cfg/Half-inst/t-aWait/T-pend |/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad) ||/ Name Version Description +++-==============-==============-============================================ gambas2-dev 2.0.0-1 Gambas compilation tools gambas2-doc (no description available) gambas2-gb-db 2.0.0-1 Gambas database access common libraries gambas2-gb-des 2.0.0-1 Gambas Portland project compatibility compon gambas2-gb-for 2.0.0-1 A gambas native form component gambas2-gb-for 2.0.0-1 A gambas native mdi form component gambas2-gb-for 2.0.0-1 A gambas native mdi form component gambas2-gb-gtk (no description available) gambas2-gb-gui 2.0.0-1 The graphical toolkit selector component gambas2-gb-qt 2.0.0-1 The Gambas Qt GUI component gambas2-gb-qt- (no description available) gambas2-gb-qt- 2.0.0-1 The Gambas extended Qt GUI component gambas2-gb-set 2.0.0-1 Gambas utilities class gambas2-ide 2.0.0-1 Visual development environment for the Gamba gambas2-runtim 2.0.0-1 The Gambas runtime Keith On Sun, 2008-05-04 at 02:25 +0200, linus wrote: > dpkg -l gambas* From linuxos at ...1896... Sun May 4 02:46:47 2008 From: linuxos at ...1896... (linus) Date: Sun, 04 May 2008 02:46:47 +0200 Subject: [Gambas-user] New Gambas User and missing gb.web component In-Reply-To: <1209861377.10512.12.camel@...1897...> References: <1209858878.10512.5.camel@...1897...> <1209859313.2736.3.camel@...1898...> <1209859501.10512.7.camel@...1897...> <1209859903.2736.9.camel@...1898...> <1209860042.10512.9.camel@...1897...> <1209860719.2736.15.camel@...1898...> <1209861377.10512.12.camel@...1897...> Message-ID: <1209862007.2736.19.camel@...1898...> Can you try this command to update all the gambas packages and add all the missing packages. apt-get install gambas* And send me the answer of this command please. Olivier CRUILLES Le samedi 03 mai 2008 ? 20:36 -0400, Keith Clark a ?crit : > How is this? > > Desired=Unknown/Install/Remove/Purge/Hold > | > Status=Not/Installed/Config-f/Unpacked/Failed-cfg/Half-inst/t-aWait/T-pend > |/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: > uppercase=bad) > ||/ Name Version Description > +++-==============-==============-============================================ > gambas2-dev 2.0.0-1 Gambas compilation tools > gambas2-doc (no description available) > gambas2-gb-db 2.0.0-1 Gambas database access common libraries > gambas2-gb-des 2.0.0-1 Gambas Portland project compatibility > compon > gambas2-gb-for 2.0.0-1 A gambas native form component > gambas2-gb-for 2.0.0-1 A gambas native mdi form component > gambas2-gb-for 2.0.0-1 A gambas native mdi form component > gambas2-gb-gtk (no description available) > gambas2-gb-gui 2.0.0-1 The graphical toolkit selector component > gambas2-gb-qt 2.0.0-1 The Gambas Qt GUI component > gambas2-gb-qt- (no description available) > gambas2-gb-qt- 2.0.0-1 The Gambas extended Qt GUI component > gambas2-gb-set 2.0.0-1 Gambas utilities class > gambas2-ide 2.0.0-1 Visual development environment for the > Gamba > gambas2-runtim 2.0.0-1 The Gambas runtime > > Keith > > On Sun, 2008-05-04 at 02:25 +0200, linus wrote: > > dpkg -l gambas* > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference > Don't miss this year's exciting event. There's still time to save $100. > Use priority code J8TL2D2. > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > � > -- Olivier CRUILLES Email: linuxos at ...1896... * hypoaristerolactotherapie : methode de depannage des machines par le coup de pied en bas a gauche. * Mais si, Linux est user-friendly. Mais Linux il choisit ses amis, lui ! * Software is like sex, it's better when it's free (Linus Torvalds) From keithclark1966 at ...1709... Sun May 4 02:56:26 2008 From: keithclark1966 at ...1709... (Keith Clark) Date: Sat, 03 May 2008 20:56:26 -0400 Subject: [Gambas-user] New Gambas User and missing gb.web component In-Reply-To: <1209862007.2736.19.camel@...1898...> References: <1209858878.10512.5.camel@...1897...> <1209859313.2736.3.camel@...1898...> <1209859501.10512.7.camel@...1897...> <1209859903.2736.9.camel@...1898...> <1209860042.10512.9.camel@...1897...> <1209860719.2736.15.camel@...1898...> <1209861377.10512.12.camel@...1897...> <1209862007.2736.19.camel@...1898...> Message-ID: <1209862586.10512.14.camel@...1897...> Worked wonderful! The error is now gone! I thank you very much for your quick help! I can now look forward to learning Gambas.... Keith On Sun, 2008-05-04 at 02:46 +0200, linus wrote: > Can you try this command to update all the gambas packages and add all > the missing packages. > > apt-get install gambas* > > > And send me the answer of this command please. > > > Olivier CRUILLES > > > Le samedi 03 mai 2008 ? 20:36 -0400, Keith Clark a ?crit : > > How is this? > > > > Desired=Unknown/Install/Remove/Purge/Hold > > | > > Status=Not/Installed/Config-f/Unpacked/Failed-cfg/Half-inst/t-aWait/T-pend > > |/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: > > uppercase=bad) > > ||/ Name Version Description > > +++-==============-==============-============================================ > > gambas2-dev 2.0.0-1 Gambas compilation tools > > gambas2-doc (no description available) > > gambas2-gb-db 2.0.0-1 Gambas database access common libraries > > gambas2-gb-des 2.0.0-1 Gambas Portland project compatibility > > compon > > gambas2-gb-for 2.0.0-1 A gambas native form component > > gambas2-gb-for 2.0.0-1 A gambas native mdi form component > > gambas2-gb-for 2.0.0-1 A gambas native mdi form component > > gambas2-gb-gtk (no description available) > > gambas2-gb-gui 2.0.0-1 The graphical toolkit selector component > > gambas2-gb-qt 2.0.0-1 The Gambas Qt GUI component > > gambas2-gb-qt- (no description available) > > gambas2-gb-qt- 2.0.0-1 The Gambas extended Qt GUI component > > gambas2-gb-set 2.0.0-1 Gambas utilities class > > gambas2-ide 2.0.0-1 Visual development environment for the > > Gamba > > gambas2-runtim 2.0.0-1 The Gambas runtime > > > > Keith > > > > On Sun, 2008-05-04 at 02:25 +0200, linus wrote: > > > dpkg -l gambas* > > > > > > ------------------------------------------------------------------------- > > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference > > Don't miss this year's exciting event. There's still time to save $100. > > Use priority code J8TL2D2. > > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > � > > From linuxos at ...1896... Sun May 4 02:57:51 2008 From: linuxos at ...1896... (linus) Date: Sun, 04 May 2008 02:57:51 +0200 Subject: [Gambas-user] New Gambas User and missing gb.web component In-Reply-To: <1209862586.10512.14.camel@...1897...> References: <1209858878.10512.5.camel@...1897...> <1209859313.2736.3.camel@...1898...> <1209859501.10512.7.camel@...1897...> <1209859903.2736.9.camel@...1898...> <1209860042.10512.9.camel@...1897...> <1209860719.2736.15.camel@...1898...> <1209861377.10512.12.camel@...1897...> <1209862007.2736.19.camel@...1898...> <1209862586.10512.14.camel@...1897...> Message-ID: <1209862671.30481.0.camel@...1898...> It's normal, you welcome. Olivier CRUILLES Le samedi 03 mai 2008 ? 20:56 -0400, Keith Clark a ?crit : > Worked wonderful! The error is now gone! > > I thank you very much for your quick help! I can now look forward to > learning Gambas.... > > Keith > > On Sun, 2008-05-04 at 02:46 +0200, linus wrote: > > Can you try this command to update all the gambas packages and add all > > the missing packages. > > > > apt-get install gambas* > > > > > > And send me the answer of this command please. > > > > > > Olivier CRUILLES > > > > > > Le samedi 03 mai 2008 ? 20:36 -0400, Keith Clark a ?crit : > > > How is this? > > > > > > Desired=Unknown/Install/Remove/Purge/Hold > > > | > > > Status=Not/Installed/Config-f/Unpacked/Failed-cfg/Half-inst/t-aWait/T-pend > > > |/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: > > > uppercase=bad) > > > ||/ Name Version Description > > > +++-==============-==============-============================================ > > > gambas2-dev 2.0.0-1 Gambas compilation tools > > > gambas2-doc (no description available) > > > gambas2-gb-db 2.0.0-1 Gambas database access common libraries > > > gambas2-gb-des 2.0.0-1 Gambas Portland project compatibility > > > compon > > > gambas2-gb-for 2.0.0-1 A gambas native form component > > > gambas2-gb-for 2.0.0-1 A gambas native mdi form component > > > gambas2-gb-for 2.0.0-1 A gambas native mdi form component > > > gambas2-gb-gtk (no description available) > > > gambas2-gb-gui 2.0.0-1 The graphical toolkit selector component > > > gambas2-gb-qt 2.0.0-1 The Gambas Qt GUI component > > > gambas2-gb-qt- (no description available) > > > gambas2-gb-qt- 2.0.0-1 The Gambas extended Qt GUI component > > > gambas2-gb-set 2.0.0-1 Gambas utilities class > > > gambas2-ide 2.0.0-1 Visual development environment for the > > > Gamba > > > gambas2-runtim 2.0.0-1 The Gambas runtime > > > > > > Keith > > > > > > On Sun, 2008-05-04 at 02:25 +0200, linus wrote: > > > > dpkg -l gambas* > > > > > > > > > ------------------------------------------------------------------------- > > > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference > > > Don't miss this year's exciting event. There's still time to save $100. > > > Use priority code J8TL2D2. > > > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone > > > _______________________________________________ > > > 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 2008 JavaOne(SM) Conference > Don't miss this year's exciting event. There's still time to save $100. > Use priority code J8TL2D2. > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -- Olivier CRUILLES Email: linuxos at ...1896... * hypoaristerolactotherapie : methode de depannage des machines par le coup de pied en bas a gauche. * Mais si, Linux est user-friendly. Mais Linux il choisit ses amis, lui ! * Software is like sex, it's better when it's free (Linus Torvalds) From jshackney at ...626... Sun May 4 21:19:22 2008 From: jshackney at ...626... (Jason Hackney) Date: Sun, 4 May 2008 15:19:22 -0400 Subject: [Gambas-user] Not sure how to do this... Message-ID: <799be1690805041219oe07748fk3c505d24c5493d6b@...627...> In my project I'm using ffmpeg to resize a file, so I am basically executing a shell command from within Gambas. I'd like to do one of two things: 1) Optionally display the output of ffmpeg in a window AND wait for the command to exit normally, or 2) Again, display the output at the user's option AND show a progress bar so with these huge files the user has some idea of when the action will be done. Basically, what I want to know is if there is a relatively simple way to do this? I was thinking I could somehow poll the output of ffmpeg (via sed/awk/whatever) and parse it, pulling some progress information that way. But that didn't seem very clean. Besides, I also didn't want to make this any harder than it has to be by executing another external command. Am I crazy? :-) From leemcpherson at ...626... Sun May 4 21:24:35 2008 From: leemcpherson at ...626... (Lee McPherson) Date: Sun, 04 May 2008 15:24:35 -0400 Subject: [Gambas-user] Not sure how to do this... In-Reply-To: <799be1690805041219oe07748fk3c505d24c5493d6b@...627...> References: <799be1690805041219oe07748fk3c505d24c5493d6b@...627...> Message-ID: <481E0D73.8090008@...626...> I'm using VLC through gambas to play music files and I ended up having to use VLC's internal command line control. I send it commands through the open process to poll for the current time as a song is playing and read the text response for my progress bar. You'll probably have to do something similar.... It actually doesn't work as cleanly as I'd like either. -Lee Jason Hackney wrote: > In my project I'm using ffmpeg to resize a file, so I am basically > executing a shell command from within Gambas. > > I'd like to do one of two things: > > 1) Optionally display the output of ffmpeg in a window AND wait for > the command to exit normally, or > > 2) Again, display the output at the user's option AND show a progress > bar so with these huge files the user has some idea of when the action > will be done. > > Basically, what I want to know is if there is a relatively simple way > to do this? I was thinking I could somehow poll the output of ffmpeg > (via sed/awk/whatever) and parse it, pulling some progress information > that way. But that didn't seem very clean. Besides, I also didn't want > to make this any harder than it has to be by executing another > external command. > > Am I crazy? :-) > > ------------------------------------------------------------------------- > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference > Don't miss this year's exciting event. There's still time to save $100. > Use priority code J8TL2D2. > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From jshackney at ...626... Sun May 4 22:00:56 2008 From: jshackney at ...626... (Jason Hackney) Date: Sun, 4 May 2008 16:00:56 -0400 Subject: [Gambas-user] Not sure how to do this... In-Reply-To: <481E0D73.8090008@...626...> References: <799be1690805041219oe07748fk3c505d24c5493d6b@...627...> <481E0D73.8090008@...626...> Message-ID: <799be1690805041300h17aab720j2ee1c48427a695fd@...627...> That's what I was thinking, but was holding out hope for a better way. Thanks! From rterry at ...1822... Sun May 4 23:58:08 2008 From: rterry at ...1822... (richard terry) Date: Mon, 5 May 2008 07:58:08 +1000 Subject: [Gambas-user] Feature request: Expander Message-ID: <200805050758.08837.rterry@...1822...> Any chance of having: 1) Font color 2) Text alignment (right/centre.left) for the header of the expander Regards Richard From robertsonhamish at ...626... Mon May 5 10:51:56 2008 From: robertsonhamish at ...626... (Hamish Robertson) Date: Mon, 5 May 2008 15:51:56 +0700 Subject: [Gambas-user] Make Gambas more visual? Message-ID: HOw hard would it be to make gambas more visual? I'm not talking about getting rid of any of the code features at all, but being able to drag and drop a messagebox in would be cool, so would being able drag in a file save as/open dialog and visually edit the default dialog view etc... Even going so far as having a visual flowchart of the whole app (I know I'm pushing it now.. :) ). Even if the whole visual thing is a bit hard to implement at the moment how about an online code snippet library? We could browse the library from within the program and copy and paste the bits we wanted into our own programs. It could also be wiki based and we could add our own snippets to be used by others... Is this a good idea? H. From rterry at ...1822... Sun May 4 23:56:59 2008 From: rterry at ...1822... (richard terry) Date: Mon, 5 May 2008 07:56:59 +1000 Subject: [Gambas-user] Some Wizard Questions Message-ID: <200805050757.00037.rterry@...1822...> Accessing the wizard buttons: 1) Can one change the text on the wizard buttons, if so how. 2) Can one change the size of the wizard buttons, if not could this become an option, as if embedding a wizard on a compact form the large buttons really look out of place. From rterry at ...1822... Mon May 5 00:00:13 2008 From: rterry at ...1822... (richard terry) Date: Mon, 5 May 2008 08:00:13 +1000 Subject: [Gambas-user] Cut/Copypaste in latest svn versions Message-ID: <200805050800.13746.rterry@...1822...> I compiled version 1354 late last week and the cut/copy/paste in the IDE was still not working. Wondered when this was going to be put back. Regards Richard From maximvonk at ...626... Mon May 5 12:16:02 2008 From: maximvonk at ...626... (Maximillian Von Kloisterheim) Date: Mon, 05 May 2008 11:16:02 +0100 Subject: [Gambas-user] Make Gambas more visual? In-Reply-To: References: Message-ID: <481EDE62.9000405@...626...> Hamish Robertson wrote: > HOw hard would it be to make gambas more visual? I'm not talking about > getting rid of any of the code features at all, but being able to drag and > drop a messagebox in would be cool, so would being able drag in a file save > as/open dialog and visually edit the default dialog view etc... > > Even going so far as having a visual flowchart of the whole app (I know I'm > pushing it now.. :) ). > > Even if the whole visual thing is a bit hard to implement at the moment how > about an online code snippet library? > > We could browse the library from within the program and copy and paste the > bits we wanted into our own programs. It could also be wiki based and we > could add our own snippets to be used by others... > > Is this a good idea? > I'm not sure about the visuals in the IDE since that's a lot of work for someone to be getting on with, but the idea of having an on-line snippets library is a great idea. Richard already suggested something similar although I don't think his idea carried as far as integrating the snippets library from within the IDE. There are already a couple of forums for Gambas (besides this list) but they are not too busy just yet, but having some kind of code library is a great idea, especially if people can edit out any bugs in code that it posted (The Wiki idea is a good one). Regards Max From ariefbayu at ...626... Mon May 5 12:23:40 2008 From: ariefbayu at ...626... (Arief Bayu Purwanto) Date: Mon, 5 May 2008 17:23:40 +0700 Subject: [Gambas-user] Make Gambas more visual? In-Reply-To: <481EDE62.9000405@...626...> References: <481EDE62.9000405@...626...> Message-ID: <976ad9050805050323xd50bf91kb5f4e672ef1c9768@...627...> I'm having a website (gambasworld_com) but I don't have a time to develop it in the near future. So, All I can help is, install a code snippet repository on it. If you guys have an idea what PHP software is good, I'll help install it and even I can give the SSH & ftp login to someone who able to maintain it. On 5/5/08, Maximillian Von Kloisterheim wrote: > > Hamish Robertson wrote: > > HOw hard would it be to make gambas more visual? I'm not talking about > > getting rid of any of the code features at all, but being able to drag > and > > drop a messagebox in would be cool, so would being able drag in a file > save > > as/open dialog and visually edit the default dialog view etc... > > > > Even going so far as having a visual flowchart of the whole app (I know > I'm > > pushing it now.. :) ). > > > > Even if the whole visual thing is a bit hard to implement at the moment > how > > about an online code snippet library? > > > > We could browse the library from within the program and copy and paste > the > > bits we wanted into our own programs. It could also be wiki based and we > > could add our own snippets to be used by others... > > > > Is this a good idea? > > > > > I'm not sure about the visuals in the IDE since that's a lot of work for > someone to be getting on with, but the idea of having an on-line > snippets library is a great idea. > > Richard already suggested something similar although I don't think his > idea carried as far as integrating the snippets library from within the > IDE. > > There are already a couple of forums for Gambas (besides this list) but > they are not too busy just yet, but having some kind of code library is > a great idea, especially if people can edit out any bugs in code that it > posted (The Wiki idea is a good one). > > Regards > > Max > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference > Don't miss this year's exciting event. There's still time to save $100. > Use priority code J8TL2D2. > > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Arief Bayu Purwanto About : http://about.freelancer.web.id/ Blog : http://bayu.freelancer.web.id/ From maximvonk at ...626... Mon May 5 15:53:50 2008 From: maximvonk at ...626... (MaxVK) Date: Mon, 5 May 2008 06:53:50 -0700 (PDT) Subject: [Gambas-user] Make Gambas more visual? In-Reply-To: <976ad9050805050323xd50bf91kb5f4e672ef1c9768@...627...> References: <481EDE62.9000405@...626...> <976ad9050805050323xd50bf91kb5f4e672ef1c9768@...627...> Message-ID: <17062054.post@...1379...> Id say some basic Wiki type software would do the trick, then we all get to maintain it. Max Bugzilla from ariefbayu at ...626... wrote: > > I'm having a website (gambasworld_com) but I don't have a time to develop > it > in the near future. > So, All I can help is, install a code snippet repository on it. > If you guys have an idea what PHP software is good, I'll help install it > and > even I can give the SSH & ftp login to someone who able to maintain it. > > On 5/5/08, Maximillian Von Kloisterheim wrote: >> >> Hamish Robertson wrote: >> > HOw hard would it be to make gambas more visual? I'm not talking about >> > getting rid of any of the code features at all, but being able to drag >> and >> > drop a messagebox in would be cool, so would being able drag in a file >> save >> > as/open dialog and visually edit the default dialog view etc... >> > >> > Even going so far as having a visual flowchart of the whole app (I know >> I'm >> > pushing it now.. :) ). >> > >> > Even if the whole visual thing is a bit hard to implement at the moment >> how >> > about an online code snippet library? >> > >> > We could browse the library from within the program and copy and paste >> the >> > bits we wanted into our own programs. It could also be wiki based and >> we >> > could add our own snippets to be used by others... >> > >> > Is this a good idea? >> > >> >> >> I'm not sure about the visuals in the IDE since that's a lot of work for >> someone to be getting on with, but the idea of having an on-line >> snippets library is a great idea. >> >> Richard already suggested something similar although I don't think his >> idea carried as far as integrating the snippets library from within the >> IDE. >> >> There are already a couple of forums for Gambas (besides this list) but >> they are not too busy just yet, but having some kind of code library is >> a great idea, especially if people can edit out any bugs in code that it >> posted (The Wiki idea is a good one). >> >> Regards >> >> Max >> >> >> ------------------------------------------------------------------------- >> This SF.net email is sponsored by the 2008 JavaOne(SM) Conference >> Don't miss this year's exciting event. There's still time to save $100. >> Use priority code J8TL2D2. >> >> http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > > > -- > Arief Bayu Purwanto > About : http://about.freelancer.web.id/ > Blog : http://bayu.freelancer.web.id/ > ------------------------------------------------------------------------- > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference > Don't miss this year's exciting event. There's still time to save $100. > Use priority code J8TL2D2. > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone > _______________________________________________ > 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/Make-Gambas-more-visual--tp17057670p17062054.html Sent from the gambas-user mailing list archive at Nabble.com. From rterry at ...1822... Mon May 5 00:02:49 2008 From: rterry at ...1822... (richard terry) Date: Mon, 5 May 2008 08:02:49 +1000 Subject: [Gambas-user] Form_Load event Message-ID: <200805050802.50022.rterry@...1822...> I'm using a wizard, and when the wizard loads I instantiate a new form which I've designed and stick it on page 2 of the wizard. However when I get to page 2 - though my form is stuck there, the form_load event of that new form hasn't worked. I use (probably wrongly) the form_load event to do some things to the form such as set up some gui-elements, initiliase collections etc, and this dosn't happen. Where in theory should these sort of events be put, so that they always tigger when a form is loaded. Thanks. richard From gambas at ...1... Mon May 5 18:49:12 2008 From: gambas at ...1... (Benoit Minisini) Date: Mon, 5 May 2008 18:49:12 +0200 Subject: [Gambas-user] Some Wizard Questions In-Reply-To: <200805050757.00037.rterry@...1822...> References: <200805050757.00037.rterry@...1822...> Message-ID: <200805051849.12718.gambas@...1...> On dimanche 4 mai 2008, richard terry wrote: > Accessing the wizard buttons: > > 1) Can one change the text on the wizard buttons, if so how. No. > 2) Can one change the size of the wizard buttons, if not could this become > an option, as if embedding a wizard on a compact form the large buttons > really look out of place. Yes, this is a problem. But I'm against adding an option. I think the wizard should adapt automatically to its width, by eventually removing the button text where there is not enough space. Regards, -- Benoit Minisini From gambas at ...1... Mon May 5 18:50:31 2008 From: gambas at ...1... (Benoit Minisini) Date: Mon, 5 May 2008 18:50:31 +0200 Subject: [Gambas-user] Feature request: Expander In-Reply-To: <200805050758.08837.rterry@...1822...> References: <200805050758.08837.rterry@...1822...> Message-ID: <200805051850.31116.gambas@...1...> On dimanche 4 mai 2008, richard terry wrote: > Any chance of having: > > 1) Font color What do you mean exactly? > 2) Text alignment (right/centre.left) for the header of the expander Do you have a screenshot of what you want? Because centering the expander label while the little arrow stays on the left seems strange... Regards, -- Benoit Minisini From gambas at ...1... Mon May 5 18:53:30 2008 From: gambas at ...1... (Benoit Minisini) Date: Mon, 5 May 2008 18:53:30 +0200 Subject: [Gambas-user] Cut/Copypaste in latest svn versions In-Reply-To: <200805050800.13746.rterry@...1822...> References: <200805050800.13746.rterry@...1822...> Message-ID: <200805051853.30075.gambas@...1...> On lundi 5 mai 2008, richard terry wrote: > I compiled version 1354 late last week and the cut/copy/paste in the IDE > was still not working. Wondered when this was going to be put back. > > Regards > > Richard > Can you remind me of the bug you are talking about? -- Benoit Minisini From gambas at ...1... Mon May 5 18:55:42 2008 From: gambas at ...1... (Benoit Minisini) Date: Mon, 5 May 2008 18:55:42 +0200 Subject: [Gambas-user] Make Gambas more visual? In-Reply-To: <17062054.post@...1379...> References: <976ad9050805050323xd50bf91kb5f4e672ef1c9768@...627...> <17062054.post@...1379...> Message-ID: <200805051855.42607.gambas@...1...> On lundi 5 mai 2008, MaxVK wrote: > Id say some basic Wiki type software would do the trick, then we all get to > maintain it. > > Max > Isn't it possible to use gambasdoc.org for that? I would add a dedicated search function for searching inside code snippet of course. -- Benoit Minisini From gambas at ...1... Mon May 5 19:12:45 2008 From: gambas at ...1... (Benoit Minisini) Date: Mon, 5 May 2008 19:12:45 +0200 Subject: [Gambas-user] Form_Load event In-Reply-To: <200805050802.50022.rterry@...1822...> References: <200805050802.50022.rterry@...1822...> Message-ID: <200805051912.45618.gambas@...1...> On lundi 5 mai 2008, richard terry wrote: > I'm using a wizard, and when the wizard loads I instantiate a new form > which I've designed and stick it on page 2 of the wizard. > > However when I get to page 2 - though my form is stuck there, the form_load > event of that new form hasn't worked. > > I use (probably wrongly) the form_load event to do some things to the form > such as set up some gui-elements, initiliase collections etc, and this > dosn't happen. > > Where in theory should these sort of events be put, so that they always > tigger when a form is loaded. > > Thanks. > > richard > Can you make a little project that shows your problem? -- Benoit Minisini From sourceforge-raindog2 at ...94... Mon May 5 19:34:29 2008 From: sourceforge-raindog2 at ...94... (Rob) Date: Mon, 5 May 2008 13:34:29 -0400 Subject: [Gambas-user] Make Gambas more visual? In-Reply-To: <17062054.post@...1379...> References: <976ad9050805050323xd50bf91kb5f4e672ef1c9768@...627...> <17062054.post@...1379...> Message-ID: <200805051334.29870.sourceforge-raindog2@...94...> On Monday 05 May 2008 09:53, MaxVK wrote: > Id say some basic Wiki type software would do the trick, then we > all get to maintain it. That's what the Gambas documentation wiki originally was, using TWiki. While there was a lot of useful Gambas 1.0 code on it, it was eventually impossible to keep up with the spammers. Maybe someone would have more luck now with Mediawiki or a modified version of what Benoit uses on gambasdoc.org, but it would have to be registered users only. We just don't have big enough of a development community to police an open wiki. Rob From maximvonk at ...626... Mon May 5 21:57:42 2008 From: maximvonk at ...626... (Maximillian Von Kloisterheim) Date: Mon, 05 May 2008 20:57:42 +0100 Subject: [Gambas-user] Make Gambas more visual? In-Reply-To: <200805051855.42607.gambas@...1...> References: <976ad9050805050323xd50bf91kb5f4e672ef1c9768@...627...> <17062054.post@...1379...> <200805051855.42607.gambas@...1...> Message-ID: <481F66B6.8000600@...626...> Benoit Minisini wrote: > On lundi 5 mai 2008, MaxVK wrote: >> Id say some basic Wiki type software would do the trick, then we all get to >> maintain it. >> >> Max >> > > Isn't it possible to use gambasdoc.org for that? I would add a dedicated > search function for searching inside code snippet of course. > Id say that would be fine. The whole thing is pretty much set up already and everyone knows the place. From maximvonk at ...626... Mon May 5 22:01:13 2008 From: maximvonk at ...626... (Maximillian Von Kloisterheim) Date: Mon, 05 May 2008 21:01:13 +0100 Subject: [Gambas-user] Make Gambas more visual? In-Reply-To: <200805051334.29870.sourceforge-raindog2@...94...> References: <976ad9050805050323xd50bf91kb5f4e672ef1c9768@...627...> <17062054.post@...1379...> <200805051334.29870.sourceforge-raindog2@...94...> Message-ID: <481F6789.1010805@...626...> Rob wrote: > That's what the Gambas documentation wiki originally was, using TWiki. > While there was a lot of useful Gambas 1.0 code on it, it was > eventually impossible to keep up with the spammers. > > Maybe someone would have more luck now with Mediawiki or a modified > version of what Benoit uses on gambasdoc.org, but it would have to be > registered users only. We just don't have big enough of a > development community to police an open wiki. > > Rob > I agree. While there are quite a few of us, we have other commitments on our time and trying to keep up with SPAM bots is not really an option. Max From sbungay at ...981... Mon May 5 23:42:30 2008 From: sbungay at ...981... (Stephen Bungay) Date: Mon, 05 May 2008 17:42:30 -0400 Subject: [Gambas-user] Make Gambas more visual? In-Reply-To: References: Message-ID: <481F7F46.5070105@...981...> Create an updated version of AmigaVision written in GAMBAS... there ya go. Hamish Robertson wrote: > HOw hard would it be to make gambas more visual? I'm not talking about > getting rid of any of the code features at all, but being able to drag and > drop a messagebox in would be cool, so would being able drag in a file save > as/open dialog and visually edit the default dialog view etc... > > Even going so far as having a visual flowchart of the whole app (I know I'm > pushing it now.. :) ). > > Even if the whole visual thing is a bit hard to implement at the moment how > about an online code snippet library? > > We could browse the library from within the program and copy and paste the > bits we wanted into our own programs. It could also be wiki based and we > could add our own snippets to be used by others... > > Is this a good idea? > > H. > ------------------------------------------------------------------------- > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference > Don't miss this year's exciting event. There's still time to save $100. > Use priority code J8TL2D2. > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From rterry at ...1822... Mon May 5 12:49:55 2008 From: rterry at ...1822... (richard terry) Date: Mon, 5 May 2008 20:49:55 +1000 Subject: [Gambas-user] Dialog size in Save Source Code Message-ID: <200805052049.55829.rterry@...1822...> Just a small non-urgent feature request: I wondered if it would be possible to save the dialog size for this as it is tedious always having to expand it back to a readable size all the time. Regards Richard From gambas at ...1... Mon May 5 23:49:25 2008 From: gambas at ...1... (Benoit Minisini) Date: Mon, 5 May 2008 23:49:25 +0200 Subject: [Gambas-user] Dialog size in Save Source Code In-Reply-To: <200805052049.55829.rterry@...1822...> References: <200805052049.55829.rterry@...1822...> Message-ID: <200805052349.25506.gambas@...1...> On lundi 5 mai 2008, richard terry wrote: > Just a small non-urgent feature request: > > > I wondered if it would be possible to save the dialog size for this as it > is tedious always having to expand it back to a readable size all the time. > > Regards > > Richard > What do you mean by "Dialog size in Save Source Code"? -- Benoit Minisini From rterry at ...1822... Tue May 6 00:39:56 2008 From: rterry at ...1822... (richard terry) Date: Tue, 6 May 2008 08:39:56 +1000 Subject: [Gambas-user] Cut/Copypaste in latest svn versions In-Reply-To: <200805060031.07372.gambas@...1...> References: <200805050800.13746.rterry@...1822...> <200805060802.35457.rterry@...1823...> <200805060031.07372.gambas@...1...> Message-ID: <200805060839.56256.rterry@...1822...> On Tue, 6 May 2008 08:31:07 am you wrote: > On mardi 6 mai 2008, richard terry wrote: > > On Tue, 6 May 2008 02:53:30 am you wrote: > > > On lundi 5 mai 2008, richard terry wrote: > > > > I compiled version 1354 late last week and the cut/copy/paste in the > > > > IDE was still not working. Wondered when this was going to be put > > > > back. > > > > > > > > Regards > > > > > > > > Richard > > > > > > Can you remind me of the bug you are talking about? > > > > What happens is this. > > > > You are in design mode in the ide, and you create a control, decide to > > copy it, and try and paste it onto another object - sometimes it works, > > sometimes, not. I seemed completely broken over the last couple of weeks, > > but in version 58 > > version 58... You mean 1358? Yes > > > is working again (mostly). Sometimes I have to quit > > gambas and re-load it to get it to work. Also, when in the text editor > > writing code, the backspace and delete buttons have not been able to > > delete parts of definitions. Again, intermittent, I'll watch out and try > > and pin it down. > > > > Regards > > > > Richard > > There is a problem with the "automatic focus on last edited property" I > added recently in the dev. version. Maybe you are dealing with that. When > the keyboard shorcut does not work, just check that the focus is not inside > a edited property. Will do, thanks. Ricahrd > > Regards, From afroehlke at ...784... Tue May 6 13:31:19 2008 From: afroehlke at ...784... (=?iso-8859-1?Q?Andreas_Fr=F6hlke?=) Date: Tue, 6 May 2008 13:31:19 +0200 Subject: [Gambas-user] Cannot create file Message-ID: <8D42310D957CFB46AA11921A711D4D16B0552817@...1899...> Hello, I must use gambas 1.0.18 and in the new Kubuntu 8.04 gambas1 is no longer installable by using apt. So I downloaded it and installed it manually. All seams to work fine, but I can't create compiled versions of my projects. Gambas shows an error like: Fmain.333 Cannot create file '~projectpath~/.gambas/FMAIN' The Directy '.gambas' is writable for each user. The line 333 doesn't exist in the class or form file of Fmain and it's not even Fmain. In an other project it's an class-file named CLSadresse on an other line wich also doesn't exist in this class file. An other user with Kubuntu 7.04 and gambas 1.0.18 installed by apt can compile the project. After than I also can compile the project and create the executable, but the executable is not executable. After I set the compiled version to executable by logging on as root an use 'chmod +x Rohling.gambas' the programm can start. This is not practicable. Sorry for my bad english. Please can anyone help me? Regards, Andreas Fr?hlke From Karl.Reinl at ...9... Tue May 6 15:12:43 2008 From: Karl.Reinl at ...9... (Charlie Reinl) Date: Tue, 06 May 2008 15:12:43 +0200 Subject: [Gambas-user] Cannot create file In-Reply-To: <8D42310D957CFB46AA11921A711D4D16B0552817@...1899...> References: <8D42310D957CFB46AA11921A711D4D16B0552817@...1899...> Message-ID: <1210079563.12263.5.camel@...40...> Am Dienstag, den 06.05.2008, 13:31 +0200 schrieb Andreas Fr?hlke: > Hello, > > I must use gambas 1.0.18 and in the new Kubuntu 8.04 gambas1 is no longer installable by using apt. So I downloaded it and installed it manually. All seams to work fine, but I can't create compiled versions of my projects. Gambas shows an error like: > > Fmain.333 Cannot create file '~projectpath~/.gambas/FMAIN' > > The Directy '.gambas' is writable for each user. The line 333 doesn't exist in the class or form file of Fmain and it's not even Fmain. In an other project it's an class-file named CLSadresse on an other line wich also doesn't exist in this class file. > > An other user with Kubuntu 7.04 and gambas 1.0.18 installed by apt can compile the project. After than I also can compile the project and create the executable, but the executable is not executable. After I set the compiled version to executable by logging on as root an use 'chmod +x Rohling.gambas' the programm can start. This is not practicable. > > Sorry for my bad english. Please can anyone help me? > > Regards, > > Andreas Fr?hlke Salut, dit you call 'make install' as root ? where dit you compile it Last question why don't you move to gambas2, it's the Stable Version. -- Amicalment Charlie From afroehlke at ...784... Tue May 6 16:07:06 2008 From: afroehlke at ...784... (=?utf-8?B?QW5kcmVhcyBGcsO2aGxrZQ==?=) Date: Tue, 6 May 2008 16:07:06 +0200 Subject: [Gambas-user] Cannot create file In-Reply-To: <1210079563.12263.5.camel@...40...> References: <8D42310D957CFB46AA11921A711D4D16B0552817@...1899...> <1210079563.12263.5.camel@...40...> Message-ID: <8D42310D957CFB46AA11921A711D4D16B0552831@...1899...> Hello, yes, i used "make install" as root. I don't give it a path to install, so i think in standard path. I must use it because we have up to 150 Projects in gambas 1.0.xx and open it up with gambas2 doesn't work so easely. We cannot update all projects at once to gambas2 so i must have it to bugfix and manage the existing projects until we have updatet it. Regards, Andreas Fr?hlke -----Urspr?ngliche Nachricht----- Von: gambas-user-bounces at lists.sourceforge.net [mailto:gambas-user-bounces at lists.sourceforge.net] Im Auftrag von Charlie Reinl Gesendet: Dienstag, 6. Mai 2008 15:13 An: mailing list for gambas users Betreff: Re: [Gambas-user] Cannot create file Am Dienstag, den 06.05.2008, 13:31 +0200 schrieb Andreas Fr?hlke: > Hello, > > I must use gambas 1.0.18 and in the new Kubuntu 8.04 gambas1 is no longer installable by using apt. So I downloaded it and installed it manually. All seams to work fine, but I can't create compiled versions of my projects. Gambas shows an error like: > > Fmain.333 Cannot create file '~projectpath~/.gambas/FMAIN' > > The Directy '.gambas' is writable for each user. The line 333 doesn't exist in the class or form file of Fmain and it's not even Fmain. In an other project it's an class-file named CLSadresse on an other line wich also doesn't exist in this class file. > > An other user with Kubuntu 7.04 and gambas 1.0.18 installed by apt can compile the project. After than I also can compile the project and create the executable, but the executable is not executable. After I set the compiled version to executable by logging on as root an use 'chmod +x Rohling.gambas' the programm can start. This is not practicable. > > Sorry for my bad english. Please can anyone help me? > > Regards, > > Andreas Fr?hlke Salut, dit you call 'make install' as root ? where dit you compile it Last question why don't you move to gambas2, it's the Stable Version. -- Amicalment Charlie ------------------------------------------------------------------------- This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From Karl.Reinl at ...9... Tue May 6 17:12:01 2008 From: Karl.Reinl at ...9... (Charlie Reinl) Date: Tue, 06 May 2008 17:12:01 +0200 Subject: [Gambas-user] Cannot create file In-Reply-To: <8D42310D957CFB46AA11921A711D4D16B0552831@...1899...> References: <8D42310D957CFB46AA11921A711D4D16B0552817@...1899...> <1210079563.12263.5.camel@...40...> <8D42310D957CFB46AA11921A711D4D16B0552831@...1899...> Message-ID: <1210086721.12263.13.camel@...40...> Salut, the following is my script to make gambas2, that should work for you also. Only for the 'reconf-all' I'm not shure I think for gambas1 you have to use 'reconf'. When finished you will find outside the dir 3 log files. Look there for the problems. #!/bin/sh args="" # --disable-pdf" # --disable-sdl.sound" #echo "*********************************" #echo "./reconf" #echo "*********************************" #./reconf echo "*********************************" echo "./reconf-all" echo "*********************************" ./reconf-all echo "*********************************" echo "./configure -C "${args}" > ../svn-configure.log 2>&1" echo "*********************************" ./configure -C ${args} > ../svn-configure.log 2>&1 echo "*********************************" echo "make -j2 > ../svn-make.log 2>&1" echo "*********************************" make -j2 > ../svn-make.log 2>&1 echo "*********************************" echo "sudo make install > ../svn-make_install.log 2>&1" echo "*********************************" sudo make install > ../svn-make_install.log 2>&1 echo "*********************************" echo "make finished" echo "*********************************" Am Dienstag, den 06.05.2008, 16:07 +0200 schrieb Andreas Fr?hlke: > Hello, > > yes, i used "make install" as root. I don't give it a path to install, so i think in standard path. I must use it because we have up to 150 Projects in gambas 1.0.xx and open it up with gambas2 doesn't work so easely. We cannot update all projects at once to gambas2 so i must have it to bugfix and manage the existing projects until we have updatet it. > > Regards, > > Andreas Fr?hlke > > > -----Urspr?ngliche Nachricht----- > Von: gambas-user-bounces at lists.sourceforge.net [mailto:gambas-user-bounces at lists.sourceforge.net] Im Auftrag von Charlie Reinl > Gesendet: Dienstag, 6. Mai 2008 15:13 > An: mailing list for gambas users > Betreff: Re: [Gambas-user] Cannot create file > > Am Dienstag, den 06.05.2008, 13:31 +0200 schrieb Andreas Fr?hlke: > > Hello, > > > > I must use gambas 1.0.18 and in the new Kubuntu 8.04 gambas1 is no longer installable by using apt. So I downloaded it and installed it manually. All seams to work fine, but I can't create compiled versions of my projects. Gambas shows an error like: > > > > Fmain.333 Cannot create file '~projectpath~/.gambas/FMAIN' > > > > The Directy '.gambas' is writable for each user. The line 333 doesn't exist in the class or form file of Fmain and it's not even Fmain. In an other project it's an class-file named CLSadresse on an other line wich also doesn't exist in this class file. > > > > An other user with Kubuntu 7.04 and gambas 1.0.18 installed by apt can compile the project. After than I also can compile the project and create the executable, but the executable is not executable. After I set the compiled version to executable by logging on as root an use 'chmod +x Rohling.gambas' the programm can start. This is not practicable. > > > > Sorry for my bad english. Please can anyone help me? > > > > Regards, > > > > Andreas Fr?hlke > > Salut, > > dit you call 'make install' as root ? > where dit you compile it > > Last question why don't you move to gambas2, it's the Stable Version. > -- > Amicalment > Charlie > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference > Don't miss this year's exciting event. There's still time to save $100. > Use priority code J8TL2D2. > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone > _______________________________________________ > 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 2008 JavaOne(SM) Conference > Don't miss this year's exciting event. There's still time to save $100. > Use priority code J8TL2D2. > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From m0e.lnx at ...626... Tue May 6 19:07:29 2008 From: m0e.lnx at ...626... (M0E Lnx) Date: Tue, 6 May 2008 12:07:29 -0500 Subject: [Gambas-user] Some Wizard Questions In-Reply-To: <200805051849.12718.gambas@...1...> References: <200805050757.00037.rterry@...1822...> <200805051849.12718.gambas@...1...> Message-ID: <1f1e8c1b0805061007t54babab4m50b9198a6a6b3a54@...627...> I ran into the same dilemma while desiging one of my applications... The only alternative I could come up with was to design my own mocking the looks of the wizard control... Take a look http://vpackager.googlecode.com This way you can have a lot more control over your objects On Mon, May 5, 2008 at 11:49 AM, Benoit Minisini wrote: > On dimanche 4 mai 2008, richard terry wrote: > > Accessing the wizard buttons: > > > > 1) Can one change the text on the wizard buttons, if so how. > > No. > > > 2) Can one change the size of the wizard buttons, if not could this become > > an option, as if embedding a wizard on a compact form the large buttons > > really look out of place. > > Yes, this is a problem. But I'm against adding an option. I think the wizard > should adapt automatically to its width, by eventually removing the button > text where there is not enough space. > > Regards, > > -- > Benoit Minisini > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference > Don't miss this year's exciting event. There's still time to save $100. > Use priority code J8TL2D2. > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From m0e.lnx at ...626... Tue May 6 19:12:45 2008 From: m0e.lnx at ...626... (M0E Lnx) Date: Tue, 6 May 2008 12:12:45 -0500 Subject: [Gambas-user] drag & drop question Message-ID: <1f1e8c1b0805061012p6d4a08c0me945b4313bd2746e@...627...> I'm designing a form which has a dirview, and 2 fileviews. Namely Dirview1, Fileview1, Fileview2. I have setup Dirview1 to display the contents of dirview1.current I have setup fileview2 to accept drops But how do I make fileview2 actually display the file I'm dragging from fileview1? Am I using the wrong object here??? Anyone done this before? Any suggestion is appreciated... thanks From jaap_cramer at ...67... Tue May 6 21:02:55 2008 From: jaap_cramer at ...67... (Jaap Cramer) Date: Tue, 06 May 2008 21:02:55 +0200 Subject: [Gambas-user] looking for a program... Message-ID: Hi This is not a gambas-related question, but I am looking for a program that monitors changes in files. I write a gambas programm, that read lots of little text-files. I make changes in those files. When I want someone to test my program I dont want to send him all the files, but just the ones I altered. Any sugestions? Jaap From m0e.lnx at ...626... Tue May 6 21:53:27 2008 From: m0e.lnx at ...626... (M0E Lnx) Date: Tue, 6 May 2008 14:53:27 -0500 Subject: [Gambas-user] looking for a program... In-Reply-To: References: Message-ID: <1f1e8c1b0805061253i21500ecge85f0934c51bae91@...627...> SVN Repo is your answer ;) On Tue, May 6, 2008 at 2:02 PM, Jaap Cramer wrote: > Hi > > This is not a gambas-related question, but I am looking for a program > that monitors changes in files. I write a gambas programm, that read > lots of little text-files. I make changes in those files. When I want > someone to test my program I dont want to send him all the files, but > just the ones I altered. > > Any sugestions? > > Jaap > > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference > Don't miss this year's exciting event. There's still time to save $100. > Use priority code J8TL2D2. > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From ronstk at ...239... Tue May 6 22:34:34 2008 From: ronstk at ...239... (Ron Onstenk) Date: Tue, 6 May 2008 22:34:34 +0200 Subject: [Gambas-user] looking for a program... In-Reply-To: References: Message-ID: <200805062234.34823.ronstk@...239...> On Tuesday 06 May 2008 21:02, Jaap Cramer wrote: > Hi > > This is not a gambas-related question, but I am looking for a program > that monitors changes in files. I write a gambas programm, that read > lots of little text-files. I make changes in those files. When I want > someone to test my program I dont want to send him all the files, but > just the ones I altered. > > Any sugestions? > > Jaap > > try 'man fam' 'fam' package is doing what you want and used by GNOME? and KDE to monitor this same thing. It is I asume already installed. Ron From gambas at ...1... Tue May 6 22:49:34 2008 From: gambas at ...1... (Benoit Minisini) Date: Tue, 6 May 2008 22:49:34 +0200 Subject: [Gambas-user] Some Wizard Questions In-Reply-To: <1f1e8c1b0805061007t54babab4m50b9198a6a6b3a54@...627...> References: <200805050757.00037.rterry@...1822...> <200805051849.12718.gambas@...1...> <1f1e8c1b0805061007t54babab4m50b9198a6a6b3a54@...627...> Message-ID: <200805062249.34204.gambas@...1...> On mardi 6 mai 2008, M0E Lnx wrote: > I ran into the same dilemma while desiging one of my applications... > The only alternative I could come up with was to design my own mocking > the looks of the wizard control... > > Take a look http://vpackager.googlecode.com > > This way you can have a lot more control over your objects > Just a remark: Lacking of features in Wizard (and other controls) is less a drama than people usually think. Wizard is written in Gambas, so anybody can either propose changes and new features, or take the code and modify it for its own needs. -- Benoit Minisini From gambas at ...1... Tue May 6 22:51:05 2008 From: gambas at ...1... (Benoit Minisini) Date: Tue, 6 May 2008 22:51:05 +0200 Subject: [Gambas-user] drag & drop question In-Reply-To: <1f1e8c1b0805061012p6d4a08c0me945b4313bd2746e@...627...> References: <1f1e8c1b0805061012p6d4a08c0me945b4313bd2746e@...627...> Message-ID: <200805062251.05761.gambas@...1...> On mardi 6 mai 2008, M0E Lnx wrote: > I'm designing a form which has a dirview, and 2 fileviews. Namely > Dirview1, Fileview1, Fileview2. > > I have setup Dirview1 to display the contents of dirview1.current > I have setup fileview2 to accept drops > > But how do I make fileview2 actually display the file I'm dragging > from fileview1? > > Am I using the wrong object here??? > Anyone done this before? > Any suggestion is appreciated... thanks > There is no drag & drop support in FileView and DirView at the moment. Yet another thing to add! -- Benoit Minisini From gambas at ...1... Tue May 6 22:56:30 2008 From: gambas at ...1... (Benoit Minisini) Date: Tue, 6 May 2008 22:56:30 +0200 Subject: [Gambas-user] looking for a program... In-Reply-To: References: Message-ID: <200805062256.30169.gambas@...1...> On mardi 6 mai 2008, Jaap Cramer wrote: > Hi > > This is not a gambas-related question, but I am looking for a program > that monitors changes in files. I write a gambas programm, that read > lots of little text-files. I make changes in those files. When I want > someone to test my program I dont want to send him all the files, but > just the ones I altered. > > Any sugestions? > > Jaap > The 'find' command allows you to find all files modified since a specific date (for example the last time you sent the modified files). Regards, -- Benoit Minisini From m0e.lnx at ...626... Tue May 6 22:58:18 2008 From: m0e.lnx at ...626... (M0E Lnx) Date: Tue, 6 May 2008 15:58:18 -0500 Subject: [Gambas-user] drag & drop question In-Reply-To: <200805062251.05761.gambas@...1...> References: <1f1e8c1b0805061012p6d4a08c0me945b4313bd2746e@...627...> <200805062251.05761.gambas@...1...> Message-ID: <1f1e8c1b0805061358h6998127as119417f62dd25e6f@...627...> I need this... Let me know if you're able to get it in there... I can do some serious testing here... Are there any other controls that support drag&drop yet? iconviews maybe? columnviews? the Drag and Drop events are there, but the controls are not reacting to them On Tue, May 6, 2008 at 3:51 PM, Benoit Minisini wrote: > > On mardi 6 mai 2008, M0E Lnx wrote: > > I'm designing a form which has a dirview, and 2 fileviews. Namely > > Dirview1, Fileview1, Fileview2. > > > > I have setup Dirview1 to display the contents of dirview1.current > > I have setup fileview2 to accept drops > > > > But how do I make fileview2 actually display the file I'm dragging > > from fileview1? > > > > Am I using the wrong object here??? > > Anyone done this before? > > Any suggestion is appreciated... thanks > > > > There is no drag & drop support in FileView and DirView at the moment. Yet > another thing to add! > > -- > Benoit Minisini > > ------------------------------------------------------------------------- > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference > Don't miss this year's exciting event. There's still time to save $100. > Use priority code J8TL2D2. > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From jaap_cramer at ...67... Tue May 6 23:03:14 2008 From: jaap_cramer at ...67... (Jaap Cramer) Date: Tue, 06 May 2008 23:03:14 +0200 Subject: [Gambas-user] looking for a program... In-Reply-To: <200805062256.30169.gambas@...1...> References: <200805062256.30169.gambas@...1...> Message-ID: Hi the 'fam' and 'find' suggestions are appriciated, but I was searching for a version management. I am trying svn now :) tnx Jaap On Tue, 2008-05-06 at 22:56 +0200, Benoit Minisini wrote: > On mardi 6 mai 2008, Jaap Cramer wrote: > > Hi > > > > This is not a gambas-related question, but I am looking for a program > > that monitors changes in files. I write a gambas programm, that read > > lots of little text-files. I make changes in those files. When I want > > someone to test my program I dont want to send him all the files, but > > just the ones I altered. > > > > Any sugestions? > > > > Jaap > > > > The 'find' command allows you to find all files modified since a specific date > (for example the last time you sent the modified files). > > Regards, > From gambas at ...1... Tue May 6 23:14:32 2008 From: gambas at ...1... (Benoit Minisini) Date: Tue, 6 May 2008 23:14:32 +0200 Subject: [Gambas-user] drag & drop question In-Reply-To: <1f1e8c1b0805061358h6998127as119417f62dd25e6f@...627...> References: <1f1e8c1b0805061012p6d4a08c0me945b4313bd2746e@...627...> <200805062251.05761.gambas@...1...> <1f1e8c1b0805061358h6998127as119417f62dd25e6f@...627...> Message-ID: <200805062314.32101.gambas@...1...> On mardi 6 mai 2008, M0E Lnx wrote: > I need this... Let me know if you're able to get it in there... I can > do some serious testing here... > > Are there any other controls that support drag&drop yet? iconviews > maybe? columnviews? > > the Drag and Drop events are there, but the controls are not reacting to > them > The two problems with Drag & Drop: 1) DirView and FileView are not native controls. They are UserControl with a TreeView, IconView or ColumnView embedded inside. So the Drop property and the Drag events are for the UserControl, not the views! 2) TreeView and IconView have no support for dragging items by default. You must write it yourself, as I did for the Gambas IDE project treeview. Regards, -- Benoit Minisini From ronstk at ...239... Wed May 7 02:48:08 2008 From: ronstk at ...239... (Ron Onstenk) Date: Wed, 7 May 2008 02:48:08 +0200 Subject: [Gambas-user] looking for a program... In-Reply-To: References: <200805062256.30169.gambas@...1...> Message-ID: <200805070248.08778.ronstk@...239...> On Tuesday 06 May 2008 23:03, Jaap Cramer wrote: > Hi > > the 'fam' and 'find' suggestions are appriciated, but I was searching > for a version management. I am trying svn now :) tnx > > Jaap > > On Tue, 2008-05-06 at 22:56 +0200, Benoit Minisini wrote: > > On mardi 6 mai 2008, Jaap Cramer wrote: > > > Hi > > > > > > This is not a gambas-related question, but I am looking for a program > > > that monitors changes in files. fam monitors changrd realtime > > > I write a gambas programm, that read > > > lots of little text-files. the file method find them on request by you > > > I make changes in those files. When I want > > > someone to test my program I dont want to send him all the files, but > > > just the ones I altered. So you want a list of files to mail/uplaod them. > > > > > > Any sugestions? > > > > > > Jaap > > > > > > > The 'find' command allows you to find all files modified since a specific date > > (for example the last time you sent the modified files). > > > > Regards, NOFI Wrong question, you asked for a way for 'push' files _to_ the other person. SVN is a 'pull' method on check in/out _by_ the other person. Ron PS Nice work with VectorLinux :) PS2 rsync does automatic the job to keep both sides, more or less realtime, uptodate. more easy to setup and mantain as svn and less overhead. From m0e.lnx at ...626... Wed May 7 13:37:48 2008 From: m0e.lnx at ...626... (M0E Lnx) Date: Wed, 7 May 2008 06:36:48 -0501 Subject: [Gambas-user] drag & drop question In-Reply-To: <200805062314.32101.gambas@...1...> References: <1f1e8c1b0805061012p6d4a08c0me945b4313bd2746e@...627...> <200805062251.05761.gambas@...1...> <1f1e8c1b0805061358h6998127as119417f62dd25e6f@...627...> <200805062314.32101.gambas@...1...> Message-ID: <1f1e8c1b0805070437k59237056nffd3e3920b21a28e@...627...> I'm afraid I'm not skilled enough for that though :( I will try to use an alternative to drag&drop for my application... but hope that gambas can have this in the near future. Kudos On Tue, May 6, 2008 at 4:13 PM, Benoit Minisini wrote: > On mardi 6 mai 2008, M0E Lnx wrote: > > > I need this... Let me know if you're able to get it in there... I can > > do some serious testing here... > > > > Are there any other controls that support drag&drop yet? iconviews > > maybe? columnviews? > > > > the Drag and Drop events are there, but the controls are not reacting to > > them > > > > The two problems with Drag & Drop: > > 1) DirView and FileView are not native controls. They are UserControl with a > TreeView, IconView or ColumnView embedded inside. So the Drop property and > the Drag events are for the UserControl, not the views! > > 2) TreeView and IconView have no support for dragging items by default. You > must write it yourself, as I did for the Gambas IDE project treeview. > > Regards, > > -- > > > Benoit Minisini > > ------------------------------------------------------------------------- > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference > Don't miss this year's exciting event. There's still time to save $100. > Use priority code J8TL2D2. > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From m0e.lnx at ...626... Wed May 7 15:36:15 2008 From: m0e.lnx at ...626... (M0E Lnx) Date: Wed, 7 May 2008 08:36:15 -0500 Subject: [Gambas-user] navigating through a tabstrip interally Message-ID: <1f1e8c1b0805070636m214f6cbdg9092cf9a442cc4b7@...627...> I have a tabstrip that starts with .count = 1 On this tab, there are buttons (grouped in grptools) On grptools_click() I have code that adds one more tab to the tab strip. How can I make it automatically raise that new tab instead of just creating it? From jpierre.weber at ...11... Wed May 7 17:10:31 2008 From: jpierre.weber at ...11... (jp) Date: Wed, 7 May 2008 17:10:31 +0200 Subject: [Gambas-user] how rotate a string in a drawing area Message-ID: <200805071710.32009.jpierre.weber@...11...> hello, i need to write in a drawing ar?a but from the bottom to the top... (rotate it 90? to the left) draw.text() only work in horizontal manner somebody can help me ? From gambas at ...1... Wed May 7 17:37:15 2008 From: gambas at ...1... (Benoit Minisini) Date: Wed, 7 May 2008 17:37:15 +0200 Subject: [Gambas-user] how rotate a string in a drawing area In-Reply-To: <200805071710.32009.jpierre.weber@...11...> References: <200805071710.32009.jpierre.weber@...11...> Message-ID: <200805071737.15188.gambas@...1...> On mercredi 7 mai 2008, jp wrote: > hello, > i need to write in a drawing ar?a but from the bottom to the top... > (rotate it 90? to the left) > draw.text() only work in horizontal manner > somebody can help me ? > You can't at the moment, because QT and GTK+ do that in a very different way. So you have to do that by hand: get the dimension of the text, create a picture, fill the picture with the background you need, draw the text inside the picture, transform the picture into an image, rotate the image (X11 does not know how to rotate a picture), and draw the image into the drawing area. Regards, -- Benoit Minisini From m0e.lnx at ...626... Wed May 7 19:34:11 2008 From: m0e.lnx at ...626... (M0E Lnx) Date: Wed, 7 May 2008 12:34:11 -0500 Subject: [Gambas-user] Populating multiple columns in a column view Message-ID: <1f1e8c1b0805071034h3b9b85d9p3a1fda0c62c6db7@...627...> I have a column view with 3 columns | NAME | TYPE | SIZE | I know how to use the columnview1.add() function to add an item to it. But that only fills out the first column. ( 0 ) How do I go about filling in the rest of the columns? using the .add() function again will add a new item below the last one, but will not fill in information to columns ( 1 and 2 ) From tomas.eroles at ...277... Wed May 7 20:33:24 2008 From: tomas.eroles at ...277... (Tomas Eroles i Forner) Date: Wed, 07 May 2008 20:33:24 +0200 Subject: [Gambas-user] Error obtained in program Message-ID: <1210185204.4191.8.camel@...1787...> Hello all I've got an error in a program: GAMBAS says: Program stopped unexpectedly sending signal #11 The error occurs when I close the application, and not when it works. As a comment, I've been using Gambas 1.9.33 and I've installed today Gambas 2.5, and my project is made with the previous version. (Yes, I've recompiled) Thanks for your comments From m0e.lnx at ...626... Wed May 7 21:22:53 2008 From: m0e.lnx at ...626... (M0E Lnx) Date: Wed, 7 May 2008 14:22:53 -0500 Subject: [Gambas-user] Populating multiple columns in a column view In-Reply-To: <1f1e8c1b0805071034h3b9b85d9p3a1fda0c62c6db7@...627...> References: <1f1e8c1b0805071034h3b9b85d9p3a1fda0c62c6db7@...627...> Message-ID: <1f1e8c1b0805071222p2fc5aaf8p23dd1c2966115912@...627...> Never mind people... I found the answer to this a little after I shot the email... For anyone who needs it in the future, this is the correct syntax columnview1[key as string][column as integer] = YourTextHere as string On Wed, May 7, 2008 at 12:34 PM, M0E Lnx wrote: > I have a column view with 3 columns > > | NAME | TYPE | SIZE | > > I know how to use the columnview1.add() function to add an item to it. > But that only fills out the first column. ( 0 ) > How do I go about filling in the rest of the columns? > using the .add() function again will add a new item below the last > one, but will not fill in information to columns ( 1 and 2 ) > From m0e.lnx at ...626... Wed May 7 21:38:39 2008 From: m0e.lnx at ...626... (M0E Lnx) Date: Wed, 7 May 2008 14:38:39 -0500 Subject: [Gambas-user] Error obtained in program In-Reply-To: <1210185204.4191.8.camel@...1787...> References: <1210185204.4191.8.camel@...1787...> Message-ID: <1f1e8c1b0805071238n59ff542dl919603de7f5a5737@...627...> I think that means your application is segfaulting... There must be something in your application coded wrong On Wed, May 7, 2008 at 1:33 PM, Tomas Eroles i Forner wrote: > Hello all > I've got an error in a program: > GAMBAS says: > Program stopped unexpectedly sending signal #11 > > The error occurs when I close the application, and not when it works. > > As a comment, I've been using Gambas 1.9.33 and I've installed today > Gambas 2.5, and my project is made with the previous version. > (Yes, I've recompiled) > > Thanks for your comments > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference > Don't miss this year's exciting event. There's still time to save $100. > Use priority code J8TL2D2. > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Wed May 7 21:42:11 2008 From: gambas at ...1... (Benoit Minisini) Date: Wed, 7 May 2008 21:42:11 +0200 Subject: [Gambas-user] Error obtained in program In-Reply-To: <1210185204.4191.8.camel@...1787...> References: <1210185204.4191.8.camel@...1787...> Message-ID: <200805072142.11041.gambas@...1...> On mercredi 7 mai 2008, Tomas Eroles i Forner wrote: > Hello all > I've got an error in a program: > GAMBAS says: > Program stopped unexpectedly sending signal #11 > > The error occurs when I close the application, and not when it works. > > As a comment, I've been using Gambas 1.9.33 and I've installed today > Gambas 2.5, and my project is made with the previous version. > (Yes, I've recompiled) > > Thanks for your comments > Please send me your project, and explain exactly what you did unless your program crashes each time you close it. Regards, -- Benoit Minisini From m0e.lnx at ...626... Thu May 8 20:27:32 2008 From: m0e.lnx at ...626... (M0E Lnx) Date: Thu, 8 May 2008 13:27:32 -0500 Subject: [Gambas-user] File stat question Message-ID: <1f1e8c1b0805081127kb87280av77ff539f92863ec3@...627...> I'm trying to figure out a way to calculate file sizes. I can use stat(sPathToFile).size to get the size and go from there. But the problem I'm havin here is that whenever I'm dealing with a directory, it always returns a size of 4K no matter what's in the directory Is there any way to manipulate this to make it calculate the sizes recursively? Or would I be better off using something like the du command via a shell process? The second option would be very inefficient, as this process would have to run hundreds maybe thousands of times. Please advise. From warren at ...1582... Thu May 8 20:30:19 2008 From: warren at ...1582... (Bob Warren) Date: Thu, 08 May 2008 15:30:19 -0300 Subject: [Gambas-user] Packager appears broken in Gambas 2.0.0 under Ubuntu Hardy Message-ID: <482346BB.7090105@...1582...> Hi All, I am using Ubuntu 8.04 (Hardy Heron) installed via Windows. I have downloaded and installed Gambas 2.0.0 available in the Ubuntu repositaries by the standard method in the "Add/Remove Programs" menu. I am an ordinary fellow, not a computer geek. I do not have the time, energy, or (frankly) the competence to play with computers much, except perhaps to use ready-made tools for the production and distribution of my own simple programs. Faced with the prospect of compiling binaries, sorting out dependencies, and all the other stuff that the geeks do, I just have to turn myself off. Sorry, but that's who I am, one of many "ordinary" users who hopefully will adopt Gambas in the future. For the reasons explained above, I would like to point out the importance of making sure that the Gambas available by the "standard" method is always a stable version. There is no need for it to be the latest and greatest, but it shouldn't crash of course. And if serious problems are found at a later time, then I suggest it would be a good idea to replace the version in the standard repository ASAP. That said, I would like to congratulate Benoit on the apparent quality and appearance of Gambas 2 that I have seen in the form of 2.0.0 via Ubuntu Hardy. That one man could have produced such a thing is truly remarkable. Very impressive! So far, I have attempted a few very simple test projects with Gambas 2. When "running" these projects from the IDE, I was foxed for a while because no Window appeared. However, I soon discovered that the window of my project was hidden behind the IDE and that an icon was showing at the bottom of the screen. No real problem then, but is it like this on purpose? Then I tried making executables. No problem there. So I became ambitious and tried making a package for Ubuntu. More often than not, it crashed. Sorry if something similar has been reported and I haven't noticed, or if it has already been fixed in a version later than my "standard" one from Ubuntu Hardy. Here is the report: --------------------------------------------------------- Creating package for Ubuntu. Making build directory. Creating desktop file... Sources are being debianizated. Creating package... dpkg-buildpackage: set CPPFLAGS to default value: dpkg-buildpackage: set CFLAGS to default value: -g -O2 dpkg-buildpackage: set CXXFLAGS to default value: -g -O2 dpkg-buildpackage: set FFLAGS to default value: -g -O2 dpkg-buildpackage: set LDFLAGS to default value: -Wl,-Bsymbolic-functions dpkg-buildpackage: source package shit3 dpkg-buildpackage: source version 0-0 dpkg-buildpackage: source changed by warren dpkg-buildpackage: host architecture i386 debian/rules clean dh_testdir dh_testroot rm -Rf `find . -name ".gambas"` rm -Rf `find . -name "*.gambas"` rm -f build-stamp install-stamp dh_clean dh_clean: Compatibility levels before 4 are deprecated. dpkg-source -b shit3 dpkg-source: error: source package name `Shit3' contains illegal character `S' dpkg-buildpackage: failure: dpkg-source -b shit3 gave error exit status 255 The package build has failed. Package.MakeDebPackage.424: 'dpkg-buildpackage' has failed. ------------------------------------------------ I don't know whether it helps, but the "Name" of my project was "Shit3" (sorry about that), and the "Title" of my project was "bobShit3". I don't understand the report above, but there seems to be some confusion between small "s's" and capital ones? Regards to all, Bob Warren From rterry at ...1822... Wed May 7 23:52:27 2008 From: rterry at ...1822... (richard terry) Date: Thu, 8 May 2008 07:52:27 +1000 Subject: [Gambas-user] Populating multiple columns in a column view In-Reply-To: <1f1e8c1b0805071034h3b9b85d9p3a1fda0c62c6db7@...627...> References: <1f1e8c1b0805071034h3b9b85d9p3a1fda0c62c6db7@...627...> Message-ID: <200805080752.27961.rterry@...1822...> code snippet (out of a loop): columnview1.Add(x, 0) columnview1[x][0] = Trim($Result!brand) columnview1[x][1] = Trim($Result!form) Inc x $Result.MoveNext Regards Richard On Thu, 8 May 2008 03:34:11 am M0E Lnx wrote: > I have a column view with 3 columns > > | NAME | TYPE | SIZE | > > I know how to use the columnview1.add() function to add an item to it. > But that only fills out the first column. ( 0 ) > How do I go about filling in the rest of the columns? > using the .add() function again will add a new item below the last > one, but will not fill in information to columns ( 1 and 2 ) > > ------------------------------------------------------------------------- > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference > Don't miss this year's exciting event. There's still time to save $100. > Use priority code J8TL2D2. > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/java >one _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From tomas.eroles at ...277... Thu May 8 20:39:38 2008 From: tomas.eroles at ...277... (Tomas Eroles i Forner) Date: Thu, 08 May 2008 20:39:38 +0200 Subject: [Gambas-user] Error obtained in program In-Reply-To: <200805072142.11041.gambas@...1...> References: <1210185204.4191.8.camel@...1787...> <200805072142.11041.gambas@...1...> Message-ID: <1210271978.4150.6.camel@...1787...> Hi Benoit Attached is the project in a tar.gz file. It's a sample. I'm trying to translate KTechlab to Gambas for learning Gambas. Apart of this, congratulations for Gambas 2.5, it looks very nice. Good job!! El dc 07 de 05 del 2008 a les 21:42 +0200, en/na Benoit Minisini va escriure: > On mercredi 7 mai 2008, Tomas Eroles i Forner wrote: > > Hello all > > I've got an error in a program: > > GAMBAS says: > > Program stopped unexpectedly sending signal #11 > > > > The error occurs when I close the application, and not when it works. > > > > As a comment, I've been using Gambas 1.9.33 and I've installed today > > Gambas 2.5, and my project is made with the previous version. > > (Yes, I've recompiled) > > > > Thanks for your comments > > > > Please send me your project, and explain exactly what you did unless your > program crashes each time you close it. > > Regards, > -------------- next part -------------- A non-text attachment was scrubbed... Name: gTechlab.tar.gz Type: application/x-compressed-tar Size: 12237 bytes Desc: not available URL: From gambas at ...1... Thu May 8 23:49:32 2008 From: gambas at ...1... (Benoit Minisini) Date: Thu, 8 May 2008 23:49:32 +0200 Subject: [Gambas-user] Packager appears broken in Gambas 2.0.0 under Ubuntu Hardy In-Reply-To: <482346BB.7090105@...1582...> References: <482346BB.7090105@...1582...> Message-ID: <200805082349.32490.gambas@...1...> On jeudi 8 mai 2008, Bob Warren wrote: > Hi All, > > I am using Ubuntu 8.04 (Hardy Heron) installed via Windows. I have > downloaded and installed Gambas 2.0.0 available in the Ubuntu > repositaries by the standard method in the "Add/Remove Programs" menu. > > I am an ordinary fellow, not a computer geek. I do not have the time, > energy, or (frankly) the competence to play with computers much, except > perhaps to use ready-made tools for the production and distribution of > my own simple programs. Faced with the prospect of compiling binaries, > sorting out dependencies, and all the other stuff that the geeks do, I > just have to turn myself off. Sorry, but that's who I am, one of many > "ordinary" users who hopefully will adopt Gambas in the future. > > For the reasons explained above, I would like to point out the > importance of making sure that the Gambas available by the "standard" > method is always a stable version. There is no need for it to be the > latest and greatest, but it shouldn't crash of course. And if serious > problems are found at a later time, then I suggest it would be a good > idea to replace the version in the standard repository ASAP. > > That said, I would like to congratulate Benoit on the apparent quality > and appearance of Gambas 2 that I have seen in the form of 2.0.0 via > Ubuntu Hardy. That one man could have produced such a thing is truly > remarkable. Very impressive! > > So far, I have attempted a few very simple test projects with Gambas 2. > When "running" these projects from the IDE, I was foxed for a while > because no Window appeared. However, I soon discovered that the window > of my project was hidden behind the IDE and that an icon was showing at > the bottom of the screen. No real problem then, but is it like this on > purpose? > > Then I tried making executables. No problem there. So I became ambitious > and tried making a package for Ubuntu. More often than not, it crashed. > Sorry if something similar has been reported and I haven't noticed, or > if it has already been fixed in a version later than my "standard" one > from Ubuntu Hardy. Here is the report: > > --------------------------------------------------------- > Creating package for Ubuntu. > Making build directory. > Creating desktop file... > Sources are being debianizated. > Creating package... > dpkg-buildpackage: set CPPFLAGS to default value: > dpkg-buildpackage: set CFLAGS to default value: -g -O2 > dpkg-buildpackage: set CXXFLAGS to default value: -g -O2 > dpkg-buildpackage: set FFLAGS to default value: -g -O2 > dpkg-buildpackage: set LDFLAGS to default value: -Wl,-Bsymbolic-functions > dpkg-buildpackage: source package shit3 > dpkg-buildpackage: source version 0-0 > dpkg-buildpackage: source changed by warren > dpkg-buildpackage: host architecture i386 > debian/rules clean > dh_testdir > dh_testroot > rm -Rf `find . -name ".gambas"` > rm -Rf `find . -name "*.gambas"` > rm -f build-stamp install-stamp > dh_clean > dh_clean: Compatibility levels before 4 are deprecated. > dpkg-source -b shit3 > dpkg-source: error: source package name `Shit3' contains illegal > character `S' > dpkg-buildpackage: failure: dpkg-source -b shit3 gave error exit status 255 > The package build has failed. > Package.MakeDebPackage.424: 'dpkg-buildpackage' has failed. > > ------------------------------------------------ > I don't know whether it helps, but the "Name" of my project was "Shit3" > (sorry about that), and the "Title" of my project was "bobShit3". I > don't understand the report above, but there seems to be some confusion > between small "s's" and capital ones? > > Regards to all, > > Bob Warren > > This bug has been fixed in Gambas 2.1. You should use the Ubuntu packages specified in the download section of the web site. Regards, -- Benoit Minisini From dcamposf at ...626... Fri May 9 00:28:25 2008 From: dcamposf at ...626... (Daniel Campos) Date: Fri, 9 May 2008 00:28:25 +0200 Subject: [Gambas-user] Packager appears broken in Gambas 2.0.0 under Ubuntu Hardy In-Reply-To: <482346BB.7090105@...1582...> References: <482346BB.7090105@...1582...> Message-ID: <7259b5ae0805081528w6be452d6j1d7c13f93b475770@...627...> Hi: Debian package names can not contain capital characters, that's the problem :-), however I think Gambas Debian packager should take it in account and replace capital characters with small ones Daniel From dcamposf at ...626... Fri May 9 01:16:06 2008 From: dcamposf at ...626... (Daniel Campos) Date: Fri, 9 May 2008 01:16:06 +0200 Subject: [Gambas-user] Packager appears broken in Gambas 2.0.0 under Ubuntu Hardy In-Reply-To: <200805082349.32490.gambas@...1...> References: <482346BB.7090105@...1582...> <200805082349.32490.gambas@...1...> Message-ID: <7259b5ae0805081616s1e7cd0d5xa12f56d98f188d7@...627...> Here: http://gambas.gnulinex.org/ubuntu/ From warren at ...1582... Fri May 9 02:29:27 2008 From: warren at ...1582... (Bob Warren) Date: Thu, 08 May 2008 21:29:27 -0300 Subject: [Gambas-user] Packager appears broken in Gambas 2.0.0 under Ubuntu Hardy In-Reply-To: <200805090027.02604.gambas@...1...> References: <482346BB.7090105@...1582...> <200805082349.32490.gambas@...1...> <48237AA5.9040205@...1582...> <200805090027.02604.gambas@...1...> Message-ID: <48239AE7.1010609@...1582...> Benoit Minisini wrote: > On vendredi 9 mai 2008, Bob Warren wrote: > >> OK, thanks very much Benoit. I'll give it a try. >> How about arranging for the Ubuntu repository to be updated to 2.1 as well? >> >> Best regards, >> >> Bob >> >> > > Ask Ubuntu! I don't make any package for any distribution, I don't have the > time for that... > > Regards, > > I'm not surprised you don't have the time Benoit! You are already performing miracles! But it would be nice if somehow the distributions could be kept up to date. Thanks to your tip, I managed it, but it is definitely not the kind of thing that a non-geek would do. Your Gambas page points to http://gambas.gnulinex.org/ubuntu for more recent versions. The instructions given there are generically appropriate, but the devil is in the details! If they are followed verbatim, they don't work in Ubuntu Hardy. Anyway, what follows are some additional notes showing how I managed to update my Gambas from 2.0 to 2.5. They are not "official", but they might be helpful to other non-geeky Ubuntu users. Oh, by the way, I produced an Ubuntu package for my "Shit3" project using Gambas 2.5, and it worked perfectly, so I am extremely satisfied. ------------------------------------------ This is how I updated from Gambas 2.0 to 2.5 What I did is a modification of the instructions found at: http://gambas.gnulinex.org/ubuntu/ Fresh Gambas Debian packages for Ubuntu provided by the gnuLinEx project ************************************************************** 1. # Add the following line to your /etc/apt/sources.list file: deb http://azores.linex.org/gambas-other/ hardy main -------------------------- How to edit sources.list? In the terminal, type: sudo nano /etc/apt/sources.list The whole file will be displayed in the terminal, with some menus shown at the bottom. Add the line to the file on display: deb http://azores.linex.org/gambas-other/ hardy main ctrl+o to save, ctrl+x to exit. ------------------------- 2. # Update local packages database: In the terminal, type: apt-get update 3. # Install Gambas again via Synaptic Package Manager -------------------------- If there is anything wrong with the above, no doubt someone will shout. It worked for me. Thanks again. Best regards, Bob Warren From warren at ...1582... Fri May 9 03:12:33 2008 From: warren at ...1582... (Bob Warren) Date: Thu, 08 May 2008 22:12:33 -0300 Subject: [Gambas-user] Packager appears broken in Gambas 2.0.0 under Ubuntu Hardy Message-ID: <4823A501.9050702@...1582...> Further to my last post, here is an easier way to edit the sources.list : sudo gedit /etc/apt/sources.list Bob From sourceforge-raindog2 at ...94... Fri May 9 03:29:17 2008 From: sourceforge-raindog2 at ...94... (Rob) Date: Thu, 8 May 2008 21:29:17 -0400 Subject: [Gambas-user] Packager appears broken in Gambas 2.0.0 under Ubuntu Hardy In-Reply-To: <482346BB.7090105@...1582...> References: <482346BB.7090105@...1582...> Message-ID: <200805082129.17335.sourceforge-raindog2@...94...> On Thursday 08 May 2008 14:30, Bob Warren wrote: > So far, I have attempted a few very simple test projects with > Gambas 2. When "running" these projects from the IDE, I was foxed > for a while because no Window appeared. However, I soon discovered > that the window of my project was hidden behind the IDE and that an > icon was showing at the bottom of the screen. No real problem then, > but is it like this on purpose? I'm going to guess that whichever desktop you're using has "focus stealing prevention" turned on, or has it set too high. That's what KDE calls it, anyway; don't know about other desktops. As for not being a computer geek, while Gambas is meant to be a user-friendly software development environment, it's still a software development environment. Software developers are pretty much geeks by definition, at least if you ask an actual non-geek. So, just as you've learned (or will learn) to write code in Gambas, sooner or later you'll figure out how to do things like adding sources to your Ubuntu package source list. Rob From dcamposf at ...626... Fri May 9 11:09:35 2008 From: dcamposf at ...626... (Daniel Campos) Date: Fri, 9 May 2008 11:09:35 +0200 Subject: [Gambas-user] Packager appears broken in Gambas 2.0.0 under Ubuntu Hardy In-Reply-To: <4823A501.9050702@...1582...> References: <4823A501.9050702@...1582...> Message-ID: <7259b5ae0805090209h432af33fwb3abda289d099ebf@...627...> > > > sudo gedit /etc/apt/sources.list > > If you're scared of Geeks :-) , you can use a tool called "Software sources" too, I think it is in the System/Administration menu. It will ask you for sudo password in a graphical way, and It will ask you for the sources.list line in a graphical way too... Daniel From jaap_cramer at ...67... Fri May 9 11:39:00 2008 From: jaap_cramer at ...67... (Jaap Cramer) Date: Fri, 09 May 2008 11:39:00 +0200 Subject: [Gambas-user] Packager appears broken in Gambas 2.0.0 under Ubuntu Hardy In-Reply-To: <7259b5ae0805090209h432af33fwb3abda289d099ebf@...627...> References: <4823A501.9050702@...1582...> <7259b5ae0805090209h432af33fwb3abda289d099ebf@...627...> Message-ID: Haha what a nice community is this. The Geeks offer the non-geeks graphical tools, while the non-geeks try it the geeky terminal-way :) Oke, back to the topic. When I installed Hardy, I directly added http://azores.linex.org/gambas-other/ (gutsy main) and could use a non-broken 2.5 Gambas. Jaap On Fri, 2008-05-09 at 11:09 +0200, Daniel Campos wrote: > > > > > > sudo gedit /etc/apt/sources.list > > > > > If you're scared of Geeks :-) , you can use a tool called "Software sources" > too, I think it is in the System/Administration menu. It will ask you for > sudo password in a graphical way, and It will ask you for the sources.list > line in a graphical way too... > > Daniel > ------------------------------------------------------------------------- > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference > Don't miss this year's exciting event. There's still time to save $100. > Use priority code J8TL2D2. > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From pinozollo at ...626... Sat May 10 01:01:56 2008 From: pinozollo at ...626... (Pino Zollo) Date: Fri, 9 May 2008 19:01:56 -0400 Subject: [Gambas-user] Closing a window in a DO LOOP Message-ID: <200805091901.58231.pinozollo@...626...> Hi everybody, In a class I have the following loop: DO GridVncdxf[Slot, 1].BackColor = &HEFFFBF& T = Now i = Minute(T) MOD 3 s = Second(T) DIV 10 Slot = ((i * 6 + s - nf) + 18) MOD 18 GridVncdxf[Slot, 1].BackColor = &HC5D5A6& WHILE Second(Now) MOD 10 IF ByBeacon THEN EXIT WAIT 0.5 WEND IF ByBeacon THEN EXIT WAIT 0.1 LOOP It happens that while the program is executing this loop I can not close the relative window and nither stop the program from FMain. (Unless ByBeacon becomes TRUE, in which case the loop is ended and the window can be closed) In the IDE only I can stop the program with the STOP button. Please how can I modify this piece of program to get a normal behaviour ? (Developing in GAMBAS 2.5) Thanks. Pino From gambas at ...1... Sat May 10 01:17:23 2008 From: gambas at ...1... (Benoit Minisini) Date: Sat, 10 May 2008 01:17:23 +0200 Subject: [Gambas-user] Closing a window in a DO LOOP In-Reply-To: <200805091901.58231.pinozollo@...626...> References: <200805091901.58231.pinozollo@...626...> Message-ID: <200805100117.23152.gambas@...1...> On samedi 10 mai 2008, Pino Zollo wrote: > Hi everybody, > In a class I have the following loop: > > DO > GridVncdxf[Slot, 1].BackColor = &HEFFFBF& > T = Now > i = Minute(T) MOD 3 > s = Second(T) DIV 10 > Slot = ((i * 6 + s - nf) + 18) MOD 18 > GridVncdxf[Slot, 1].BackColor = &HC5D5A6& > WHILE Second(Now) MOD 10 > IF ByBeacon THEN EXIT > WAIT 0.5 > WEND > IF ByBeacon THEN EXIT > WAIT 0.1 > LOOP > > It happens that while the program is executing this loop I can not close > the relative window and nither stop the program from FMain. (Unless > ByBeacon becomes TRUE, in which case the loop is ended and the window can > be closed) > > In the IDE only I can stop the program with the STOP button. > Please how can I modify this piece of program to get a normal behaviour ? > (Developing in GAMBAS 2.5) > > Thanks. > > Pino > You cannot close a window if you are not in the same event loop level than when you opened it. This is the case there, as by using WAIT, you automatically enter a new event loop. I don't know what you want to do, but I suggest using timers if your actions depends on time. Regards, -- Benoit Minisini From gambas at ...1... Sat May 10 13:11:00 2008 From: gambas at ...1... (Benoit Minisini) Date: Sat, 10 May 2008 13:11:00 +0200 Subject: [Gambas-user] Release of Gambas 2.6 Message-ID: <200805101311.00280.gambas@...1...> Hi, Here is a new release of Gambas 2. The new feature is the support of SVN conflict in the IDE. When a SVN conflict is detected, you will not be able to edit the file in conflict. Instead, you will get a conflict dialog that will help you to solve the conflict. Otherwise, this release fixes some important bugs: * Evaluating expressions in the IDE output console works again. * Symbol polymorphism is now correctly handled when the inheritance depth is greater than two! * The evaluation of Eval() expressions is handled the same way as any other code now, to prevent stack leaks. * Reading floating point values from a SQLite database does not depend on the locale anymore. * Clipboard.Copy() from gb.qt component now correctly sends UTF-8 strings to the clipboard. Here is the full changelog: ------------------------------------------------------------------------------- [CONFIGURATION] * BUG: Search include files inside lib64 directories too. Hurra for the distributions that put non 64 bits specific files into a 64 bits specific directory! * NEW: Makes better configuration warning messages when detecting libintl and libiconv libraries. [DEVELOPMENT ENVIRONMENT] * BUG: The auto-completion of a child class now is correctly updated if its parent class is modified. * BUG: The auto-completion of children classes does not overflow the stack anymore. * BUG: Evaluating expressions in the output console works again. * BUG: Text editor does not flash anymore when being resized. * BUG: Correctly raise an error when making an executable fails for any reason. * BUG: Extract the property help better. * BUG: Fix the layout of the property sheet text edit dialog. * BUG: Splitting view in editor correctly updates the procedure combo-box now. * BUG: The menu editor does not crash anymore when all menus are deleted at once. * NEW: Add a search box in the output console toolbar. * NEW: Displays an error message if a project is not a Gambas 2 project. * NEW: Subversion conflicts support. * OPT: Do not set Project ColumnView AutoResize property to TRUE. Use a very wide column instead to optimize redrawing. [INTERPRETER] * BUG: Symbol polymorphism is now correctly handled when the inheritance depth is greater than two! * BUG: INC and DEC now toggle boolean values. * BUG: Getting information on a not yet loaded class does not crash the debugger anymore. * BUG: Handle the evaluation of Eval() expressions the same way as any other code. Otherwise, stack can be leaked when there is an exception inside. * NEW: The foreign function interface is now optional. [COMPILER] * BUG: Adds many error messages when a compiler limit is reached: too many static symbols in a same class, too many dynamic symbols, too many functions, and so on. * BUG: Do not print error messages on unexpected strings with newline inside. Just claim that an unexpected string has been encountered. [GB.DB.SQLITE2] * BUG: Reading floating point values and other values do not depend on the locale anymore. * NEW: Remove useless code. [GB.DB.SQLITE3] * BUG: Reading floating point values and other values do not depend on the locale anymore. * NEW: Remove useless code. [GB.EVAL] * BUG: Remove an apparently useless line of code that made the highlighter sometimes crash! * BUG: Evaluating "Error" does not crash anymore. It just raises an error. * BUG: Do not print error messages on unexpected strings with newline inside. Just claim that an unexpected string has been encountered. [GB.FORM] * BUG: Correctly cancel a impossible rename operation in the DirView control. * NEW: Add a slider for setting the alpha color component. [GB.FORM.DIALOG] * BUG: Standard dialogs now correctly react to double clicks. [GB.GTK] * BUG: Void items are correctly handled by ComboBox without crashing now. * BUG: Windows cannot get focus anymore. * BUG: PictureBox.Alignment property now correctly deals with Align.Normal, Align.TopNormal, and Align.BottomNormal alignments. * BUG: Fix uninitialized variables in ggridview.cpp and gmainwindow.cpp. [GB.PDF] * BUG: Compiles correctly against poppler 0.8 now. [GB.QT] * BUG: Resizing a GridView column inside the ColumnResize event handler does not lead to a crash anymore. * BUG: Correctly update the PictureBox and DrawingArea background when the background color changes. * BUG: Clipboard.Copy() sends UTF-8 strings to the clipboard correctly now. * BUG: SpinBox.Text works correctly now. * BUG: PictureBox is correctly refreshed now when its contents change. * BUG: TabStrip[].Count now always returns the correct number of child controls in a tab. * NEW: Non resizable windows can be resized by the Move() or Resize() methods now. * OPT: The PictureBox control does not flicker anymore when its Picture property is changed. [GB.QT.EXT] * BUG: Editor now correctly highlight its frame according to the focus change on styles that have use of that. * BUG: Editor correctly goes to the end of file when pressing CTRL+END. Consequently, SelectAll() works correctly too now. [GB.SETTINGS] * BUG: Do not use Array datatype incorrectly anymore. ------------------------------------------------------------------------------- Enjoy it! Regards, -- Benoit Minisini From gbv at ...1076... Sat May 10 19:02:41 2008 From: gbv at ...1076... (Guillermo Ballester Valor) Date: Sat, 10 May 2008 17:02:41 +0000 Subject: [Gambas-user] Release of Gambas 2.6 In-Reply-To: <200805101311.00280.gambas@...1...> References: <200805101311.00280.gambas@...1...> Message-ID: <200805101702.43350.gbv@...1076...> Thanks Benoit, It compiled OK on openSUSE 10.2 and 10.3. 32 and 64 bit rpms are already built. You can get them from openSUSE buildservice repository: http://download.opensuse.org/repositories/home:/gbvalor/ Guillermo El Saturday 10 May 2008 11:11:00 Benoit Minisini escribi?: > Hi, > > Here is a new release of Gambas 2. > -- Guillermo Ballester Valor gbv at ...1076... http://www.oxixares.com/~gbv Ogijares, Granada - SPAIN From warren at ...1582... Sat May 10 19:31:48 2008 From: warren at ...1582... (Bob Warren) Date: Sat, 10 May 2008 14:31:48 -0300 Subject: [Gambas-user] Packager appears broken in Gambas 2.0.0 under Ubuntu Hardy Message-ID: <4825DC04.9030203@...1582...> Interesting input. Points taken. Thanks guys. The only thing that frightens me about geeks is the fact that they often prefer innovation to the proper presentation of what they have already produced. So here we have a case of a broken program (Gambas 2.0.0) being offered through a standard channel for software that is supposedly stable. People try it out, get disappointed, and forget all about Gambas. And then follows the suggestion that if said potential user has real programming ambitions, and is worth his salt, then he sorts it out, because it is not really that difficult. The "out-of-the-box" experience shouldn't matter. I am no marketing expert, since all my professional/computer experience since the early 1960s has involved training and education. However, I definitely think there is something wrong here somewhere. I just think that Gambas is good enough to succeed, that's all, and it would be a pity to see it marginalize a great number of potential non-geeky users (or people like me who get impatient with what I regard as typically geeky presentation). Whatever, the community has promptly solved my problem, which reflects its quality, and I am happy. Best, Bob P.S. On the theme of presentation, perhaps I should have mentioned one other aspect of the packaging wizard that bothers me a bit, and perhaps needs sorting out as far as possible. I am presented with two tree-views: "Package group" and "Menu entry". No doubt I can elucidate myself about what the meaning of these two views is, or was originally. What I know is that I have to decide where to put my program on the HD, and where the launcher should be placed within the Ubuntu menus. Whatever I choose among these 2 trees - that seem to bear little relationship with the distro I am using, the launcher always seems to end up in the "Other" category. Rather than presenting the user with 2 sets of generic categories that are perhaps inappropriate, would it be very difficult (or even advisable) to make them correspond more closely to the distro being used to produce the package? Or could these 2 destinations even be cited rather than chosen? [I am, of course, aware that this little request touches on stuff that goes into deep technical waters. Nevertheless, it is perhaps worth evaluating what, if anything, can be done to improve the situation.] From sourceforge-raindog2 at ...94... Sat May 10 19:50:16 2008 From: sourceforge-raindog2 at ...94... (Rob) Date: Sat, 10 May 2008 13:50:16 -0400 Subject: [Gambas-user] Packager appears broken in Gambas 2.0.0 under Ubuntu Hardy In-Reply-To: <4825DC04.9030203@...1582...> References: <4825DC04.9030203@...1582...> Message-ID: <200805101350.17109.sourceforge-raindog2@...94...> On Saturday 10 May 2008 13:31, Bob Warren wrote: > So here we have a case of a broken program > (Gambas 2.0.0) being offered through a standard channel for > software that is supposedly stable. Again, you really need to be talking to the Ubuntu people about this, not us. It's like complaining on the Apache list that Fedora is shipping an old version with an exploit. I understand that it's a culture shock coming to Linux from the "one company is responsible for 90% of the software we run" world of Windows, but this is how it works. We have exactly as much control over what Ubuntu ships as you do, no more and no less (actually, probably less since most of us aren't even running Ubuntu.) Hardy is still in its desktop support phase, so if you report the bug in the IDE packager and say it's been fixed upstream, maybe they'll update their repositories. If no Ubuntu users report the bug, though, it'll never get fixed. Rob From gambas at ...1... Sat May 10 19:59:33 2008 From: gambas at ...1... (Benoit Minisini) Date: Sat, 10 May 2008 19:59:33 +0200 Subject: [Gambas-user] Packager appears broken in Gambas 2.0.0 under Ubuntu Hardy In-Reply-To: <4825DC04.9030203@...1582...> References: <4825DC04.9030203@...1582...> Message-ID: <200805101959.33418.gambas@...1...> On samedi 10 mai 2008, Bob Warren wrote: > Interesting input. Points taken. Thanks guys. > > The only thing that frightens me about geeks is the fact that they often > prefer innovation to the proper presentation of what they have already > produced. So here we have a case of a broken program (Gambas 2.0.0) > being offered through a standard channel for software that is supposedly > stable. People try it out, get disappointed, and forget all about Gambas. Be sure that if the bug was known before releasing Gambas 2.0, the release would have been delayed. > > And then follows the suggestion that if said potential user has real > programming ambitions, and is worth his salt, then he sorts it out, > because it is not really that difficult. The "out-of-the-box" experience > shouldn't matter. > > I am no marketing expert, since all my professional/computer experience > since the early 1960s has involved training and education. However, I > definitely think there is something wrong here somewhere. I just think > that Gambas is good enough to succeed, that's all, and it would be a > pity to see it marginalize a great number of potential non-geeky users > (or people like me who get impatient with what I regard as typically > geeky presentation). There is no marketing at all in Gambas releases. Do not think as a consumer. > > Whatever, the community has promptly solved my problem, which reflects > its quality, and I am happy. > > Best, > > Bob > > P.S. On the theme of presentation, perhaps I should have mentioned one > other aspect of the packaging wizard that bothers me a bit, and perhaps > needs sorting out as far as possible. I am presented with two > tree-views: "Package group" and "Menu entry". No doubt I can elucidate > myself about what the meaning of these two views is, or was originally. > What I know is that I have to decide where to put my program on the HD, > and where the launcher should be placed within the Ubuntu menus. > Whatever I choose among these 2 trees - that seem to bear little > relationship with the distro I am using, the launcher always seems to > end up in the "Other" category. Rather than presenting the user with 2 > sets of generic categories that are perhaps inappropriate, would it be > very difficult (or even advisable) to make them correspond more closely > to the distro being used to produce the package? Or could these 2 > destinations even be cited rather than chosen? [I am, of course, aware > that this little request touches on stuff that goes into deep technical > waters. Nevertheless, it is perhaps worth evaluating what, if anything, > can be done to improve the situation.] > The package group is related to the way rpm and debian packages are organized, and depends on the distribution. Gambas has a list of package groups for each supported distribution. The menu entry is a related to a freedesktop.org standard that specify where the menu should go. Not really where is should go, but the categories it is associated with. It depends on the distribution too, and Gambas has a list of menu categories for each distribution too. Note that different desktops choose to organize the menus differently for the same menu entries. Maybe this is the reason why the menu entry goes in the "Other" categories for you, maybe not. I did my tests with Mandriva, which gives the list of package groups and menu categories they use. For Ubuntu, I just took the package groups and menu entries of Debian. Maybe I was wrong, only a Ubuntu guru could tell... Regards, -- Benoit Minisini From warren at ...1582... Sat May 10 20:55:11 2008 From: warren at ...1582... (Bob Warren) Date: Sat, 10 May 2008 15:55:11 -0300 Subject: [Gambas-user] Packager appears broken in Gambas 2.0.0 under Ubuntu Hardy Message-ID: <4825EF8F.1050109@...1582...> Benoit Minisini wrote: >There is no marketing at all in Gambas releases. Do not think as a consumer. ---------------------------------------- What I like about you, Benoit, is that you are always on the ball here, and you must have so little time and energy to do it! (Perhaps it is the comparison between a young man and an old fogey like me!) Like you, I don't like marketing stuff much - it makes me sick. But sometimes it is a little difficult to distinguish between (old-style) pride of presentation and real marketing considerations. I suggest focusing on presentation. Bob From gambas at ...1... Sun May 11 01:15:49 2008 From: gambas at ...1... (Benoit Minisini) Date: Sun, 11 May 2008 01:15:49 +0200 Subject: [Gambas-user] INC and DEC on BOOLEAN data... In-Reply-To: <48262962.7020004@...981...> References: <200805101311.00280.gambas@...1...> <48262962.7020004@...981...> Message-ID: <200805110115.49108.gambas@...1...> On dimanche 11 mai 2008, you wrote: > IMHO this is broken thinking. It might be a little more typing to use > VarName = NOT VarName but it is decidedly more transparent as to what > datatype 'VarName' is and what is being done to it. > > Success = Not Success > > vs > > INC(Success) > > DEC(Success) > > In the first example it is very clear what is being done, even when > Hungarian notation is not being used, whereas in the second example all > that is clear is that a value is being incremented or decremented. INC > and DEC implies a change in direction (up or down) to a numeric value, > while NOT implies a change in state, which is more analogous to a toggle. > > I think, and perhaps I'm wrong on this, that a 'data type mismatch' > error is the proper response to those trying to INC or DEC a boolean. > Sorry, I just had to reply, when I see things like this it makes me > cringe, like someone dragging their fingernails on a blackboard makes me > cringe. > > > Kindest regards > Stephen Bungay > Boolean and Integer values can be converted into each other in Gambas: True -> -1 False -> 0 0 -> False Any other value -> True Incrementing or decrementing a boolean variable actually incremented or decremented its integer converted value. INC False -> Inc 0 -> 1 -> True INC True -> Inc -1 -> 0 -> False DEC False -> Dec 0 -> -1 -> True DEC True -> Dec -1 -> -2 -> True ? Weird, so this was fixed in Gambas 2.6, so that DEC True -> False. Otherwise, you will have to remember that INC toggle, but not DEC. I found that too complex for my own brain. This is coherent with the common behaviour of Gambas. I mean you can INC or DEC dates too, as Date and Float can be converted to each other. You can ignore this feature if you don't like it. Anyway, it cannot be removed in 2.x for backward compatibility reasons. I could remove it in 3.0, and replace it by a NOT instruction that would do the same thing only for booleans: NOT MyMenu.Checked ' for example Regards, -- Benoit Minisini From pvalentini at ...626... Sun May 11 03:59:24 2008 From: pvalentini at ...626... (Pablo Valentini) Date: Sat, 10 May 2008 22:59:24 -0300 Subject: [Gambas-user] Release of Gambas 2.6 In-Reply-To: <200805101311.00280.gambas@...1...> References: <200805101311.00280.gambas@...1...> Message-ID: <86b1747b0805101859h715a8a5akcc90e59dac3e1944@...627...> Hi, Since this release is most bug-fixing why 2.6 and not 2.5.x? Thanks, Pablo On Sat, May 10, 2008 at 8:11 AM, Benoit Minisini wrote: > Hi, > > Here is a new release of Gambas 2. From kaoticus60 at ...151... Sun May 11 08:13:44 2008 From: kaoticus60 at ...151... (andy) Date: Sun, 11 May 2008 08:13:44 +0200 Subject: [Gambas-user] Gambas 2.6: webbrowser control? In-Reply-To: References: Message-ID: <48268E98.1020002@...151...> I installed new version with compilation procedure. But my old program with webbrowser control dosen't work correctly. Help me. Thank you From gambas at ...1... Sun May 11 12:28:55 2008 From: gambas at ...1... (Benoit Minisini) Date: Sun, 11 May 2008 12:28:55 +0200 Subject: [Gambas-user] Release of Gambas 2.6 In-Reply-To: <86b1747b0805101859h715a8a5akcc90e59dac3e1944@...627...> References: <200805101311.00280.gambas@...1...> <86b1747b0805101859h715a8a5akcc90e59dac3e1944@...627...> Message-ID: <200805111228.55410.gambas@...1...> On dimanche 11 mai 2008, Pablo Valentini wrote: > Hi, > > Since this release is most bug-fixing why 2.6 and not 2.5.x? > > Thanks, > > > Pablo > Because this is not *just* bug fixing, there are new features. Or because these are bug fixes for the 2.0 version, not the 2.5. Or because I noticed that newbies tend to be lost as soon as there are more than two digits in the version number. As you can see, one can find many reasons! :-) Regards, -- Benoit Minisini From smccuan at ...626... Sun May 11 13:09:29 2008 From: smccuan at ...626... (Shawn McCuan) Date: Sun, 11 May 2008 07:09:29 -0400 Subject: [Gambas-user] Gambas 2.6: webbrowser control? In-Reply-To: <48268E98.1020002@...151...> References: <48268E98.1020002@...151...> Message-ID: On Sun, May 11, 2008 at 2:13 AM, andy wrote: > I installed new version with compilation procedure. But my old program > with webbrowser control dosen't work correctly. Help me. Thank you > > ------------------------------------------------------------------------- > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference > Don't miss this year's exciting event. There's still time to save $100. > Use priority code J8TL2D2. > > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > Could you provide a little more detail? What exactly isn't working? What kind of compilation errors are you receiving, etc? -- Shawn McCuan smccuan at ...626... Support a national popular vote in the US! http://en.wikipedia.org/wiki/National_Popular_Vote_Interstate_Compact http://www.nationalpopularvote.com From sbungay at ...981... Sun May 11 16:40:51 2008 From: sbungay at ...981... (Stephen Bungay) Date: Sun, 11 May 2008 10:40:51 -0400 Subject: [Gambas-user] INC and DEC on BOOLEAN data... In-Reply-To: <200805110115.49108.gambas@...1...> References: <200805101311.00280.gambas@...1...> <48262962.7020004@...981...> <200805110115.49108.gambas@...1...> Message-ID: <48270573.9080209@...981...> Benoit Minisini wrote: > On dimanche 11 mai 2008, you wrote: >> IMHO this is broken thinking. It might be a little more typing to use >> VarName = NOT VarName but it is decidedly more transparent as to what >> datatype 'VarName' is and what is being done to it. >> >> Success = Not Success >> >> vs >> >> INC(Success) >> >> DEC(Success) >> >> In the first example it is very clear what is being done, even when >> Hungarian notation is not being used, whereas in the second example all >> that is clear is that a value is being incremented or decremented. INC >> and DEC implies a change in direction (up or down) to a numeric value, >> while NOT implies a change in state, which is more analogous to a toggle. >> >> I think, and perhaps I'm wrong on this, that a 'data type mismatch' >> error is the proper response to those trying to INC or DEC a boolean. >> Sorry, I just had to reply, when I see things like this it makes me >> cringe, like someone dragging their fingernails on a blackboard makes me >> cringe. >> >> >> Kindest regards >> Stephen Bungay >> > > Boolean and Integer values can be converted into each other in Gambas: > > True -> -1 > False -> 0 > > 0 -> False > Any other value -> True > > Incrementing or decrementing a boolean variable actually incremented or > decremented its integer converted value. > > INC False -> Inc 0 -> 1 -> True > INC True -> Inc -1 -> 0 -> False > > DEC False -> Dec 0 -> -1 -> True > DEC True -> Dec -1 -> -2 -> True ? > > Weird, so this was fixed in Gambas 2.6, so that DEC True -> False. Otherwise, > you will have to remember that INC toggle, but not DEC. I found that too > complex for my own brain. > > This is coherent with the common behaviour of Gambas. I mean you can INC or > DEC dates too, as Date and Float can be converted to each other. > > You can ignore this feature if you don't like it. Anyway, it cannot be removed > in 2.x for backward compatibility reasons. > > I could remove it in 3.0, and replace it by a NOT instruction that would do > the same thing only for booleans: > > NOT MyMenu.Checked ' for example > > Regards, > Yes, just because the feature is there doesn't mean the programmer (me in this case) has to use it. Or, as I've become fond of saying, 'Just because something CAN be done a certain way doesn't mean it SHOULD be done that way'. INC and DEC makes sense on Dates since it implies a direction, into the future or back in the past, as opposed to the state change of On or Off, True or False a boolean value implies. Personally I think I'll just stay with the already implemented BASIC syntax and use; MyMenu.Checked = NOT MyMenu.Checked as it is clear as to it's intent. With typeahead already working to reduce typing there is little in the way of extra burden to the programmer as far as keystrokes go. IMHO, creating a 'NOT' instruction confuses things further since; MyMenu.Checked = Not MyMenu.Checked and NOT MyMenu.Checked would produce the same result, however the latter looks more like an incomplete conditional than an assignment statement. IMHO it is a good idea to Deprecate the INC and DEC on BOOL datatypes in Gambas 3.0. GAMBAS is your baby Benoit, and you have done the Linux community a great service with it. I really have no place making any suggestions and thank you for taking the time to read my thoughts on the subject, however naive they might be. Stephen Bungay From gambas at ...1... Sun May 11 17:45:44 2008 From: gambas at ...1... (Benoit Minisini) Date: Sun, 11 May 2008 17:45:44 +0200 Subject: [Gambas-user] INC and DEC on BOOLEAN data... In-Reply-To: <48270573.9080209@...981...> References: <200805101311.00280.gambas@...1...> <200805110115.49108.gambas@...1...> <48270573.9080209@...981...> Message-ID: <200805111745.45003.gambas@...1...> On dimanche 11 mai 2008, Stephen Bungay wrote: > Benoit Minisini wrote: > > On dimanche 11 mai 2008, you wrote: > >> IMHO this is broken thinking. It might be a little more typing to use > >> VarName = NOT VarName but it is decidedly more transparent as to what > >> datatype 'VarName' is and what is being done to it. > >> > >> Success = Not Success > >> > >> vs > >> > >> INC(Success) > >> > >> DEC(Success) > >> > >> In the first example it is very clear what is being done, even when > >> Hungarian notation is not being used, whereas in the second example all > >> that is clear is that a value is being incremented or decremented. INC > >> and DEC implies a change in direction (up or down) to a numeric value, > >> while NOT implies a change in state, which is more analogous to a > >> toggle. > >> > >> I think, and perhaps I'm wrong on this, that a 'data type mismatch' > >> error is the proper response to those trying to INC or DEC a boolean. > >> Sorry, I just had to reply, when I see things like this it makes me > >> cringe, like someone dragging their fingernails on a blackboard makes me > >> cringe. > >> > >> > >> Kindest regards > >> Stephen Bungay > > > > Boolean and Integer values can be converted into each other in Gambas: > > > > True -> -1 > > False -> 0 > > > > 0 -> False > > Any other value -> True > > > > Incrementing or decrementing a boolean variable actually incremented or > > decremented its integer converted value. > > > > INC False -> Inc 0 -> 1 -> True > > INC True -> Inc -1 -> 0 -> False > > > > DEC False -> Dec 0 -> -1 -> True > > DEC True -> Dec -1 -> -2 -> True ? > > > > Weird, so this was fixed in Gambas 2.6, so that DEC True -> False. > > Otherwise, you will have to remember that INC toggle, but not DEC. I > > found that too complex for my own brain. > > > > This is coherent with the common behaviour of Gambas. I mean you can INC > > or DEC dates too, as Date and Float can be converted to each other. > > > > You can ignore this feature if you don't like it. Anyway, it cannot be > > removed in 2.x for backward compatibility reasons. > > > > I could remove it in 3.0, and replace it by a NOT instruction that would > > do the same thing only for booleans: > > > > NOT MyMenu.Checked ' for example > > > > Regards, > > Yes, just because the feature is there doesn't mean the programmer > (me in this case) has to use it. Or, as I've become fond of saying, > 'Just because something CAN be done a certain way doesn't mean it SHOULD > be done that way'. > INC and DEC makes sense on Dates since it implies a direction, into > the future or back in the past, as opposed to the state change of On or > Off, True or False a boolean value implies. > > Personally I think I'll just stay with the already implemented BASIC > syntax and use; > > MyMenu.Checked = NOT MyMenu.Checked > > as it is clear as to it's intent. With typeahead already working to > reduce typing there is little in the way of extra burden to the > programmer as far as keystrokes go. > > IMHO, creating a 'NOT' instruction confuses things further since; > > MyMenu.Checked = Not MyMenu.Checked > > and > > NOT MyMenu.Checked > > would produce the same result, however the latter looks more like an > incomplete conditional than an assignment statement. > > IMHO it is a good idea to Deprecate the INC and DEC on BOOL datatypes > in Gambas 3.0. > > GAMBAS is your baby Benoit, and you have done the Linux community a > great service with it. I really have no place making any suggestions and > thank you for taking the time to read my thoughts on the subject, > however naive they might be. > > Stephen Bungay > No problem. But if you are the only one people that is disturbed by this semantic, maybe I won't remove it. On the other hand, if many many people cry, I will! -- Benoit Minisini From horechuk at ...981... Sun May 11 17:57:34 2008 From: horechuk at ...981... (Paul Horechuk) Date: Sun, 11 May 2008 11:57:34 -0400 Subject: [Gambas-user] INC and DEC on BOOLEAN data... In-Reply-To: <200805111745.45003.gambas@...1...> References: <200805101311.00280.gambas@...1...> <48270573.9080209@...981...> <200805111745.45003.gambas@...1...> Message-ID: <200805111157.34858.horechuk@...981...> On May 11, 2008 11:45:44 am Benoit Minisini wrote: > On dimanche 11 mai 2008, Stephen Bungay wrote: > > Benoit Minisini wrote: > > > On dimanche 11 mai 2008, you wrote: > > >> IMHO this is broken thinking. It might be a little more typing to > > >> use VarName = NOT VarName but it is decidedly more transparent as to > > >> what datatype 'VarName' is and what is being done to it. > > >> > > >> Success = Not Success > > >> > > >> vs > > >> > > >> INC(Success) > > >> > > >> DEC(Success) > > >> > > >> In the first example it is very clear what is being done, even when > > >> Hungarian notation is not being used, whereas in the second example > > >> all that is clear is that a value is being incremented or decremented. > > >> INC and DEC implies a change in direction (up or down) to a numeric > > >> value, while NOT implies a change in state, which is more analogous to > > >> a toggle. > > >> > > >> I think, and perhaps I'm wrong on this, that a 'data type mismatch' > > >> error is the proper response to those trying to INC or DEC a boolean. > > >> Sorry, I just had to reply, when I see things like this it makes me > > >> cringe, like someone dragging their fingernails on a blackboard makes > > >> me cringe. > > >> > > >> > > >> Kindest regards > > >> Stephen Bungay > > > > > > Boolean and Integer values can be converted into each other in Gambas: > > > > > > True -> -1 > > > False -> 0 > > > > > > 0 -> False > > > Any other value -> True > > > > > > Incrementing or decrementing a boolean variable actually incremented or > > > decremented its integer converted value. > > > > > > INC False -> Inc 0 -> 1 -> True > > > INC True -> Inc -1 -> 0 -> False > > > > > > DEC False -> Dec 0 -> -1 -> True > > > DEC True -> Dec -1 -> -2 -> True ? > > > > > > Weird, so this was fixed in Gambas 2.6http://www.directdial.com/LX.AJA0X.226.html, so that DEC True -> False. > > > Otherwise, you will have to remember that INC toggle, but not DEC. I > > > found that too complex for my own brain. > > > > > > This is coherent with the common behaviour of Gambas. I mean you can > > > INC or DEC dates too, as Date and Float can be converted to each other. > > > > > > You can ignore this feature if you don't like it. Anyway, it cannot be > > > removed in 2.x for backward compatibility reasons. > > > > > > I could remove it in 3.0, and replace it by a NOT instruction that > > > would do the same thing only for booleans: > > > > > > NOT MyMenu.Checked ' for example > > > > > > Regards, > > > > Yes, just because the feature is there doesn't mean the programmer > > (me in this case) has to use it. Or, as I've become fond of saying, > > 'Just because something CAN be done a certain way doesn't mean it SHOULD > > be done that way'. > > INC and DEC makes sense on Dates since it implies a direction, into > > the future or back in the past, as opposed to the state change of On or > > Off, True or False a boolean value implies. > > > > Personally I think I'll just stay with the already implemented BASIC > > syntax and use; > > > > MyMenu.Checked = NOT MyMenu.Checked > > > > as it is clear as to it's intent. With typeahead already working to > > reduce typing there is little in the way of extra burden to the > > programmer as far as keystrokes go. > > > > IMHO, creating a 'NOT' instruction confuses things further since; > > > > MyMenu.Checked = Not MyMenu.Checked > > > > and > > > > NOT MyMenu.Checked > > > > would produce the same result, however the latter looks more like an > > incomplete conditional than an assignment statement. > > > > IMHO it is a good idea to Deprecate the INC and DEC on BOOL datatypes > > in Gambas 3.0. > > > > GAMBAS is your baby Benoit, and you have done the Linux community a > > great service with it. I really have no place making any suggestions and > > thank you for taking the time to read my thoughts on the subject, > > however naive they might be. > > > > Stephen Bungay > > No problem. But if you are the only one people that is disturbed by this > semantic, maybe I won't remove it. On the other hand, if many many people > cry, I will! I have to side with Stephen on this. Allowing INC and DEC on Boolean is just plain bad form. What's next, INC(Char) or INC(File)? -- -- Paul Horechuk Think Free Use Open Source Software From robertsonhamish at ...626... Sun May 11 18:06:08 2008 From: robertsonhamish at ...626... (Hamish Robertson) Date: Sun, 11 May 2008 23:06:08 +0700 Subject: [Gambas-user] BASH help! Message-ID: Hey guys, I'm a complete novice to programming. so please don't flame me is I say anything stupid here. I have a great idea for a program that will (hopefully) help linux a lot. debs and rpms seem to be the defacto standards now for distributing linux programs. However this system works best only if you have an internet connection. I've got a good solution to this probroblem. way easier than apt-on-cd....I'm just having a bit of trouble working out the technical details. This is the plan. (Using Ubuntu as the base distro for the time being) I create a small distro based on ubuntu-minimal, with only x.org, gtklibs, synaptic and the gambas runtime installed. Once the distro gets booted (preferably from virtualbox or vmware) it automatically loads my program which walks the user through the process choosing the package they wish to install with synaptic and downloading the required packages and dependancies. This will put all the downloaded .deb files into /var/cache/apt/archives. This next bit has me stuck. I need to find some way of getting a list of all the downloaded .deb files and putting that into the control file of a new metapackage. I was thinking of using a bash script here but I'm not sure... Any suggestions? From horus at ...1679... Sun May 11 18:58:23 2008 From: horus at ...1679... (David Reese) Date: Sun, 11 May 2008 11:58:23 -0500 Subject: [Gambas-user] BASH help! In-Reply-To: References: Message-ID: <482725AF.1080608@...1679...> Hamish Robertson wrote: > Hey guys, > I'm a complete novice to programming. so please don't flame me is I say > anything stupid here. > No, man, that's how we learn things. > I have a great idea for a program that will (hopefully) help linux a lot. > > debs and rpms seem to be the defacto standards now for distributing linux > programs. However this system works best only if you have an internet > connection. > > I've got a good solution to this probroblem. way easier than > apt-on-cd....I'm just having a bit of trouble working out the technical > details. > > > This is the plan. (Using Ubuntu as the base distro for the time being) > > I create a small distro based on ubuntu-minimal, with only x.org, gtklibs, > synaptic and the gambas runtime installed. > > Once the distro gets booted (preferably from virtualbox or vmware) it > automatically loads my program which walks the user through the process > choosing the package they wish to install with synaptic and downloading the > required packages and dependancies. This will put all the downloaded .deb > files into /var/cache/apt/archives. > > This next bit has me stuck. I need to find some way of getting a list of all > the downloaded .deb files and putting that into the control file of a new > metapackage. I was thinking of using a bash script here but I'm not sure... > Any suggestions? Yeah. This sounds very similar to what is going on in the PCLinux OS community with repackagings of this distribution for specialized purposes. You might want to take a look at what's going on at http://www.pclinuxos.com? Look at MiniMe, especially. Later On, Dave From davidsyoder at ...1903... Sun May 11 19:32:19 2008 From: davidsyoder at ...1903... (David Yoder) Date: Sun, 11 May 2008 10:32:19 -0700 Subject: [Gambas-user] INC and DEC on BOOLEAN data... In-Reply-To: <200805111157.34858.horechuk@...981...> References: <200805101311.00280.gambas@...1...> <48270573.9080209@...981...> <200805111745.45003.gambas@...1...> <200805111157.34858.horechuk@...981...> Message-ID: <48272DA3.7050904@...1903...> To me it seems that this is much to do about nothing! Success = Not Success does not imply boolean function unless Success is known to be declared boolean. The programmer could be invoking the binary complement of Success. The best implication of boolean that I know is the assignment of True or False. I know that many programmers use increment / decrement with boolean objects and that many use int objects as though they were boolean, while that may have me doing a mental frown, it's a so what! Not something I would do as a professional. Dave Paul Horechuk wrote: > On May 11, 2008 11:45:44 am Benoit Minisini wrote: > >> On dimanche 11 mai 2008, Stephen Bungay wrote: >> >>> Benoit Minisini wrote: >>> >>>> On dimanche 11 mai 2008, you wrote: >>>> >>>>> IMHO this is broken thinking. It might be a little more typing to >>>>> use VarName = NOT VarName but it is decidedly more transparent as to >>>>> what datatype 'VarName' is and what is being done to it. >>>>> >>>>> Success = Not Success >>>>> >>>>> vs >>>>> >>>>> INC(Success) >>>>> >>>>> DEC(Success) >>>>> >>>>> In the first example it is very clear what is being done, even when >>>>> Hungarian notation is not being used, whereas in the second example >>>>> all that is clear is that a value is being incremented or decremented. >>>>> INC and DEC implies a change in direction (up or down) to a numeric >>>>> value, while NOT implies a change in state, which is more analogous to >>>>> a toggle. >>>>> >>>>> I think, and perhaps I'm wrong on this, that a 'data type mismatch' >>>>> error is the proper response to those trying to INC or DEC a boolean. >>>>> Sorry, I just had to reply, when I see things like this it makes me >>>>> cringe, like someone dragging their fingernails on a blackboard makes >>>>> me cringe. >>>>> >>>>> >>>>> Kindest regards >>>>> Stephen Bungay >>>>> >>>> Boolean and Integer values can be converted into each other in Gambas: >>>> >>>> True -> -1 >>>> False -> 0 >>>> >>>> 0 -> False >>>> Any other value -> True >>>> >>>> Incrementing or decrementing a boolean variable actually incremented or >>>> decremented its integer converted value. >>>> >>>> INC False -> Inc 0 -> 1 -> True >>>> INC True -> Inc -1 -> 0 -> False >>>> >>>> DEC False -> Dec 0 -> -1 -> True >>>> DEC True -> Dec -1 -> -2 -> True ? >>>> >>>> Weird, so this was fixed in Gambas >>>> > 2.6http://www.directdial.com/LX.AJA0X.226.html, so that DEC True -> False. > >>>> Otherwise, you will have to remember that INC toggle, but not DEC. I >>>> found that too complex for my own brain. >>>> >>>> This is coherent with the common behaviour of Gambas. I mean you can >>>> INC or DEC dates too, as Date and Float can be converted to each other. >>>> >>>> You can ignore this feature if you don't like it. Anyway, it cannot be >>>> removed in 2.x for backward compatibility reasons. >>>> >>>> I could remove it in 3.0, and replace it by a NOT instruction that >>>> would do the same thing only for booleans: >>>> >>>> NOT MyMenu.Checked ' for example >>>> >>>> Regards, >>>> >>> Yes, just because the feature is there doesn't mean the programmer >>> (me in this case) has to use it. Or, as I've become fond of saying, >>> 'Just because something CAN be done a certain way doesn't mean it SHOULD >>> be done that way'. >>> INC and DEC makes sense on Dates since it implies a direction, into >>> the future or back in the past, as opposed to the state change of On or >>> Off, True or False a boolean value implies. >>> >>> Personally I think I'll just stay with the already implemented BASIC >>> syntax and use; >>> >>> MyMenu.Checked = NOT MyMenu.Checked >>> >>> as it is clear as to it's intent. With typeahead already working to >>> reduce typing there is little in the way of extra burden to the >>> programmer as far as keystrokes go. >>> >>> IMHO, creating a 'NOT' instruction confuses things further since; >>> >>> MyMenu.Checked = Not MyMenu.Checked >>> >>> and >>> >>> NOT MyMenu.Checked >>> >>> would produce the same result, however the latter looks more like an >>> incomplete conditional than an assignment statement. >>> >>> IMHO it is a good idea to Deprecate the INC and DEC on BOOL datatypes >>> in Gambas 3.0. >>> >>> GAMBAS is your baby Benoit, and you have done the Linux community a >>> great service with it. I really have no place making any suggestions and >>> thank you for taking the time to read my thoughts on the subject, >>> however naive they might be. >>> >>> Stephen Bungay >>> >> No problem. But if you are the only one people that is disturbed by this >> semantic, maybe I won't remove it. On the other hand, if many many people >> cry, I will! >> > I have to side with Stephen on this. Allowing INC and DEC on Boolean is just > plain bad form. What's next, INC(Char) or INC(File)? > > > > From warren at ...1582... Sun May 11 21:29:32 2008 From: warren at ...1582... (Bob Warren) Date: Sun, 11 May 2008 16:29:32 -0300 Subject: [Gambas-user] Packager appears broken in Gambas 2.0.0 under Ubuntu Hardy Message-ID: <4827491C.5050502@...1582...> Rob wrote: >Again, you really need to be talking to the Ubuntu people about this, >not us. It's like complaining on the Apache list that Fedora is >shipping an old version with an exploit. ------------------------------------ Why "not us"? In my ignorance, I thought you might want to know about it, and would be concerned. As it turns out, you DO know about it, and it has been fixed in a later version. As a result, I have acquired that later version and this particular problem has been solved. Of course, to expect that new software should never get released with fatal bugs in it is too much to expect in realistic terms. It's no crime, though perhaps your beta testing procedures need looking at. However, the fact that the situation should not be easily fixable IS a crime, regardless of who is responsible. As I said, Ubuntu is being allowed to distribute your broken software will-nilly. That's not good for Gambas or Ubuntu, is it? ------------------------------------ Rob wrote: >I understand that it's a culture shock coming to Linux from the "one >company is responsible for 90% of the software we run" world of >Windows, but this is how it works. We have exactly as much control >over what Ubuntu ships as you do, no more and no less (actually, >probably less since most of us aren't even running Ubuntu.) >Hardy is still in its desktop support phase, so if you report the bug >in the IDE packager and say it's been fixed upstream, maybe they'll >update their repositories. If no Ubuntu users report the bug, >though, it'll never get fixed. ---------------------------------- I'd have felt happier if you said "but this is how it DOESN'T work". Linux is the other extreme: everybody is busy digging his own hole deeper, the left hand doesn't doesn't know (or care much) what the right hand is doing, and so on. Don't get me wrong. We all come from Windows (including you probably). But if I approved of Microsoft domination and total control, I wouldn't be here. And unfortunately, even Ubuntu tends to be a law unto itself, not radically different from Microsoft in some respects. So I appreciate the difficulties. As for real "culture shock", I don't need any lessons. I emigrated from England to Brazil at the age of 29 (almost 35 years ago) at the height of a very nasty revolution. Brazil needs Linux and RAD programming systems like Gambas, so that is also why I am here. What I learned from real culture shock is that although you need to adapt to some degree to be practical, you don't need to imitate the natives like a monkey. You have to survive, but you don't have to abandon your critical faculties and you don't always have to agree. Such is my attitude towards Linux. The fact that it has certain characteristics currently is a reality. Whether or not those characteristics are desirable, and whether or not we should seek to change them if necessary, are entirely different questions. So for example, it seems that little or no communication/friendship exists between Gambas and Ubuntu. Is that desirable? Probably not. Is anybody really trying to do anything about it? I don't know. It is possible that attempts have been made and have been frustrated. It is also possible that Gambas gave up too soon. Is anybody sending e-mails or getting on the telephone to Ubuntu about the Gambas 2.0 problem? Or do the Gambas technicians "have better things to do with their time"? In sum, if somebody said to me "We'd appreciate your help by reporting the problem to Ubuntu", I might be motivated to do it. But when I get the message "What the hell are you telling us for?" then frankly I don't feel too inspired to help. Who would? Bob From jredrejo at ...626... Sun May 11 22:29:27 2008 From: jredrejo at ...626... (=?ISO-8859-1?Q?Jos=E9_Luis_Redrejo?=) Date: Sun, 11 May 2008 22:29:27 +0200 Subject: [Gambas-user] Packager appears broken in Gambas 2.0.0 under Ubuntu Hardy In-Reply-To: <4827491C.5050502@...1582...> References: <4827491C.5050502@...1582...> Message-ID: <8eb28a500805111329k70b6a621q61419bee756acfd6@...627...> > > Such is my attitude towards Linux. The fact that it has certain > characteristics currently is a reality. Whether or not those characteristics > are desirable, and whether or not we should seek to change them if > necessary, are entirely different questions. So for example, it seems that > little or no communication/friendship exists between Gambas and Ubuntu. Is > that desirable? Probably not. Is anybody really trying to do anything about > it? I don't know. It is > possible that attempts have been made and have been frustrated. It is > also possible that Gambas gave up too soon. Is anybody sending e-mails or > getting on the telephone to Ubuntu about the Gambas 2.0 problem? Or do the > Gambas technicians "have better things to do with their time"? In sum, if > somebody said to me "We'd appreciate your help by reporting the problem to > Ubuntu", I might be motivated to do it. But when I get the message "What the > hell are you telling us for?" then frankly I don't feel too inspired to > help. Who would? > I've been quiet for all this thread, as Beno?t quickly pointed that the "bug" (let's call it a bug: somebody who doesn't know about minimal debian packaging tried to do package breaking package rules as using capital letters) was fixed. But your latest sentences have had the ability of getting me angry. Your position reminds me some football hooligans who think their team is the only one in the world. That's something that happens quite often between Ubuntu users. I'll remind you what ubuntu is: Ubuntu is a Debian derivative, they don't package most of the packages they have in their repositories: they just copy them from Debian and for most of their packages, their only task is changing "unstable" by some weird word. So, if Ubuntu picks up the Debian packages from Debian unstable instead of Debian testing or stable, they get that kind of things. So, please: complain to ubuntu and ask them to collaborate with gambas, but don't do the opposite. All the distributions have that chance, and some of them use it. I'm an official Debian Developer and try to maintain good gambas packages in Debian: ubuntu just take my packages from Debian, change the name of the maintainer and the name of the distribution and think that's all. Now, for the future next Ubuntu version they have picked gambas2 v2.5, so they will have the bugs that Beno?t has just fixed with version 2.6. So please, get more information before putting Ubuntu problems on the Gambas developers side. You now know that next ubuntu version will have a buggy gambas version: if you work with ubuntu, talk to them. Iff not, you know: ubuntu release in time, doesn't matter if things are ready or not. It's your choice, don't cry to us for that choice. Regards. Jos? L. From richard.j.walker at ...247... Sun May 11 23:23:01 2008 From: richard.j.walker at ...247... (Richard) Date: Sun, 11 May 2008 22:23:01 +0100 Subject: [Gambas-user] INC and DEC on BOOLEAN data... In-Reply-To: <48272DA3.7050904@...1903...> References: <200805101311.00280.gambas@...1...> <200805111157.34858.horechuk@...981...> <48272DA3.7050904@...1903...> Message-ID: <200805112223.01208.richard.j.walker@...247...> Just adding my fourpence worth; I agree that Success = NOT Success doesn't necessarily imply a boolean operation is being executed, but it is a MUCH stronger hint that this is the case than an appearent attempt to increment or decrement a value. There is a world of difference between type punning and type coersion. One requires/presumes an understanding of lower level architecture and the other is an attempt to make knowledge of the underlying structure unneccessary. The first time I came across type coersion was in Sinclair SuperBASIC in 1983/4. It was a huge leap forward in making programming a more human friendly process and part of an overall strategy in that language to hide the messy irrelevant details and make BASIC more readable. It wasn't until the Turbo compiler was introduced years later that the concept of designating types for numeric variables was introduced. But I digress. The ability to apply INC and DEC to boolean variables does nothing for data abstraction or human readability (surely these are two important goals for every high level language?). Perhaps people who see nothing "wrong" with this apparent abuse of logic and language are more at home with lower level languages (such as C) or do not have English as their mother tongue. I also think it is a huge mistake to say that some typographical convention should be used in naming the variable to make it clear that the "INC" or "DEC" operation is in fact the boolean operation "NOT". Many people, myself included, believe that reintroducing an expectation that the reader of a program needs to know the underlying structure of the storage used for a variable merely discourages good programming practices; use meaningful names for variables and functions and declare them close to where they are used. If your code requires an understanding of the data type being stored in a variable for a reader to understand the code then perhaps there is something else wrong. If the declaration of a variable is only a few lines away at the start of the function/procedure then it should be easy to refer to if needed. If we are voting, then I vote for the official deprecation of INC and DEC on boolean values. On Sunday 11 May 2008 18:32, David Yoder wrote: > To me it seems that this is much to do about nothing! > > Success = Not Success > > does not imply boolean function unless Success is known to be > declared boolean. The programmer could be invoking the binary > complement of Success. > > The best implication of boolean that I know is the assignment of > True or False. > > I know that many programmers use increment / decrement with boolean > objects and that many use int objects as though they were boolean, while > that may have me doing a mental frown, it's a so what! Not something I > would do as a professional. > > Dave > > Paul Horechuk wrote: > > On May 11, 2008 11:45:44 am Benoit Minisini wrote: > >> On dimanche 11 mai 2008, Stephen Bungay wrote: > >>> Benoit Minisini wrote: > >>>> On dimanche 11 mai 2008, you wrote: > >>>>> IMHO this is broken thinking. It might be a little more typing to > >>>>> use VarName = NOT VarName but it is decidedly more transparent as to > >>>>> what datatype 'VarName' is and what is being done to it. > >>>>> > >>>>> Success = Not Success > >>>>> > >>>>> vs > >>>>> > >>>>> INC(Success) > >>>>> > >>>>> DEC(Success) > >>>>> > >>>>> In the first example it is very clear what is being done, even > >>>>> when Hungarian notation is not being used, whereas in the second > >>>>> example all that is clear is that a value is being incremented or > >>>>> decremented. INC and DEC implies a change in direction (up or down) > >>>>> to a numeric value, while NOT implies a change in state, which is > >>>>> more analogous to a toggle. > >>>>> > >>>>> I think, and perhaps I'm wrong on this, that a 'data type > >>>>> mismatch' error is the proper response to those trying to INC or DEC > >>>>> a boolean. Sorry, I just had to reply, when I see things like this it > >>>>> makes me cringe, like someone dragging their fingernails on a > >>>>> blackboard makes me cringe. > >>>>> > >>>>> > >>>>> Kindest regards > >>>>> Stephen Bungay > >>>> > >>>> Boolean and Integer values can be converted into each other in Gambas: > >>>> > >>>> True -> -1 > >>>> False -> 0 > >>>> > >>>> 0 -> False > >>>> Any other value -> True > >>>> > >>>> Incrementing or decrementing a boolean variable actually incremented > >>>> or decremented its integer converted value. > >>>> > >>>> INC False -> Inc 0 -> 1 -> True > >>>> INC True -> Inc -1 -> 0 -> False > >>>> > >>>> DEC False -> Dec 0 -> -1 -> True > >>>> DEC True -> Dec -1 -> -2 -> True ? > >>>> > >>>> Weird, so this was fixed in Gambas > > > > 2.6http://www.directdial.com/LX.AJA0X.226.html, so that DEC True -> > > False. > > > >>>> Otherwise, you will have to remember that INC toggle, but not DEC. I > >>>> found that too complex for my own brain. > >>>> > >>>> This is coherent with the common behaviour of Gambas. I mean you can > >>>> INC or DEC dates too, as Date and Float can be converted to each > >>>> other. > >>>> > >>>> You can ignore this feature if you don't like it. Anyway, it cannot be > >>>> removed in 2.x for backward compatibility reasons. > >>>> > >>>> I could remove it in 3.0, and replace it by a NOT instruction that > >>>> would do the same thing only for booleans: > >>>> > >>>> NOT MyMenu.Checked ' for example > >>>> > >>>> Regards, > >>> > >>> Yes, just because the feature is there doesn't mean the programmer > >>> (me in this case) has to use it. Or, as I've become fond of saying, > >>> 'Just because something CAN be done a certain way doesn't mean it > >>> SHOULD be done that way'. > >>> INC and DEC makes sense on Dates since it implies a direction, into > >>> the future or back in the past, as opposed to the state change of On or > >>> Off, True or False a boolean value implies. > >>> > >>> Personally I think I'll just stay with the already implemented BASIC > >>> syntax and use; > >>> > >>> MyMenu.Checked = NOT MyMenu.Checked > >>> > >>> as it is clear as to it's intent. With typeahead already working to > >>> reduce typing there is little in the way of extra burden to the > >>> programmer as far as keystrokes go. > >>> > >>> IMHO, creating a 'NOT' instruction confuses things further since; > >>> > >>> MyMenu.Checked = Not MyMenu.Checked > >>> > >>> and > >>> > >>> NOT MyMenu.Checked > >>> > >>> would produce the same result, however the latter looks more like an > >>> incomplete conditional than an assignment statement. > >>> > >>> IMHO it is a good idea to Deprecate the INC and DEC on BOOL > >>> datatypes in Gambas 3.0. > >>> > >>> GAMBAS is your baby Benoit, and you have done the Linux community a > >>> great service with it. I really have no place making any suggestions > >>> and thank you for taking the time to read my thoughts on the subject, > >>> however naive they might be. > >>> > >>> Stephen Bungay > >> > >> No problem. But if you are the only one people that is disturbed by this > >> semantic, maybe I won't remove it. On the other hand, if many many > >> people cry, I will! > > > > I have to side with Stephen on this. Allowing INC and DEC on Boolean is > > just plain bad form. What's next, INC(Char) or INC(File)? > > ------------------------------------------------------------------------- > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference > Don't miss this year's exciting event. There's still time to save $100. > Use priority code J8TL2D2. > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/java >one _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From robertsonhamish at ...626... Mon May 12 02:39:14 2008 From: robertsonhamish at ...626... (Hamish Robertson) Date: Mon, 12 May 2008 07:39:14 +0700 Subject: [Gambas-user] BASH help! In-Reply-To: <482725AF.1080608@...1679...> References: <482725AF.1080608@...1679...> Message-ID: Woah, I don't think I made myself clear.... Sorry guys, twas late at night. :) Basically I want to create super-deb installer files for ubuntu. A super-deb will contain a mini repository. In it will be the program you want to install and any dependancies that it needs + a newly created metapackage that depends on everything in the file. The metapackage essentially becomes the installer. The superdeb will simply be a zipped bunch of deb files and a script all compressed with makeself. The user double clicks on the sdeb file and it immediately backs up the users' sources.list file, replaces it with a new one that points to /tmp/setup, copies the repository to /tmp/setup and runs apt-et update before installing the metapackage. Before it exits it puts the original sources.list pack in place and asks the user if they wish to run apt-get update, and explains why that is a good idea. I've made a couple of these by hand and it works really well (s long as you stick to the same distro...i.e an unbuntu 7.04 sdeb won't be compatible with ubuntu 8.04 etc...). I think it's a simple solution to a problem that can drive you up the wall. I know apt-on-cd does a similar thing, but you need to use apt-get or synaptic after loading the cdrom into the repos...This is easy for someone who is familiar with linux, but impossible for someone who has never used linux before. Anyway, I need a foolproof and automatic way of making these sdeb files cause doing it manually sucks and is too complicated for the average user. My idea here was to intially create a program that makes the sdeb....problem is that if you run it from your distro...it may not pick up all the dependancies as you may already have things installed etc, thereby making the sdeb uninstallable on another system. The solution apears to be to use virtualbox or vmware/qemu and run a special mini sdeb distro from a virtual machine. If the sdeb distro is minimal, then it should get ALL the required dependancies when making the sdebfile, thereby making the sdeb installable on just about any ubuntu system that is the same version. Er following me? So getting back to my original question... (Sorry for the long post) This is how I can see the "make and sdeb" program working. I make a small distro based off ubuntu minimal with only gtklibs, synaptic, x.org and my sdeb program loaded as exras. When a user boots the distro from VMware it loads X and presents them with the sdeb program which then asks them to choose the packages they wish to download to put into the sdeb file. Synaptic does its thing, closes then sdeb asks you what you want to name the installer (metapackage). You type in a name, then sdeb makes the metapackage and a repository out of everything in /var/cache/apt/archives and zips it all + a run script an acrhive using makeself. That is it. I know it works as i have made a few of these sdeb files already...atomating the whole process is a bit more tricky. Anyway, I need help in getting the list of deb files into the metapackage's control file. This bit has got me bamboozled. Any ideas? Is my idea any good? Some thoughts from gurus like you would be greatly appreciated. thanks in advance; H. 2008/5/11 David Reese : > Hamish Robertson wrote: > > Hey guys, > > I'm a complete novice to programming. so please don't flame me is I say > > anything stupid here. > > > No, man, that's how we learn things. > > I have a great idea for a program that will (hopefully) help linux a lot. > > > > debs and rpms seem to be the defacto standards now for distributing linux > > programs. However this system works best only if you have an internet > > connection. > > > > I've got a good solution to this probroblem. way easier than > > apt-on-cd....I'm just having a bit of trouble working out the technical > > details. > > > > > > This is the plan. (Using Ubuntu as the base distro for the time being) > > > > I create a small distro based on ubuntu-minimal, with only x.org, > gtklibs, > > synaptic and the gambas runtime installed. > > > > Once the distro gets booted (preferably from virtualbox or vmware) it > > automatically loads my program which walks the user through the process > > choosing the package they wish to install with synaptic and downloading > the > > required packages and dependancies. This will put all the downloaded .deb > > files into /var/cache/apt/archives. > > > > This next bit has me stuck. I need to find some way of getting a list of > all > > the downloaded .deb files and putting that into the control file of a new > > metapackage. I was thinking of using a bash script here but I'm not > sure... > > Any suggestions? > Yeah. This sounds very similar to what is going on in the PCLinux OS > community with repackagings of this distribution for specialized > purposes. You might want to take a look at what's going on at > http://www.pclinuxos.com? Look at MiniMe, especially. > > Later On, > Dave > > ------------------------------------------------------------------------- > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference > Don't miss this year's exciting event. There's still time to save $100. > Use priority code J8TL2D2. > > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From sourceforge-raindog2 at ...94... Mon May 12 02:39:07 2008 From: sourceforge-raindog2 at ...94... (Rob) Date: Sun, 11 May 2008 20:39:07 -0400 Subject: [Gambas-user] OT: BASH help! In-Reply-To: References: Message-ID: <200805112039.07962.sourceforge-raindog2@...94...> On Sunday 11 May 2008 12:06, Hamish Robertson wrote: > This next bit has me stuck. I need to find some way of getting a > list of all the downloaded .deb files and putting that into the > control file of a new metapackage. I was thinking of using a bash > script here but I'm not sure... Any suggestions? I have no idea what a .deb control file looks like, but what you're looking to do may be as simple as /bin/ls /var/cache/apt/archives/*.deb >>listofdebs.txt Maybe I'm misunderstanding, though. If you need to remove the .deb extension, the version or any of that stuff, it becomes more complicated but is still a perl one-liner. Too bad the Gambas script interpreter doesn't have a -e flag to allow one-liners ;-) Rob From warren at ...1582... Mon May 12 03:17:58 2008 From: warren at ...1582... (Bob Warren) Date: Sun, 11 May 2008 22:17:58 -0300 Subject: [Gambas-user] Packager appears broken in Gambas 2.0.0 under Ubuntu Hardy Message-ID: <48279AC6.1070008@...1582...> Hi Jos?, >But your latest sentences have had the ability of getting me angry. Your position >reminds me some football hooligans who think their team is the only one in the >world. ------------------- In the light of what I said, does your anger really justify that kind of comparison? Shame on you. If you knew me at all, you would find the image of a football hooligan in relation to my person just as funny as I do! ------------------- >So please, get more information before putting Ubuntu problems on the Gambas >developers side. ------------------ In my world, we solve problems by embracing them, not disowning them. That's the only thing I've tried to encourage. Bob From robertsonhamish at ...626... Mon May 12 03:48:30 2008 From: robertsonhamish at ...626... (Hamish Robertson) Date: Mon, 12 May 2008 08:48:30 +0700 Subject: [Gambas-user] OT: BASH help! In-Reply-To: <200805112039.07962.sourceforge-raindog2@...94...> References: <200805112039.07962.sourceforge-raindog2@...94...> Message-ID: Woah thanks rob! Perl?!! Uh oh... Yeah I've tried that ls thingy but I need to get rid or the .deb extension and list it as csv...i.e package1, package2, package3, etc... is this do-able in bash? or is something like perl or python the go here? Can I do it in gambas? I'm so new to this... :p H. 2008/5/12 Rob : > On Sunday 11 May 2008 12:06, Hamish Robertson wrote: > > This next bit has me stuck. I need to find some way of getting a > > list of all the downloaded .deb files and putting that into the > > control file of a new metapackage. I was thinking of using a bash > > script here but I'm not sure... Any suggestions? > > I have no idea what a .deb control file looks like, but what you're > looking to do may be as simple as > > /bin/ls /var/cache/apt/archives/*.deb >>listofdebs.txt > > Maybe I'm misunderstanding, though. If you need to remove the .deb > extension, the version or any of that stuff, it becomes more > complicated but is still a perl one-liner. Too bad the Gambas script > interpreter doesn't have a -e flag to allow one-liners ;-) > > Rob > > ------------------------------------------------------------------------- > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference > Don't miss this year's exciting event. There's still time to save $100. > Use priority code J8TL2D2. > > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From sourceforge-raindog2 at ...94... Mon May 12 05:49:08 2008 From: sourceforge-raindog2 at ...94... (Rob) Date: Sun, 11 May 2008 23:49:08 -0400 Subject: [Gambas-user] OT: BASH help! In-Reply-To: References: <200805112039.07962.sourceforge-raindog2@...94...> Message-ID: <200805112349.08367.sourceforge-raindog2@...94...> On Sunday 11 May 2008 21:48, Hamish Robertson wrote: > Yeah I've tried that ls thingy but I need to get rid or the .deb > extension and list it as csv...i.e package1, package2, package3, > etc... > > is this do-able in bash? or is something like perl or python the go > here? Here's how to remove file extensions and convert a list to a comma-separated line, in bash: /bin/ls *.deb | xargs -ix echo `basename x` | tr "\n" ","; echo That will end the line with a comma, though, and there's no space after each comma. Using perl (you can paste this into a bash script, no need to write the whole thing in perl): perl -e 'print join(", ", map { s/.deb$//; $_ } split("\n", `ls *.deb`)), "\n";' That produces a normal comma-separated list terminated by a newline. You can also use sed and awk to do this, but my skills in those have atrophied in the decade since I started using perl. > Can I do it in gambas? Sure.... haven't tried to compile this, but here's the general idea: dim f as new string[] dim d as string f = dir(".", "*.deb") for each d in f d = left(d, length(d) - 4) next print f.join(", ") That should produce the same result as the perl one-liner. Rob From robertsonhamish at ...626... Mon May 12 06:24:07 2008 From: robertsonhamish at ...626... (Hamish Robertson) Date: Mon, 12 May 2008 11:24:07 +0700 Subject: [Gambas-user] OT: BASH help! In-Reply-To: <200805112349.08367.sourceforge-raindog2@...94...> References: <200805112039.07962.sourceforge-raindog2@...94...> <200805112349.08367.sourceforge-raindog2@...94...> Message-ID: You're a champion! thank you so much! One last question...how do I pipe the output into a variable(String) to be used in the control file? I'm guessing the perl script here will be the easiest. If I can get a variable that will work in my bash script I'm away! :) Thanks so much. H. 2008/5/12 Rob : > On Sunday 11 May 2008 21:48, Hamish Robertson wrote: > > Yeah I've tried that ls thingy but I need to get rid or the .deb > > extension and list it as csv...i.e package1, package2, package3, > > etc... > > > > is this do-able in bash? or is something like perl or python the go > > here? > > Here's how to remove file extensions and convert a list to a > comma-separated line, in bash: > > /bin/ls *.deb | xargs -ix echo `basename x` | tr "\n" ","; echo > > That will end the line with a comma, though, and there's no space > after each comma. Using perl (you can paste this into a bash script, > no need to write the whole thing in perl): > > perl -e 'print join(", ", map { s/.deb$//; $_ } split("\n", `ls > *.deb`)), "\n";' > > That produces a normal comma-separated list terminated by a newline. > You can also use sed and awk to do this, but my skills in those have > atrophied in the decade since I started using perl. > > > Can I do it in gambas? > > Sure.... haven't tried to compile this, but here's the general idea: > > dim f as new string[] > dim d as string > f = dir(".", "*.deb") > for each d in f > d = left(d, length(d) - 4) > next > print f.join(", ") > > That should produce the same result as the perl one-liner. > > Rob > > ------------------------------------------------------------------------- > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference > Don't miss this year's exciting event. There's still time to save $100. > Use priority code J8TL2D2. > > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From sourceforge-raindog2 at ...94... Mon May 12 06:56:17 2008 From: sourceforge-raindog2 at ...94... (Rob) Date: Mon, 12 May 2008 00:56:17 -0400 Subject: [Gambas-user] OT: BASH help! In-Reply-To: References: <200805112349.08367.sourceforge-raindog2@...94...> Message-ID: <200805120056.17276.sourceforge-raindog2@...94...> On Monday 12 May 2008 00:24, Hamish Robertson wrote: > You're a champion! thank you so much! One last question...how do I > pipe the output into a variable(String) to be used in the control > file? I'm guessing the perl script here will be the easiest. If I > can get a variable that will work in my bash script I'm away! :) The simplest way would be backticks or $() (which place the output of a command into a variable.) In this case, backticks might require some quoting, but with $() you should be able to go, export MYVAR=$(perl -e 'print join(", ", map { s/.deb$//; $_ } split("\n", `ls *.deb`)), "\n";') and then MYVAR will contain the comma-separated list. I think if you need any more Bash help you should probably talk to me in private, though when it comes to building .deb packages I'm pretty ignorant. Rob From m0e.lnx at ...626... Mon May 12 15:33:36 2008 From: m0e.lnx at ...626... (M0E Lnx) Date: Mon, 12 May 2008 08:33:36 -0500 Subject: [Gambas-user] Keyboard input in embedded application Message-ID: <1f1e8c1b0805120633w10c2a0f7r8f45dfd51ebd895f@...627...> I have an application with an embedder control that runs another one of my little projects. The embedded application has txtbox controls on it, buttons, textlabels and the like. Every other control that I've tried here works, except for the textboxes. I cannot get the textboxes to accept keyboard input when the application is running embedded. If I run the application outside, it works fine Anyone experienced this before? From serif at ...1870... Mon May 12 14:26:37 2008 From: serif at ...1870... (Mike Brett) Date: Mon, 12 May 2008 13:26:37 +0100 Subject: [Gambas-user] Beginners problem : Gambas compiled package installation Message-ID: <4828377D.6010201@...1870...> I've installed Gambas 2.5.0 on Fedora 8 from the rpms on the LDRWEB site. All seems to have gone well, apart from the fact that none of the examples will open, despite the fact that the files are in the appropriate folders. I just get "This project does not exist" messages. (The installation placed the examples in /usr/share/gambas2/examples) Indeed if I 'Open Project' and navigate to the various examples folders, they won't open from there either. I can highlight a .gambas file and click OK and nothing happens. From a brief experiment, the installation seems to create new projects just fine. What corrective action should I take please? Thanks. - Mike Brett - From jshackney at ...626... Mon May 12 16:07:03 2008 From: jshackney at ...626... (Jason Hackney) Date: Mon, 12 May 2008 10:07:03 -0400 Subject: [Gambas-user] Beginners problem : Gambas compiled package installation In-Reply-To: <4828377D.6010201@...1870...> References: <4828377D.6010201@...1870...> Message-ID: <799be1690805120707j13e80f69w2a15890f99b9ac12@...627...> I had a similar problem from within Ubuntu. I just ran gambas as the superuser to get the examples working. And yeah, I know that's probably not the ideal solution. Best of luck. From linux at ...1904... Mon May 12 17:14:02 2008 From: linux at ...1904... (Martin Senftleben) Date: Mon, 12 May 2008 17:14:02 +0200 Subject: [Gambas-user] Beginners problem : Gambas compiled package installation In-Reply-To: <799be1690805120707j13e80f69w2a15890f99b9ac12@...627...> References: <4828377D.6010201@...1870...> <799be1690805120707j13e80f69w2a15890f99b9ac12@...627...> Message-ID: <200805121714.09700.linux@...1904...> Am Montag 12 Mai 2008 schrieb Jason Hackney: > I had a similar problem from within Ubuntu. I just ran gambas as > the superuser to get the examples working. Maybe you just need to change the access rights. By default, the files in this folder are only accessible to root. The access rights should be set at least to "r--r--r--" (readable to all), or chmod 555. If you want to edit the example projects, you probably need to move them into your home folder and give them read- and write-access (chmod 666). You can also leave them in the default location and use the "save as" option in Gambas in order to make a copy which you can work on. Martin -- Dr. Martin Senftleben, Ph.D. http://www.drmartinus.de http://www.daskirchenjahr.de From pinozollo at ...626... Mon May 12 19:12:34 2008 From: pinozollo at ...626... (Pino Zollo) Date: Mon, 12 May 2008 13:12:34 -0400 Subject: [Gambas-user] RowClick does nothing Message-ID: <200805121312.35809.pinozollo@...626...> Hi GridView in Gambas 2.5 The following does nothing: PUBLIC SUB GridVncdxf_RowClick(Row AS Integer) STOP = TRUE DEBUG "RowClick ";; Row ComboBeacon.Text = GridVncdxf[Row, 1] ComboBeacon_Click() END The following works fine PUBLIC SUB GridVncdxf_Click() STOP = TRUE DEBUG "Click ";; GridVncdxf.Row ComboBeacon.Text = GridVncdxf[GridVncdxf.Row, 1].Text ComboBeacon_Click() END Why ? Regards Pino From pinozollo at ...626... Mon May 12 20:03:15 2008 From: pinozollo at ...626... (Pino Zollo) Date: Mon, 12 May 2008 14:03:15 -0400 Subject: [Gambas-user] RightClick as LeftClick on GridView Message-ID: <200805121403.16166.pinozollo@...626...> Hi Gambas 2.5 In my application I use Left Click on a GridView to select a data on the row and the Right Click (Menu) to start a new window. It happens that the Right Click not only starts the new window, but also does what is supposed to do the Left Click, i.e. selects the data on the Row if the click is done on the grid. If the click is done on the frame of the window the behaviour is normal. How can avoid this ? Regards Pino From gambas at ...1... Mon May 12 20:22:34 2008 From: gambas at ...1... (Benoit Minisini) Date: Mon, 12 May 2008 20:22:34 +0200 Subject: [Gambas-user] RowClick does nothing In-Reply-To: <200805121312.35809.pinozollo@...626...> References: <200805121312.35809.pinozollo@...626...> Message-ID: <200805122022.34975.gambas@...1...> On lundi 12 mai 2008, Pino Zollo wrote: > Hi > > GridView in Gambas 2.5 > The following does nothing: > > PUBLIC SUB GridVncdxf_RowClick(Row AS Integer) > STOP = TRUE > DEBUG "RowClick ";; Row > ComboBeacon.Text = GridVncdxf[Row, 1] > ComboBeacon_Click() > END > > The following works fine > > PUBLIC SUB GridVncdxf_Click() > STOP = TRUE > DEBUG "Click ";; GridVncdxf.Row > ComboBeacon.Text = GridVncdxf[GridVncdxf.Row, 1].Text > ComboBeacon_Click() > END > > > Why ? > > Regards > Pino > Do you use gb.qt or gb.gtk? -- Benoit Minisini From gambas at ...1... Mon May 12 20:22:56 2008 From: gambas at ...1... (Benoit Minisini) Date: Mon, 12 May 2008 20:22:56 +0200 Subject: [Gambas-user] RightClick as LeftClick on GridView In-Reply-To: <200805121403.16166.pinozollo@...626...> References: <200805121403.16166.pinozollo@...626...> Message-ID: <200805122022.56905.gambas@...1...> On lundi 12 mai 2008, Pino Zollo wrote: > Hi > Gambas 2.5 > In my application I use Left Click on a GridView to select a data on the > row and the Right Click (Menu) to start a new window. > > It happens that the Right Click not only starts the new window, but also > does what is supposed to do the Left Click, i.e. selects the data on the > Row if the click is done on the grid. > > If the click is done on the frame of the window the behaviour is normal. > > How can avoid this ? > > Regards > > Pino > Do you use gb.qt or gb.gtk? (Episode II) -- Benoit Minisini From gambas at ...1... Mon May 12 20:27:40 2008 From: gambas at ...1... (Benoit Minisini) Date: Mon, 12 May 2008 20:27:40 +0200 Subject: [Gambas-user] Closing a window in a DO LOOP In-Reply-To: <200805092059.33442.pinozollo@...626...> References: <200805091901.58231.pinozollo@...626...> <200805100117.23152.gambas@...1...> <200805092059.33442.pinozollo@...626...> Message-ID: <200805122027.40367.gambas@...1...> On samedi 10 mai 2008, Pino Zollo wrote: > Alle 19:17, venerd? 9 maggio 2008, hai scritto: > Bon soir Benoit, > > > You cannot close a window if you are not in the same event loop level > > than when you opened it. > > I did not know that there is more than one event loop...and I do not > understand the implications. > The reference manual is excellent but I miss a tutorial manual. > I use just a small part of GAMBAS because I do not understand most of it. > > > This is the case there, as by using WAIT, you automatically enter a new > > event loop. > > I need give CPU time to other parts of the application: I do not want that > the other opened windows became frozen. > I understand that WAIT is need by the "collaborative multitasking" of > GAMBAS. > > > I don't know what you want to do, but I suggest using timers if your > > actions depends on time. > > My project depends on absolute time and the computer clock must be well > adjusted via Internet at the precision better than 1 second.... > Any how I will put a button on the form to force the exit from the loop so > the user will be able to close the window. > > Any chance to have Threads ad Semaphores in GAMBAS 3 ? > > Thanks > Pino No change to have any thread and semaphores in Gambas 3! Gambas interpreter is single threaded. Regards, -- Benoit Minisini From pinozollo at ...626... Mon May 12 19:18:09 2008 From: pinozollo at ...626... (Pino Zollo) Date: Mon, 12 May 2008 13:18:09 -0400 Subject: [Gambas-user] Search do nor find Message-ID: <200805121318.10242.pinozollo@...626...> HI arrtable[5] AS String ByBeacon AS Boolean nf AS Integer ' number freq slot sl AS Integer ... .... The variable ByBeacon is there and exists....wanted to rename it to Stop_Scan. Search an Replace made all accept the one in the 'Declarations' Gambas 2.5 Regards Pino From m.galm at ...31... Mon May 12 20:47:37 2008 From: m.galm at ...31... (m.galm at ...31...) Date: Mon, 12 May 2008 20:47:37 +0200 (CEST) Subject: [Gambas-user] Timer-Control Message-ID: <8044231.1210618057014.JavaMail.ngmail@...1905...> Hi. When I draw a Timer on a Form, there are only 7 Propertys in the Table on the right and there is a lot of Space under the Table. If I click in this Space I get : This application has raised an unexpected error and must abort. [13] Null object. MHelp.GetSymbolHelpPath.123 Then Gambas2 closes. Tested it with other Controls and it looks like it's only the Timer that raises this Error. (Gambas2 2.6, SuSE 10.2) Regards, Michael G. From gambas at ...1... Mon May 12 21:03:22 2008 From: gambas at ...1... (Benoit Minisini) Date: Mon, 12 May 2008 21:03:22 +0200 Subject: [Gambas-user] Search do nor find In-Reply-To: <200805121318.10242.pinozollo@...626...> References: <200805121318.10242.pinozollo@...626...> Message-ID: <200805122103.22905.gambas@...1...> On lundi 12 mai 2008, Pino Zollo wrote: > HI > > arrtable[5] AS String > ByBeacon AS Boolean > nf AS Integer ' number freq slot > sl AS Integer > ... > .... > > The variable ByBeacon is there and exists....wanted to rename it to > Stop_Scan. Search an Replace made all accept the one in the 'Declarations' > > > Gambas 2.5 > > Regards > > Pino > Sorry, I don't understand your post at all! -- Benoit Minisini From gambas at ...1... Mon May 12 21:09:40 2008 From: gambas at ...1... (Benoit Minisini) Date: Mon, 12 May 2008 21:09:40 +0200 Subject: [Gambas-user] Installing Gambas 2 on Ubuntu Message-ID: <200805122109.40197.gambas@...1...> Hi, I have installed Gambas2 on Ubuntu 7.10, bu using the packages provided at http://gambas.gnulinex.org/ubuntu Here are the problems I encountered: * Even if the packages are marked "Gambas 2.5", Gambas 2.1 is installed! * The examples are not compiled, so you have to open them read-only, save the project in your home folder, in order to run them. I will try a Fedora as soon as possible to check how the Gambas packages are made. Regards, -- Benoit Minisini From gambas at ...1... Mon May 12 21:10:10 2008 From: gambas at ...1... (Benoit Minisini) Date: Mon, 12 May 2008 21:10:10 +0200 Subject: [Gambas-user] Timer-Control In-Reply-To: <8044231.1210618057014.JavaMail.ngmail@...1905...> References: <8044231.1210618057014.JavaMail.ngmail@...1905...> Message-ID: <200805122110.10576.gambas@...1...> On lundi 12 mai 2008, m.galm at ...31... wrote: > Hi. > > When I draw a Timer on a Form, there are only 7 > Propertys in the Table on the right and there is a > lot of Space under the Table. If I click in this Space > I get : > > This application has raised an unexpected > error and must abort. > > [13] Null object. > MHelp.GetSymbolHelpPath.123 > > Then Gambas2 closes. > Tested it with other Controls and it looks like it's only > the Timer that raises this Error. > > (Gambas2 2.6, SuSE 10.2) > > Regards, Michael G. > I will make a 2.6.1 with a few fixes ; I will fix that bug too. Regards, -- Benoit Minisini From m0e.lnx at ...626... Mon May 12 21:10:26 2008 From: m0e.lnx at ...626... (M0E Lnx) Date: Mon, 12 May 2008 14:10:26 -0500 Subject: [Gambas-user] Keyboard input in embedded application In-Reply-To: <1f1e8c1b0805120633w10c2a0f7r8f45dfd51ebd895f@...627...> References: <1f1e8c1b0805120633w10c2a0f7r8f45dfd51ebd895f@...627...> Message-ID: <1f1e8c1b0805121210y64d87ba8lb3bd358756f39987@...627...> For what it's worth, I've tried embedding the same application into the embedder example, and it behaves the same way there too.. Could this be a bug or an un-finished object issue? Anybody? On Mon, May 12, 2008 at 8:33 AM, M0E Lnx wrote: > I have an application with an embedder control that runs another one > of my little projects. > > The embedded application has txtbox controls on it, buttons, > textlabels and the like. > > Every other control that I've tried here works, except for the textboxes. > > I cannot get the textboxes to accept keyboard input when the > application is running embedded. > If I run the application outside, it works fine > > Anyone experienced this before? > From gambas at ...1... Mon May 12 21:17:27 2008 From: gambas at ...1... (Benoit Minisini) Date: Mon, 12 May 2008 21:17:27 +0200 Subject: [Gambas-user] Keyboard input in embedded application In-Reply-To: <1f1e8c1b0805121210y64d87ba8lb3bd358756f39987@...627...> References: <1f1e8c1b0805120633w10c2a0f7r8f45dfd51ebd895f@...627...> <1f1e8c1b0805121210y64d87ba8lb3bd358756f39987@...627...> Message-ID: <200805122117.27808.gambas@...1...> On lundi 12 mai 2008, M0E Lnx wrote: > For what it's worth, I've tried embedding the same application into > the embedder example, and it behaves the same way there too.. > > Could this be a bug or an un-finished object issue? > > Anybody? > If the embedded application was not programmed to be embedded (i.e. if it does now the XEMBED protocol), you will have (mainly) focus problems. Is it your case? -- Benoit Minisini From m0e.lnx at ...626... Mon May 12 21:21:36 2008 From: m0e.lnx at ...626... (M0E Lnx) Date: Mon, 12 May 2008 14:21:36 -0500 Subject: [Gambas-user] Keyboard input in embedded application In-Reply-To: <200805122117.27808.gambas@...1...> References: <1f1e8c1b0805120633w10c2a0f7r8f45dfd51ebd895f@...627...> <1f1e8c1b0805121210y64d87ba8lb3bd358756f39987@...627...> <200805122117.27808.gambas@...1...> Message-ID: <1f1e8c1b0805121221n76305d38n7436821336da34f8@...627...> I believe this is the case... How do I solve this? On Mon, May 12, 2008 at 2:17 PM, Benoit Minisini wrote: > On lundi 12 mai 2008, M0E Lnx wrote: > > For what it's worth, I've tried embedding the same application into > > the embedder example, and it behaves the same way there too.. > > > > Could this be a bug or an un-finished object issue? > > > > Anybody? > > > > If the embedded application was not programmed to be embedded (i.e. if it does > now the XEMBED protocol), you will have (mainly) focus problems. Is it your > case? > > -- > Benoit Minisini > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From m0e.lnx at ...626... Mon May 12 22:31:16 2008 From: m0e.lnx at ...626... (M0E Lnx) Date: Mon, 12 May 2008 15:31:16 -0500 Subject: [Gambas-user] Keyboard input in embedded application In-Reply-To: <1f1e8c1b0805121221n76305d38n7436821336da34f8@...627...> References: <1f1e8c1b0805120633w10c2a0f7r8f45dfd51ebd895f@...627...> <1f1e8c1b0805121210y64d87ba8lb3bd358756f39987@...627...> <200805122117.27808.gambas@...1...> <1f1e8c1b0805121221n76305d38n7436821336da34f8@...627...> Message-ID: <1f1e8c1b0805121331m6e0b5709ue054d50b9125af1@...627...> If I understand the documentation correctly, Gambas applications do follow the XEMBED Protocol according to http://gambasdoc.org/help/comp/gb.qt/embedder?show The application being embedded is in fact another gambas application of my design as well. But I'm still having the problem. Is there some setting I need to adjust somewhere? On Mon, May 12, 2008 at 2:21 PM, M0E Lnx wrote: > I believe this is the case... > How do I solve this? > > > > On Mon, May 12, 2008 at 2:17 PM, Benoit Minisini > wrote: > > On lundi 12 mai 2008, M0E Lnx wrote: > > > For what it's worth, I've tried embedding the same application into > > > the embedder example, and it behaves the same way there too.. > > > > > > Could this be a bug or an un-finished object issue? > > > > > > Anybody? > > > > > > > If the embedded application was not programmed to be embedded (i.e. if it does > > now the XEMBED protocol), you will have (mainly) focus problems. Is it your > > case? > > > > -- > > Benoit Minisini > > > > ------------------------------------------------------------------------- > > This SF.net email is sponsored by: Microsoft > > Defy all challenges. Microsoft(R) Visual Studio 2008. > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > From pinozollo at ...626... Mon May 12 22:31:22 2008 From: pinozollo at ...626... (Pino Zollo) Date: Mon, 12 May 2008 16:31:22 -0400 Subject: [Gambas-user] Fwd: Re: Search do not find Message-ID: <200805121631.23712.pinozollo@...626...> ---------- Messaggio inoltrato ---------- Subject: Re: [Gambas-user] Search do nor find Date: 15:35, luned? 12 maggio 2008 From: Pino Zollo To: Benoit Minisini Alle 15:03, luned? 12 maggio 2008, hai scritto: > On lundi 12 mai 2008, Pino Zollo wrote: > > HI > > > > arrtable[5] AS String > > ByBeacon AS Boolean > > nf AS Integer ' number freq slot > > sl AS Integer > > ... > > .... > > > > The variable ByBeacon is there and exists....wanted to rename it to > > Stop_Scan. Search an Replace made all accept the one in the > > 'Declarations' > > > > > > Gambas 2.5 > > > > Regards > > > > Pino > > Sorry, I don't understand your post at all! I made a search and replace....just because the name of the variable was not significant: I have replaced ByBeacon with Stop_Scan which is more meaningfull. The IDE did find all occurrences of ByBeacon except the one in the 'Declarations' at the beginning of the class. Hope I have been clear. The spell is correct because the program was working well... I had to edit by hand the Declaration. Regards Pino ------------------------------------------------------- From pinozollo at ...626... Mon May 12 22:40:26 2008 From: pinozollo at ...626... (Pino Zollo) Date: Mon, 12 May 2008 16:40:26 -0400 Subject: [Gambas-user] RightClick as LeftClick on GridView Message-ID: <200805121640.28953.pinozollo@...626...> Subject: Re: [Gambas-user] RightClick as LeftClick on GridView Date: 15:28, luned? 12 maggio 2008 From: Pino Zollo To: Benoit Minisini Alle 14:22, luned? 12 maggio 2008, hai scritto: > Do you use gb.qt or gb.gtk? (Episode II) gb.qt Pino From m0e.lnx at ...626... Mon May 12 22:55:05 2008 From: m0e.lnx at ...626... (M0E Lnx) Date: Mon, 12 May 2008 15:55:05 -0500 Subject: [Gambas-user] Navigating through form object with the tab key Message-ID: <1f1e8c1b0805121355j302a4185sa0165d5ed4de3f2@...627...> Is it possible to navigate a form's controls using the tab key? For instance, If I have 3 textboxes on a form, and I'm typing on textbox1 If I hit the tab key, I want the cursor to jump to the next textbox.. and so on is this possible and how? From gambas at ...1... Mon May 12 22:58:21 2008 From: gambas at ...1... (Benoit Minisini) Date: Mon, 12 May 2008 22:58:21 +0200 Subject: [Gambas-user] RowClick does nothing In-Reply-To: <200805122022.34975.gambas@...1...> References: <200805121312.35809.pinozollo@...626...> <200805122022.34975.gambas@...1...> Message-ID: <200805122258.21061.gambas@...1...> On lundi 12 mai 2008, Benoit Minisini wrote: > On lundi 12 mai 2008, Pino Zollo wrote: > > Hi > > > > GridView in Gambas 2.5 > > The following does nothing: > > > > PUBLIC SUB GridVncdxf_RowClick(Row AS Integer) > > STOP = TRUE > > DEBUG "RowClick ";; Row > > ComboBeacon.Text = GridVncdxf[Row, 1] > > ComboBeacon_Click() > > END > > > > The following works fine > > > > PUBLIC SUB GridVncdxf_Click() > > STOP = TRUE > > DEBUG "Click ";; GridVncdxf.Row > > ComboBeacon.Text = GridVncdxf[GridVncdxf.Row, 1].Text > > ComboBeacon_Click() > > END > > > > > > Why ? > > > > Regards > > Pino > > Do you use gb.qt or gb.gtk? I made a test and it works. If I click on a row header, the row click event is raised. Otherwise, the gambas database manager would not work! Regards, -- Benoit Minisini From gambas at ...1... Tue May 13 00:28:17 2008 From: gambas at ...1... (Benoit Minisini) Date: Tue, 13 May 2008 00:28:17 +0200 Subject: [Gambas-user] Keyboard input in embedded application In-Reply-To: <1f1e8c1b0805121331m6e0b5709ue054d50b9125af1@...627...> References: <1f1e8c1b0805120633w10c2a0f7r8f45dfd51ebd895f@...627...> <1f1e8c1b0805121221n76305d38n7436821336da34f8@...627...> <1f1e8c1b0805121331m6e0b5709ue054d50b9125af1@...627...> Message-ID: <200805130028.17903.gambas@...1...> On lundi 12 mai 2008, M0E Lnx wrote: > If I understand the documentation correctly, Gambas applications do > follow the XEMBED Protocol according to > > http://gambasdoc.org/help/comp/gb.qt/embedder?show > > The application being embedded is in fact another gambas application > of my design as well. > > But I'm still having the problem. Is there some setting I need to > adjust somewhere? > The documentation is not clear. A Gambas window does not follow the XEMBED protocol -by default-. To do that, you must not embed the application from the embedder, but from the embedded one, by using the Application.Embedder property before creating the main window. In other words: - Run your embedder application. - Note the window id of the Embedder control. - Run the embedded application and pass the previous window id as argument. - In the embedded application, set the Application.Embedder property to the received window id. - Create your main window. Now, your application will follow the XEMBED protocol. Regards, -- Benoit Minisini From gambas at ...1... Tue May 13 00:28:54 2008 From: gambas at ...1... (Benoit Minisini) Date: Tue, 13 May 2008 00:28:54 +0200 Subject: [Gambas-user] Navigating through form object with the tab key In-Reply-To: <1f1e8c1b0805121355j302a4185sa0165d5ed4de3f2@...627...> References: <1f1e8c1b0805121355j302a4185sa0165d5ed4de3f2@...627...> Message-ID: <200805130028.54412.gambas@...1...> On lundi 12 mai 2008, M0E Lnx wrote: > Is it possible to navigate a form's controls using the tab key? > > For instance, If I have 3 textboxes on a form, and I'm typing on textbox1 > If I hit the tab key, I want the cursor to jump to the next textbox.. and > so on > > is this possible and how? > Yes. Note that in Gambas The tab order and the Z-order are the same thing. Regards, -- Benoit Minisini From m0e.lnx at ...626... Tue May 13 00:43:52 2008 From: m0e.lnx at ...626... (M0E Lnx) Date: Mon, 12 May 2008 17:42:52 -0501 Subject: [Gambas-user] Navigating through form object with the tab key In-Reply-To: <200805130028.54412.gambas@...1...> References: <1f1e8c1b0805121355j302a4185sa0165d5ed4de3f2@...627...> <200805130028.54412.gambas@...1...> Message-ID: <1f1e8c1b0805121543y3707390fh8693e8f94790c399@...627...> Where is this defined? or does gambas assign values automatically? I dont see any option to set this on the object's or form properties On Mon, May 12, 2008 at 5:27 PM, Benoit Minisini wrote: > > On lundi 12 mai 2008, M0E Lnx wrote: > > Is it possible to navigate a form's controls using the tab key? > > > > For instance, If I have 3 textboxes on a form, and I'm typing on textbox1 > > If I hit the tab key, I want the cursor to jump to the next textbox.. and > > so on > > > > is this possible and how? > > > > Yes. Note that in Gambas The tab order and the Z-order are the same thing. > > Regards, > > -- > Benoit Minisini > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Tue May 13 00:50:15 2008 From: gambas at ...1... (Benoit Minisini) Date: Tue, 13 May 2008 00:50:15 +0200 Subject: [Gambas-user] Navigating through form object with the tab key In-Reply-To: <1f1e8c1b0805121543y3707390fh8693e8f94790c399@...627...> References: <1f1e8c1b0805121355j302a4185sa0165d5ed4de3f2@...627...> <200805130028.54412.gambas@...1...> <1f1e8c1b0805121543y3707390fh8693e8f94790c399@...627...> Message-ID: <200805130050.15554.gambas@...1...> On mardi 13 mai 2008, M0E Lnx wrote: > Where is this defined? or does gambas assign values automatically? > I dont see any option to set this on the object's or form properties > The Z-order is defined in the Hierarchy tab, next to the property sheet tab. -- Benoit Minisini From pinozollo at ...626... Tue May 13 03:16:27 2008 From: pinozollo at ...626... (Pino Zollo) Date: Mon, 12 May 2008 21:16:27 -0400 Subject: [Gambas-user] RowClick does nothing In-Reply-To: References: Message-ID: <200805122116.28478.pinozollo@...626...> Alle 18:57, luned? 12 maggio 2008, gambas-user-request at ...720...net ha scritto: > > Do you use gb.qt or gb.gtk? > > I made a test and it works. If I click on a row header, the row click event > is raised. Otherwise, the gambas database manager would not work! > That's why the database manager does not work here ! I have both PostgreSQL and MySQL installed with various databases with filled tables... I can open a database, but when I click on a table name appears the clock for a while and then nothing happens. I was thinking that the Gambas data base manager was not supposed to open tables. ;-) Here I am running Debian 4.0 r3 and Gambas 2.5 from the .deb distribution. Any more test that I can do ? salut Pino From smiefert at ...784... Tue May 13 10:38:05 2008 From: smiefert at ...784... (Stefan Miefert) Date: Tue, 13 May 2008 10:38:05 +0200 Subject: [Gambas-user] Sort Collection? Message-ID: <8D42310D957CFB46AA11921A711D4D16B4960C68@...1899...> Hello, how can i sort a collection having more than one dimension? From gambas at ...1... Tue May 13 10:45:53 2008 From: gambas at ...1... (Benoit Minisini) Date: Tue, 13 May 2008 10:45:53 +0200 Subject: [Gambas-user] RowClick does nothing In-Reply-To: <200805122116.28478.pinozollo@...626...> References: <200805122116.28478.pinozollo@...626...> Message-ID: <200805131045.53970.gambas@...1...> On mardi 13 mai 2008, Pino Zollo wrote: > Alle 18:57, luned? 12 maggio 2008, > gambas-user-request at lists.sourceforge.net > > ha scritto: > > > Do you use gb.qt or gb.gtk? > > > > I made a test and it works. If I click on a row header, the row click > > event is raised. Otherwise, the gambas database manager would not work! > > That's why the database manager does not work here ! > I have both PostgreSQL and MySQL installed with various databases with > filled tables... > I can open a database, but when I click on a table name appears the clock > for a while and then nothing happens. No, that is not related to the RowClick event. > I was thinking that the Gambas data base manager was not supposed to open > tables. ;-) > Here I am running Debian 4.0 r3 and Gambas 2.5 from the .deb distribution. > > Any more test that I can do ? > > salut > Pino > I suppose that you have something weird on your system installation, as it seems that you are the only one having all these problems. What I can suggest now: * Tell me exactly the problems you have, by describing them -precisely-. * Try to compile Gambas from sources. * Try an older version of Gambas to see if you have the same problems. * Try to find somebody else that uses Debian 4.0 r3 and Gambas 2.5. Regards, -- Benoit Minisini From serif at ...1870... Tue May 13 12:27:04 2008 From: serif at ...1870... (Mike Brett) Date: Tue, 13 May 2008 11:27:04 +0100 Subject: [Gambas-user] Examples in gambas 2.5.0 don't open Message-ID: <48296CF8.7020200@...1870...> Thanks Martin, Jason. However, I've changed the permissions of the examples to "-rwxrwxrwx" (owner root, group root) which I would have thought would be enough for anybody, and I still can't get them to open. They won't open even when I'm root. I was advised by a friend to try 'tail' to trap any sysloggable messages from gambas but nothing showed up. The example folders contain the class files as plain text plus a binary gambas project file it shows as MIME type application/x-extension-gambas which I imagine is what it should. Any further thoughts, please? [Context is Gambas 2.5.0 on Fedora 8 (rpms from the LDRWEB site). None of the examples will open, despite the fact that the files are in the appropriate folders. I just get "This project does not exist" messages. (The installation placed the examples in /usr/share/gambas2/examples) Indeed if I 'Open Project' and navigate to the various examples folders, they won't open from there either. I can highlight a .gambas file and click OK and nothing happens.] Thank you - Mike - -------- Original Message -------- Subject: Re: [Gambas-user] Beginners problem : Gambas compiled package installation Date: Mon, 12 May 2008 17:14:02 +0200 From: Martin Senftleben Am Montag 12 Mai 2008 schrieb Jason Hackney: > I had a similar problem from within Ubuntu. I just ran gambas as > the superuser to get the examples working. Maybe you just need to change the access rights. By default, the files in this folder are only accessible to root. The access rights should be set at least to "r--r--r--" (readable to all), or chmod 555. If you want to edit the example projects, you probably need to move them into your home folder and give them read- and write-access (chmod 666). You can also leave them in the default location and use the "save as" option in Gambas in order to make a copy which you can work on. Martin From gambas at ...1... Tue May 13 12:43:55 2008 From: gambas at ...1... (Benoit Minisini) Date: Tue, 13 May 2008 12:43:55 +0200 Subject: [Gambas-user] Examples in gambas 2.5.0 don't open In-Reply-To: <48296CF8.7020200@...1870...> References: <48296CF8.7020200@...1870...> Message-ID: <200805131243.55093.gambas@...1...> On mardi 13 mai 2008, Mike Brett wrote: > Thanks Martin, Jason. However, I've changed the permissions of the > examples to "-rwxrwxrwx" (owner root, group root) which I would have > thought would be enough for anybody, and I still can't get them to open. > They won't open even when I'm root. I was advised by a friend to try > 'tail' to trap any sysloggable messages from gambas but nothing showed up. > > The example folders contain the class files as plain text plus a binary > gambas project file it shows as MIME type > application/x-extension-gambas which I imagine is what it should. > > Any further thoughts, please? > > [Context is Gambas 2.5.0 on Fedora 8 (rpms from the LDRWEB site). None > of the examples will open, despite the fact that the files are in the > appropriate folders. I just get "This project does not exist" messages. > (The installation placed the examples in /usr/share/gambas2/examples) > > Indeed if I 'Open Project' and navigate to the various examples folders, > they won't open from there either. I can highlight a .gambas file and > click OK and nothing happens.] > > Thank you - Mike - > > -------- Original Message -------- > Subject: Re: [Gambas-user] Beginners problem : Gambas compiled package > installation > Date: Mon, 12 May 2008 17:14:02 +0200 > From: Martin Senftleben > > Am Montag 12 Mai 2008 schrieb Jason Hackney: > > I had a similar problem from within Ubuntu. I just ran gambas as > > the superuser to get the examples working. > > Maybe you just need to change the access rights. By default, the files > in this folder are only accessible to root. The access rights should > be set at least to "r--r--r--" (readable to all), or chmod 555. > If you want to edit the example projects, you probably need to move > them into your home folder and give them read- and write-access > (chmod 666). > You can also leave them in the default location and use the "save as" > option in Gambas in order to make a copy which you can work on. > > Martin > I looked at the "examples" packages at LDRWEB, and they are not correctly packaged. The guy who did that forgot to package the hidden files that are alwyas included in a gambas project directory (.project for example, that identify a gambas project). I have modified the "How to package Gambas" page on gambasdoc.org to explain that. Regards, -- Benoit Minisini From serif at ...1870... Tue May 13 12:51:19 2008 From: serif at ...1870... (Mike Brett) Date: Tue, 13 May 2008 11:51:19 +0100 Subject: [Gambas-user] Missing Help system Message-ID: <482972A7.7050904@...1870...> As well as non-opening examples, I have another problem with the 2.5.0 I've installed. The Help system, which gambas looks for in /usr/share/gambas2/help/tree/index.html, is missing. I wondered if it had been installed somewhere else but it does appear to be actually missing. Since that presumably is just a set of HTML files, can I pull that in from somewhere, please? Thanks. - Mike Brett - (gambas 2.5.0 on Fedora 8) From gambas at ...1... Tue May 13 12:57:51 2008 From: gambas at ...1... (Benoit Minisini) Date: Tue, 13 May 2008 12:57:51 +0200 Subject: [Gambas-user] Missing Help system In-Reply-To: <482972A7.7050904@...1870...> References: <482972A7.7050904@...1870...> Message-ID: <200805131257.51979.gambas@...1...> On mardi 13 mai 2008, Mike Brett wrote: > As well as non-opening examples, I have another problem with the 2.5.0 > I've installed. The Help system, which gambas looks for in > /usr/share/gambas2/help/tree/index.html, is missing. > > I wondered if it had been installed somewhere else but it does appear to > be actually missing. > > Since that presumably is just a set of HTML files, can I pull that in > from somewhere, please? > > Thanks. > > - Mike Brett - (gambas 2.5.0 on Fedora 8) > Apparently there is not only one problem in these packages... Do you know if Fedora provides official packages for Gamas 2.x? -- Benoit Minisini From gambas at ...1... Tue May 13 12:46:20 2008 From: gambas at ...1... (Benoit Minisini) Date: Tue, 13 May 2008 12:46:20 +0200 Subject: [Gambas-user] Gambas packaging how to updated Message-ID: <200805131246.20912.gambas@...1...> Hi, The "How To Package Gambas" documentation page on gambasdoc.org has been updated. Now Gambas examples must be packaged outside of the IDE package (gambas2-ide), because they depend on all gambas components, whereas the gambas IDE does not. Moreover, I added a warning to remind packagers that they must not forget to package all the hidden files and directories included in gambas project directories, otherwise the examples won't open correctly! Regards, -- Benoit Minisini From rolf.frogs at ...221... Tue May 13 09:07:52 2008 From: rolf.frogs at ...221... (Rolf Schmidt) Date: Tue, 13 May 2008 09:07:52 +0200 Subject: [Gambas-user] Beginners problem : Gambas compiled package installation In-Reply-To: <200805121714.09700.linux@...1904...> References: <4828377D.6010201@...1870...> <799be1690805120707j13e80f69w2a15890f99b9ac12@...627...> <200805121714.09700.linux@...1904...> Message-ID: <200805130907.57037.rolf.frogs@...221...> Hi, > > I had a similar problem from within Ubuntu. I just ran gambas as > > the superuser to get the examples working. > > Maybe you just need to change the access rights. By default, the files > in this folder are only accessible to root. The access rights should > be set at least to "r--r--r--" (readable to all), or chmod 555. > If you want to edit the example projects, you probably need to move > them into your home folder and give them read- and write-access > (chmod 666). > You can also leave them in the default location and use the "save as" > option in Gambas in order to make a copy which you can work on. Once again, I think it is not a good idea to change the rights of the example (directories). It's better to copy the example in your home directory and use the copy. So the examples stay unchanged and a different user (or if the copy has been destroyed by coding) has a still working version of the example. Keep in mind, you are in a multiuser environment! Bye Rolf -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part. URL: From rospolosco at ...152... Tue May 13 20:18:48 2008 From: rospolosco at ...152... (Stefano Palmeri) Date: Tue, 13 May 2008 20:18:48 +0200 Subject: [Gambas-user] Release of Gambas 2.6 In-Reply-To: <200805101311.00280.gambas@...1...> References: <200805101311.00280.gambas@...1...> Message-ID: <200805132018.48602.rospolosco@...152...> Il Saturday 10 May 2008 13:11:00 Benoit Minisini ha scritto: > Hi, > > Here is a new release of Gambas 2. > > The new feature is the support of SVN conflict in the IDE. When a SVN > conflict is detected, you will not be able to edit the file in conflict. > Instead, you will get a conflict dialog that will help you to solve the > conflict. > > Otherwise, this release fixes some important bugs: > > * Evaluating expressions in the IDE output console works again. > > * Symbol polymorphism is now correctly handled when the inheritance depth > is greater than two! > > * The evaluation of Eval() expressions is handled the same way as any other > code now, to prevent stack leaks. > > * Reading floating point values from a SQLite database does not depend on > the locale anymore. > > * Clipboard.Copy() from gb.qt component now correctly sends UTF-8 strings > to the clipboard. > > Here is the full changelog: > > --------------------------------------------------------------------------- >---- > > [CONFIGURATION] > * BUG: Search include files inside lib64 directories too. Hurra for the > distributions that put non 64 bits specific files into a 64 bits specific > directory! > * NEW: Makes better configuration warning messages when detecting libintl > and libiconv libraries. > > [DEVELOPMENT ENVIRONMENT] > * BUG: The auto-completion of a child class now is correctly updated if its > parent class is modified. > * BUG: The auto-completion of children classes does not overflow the stack > anymore. > * BUG: Evaluating expressions in the output console works again. > * BUG: Text editor does not flash anymore when being resized. > * BUG: Correctly raise an error when making an executable fails for any > reason. > * BUG: Extract the property help better. > * BUG: Fix the layout of the property sheet text edit dialog. > * BUG: Splitting view in editor correctly updates the procedure combo-box > now. > * BUG: The menu editor does not crash anymore when all menus are deleted > at once. > * NEW: Add a search box in the output console toolbar. > * NEW: Displays an error message if a project is not a Gambas 2 project. > * NEW: Subversion conflicts support. > * OPT: Do not set Project ColumnView AutoResize property to TRUE. Use a > very wide column instead to optimize redrawing. > > [INTERPRETER] > * BUG: Symbol polymorphism is now correctly handled when the inheritance > depth is greater than two! > * BUG: INC and DEC now toggle boolean values. > * BUG: Getting information on a not yet loaded class does not crash the > debugger anymore. > * BUG: Handle the evaluation of Eval() expressions the same way as any > other code. Otherwise, stack can be leaked when there is an exception > inside. > * NEW: The foreign function interface is now optional. > > [COMPILER] > * BUG: Adds many error messages when a compiler limit is reached: too many > static symbols in a same class, too many dynamic symbols, too many > functions, and so on. > * BUG: Do not print error messages on unexpected strings with newline > inside. Just claim that an unexpected string has been encountered. > > [GB.DB.SQLITE2] > * BUG: Reading floating point values and other values do not depend on the > locale anymore. > * NEW: Remove useless code. > > [GB.DB.SQLITE3] > * BUG: Reading floating point values and other values do not depend on the > locale anymore. > * NEW: Remove useless code. > > [GB.EVAL] > * BUG: Remove an apparently useless line of code that made the highlighter > sometimes crash! > * BUG: Evaluating "Error" does not crash anymore. It just raises an error. > * BUG: Do not print error messages on unexpected strings with newline > inside. Just claim that an unexpected string has been encountered. > > [GB.FORM] > * BUG: Correctly cancel a impossible rename operation in the DirView > control. > * NEW: Add a slider for setting the alpha color component. > > [GB.FORM.DIALOG] > * BUG: Standard dialogs now correctly react to double clicks. > > [GB.GTK] > * BUG: Void items are correctly handled by ComboBox without crashing now. > * BUG: Windows cannot get focus anymore. > * BUG: PictureBox.Alignment property now correctly deals with Align.Normal, > Align.TopNormal, and Align.BottomNormal alignments. > * BUG: Fix uninitialized variables in ggridview.cpp and gmainwindow.cpp. > > [GB.PDF] > * BUG: Compiles correctly against poppler 0.8 now. > > [GB.QT] > * BUG: Resizing a GridView column inside the ColumnResize event handler > does not lead to a crash anymore. > * BUG: Correctly update the PictureBox and DrawingArea background when the > background color changes. > * BUG: Clipboard.Copy() sends UTF-8 strings to the clipboard correctly now. > * BUG: SpinBox.Text works correctly now. > * BUG: PictureBox is correctly refreshed now when its contents change. > * BUG: TabStrip[].Count now always returns the correct number of child > controls in a tab. > * NEW: Non resizable windows can be resized by the Move() or Resize() > methods now. > * OPT: The PictureBox control does not flicker anymore when its Picture > property is changed. > > [GB.QT.EXT] > * BUG: Editor now correctly highlight its frame according to the focus > change on styles that have use of that. > * BUG: Editor correctly goes to the end of file when pressing CTRL+END. > Consequently, SelectAll() works correctly too now. > > [GB.SETTINGS] > * BUG: Do not use Array datatype incorrectly anymore. > > --------------------------------------------------------------------------- >---- > > Enjoy it! > > Regards, Just to say that it compiles perfectly on last Slackware 12.1. Bye, Stefano From ron at ...1740... Wed May 14 11:58:04 2008 From: ron at ...1740... (Ron) Date: Wed, 14 May 2008 11:58:04 +0200 Subject: [Gambas-user] Cannot start latest rev gambas3 as remote command with nx client Message-ID: <482AB7AC.6060104@...1740...> Hi, I upgraded my gambas3 install to the latest rev today 1376 Since then I cannot open it with nx client as remote x app anymore, when I try that I get: Using NX client on windows 3.0.0-89. with UNIX, Custom, run the following command 'gambas3' Starting Gambas 2.6 on the same machine still works ok this way, and the older version of 3 worked fine too, I also can start it in an NX X remote desktop session fine, but not as an remote command. Any pointers? Something changed in the way it request screen sizes when started? Regards, Ron From ron at ...1740... Wed May 14 12:01:25 2008 From: ron at ...1740... (Ron) Date: Wed, 14 May 2008 12:01:25 +0200 Subject: [Gambas-user] Cannot start latest rev gambas3 as remote command with nx client In-Reply-To: <482AB7AC.6060104@...1740...> References: <482AB7AC.6060104@...1740...> Message-ID: <482AB875.7060009@...1740...> Now with attachment.. > Hi, > > I upgraded my gambas3 install to the latest rev today 1376 > > Since then I cannot open it with nx client as remote x app anymore, when > I try that I get: > > > > Using NX client on windows 3.0.0-89. > with UNIX, Custom, run the following command 'gambas3' > > Starting Gambas 2.6 on the same machine still works ok this way, and the > older version of 3 worked fine too, I also can start it in an NX X > remote desktop session fine, but not as an remote command. > > Any pointers? Something changed in the way it request screen sizes when > started? > > Regards, > Ron > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > 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: gambas3.JPG Type: image/jpeg Size: 14027 bytes Desc: not available URL: From gambas at ...1... Wed May 14 12:41:07 2008 From: gambas at ...1... (Benoit Minisini) Date: Wed, 14 May 2008 12:41:07 +0200 Subject: [Gambas-user] Cannot start latest rev gambas3 as remote command with nx client In-Reply-To: <482AB7AC.6060104@...1740...> References: <482AB7AC.6060104@...1740...> Message-ID: <200805141241.07907.gambas@...1...> On mercredi 14 mai 2008, Ron wrote: > Hi, > > I upgraded my gambas3 install to the latest rev today 1376 > > Since then I cannot open it with nx client as remote x app anymore, when > I try that I get: > > > > Using NX client on windows 3.0.0-89. > with UNIX, Custom, run the following command 'gambas3' > > Starting Gambas 2.6 on the same machine still works ok this way, and the > older version of 3 worked fine too, I also can start it in an NX X > remote desktop session fine, but not as an remote command. > > Any pointers? Something changed in the way it request screen sizes when > started? > > Regards, > Ron In Gambas 3, the IDE uses the gb.desktop component that read the X11 root window properties to get the desktop size. This error means that the X11 root window property that describes the dimensions of desktops (you can have more than one if you have virtual desktops) is not defined. This property is set by the X11 window manager. Can you try to run a terminal instead of Gambas, and send me the output of "xprop -root"? This way I will know which properties are defined. Regards, -- Benoit Minisini From gambas at ...1... Wed May 14 12:54:07 2008 From: gambas at ...1... (Benoit Minisini) Date: Wed, 14 May 2008 12:54:07 +0200 Subject: [Gambas-user] Sort Collection? In-Reply-To: <8D42310D957CFB46AA11921A711D4D16B4960C68@...1899...> References: <8D42310D957CFB46AA11921A711D4D16B4960C68@...1899...> Message-ID: <200805141254.07616.gambas@...1...> On mardi 13 mai 2008, Stefan Miefert wrote: > Hello, > > how can i sort a collection having more than one dimension? > > Huh? Collection have no dimension. What are you talking about? -- Benoit Minisini From eilert-sprachen at ...221... Wed May 14 13:04:17 2008 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Wed, 14 May 2008 13:04:17 +0200 Subject: [Gambas-user] Searching an error in the whole class Message-ID: <482AC731.4020600@...221...> Hi, Is it possible to let the program jump to an error routine if an error occurs SOMEWHERE in the class? I cannot find the reason for an error in one of my apps the students use. This error occurs especially when lots of french letters and/or apostrophies are written, but it is not predictable. So I cannot try it for myself (what I did, but it didn't run into an error...) Of course, they use a compiled version of the program. So I have to log the error into a file and search for the reason. But with TRY etc. I can only catch an error within one specific function... Since I don't know where the error occurs, it would be nice to let the program jump into some "global" error routine. Thanks for your hints! Rolf From ron at ...1740... Wed May 14 13:06:47 2008 From: ron at ...1740... (Ron) Date: Wed, 14 May 2008 13:06:47 +0200 Subject: [Gambas-user] Cannot start latest rev gambas3 as remote command with nx client In-Reply-To: <200805141241.07907.gambas@...1...> References: <482AB7AC.6060104@...1740...> <200805141241.07907.gambas@...1...> Message-ID: <482AC7C7.4040009@...1740...> Benoit Minisini schreef: > On mercredi 14 mai 2008, Ron wrote: > >> Hi, >> >> I upgraded my gambas3 install to the latest rev today 1376 >> >> Since then I cannot open it with nx client as remote x app anymore, when >> I try that I get: >> >> >> >> Using NX client on windows 3.0.0-89. >> with UNIX, Custom, run the following command 'gambas3' >> >> Starting Gambas 2.6 on the same machine still works ok this way, and the >> older version of 3 worked fine too, I also can start it in an NX X >> remote desktop session fine, but not as an remote command. >> >> Any pointers? Something changed in the way it request screen sizes when >> started? >> >> Regards, >> Ron >> > > In Gambas 3, the IDE uses the gb.desktop component that read the X11 root > window properties to get the desktop size. > > This error means that the X11 root window property that describes the > dimensions of desktops (you can have more than one if you have virtual > desktops) is not defined. > > This property is set by the X11 window manager. > > Can you try to run a terminal instead of Gambas, and send me the output > of "xprop -root"? This way I will know which properties are defined. > > Regards, > Ok that explains it, I see no properties which define screen/window size. see xprop.jpg. session.jpg shows what is running underneat, it reflects the available screen size on the local computer. Regards, Ron. -------------- next part -------------- A non-text attachment was scrubbed... Name: session.JPG Type: image/jpeg Size: 20739 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: xprop.JPG Type: image/jpeg Size: 16714 bytes Desc: not available URL: From gambas at ...1... Wed May 14 13:10:18 2008 From: gambas at ...1... (Benoit Minisini) Date: Wed, 14 May 2008 13:10:18 +0200 Subject: [Gambas-user] Searching an error in the whole class In-Reply-To: <482AC731.4020600@...221...> References: <482AC731.4020600@...221...> Message-ID: <200805141310.18450.gambas@...1...> On mercredi 14 mai 2008, Rolf-Werner Eilert wrote: > Hi, > > Is it possible to let the program jump to an error routine if an error > occurs SOMEWHERE in the class? > > I cannot find the reason for an error in one of my apps the students > use. This error occurs especially when lots of french letters and/or > apostrophies are written, but it is not predictable. So I cannot try it > for myself (what I did, but it didn't run into an error...) > > Of course, they use a compiled version of the program. So I have to log > the error into a file and search for the reason. But with TRY etc. I can > only catch an error within one specific function... Since I don't know > where the error occurs, it would be nice to let the program jump into > some "global" error routine. > > Thanks for your hints! > > Rolf > > Why can't you know where the error occurs? When you compile the program, check the check-box that tell the compiler to keep debuggin information inside the executable, and you will get the location of the error. You can even get the backtrace on the standard error output! Regards, -- Benoit Minisini From serif at ...1870... Wed May 14 13:26:09 2008 From: serif at ...1870... (Mike Brett) Date: Wed, 14 May 2008 12:26:09 +0100 Subject: [Gambas-user] Examples in gambas 2.5.0 don't open In-Reply-To: <200805131243.55093.gambas@...1...> References: <48296CF8.7020200@...1870...> <200805131243.55093.gambas@...1...> Message-ID: <482ACC51.1010009@...1870...> An update for Fedora 8 users. Luigi Carlotto at LDRWEB has upgraded his package to 2.6.0 as of today and resolved the "non-opening examples" problem. However, potential users should note this build still has no help system in place, which for a beginner like me is a bit unfortunate ...... :) - Mike - From gambas at ...1... Wed May 14 13:35:12 2008 From: gambas at ...1... (Benoit Minisini) Date: Wed, 14 May 2008 13:35:12 +0200 Subject: [Gambas-user] Examples in gambas 2.5.0 don't open In-Reply-To: <482ACC51.1010009@...1870...> References: <48296CF8.7020200@...1870...> <200805131243.55093.gambas@...1...> <482ACC51.1010009@...1870...> Message-ID: <200805141335.12866.gambas@...1...> On mercredi 14 mai 2008, Mike Brett wrote: > An update for Fedora 8 users. Luigi Carlotto at LDRWEB has upgraded his > package to 2.6.0 as of today and resolved the "non-opening examples" > problem. > > However, potential users should note this build still has no help system > in place, which for a beginner like me is a bit unfortunate ...... :) > > - Mike - > Strange that he couldn't package the help files. You can try to get the gambas2-ide rpm from Mandriva, uncompress it, and copy by hand the help directory inside in /usr/share/gambas2. Or you can use the online help, this is the same help, usually more recent. Regards, -- Benoit Minisini From gambas at ...1... Wed May 14 14:01:12 2008 From: gambas at ...1... (Benoit Minisini) Date: Wed, 14 May 2008 14:01:12 +0200 Subject: [Gambas-user] "Gambas packaging how to" updated again Message-ID: <200805141401.12693.gambas@...1...> Hi, This message is for the Gambas packager! I fixed the packaging how to again: now the help files are distributed in their own packages, as they take some place on the hard disk. I made a list of the files that must be packages, because some files are incorrectly installed at the moment. The specification for the example package has been fixed too. Regards, -- Benoit Minisini From kazutaka802 at ...1907... Wed May 14 15:43:01 2008 From: kazutaka802 at ...1907... (HARADA Kazutaka) Date: Wed, 14 May 2008 22:43:01 +0900 Subject: [Gambas-user] Navigating through form object with the tab key In-Reply-To: <200805130050.15554.gambas@...1...> References: <1f1e8c1b0805121355j302a4185sa0165d5ed4de3f2@...627...> <200805130028.54412.gambas@...1...> <1f1e8c1b0805121543y3707390fh8693e8f94790c399@...627...> <200805130050.15554.gambas@...1...> Message-ID: <482AEC65.5090300@...1907...> Benoit Minisini wrote: > On mardi 13 mai 2008, M0E Lnx wrote: > >> Where is this defined? or does gambas assign values automatically? >> I dont see any option to set this on the object's or form properties >> > The Z-order is defined in the Hierarchy tab, next to the property sheet tab. > I found a problem with Z-order. This works fine for gb.qt, but not for gb.gtk on gamba2-2.6.0 with gtk 2.12.9. I created a form with 3 buttons. Then changed the Z-order and tested. In the hierarchy tree, Button3 Button2 Button1 The cursor moves Button3 - Button1 - Button2 with tab key Bit dufferent... -- -------------------------------------- Kazutaka HARADA e-mail:kazutaka802 at ...1907... -------------------------------------- From m0e.lnx at ...626... Wed May 14 15:46:53 2008 From: m0e.lnx at ...626... (M0E Lnx) Date: Wed, 14 May 2008 08:46:53 -0500 Subject: [Gambas-user] Navigating through form object with the tab key In-Reply-To: <482AEC65.5090300@...1907...> References: <1f1e8c1b0805121355j302a4185sa0165d5ed4de3f2@...627...> <200805130028.54412.gambas@...1...> <1f1e8c1b0805121543y3707390fh8693e8f94790c399@...627...> <200805130050.15554.gambas@...1...> <482AEC65.5090300@...1907...> Message-ID: <1f1e8c1b0805140646i62228486tac447d5f28829ce9@...627...> Thank you... good to know... I've been beating my head up trying to find this, and have not yet been able to do it... I will look into gambas2-2.6 On Wed, May 14, 2008 at 8:43 AM, HARADA Kazutaka wrote: > Benoit Minisini wrote: > > On mardi 13 mai 2008, M0E Lnx wrote: > > > >> Where is this defined? or does gambas assign values automatically? > >> I dont see any option to set this on the object's or form properties > >> > > The Z-order is defined in the Hierarchy tab, next to the property sheet tab. > > > I found a problem with Z-order. > This works fine for gb.qt, but not for gb.gtk on gamba2-2.6.0 with gtk > 2.12.9. > > I created a form with 3 buttons. Then changed the Z-order and tested. > > In the hierarchy tree, > Button3 > Button2 > Button1 > > The cursor moves Button3 - Button1 - Button2 with tab key > > Bit dufferent... > > -- > -------------------------------------- > Kazutaka HARADA > e-mail:kazutaka802 at ...1907... > -------------------------------------- > > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From m0e.lnx at ...626... Wed May 14 16:07:24 2008 From: m0e.lnx at ...626... (M0E Lnx) Date: Wed, 14 May 2008 09:07:24 -0500 Subject: [Gambas-user] Keyboard input in embedded application In-Reply-To: <200805130028.17903.gambas@...1...> References: <1f1e8c1b0805120633w10c2a0f7r8f45dfd51ebd895f@...627...> <1f1e8c1b0805121221n76305d38n7436821336da34f8@...627...> <1f1e8c1b0805121331m6e0b5709ue054d50b9125af1@...627...> <200805130028.17903.gambas@...1...> Message-ID: <1f1e8c1b0805140707p4be16fa0j939a6022769a4bbe@...627...> I think I found a serious problem here... Using the gb.gui component for the embedder application as well as for the applications being embedded. I figured out that by add the embedder.setfocus property, this works fine while in GTK However, when running under QT, the embedded application does not accept keyboard input AT ALL... Nothing Not one key stroke. Could this be a bug? On Mon, May 12, 2008 at 5:28 PM, Benoit Minisini wrote: > On lundi 12 mai 2008, M0E Lnx wrote: > > If I understand the documentation correctly, Gambas applications do > > follow the XEMBED Protocol according to > > > > http://gambasdoc.org/help/comp/gb.qt/embedder?show > > > > The application being embedded is in fact another gambas application > > of my design as well. > > > > But I'm still having the problem. Is there some setting I need to > > adjust somewhere? > > > > The documentation is not clear. > > A Gambas window does not follow the XEMBED protocol -by default-. > > To do that, you must not embed the application from the embedder, but from the > embedded one, by using the Application.Embedder property before creating the > main window. > > In other words: > > - Run your embedder application. > > - Note the window id of the Embedder control. > > - Run the embedded application and pass the previous window id as argument. > > - In the embedded application, set the Application.Embedder property to the > received window id. > > - Create your main window. Now, your application will follow the XEMBED > protocol. > > Regards, > > -- > > Benoit Minisini > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From m0e.lnx at ...626... Wed May 14 16:23:45 2008 From: m0e.lnx at ...626... (M0E Lnx) Date: Wed, 14 May 2008 09:23:45 -0500 Subject: [Gambas-user] Keyboard input in embedded application In-Reply-To: <200805130028.17903.gambas@...1...> References: <1f1e8c1b0805120633w10c2a0f7r8f45dfd51ebd895f@...627...> <1f1e8c1b0805121221n76305d38n7436821336da34f8@...627...> <1f1e8c1b0805121331m6e0b5709ue054d50b9125af1@...627...> <200805130028.17903.gambas@...1...> Message-ID: <1f1e8c1b0805140723h293be223ke76e46cb1d75c812@...627...> > > The documentation is not clear. > > A Gambas window does not follow the XEMBED protocol -by default-. > > To do that, you must not embed the application from the embedder, but from the > embedded one, by using the Application.Embedder property before creating the > main window. > > In other words: > > - Run your embedder application. > > - Note the window id of the Embedder control. HOW ??? > > - Run the embedded application and pass the previous window id as argument. HOW? > > - In the embedded application, set the Application.Embedder property to the > received window id. WHICH WINDOW ID ?? THEM EMBEDDER'S OR THE EMBEDDED? > > - Create your main window. Now, your application will follow the XEMBED > protocol. Could you give a little more detail on how to accomplish this? From eilert-sprachen at ...221... Wed May 14 16:25:09 2008 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Wed, 14 May 2008 16:25:09 +0200 Subject: [Gambas-user] Searching an error in the whole class In-Reply-To: <200805141310.18450.gambas@...1...> References: <482AC731.4020600@...221...> <200805141310.18450.gambas@...1...> Message-ID: <482AF645.4010707@...221...> Benoit Minisini schrieb: > On mercredi 14 mai 2008, Rolf-Werner Eilert wrote: >> Hi, >> >> Is it possible to let the program jump to an error routine if an error >> occurs SOMEWHERE in the class? >> >> I cannot find the reason for an error in one of my apps the students >> use. This error occurs especially when lots of french letters and/or >> apostrophies are written, but it is not predictable. So I cannot try it >> for myself (what I did, but it didn't run into an error...) >> >> Of course, they use a compiled version of the program. So I have to log >> the error into a file and search for the reason. But with TRY etc. I can >> only catch an error within one specific function... Since I don't know >> where the error occurs, it would be nice to let the program jump into >> some "global" error routine. >> >> Thanks for your hints! >> >> Rolf >> >> > > Why can't you know where the error occurs? When you compile the program, check > the check-box that tell the compiler to keep debuggin information inside the > executable, and you will get the location of the error. You can even get the > backtrace on the standard error output! > > Regards, > You mean an error message like this? ###### This application has raised an unexpected error and must abort. [-1] Tab is not empty. Form 1.?.0 ###### What does this tell me, and how should I locate an error with this information? (This is an example from another program where I know how to produce a runtime error...) Regards Rolf From sourceforge-raindog2 at ...94... Wed May 14 17:09:46 2008 From: sourceforge-raindog2 at ...94... (Rob) Date: Wed, 14 May 2008 11:09:46 -0400 Subject: [Gambas-user] Keyboard input in embedded application In-Reply-To: <1f1e8c1b0805140723h293be223ke76e46cb1d75c812@...627...> References: <1f1e8c1b0805120633w10c2a0f7r8f45dfd51ebd895f@...627...> <200805130028.17903.gambas@...1...> <1f1e8c1b0805140723h293be223ke76e46cb1d75c812@...627...> Message-ID: <200805141109.47302.sourceforge-raindog2@...94...> On Wednesday 14 May 2008 10:23, M0E Lnx wrote: > > - Note the window id of the Embedder control. > HOW ??? Every control has an "ID" property. > > - Run the embedded application and pass the previous window id as > > argument. > HOW? You pass it on the command line from the calling program, and read it in the receiving program with Application.Args. What format you use is up to you. > > - In the embedded application, set the Application.Embedder > > property to the received window id. > WHICH WINDOW ID ?? THEM EMBEDDER'S OR THE EMBEDDED? He said "the received window id", so obviously he was referring to the ID he was talking about all along, which was the embedder control's ID. Also, don't use caps, it's rude. Rob From m0e.lnx at ...626... Wed May 14 17:27:57 2008 From: m0e.lnx at ...626... (M0E Lnx) Date: Wed, 14 May 2008 10:27:57 -0500 Subject: [Gambas-user] Keyboard input in embedded application In-Reply-To: <200805141109.47302.sourceforge-raindog2@...94...> References: <1f1e8c1b0805120633w10c2a0f7r8f45dfd51ebd895f@...627...> <200805130028.17903.gambas@...1...> <1f1e8c1b0805140723h293be223ke76e46cb1d75c812@...627...> <200805141109.47302.sourceforge-raindog2@...94...> Message-ID: <1f1e8c1b0805140827p5a018565g74f9cbbbf0c94e52@...627...> Thank you... I think I got it now. PS: Didn't mean to be rude, just wanted my questions to stand out from the rest of the text. Sorry for the misunderstanding. On Wed, May 14, 2008 at 10:09 AM, Rob wrote: > On Wednesday 14 May 2008 10:23, M0E Lnx wrote: > > > - Note the window id of the Embedder control. > > HOW ??? > > Every control has an "ID" property. > > > > - Run the embedded application and pass the previous window id as > > > argument. > > HOW? > > You pass it on the command line from the calling program, and read it > in the receiving program with Application.Args. What format you use > is up to you. > > > > - In the embedded application, set the Application.Embedder > > > property to the received window id. > > WHICH WINDOW ID ?? THEM EMBEDDER'S OR THE EMBEDDED? > > He said "the received window id", so obviously he was referring to the > ID he was talking about all along, which was the embedder control's > ID. > > Also, don't use caps, it's rude. > > Rob > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From m0e.lnx at ...626... Wed May 14 17:46:03 2008 From: m0e.lnx at ...626... (M0E Lnx) Date: Wed, 14 May 2008 10:46:03 -0500 Subject: [Gambas-user] Keyboard input in embedded application In-Reply-To: <1f1e8c1b0805140827p5a018565g74f9cbbbf0c94e52@...627...> References: <1f1e8c1b0805120633w10c2a0f7r8f45dfd51ebd895f@...627...> <200805130028.17903.gambas@...1...> <1f1e8c1b0805140723h293be223ke76e46cb1d75c812@...627...> <200805141109.47302.sourceforge-raindog2@...94...> <1f1e8c1b0805140827p5a018565g74f9cbbbf0c94e52@...627...> Message-ID: <1f1e8c1b0805140846k2c0e4cf9h5b15106250b67576@...627...> Ok.. I may have spoken too soon here In the embedded application, before the main window loads, I have this Application.Embedder = Application.Args[0] On the Embedder application I have this Dim sArg AS String sArg = Me.Embedder1.ID SHELL "/path/to/embedded/application " & sArg WAIT ME.Embedder1.Embed(sArg) Does that sound like it should work? On Wed, May 14, 2008 at 10:27 AM, M0E Lnx wrote: > Thank you... > I think I got it now. > > PS: Didn't mean to be rude, just wanted my questions to stand out from > the rest of the text. Sorry for the misunderstanding. > > > > > On Wed, May 14, 2008 at 10:09 AM, Rob wrote: > > On Wednesday 14 May 2008 10:23, M0E Lnx wrote: > > > > - Note the window id of the Embedder control. > > > HOW ??? > > > > Every control has an "ID" property. > > > > > > - Run the embedded application and pass the previous window id as > > > > argument. > > > HOW? > > > > You pass it on the command line from the calling program, and read it > > in the receiving program with Application.Args. What format you use > > is up to you. > > > > > > - In the embedded application, set the Application.Embedder > > > > property to the received window id. > > > WHICH WINDOW ID ?? THEM EMBEDDER'S OR THE EMBEDDED? > > > > He said "the received window id", so obviously he was referring to the > > ID he was talking about all along, which was the embedder control's > > ID. > > > > Also, don't use caps, it's rude. > > > > Rob > > > > > > ------------------------------------------------------------------------- > > This SF.net email is sponsored by: Microsoft > > Defy all challenges. Microsoft(R) Visual Studio 2008. > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > From gambas at ...1... Wed May 14 18:33:17 2008 From: gambas at ...1... (Benoit Minisini) Date: Wed, 14 May 2008 18:33:17 +0200 Subject: [Gambas-user] Keyboard input in embedded application In-Reply-To: <1f1e8c1b0805140846k2c0e4cf9h5b15106250b67576@...627...> References: <1f1e8c1b0805120633w10c2a0f7r8f45dfd51ebd895f@...627...> <1f1e8c1b0805140827p5a018565g74f9cbbbf0c94e52@...627...> <1f1e8c1b0805140846k2c0e4cf9h5b15106250b67576@...627...> Message-ID: <200805141833.17266.gambas@...1...> On mercredi 14 mai 2008, M0E Lnx wrote: > Ok.. I may have spoken too soon here > > In the embedded application, before the main window loads, I have this > > Application.Embedder = Application.Args[0] Correct. > > > On the Embedder application I have this > > Dim sArg AS String > sArg = Me.Embedder1.ID OK. > > SHELL "/path/to/embedded/application " & sArg WAIT OK. > > ME.Embedder1.Embed(sArg) No! The embedding is done by the child process, so you don't have to, and must not do it again in the parent process. The Embedder.Embed() method is only there for embedding programs not written in Gambas. For programs written in Gambas you should (must?) use this method. Anyway the focus problem is there. I tried to understand what happens with Gambas application, as it is a Gambas problem (if you embed Konqueror for example, it can get focus normally). But I didn't succeed. Note that I upgraded the XEMBED support in gb.qt recently to the last version provided by TrollTech, but it didn't change anything. Regards, -- Benoit Minisini From gambas at ...1... Wed May 14 18:35:29 2008 From: gambas at ...1... (Benoit Minisini) Date: Wed, 14 May 2008 18:35:29 +0200 Subject: [Gambas-user] Searching an error in the whole class In-Reply-To: <482AF645.4010707@...221...> References: <482AC731.4020600@...221...> <200805141310.18450.gambas@...1...> <482AF645.4010707@...221...> Message-ID: <200805141835.29457.gambas@...1...> On mercredi 14 mai 2008, Rolf-Werner Eilert wrote: > Benoit Minisini schrieb: > > On mercredi 14 mai 2008, Rolf-Werner Eilert wrote: > >> Hi, > >> > >> Is it possible to let the program jump to an error routine if an error > >> occurs SOMEWHERE in the class? > >> > >> I cannot find the reason for an error in one of my apps the students > >> use. This error occurs especially when lots of french letters and/or > >> apostrophies are written, but it is not predictable. So I cannot try it > >> for myself (what I did, but it didn't run into an error...) > >> > >> Of course, they use a compiled version of the program. So I have to log > >> the error into a file and search for the reason. But with TRY etc. I can > >> only catch an error within one specific function... Since I don't know > >> where the error occurs, it would be nice to let the program jump into > >> some "global" error routine. > >> > >> Thanks for your hints! > >> > >> Rolf > > > > Why can't you know where the error occurs? When you compile the program, > > check the check-box that tell the compiler to keep debuggin information > > inside the executable, and you will get the location of the error. You > > can even get the backtrace on the standard error output! > > > > Regards, > > You mean an error message like this? > > ###### > This application has raised an unexpected error and must abort. > > [-1] Tab is not empty. > > Form 1.?.0 > ###### > > What does this tell me, and how should I locate an error with this > information? (This is an example from another program where I know how > to produce a runtime error...) > > Regards > > Rolf > You get this message when you make your executable without the debugging information (so the interpreter can only print the class where the problem occurs, Form1). With debugging information, you should have a function name instead of "?", and a line number instead of "0". -- Benoit Minisini From m0e.lnx at ...626... Wed May 14 18:43:56 2008 From: m0e.lnx at ...626... (M0E Lnx) Date: Wed, 14 May 2008 11:43:56 -0500 Subject: [Gambas-user] Keyboard input in embedded application In-Reply-To: <1f1e8c1b0805140846k2c0e4cf9h5b15106250b67576@...627...> References: <1f1e8c1b0805120633w10c2a0f7r8f45dfd51ebd895f@...627...> <200805130028.17903.gambas@...1...> <1f1e8c1b0805140723h293be223ke76e46cb1d75c812@...627...> <200805141109.47302.sourceforge-raindog2@...94...> <1f1e8c1b0805140827p5a018565g74f9cbbbf0c94e52@...627...> <1f1e8c1b0805140846k2c0e4cf9h5b15106250b67576@...627...> Message-ID: <1f1e8c1b0805140943w2e6fa58v46943b20a8c84a1f@...627...> With this, I have added debugging lines to both applications to verify the correct argument is being parsed I can see that the embedded as well as the embedder applications are running. The problem now is that I do not see the embedded application in the host(embedder) application. Please advise. BTW, I just found out that the Application.Args[] Array starts with 1, 0 is the path to application I guess. On Wed, May 14, 2008 at 10:46 AM, M0E Lnx wrote: > Ok.. I may have spoken too soon here > > In the embedded application, before the main window loads, I have this > > Application.Embedder = Application.Args[0] > > > On the Embedder application I have this > > Dim sArg AS String > sArg = Me.Embedder1.ID > > SHELL "/path/to/embedded/application " & sArg WAIT > > ME.Embedder1.Embed(sArg) > > Does that sound like it should work? > > > > > On Wed, May 14, 2008 at 10:27 AM, M0E Lnx wrote: >> Thank you... >> I think I got it now. >> >> PS: Didn't mean to be rude, just wanted my questions to stand out from >> the rest of the text. Sorry for the misunderstanding. >> >> >> >> >> On Wed, May 14, 2008 at 10:09 AM, Rob wrote: >> > On Wednesday 14 May 2008 10:23, M0E Lnx wrote: >> > > > - Note the window id of the Embedder control. >> > > HOW ??? >> > >> > Every control has an "ID" property. >> > >> > > > - Run the embedded application and pass the previous window id as >> > > > argument. >> > > HOW? >> > >> > You pass it on the command line from the calling program, and read it >> > in the receiving program with Application.Args. What format you use >> > is up to you. >> > >> > > > - In the embedded application, set the Application.Embedder >> > > > property to the received window id. >> > > WHICH WINDOW ID ?? THEM EMBEDDER'S OR THE EMBEDDED? >> > >> > He said "the received window id", so obviously he was referring to the >> > ID he was talking about all along, which was the embedder control's >> > ID. >> > >> > Also, don't use caps, it's rude. >> > >> > Rob >> > >> > >> > ------------------------------------------------------------------------- >> > This SF.net email is sponsored by: Microsoft >> > Defy all challenges. Microsoft(R) Visual Studio 2008. >> > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ >> > _______________________________________________ >> > Gambas-user mailing list >> > Gambas-user at lists.sourceforge.net >> > https://lists.sourceforge.net/lists/listinfo/gambas-user >> > >> > From sourceforge-raindog2 at ...94... Wed May 14 18:47:21 2008 From: sourceforge-raindog2 at ...94... (Rob) Date: Wed, 14 May 2008 12:47:21 -0400 Subject: [Gambas-user] Keyboard input in embedded application In-Reply-To: <1f1e8c1b0805140846k2c0e4cf9h5b15106250b67576@...627...> References: <1f1e8c1b0805120633w10c2a0f7r8f45dfd51ebd895f@...627...> <1f1e8c1b0805140827p5a018565g74f9cbbbf0c94e52@...627...> <1f1e8c1b0805140846k2c0e4cf9h5b15106250b67576@...627...> Message-ID: <200805141247.21471.sourceforge-raindog2@...94...> On Wednesday 14 May 2008 11:46, M0E Lnx wrote: > SHELL "/path/to/embedded/application " & sArg WAIT > ME.Embedder1.Embed(sArg) > Does that sound like it should work? Probably not. The WAIT means that your calling program will only get to the Embedder1.Embed call after /path/to/embedded/application has already exited (or at least that's what's supposed to happen.) Rob From m0e.lnx at ...626... Wed May 14 19:09:02 2008 From: m0e.lnx at ...626... (M0E Lnx) Date: Wed, 14 May 2008 12:09:02 -0500 Subject: [Gambas-user] Keyboard input in embedded application In-Reply-To: <200805141247.21471.sourceforge-raindog2@...94...> References: <1f1e8c1b0805120633w10c2a0f7r8f45dfd51ebd895f@...627...> <1f1e8c1b0805140827p5a018565g74f9cbbbf0c94e52@...627...> <1f1e8c1b0805140846k2c0e4cf9h5b15106250b67576@...627...> <200805141247.21471.sourceforge-raindog2@...94...> Message-ID: <1f1e8c1b0805141009i18d4e7fflac4c7b147ceaaf01@...627...> I noticed that I have removed the WAIT but it's still not doing it... I get the 2 applications, but the embedder shows am empty window and I get a new window as if I just ran the embedded externally I have forms designed in the IDE by hand (ie, not generated from code) On the Startap Class form open() event my first line reads Application.Embedder = Application.Args[1] Is this the right place for it? I'm having it print the Application.Args[1] value to verify it's getting the argument, and indeed it is... but it's not displaying like I want it to. :( On Wed, May 14, 2008 at 11:47 AM, Rob wrote: > On Wednesday 14 May 2008 11:46, M0E Lnx wrote: >> SHELL "/path/to/embedded/application " & sArg WAIT >> ME.Embedder1.Embed(sArg) >> Does that sound like it should work? > > Probably not. The WAIT means that your calling program will only get > to the Embedder1.Embed call after /path/to/embedded/application has > already exited (or at least that's what's supposed to happen.) > > Rob > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From tomas.eroles at ...277... Wed May 14 19:38:00 2008 From: tomas.eroles at ...277... (Tomas Eroles i Forner) Date: Wed, 14 May 2008 19:38:00 +0200 Subject: [Gambas-user] Gambas as language for web development Message-ID: <1210786681.4241.3.camel@...1787...> Hi all I've been reading today an article about languages for web development: PHP, ASP and Java are the main disussion subjects. My question is... if GAMBAS has some extensions for networking, is possible to write a web based application in GAMBAS?. If so, how? Any example for study? Else, could it be possible? Thanks in advance From dcamposf at ...626... Wed May 14 19:55:29 2008 From: dcamposf at ...626... (Daniel Campos) Date: Wed, 14 May 2008 19:55:29 +0200 Subject: [Gambas-user] Gambas as language for web development In-Reply-To: <1210786681.4241.3.camel@...1787...> References: <1210786681.4241.3.camel@...1787...> Message-ID: <7259b5ae0805141055s4bf253b2hedc9036ad92b37eb@...627...> Try the gb.web component 2008/5/14 Tomas Eroles i Forner : > Hi all > I've been reading today an article about languages for web development: > PHP, ASP and Java are the main disussion subjects. > My question is... if GAMBAS has some extensions for networking, is > possible to write a web based application in GAMBAS?. > > If so, how? Any example for study? > Else, could it be possible? > > Thanks in advance > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Wed May 14 20:05:33 2008 From: gambas at ...1... (Benoit Minisini) Date: Wed, 14 May 2008 20:05:33 +0200 Subject: [Gambas-user] Gambas as language for web development In-Reply-To: <1210786681.4241.3.camel@...1787...> References: <1210786681.4241.3.camel@...1787...> Message-ID: <200805142005.33626.gambas@...1...> On mercredi 14 mai 2008, Tomas Eroles i Forner wrote: > Hi all > I've been reading today an article about languages for web development: > PHP, ASP and Java are the main disussion subjects. > My question is... if GAMBAS has some extensions for networking, is > possible to write a web based application in GAMBAS?. > > If so, how? Any example for study? > Else, could it be possible? > > Thanks in advance > > If you want an example, and if you can read french, here is what I do for my job: http://dev.guygle.fr login: demo at ...1908... password: demo Don't break everything please :-) The application is based on gb.web, which will not be very difficult to learn if you have already make ASP applications. Regards, -- Benoit Minisini From jredrejo at ...626... Wed May 14 20:06:02 2008 From: jredrejo at ...626... (=?UTF-8?Q?Jos=C3=A9_Luis_Redrejo?=) Date: Wed, 14 May 2008 20:06:02 +0200 Subject: [Gambas-user] Gambas as language for web development In-Reply-To: <7259b5ae0805141055s4bf253b2hedc9036ad92b37eb@...627...> References: <1210786681.4241.3.camel@...1787...> <7259b5ae0805141055s4bf253b2hedc9036ad92b37eb@...627...> Message-ID: <8eb28a500805141106q5e72369dy8ee7abf766b1605b@...627...> Appart from having CGI, would not be great being able to use the ide to build applications for gtk, qt or xul (like this example: http://www.hevanet.com/acorbin/xul/top.xul) ? 2008/5/14 Daniel Campos : > Try the gb.web component > > > > 2008/5/14 Tomas Eroles i Forner : > > > Hi all > > I've been reading today an article about languages for web development: > > PHP, ASP and Java are the main disussion subjects. > > My question is... if GAMBAS has some extensions for networking, is > > possible to write a web based application in GAMBAS?. > > > > If so, how? Any example for study? > > Else, could it be possible? > > > > Thanks in advance > > > > > > ------------------------------------------------------------------------- > > This SF.net email is sponsored by: Microsoft > > Defy all challenges. Microsoft(R) Visual Studio 2008. > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > _______________________________________________ > > 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: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Wed May 14 20:40:07 2008 From: gambas at ...1... (Benoit Minisini) Date: Wed, 14 May 2008 20:40:07 +0200 Subject: [Gambas-user] Gambas as language for web development In-Reply-To: <8eb28a500805141106q5e72369dy8ee7abf766b1605b@...627...> References: <1210786681.4241.3.camel@...1787...> <7259b5ae0805141055s4bf253b2hedc9036ad92b37eb@...627...> <8eb28a500805141106q5e72369dy8ee7abf766b1605b@...627...> Message-ID: <200805142040.07985.gambas@...1...> On mercredi 14 mai 2008, Jos? Luis Redrejo wrote: > Appart from having CGI, would not be great being able to use the ide to > build applications for gtk, qt or xul (like this example: > http://www.hevanet.com/acorbin/xul/top.xul) ? > I don't know xul well. Anyway, at the moment, I am totally against using it for the following reasons: * Developing "local" applications: it can be run only inside Mozilla/Firefox and so on. It is not like Qt or GTK+ that are shared libraries that you can use in any program. * Developing "network" applications: you have to use Mozilla/Firefox as client browser. As if Mozilla/XUL becomes the OS... Herk. And it is so slow... But I may be wrong. Apparently there is a XULRunner that allows to run applications outside of Mozilla. Anyway, what I want to achieve with Gambas is the ability to develop "web" applications directly from the IDE, as easily as developing GUI is. A good point is the upcoming HTML 5: it seems to bring all the controls that are missing in HTML 4: treeviews, columnviews... Another good point is the upcoming WebKit: it will allows browsers on small computers (PDA...) fully compliant. Try to run JavaScript on Internet Explorer on WindowsCE (I don't remember what his name is now). I want to minimize the use of JavaScript as much as possible. I don't think I will be able to avoid it for implementing controls equivalent to what we already have in gb.qt/gb.gtk. Events raised by control will be sent by JavaScript code to the server. Consequently we won't be able to implement "real time" events like "MouseMove". Reacting to an event will need to display the page entirely again (it is an HTTP request followed by its answer), unless we use JavaScript and the DOM to update the web page. It is not necessarily a good idea, even if sophisticated applications like Google Docs need that. Whatever is done, I want it to be K.I.S.S. Something that can run on the greater number of browsers, and that don't hide too much to the programmer. Really, that task is big and not evident: how to make something easy without making a kitchen sink? All that is fully open to talk of course. I won't make anything now, I don't have the time. :-) Regards, -- Benoit Minisini From jredrejo at ...626... Wed May 14 20:51:42 2008 From: jredrejo at ...626... (=?UTF-8?Q?Jos=C3=A9_Luis_Redrejo?=) Date: Wed, 14 May 2008 20:51:42 +0200 Subject: [Gambas-user] Gambas as language for web development In-Reply-To: <200805142040.07985.gambas@...1...> References: <1210786681.4241.3.camel@...1787...> <7259b5ae0805141055s4bf253b2hedc9036ad92b37eb@...627...> <8eb28a500805141106q5e72369dy8ee7abf766b1605b@...627...> <200805142040.07985.gambas@...1...> Message-ID: <8eb28a500805141151r2434afdn2038bc4108cf12e7@...627...> 2008/5/14 Benoit Minisini : > On mercredi 14 mai 2008, Jos? Luis Redrejo wrote: > > Appart from having CGI, would not be great being able to use the ide to > > build applications for gtk, qt or xul (like this example: > > http://www.hevanet.com/acorbin/xul/top.xul) ? > > > > I don't know xul well. Anyway, at the moment, I am totally against using it > for the following reasons: > > * Developing "local" applications: it can be run only inside > Mozilla/Firefox > and so on. It is not like Qt or GTK+ that are shared libraries that you can > use in any program. > > * Developing "network" applications: you have to use Mozilla/Firefox as > client > browser. > > As if Mozilla/XUL becomes the OS... Herk. And it is so slow... > > But I may be wrong. Apparently there is a XULRunner that allows to run > applications outside of Mozilla. > That's right. At least in Debian it exists. > Anyway, what I want to achieve with Gambas is the ability to develop "web" > applications directly from the IDE, as easily as developing GUI is. > > A good point is the upcoming HTML 5: it seems to bring all the controls > that > are missing in HTML 4: treeviews, columnviews... > > Another good point is the upcoming WebKit: it will allows browsers on small > computers (PDA...) fully compliant. Try to run JavaScript on Internet > Explorer on WindowsCE (I don't remember what his name is now). > what's the point of using webkit instead of xulrunner? I'm not saying I prefere xul, as I don't know enough of both to compare, I'm just saying that you could apply to webkit the same reasons you gave to be against xul. OTOH if you plan to support IExplorer on any platform I'm afraid you'll never arrive anywhere, unless you use javascript that has been used in several ajax toolkit for a long time and has the needed workaround pretty tested and solid. > > I want to minimize the use of JavaScript as much as possible. I don't think > I > will be able to avoid it for implementing controls equivalent to what we > already have in gb.qt/gb.gtk. > > Events raised by control will be sent by JavaScript code to the server. > Consequently we won't be able to implement "real time" events > like "MouseMove". > Reacting to an event will need to display the page entirely again (it is an > HTTP request followed by its answer), unless we use JavaScript and the DOM > to > update the web page. It is not necessarily a good idea, even if > sophisticated > applications like Google Docs need that. > Maybe the answer is blowing in the wind: http://en.wikipedia.org/wiki/Comet_%28programming%29 : > > Whatever is done, I want it to be K.I.S.S. Something that can run on the > greater number of browsers, and that don't hide too much to the programmer. > > Really, that task is big and not evident: how to make something easy > without > making a kitchen sink? > I know of some very imaginative approach. As an example, I have a friend who made a smalltalk-to-javascript translator, as he's a st guru but had to develop some web apps and didn't want to leave his favourite language. Maybe a gambas-to-javascript translator could do the magic. > > All that is fully open to talk of course. I won't make anything now, I > don't > have the time. :-) > > I fully understand you. This is a very big project and maybe too ambitious, but dreaming is free ;-) Cheers Jos? L. From sourceforge-raindog2 at ...94... Wed May 14 21:01:25 2008 From: sourceforge-raindog2 at ...94... (Rob) Date: Wed, 14 May 2008 15:01:25 -0400 Subject: [Gambas-user] Gambas as language for web development In-Reply-To: <200805142040.07985.gambas@...1...> References: <1210786681.4241.3.camel@...1787...> <8eb28a500805141106q5e72369dy8ee7abf766b1605b@...627...> <200805142040.07985.gambas@...1...> Message-ID: <200805141501.25166.sourceforge-raindog2@...94...> On Wednesday 14 May 2008 14:40, Benoit Minisini wrote: > Reacting to an event will need to display the page entirely again > (it is an HTTP request followed by its answer), unless we use > JavaScript and the DOM to update the web page. It is not > necessarily a good idea, even if sophisticated applications like > Google Docs need that. I know I'm biased because I've done more AJAX stuff than you have, but I really think redrawing the whole screen after each update would be intolerable. Firefox 3 betas are already a lot faster at Javascript than Firefox 2 and previous, though I don't know if the other browsers are making similar speed improvements. > Really, that task is big and not evident: how to make something > easy without making a kitchen sink? Personally, I would use some toolkit like dojo, just as you used existing GUI toolkits like qt and gtk rather than reinventing the wheel for Gambas. (I'm not suggesting dojo specifically, but I think it's an example of a toolkit that provides almost everything we would need.) > All that is fully open to talk of course. I won't make anything > now, I don't have the time. :-) I'm still waiting for more of my time to free up, as well. Rob From tomas.eroles at ...277... Wed May 14 20:50:49 2008 From: tomas.eroles at ...277... (Tomas Eroles i Forner) Date: Wed, 14 May 2008 20:50:49 +0200 Subject: [Gambas-user] Gambas as language for web development In-Reply-To: <200805142005.33626.gambas@...1...> References: <1210786681.4241.3.camel@...1787...> <200805142005.33626.gambas@...1...> Message-ID: <1210791049.4241.9.camel@...1787...> Very good example! But I have more questions: - As Jose Luis says, would be possible to design web forms from GAMBAS? - How are defined the forms in your application? - And how are you embeeding the GAMBAS code to control the behaviour of the application? - Does I need anything to add to my Apache to run apps with GAMBAS CGI? thanks in advance regards El mi?, 14-05-2008 a las 20:05 +0200, Benoit Minisini escribi?: > On mercredi 14 mai 2008, Tomas Eroles i Forner wrote: > > Hi all > > I've been reading today an article about languages for web development: > > PHP, ASP and Java are the main disussion subjects. > > My question is... if GAMBAS has some extensions for networking, is > > possible to write a web based application in GAMBAS?. > > > > If so, how? Any example for study? > > Else, could it be possible? > > > > Thanks in advance > > > > > > If you want an example, and if you can read french, here is what I do for my > job: > > http://dev.guygle.fr > > login: demo at ...1908... > password: demo > > Don't break everything please :-) > > The application is based on gb.web, which will not be very difficult to learn > if you have already make ASP applications. > > Regards, > From sourceforge-raindog2 at ...94... Wed May 14 21:06:22 2008 From: sourceforge-raindog2 at ...94... (Rob) Date: Wed, 14 May 2008 15:06:22 -0400 Subject: [Gambas-user] Gambas as language for web development In-Reply-To: <8eb28a500805141151r2434afdn2038bc4108cf12e7@...627...> References: <1210786681.4241.3.camel@...1787...> <200805142040.07985.gambas@...1...> <8eb28a500805141151r2434afdn2038bc4108cf12e7@...627...> Message-ID: <200805141506.22781.sourceforge-raindog2@...94...> On Wednesday 14 May 2008 14:51, Jos? Luis Redrejo wrote: > http://en.wikipedia.org/wiki/Comet_%28programming%29 Yes, this technique would really be required for doing Gambas desktop-style programming in a web app. Dojo does that too, though again I'm sure there are other toolkits that would work just as well. Rob From gambas at ...1... Wed May 14 21:27:13 2008 From: gambas at ...1... (Benoit Minisini) Date: Wed, 14 May 2008 21:27:13 +0200 Subject: [Gambas-user] Gambas as language for web development In-Reply-To: <1210791049.4241.9.camel@...1787...> References: <1210786681.4241.3.camel@...1787...> <200805142005.33626.gambas@...1...> <1210791049.4241.9.camel@...1787...> Message-ID: <200805142127.13689.gambas@...1...> On mercredi 14 mai 2008, Tomas Eroles i Forner wrote: > Very good example! > But I have more questions: > - As Jose Luis says, would be possible to design web forms from GAMBAS? No. > - How are defined the forms in your application? The application is a CGI script, so you have tu use PRINT to send the HTML to the browser. > - And how are you embeeding the GAMBAS code to control the behaviour of > the application? Embedding? There is no "embedding" anywhere... > - Does I need anything to add to my Apache to run apps with GAMBAS CGI? No. I suggest you replace your Apache by something like thttpd. A light browser usually speeds up your web application. Regards, -- Benoit Minisinianything:anything: From sourceforge-raindog2 at ...94... Wed May 14 21:38:40 2008 From: sourceforge-raindog2 at ...94... (Rob) Date: Wed, 14 May 2008 15:38:40 -0400 Subject: [Gambas-user] Gambas as language for web development In-Reply-To: <200805142127.13689.gambas@...1...> References: <1210786681.4241.3.camel@...1787...> <1210791049.4241.9.camel@...1787...> <200805142127.13689.gambas@...1...> Message-ID: <200805141538.40764.sourceforge-raindog2@...94...> On Wednesday 14 May 2008 15:27, Benoit Minisini wrote: > > - As Jose Luis says, would be possible to design web forms from > > GAMBAS? > > No. While I know that's true at present, I did write something a few years back (before these AJAX frameworks were created) that converted Gambas 1.0 forms to HTML+CSS on the fly, and added a lot of Javascript event handlers to handle clicks and things like that. Of course, the server side was written in perl, and the whole thing turned out to be incredibly clumsy. But it allowed serving up Gambas forms on the web and, to a degree, having them act like normal desktop app forms. It was far from a literal Gambas web form designer, but I really think such a thing would be possible if the other things we've been talking about on this thread came to be. Rob From david_villalobos_c at ...43... Wed May 14 21:39:57 2008 From: david_villalobos_c at ...43... (David Villalobos Cambronero) Date: Wed, 14 May 2008 12:39:57 -0700 (PDT) Subject: [Gambas-user] Highlight text on Editor Message-ID: <531458.2742.qm@...1674...> Hi all, Does someone knows how to highlight a word on the editor? For example, highlight HTML tags is "easy" since all of them start and end with < or >, but how can I highlight a word like, INSERT, KEY, TABLE, etc? Any idea? Benoit, how do you highlight the Gambas keywords? Regards David. From gambas at ...1... Wed May 14 21:46:36 2008 From: gambas at ...1... (Benoit Minisini) Date: Wed, 14 May 2008 21:46:36 +0200 Subject: [Gambas-user] Gambas as language for web development In-Reply-To: <200805141506.22781.sourceforge-raindog2@...94...> References: <1210786681.4241.3.camel@...1787...> <8eb28a500805141151r2434afdn2038bc4108cf12e7@...627...> <200805141506.22781.sourceforge-raindog2@...94...> Message-ID: <200805142146.36093.gambas@...1...> On mercredi 14 mai 2008, Rob wrote: > On Wednesday 14 May 2008 14:51, Jos? Luis Redrejo wrote: > > http://en.wikipedia.org/wiki/Comet_%28programming%29 > > Yes, this technique would really be required for doing Gambas > desktop-style programming in a web app. Dojo does that too, though > again I'm sure there are other toolkits that would work just as well. > > Rob > I continue on finding that these techniques are mainly hacks wasting resources. One big interest of web applications made in the classical HTTP request way is that they do not consume any server resource between requests, and do not use persistent connections. As soon as, on the server side, you can share your session files and your disk data, you can put your application in many different servers and so easily increase the power of the application and have fault tolerance. A machine can crash during your session, and you may not see it at all. And a desktop-like application in a browser is something like NoMachine / X11 without NoMachine and X11 after all... -- Benoit Minisini From gambas at ...1... Wed May 14 21:48:09 2008 From: gambas at ...1... (Benoit Minisini) Date: Wed, 14 May 2008 21:48:09 +0200 Subject: [Gambas-user] Highlight text on Editor In-Reply-To: <531458.2742.qm@...1674...> References: <531458.2742.qm@...1674...> Message-ID: <200805142148.09602.gambas@...1...> On mercredi 14 mai 2008, David Villalobos Cambronero wrote: > Hi all, > > Does someone knows how to highlight a word on the editor? > > For example, highlight HTML tags is "easy" since all of them start and end > with < or >, but how can I highlight a word like, INSERT, KEY, TABLE, etc? > > Any idea? A lot of elbow grease inside the Highlight event. > > Benoit, how do you highlight the Gambas keywords? Gambas highlighting is hard-coded into the gb.qt.ext and the gb.eval component. It is not done in Gambas. Regards, -- Benoit Minisini From david_villalobos_c at ...43... Wed May 14 21:54:29 2008 From: david_villalobos_c at ...43... (David Villalobos Cambronero) Date: Wed, 14 May 2008 12:54:29 -0700 (PDT) Subject: [Gambas-user] Highlight text on Editor Message-ID: <920502.60393.qm@...1716...> Jejeje, It will be hard. Bu I think I got an idea.... let's hope it works... :-) Anyway, thanks David ----- Original Message ---- From: Benoit Minisini To: mailing list for gambas users Sent: Wednesday, May 14, 2008 1:48:09 PM Subject: Re: [Gambas-user] Highlight text on Editor On mercredi 14 mai 2008, David Villalobos Cambronero wrote: > Hi all, > > Does someone knows how to highlight a word on the editor? > > For example, highlight HTML tags is "easy" since all of them start and end > with < or >, but how can I highlight a word like, INSERT, KEY, TABLE, etc? > > Any idea? A lot of elbow grease inside the Highlight event. > > Benoit, how do you highlight the Gambas keywords? Gambas highlighting is hard-coded into the gb.qt.ext and the gb.eval component. It is not done in Gambas. Regards, -- Benoit Minisini ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From ron at ...1740... Wed May 14 21:55:15 2008 From: ron at ...1740... (Ron) Date: Wed, 14 May 2008 21:55:15 +0200 Subject: [Gambas-user] gambas sites misery Message-ID: <482B43A3.1080805@...1740...> Whats wrong with www.gambasforge.net its down... And with http://gambasrad.org, its very outdated. This is not good (tm) Regards, Ron. From sourceforge-raindog2 at ...94... Wed May 14 22:03:14 2008 From: sourceforge-raindog2 at ...94... (Rob) Date: Wed, 14 May 2008 16:03:14 -0400 Subject: [Gambas-user] gambas sites misery In-Reply-To: <482B43A3.1080805@...1740...> References: <482B43A3.1080805@...1740...> Message-ID: <200805141603.14352.sourceforge-raindog2@...94...> On Wednesday 14 May 2008 15:55, Ron wrote: > Whats wrong with www.gambasforge.net its down... It's been broken for almost a year anyway.... every source archive that it was sending out was corrupted or just zero bytes. Does anyone have copies of the source code that was available on there before it broke? I was looking for a copy of the Beast demo that didn't require OpenGL, but all the old versions of it were on GambasForge. I would stick them in a directory and host them until someone else sets up a free (and ad-free) repository. Rob From sourceforge-raindog2 at ...94... Wed May 14 22:06:53 2008 From: sourceforge-raindog2 at ...94... (Rob) Date: Wed, 14 May 2008 16:06:53 -0400 Subject: [Gambas-user] Gambas as language for web development In-Reply-To: <200805142146.36093.gambas@...1...> References: <1210786681.4241.3.camel@...1787...> <200805141506.22781.sourceforge-raindog2@...94...> <200805142146.36093.gambas@...1...> Message-ID: <200805141606.53793.sourceforge-raindog2@...94...> On Wednesday 14 May 2008 15:46, Benoit Minisini wrote: > I continue on finding that these techniques are mainly hacks > wasting resources. Maybe so, but those hacks are in extremely high demand right now. CGI is fine, but users don't want the entire page to reload when they change their selection in a listbox that other form controls depend on. Besides, even CGI itself is a hack, considering that HTTP was originally designed to just serve up static pages and provide minimal searching. It's just a hack that's 8 or 9 years older. And keeping a socket open may be excessive, and I feel totally recreating the desktop Gambas experience would probably result in a lot of bad applications written by people who don't understand the web, but just sending a list of values to populate an HTML select is a lot less data than redrawing the entire page. Same with updating a stock ticker or chat window. That's the sort of thing these techniques were really meant to do. Rob From m0e.lnx at ...626... Wed May 14 22:23:10 2008 From: m0e.lnx at ...626... (M0E Lnx) Date: Wed, 14 May 2008 15:23:10 -0500 Subject: [Gambas-user] Keyboard input in embedded application In-Reply-To: <200805141833.17266.gambas@...1...> References: <1f1e8c1b0805120633w10c2a0f7r8f45dfd51ebd895f@...627...> <1f1e8c1b0805140827p5a018565g74f9cbbbf0c94e52@...627...> <1f1e8c1b0805140846k2c0e4cf9h5b15106250b67576@...627...> <200805141833.17266.gambas@...1...> Message-ID: <1f1e8c1b0805141323k7df6c38lf67fb2d00879a5@...627...> > Anyway the focus problem is there. I tried to understand what happens with > Gambas application, as it is a Gambas problem (if you embed Konqueror for > example, it can get focus normally). But I didn't succeed. Note that I > upgraded the XEMBED support in gb.qt recently to the last version provided by > TrollTech, but it didn't change anything. > > Regards, > > -- > Benoit Minisini Does this mean that even if somehow I manage to get the embedding to work (which is not ATM), I would still have the focus problem even with pure gambas2 apps? From wspinto at ...1405... Wed May 14 22:25:47 2008 From: wspinto at ...1405... (Wellington de Souza Pinto) Date: Wed, 14 May 2008 17:25:47 -0300 Subject: [Gambas-user] A print error occurred. Error message received from system In-Reply-To: References: Message-ID: <1210796747.482b4acbbb3ea@...1547...> Hi! My linux is ubuntu8.04 with gambas2.6. my little code: webbrowser1.path = "file://" & sfile WAIT 0.5 webbrowser1.print(FALSE) When i'm using the webbrowser componente show this message: A print error occurred. Error message received from system: cupsdoprint -P '' -J 'file:///tmp/gambas.1000/7614/laudo.html' -H '/var/run/cups/cups.sock:631' -U 'supervisor' -o ' multiple-document-handling=separate-documents-uncollated-copies orientation-requested=3' '/tmp/kde-supervisor/kdeprint_JecnjwLL' : execution failed with message: No printer specified (and PRINTER variable is empty) If my little code: webbrowser1.path = "file://" & sfile WAIT 0.5 webbrowser1.print(TRUE) Show the printer dialog and work fine. WHY??????????????????????? Howto correct this problem??? Reguards, ___________________________________________________________________________________ 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 gambas at ...1... Wed May 14 22:52:02 2008 From: gambas at ...1... (Benoit Minisini) Date: Wed, 14 May 2008 22:52:02 +0200 Subject: [Gambas-user] Navigating through form object with the tab key In-Reply-To: <482AEC65.5090300@...1907...> References: <1f1e8c1b0805121355j302a4185sa0165d5ed4de3f2@...627...> <200805130050.15554.gambas@...1...> <482AEC65.5090300@...1907...> Message-ID: <200805142252.02234.gambas@...1...> On mercredi 14 mai 2008, HARADA Kazutaka wrote: > Benoit Minisini wrote: > > On mardi 13 mai 2008, M0E Lnx wrote: > >> Where is this defined? or does gambas assign values automatically? > >> I dont see any option to set this on the object's or form properties > > > > The Z-order is defined in the Hierarchy tab, next to the property sheet > > tab. > > I found a problem with Z-order. > This works fine for gb.qt, but not for gb.gtk on gamba2-2.6.0 with gtk > 2.12.9. > > I created a form with 3 buttons. Then changed the Z-order and tested. > > In the hierarchy tree, > Button3 > Button2 > Button1 > > The cursor moves Button3 - Button1 - Button2 with tab key > > Bit dufferent... I fixed the bug in revison #1381. Regards, -- Benoit Minisini From eilert-sprachen at ...221... Thu May 15 08:23:57 2008 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Thu, 15 May 2008 08:23:57 +0200 Subject: [Gambas-user] Searching an error in the whole class In-Reply-To: <200805141310.18450.gambas@...1...> References: <482AC731.4020600@...221...> <200805141310.18450.gambas@...1...> Message-ID: <482BD6FD.6000200@...221...> Benoit Minisini schrieb: > On mercredi 14 mai 2008, Rolf-Werner Eilert wrote: >> Hi, >> >> Is it possible to let the program jump to an error routine if an error >> occurs SOMEWHERE in the class? >> >> I cannot find the reason for an error in one of my apps the students >> use. This error occurs especially when lots of french letters and/or >> apostrophies are written, but it is not predictable. So I cannot try it >> for myself (what I did, but it didn't run into an error...) >> >> Of course, they use a compiled version of the program. So I have to log >> the error into a file and search for the reason. But with TRY etc. I can >> only catch an error within one specific function... Since I don't know >> where the error occurs, it would be nice to let the program jump into >> some "global" error routine. >> >> Thanks for your hints! >> >> Rolf >> >> > > Why can't you know where the error occurs? When you compile the program, check > the check-box that tell the compiler to keep debuggin information inside the > executable, and you will get the location of the error. You can even get the > backtrace on the standard error output! > > Regards, > You were right, as usual :-) Just wanted to let you know, I forgot/didn't see the checkbox with the "keep debug information" thing. So at last I found the place the trouble began, and I hope I could get rid of it. By the way, does this have any influence on speed, efficiency etc. of the app being interpreted? After all, there is a checkbox... Regards, Rolf From serif at ...1870... Thu May 15 09:45:41 2008 From: serif at ...1870... (Mike Brett) Date: Thu, 15 May 2008 08:45:41 +0100 Subject: [Gambas-user] AutoResize error from DataReportExample Message-ID: <482BEA25.4060201@...1870...> Using the DataReportExample in 2.6.0, once a satisfactory connection to a MySQL server has been made, this error is thrown: Unknown symbol 'AutoResize' in class 'Gridview' As far as I can see there is no explicit reference to an AutoResize property in the code. Two questions spring to mind, please: 1. What's going on in this particular context? 2. As a learning exercise, what mental process should I be going through to try to resolve such errors by myself in future? Thanks. - Mike Brett - (gambas 2.6.0 on Fedora 8) From serif at ...1870... Thu May 15 12:10:59 2008 From: serif at ...1870... (Mike Brett) Date: Thu, 15 May 2008 11:10:59 +0100 Subject: [Gambas-user] IDE tab visibility Message-ID: <482C0C33.1060104@...1870...> Is there any preference option I can adjust to make the selected tab stand out more on the IDE, please? The tabs all look identical (see attachment), except for that minuscule 1mm raised top. This is very difficult to see at a glance. In the example the Ftest.form is the current tab. Thanks. - Mike Brett - (gambas 2.6.0 on Fedora 8) -------------- next part -------------- A non-text attachment was scrubbed... Name: Screenshot.png Type: image/png Size: 27630 bytes Desc: not available URL: From gambas at ...1... Thu May 15 12:16:55 2008 From: gambas at ...1... (Benoit Minisini) Date: Thu, 15 May 2008 12:16:55 +0200 Subject: [Gambas-user] Searching an error in the whole class In-Reply-To: <482BD6FD.6000200@...221...> References: <482AC731.4020600@...221...> <200805141310.18450.gambas@...1...> <482BD6FD.6000200@...221...> Message-ID: <200805151216.56045.gambas@...1...> On jeudi 15 mai 2008, Rolf-Werner Eilert wrote: > Benoit Minisini schrieb: > > On mercredi 14 mai 2008, Rolf-Werner Eilert wrote: > >> Hi, > >> > >> Is it possible to let the program jump to an error routine if an error > >> occurs SOMEWHERE in the class? > >> > >> I cannot find the reason for an error in one of my apps the students > >> use. This error occurs especially when lots of french letters and/or > >> apostrophies are written, but it is not predictable. So I cannot try it > >> for myself (what I did, but it didn't run into an error...) > >> > >> Of course, they use a compiled version of the program. So I have to log > >> the error into a file and search for the reason. But with TRY etc. I can > >> only catch an error within one specific function... Since I don't know > >> where the error occurs, it would be nice to let the program jump into > >> some "global" error routine. > >> > >> Thanks for your hints! > >> > >> Rolf > > > > Why can't you know where the error occurs? When you compile the program, > > check the check-box that tell the compiler to keep debuggin information > > inside the executable, and you will get the location of the error. You > > can even get the backtrace on the standard error output! > > > > Regards, > > You were right, as usual :-) Just wanted to let you know, I > forgot/didn't see the checkbox with the "keep debug information" thing. > So at last I found the place the trouble began, and I hope I could get > rid of it. > > By the way, does this have any influence on speed, efficiency etc. of > the app being interpreted? After all, there is a checkbox... > > Regards, > > Rolf > Debugging information takes place (you can do the comparison). As for speed, a breakpoint is generated for each line of code, but it does nothing. So you maiy not notice anything. In the future, I plan to remove the useless breakpoint in that specific case. Regards, -- Benoit Minisini From gambas at ...1... Thu May 15 12:18:10 2008 From: gambas at ...1... (Benoit Minisini) Date: Thu, 15 May 2008 12:18:10 +0200 Subject: [Gambas-user] IDE tab visibility In-Reply-To: <482C0C33.1060104@...1870...> References: <482C0C33.1060104@...1870...> Message-ID: <200805151218.10455.gambas@...1...> On jeudi 15 mai 2008, Mike Brett wrote: > Is there any preference option I can adjust to make the selected tab > stand out more on the IDE, please? The tabs all look identical (see > attachment), except for that minuscule 1mm raised top. This is very > difficult to see at a glance. > > In the example the Ftest.form is the current tab. > > Thanks. > > - Mike Brett - (gambas 2.6.0 on Fedora 8) Change yopour qt theme. You must find a program named "qtconfig" in some package and use it to define the qt theme used by qt applications. Regards, -- Benoit Minisini From gambas at ...1... Thu May 15 12:19:54 2008 From: gambas at ...1... (Benoit Minisini) Date: Thu, 15 May 2008 12:19:54 +0200 Subject: [Gambas-user] gambas sites misery In-Reply-To: <200805141603.14352.sourceforge-raindog2@...94...> References: <482B43A3.1080805@...1740...> <200805141603.14352.sourceforge-raindog2@...94...> Message-ID: <200805151219.54864.gambas@...1...> On mercredi 14 mai 2008, Rob wrote: > On Wednesday 14 May 2008 15:55, Ron wrote: > > Whats wrong with www.gambasforge.net its down... > > It's been broken for almost a year anyway.... every source archive > that it was sending out was corrupted or just zero bytes. > > Does anyone have copies of the source code that was available on there > before it broke? I was looking for a copy of the Beast demo that > didn't require OpenGL, but all the old versions of it were on > GambasForge. I would stick them in a directory and host them until > someone else sets up a free (and ad-free) repository. > > Rob > Fabien Bodard made the site. Maybe he could tell us? -- Benoit Minisini From gambas at ...1... Thu May 15 12:51:48 2008 From: gambas at ...1... (Benoit Minisini) Date: Thu, 15 May 2008 12:51:48 +0200 Subject: [Gambas-user] AutoResize error from DataReportExample In-Reply-To: <482BEA25.4060201@...1870...> References: <482BEA25.4060201@...1870...> Message-ID: <200805151251.48333.gambas@...1...> On jeudi 15 mai 2008, Mike Brett wrote: > Using the DataReportExample in 2.6.0, once a satisfactory connection to > a MySQL server has been made, this error is thrown: > > Unknown symbol 'AutoResize' in class 'Gridview' > > As far as I can see there is no explicit reference to an AutoResize > property in the code. Two questions spring to mind, please: > > 1. What's going on in this particular context? > 2. As a learning exercise, what mental process should I be going through > to try to resolve such errors by myself in future? > > Thanks. > > - Mike Brett - (gambas 2.6.0 on Fedora 8) > This is a property that has been removed. It will be fixed in the next release. If you want to try it anyway, just copy the example, update all forms from the IDE menu, and recompile it. Regards, -- Benoit Minisini From ron at ...1740... Thu May 15 14:57:21 2008 From: ron at ...1740... (Ron) Date: Thu, 15 May 2008 14:57:21 +0200 Subject: [Gambas-user] System.Domain empty Message-ID: <482C3331.90302@...1740...> System.Domain is empty (none) on my system (Debian 4.0) gambas 2.6 hostname -f is giving correct fqdn Where should it be defined? Regards, Ron. From rospolosco at ...152... Thu May 15 15:59:13 2008 From: rospolosco at ...152... (Stefano Palmeri) Date: Thu, 15 May 2008 15:59:13 +0200 Subject: [Gambas-user] System.Domain empty In-Reply-To: <482C3331.90302@...1740...> References: <482C3331.90302@...1740...> Message-ID: <200805151559.13973.rospolosco@...152...> Il Thursday 15 May 2008 14:57:21 Ron ha scritto: > System.Domain is empty (none) on my system (Debian 4.0) gambas 2.6 > > hostname -f is giving correct fqdn > > Where should it be defined? > > Regards, > Ron. > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user try system.host ciao, Stefano From ron at ...1740... Thu May 15 16:15:13 2008 From: ron at ...1740... (Ron) Date: Thu, 15 May 2008 16:15:13 +0200 Subject: [Gambas-user] System.Domain empty In-Reply-To: <200805151559.13973.rospolosco@...152...> References: <482C3331.90302@...1740...> <200805151559.13973.rospolosco@...152...> Message-ID: <482C4571.7090006@...1740...> Stefano Palmeri schreef: > Il Thursday 15 May 2008 14:57:21 Ron ha scritto: > >> System.Domain is empty (none) on my system (Debian 4.0) gambas 2.6 >> >> hostname -f is giving correct fqdn >> >> Where should it be defined? >> >> Regards, >> Ron. >> >> ------------------------------------------------------------------------- >> This SF.net email is sponsored by: Microsoft >> Defy all challenges. Microsoft(R) Visual Studio 2008. >> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > try system.host > > ciao, > > Stefano > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > That one only returns the host / machine name, not the domain. Regards, Ron. From gambas at ...1... Thu May 15 17:35:03 2008 From: gambas at ...1... (Benoit Minisini) Date: Thu, 15 May 2008 17:35:03 +0200 Subject: [Gambas-user] System.Domain empty In-Reply-To: <482C3331.90302@...1740...> References: <482C3331.90302@...1740...> Message-ID: <200805151735.03734.gambas@...1...> On jeudi 15 mai 2008, Ron wrote: > System.Domain is empty (none) on my system (Debian 4.0) gambas 2.6 > > hostname -f is giving correct fqdn > > Where should it be defined? > > Regards, > Ron. > The Linux man page are not very clear... Apparently, you have: - A system host name. - A system domain name, or DNS domain name. - A NIS/YP domain name. hostname -f returns the third, but System.Domain uses the getdomainname() system call that seems to return the second. Try "man hostname" to get more information. Regards, -- Benoit Minisini From gambas at ...1... Thu May 15 17:50:39 2008 From: gambas at ...1... (Benoit Minisini) Date: Thu, 15 May 2008 17:50:39 +0200 Subject: [Gambas-user] How to create global locks (or mutex) in a database by using a specific table (Was Re: R: Re: A question about serial (autoincrement) mysql fields) In-Reply-To: <1662520.453731210712428650.JavaMail.defaultUser@...1910...> References: <1662520.453731210712428650.JavaMail.defaultUser@...1910...> Message-ID: <200805151750.39520.gambas@...1...> On mardi 13 mai 2008, doriano.blengino at ...1909... wrote: > > What do you mean with a lock record? Perhaps rely on a key violation > or something similar? Yes. > And what about transactions? > I am sorry to bother you about extra-gambas things, but your help > would be appreciated (and gambas is involved, anyway). > > Thanks for your reply - have fun. > > > Doriano Bengino You can use a table to create database locks this way: 1) Create a table named "LOCK". 2) This table has, for example, one field "Name". 3) This table has an -unique- index on "Name". In other words, make "Name" the primary key. 4) To set a lock, just create a record inside the "LOCK" table. If the creation failed, that means the lock has been set by another client. Then you can wait a little and try again. Otherwise, if the creation succeeds, you have the lock, and you can continue. 5) Once you have the lock, create your record in the other table (with the autoincrement field), read the last used autoincrement field with a SQL request, and so on... 6) Once your job is terminated, release the lock by destroying the record created in 3). The primary index on LOCK ensures that the lock is set in an atomic way. Regards, -- Benoit Minisini From eilert-sprachen at ...221... Thu May 15 18:45:36 2008 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Thu, 15 May 2008 18:45:36 +0200 Subject: [Gambas-user] TreeView does not expand Message-ID: <482C68B0.8030405@...221...> This is on Gambas 2.6 There is a TreeView, and I want the very first entry to expand. The rest may stay collapsed. The TreeView is called "baum" ;-) So I start like bild = Picture["Icons/16x16/folder_green.png"] baum.Add("CONTAINER", "Aktuelle Container", bild) baum.Current.Expanded = TRUE but it doesn't expand. On Gambas 1 this worked as expected. Is this a bug or a feature? Thanks for your ideas. Rolf From serif at ...1870... Thu May 15 18:53:19 2008 From: serif at ...1870... (Mike Brett) Date: Thu, 15 May 2008 17:53:19 +0100 Subject: [Gambas-user] ComboBox.Add method with index, fails Message-ID: <482C6A7F.5000108@...1870...> The syntax for this is given in the Help as SUB Add ( Item AS String [ , Index AS Integer ] ) When I try simply ComboBox.Add("some text") there are no errors. Whenever I try to add an index, such as ComboBox.Add("some text", 127) or even ComboBox.Add("some text", CInt(127)) I get QComboBox::insertItem: (unnamed) Index 127 out of range QComboBox::setCurrentItem: (unnamed) Index 0 out of range What am I doing wrong please? Thanks. - Mike Brett - (gambas 2.6.0 on Fedora 8) From m0e.lnx at ...626... Thu May 15 19:41:08 2008 From: m0e.lnx at ...626... (M0E Lnx) Date: Thu, 15 May 2008 12:41:08 -0500 Subject: [Gambas-user] Keyboard input in embedded application In-Reply-To: <1f1e8c1b0805141323k7df6c38lf67fb2d00879a5@...627...> References: <1f1e8c1b0805120633w10c2a0f7r8f45dfd51ebd895f@...627...> <1f1e8c1b0805140827p5a018565g74f9cbbbf0c94e52@...627...> <1f1e8c1b0805140846k2c0e4cf9h5b15106250b67576@...627...> <200805141833.17266.gambas@...1...> <1f1e8c1b0805141323k7df6c38lf67fb2d00879a5@...627...> Message-ID: <1f1e8c1b0805151041l590cf3e5q29ef5171f4c6be40@...627...> Ok.. I'm still stuck here... This is what the console says when I run this code (skel.gambas:19431): Gdk-WARNING **: GdkWindow 0x2200003 unexpectedly destroyed (skel.gambas:19431): Gtk-CRITICAL **: gtk_window_group_remove_window: assertion `window->group == window_group' failed Can someone please help me figure out what I'm doing wrong here? On Wed, May 14, 2008 at 3:23 PM, M0E Lnx wrote: >> Anyway the focus problem is there. I tried to understand what happens with >> Gambas application, as it is a Gambas problem (if you embed Konqueror for >> example, it can get focus normally). But I didn't succeed. Note that I >> upgraded the XEMBED support in gb.qt recently to the last version provided by >> TrollTech, but it didn't change anything. >> >> Regards, >> >> -- >> Benoit Minisini > > Does this mean that even if somehow I manage to get the embedding to > work (which is not ATM), I would still have the focus problem even > with pure gambas2 apps? > From gambas at ...1... Thu May 15 21:00:35 2008 From: gambas at ...1... (Benoit Minisini) Date: Thu, 15 May 2008 21:00:35 +0200 Subject: [Gambas-user] TreeView does not expand In-Reply-To: <482C68B0.8030405@...221...> References: <482C68B0.8030405@...221...> Message-ID: <200805152100.35597.gambas@...1...> On jeudi 15 mai 2008, Rolf-Werner Eilert wrote: > This is on Gambas 2.6 > > There is a TreeView, and I want the very first entry to expand. The rest > may stay collapsed. The TreeView is called "baum" ;-) > > So I start like > > bild = Picture["Icons/16x16/folder_green.png"] > baum.Add("CONTAINER", "Aktuelle Container", bild) > baum.Current.Expanded = TRUE > > but it doesn't expand. > > On Gambas 1 this worked as expected. Is this a bug or a feature? > > Thanks for your ideas. > > Rolf > Adding a treeview item does not make it "current" necessarily. But it should move the internal cursor to the newly added item, so you must do: baum.Add("CONTAINER", "Aktuelle Container", bild) baum.Item.Expanded = TRUE Another method: baum.Add("CONTAINER", "Aktuelle Container", bild).Expanded = True As Add() returns the newly created item (as specified in the documentation!) Regards, -- Benoit Minisini From nxgtrturbo at ...626... Thu May 15 21:33:53 2008 From: nxgtrturbo at ...626... (Nx GT-R BOY) Date: Thu, 15 May 2008 12:33:53 -0700 Subject: [Gambas-user] Developing under AMD64 for x86 Message-ID: <688afe140805151233g254b799djd1b613182f06db99@...627...> Developing under AMD64 for x86 Hi, I am planning to install an AMD64 environment for development I know Gambas run under AMD64, but besides avoid using lib64 is anything else I should be aware if the most users of my software are going to be under x86? My project was developed under x86 only, so if I move to AMD64, Do I just recompile or changes must be made? (If the answer varies, what makes the difference?) What do you suggest, stick with x86 or move to AMD64? (This is about a new computer I have just got, so I still have time to decide what to do) Thanks in advance, Nx GT-R Download: http://systemarpi.googlepages.com/arpi.tar.gz -- http://tallerhuertas.googlepages.com/ http://systemarpi.googlepages.com/ From gambas at ...1... Thu May 15 22:00:44 2008 From: gambas at ...1... (Benoit Minisini) Date: Thu, 15 May 2008 22:00:44 +0200 Subject: [Gambas-user] ComboBox.Add method with index, fails In-Reply-To: <482C6A7F.5000108@...1870...> References: <482C6A7F.5000108@...1870...> Message-ID: <200805152200.44787.gambas@...1...> On jeudi 15 mai 2008, Mike Brett wrote: > The syntax for this is given in the Help as > > SUB Add ( Item AS String [ , Index AS Integer ] ) > > When I try simply > ComboBox.Add("some text") > there are no errors. > > Whenever I try to add an index, such as > ComboBox.Add("some text", 127) > or even > ComboBox.Add("some text", CInt(127)) > > I get > QComboBox::insertItem: (unnamed) Index 127 out of range > QComboBox::setCurrentItem: (unnamed) Index 0 out of range > > What am I doing wrong please? > > Thanks. > > - Mike Brett - (gambas 2.6.0 on Fedora 8) > Maybe 127 is greater or equal to the number of items in the ComboBox? -- Benoit Minisini From gambas at ...1... Thu May 15 22:05:31 2008 From: gambas at ...1... (Benoit Minisini) Date: Thu, 15 May 2008 22:05:31 +0200 Subject: [Gambas-user] Keyboard input in embedded application In-Reply-To: <1f1e8c1b0805151041l590cf3e5q29ef5171f4c6be40@...627...> References: <1f1e8c1b0805120633w10c2a0f7r8f45dfd51ebd895f@...627...> <1f1e8c1b0805141323k7df6c38lf67fb2d00879a5@...627...> <1f1e8c1b0805151041l590cf3e5q29ef5171f4c6be40@...627...> Message-ID: <200805152205.31827.gambas@...1...> On jeudi 15 mai 2008, M0E Lnx wrote: > Ok.. I'm still stuck here... This is what the console says when I run this > code > > (skel.gambas:19431): Gdk-WARNING **: GdkWindow 0x2200003 unexpectedly > destroyed > > (skel.gambas:19431): Gtk-CRITICAL **: gtk_window_group_remove_window: > assertion `window->group == window_group' failed > > Can someone please help me figure out what I'm doing wrong here? > I didn't think you used GTK+... Can you send me your project? -- Benoit Minisini From jredrejo at ...626... Fri May 16 08:39:20 2008 From: jredrejo at ...626... (=?UTF-8?Q?Jos=C3=A9_Luis_Redrejo?=) Date: Fri, 16 May 2008 08:39:20 +0200 Subject: [Gambas-user] Developing under AMD64 for x86 In-Reply-To: <688afe140805151233g254b799djd1b613182f06db99@...627...> References: <688afe140805151233g254b799djd1b613182f06db99@...627...> Message-ID: <8eb28a500805152339q21051a8r141e6110a52346a5@...627...> I'm developing on amd64 since two months ago and all my gambas apps run on x86 without any problem. Cheers Jos? L. 2008/5/15 Nx GT-R BOY : > Developing under AMD64 for x86 > > > > Hi, I am planning to install an AMD64 environment for development > > > > I know Gambas run under AMD64, but besides avoid using lib64 is anything > else I should be aware if the most users of my software are going to be > under x86? > > > > My project was developed under x86 only, so if I move to AMD64, Do I just > recompile or changes must be made? (If the answer varies, what makes the > difference?) > > > > What do you suggest, stick with x86 or move to AMD64? > > > > (This is about a new computer I have just got, so I still have time to > decide what to do) > > > > Thanks in advance, Nx GT-R > > Download: http://systemarpi.googlepages.com/arpi.tar.gz > > > -- > http://tallerhuertas.googlepages.com/ > http://systemarpi.googlepages.com/ > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From ron at ...1740... Fri May 16 10:24:38 2008 From: ron at ...1740... (Ron) Date: Fri, 16 May 2008 10:24:38 +0200 Subject: [Gambas-user] System.Domain empty In-Reply-To: <200805151735.03734.gambas@...1...> References: <482C3331.90302@...1740...> <200805151735.03734.gambas@...1...> Message-ID: <482D44C6.10304@...1740...> Benoit Minisini schreef: > On jeudi 15 mai 2008, Ron wrote: > >> System.Domain is empty (none) on my system (Debian 4.0) gambas 2.6 >> >> hostname -f is giving correct fqdn >> >> Where should it be defined? >> >> Regards, >> Ron. >> >> > > The Linux man page are not very clear... > > Apparently, you have: > - A system host name. > - A system domain name, or DNS domain name. > - A NIS/YP domain name. > > hostname -f returns the third, but System.Domain uses the getdomainname() > system call that seems to return the second. > > Try "man hostname" to get more information. > > Regards, > > This is what I see.. so it looks like gambas is reading the NIS domain instead of the correct one (-d). Since (none) is what I see in gambas. Maybe hostname arguments are not the same on linux distros? ------------------------------------------------- ron at ...197...:~$ hostname -h Usage: hostname [-v] {hostname|-F file} set host name (from file) domainname [-v] {nisdomain|-F file} set NIS domain name (from file) hostname [-v] [-d|-f|-s|-a|-i|-y] display formated name hostname [-v] display host name hostname -V|--version|-h|--help print info and exit dnsdomainname=hostname -d, {yp,nis,}domainname=hostname -y -s, --short short host name -a, --alias alias names -i, --ip-address addresses for the host name -f, --fqdn, --long long host name (FQDN) -d, --domain DNS domain name -y, --yp, --nis NIS/YP domain name -F, --file read host name or NIS domain name from given file This command can get or set the host name or the NIS domain name. You can also get the DNS domain or the FQDN (fully qualified domain name). Unless you are using bind or NIS for host lookups you can change the FQDN (Fully Qualified Domain Name) and the DNS domain name (which is part of the FQDN) in the /etc/hosts file. -------------------------------------------- server:~$ hostname -d cyberjunky.nl server:~$ hostname -y (none) server:~$ hostname -f machine.cyberjunky.nl Gambas 2.6 on Debian 4.0 Regards, Ron From gambas at ...1... Fri May 16 10:46:03 2008 From: gambas at ...1... (Benoit Minisini) Date: Fri, 16 May 2008 10:46:03 +0200 Subject: [Gambas-user] Developing under AMD64 for x86 In-Reply-To: <8eb28a500805152339q21051a8r141e6110a52346a5@...627...> References: <688afe140805151233g254b799djd1b613182f06db99@...627...> <8eb28a500805152339q21051a8r141e6110a52346a5@...627...> Message-ID: <200805161046.03582.gambas@...1...> On vendredi 16 mai 2008, Jos? Luis Redrejo wrote: > I'm developing on amd64 since two months ago and all my gambas apps run on > x86 without any problem. > Cheers > Jos? L. > In other words, a Gambas project compiled on a 32 bits OS run on a 64 bits OS, and vice versa. Otherwise, there is a bug somewhere! Note that this is not 100% true for Gambas 2.x: if you use the EXTERN keyword, you will have to recompile the application. Regards, -- Benoit Minisini From gambas at ...1... Fri May 16 11:12:09 2008 From: gambas at ...1... (Benoit Minisini) Date: Fri, 16 May 2008 11:12:09 +0200 Subject: [Gambas-user] System.Domain empty In-Reply-To: <482D44C6.10304@...1740...> References: <482C3331.90302@...1740...> <200805151735.03734.gambas@...1...> <482D44C6.10304@...1740...> Message-ID: <200805161112.09671.gambas@...1...> On vendredi 16 mai 2008, Ron wrote: > Benoit Minisini schreef: > > On jeudi 15 mai 2008, Ron wrote: > >> System.Domain is empty (none) on my system (Debian 4.0) gambas 2.6 > >> > >> hostname -f is giving correct fqdn > >> > >> Where should it be defined? > >> > >> Regards, > >> Ron. > > > > The Linux man page are not very clear... > > > > Apparently, you have: > > - A system host name. > > - A system domain name, or DNS domain name. > > - A NIS/YP domain name. > > > > hostname -f returns the third, but System.Domain uses the getdomainname() > > system call that seems to return the second. > > > > Try "man hostname" to get more information. > > > > Regards, > > This is what I see.. so it looks like gambas is reading the NIS domain > instead of the correct one (-d). There is no "correct one". Gambas just uses the getdomainname() function that uses the uname() system call, and this system call returns what it returns. But you are right: I traced the "hostname" program with strace. When asking for the host name or the NIS/YP domain name, it uses the uname() system call. So if you want to get the FQDN, you have to run "hostname -f" by hand. Apparently there is no function in the C library to get this information, as it requires some heavy process. Regards, -- Benoit Minisini From eilert-sprachen at ...221... Fri May 16 11:26:36 2008 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Fri, 16 May 2008 11:26:36 +0200 Subject: [Gambas-user] TreeView does not expand In-Reply-To: <200805152100.35597.gambas@...1...> References: <482C68B0.8030405@...221...> <200805152100.35597.gambas@...1...> Message-ID: <482D534C.1000301@...221...> Benoit Minisini schrieb: > On jeudi 15 mai 2008, Rolf-Werner Eilert wrote: >> This is on Gambas 2.6 >> >> There is a TreeView, and I want the very first entry to expand. The rest >> may stay collapsed. The TreeView is called "baum" ;-) >> >> So I start like >> >> bild = Picture["Icons/16x16/folder_green.png"] >> baum.Add("CONTAINER", "Aktuelle Container", bild) >> baum.Current.Expanded = TRUE >> >> but it doesn't expand. >> >> On Gambas 1 this worked as expected. Is this a bug or a feature? >> >> Thanks for your ideas. >> >> Rolf >> > > Adding a treeview item does not make it "current" necessarily. But it should > move the internal cursor to the newly added item, so you must do: > > baum.Add("CONTAINER", "Aktuelle Container", bild) > baum.Item.Expanded = TRUE > > Another method: > > baum.Add("CONTAINER", "Aktuelle Container", bild).Expanded = True > > As Add() returns the newly created item (as specified in the documentation!) > > Regards, > Sorry, but this doesn't help either. Everything remains collapsed until you double-click it or click its + sign. Any other idea? Rolf From gambas at ...1... Fri May 16 11:45:34 2008 From: gambas at ...1... (Benoit Minisini) Date: Fri, 16 May 2008 11:45:34 +0200 Subject: [Gambas-user] TreeView does not expand In-Reply-To: <482D534C.1000301@...221...> References: <482C68B0.8030405@...221...> <200805152100.35597.gambas@...1...> <482D534C.1000301@...221...> Message-ID: <200805161145.34444.gambas@...1...> On vendredi 16 mai 2008, Rolf-Werner Eilert wrote: > Benoit Minisini schrieb: > > On jeudi 15 mai 2008, Rolf-Werner Eilert wrote: > >> This is on Gambas 2.6 > >> > >> There is a TreeView, and I want the very first entry to expand. The rest > >> may stay collapsed. The TreeView is called "baum" ;-) > >> > >> So I start like > >> > >> bild = Picture["Icons/16x16/folder_green.png"] > >> baum.Add("CONTAINER", "Aktuelle Container", bild) > >> baum.Current.Expanded = TRUE > >> > >> but it doesn't expand. > >> > >> On Gambas 1 this worked as expected. Is this a bug or a feature? > >> > >> Thanks for your ideas. > >> > >> Rolf > > > > Adding a treeview item does not make it "current" necessarily. But it > > should move the internal cursor to the newly added item, so you must do: > > > > baum.Add("CONTAINER", "Aktuelle Container", bild) > > baum.Item.Expanded = TRUE > > > > Another method: > > > > baum.Add("CONTAINER", "Aktuelle Container", bild).Expanded = True > > > > As Add() returns the newly created item (as specified in the > > documentation!) > > > > Regards, > > Sorry, but this doesn't help either. Everything remains collapsed until > you double-click it or click its + sign. > > > Any other idea? > > Rolf > > Note that if your item does not have any child, it will not expand. -- Benoit Minisini From eilert-sprachen at ...221... Fri May 16 11:56:50 2008 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Fri, 16 May 2008 11:56:50 +0200 Subject: [Gambas-user] TreeView does not expand In-Reply-To: <200805161145.34444.gambas@...1...> References: <482C68B0.8030405@...221...> <200805152100.35597.gambas@...1...> <482D534C.1000301@...221...> <200805161145.34444.gambas@...1...> Message-ID: <482D5A62.4060300@...221...> Benoit Minisini schrieb: > On vendredi 16 mai 2008, Rolf-Werner Eilert wrote: >> Benoit Minisini schrieb: >>> On jeudi 15 mai 2008, Rolf-Werner Eilert wrote: >>>> This is on Gambas 2.6 >>>> >>>> There is a TreeView, and I want the very first entry to expand. The rest >>>> may stay collapsed. The TreeView is called "baum" ;-) >>>> >>>> So I start like >>>> >>>> bild = Picture["Icons/16x16/folder_green.png"] >>>> baum.Add("CONTAINER", "Aktuelle Container", bild) >>>> baum.Current.Expanded = TRUE >>>> >>>> but it doesn't expand. >>>> >>>> On Gambas 1 this worked as expected. Is this a bug or a feature? >>>> >>>> Thanks for your ideas. >>>> >>>> Rolf >>> Adding a treeview item does not make it "current" necessarily. But it >>> should move the internal cursor to the newly added item, so you must do: >>> >>> baum.Add("CONTAINER", "Aktuelle Container", bild) >>> baum.Item.Expanded = TRUE >>> >>> Another method: >>> >>> baum.Add("CONTAINER", "Aktuelle Container", bild).Expanded = True >>> >>> As Add() returns the newly created item (as specified in the >>> documentation!) >>> >>> Regards, >> Sorry, but this doesn't help either. Everything remains collapsed until >> you double-click it or click its + sign. >> >> >> Any other idea? >> >> Rolf >> >> > > Note that if your item does not have any child, it will not expand. > Yes, logically! (In contrary to the old Gambas 1 behaviour, it seems) Now I found a solution: At the end of all adding items I jump back and expand it: baum.MoveFirst baum.item.Expanded = TRUE This way it'r running smoothly. Thanks Rolf From serif at ...1870... Fri May 16 13:08:15 2008 From: serif at ...1870... (Mike Brett) Date: Fri, 16 May 2008 12:08:15 +0100 Subject: [Gambas-user] ComboBox.Add method with index, fails In-Reply-To: <200805152200.44787.gambas@...1...> References: <482C6A7F.5000108@...1870...> <200805152200.44787.gambas@...1...> Message-ID: <482D6B1F.1040807@...1870...> Benoit Minisini wrote: > On jeudi 15 mai 2008, Mike Brett wrote: >> The syntax for this is given in the Help as >> >> SUB Add ( Item AS String [ , Index AS Integer ] ) >> >> When I try simply >> ComboBox.Add("some text") >> there are no errors. >> >> Whenever I try to add an index, such as >> ComboBox.Add("some text", 127) >> or even >> ComboBox.Add("some text", CInt(127)) >> >> I get >> QComboBox::insertItem: (unnamed) Index 127 out of range >> QComboBox::setCurrentItem: (unnamed) Index 0 out of range >> >> What am I doing wrong please? >> >> Thanks. >> >> - Mike Brett - (gambas 2.6.0 on Fedora 8) >> > > Maybe 127 is greater or equal to the number of items in the ComboBox? > I think I was expecting the combobox's index to be a handle pointing towards the entries, whereas it seems to be more of a direct sort order. That is, it seems you must have an index 0 entry before you add an index 1 entry; further additions must also be continguous. I had naively misinterpreted the part of the help instructions which reads:- "If Index is specified, then the new item is inserted at the Index position, 0 being the first item." I wanted to fill a combobox with text data, and hold associated primary key integers from a database as combobox indeces. The PK integers were unique but not in gap-free, ascending order. The combobox will not tolerate: * any looping .Add sequence where the index doesn't start at 0 * any gaps in the index sequence. So this works: FOR iC = 0 TO 20 Combobox.Add ("something", iC) NEXT but causes errors for FOR iC = 1 TO 20 Combobox.Add ("something", iC) NEXT and also for FOR iC = 0 TO 20 Combobox.Add ("something", iC) NEXT FOR iC = 30 TO 40 Combobox.Add ("something", iC) NEXT Somewhat unexpected to me this also fails Combobox.Add ("something", 1) Combobox.Add ("something", 0) If someone could please confirm this behaviour is all 'as intended' I'll move on and simply use an intersection table to map between the combobox index and my PKs. Thanks - Mike - From kazutaka802 at ...1907... Fri May 16 15:00:00 2008 From: kazutaka802 at ...1907... (HARADA Kazutaka) Date: Fri, 16 May 2008 22:00:00 +0900 Subject: [Gambas-user] Navigating through form object with the tab key In-Reply-To: <200805142252.02234.gambas@...1...> References: <1f1e8c1b0805121355j302a4185sa0165d5ed4de3f2@...627...> <200805130050.15554.gambas@...1...> <482AEC65.5090300@...1907...> <200805142252.02234.gambas@...1...> Message-ID: <482D8550.3050805@...1907...> Benoit Minisini wrote: >> I found a problem with Z-order. >> This works fine for gb.qt, but not for gb.gtk on gamba2-2.6.0 with gtk >> 2.12.9. >> > I fixed the bug in revison #1381. > Tanks! -- -------------------------------------- Kazutaka HARADA e-mail:kazutaka802 at ...1907... -------------------------------------- From sourceforge-raindog2 at ...94... Fri May 16 16:11:45 2008 From: sourceforge-raindog2 at ...94... (Rob) Date: Fri, 16 May 2008 10:11:45 -0400 Subject: [Gambas-user] System.Domain empty In-Reply-To: <200805161112.09671.gambas@...1...> References: <482C3331.90302@...1740...> <482D44C6.10304@...1740...> <200805161112.09671.gambas@...1...> Message-ID: <200805161011.46263.sourceforge-raindog2@...94...> On Friday 16 May 2008 05:12, Benoit Minisini wrote: > So if you want to get the FQDN, you have to run "hostname -f" by > hand. Apparently there is no function in the C library to get this > information, as it requires some heavy process. On my laptop, "hostname" and "hostname -f" print the same value, which does not include my domain, and even if it had given me the domain, the hostname plus the domain would not have resolved to anything because it's my router that has a hostname on the Internet, not my laptop. So, I don't know if even that's a reliable enough way of getting the FQDN. If you're connected directly to the net, you could get the machine's IP address and do a reverse DNS lookup. If not, maybe one of the "what is my IP" web sites has a web service you could use to get the "outside" IP and/or FQDN, assuming you're not behind a proxy as well. But I don't think it's something you can reliably get from the machine on which the program is running, because most machines aren't directly connected to the Internet anymore. Rob From gambas at ...1... Fri May 16 16:25:45 2008 From: gambas at ...1... (Benoit Minisini) Date: Fri, 16 May 2008 16:25:45 +0200 Subject: [Gambas-user] ComboBox.Add method with index, fails In-Reply-To: <482D6B1F.1040807@...1870...> References: <482C6A7F.5000108@...1870...> <200805152200.44787.gambas@...1...> <482D6B1F.1040807@...1870...> Message-ID: <200805161625.46088.gambas@...1...> On vendredi 16 mai 2008, Mike Brett wrote: > Benoit Minisini wrote: > > On jeudi 15 mai 2008, Mike Brett wrote: > >> The syntax for this is given in the Help as > >> > >> SUB Add ( Item AS String [ , Index AS Integer ] ) > >> > >> When I try simply > >> ComboBox.Add("some text") > >> there are no errors. > >> > >> Whenever I try to add an index, such as > >> ComboBox.Add("some text", 127) > >> or even > >> ComboBox.Add("some text", CInt(127)) > >> > >> I get > >> QComboBox::insertItem: (unnamed) Index 127 out of range > >> QComboBox::setCurrentItem: (unnamed) Index 0 out of range > >> > >> What am I doing wrong please? > >> > >> Thanks. > >> > >> - Mike Brett - (gambas 2.6.0 on Fedora 8) > > > > Maybe 127 is greater or equal to the number of items in the ComboBox? > > I think I was expecting the combobox's index to be a handle pointing > towards the entries, whereas it seems to be more of a direct sort order. > That is, it seems you must have an index 0 entry before you add an index > 1 entry; further additions must also be continguous. > > I had naively misinterpreted the part of the help instructions which > reads:- "If Index is specified, then the new item is inserted at the > Index position, 0 being the first item." > > I wanted to fill a combobox with text data, and hold associated primary > key integers from a database as combobox indeces. The PK integers were > unique but not in gap-free, ascending order. > > The combobox will not tolerate: > * any looping .Add sequence where the index doesn't start at 0 > * any gaps in the index sequence. > > So this works: > > FOR iC = 0 TO 20 > Combobox.Add ("something", iC) > NEXT > > but causes errors for > > FOR iC = 1 TO 20 > Combobox.Add ("something", iC) > NEXT > > and also for > > FOR iC = 0 TO 20 > Combobox.Add ("something", iC) > NEXT > FOR iC = 30 TO 40 > Combobox.Add ("something", iC) > NEXT > > Somewhat unexpected to me this also fails > > Combobox.Add ("something", 1) > Combobox.Add ("something", 0) > > If someone could please confirm this behaviour is all 'as intended' I'll > move on and simply use an intersection table to map between the combobox > index and my PKs. > > Thanks - Mike - > It is intended. The ListBox control works the same way. -- Benoit Minisini From ron at ...1740... Fri May 16 23:18:02 2008 From: ron at ...1740... (Ron) Date: Fri, 16 May 2008 23:18:02 +0200 Subject: [Gambas-user] translate bit manip from vb to gambas Message-ID: <482DFA0A.4070501@...1740...> Hi, I'm kinda stuck in translating this VB snippet -- IF (recbits AND &H7) = 0 THEN recbytes = ((recbits AND &H7F) > > 3) ELSE recbytes = ((recbits AND &H7F) > > 3) + 1 END IF -- How to deal with the >>'s ? What is the gambas equivalent of this bit manip? Thanks a ton in advance! Regards, Ron. From lordheavym at ...626... Fri May 16 22:42:04 2008 From: lordheavym at ...626... (Laurent Carlier) Date: Fri, 16 May 2008 22:42:04 +0200 Subject: [Gambas-user] translate bit manip from vb to gambas In-Reply-To: <482DFA0A.4070501@...1740...> References: <482DFA0A.4070501@...1740...> Message-ID: <200805162242.04896.lordheavym@...626...> Le Friday 16 May 2008 23:18:02 Ron, vous avez ?crit?: > Hi, > > I'm kinda stuck in translating this VB snippet > -- > IF (recbits AND &H7) = 0 THEN > recbytes = ((recbits AND &H7F) > > 3) > ELSE > recbytes = ((recbits AND &H7F) > > 3) + 1 > END IF > -- > > How to deal with the >>'s ? > > What is the gambas equivalent of this bit manip? > > Thanks a ton in advance! > > Regards, > Ron. Take a look at: http://64.128.110.55/help/cat/bit ++ From ron at ...1740... Sat May 17 00:35:39 2008 From: ron at ...1740... (Ron) Date: Sat, 17 May 2008 00:35:39 +0200 Subject: [Gambas-user] translate bit manip from vb to gambas In-Reply-To: <200805162242.04896.lordheavym@...626...> References: <482DFA0A.4070501@...1740...> <200805162242.04896.lordheavym@...626...> Message-ID: <482E0C3B.7020205@...1740...> Laurent Carlier schreef: > Le Friday 16 May 2008 23:18:02 Ron, vous avez ?crit : > >> Hi, >> >> I'm kinda stuck in translating this VB snippet >> -- >> IF (recbits AND &H7) = 0 THEN >> recbytes = ((recbits AND &H7F) > > 3) >> ELSE >> recbytes = ((recbits AND &H7F) > > 3) + 1 >> END IF >> -- >> >> How to deal with the >>'s ? >> >> What is the gambas equivalent of this bit manip? >> >> Thanks a ton in advance! >> >> Regards, >> Ron. >> > > Take a look at: > http://64.128.110.55/help/cat/bit > > Thanks, overlooked it somehow. It works now. Regards, Ron. From md9327 at ...120... Sat May 17 04:25:14 2008 From: md9327 at ...120... (Luigi Carlotto) Date: Sat, 17 May 2008 04:25:14 +0200 Subject: [Gambas-user] "Gambas packaging how to" updated again In-Reply-To: <200805141401.12693.gambas@...1...> References: <200805141401.12693.gambas@...1...> Message-ID: <1210991114.26136.4.camel@...1911...> Thank you for your mail, I have already taken steps to fix my script creation for the package Examples. Unfortunately, I am having problems to create the package Help, because of a problem with the program bzip, which causes errors when the file name contains non-alphanumeric characters (eg []). To use the script bash, but I also tried to create a script in python that, however, has other types of problem. You are aware of a similar problem? Hello Luigi Carlotto Il giorno mer, 14/05/2008 alle 14.01 +0200, Benoit Minisini ha scritto: > Hi, > > This message is for the Gambas packager! > > I fixed the packaging how to again: now the help files are distributed in > their own packages, as they take some place on the hard disk. I made a list > of the files that must be packages, because some files are incorrectly > installed at the moment. > > The specification for the example package has been fixed too. > > Regards, > From serif at ...1870... Sat May 17 16:47:35 2008 From: serif at ...1870... (Mike Brett) Date: Sat, 17 May 2008 15:47:35 +0100 Subject: [Gambas-user] This project seems to be already open Message-ID: <482EF007.1000908@...1870...> I'm doing a lot of jumping around between example projects at the moment as I compare techniques. Since there is no menu option for "Close Project", I presume that when you open one project the previous one is always closed? From time to time, I get a "This project seems to be already open" message when opening a project. I can't find a consistent pattern to this - it seems pretty random. However, I've just had one on opening the first project after a system rebooting, which seems a bit odd...... BTW, this is with one instance of gambas open, in case you were wondering! :) Thanks. - Mike Brett - (gambas 2.6.0 on Fedora 8) From serif at ...1870... Sat May 17 18:20:28 2008 From: serif at ...1870... (Mike Brett) Date: Sat, 17 May 2008 17:20:28 +0100 Subject: [Gambas-user] qt, gtk, Gridview confusion ..... Message-ID: <482F05CC.9050802@...1870...> More elementary questions I'm afraid.... 1. I note that when starting a new project in 2.6.0 you are given options to set either the qt or gtk application framework. I've opened what was obviously a gtk project from a much earlier gambas version, and it's gtk. I'd prefer the qt look. Should I be able merely to select the qt component(s) from the Project->Component tab (as long as I comply with any conflict messages that are given)? Or is it more complicated than that? I ask because I get error messages after trying such a change, and wondered whether that was 'normal'. 2. There are separate documentation entries for GridView (gtk) (http://gambasdoc.org/help/comp/gb.qt/gridview) and GridView (qt) (http://gambasdoc.org/help/comp/gb.gtk.ext/gridview?show); the latter page itself also contains a screenshot. Screenshots are attached as gtkhelp.png and qthelp.png respectively. I've also attached a screenshot of my 2.6.0. IDE. There seems to be some inconsistency between the properties listed across these sources of information, even inside the same application frameworks. Does the IDE offer only a subset of the available properties? What is the logic at work here please? :) Thank you. - Mike Brett - (gambas 2.6.0 on Fedora 8) -------------- next part -------------- A non-text attachment was scrubbed... Name: gtkhelp.png Type: image/png Size: 23099 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: qthelp.png Type: image/png Size: 38701 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: 2.6IDE.png Type: image/png Size: 12716 bytes Desc: not available URL: From notorious at ...606... Sun May 18 13:26:44 2008 From: notorious at ...606... (Rory Verleysen) Date: Sun, 18 May 2008 13:26:44 +0200 Subject: [Gambas-user] Xml Problem/?Bug? Message-ID: <200805181326.45319.notorious@...606...> Hi I'm trying to write a simple rss parser and running in to some problems. I'm running debian with gambas 2.5.0 rss file used is from news.yahoo.com - Reading the file: all goes fine DIM xmlDoc AS XmlDocument xmldoc = NEW XmlDocument xmldoc.Open(strFileName) - reading topnode: all goes fine eg: if xmldoc.root.name = "rss" then ... - assigning to seperate node: all goes fine Dim xmlNod as XmlNode xmlNod = xmldoc.Root IF xmlNod.Name = "rss" THEN - xmldoc.root.value returns whole file contents (without ) - reading or assigning a childnode: doesn't work <<<<<------------ DIM xmlNod as XmlNode FOR i = 0 TO xmldoc.Root.Children.Count - 1 xmlNod = xmldoc.Root.Children[i] PRINT Message.Info(xmlNod.Name) 'OR PRINT Message.Info(xmldoc.Root.Children[i].Name) NEXT the above throws an "invalid object" error Could someone please inform what i'm doing wrong? Thanks in advance Notorious From Karl.Reinl at ...9... Sun May 18 14:26:50 2008 From: Karl.Reinl at ...9... (Charlie Reinl) Date: Sun, 18 May 2008 14:26:50 +0200 Subject: [Gambas-user] article in Linux-User Mag. 06/2008 Message-ID: <1211113610.16391.8.camel@...40...> Salut, about an article in Linux-User Mag. 06/2008. The 4 pages article is very positive, the steps from 2.0 to 2.5 ware very quickly, runs native on 64-bit systems, debug / database connections / GTK / QT. At the moment there is only a lack of adequate gambas documentation. I attached you the contents of the CD (in LinuxUser/gambas). -- Amicalment Charlie -------------- next part -------------- A non-text attachment was scrubbed... Name: Linux User 06-2008.tar.bz2 Type: application/x-bzip-compressed-tar Size: 129779 bytes Desc: not available URL: From charles at ...1784... Sun May 18 15:51:16 2008 From: charles at ...1784... (charlesg) Date: Sun, 18 May 2008 06:51:16 -0700 (PDT) Subject: [Gambas-user] Generating EAN13 barcodes Message-ID: <17303208.post@...1379...> Firstly, a thank you to Benoit and all involved with the development of Gambas. I am not a professional programmer (as the following shows!) and have had to adjust to the inevitable differences between the presentation of commercial and 'for-the-love-of-it' software. Having said that, I really do like Gambas: it is my kind of software. Here is a module to print EAN-13 barcodes from first principles. I wrote it because I could not get scannable results using the available ttf fonts. In this demonstration, the barcode module is called by a simple FMain which will print the resultant barcode on the screen or on a default printer. The logic comes (as does the meaning of life itself) from Wikipedia (http://en.wikipedia.org/wiki/European_Article_Number). I have not checked the array data against the Wikipedia article as well as I should. Please check. http://www.nabble.com/file/p17303208/barcode-0.0.3.tar.gz barcode-0.0.3.tar.gz -- View this message in context: http://www.nabble.com/Generating-EAN13-barcodes-tp17303208p17303208.html Sent from the gambas-user mailing list archive at Nabble.com. From jclevien at ...626... Sun May 18 16:32:21 2008 From: jclevien at ...626... (Juan Jose Costello Levien) Date: Sun, 18 May 2008 11:32:21 -0300 Subject: [Gambas-user] Merge Gambas Forums / Gambas in Windows Message-ID: Hello, I am a bit confused about the Gambas forum quantity out there; (gambasrad, linuxbasic, gambasforum.tk....). How could be merged all the posts in all forums and consolidate them in one place? Because generally you have to register in every forum, remember all passwords... Imagine if you create a program to collect all the posts in all forums; you can search everything in one place, post in any forum that everybody will see it, and so on (maybe it is already made, but which is? I don't know any, just web spiders). Just an idea. About running Gambas in Windows, for the ones that don't know, there is andLinux (http://www.andlinux.org), so you can install gambas runtime and deploy your programs in Windows machines. Note: it does not work inside VirtualBox machines, it simply hangs the machine, but in real ones is OK. -- Juan Jose Costello Levien jclevien at ...626... From dcamposf at ...626... Sun May 18 20:29:42 2008 From: dcamposf at ...626... (Daniel Campos) Date: Sun, 18 May 2008 20:29:42 +0200 Subject: [Gambas-user] Merge Gambas Forums / Gambas in Windows In-Reply-To: References: Message-ID: <7259b5ae0805181129t5f875c2cjf931b209c888ddbd@...627...> Hi: > > I am a bit confused about the Gambas forum quantity out there; (gambasrad, > linuxbasic, gambasforum.tk....). > How could be merged all the posts in all forums and consolidate them in one > place? Because generally you have to register in every forum, remember all > passwords... > Yes, there must be just a forum about Perl, a forum about C and a forum about C++, let's do it! :-))) > > > Just an idea. > > About running Gambas in Windows, for the ones that don't know, there is > andLinux (http://www.andlinux.org), so you can install gambas runtime and > deploy your programs in Windows machines. > > We talked about that a time ago, look at the gambas list archives Daniel From PxPert at ...626... Sun May 18 20:35:00 2008 From: PxPert at ...626... (PxPert) Date: Sun, 18 May 2008 20:35:00 +0200 Subject: [Gambas-user] Extended selection in columnview Message-ID: <200805182035.00578.PxPert@...626...> Hi to all! I'm making a new project and i need to use the (now removed) mode extended to the columnview items. How can i replicate that mode now? Thanks! From jclevien at ...626... Sun May 18 21:09:38 2008 From: jclevien at ...626... (Juan Jose Costello Levien) Date: Sun, 18 May 2008 16:09:38 -0300 Subject: [Gambas-user] Merge Gambas Forums / Gambas in Windows In-Reply-To: <7259b5ae0805181129t5f875c2cjf931b209c888ddbd@...627...> References: <7259b5ae0805181129t5f875c2cjf931b209c888ddbd@...627...> Message-ID: Daniel, For the tone of your response, I assume you are being ironic. Seriously, I don't know how huge is the Gambas community. I do know that C and C++ are well known languages, with masses behind them, so an alone forum would be senseless, but in the Gambas case, I always thought about a young community with a growing number of people... And speaking about popularity, is Gambas being used in big companies? I mean, I used it for my own projects, and zero problems up to now, but what if I have to recommend it to a company? Or choose a language for critical projects? About the andLinux discussion: I will check it out, thanks. Juan On Sun, May 18, 2008 at 3:29 PM, Daniel Campos wrote: > Hi: > > > > > > I am a bit confused about the Gambas forum quantity out there; > (gambasrad, > > linuxbasic, gambasforum.tk....). > > How could be merged all the posts in all forums and consolidate them in > one > > place? Because generally you have to register in every forum, remember > all > > passwords... > > > > Yes, there must be just a forum about Perl, a forum about C and a forum > about C++, let's do it! :-))) > > > > > > > > > Just an idea. > > > > About running Gambas in Windows, for the ones that don't know, there is > > andLinux (http://www.andlinux.org), so you can install gambas runtime > and > > deploy your programs in Windows machines. > > > > > We talked about that a time ago, look at the gambas list archives > > Daniel > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Juan Jose Costello Levien jclevien at ...626... From sourceforge-raindog2 at ...94... Sun May 18 21:19:02 2008 From: sourceforge-raindog2 at ...94... (Rob) Date: Sun, 18 May 2008 15:19:02 -0400 Subject: [Gambas-user] Merge Gambas Forums / Gambas in Windows In-Reply-To: References: Message-ID: <200805181519.02273.sourceforge-raindog2@...94...> On Sunday 18 May 2008 10:32, Juan Jose Costello Levien wrote: > I am a bit confused about the Gambas forum quantity out there; > (gambasrad, linuxbasic, gambasforum.tk....). > How could be merged all the posts in all forums and consolidate > them in one place? Because generally you have to register in every > forum, remember all passwords... Well, that's why there's this mailing list. This (and gambas-devel) were the original lists started to support Gambas, and those forums were all started by other people because they disliked mailing lists. I guess you could email them and ask that they shut down their forums and send their users here, but if you received such a request, how would you react? LinuxBasic originally covered other BASIC variants for Linux too, it's just that Gambas is kind of the "last man standing:" Kbasic and Hbasic and Xbasic seem to all have died and Mono Basic, even if it were ready for prime time, is not really safe for anyone but Novell to use thanks to their deal with Microsoft. > Imagine if you create a program to collect all the posts in all > forums; you can search everything in one place, post in any forum > that everybody will see it, and so on (maybe it is already made, > but which is? I don't know any, just web spiders). Google does index gambasforum.tk (or rather, forum.stormweb.no) and linuxbasic.net, I don't know about gambasrad.org, but last I checked, the vast bulk of its forum was just a copy of this mailing list anyway. > About running Gambas in Windows, for the ones that don't know, > there is andLinux (http://www.andlinux.org), so you can install > gambas runtime and deploy your programs in Windows machines. I've found that even having Cygwin installed is too much for most people, so installing an entire operating system in a virtual machine is really a last-resort kind of situation. But for evaluation purposes (or Gambas development when you can't boot into Linux) it should be okay. Rob From jclevien at ...626... Sun May 18 21:27:41 2008 From: jclevien at ...626... (Juan Jose Costello Levien) Date: Sun, 18 May 2008 16:27:41 -0300 Subject: [Gambas-user] Merge Gambas Forums / Gambas in Windows In-Reply-To: <200805181519.02273.sourceforge-raindog2@...94...> References: <200805181519.02273.sourceforge-raindog2@...94...> Message-ID: Hello Rob, Thank you for your kind answer, and sorry for my ignorance about the topic. I am not used to post much or write to lots of lists. Oh, and just in case it would be useful for someone, I posted a small code in one forum about a routine that sorts a TableView by any column you click, in ascending or descending form, and contemplate if a column is numeric or not, so it sorts the table as expected. Do you think it would be good to post it here, or there is a special place to do it? (Sorry about this, I am fairly new to the Gambas world, as you can see... :) Thanks. Juan On Sun, May 18, 2008 at 4:19 PM, Rob wrote: > On Sunday 18 May 2008 10:32, Juan Jose Costello Levien wrote: > > I am a bit confused about the Gambas forum quantity out there; > > (gambasrad, linuxbasic, gambasforum.tk....). > > How could be merged all the posts in all forums and consolidate > > them in one place? Because generally you have to register in every > > forum, remember all passwords... > > Well, that's why there's this mailing list. This (and gambas-devel) > were the original lists started to support Gambas, and those forums > were all started by other people because they disliked mailing lists. > I guess you could email them and ask that they shut down their forums > and send their users here, but if you received such a request, how > would you react? > > LinuxBasic originally covered other BASIC variants for Linux too, it's > just that Gambas is kind of the "last man standing:" Kbasic and > Hbasic and Xbasic seem to all have died and Mono Basic, even if it > were ready for prime time, is not really safe for anyone but Novell > to use thanks to their deal with Microsoft. > > > Imagine if you create a program to collect all the posts in all > > forums; you can search everything in one place, post in any forum > > that everybody will see it, and so on (maybe it is already made, > > but which is? I don't know any, just web spiders). > > Google does index gambasforum.tk (or rather, forum.stormweb.no) and > linuxbasic.net, I don't know about gambasrad.org, but last I checked, > the vast bulk of its forum was just a copy of this mailing list > anyway. > > > About running Gambas in Windows, for the ones that don't know, > > there is andLinux (http://www.andlinux.org), so you can install > > gambas runtime and deploy your programs in Windows machines. > > I've found that even having Cygwin installed is too much for most > people, so installing an entire operating system in a virtual machine > is really a last-resort kind of situation. But for evaluation > purposes (or Gambas development when you can't boot into Linux) it > should be okay. > > Rob > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Juan Jose Costello Levien jclevien at ...626... From ron at ...1740... Sun May 18 21:34:45 2008 From: ron at ...1740... (Ron) Date: Sun, 18 May 2008 21:34:45 +0200 Subject: [Gambas-user] double free or corruption Message-ID: <483084D5.3060807@...1740...> This line: DIM axbData[2] AS Byte Results in Signal #6 and *** glibc detected *** double free or corruption (fasttop): 0x0808fb20 *** in console Gambas 2.6 Regards, Ron. From horechuk at ...981... Sun May 18 22:04:58 2008 From: horechuk at ...981... (Paul Horechuk) Date: Sun, 18 May 2008 16:04:58 -0400 Subject: [Gambas-user] Date formats Message-ID: <200805181604.58233.horechuk@...981...> Is there a way to set the way the Date command interprets a string argument? In other words: If I say ? Date("05/15/08"), I get 15/05/08 If instead I say ? Date("15/05/08", I get an error: Type mismatch: wanted Date, got String instead. This appears to be a little counter-intuitive. I'm looking for a setting such as DATEFORMAT=DMY. Is there such a setting for GAMBAS? I'm using Gambas3 on a Kubuntu/Feisty 64 bit. $LANG is set to en_CA.UTF-8. -- -- Paul Horechuk Think Free Use Open Source Software From jclevien at ...626... Sun May 18 22:27:07 2008 From: jclevien at ...626... (Juan Jose Costello Levien) Date: Sun, 18 May 2008 17:27:07 -0300 Subject: [Gambas-user] Date formats In-Reply-To: <200805181604.58233.horechuk@...981...> References: <200805181604.58233.horechuk@...981...> Message-ID: Hello Paul, I suppose you are looking for CDate? ( http://gambasdoc.org/help/lang/cdate?v3) Juan On Sun, May 18, 2008 at 5:04 PM, Paul Horechuk wrote: > Is there a way to set the way the Date command interprets a string > argument? > In other words: If I say > ? Date("05/15/08"), I get 15/05/08 > If instead I say > ? Date("15/05/08", I get an error: > Type mismatch: wanted Date, got String instead. > This appears to be a little counter-intuitive. > I'm looking for a setting such as DATEFORMAT=DMY. Is there such a setting > for > GAMBAS? > I'm using Gambas3 on a Kubuntu/Feisty 64 bit. > $LANG is set to en_CA.UTF-8. > -- > -- Paul Horechuk > Think Free > Use Open Source Software > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Juan Jose Costello Levien jclevien at ...626... From dcamposf at ...626... Mon May 19 00:05:57 2008 From: dcamposf at ...626... (Daniel Campos) Date: Mon, 19 May 2008 00:05:57 +0200 Subject: [Gambas-user] Merge Gambas Forums / Gambas in Windows In-Reply-To: References: <7259b5ae0805181129t5f875c2cjf931b209c888ddbd@...627...> Message-ID: <7259b5ae0805181505r1cc2413dr33c07db50cad6cac@...627...> Hi: For the tone of your response, I assume you are being ironic. > Seriously, I don't know how huge is the Gambas community. I do know that C > and C++ are well known languages, with masses behind them, so an alone > forum > would be senseless, but in the Gambas case, I always thought about a young > community with a growing number of people... The problem is that you (a generic you) can not force things to happen in a concrete way when talking about free software, the spirit of free software is just "customize it as you want", and that includes the different projects about documentation, forums, etc. Anyone is free to create new forums, free to think that their propposal is the best way to handle it, and only "natural selection" can determine if one day they will join, there will be a winner in a contest or whatever. Trying to force things to happen is just an useless effort, that's why I was ironic. > And speaking about popularity, is Gambas being used in big companies? I > mean, I used it for my own projects, and zero problems up to now, but what > if I have to recommend it to a company? Or choose a language for critical > projects? > Well, here the Extremadura government is using it in about 80.000 computers, and I know about companies here that are using it too. In Southamerica some people are migrating VB programs to Linux environments thanks to Gambas too. Anyway it depends on the kind of companies you work in/for. Some of them are willing to use new technologies proposed by their workers, and some of them reject any new thing that do not include the trademark of big companies. Here in Extremadura, too, I know about companies that only want to know about "Java", "IBM support", "Mono-Novell", and are using those bloated environments to create small applications wasting hundred of thousands of euros just because they have a well-known trademark as if they were buying Nike sport shoes. So basically, Gambas2 is ready, but some managers are not. Daniel From jclevien at ...626... Mon May 19 03:26:02 2008 From: jclevien at ...626... (Juan Jose Costello Levien) Date: Mon, 19 May 2008 02:26:02 +0100 Subject: [Gambas-user] Merge Gambas Forums / Gambas in Windows In-Reply-To: <7259b5ae0805181505r1cc2413dr33c07db50cad6cac@...627...> References: <7259b5ae0805181129t5f875c2cjf931b209c888ddbd@...627...> <7259b5ae0805181505r1cc2413dr33c07db50cad6cac@...627...> Message-ID: Hello Daniel, OK, I understand. As I see the spirit of free software, like you described, then, why not build simply a "forum-mailing list" search engine, and let anybody login to whatever forum he/she likes to? That way, we preserve everybody's choice of posting and add a free service to the community. To begin with, I will choose the main sources of postings, like this list archives plus 2 or 3 forums, and optionally a "code collector", to maintain Gambas snippets. By the way, I am working in an idea to implement such engine. When it's finished, I will adapt it to host the engine. Oh, it would be nice as a Gambas propaganda to have a complete list of "big users" like the Extremadura government inside it... :) Thank you for your answer. Juan On Sun, May 18, 2008 at 11:05 PM, Daniel Campos wrote: > Hi: > > For the tone of your response, I assume you are being ironic. > > Seriously, I don't know how huge is the Gambas community. I do know that > C > > and C++ are well known languages, with masses behind them, so an alone > > forum > > would be senseless, but in the Gambas case, I always thought about a > young > > community with a growing number of people... > > > The problem is that you (a generic you) can not force things to happen in a > concrete way when talking about free software, the spirit of free software > is just "customize it as you want", and that includes the different > projects > about documentation, forums, etc. Anyone is free to create new forums, free > to think that their propposal is the best way to handle it, and only > "natural selection" can determine if one day they will join, there will be > a > winner in a contest or whatever. Trying to force things to happen is just > an > useless effort, that's why I was ironic. > > > > And speaking about popularity, is Gambas being used in big companies? I > > mean, I used it for my own projects, and zero problems up to now, but > what > > if I have to recommend it to a company? Or choose a language for critical > > projects? > > > > > Well, here the Extremadura government is using it in about 80.000 > computers, > and I know about companies here that are using it too. In Southamerica some > people are migrating VB programs to Linux environments thanks to Gambas > too. > > Anyway it depends on the kind of companies you work in/for. Some of them > are > willing to use new technologies proposed by their workers, and some of them > reject any new thing that do not include the trademark of big companies. > Here in Extremadura, too, I know about companies that only want to know > about "Java", "IBM support", "Mono-Novell", and are using those bloated > environments to create small applications wasting hundred of thousands of > euros just because they have a well-known trademark as if they were buying > Nike sport shoes. So basically, Gambas2 is ready, but some managers are > not. > > > > > Daniel > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Juan Jose Costello Levien jclevien at ...626... From ron at ...1740... Mon May 19 12:01:33 2008 From: ron at ...1740... (Ron) Date: Mon, 19 May 2008 12:01:33 +0200 Subject: [Gambas-user] searching sunset/sunrise function Message-ID: <48314FFD.10701@...1740...> Hi, Does anybody know if a sunset/sunrise calculator functions/snippet in gambas exists by any chance? I have found some vb and vbscript snippets, but porting them is not easy, or they give wrong results. Regards, Ron. From horechuk at ...981... Mon May 19 15:43:26 2008 From: horechuk at ...981... (Paul Horechuk) Date: Mon, 19 May 2008 09:43:26 -0400 Subject: [Gambas-user] Date formats In-Reply-To: References: <200805181604.58233.horechuk@...981...> Message-ID: <200805190943.26458.horechuk@...981...> On May 18, 2008 04:27:07 pm Juan Jose Costello Levien wrote: > Hello Paul, > > I suppose you are looking for CDate? ( > http://gambasdoc.org/help/lang/cdate?v3) Unfortunately, CDate behaves the same as Date, in the previous examples. CDate("05/15/08") --> 15/05/08 CDate("15/05/08") --> Type mismatch: wanted Date, got String instead I would expect the passed format of mm/dd/yy to return mm/dd/yy and not dd/mm/yy. If not then there should be a control for the order. > > > Juan > > On Sun, May 18, 2008 at 5:04 PM, Paul Horechuk wrote: > > Is there a way to set the way the Date command interprets a string > > argument? > > In other words: If I say > > ? Date("05/15/08"), I get 15/05/08 > > If instead I say > > ? Date("15/05/08", I get an error: > > Type mismatch: wanted Date, got String instead. > > This appears to be a little counter-intuitive. > > I'm looking for a setting such as DATEFORMAT=DMY. Is there such a setting > > for > > GAMBAS? > > I'm using Gambas3 on a Kubuntu/Feisty 64 bit. > > $LANG is set to en_CA.UTF-8. > > -- > > -- Paul Horechuk > > Think Free > > Use Open Source Software > > > > ------------------------------------------------------------------------- > > This SF.net email is sponsored by: Microsoft > > Defy all challenges. Microsoft(R) Visual Studio 2008. > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user -- -- Paul Horechuk Think Free Use Open Source Software From ron at ...1740... Mon May 19 16:39:33 2008 From: ron at ...1740... (Ron) Date: Mon, 19 May 2008 16:39:33 +0200 Subject: [Gambas-user] searching sunset/sunrise function In-Reply-To: <48314FFD.10701@...1740...> References: <48314FFD.10701@...1740...> Message-ID: <48319125.6080109@...1740...> Ron schreef: > Hi, > > Does anybody know if a sunset/sunrise calculator functions/snippet in > gambas exists by any chance? > > I have found some vb and vbscript snippets, but porting them is not > easy, or they give wrong results. > > Regards, > Ron. > > Ok replying to my own question. I found this http://www.drbeat.li/php/source.php?src=php/sunrise.inc.php And hacked together this code: ---------- ' Gambas module file PUBLIC FUNCTION CalcSunTimes(lon AS Float, lat AS Float, timezone AS Float, isRise AS Boolean) DIM a, b, c, d, e, f, g, j, k, l, m, p, q, R, s, t, u, v AS Float DIM yday, ihour, imin, isec AS Integer 'twilight setting 'effective' => -0.0145439 (sunrise/sunset) 'civil' => -0.104528 (civil twilight) 'nautical' => -0.207912 (nautical twilight) 'astronomical' => -0.309017 (astronomical twilight) R = -0.0145439 'multiples of Pi a = 0.5 * Pi b = Pi c = 1.5 * Pi d = 2 * Pi 'convert coordinates and timezone to radians e = lat * b / 180 f = lon * b / 180 g = timezone * d / 24 'sunrise j = IIf(isRise, a, c) 'calculate day of year yday = DateDiff("01/01/" & Year(Now()), Now(), gb.day) k = yday + (j - f) / d l = k * 0.017202 - 0.0574039 'solar mean anomoly m = l + 0.0334405 * Sin(l) 'solar true longitude m += 4.93289 + 3.49066E-4 * Sin(2 * l) 'quadrant determination m = norm(m, d) IF ((m / a) - CInt(m / a) == 0) THEN m += 4.84814E-6 p = Sin(m) / Cos(m) 'solar right ascension p = ATan2(0.91746 * p, 1) END IF 'quadrant adjustment IF (m > c) p += d ELSE IF (m > a) p += b END IF q = 0.39782 * Sin(m) 'solar declination q /= Sqr(- q * q + 1) q = ATan2(q, 1) s = R - Sin(q) * Sin(e) s /= Cos(q) * Cos(e) IF (Abs(s) > 1) THEN PRINT "(Midnight Sun)" s /= Sqr(- s * s + 1) s = a - ATan2(s, 1) IF (isRise) THEN s = d - s t = s + p - 0.0172028 * k - 1.73364 'local apparent time u = t - f 'universal time v = u + g 'wall clock time 'quadrant Determination v = norm(v, d) 'scale from radians to hours v *= 24 / d 'local time ihour = CInt(v) iMin = CInt((v - ihour) * 60) IF isRise THEN PRINT "Sunrise at "; ELSE PRINT "Sunset at "; END IF PRINT Format(ihour, "##") & ":" & Format(imin, "0#") END FUNCTION norm(a AS Float, b AS Float) AS Float WHILE (a < 0) a += b WEND WHILE (a >= b) a -= b WEND RETURN a END ------------------ From leonardo at ...1237... Mon May 19 17:10:39 2008 From: leonardo at ...1237... (Leonardo Miliani) Date: Mon, 19 May 2008 17:10:39 +0200 Subject: [Gambas-user] searching sunset/sunrise function In-Reply-To: <48314FFD.10701@...1740...> References: <48314FFD.10701@...1740...> Message-ID: <4831986F.10201@...1237...> Ron ha scritto: > Hi, > > Does anybody know if a sunset/sunrise calculator functions/snippet in > gambas exists by any chance? > > I have found some vb and vbscript snippets, but porting them is not > easy, or they give wrong results. > > Regards, > Ron. > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > A (very) lot of years ago I made a program that calulated several Sun datas (I'm an astronomy lover). If you have time to loose translating it from italian and from GW-BASIC.... ;-) -- Ciao. Leo. Web: www.leonardomiliani.com E-mail: leonardo at ...1237... Scegli software opensource - Choose opensource software Co-fondatore di Gambas-it.org Il sito di riferimento della comunit? italiana degli utenti di Gambas www.gambas-it.org -------------- next part -------------- A non-text attachment was scrubbed... Name: SOLEA.BAS.tar.bz2 Type: application/x-bzip Size: 4764 bytes Desc: not available URL: From douggack at ...67... Mon May 19 17:43:01 2008 From: douggack at ...67... (Doug Gack) Date: Mon, 19 May 2008 08:43:01 -0700 Subject: [Gambas-user] Gambas "Best Practices" Message-ID: Background: I am an independent software developer, primarily providing custom business applications to small businesses. I do most of my work in M$ Access, but also some in PHP and ASP Internet forms. (After programming for 40+ years, another language is easier to learn than the first few.) I've been looking for a couple of years for a way to do the same thing in Linux, and it looks like I've finally found it. Thank you. Gambas! I just completed a conversion of a (tiny) application from Access/ASP to Gambas/MySql/PHP, and it works just fine, thank you very much! Except.... As when learning any new environment, there's a prolonged period of developing a "style" for the environment. I started off trying to create a "Graphical" application, not knowing any better, and soon (well, not so soon, actually) realized that a "QT Application" would give me a lot better user environment. That's just one of the bumps encountered on the road, but I got it to work, so I'm better for the experience. Question is, what can anyone tell me about better ways to approach the subject? Some starter questions: - Which graphical environment, and why? - I've been spoiled by Access's methods with combo boxes, and it's become my most used way of looking up data. If I want to find "Smith, John", I start typing "smi...", and soon his name pops up. Looks like Linux subscribes to the browser forms method of only using only the first letter out of a list. I type "S" and get "Sa...", then type "m" and get "Ma...". When I have a list with 15 or 20 thousand names, this won't do. How have others solved this issue? Any starter suggestions? TIA, Doug Doug Gack Homepage: http://dgack.selfip.com _________________________________________________________________ E-mail for the greater good. Join the i?m Initiative from Microsoft. http://im.live.com/Messenger/IM/Join/Default.aspx?source=EML_WL_ GreaterGood From gambas at ...1... Mon May 19 18:34:53 2008 From: gambas at ...1... (Benoit Minisini) Date: Mon, 19 May 2008 18:34:53 +0200 Subject: [Gambas-user] Date formats In-Reply-To: <200805190943.26458.horechuk@...981...> References: <200805181604.58233.horechuk@...981...> <200805190943.26458.horechuk@...981...> Message-ID: <200805191834.53403.gambas@...1...> On lundi 19 mai 2008, Paul Horechuk wrote: > On May 18, 2008 04:27:07 pm Juan Jose Costello Levien wrote: > > Hello Paul, > > > > I suppose you are looking for CDate? ( > > http://gambasdoc.org/help/lang/cdate?v3) > > Unfortunately, CDate behaves the same as Date, in the previous examples. > CDate("05/15/08") --> 15/05/08 > CDate("15/05/08") --> Type mismatch: wanted Date, got String instead > > I would expect the passed format of mm/dd/yy to return mm/dd/yy and not > dd/mm/yy. If not then there should be a control for the order. > There are three possibilites : 1) You don't care with the format, and the american format is not problem. You can use CDate() to convert from a string and CStr() to convert to a string. 2) You want to deal with the date format associated with the current language (System.Language). Then you must use Val() to convert from a string and Str() or PRINT to convert to a string. 3) You want a specific date format. You can use Format() to convert to a string, but converting from a string must be done "by hand". Regards, -- Benoit Minisini From gambas at ...1... Mon May 19 19:05:38 2008 From: gambas at ...1... (Benoit Minisini) Date: Mon, 19 May 2008 19:05:38 +0200 Subject: [Gambas-user] This project seems to be already open In-Reply-To: <482EF007.1000908@...1870...> References: <482EF007.1000908@...1870...> Message-ID: <200805191905.38531.gambas@...1...> On samedi 17 mai 2008, Mike Brett wrote: > I'm doing a lot of jumping around between example projects at the moment > as I compare techniques. Since there is no menu option for "Close > Project", I presume that when you open one project the previous one is > always closed? Yep. > > From time to time, I get a "This project seems to be already open" > message when opening a project. I can't find a consistent pattern to > this - it seems pretty random. > > However, I've just had one on opening the first project after a system > rebooting, which seems a bit odd...... > > BTW, this is with one instance of gambas open, in case you were > wondering! :) > > Thanks. > > - Mike Brett - (gambas 2.6.0 on Fedora 8) > This is not random: you get this message when the project has not been correctly closed. When a project is opened, a ".lock" file is created inside its directory. This file is destroyed when the project is closed. If the ".lock" file is present when opening the project, then you get the message. Regards, -- Benoit Minisini From gambas at ...1... Mon May 19 19:17:59 2008 From: gambas at ...1... (Benoit Minisini) Date: Mon, 19 May 2008 19:17:59 +0200 Subject: [Gambas-user] qt, gtk, Gridview confusion ..... In-Reply-To: <482F05CC.9050802@...1870...> References: <482F05CC.9050802@...1870...> Message-ID: <200805191917.59652.gambas@...1...> On samedi 17 mai 2008, Mike Brett wrote: > More elementary questions I'm afraid.... > > 1. I note that when starting a new project in 2.6.0 you are given > options to set either the qt or gtk application framework. I've opened > what was obviously a gtk project from a much earlier gambas version, and > it's gtk. I'd prefer the qt look. Should I be able merely to select the > qt component(s) from the Project->Component tab (as long as I comply > with any conflict messages that are given)? Or is it more complicated > than that? I ask because I get error messages after trying such a > change, and wondered whether that was 'normal'. gb.qt and gb.gtk are equivalent (almost). So just uncheck gb.qt and check gb.gtk, or the contrary. Or you can use gb.gui that chooses gb.qt if you run KDE, and gb.gtk otherwise. > > 2. There are separate documentation entries for GridView (gtk) > (http://gambasdoc.org/help/comp/gb.qt/gridview) and GridView (qt) > (http://gambasdoc.org/help/comp/gb.gtk.ext/gridview?show); the latter > page itself also contains a screenshot. Screenshots are attached as > gtkhelp.png and qthelp.png respectively. > > I've also attached a screenshot of my 2.6.0. IDE. > > There seems to be some inconsistency between the properties listed > across these sources of information, even inside the same application > frameworks. Does the IDE offer only a subset of the available > properties? What is the logic at work here please? :) If gb.qt and gb.gtk are equivalent, gb.qt.ext and gb.gtk.ext are specific. gb.gtk.ext adds a property (Footer) to the GridView control that does not exist in the common GridView. That is the reason for the documentation differences. Regards, -- Benoit Minisini From robertsonhamish at ...626... Tue May 20 04:48:13 2008 From: robertsonhamish at ...626... (Hamish Robertson) Date: Tue, 20 May 2008 09:48:13 +0700 Subject: [Gambas-user] Gambas "Best Practices" In-Reply-To: References: Message-ID: Hey man, Gambas is great...but seeing as your coming from access have you checked out openoffice base? http://www.openoffice.org/product/base.html http://www.postgresonline.com/journal/index.php?/archives/8-Using-OpenOffice-Base-2.3.1-with-PostgreSQL.html http://linuxgangster.org/forums/showthread.php?t=790&highlight=openoffice+base I dunno, you may be able get up to speed more quickly with base as you're coming from access and it is cross platform. Gambas is much more powerful though, very fast....and the community is unbelievable! You're in good hands. :) Good luck! 2008/5/19 Doug Gack : > > Background: > > I am an independent software developer, primarily providing custom > business applications to small businesses. I do most of my work in M$ > Access, but also some in PHP and ASP Internet forms. (After programming for > 40+ years, another language is easier to learn than the first few.) I've > been looking for a couple of years for a way to do the same thing in Linux, > and it looks like I've finally found it. Thank you. Gambas! > > I just completed a conversion of a (tiny) application from Access/ASP to > Gambas/MySql/PHP, and it works just fine, thank you very much! Except.... > > As when learning any new environment, there's a prolonged period of > developing a "style" for the environment. > > I started off trying to create a "Graphical" application, not knowing any > better, and soon (well, not so soon, actually) realized that a "QT > Application" would give me a lot better user environment. That's just one of > the bumps encountered on the road, but I got it to work, so I'm better for > the experience. > > Question is, what can anyone tell me about better ways to approach the > subject? > > Some starter questions: > > - Which graphical environment, and why? > > - I've been spoiled by Access's methods with combo boxes, and it's become > my most used way of looking up data. If I want to find "Smith, John", I > start typing "smi...", and soon his name pops up. Looks like Linux > subscribes to the browser forms method of only using only the first letter > out of a list. I type "S" and get "Sa...", then type "m" and get "Ma...". > When I have a list with 15 or 20 thousand names, this won't do. How have > others solved this issue? > > Any starter suggestions? > > TIA, > > Doug > > > Doug Gack > Homepage: http://dgack.selfip.com > > _________________________________________________________________ > E-mail for the greater good. Join the i'm Initiative from Microsoft. > http://im.live.com/Messenger/IM/Join/Default.aspx?source=EML_WL_GreaterGood > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From charles at ...1784... Tue May 20 08:10:00 2008 From: charles at ...1784... (charlesg) Date: Mon, 19 May 2008 23:10:00 -0700 (PDT) Subject: [Gambas-user] Gambas "Best Practices" In-Reply-To: References: Message-ID: <17333857.post@...1379...> This might be a case of blind leading blind but hey, somebody will correct me if I am wrong. QT will be selected by default if you use KDE, GTK+ if you use Gnome. The Gambas IDE itself uses QT so you can't escape that even on Gnome. I don't know if a runtime GTK+ contains any QT remnants resulting from the IDE. QT usage on Gambas is the original. GTK is being offered because of the legal restrictions on commercial distribution of products using QT. Have a look at the Trolltech website for the eyewatering prices. GTK based products currently have the disadvantage (at least for data hacks) that there is no reporting facility although there is an idiot-workaround (search GTK and printing here). As for the name search: I have not used your size datasets but have been amazed at the speed of the following. Typing text into a TextBox filters the displayed data in the ListBox. I guess it would be even quicker if you (in your case) searched from the start of each data record rather than using instr. A click of the ListBox can then transfer the complete data back to the TextBox. ------------------------------------------------ PUBLIC SUB txtName_keyRelease() DIM txtUpper AS String DIM txtList AS String IF key.Code = key.Return OR key.Code = key.Enter OR key.Code = key.Tab THEN 'go nowhere if field is blank. This does not stop you tabbing out of an empty field 'so must still check for valid fields when is clicked. IF IsNull(txtName.text) THEN txtName.SetFocus ELSE 'go to next field txtDate.SetFocus ENDIF ELSE 'filter the listbox to allow entries containing the txtfield text. IF Len(txtname.Text) = 0 THEN ListFill 'subroutine to default fill with all the data ELSE txtUpper = UCase(txtName.Text) lstSupplier.Clear FOR EACH res IF InStr(UCase(res!p_desc), txtUpper) <> 0 THEN lstSupplier.Add(Format(res!p_box, "00") & ", " & Format(res!p_number, "0000") & ", " & res!p_desc & ", " & res!p_date & ", " & res!p_wherefrom) ENDIF NEXT ENDIF ENDIF END --------------------------------------------------------------------- -- View this message in context: http://www.nabble.com/Gambas-%22Best-Practices%22-tp17323065p17333857.html Sent from the gambas-user mailing list archive at Nabble.com. From ron at ...1740... Tue May 20 09:01:51 2008 From: ron at ...1740... (Ron) Date: Tue, 20 May 2008 09:01:51 +0200 Subject: [Gambas-user] SmtpClient issue Message-ID: <4832775F.1030503@...1740...> Hi, Sending an email via the sub below results in: Signal #11 assertion Error: Server won't accept DATA command while sending headers (SMTP error code #554) -1 Mail.MailSend.11 (process:6595): GLib-CRITICAL **: g_node_traverse: assertion `root != NULL' failed (process:6595): GLib-CRITICAL **: g_node_destroy: assertion `root != NULL' failed Is there something wrong with this code, or is my mail server to strict? I want to test with my providers e-mail server, to rule this out, but then I need authsmtp support, any chance this gets added to gb.net.smtp? Running Gambas 2.6, talking to postfix. Regards, Ron. ---- PUBLIC SUB MailSend() DIM hMsg AS NEW SmtpClient hMsg.To.Add("to at ...1912...") hMsg.Subject = "My subject" hMsg.Add("e-mail body...") hMsg.From = "from at ...1912..." hMsg.Host = "192.168.100.2" hMsg.Send() PRINT "Message sent." END ---- From eilert-sprachen at ...221... Tue May 20 09:45:27 2008 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Tue, 20 May 2008 09:45:27 +0200 Subject: [Gambas-user] GridView and RichText Message-ID: <48328197.6040409@...221...> Hi folks, Just found that there is a Data.RichText property for the GridView which wraps the text (Data.Text cannot wrap text, is that correct?). Anyway, there is no documentation about this RichText thing and I'm looking for a way to find out the necessary cell height to stretch the row tall enough to show the whole contents at once. Currently this property appears somewhat buggy: When there's too much text in a number of cells, the text overlaps with that of the other cell above. When the user drags the cell height, the damaged text remains on the screen until you drag the cell above up and down once, forcing it to redraw the text. My hope is to find a way to make the longer texts appear correctly from start. Regards Rolf From smiefert at ...784... Tue May 20 12:25:18 2008 From: smiefert at ...784... (Stefan Miefert) Date: Tue, 20 May 2008 12:25:18 +0200 Subject: [Gambas-user] Load a Form into a Frame? Message-ID: <8D42310D957CFB46AA11921A711D4D16B4960D6D@...1899...> Hello, i try the gambas Tip 11 but it soent work . I want to load a Form "Fchild" into anothers Form "Frame" Element but it dosent work. Have someone an example for this ? From eilert-sprachen at ...221... Tue May 20 13:05:16 2008 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Tue, 20 May 2008 13:05:16 +0200 Subject: [Gambas-user] GridView? TableView? Message-ID: <4832B06C.8050804@...221...> Just found that in the IDE, the thing is named "TableView", and in the help files, it's "GridView". There were the two of them originally (in Gambas 1), does only one exist now? Regards Rolf From eilert-sprachen at ...221... Tue May 20 13:07:49 2008 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Tue, 20 May 2008 13:07:49 +0200 Subject: [Gambas-user] Text alignment in header Message-ID: <4832B105.1020503@...221...> Is it possible to align the header of a GridView/TableView? Just like this: table.Columns[2].Text = "Qty" table.Columns[2].Alignment = 3 'this doesn't exist Thanks for your ideas! Rolf From gambas at ...1... Tue May 20 14:21:18 2008 From: gambas at ...1... (Benoit Minisini) Date: Tue, 20 May 2008 14:21:18 +0200 Subject: [Gambas-user] double free or corruption In-Reply-To: <483084D5.3060807@...1740...> References: <483084D5.3060807@...1740...> Message-ID: <200805201421.19033.gambas@...1...> On dimanche 18 mai 2008, Ron wrote: > This line: > > DIM axbData[2] AS Byte > > Results in Signal #6 > > and *** glibc detected *** double free or corruption (fasttop): > 0x0808fb20 *** > in console > > Gambas 2.6 > > Regards, > Ron. > Not there. Can you send your project? Or, better, a little project that crashes the same way? -- Benoit Minisini From gambas at ...1... Tue May 20 14:21:48 2008 From: gambas at ...1... (Benoit Minisini) Date: Tue, 20 May 2008 14:21:48 +0200 Subject: [Gambas-user] Extended selection in columnview In-Reply-To: <200805182035.00578.PxPert@...626...> References: <200805182035.00578.PxPert@...626...> Message-ID: <200805201421.48645.gambas@...1...> On dimanche 18 mai 2008, PxPert wrote: > Hi to all! > I'm making a new project and i need to use the (now removed) mode extended > to the columnview items. How can i replicate that mode now? > > Thanks! > I don't think you can. You have to use the Multiple selection mode instead. Regards, -- Benoit Minisini From gambas at ...1... Tue May 20 14:31:04 2008 From: gambas at ...1... (Benoit Minisini) Date: Tue, 20 May 2008 14:31:04 +0200 Subject: [Gambas-user] SmtpClient issue In-Reply-To: <4832775F.1030503@...1740...> References: <4832775F.1030503@...1740...> Message-ID: <200805201431.04277.gambas@...1...> On mardi 20 mai 2008, Ron wrote: > Hi, > Sending an email via the sub below results in: > > Signal #11 assertion > > Error: Server won't accept DATA command while sending headers (SMTP > error code #554) -1 Mail.MailSend.11 > > (process:6595): GLib-CRITICAL **: g_node_traverse: assertion `root != > NULL' failed > (process:6595): GLib-CRITICAL **: g_node_destroy: assertion `root != > NULL' failed > > Is there something wrong with this code, or is my mail server to strict? > I want to test with my providers e-mail server, to rule this out, but > then I need authsmtp support, any chance this gets added to gb.net.smtp? > > Running Gambas 2.6, talking to postfix. > > Regards, > Ron. > ---- > PUBLIC SUB MailSend() > DIM hMsg AS NEW SmtpClient > > hMsg.To.Add("to at ...1912...") > hMsg.Subject = "My subject" > hMsg.Add("e-mail body...") > hMsg.From = "from at ...1912..." > hMsg.Host = "192.168.100.2" > hMsg.Send() > > PRINT "Message sent." > > END > ---- > You are doing nothing wrong, any crash is a bug in the component. But apprently the crash occurs after the SMTP error, so there is something strange in this problem. As I can't communicate with your SMTP server, you will have to locate the crash yourself by following what is explained on the "Reporting a problem" page of the web site. I suggest that you compile Gambas from sources with the debugging information if you don't succeed in getting a readable stack dump. Regards, -- Benoit Minisini From ron at ...1740... Tue May 20 14:40:28 2008 From: ron at ...1740... (Ron Klinkien) Date: Tue, 20 May 2008 14:40:28 +0200 Subject: [Gambas-user] double free or corruption In-Reply-To: <200805201421.19033.gambas@...1...> References: <483084D5.3060807@...1740...> <200805201421.19033.gambas@...1...> Message-ID: <4832C6BC.1000301@...1740...> Benoit Minisini wrote: > On dimanche 18 mai 2008, Ron wrote: > >> This line: >> >> DIM axbData[2] AS Byte >> >> Results in Signal #6 >> >> and *** glibc detected *** double free or corruption (fasttop): >> 0x0808fb20 *** >> in console >> >> Gambas 2.6 >> >> Regards, >> Ron. >> >> > > Not there. Can you send your project? Or, better, a little project that > crashes the same way? > > Hi, Hmm the program I had that problem in, has grown much bigger in the mean time, (it's a Misterhouse clone/light version written in Gambas) if I change the line to read like above of course it doesn't crash anymore. ;-( I have taken out the class and put it in a new project, but alas it keeps working. I have found some core dumps, but I don't know if they help you? Regards, Ron. From gambas at ...1... Tue May 20 14:41:43 2008 From: gambas at ...1... (Benoit Minisini) Date: Tue, 20 May 2008 14:41:43 +0200 Subject: [Gambas-user] double free or corruption In-Reply-To: <4832C6BC.1000301@...1740...> References: <483084D5.3060807@...1740...> <200805201421.19033.gambas@...1...> <4832C6BC.1000301@...1740...> Message-ID: <200805201441.43155.gambas@...1...> On mardi 20 mai 2008, Ron Klinkien wrote: > Benoit Minisini wrote: > > On dimanche 18 mai 2008, Ron wrote: > >> This line: > >> > >> DIM axbData[2] AS Byte > >> > >> Results in Signal #6 > >> > >> and *** glibc detected *** double free or corruption (fasttop): > >> 0x0808fb20 *** > >> in console > >> > >> Gambas 2.6 > >> > >> Regards, > >> Ron. > > > > Not there. Can you send your project? Or, better, a little project that > > crashes the same way? > > Hi, > > Hmm the program I had that problem in, has grown much bigger in the mean > time, (it's a Misterhouse clone/light version written in Gambas) if I > change the line to read like above of course it doesn't crash anymore. ;-( > I have taken out the class and put it in a new project, but alas it > keeps working. > > I have found some core dumps, but I don't know if they help you? > > Regards, > Ron. > That could help: open them with gdb (gdb gbx2 core.XXXX) and send me the result of the stack backtrace with the 'bt' command. -- Benoit Minisini From ron at ...1740... Tue May 20 14:47:02 2008 From: ron at ...1740... (Ron Klinkien) Date: Tue, 20 May 2008 14:47:02 +0200 Subject: [Gambas-user] double free or corruption In-Reply-To: <200805201441.43155.gambas@...1...> References: <483084D5.3060807@...1740...> <200805201421.19033.gambas@...1...> <4832C6BC.1000301@...1740...> <200805201441.43155.gambas@...1...> Message-ID: <4832C846.3040406@...1740...> Benoit Minisini wrote: > On mardi 20 mai 2008, Ron Klinkien wrote: > >> Benoit Minisini wrote: >> >>> On dimanche 18 mai 2008, Ron wrote: >>> >>>> This line: >>>> >>>> DIM axbData[2] AS Byte >>>> >>>> Results in Signal #6 >>>> >>>> and *** glibc detected *** double free or corruption (fasttop): >>>> 0x0808fb20 *** >>>> in console >>>> >>>> Gambas 2.6 >>>> >>>> Regards, >>>> Ron. >>>> >>> Not there. Can you send your project? Or, better, a little project that >>> crashes the same way? >>> >> Hi, >> >> Hmm the program I had that problem in, has grown much bigger in the mean >> time, (it's a Misterhouse clone/light version written in Gambas) if I >> change the line to read like above of course it doesn't crash anymore. ;-( >> I have taken out the class and put it in a new project, but alas it >> keeps working. >> >> I have found some core dumps, but I don't know if they help you? >> >> Regards, >> Ron. >> >> > > That could help: open them with gdb (gdb gbx2 core.XXXX) and send me the > result of the stack backtrace with the 'bt' command. > > Hmm only this... not much info... ... Core was generated by `/usr/local/bin/gbx2 -g -f /home/ron/Development/Gambas Projects/homey --'. Program terminated with signal 11, Segmentation fault. #0 0xb7219d93 in ?? () (gdb) bt #0 0xb7219d93 in ?? () #1 0xb737a240 in start_thread () from /lib/tls/i686/cmov/libpthread.so.0 #2 0xb76f349e in clone () from /lib/tls/i686/cmov/libc.so.6 (gdb) Regards, Ron. From kari.laine at ...1400... Tue May 20 15:12:23 2008 From: kari.laine at ...1400... (Kari Laine) Date: Tue, 20 May 2008 16:12:23 +0300 Subject: [Gambas-user] Runtime Message-ID: <4832CE37.20700@...1400...> Hi, I don't understand much about compilers - so I ask... Benoit, why you decided to use runtime instead making Gambas a "true" compiler without the need for a runtime? Best Regards Kari Laine From ron at ...1740... Tue May 20 15:31:00 2008 From: ron at ...1740... (Ron Klinkien) Date: Tue, 20 May 2008 15:31:00 +0200 Subject: [Gambas-user] clockticks Message-ID: <4832D294.4050204@...1740...> Is there a way to get clock ticks? I need higher resolution ticks than seconds. Something like Time:Hires in perl for example 100, 250, 500 mseconds Possible to add a time/date ticks call? Gamba 2.6 Regards, Ron. From ron at ...1740... Tue May 20 15:48:25 2008 From: ron at ...1740... (Ron) Date: Tue, 20 May 2008 15:48:25 +0200 Subject: [Gambas-user] double free or corruption In-Reply-To: <4832C846.3040406@...1740...> References: <483084D5.3060807@...1740...> <200805201421.19033.gambas@...1...> <4832C6BC.1000301@...1740...> <200805201441.43155.gambas@...1...> <4832C846.3040406@...1740...> Message-ID: <4832D6A9.5040800@...1740...> Ronwrote: > Benoit Minisini wrote: > >> On mardi 20 mai 2008, Ron Klinkien wrote: >> >> >>> Benoit Minisini wrote: >>> >>> >>>> On dimanche 18 mai 2008, Ron wrote: >>>> >>>> >>>>> This line: >>>>> >>>>> DIM axbData[2] AS Byte >>>>> >>>>> Results in Signal #6 >>>>> >>>>> and *** glibc detected *** double free or corruption (fasttop): >>>>> 0x0808fb20 *** >>>>> in console >>>>> >>>>> Gambas 2.6 >>>>> >>>>> Regards, >>>>> Ron. >>>>> >>>>> >>>> Not there. Can you send your project? Or, better, a little project that >>>> crashes the same way? >>>> >>>> >>> Hi, >>> >>> Hmm the program I had that problem in, has grown much bigger in the mean >>> time, (it's a Misterhouse clone/light version written in Gambas) if I >>> change the line to read like above of course it doesn't crash anymore. ;-( >>> I have taken out the class and put it in a new project, but alas it >>> keeps working. >>> >>> I have found some core dumps, but I don't know if they help you? >>> >>> Regards, >>> Ron. >>> >>> >>> >> That could help: open them with gdb (gdb gbx2 core.XXXX) and send me the >> result of the stack backtrace with the 'bt' command. >> >> >> > Hmm only this... not much info... > ... > Core was generated by `/usr/local/bin/gbx2 -g -f > /home/ron/Development/Gambas Projects/homey --'. > Program terminated with signal 11, Segmentation fault. > #0 0xb7219d93 in ?? () > (gdb) bt > #0 0xb7219d93 in ?? () > #1 0xb737a240 in start_thread () from /lib/tls/i686/cmov/libpthread.so.0 > #2 0xb76f349e in clone () from /lib/tls/i686/cmov/libc.so.6 > (gdb) > > Regards, > Ron. > > I just wondered why my executable got a whooping 70Mbyte in size, it was due to the core files sitting in my project dir. Maybe skip core* files from including while creating an executable? regards. Ron. From gambas at ...1... Tue May 20 15:52:03 2008 From: gambas at ...1... (Benoit Minisini) Date: Tue, 20 May 2008 15:52:03 +0200 Subject: [Gambas-user] clockticks In-Reply-To: <4832D294.4050204@...1740...> References: <4832D294.4050204@...1740...> Message-ID: <200805201552.03581.gambas@...1...> On mardi 20 mai 2008, Ron Klinkien wrote: > Is there a way to get clock ticks? > > I need higher resolution ticks than seconds. > > Something like Time:Hires in perl for example 100, 250, 500 mseconds > > Possible to add a time/date ticks call? > > Gamba 2.6 > Regards, > Ron. > You can use a Timer object, or the Timer() function. -- Benoit Minisini From eilert-sprachen at ...221... Tue May 20 15:54:50 2008 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Tue, 20 May 2008 15:54:50 +0200 Subject: [Gambas-user] clockticks In-Reply-To: <4832D294.4050204@...1740...> References: <4832D294.4050204@...1740...> Message-ID: <4832D82A.5080904@...221...> Ron Klinkien schrieb: > Is there a way to get clock ticks? > > I need higher resolution ticks than seconds. > > Something like Time:Hires in perl for example 100, 250, 500 mseconds > > Possible to add a time/date ticks call? > > Gamba 2.6 > Regards, > Ron. > Isn't the Timer a millisecond counter? Look under "Special", insert a Timer and use its event. You'll see that the default delay is "1000" for 1 second... Regards Rolf From ron at ...1740... Tue May 20 16:26:53 2008 From: ron at ...1740... (Ron) Date: Tue, 20 May 2008 16:26:53 +0200 Subject: [Gambas-user] clockticks In-Reply-To: <4832D82A.5080904@...221...> References: <4832D294.4050204@...1740...> <4832D82A.5080904@...221...> Message-ID: <4832DFAD.5050106@...1740...> Rolf-Werner Eilert wrote: > Ron Klinkien schrieb: > >> Is there a way to get clock ticks? >> >> I need higher resolution ticks than seconds. >> >> Something like Time:Hires in perl for example 100, 250, 500 mseconds >> >> Possible to add a time/date ticks call? >> >> Gamba 2.6 >> Regards, >> Ron. >> >> > > > Isn't the Timer a millisecond counter? Look under "Special", insert a > Timer and use its event. You'll see that the default delay is "1000" for > 1 second... > > Regards > > Rolf > > Yes, i have it working now thanks! RTFM ;-) Ron. From ron at ...1740... Wed May 21 13:14:08 2008 From: ron at ...1740... (Ron) Date: Wed, 21 May 2008 13:14:08 +0200 Subject: [Gambas-user] commandline output redirect? Message-ID: <48340400.5060302@...1740...> Hi, If you create a gambas command line application with a loop in it, standard output cannot be redirected to a file. This works: ----------------------------------- PUBLIC SUB Main() PRINT "test output" END ./test.gambas >test.log cat test.log test output This doesn't work: ------------------------------------ PUBLIC SUB Main() PRINT "test output" WHILE (1) 'do something WAIT 1 WEND END ./test.gambas >test.log CTRL-C test.log is empty ------------------------------------ Unbuffered printing to default output (with Write "test output") gives the same result. Gambas 2.6.0 Regards, Ron. From gambas at ...1... Wed May 21 13:26:26 2008 From: gambas at ...1... (Benoit Minisini) Date: Wed, 21 May 2008 13:26:26 +0200 Subject: [Gambas-user] commandline output redirect? In-Reply-To: <48340400.5060302@...1740...> References: <48340400.5060302@...1740...> Message-ID: <200805211326.26100.gambas@...1...> On mercredi 21 mai 2008, Ron wrote: > Hi, > > If you create a gambas command line application with a loop in it, > standard output cannot be redirected to a file. > > This works: > ----------------------------------- > PUBLIC SUB Main() > PRINT "test output" > END > > ./test.gambas >test.log > cat test.log > test output > > This doesn't work: > ------------------------------------ > PUBLIC SUB Main() > PRINT "test output" > WHILE (1) > 'do something > WAIT 1 > WEND > END > > ./test.gambas >test.log > CTRL-C > test.log is empty > ------------------------------------ > Unbuffered printing to default output (with Write "test output") gives > the same result. > > > Gambas 2.6.0 > > Regards, > Ron. > Where did you see that WRITE is unbuffered and PRINT is buffered? Standard output and standard error output are both buffered, whatever stream instruction or function you use. If you want to flush a buffered output stream, just use the FLUSH instruction. I suggest you read the documentation on Gambas File I/O functions. Regards, -- Benoit Minisini From ron at ...1740... Wed May 21 14:09:31 2008 From: ron at ...1740... (Ron) Date: Wed, 21 May 2008 14:09:31 +0200 Subject: [Gambas-user] commandline output redirect? In-Reply-To: <200805211326.26100.gambas@...1...> References: <48340400.5060302@...1740...> <200805211326.26100.gambas@...1...> Message-ID: <483410FB.3010302@...1740...> Benoit Minisini schreef: > On mercredi 21 mai 2008, Ron wrote: > >> Hi, >> >> If you create a gambas command line application with a loop in it, >> standard output cannot be redirected to a file. >> >> This works: >> ----------------------------------- >> PUBLIC SUB Main() >> PRINT "test output" >> END >> >> ./test.gambas >test.log >> cat test.log >> test output >> >> This doesn't work: >> ------------------------------------ >> PUBLIC SUB Main() >> PRINT "test output" >> WHILE (1) >> 'do something >> WAIT 1 >> WEND >> END >> >> ./test.gambas >test.log >> CTRL-C >> test.log is empty >> ------------------------------------ >> Unbuffered printing to default output (with Write "test output") gives >> the same result. >> >> >> Gambas 2.6.0 >> >> Regards, >> Ron. >> >> > > Where did you see that WRITE is unbuffered and PRINT is buffered? > Benoit , here: http://gambasdoc.org/help/lang/open next to the ! mark > Standard output and standard error output are both buffered, whatever stream > instruction or function you use. > > If you want to flush a buffered output stream, just use the FLUSH instruction. > I suggest you read the documentation on Gambas File I/O functions. > > I'm flushing now inside my loop every now and then, that seems to work. Is it possible to catch keyboard input while running command line app? Sorry for the questions, but my app is using alot of different command and routines. Thanks. Ron. From gambas at ...1... Wed May 21 14:36:55 2008 From: gambas at ...1... (Benoit Minisini) Date: Wed, 21 May 2008 14:36:55 +0200 Subject: [Gambas-user] commandline output redirect? In-Reply-To: <483410FB.3010302@...1740...> References: <48340400.5060302@...1740...> <200805211326.26100.gambas@...1...> <483410FB.3010302@...1740...> Message-ID: <200805211436.55295.gambas@...1...> On mercredi 21 mai 2008, Ron wrote: > Benoit Minisini schreef: > > On mercredi 21 mai 2008, Ron wrote: > >> Hi, > >> > >> If you create a gambas command line application with a loop in it, > >> standard output cannot be redirected to a file. > >> > >> This works: > >> ----------------------------------- > >> PUBLIC SUB Main() > >> PRINT "test output" > >> END > >> > >> ./test.gambas >test.log > >> cat test.log > >> test output > >> > >> This doesn't work: > >> ------------------------------------ > >> PUBLIC SUB Main() > >> PRINT "test output" > >> WHILE (1) > >> 'do something > >> WAIT 1 > >> WEND > >> END > >> > >> ./test.gambas >test.log > >> CTRL-C > >> test.log is empty > >> ------------------------------------ > >> Unbuffered printing to default output (with Write "test output") gives > >> the same result. > >> > >> > >> Gambas 2.6.0 > >> > >> Regards, > >> Ron. > > > > Where did you see that WRITE is unbuffered and PRINT is buffered? > > Benoit , > > here: http://gambasdoc.org/help/lang/open > > next to the ! mark > The warning talks about the keyword you add to the OPEN instruction, not to the READ and WRITE instructions. > > Standard output and standard error output are both buffered, whatever > > stream instruction or function you use. > > > > If you want to flush a buffered output stream, just use the FLUSH > > instruction. I suggest you read the documentation on Gambas File I/O > > functions. > > I'm flushing now inside my loop every now and then, that seems to work. > > Is it possible to catch keyboard input while running command line app? > Sorry for the questions, but my app is using alot of different command > and routines. See http://gambasdoc.org/help/comp/gb/application/.read Regards, -- Benoit Minisini From ron at ...1740... Wed May 21 14:23:30 2008 From: ron at ...1740... (Ron) Date: Wed, 21 May 2008 14:23:30 +0200 Subject: [Gambas-user] commandline output redirect? In-Reply-To: <483410FB.3010302@...1740...> References: <48340400.5060302@...1740...> <200805211326.26100.gambas@...1...> <483410FB.3010302@...1740...> Message-ID: <48341442.4040601@...1740...> Ok, I now see it documents the KEYWORDS to open stream instead of COMMANDS sorry for the confusion! > Benoit Minisini schreef: > >> On mercredi 21 mai 2008, Ron wrote: >> >> >>> Hi, >>> >>> If you create a gambas command line application with a loop in it, >>> standard output cannot be redirected to a file. >>> >>> This works: >>> ----------------------------------- >>> PUBLIC SUB Main() >>> PRINT "test output" >>> END >>> >>> ./test.gambas >test.log >>> cat test.log >>> test output >>> >>> This doesn't work: >>> ------------------------------------ >>> PUBLIC SUB Main() >>> PRINT "test output" >>> WHILE (1) >>> 'do something >>> WAIT 1 >>> WEND >>> END >>> >>> ./test.gambas >test.log >>> CTRL-C >>> test.log is empty >>> ------------------------------------ >>> Unbuffered printing to default output (with Write "test output") gives >>> the same result. >>> >>> >>> Gambas 2.6.0 >>> >>> Regards, >>> Ron. >>> >>> >>> >> Where did you see that WRITE is unbuffered and PRINT is buffered? >> >> > Benoit , > > here: http://gambasdoc.org/help/lang/open > > next to the ! mark > > >> Standard output and standard error output are both buffered, whatever stream >> instruction or function you use. >> >> If you want to flush a buffered output stream, just use the FLUSH instruction. >> I suggest you read the documentation on Gambas File I/O functions. >> >> >> > I'm flushing now inside my loop every now and then, that seems to work. > > Is it possible to catch keyboard input while running command line app? > Sorry for the questions, but my app is using alot of different command > and routines. > > Thanks. > Ron. > > > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From leonardo at ...1237... Wed May 21 19:21:04 2008 From: leonardo at ...1237... (Leonardo Miliani) Date: Wed, 21 May 2008 19:21:04 +0200 Subject: [Gambas-user] Runtime In-Reply-To: <4832CE37.20700@...1400...> References: <4832CE37.20700@...1400...> Message-ID: <48345A00.7040807@...1237...> Kari Laine ha scritto: > Hi, > > I don't understand much about compilers - so I ask... > > Benoit, why you decided to use runtime instead making Gambas a "true" > compiler without the need for a runtime? > > Best Regards > Kari Laine Interesting question... I'm curios too ;-) -- Ciao. Leo. Web: www.leonardomiliani.com E-mail: leonardo at ...1237... Scegli software opensource - Choose opensource software Co-fondatore di Gambas-it.org Il sito di riferimento della comunit? italiana degli utenti di Gambas www.gambas-it.org From gambas at ...1... Wed May 21 22:41:55 2008 From: gambas at ...1... (Benoit Minisini) Date: Wed, 21 May 2008 22:41:55 +0200 Subject: [Gambas-user] Runtime In-Reply-To: <48345A00.7040807@...1237...> References: <4832CE37.20700@...1400...> <48345A00.7040807@...1237...> Message-ID: <200805212241.55594.gambas@...1...> On mercredi 21 mai 2008, Leonardo Miliani wrote: > Kari Laine ha scritto: > > Hi, > > > > I don't understand much about compilers - so I ask... > > > > Benoit, why you decided to use runtime instead making Gambas a "true" > > compiler without the need for a runtime? > > > > Best Regards > > Kari Laine > > Interesting question... > I'm curios too ;-) 1) Writing a compiler (like gcc) is too complex for me. Well, not really, but I don't have the time to do that. 2) Writing an interpreter is easier, and allow more freedom. Writing its own interpreter is a bit like writing its own CPU. The runtime is that CPU. The last sentence is a shortcut, it is more complex, of course. 3) A program written in C/C++ has its "runtime" too, but you don't see it. gcc links it to your program by default. The only difference is that the gcc runtime (let's use that name for libc.so or libgcc_s.so) is always installed by default. Not the Gambas runtime. 4) Installing the runtime would not be a problem with binary packages correctly done and a modern packaging system. Other questions? -- Benoit Minisini From gambas at ...1... Thu May 22 02:27:57 2008 From: gambas at ...1... (Benoit Minisini) Date: Thu, 22 May 2008 02:27:57 +0200 Subject: [Gambas-user] Fwd: bug with GAMBAS 2.6 and Slackware 12.0 Message-ID: <200805220227.57224.gambas@...1...> This is apparently a bug in Slackware that prevent Gambas to compile. I forward it to the mailing-list... ------------------------------------------------------- Subject?: bug with GAMBAS 2.6 and Slackware 12.0 Date?: mercredi 21 mai 2008 From?: "Sean Robinson" To?: gambas at ...1... While trying to compile GAMBAS 2.6 (Gtk) on Slackware 12.0, I had difficulty with ffi.h not finding ffitarget.h. While this is a Slackware bug, GAMBAS is the only package I've found that triggered this error and I thought I'd pass the fix on in case you receive other bug reports on Slack 12.0. The fix was to change the line with #include to #include in /usr/include/ffi.h. -- Sean Robinson ------------------------------------------------------- -- Benoit Minisini From gambas at ...1... Thu May 22 02:29:34 2008 From: gambas at ...1... (Benoit Minisini) Date: Thu, 22 May 2008 02:29:34 +0200 Subject: [Gambas-user] Xml Problem/?Bug? In-Reply-To: <200805181326.45319.notorious@...606...> References: <200805181326.45319.notorious@...606...> Message-ID: <200805220229.34796.gambas@...1...> On dimanche 18 mai 2008, Rory Verleysen wrote: > Hi > > I'm trying to write a simple rss parser and running in to some problems. > I'm running debian with gambas 2.5.0 > > rss file used is from news.yahoo.com > > - > Reading the file: all goes fine > DIM xmlDoc AS XmlDocument > xmldoc = NEW XmlDocument > xmldoc.Open(strFileName) > - > reading topnode: all goes fine > eg: if xmldoc.root.name = "rss" then ... > - > assigning to seperate node: all goes fine > Dim xmlNod as XmlNode > xmlNod = xmldoc.Root > IF xmlNod.Name = "rss" THEN > - > xmldoc.root.value returns whole file contents (without ) > - > reading or assigning a childnode: doesn't work <<<<<------------ > DIM xmlNod as XmlNode > FOR i = 0 TO xmldoc.Root.Children.Count - 1 > xmlNod = xmldoc.Root.Children[i] > PRINT Message.Info(xmlNod.Name) > 'OR > PRINT Message.Info(xmldoc.Root.Children[i].Name) > NEXT > > the above throws an "invalid object" error > > Could someone please inform what i'm doing wrong? > > Thanks in advance > Notorious > Only Daniel Campos could answer you... -- Benoit Minisini From gambas at ...1... Thu May 22 02:31:32 2008 From: gambas at ...1... (Benoit Minisini) Date: Thu, 22 May 2008 02:31:32 +0200 Subject: [Gambas-user] Generating EAN13 barcodes In-Reply-To: <17303208.post@...1379...> References: <17303208.post@...1379...> Message-ID: <200805220231.32734.gambas@...1...> On dimanche 18 mai 2008, charlesg wrote: > Firstly, a thank you to Benoit and all involved with the development of > Gambas. I am not a professional programmer (as the following shows!) and > have had to adjust to the inevitable differences between the presentation > of commercial and 'for-the-love-of-it' software. Having said that, I really > do like Gambas: it is my kind of software. > > Here is a module to print EAN-13 barcodes from first principles. I wrote it > because I could not get scannable results using the available ttf fonts. > > In this demonstration, the barcode module is called by a simple FMain which > will print the resultant barcode on the screen or on a default printer. The > logic comes (as does the meaning of life itself) from Wikipedia > (http://en.wikipedia.org/wiki/European_Article_Number). I have not checked > the array data against the Wikipedia article as well as I should. Please > check. http://www.nabble.com/file/p17303208/barcode-0.0.3.tar.gz > barcode-0.0.3.tar.gz I can't download the archive. I get a corrupted file... -- Benoit Minisini From gambas at ...1... Thu May 22 02:38:40 2008 From: gambas at ...1... (Benoit Minisini) Date: Thu, 22 May 2008 02:38:40 +0200 Subject: [Gambas-user] "Gambas packaging how to" updated again In-Reply-To: <1210991114.26136.4.camel@...1911...> References: <200805141401.12693.gambas@...1...> <1210991114.26136.4.camel@...1911...> Message-ID: <200805220238.40683.gambas@...1...> On samedi 17 mai 2008, Luigi Carlotto wrote: > Thank you for your mail, I have already taken steps to fix my script > creation for the package Examples. > Unfortunately, I am having problems to create the package Help, because > of a problem with the program bzip, which causes errors when the file > name contains non-alphanumeric characters (eg []). > To use the script bash, but I also tried to create a script in python > that, however, has other types of problem. > > You are aware of a similar problem? > > Hello > > Luigi Carlotto > Other rpm packagers seem to not have any problem with packaging files whose name uses these characters. I suggest you look at Mandriva gambas2-help rpm package. Regards, -- Benoit Minisini From sbungay at ...981... Thu May 22 05:48:35 2008 From: sbungay at ...981... (Stephen Bungay) Date: Wed, 21 May 2008 23:48:35 -0400 Subject: [Gambas-user] Generating EAN13 barcodes In-Reply-To: <200805220231.32734.gambas@...1...> References: <17303208.post@...1379...> <200805220231.32734.gambas@...1...> Message-ID: <4834ED13.3070608@...981...> As an alternative, one can execute the 'barcode' app from a shell and grab the resulting output. Benoit Minisini wrote: > On dimanche 18 mai 2008, charlesg wrote: >> Firstly, a thank you to Benoit and all involved with the development of >> Gambas. I am not a professional programmer (as the following shows!) and >> have had to adjust to the inevitable differences between the presentation >> of commercial and 'for-the-love-of-it' software. Having said that, I really >> do like Gambas: it is my kind of software. >> >> Here is a module to print EAN-13 barcodes from first principles. I wrote it >> because I could not get scannable results using the available ttf fonts. >> >> In this demonstration, the barcode module is called by a simple FMain which >> will print the resultant barcode on the screen or on a default printer. The >> logic comes (as does the meaning of life itself) from Wikipedia >> (http://en.wikipedia.org/wiki/European_Article_Number). I have not checked >> the array data against the Wikipedia article as well as I should. Please >> check. http://www.nabble.com/file/p17303208/barcode-0.0.3.tar.gz >> barcode-0.0.3.tar.gz > > I can't download the archive. I get a corrupted file... > From charles at ...1784... Thu May 22 07:17:18 2008 From: charles at ...1784... (charlesg) Date: Wed, 21 May 2008 22:17:18 -0700 (PDT) Subject: [Gambas-user] Generating EAN13 barcodes In-Reply-To: <200805220231.32734.gambas@...1...> References: <17303208.post@...1379...> <200805220231.32734.gambas@...1...> Message-ID: <17397522.post@...1379...> I have just downloaded and viewed although I did have to manually gunzip it. Here it is as a tar. http://www.nabble.com/file/p17397522/barcode-0.0.3.tar barcode-0.0.3.tar -- View this message in context: http://www.nabble.com/Generating-EAN13-barcodes-tp17303208p17397522.html Sent from the gambas-user mailing list archive at Nabble.com. From jscops at ...11... Thu May 22 07:39:54 2008 From: jscops at ...11... (Jacky) Date: Thu, 22 May 2008 07:39:54 +0200 Subject: [Gambas-user] Generating EAN13 barcodes In-Reply-To: <200805220231.32734.gambas@...1...> References: <17303208.post@...1379...> <200805220231.32734.gambas@...1...> Message-ID: <200805220739.54572.jscops@...11...> Le Thursday 22 May 2008 02:31:32 Benoit Minisini, vous avez ?crit?: > On dimanche 18 mai 2008, charlesg wrote: > > Firstly, a thank you to Benoit and all involved with the development of > > Gambas. I am not a professional programmer (as the following shows!) and > > have had to adjust to the inevitable differences between the presentation > > of commercial and 'for-the-love-of-it' software. Having said that, I > > really do like Gambas: it is my kind of software. > > > > Here is a module to print EAN-13 barcodes from first principles. I wrote > > it because I could not get scannable results using the available ttf > > fonts. > > > > In this demonstration, the barcode module is called by a simple FMain > > which will print the resultant barcode on the screen or on a default > > printer. The logic comes (as does the meaning of life itself) from > > Wikipedia > > (http://en.wikipedia.org/wiki/European_Article_Number). I have not > > checked the array data against the Wikipedia article as well as I should. > > Please check. http://www.nabble.com/file/p17303208/barcode-0.0.3.tar.gz > > barcode-0.0.3.tar.gz > > I can't download the archive. I get a corrupted file... Bonjour Benoit, You can unzip the file with root permissions. Jacky From nando_f at ...951... Thu May 22 09:41:16 2008 From: nando_f at ...951... (nando) Date: Thu, 22 May 2008 02:41:16 -0500 Subject: [Gambas-user] searching sunset/sunrise function In-Reply-To: <48314FFD.10701@...1740...> References: <48314FFD.10701@...1740...> Message-ID: <20080522074039.M92236@...951...> If you have the snippets, I'm interested in converting to gambas ---------- Original Message ----------- From: Ron To: mailing list for gambas users Sent: Mon, 19 May 2008 12:01:33 +0200 Subject: [Gambas-user] searching sunset/sunrise function > Hi, > > Does anybody know if a sunset/sunrise calculator functions/snippet in > gambas exists by any chance? > > I have found some vb and vbscript snippets, but porting them is not > easy, or they give wrong results. > > Regards, > Ron. > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user ------- End of Original Message ------- From ron at ...1740... Thu May 22 11:24:48 2008 From: ron at ...1740... (Ron) Date: Thu, 22 May 2008 11:24:48 +0200 Subject: [Gambas-user] searching sunset/sunrise function In-Reply-To: <20080522074039.M92236@...951...> References: <48314FFD.10701@...1740...> <20080522074039.M92236@...951...> Message-ID: <48353BE0.9030708@...1740...> > > If you have the snippets, I'm interested in converting to gambas > > > ---------- Original Message ----------- > From: Ron > To: mailing list for gambas users > Sent: Mon, 19 May 2008 12:01:33 +0200 > Subject: [Gambas-user] searching sunset/sunrise function > > >> Hi, >> >> Does anybody know if a sunset/sunrise calculator functions/snippet in >> gambas exists by any chance? >> >> I have found some vb and vbscript snippets, but porting them is not >> easy, or they give wrong results. >> >> Regards, >> Ron. >> Nando, I have attached the module made so far. CalcSunTimes() is returning fair results, as far as I an see, but haven't checked it much, you're welcome to make it better. (see link above routine) CalcMoonPhase() is the beginning of converting code (from link in module), but the phase it returns is false, puzzle as to why, maybe usage of wrong datatype, or round()s? would be nice to get this fixed. Alas I'm no Gambas nor Math/Astronomy wizard. Regards, Ron. -------------- next part -------------- ' Gambas module file ' adapted from source found here http://www.drbeat.li/php/source.php?src=php/sunrise.inc.php ' left out UTC code part ' Time_Sunrise = MSunMoon.CalcSunTimes(ilongitude, ilatitude, itimezone, 1, 0) ' Time_Sunset = MSunMoon.CalcSunTimes(ilongitude, ilatitude, itimezone, 0, 0) ' PRINT "Sunrise at " & Time_Sunrise & ", Sunset at " & Time_Sunset PUBLIC FUNCTION CalcSunTimes(lon AS Float, lat AS Float, timezone AS Float, isRise AS Boolean, twilight AS Integer) AS String DIM a, b, c, d, e, f, g, j, k, l, m, p, q, R, s, t, u, v AS Float DIM yday, ihour, imin, isec AS Integer 'twilight setting IF (twilight = 0) THEN R = -0.0145439 'effective for sunrise/sunset IF (twilight = 1) THEN R = -0.104528 'civil twilight (brightest) IF (twilight = 2) THEN R = -0.207912 'nautical twilight IF (twilight = 3) THEN R = -0.309017 'astronomical twilight (darkest) 'multiples of Pi a = 0.5 * Pi b = Pi c = 1.5 * Pi d = 2 * Pi 'convert coordinates and timezone to radians e = lat * b / 180 f = lon * b / 180 g = timezone * d / 24 'calculate sunrise or sunset? j = IIf(isRise, a, c) 'calculate day of year yday = DateDiff("01/01/" & Year(Now()), Now(), gb.day) k = yday + (j - f) / d l = k * 0.017202 - 0.0574039 'solar mean anomoly m = l + 0.0334405 * Sin(l) 'solar true longitude m += 4.93289 + 3.49066E-4 * Sin(2 * l) 'quadrant determination m = norm(m, d) IF ((m / a) - CInt(m / a) == 0) THEN m += 4.84814E-6 p = Sin(m) / Cos(m) 'solar right ascension p = ATan2(0.91746 * p, 1) END IF 'quadrant adjustment IF (m > c) THEN p += d ELSE IF (m > a) THEN p += b ENDIF q = 0.39782 * Sin(m) 'solar declination q /= Sqr(- q * q + 1) q = ATan2(q, 1) s = R - Sin(q) * Sin(e) s /= Cos(q) * Cos(e) IF (Abs(s) > 1) THEN PRINT "(Midnight Sun)" s /= Sqr(- s * s + 1) s = a - ATan2(s, 1) IF (isRise) THEN s = d - s t = s + p - 0.0172028 * k - 1.73364 'local apparent time u = t - f 'universal time v = u + g 'wall clock time 'quadrant Determination v = norm(v, d) 'scale from radians to hours v *= 24 / d 'local time ihour = CInt(v) iMin = CInt((v - ihour) * 60) RETURN Format(ihour, "##") & ":" & Format(imin, "0#") END FUNCTION norm(a AS Float, b AS Float) AS Float WHILE (a < 0) a += b WEND WHILE (a >= b) a -= b WEND RETURN a 'calculate moonphase 'tried to convert from javascript source inside this page http://home.att.net/~srschmitt/script_moon_phase.html PUBLIC FUNCTION CalcMoonPhase() DIM yy, mm, k1, k2, k3, jd AS Integer DIM ip, dp, np, rp AS Float DIM AG AS Float 'moon's age DIM DI AS Float 'moon's distance in earth radii DIM LA AS Float 'moon's ecliptic latitude DIM LO AS Float 'moon 's ecliptic longitude DIM Phase, Zodiac AS String DIM Y, D, M AS Integer y = Year(Now) m = Month(Now) d = Day(Now) 'calculate the Julian Date at 12 h UT YY = Y - Round((12 - M)) / 10 MM = M + 9 IF (MM >= 12) THEN MM = MM - 12 K1 = Round(365.25 * (YY + 4712)) K2 = Round(30.6 * MM + 0.5) K3 = Round(Round((YY / 100) + 49) * 0.75) - 38 JD = K1 + K2 + D + 59 'for dates in Julian calendar IF (JD > 2299160) THEN JD = JD - K3 'for Gregorian calendar 'calculate moon's age in days IP = (JD - 2451550.1) / 29.530588853 PRINT "ip = " & ip AG = IP * 29.53 IF (AG < 1.84566) THEN Phase = "NEW" ELSE IF (AG < 5.53699) THEN Phase = "Evening crescent" ELSE IF (AG < 9.22831) THEN Phase = "First quarter" ELSE IF (AG < 12.91963) THEN Phase = "Waxing gibbous" ELSE IF (AG < 16.61096) THEN Phase = "FULL" ELSE IF (AG < 20.30228) THEN Phase = "Waning gibbous" ELSE IF (AG < 23.99361) THEN Phase = "Last quarter" ELSE IF (AG < 27.68493) THEN Phase = "Morning crescent" ELSE Phase = "NEW" ENDIF PRINT "Phase = " & Phase 'giving wrong phase....;-( END FUNCTION normalize(v AS Float) AS Float v = v - Round(v) IF (v < 0) THEN v = v + 1 RETURN v END From gambas at ...1... Thu May 22 11:39:40 2008 From: gambas at ...1... (Benoit Minisini) Date: Thu, 22 May 2008 11:39:40 +0200 Subject: [Gambas-user] searching sunset/sunrise function In-Reply-To: <48353BE0.9030708@...1740...> References: <48314FFD.10701@...1740...> <20080522074039.M92236@...951...> <48353BE0.9030708@...1740...> Message-ID: <200805221139.40532.gambas@...1...> On jeudi 22 mai 2008, Ron wrote: > > If you have the snippets, I'm interested in converting to gambas > > > > > > ---------- Original Message ----------- > > From: Ron > > To: mailing list for gambas users > > Sent: Mon, 19 May 2008 12:01:33 +0200 > > Subject: [Gambas-user] searching sunset/sunrise function > > > >> Hi, > >> > >> Does anybody know if a sunset/sunrise calculator functions/snippet in > >> gambas exists by any chance? > >> > >> I have found some vb and vbscript snippets, but porting them is not > >> easy, or they give wrong results. > >> > >> Regards, > >> Ron. > > Nando, > > I have attached the module made so far. > > CalcSunTimes() is returning fair results, as far as I an see, but > haven't checked it much, you're welcome to make it better. (see link > above routine) > CalcMoonPhase() is the beginning of converting code (from link in > module), but the phase it returns is false, puzzle as to why, maybe > usage of wrong datatype, or round()s? would be nice to get this fixed. > > Alas I'm no Gambas nor Math/Astronomy wizard. > > Regards, > Ron. Math.Floor() in Javascript must be replaced by Int(), not Round(). Maybe it is the source of the problem. Regards, -- Benoit Minisini From gambas at ...1... Thu May 22 11:56:28 2008 From: gambas at ...1... (Benoit Minisini) Date: Thu, 22 May 2008 11:56:28 +0200 Subject: [Gambas-user] Generating EAN13 barcodes In-Reply-To: <17397522.post@...1379...> References: <17303208.post@...1379...> <200805220231.32734.gambas@...1...> <17397522.post@...1379...> Message-ID: <200805221156.28399.gambas@...1...> On jeudi 22 mai 2008, charlesg wrote: > I have just downloaded and viewed although I did have to manually gunzip > it. Here it is as a tar. > > > http://www.nabble.com/file/p17397522/barcode-0.0.3.tar barcode-0.0.3.tar Cool. I modified a bit your code and made it a new example for Gambas. -- Benoit Minisini From gambas at ...1... Thu May 22 11:57:53 2008 From: gambas at ...1... (Benoit Minisini) Date: Thu, 22 May 2008 11:57:53 +0200 Subject: [Gambas-user] Generating EAN13 barcodes In-Reply-To: <17303208.post@...1379...> References: <17303208.post@...1379...> Message-ID: <200805221157.53752.gambas@...1...> On dimanche 18 mai 2008, charlesg wrote: > Firstly, a thank you to Benoit and all involved with the development of > Gambas. I am not a professional programmer (as the following shows!) and > have had to adjust to the inevitable differences between the presentation > of commercial and 'for-the-love-of-it' software. Having said that, I really > do like Gambas: it is my kind of software. > > Here is a module to print EAN-13 barcodes from first principles. I wrote it > because I could not get scannable results using the available ttf fonts. > > In this demonstration, the barcode module is called by a simple FMain which > will print the resultant barcode on the screen or on a default printer. The > logic comes (as does the meaning of life itself) from Wikipedia > (http://en.wikipedia.org/wiki/European_Article_Number). I have not checked > the array data against the Wikipedia article as well as I should. Please > check. http://www.nabble.com/file/p17303208/barcode-0.0.3.tar.gz > barcode-0.0.3.tar.gz Can I have your full name to make an about box for your program? -- Benoit Minisini From epileg at ...626... Thu May 22 13:35:05 2008 From: epileg at ...626... (=?ISO-8859-1?Q?Ep=EDleg?=) Date: Thu, 22 May 2008 13:35:05 +0200 Subject: [Gambas-user] Runtime In-Reply-To: <200805212241.55594.gambas@...1...> References: <4832CE37.20700@...1400...> <48345A00.7040807@...1237...> <200805212241.55594.gambas@...1...> Message-ID: <48355A69.5080406@...626...> En/na Benoit Minisini ha escrit: > On mercredi 21 mai 2008, Leonardo Miliani wrote: >> Kari Laine ha scritto: >>> Hi, >>> >>> I don't understand much about compilers - so I ask... >>> >>> Benoit, why you decided to use runtime instead making Gambas a "true" >>> compiler without the need for a runtime? >>> >>> Best Regards >>> Kari Laine >> Interesting question... >> I'm curios too ;-) > > 1) Writing a compiler (like gcc) is too complex for me. Well, not really, but > I don't have the time to do that. > > 2) Writing an interpreter is easier, and allow more freedom. Writing its own > interpreter is a bit like writing its own CPU. The runtime is that CPU. The > last sentence is a shortcut, it is more complex, of course. > > 3) A program written in C/C++ has its "runtime" too, but you don't see it. gcc > links it to your program by default. The only difference is that the gcc > runtime (let's use that name for libc.so or libgcc_s.so) is always installed > by default. Not the Gambas runtime. Very interesting but, if the Gambas runtime is writen in c/c++, this mean that Gambas add another abstraction layer between compiled gambas program and the hardware. In other words, Gambas runtime has also it's runtime too, the gcc one. Isn't it? Best regards, Ep?leg. > > 4) Installing the runtime would not be a problem with binary packages > correctly done and a modern packaging system. > > Other questions? > From gambas at ...1... Thu May 22 13:41:59 2008 From: gambas at ...1... (Benoit Minisini) Date: Thu, 22 May 2008 13:41:59 +0200 Subject: [Gambas-user] Runtime In-Reply-To: <48355A69.5080406@...626...> References: <4832CE37.20700@...1400...> <200805212241.55594.gambas@...1...> <48355A69.5080406@...626...> Message-ID: <200805221341.59768.gambas@...1...> On jeudi 22 mai 2008, Ep?leg wrote: > En/na Benoit Minisini ha escrit: > > On mercredi 21 mai 2008, Leonardo Miliani wrote: > >> Kari Laine ha scritto: > >>> Hi, > >>> > >>> I don't understand much about compilers - so I ask... > >>> > >>> Benoit, why you decided to use runtime instead making Gambas a "true" > >>> compiler without the need for a runtime? > >>> > >>> Best Regards > >>> Kari Laine > >> > >> Interesting question... > >> I'm curios too ;-) > > > > 1) Writing a compiler (like gcc) is too complex for me. Well, not really, > > but I don't have the time to do that. > > > > 2) Writing an interpreter is easier, and allow more freedom. Writing its > > own interpreter is a bit like writing its own CPU. The runtime is that > > CPU. The last sentence is a shortcut, it is more complex, of course. > > > > 3) A program written in C/C++ has its "runtime" too, but you don't see > > it. gcc links it to your program by default. The only difference is that > > the gcc runtime (let's use that name for libc.so or libgcc_s.so) is > > always installed by default. Not the Gambas runtime. > > Very interesting but, if the Gambas runtime is writen in c/c++, this mean > that Gambas add another abstraction layer between compiled gambas program > and the hardware. In other words, Gambas runtime has also it's runtime too, > the gcc one. Isn't it? > > Best regards, > Ep?leg. > Of course. -- Benoit Minisini From ron at ...1740... Thu May 22 14:02:09 2008 From: ron at ...1740... (Ron) Date: Thu, 22 May 2008 14:02:09 +0200 Subject: [Gambas-user] searching sunset/sunrise function In-Reply-To: <200805221139.40532.gambas@...1...> References: <48314FFD.10701@...1740...> <20080522074039.M92236@...951...> <48353BE0.9030708@...1740...> <200805221139.40532.gambas@...1...> Message-ID: <483560C1.4030107@...1740...> Benoit Minisini schreef: > On jeudi 22 mai 2008, Ron wrote: > >>> If you have the snippets, I'm interested in converting to gambas >>> >>> >>> ---------- Original Message ----------- >>> From: Ron >>> To: mailing list for gambas users >>> Sent: Mon, 19 May 2008 12:01:33 +0200 >>> Subject: [Gambas-user] searching sunset/sunrise function >>> >>> >>>> Hi, >>>> >>>> Does anybody know if a sunset/sunrise calculator functions/snippet in >>>> gambas exists by any chance? >>>> >>>> I have found some vb and vbscript snippets, but porting them is not >>>> easy, or they give wrong results. >>>> >>>> Regards, >>>> Ron. >>>> >> Nando, >> >> I have attached the module made so far. >> >> CalcSunTimes() is returning fair results, as far as I an see, but >> haven't checked it much, you're welcome to make it better. (see link >> above routine) >> CalcMoonPhase() is the beginning of converting code (from link in >> module), but the phase it returns is false, puzzle as to why, maybe >> usage of wrong datatype, or round()s? would be nice to get this fixed. >> >> Alas I'm no Gambas nor Math/Astronomy wizard. >> >> Regards, >> Ron. >> > > Math.Floor() in Javascript must be replaced by Int(), not Round(). Maybe it is > the source of the problem. > > Regards, > Ok, got it working ok now. The Int()'s did magic, and I forgot ( ) around a calculation somewhere. The new MoonPhase routine is attached. Thanks, Ron. -------------- next part -------------- 'http://home.att.net/~srschmitt/script_moon_phase.html PUBLIC FUNCTION CalcMoonPhase() DIM yy, mm, k1, k2, k3, jd AS Integer DIM ip, dp, np, rp AS Float DIM AG AS Float 'moon's age DIM DI AS Float 'moon's distance in earth radii DIM LA AS Float 'moon's ecliptic latitude DIM LO AS Float 'moon's ecliptic longitude DIM Phase, Zodiac AS String DIM Y, D, M AS Integer y = Year(Now) m = Month(Now) d = Day(Now) 'calculate the Julian Date at 12h UT YY = Y - Int((12 - M) / 10) MM = M + 9 IF (MM >= 12) THEN MM = MM - 12 K1 = Int(365.25 * (YY + 4712)) K2 = Int(30.6 * MM + 0.5) K3 = Int(Int((YY / 100) + 49) * 0.75) - 38 JD = K1 + K2 + D + 59 'for dates in Julian calendar IF (JD > 2299160) THEN JD = JD - K3 'for Gregorian calendar 'calculate moon's age in days IP = normalize((JD - 2451550.1) / 29.530588853) AG = IP * 29.53 IF (AG < 1.84566) THEN Phase = "NEW" ELSE IF (AG < 5.53699) THEN Phase = "Evening crescent" ELSE IF (AG < 9.22831) THEN Phase = "First quarter" ELSE IF (AG < 12.91963) THEN Phase = "Waxing gibbous" ELSE IF (AG < 16.61096) THEN Phase = "FULL" ELSE IF (AG < 20.30228) THEN Phase = "Waning gibbous" ELSE IF (AG < 23.99361) THEN Phase = "Last quarter" ELSE IF (AG < 27.68493) THEN Phase = "Morning crescent" ELSE Phase = "NEW" ENDIF IP = IP * 2 * Pi 'Convert phase to radians 'calculate moon's distance DP = 2 * Pi * normalize((JD - 2451562.2) / 27.55454988) DI = 60.4 - 3.3 * Cos(DP) - 0.6 * Cos(2 * IP - DP) - 0.5 * Cos(2 * IP) 'calculate moon's ecliptic latitude NP = 2 * Pi * normalize((JD - 2451565.2) / 27.212220817) LA = 5.1 * Sin(NP) 'calculate moon's ecliptic longitude RP = normalize((JD - 2451555.8) / 27.321582241) LO = 360 * RP + 6.3 * Sin(DP) + 1.3 * Sin(2 * IP - DP) + 0.7 * Sin(2 * IP) IF (LO < 33.18) THEN Zodiac = "Pisces" ELSE IF (LO < 51.16) THEN Zodiac = "Aries" ELSE IF (LO < 93.44) THEN Zodiac = "Taurus" ELSE IF (LO < 119.48) THEN Zodiac = "Gemini" ELSE IF (LO < 135.30) THEN Zodiac = "Cancer" ELSE IF (LO < 173.34) THEN Zodiac = "Leo" ELSE IF (LO < 224.17) THEN Zodiac = "Virgo" ELSE IF (LO < 242.57) THEN Zodiac = "Libra" ELSE IF (LO < 271.26) THEN Zodiac = "Scorpio" ELSE IF (LO < 302.49) THEN Zodiac = "Sagittarius" ELSE IF (LO < 311.72) THEN Zodiac = "Capricorn" ELSE IF (LO < 348.58) THEN Zodiac = "Aquarius" ELSE Zodiac = "Pisces" END IF 'so longitude is not greater than 360! IF (LO > 360) THEN LO = LO - 360 PRINT "Moon phase is " & Phase & "." PRINT "Moon is in " & Zodiac & "." PRINT "Age from new " & Round(ag, -2) & " days." PRINT "Distance " & Round(di, -2) & " Earth radii." PRINT "Ecliptic latitude: " & Round(la, -2) & " degrees." PRINT "Ecliptic longitude: " & Round(lo, -2) & " degrees." IF isleapyear(y) THEN PRINT "This is a leap year." END FUNCTION normalize(v AS Float) AS Float v = v - Round(v) IF (v < 0) THEN v = v + 1 RETURN v END PRIVATE FUNCTION isleapyear(y AS Integer) AS Boolean DIM x, w, z AS Integer x = Int(y - 4 * Int(y / 4)) w = Int(y - 100 * Int(y / 100)) z = Int(y - 400 * Int(y / 400)) IF (x = 0) THEN 'possible leap Year IF ((w = 0) & (NOT z = 0)) RETURN FALSE 'not a leap Year ELSE RETURN TRUE 'is leap Year END IF END IF RETURN FALSE END From emil at ...1913... Thu May 22 14:26:59 2008 From: emil at ...1913... (Emil Tchekov) Date: Thu, 22 May 2008 14:26:59 +0200 Subject: [Gambas-user] Runtime In-Reply-To: <48355A69.5080406@...626...> Message-ID: There was (from the begining of modern computing on) the same discussion - 1) do you need the last quant of speed, efficience, whole controle over ressources etc. or 2) do you wish fast and uncomplicated RESULTS You will pay for the first one with long hard work until you can get useable results. (Remember the best efficience is only reachable on machine level - I have heard /may be fairy tale/ that in the ROM of the spaceship Voyager /which is on trip trough the Milky Way with some demo of us - mankind/ there was round about 280 Bytes free after installing the OS. SO.. one of the programmers was able to write a Star-Light orientation routine (image recognition for star constelations) which fits in those 280 Bytes... In 2 Years... You will pay for the second one with some resources und may be with some unefficience or even need of runtime environment, but you can get working results within minutes... Packing the runtime with the executable is space wasting from that moment on, after you have more than one app on your HDD... Very best regards Emil P.S. I will be the first user of language, that combines RAD with code&space efficience of Assembler ;-), but I am realist enough to know, that you can NOT have everything together... -----Urspr?ngliche Nachricht----- Von: gambas-user-bounces at lists.sourceforge.net [mailto:gambas-user-bounces at lists.sourceforge.net]Im Auftrag von Ep?leg Gesendet: Donnerstag, 22. Mai 2008 13:35 An: mailing list for gambas users Betreff: Re: [Gambas-user] Runtime En/na Benoit Minisini ha escrit: > On mercredi 21 mai 2008, Leonardo Miliani wrote: >> Kari Laine ha scritto: >>> Hi, >>> >>> I don't understand much about compilers - so I ask... >>> >>> Benoit, why you decided to use runtime instead making Gambas a "true" >>> compiler without the need for a runtime? >>> >>> Best Regards >>> Kari Laine >> Interesting question... >> I'm curios too ;-) > > 1) Writing a compiler (like gcc) is too complex for me. Well, not really, but > I don't have the time to do that. > > 2) Writing an interpreter is easier, and allow more freedom. Writing its own > interpreter is a bit like writing its own CPU. The runtime is that CPU. The > last sentence is a shortcut, it is more complex, of course. > > 3) A program written in C/C++ has its "runtime" too, but you don't see it. gcc > links it to your program by default. The only difference is that the gcc > runtime (let's use that name for libc.so or libgcc_s.so) is always installed > by default. Not the Gambas runtime. Very interesting but, if the Gambas runtime is writen in c/c++, this mean that Gambas add another abstraction layer between compiled gambas program and the hardware. In other words, Gambas runtime has also it's runtime too, the gcc one. Isn't it? Best regards, Ep?leg. > > 4) Installing the runtime would not be a problem with binary packages > correctly done and a modern packaging system. > > Other questions? > ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From epileg at ...626... Thu May 22 15:02:23 2008 From: epileg at ...626... (=?ISO-8859-1?Q?Ep=EDleg?=) Date: Thu, 22 May 2008 15:02:23 +0200 Subject: [Gambas-user] Runtime In-Reply-To: References: Message-ID: <48356EDF.1020803@...626...> En/na Emil Tchekov ha escrit: > There was (from the begining of modern computing on) the same discussion - > > 1) do you need the last quant of speed, efficience, whole controle over > ressources etc. > > or > > 2) do you wish fast and uncomplicated RESULTS > > > You will pay for the first one with long hard work until you can get useable > results. > (Remember the best efficience is only reachable on machine level - I have > heard /may be fairy tale/ that in the ROM of the spaceship Voyager /which is > on trip trough the Milky Way with some demo of us - mankind/ there was round > about 280 Bytes free after installing the OS. SO.. one of the programmers > was able to write a Star-Light orientation routine (image recognition for > star constelations) which fits in those 280 Bytes... In 2 Years... > > > You will pay for the second one with some resources und may be with some > unefficience or even need of runtime environment, but you can get working > results within minutes... > > Packing the runtime with the executable is space wasting from that moment > on, after you have more than one app on your HDD... > > > Very best regards > > Emil > > P.S. I will be the first user of language, that combines RAD with code&space > efficience of Assembler ;-), but I am realist enough to know, that you can > NOT have everything together... I'm realist about this too, but we are talking about this because somebody has asked why Benoit chose bytecode compiling style. Best regards, Ep?leg. > > > > > -----Urspr?ngliche Nachricht----- > Von: gambas-user-bounces at lists.sourceforge.net > [mailto:gambas-user-bounces at lists.sourceforge.net]Im Auftrag von Ep?leg > Gesendet: Donnerstag, 22. Mai 2008 13:35 > An: mailing list for gambas users > Betreff: Re: [Gambas-user] Runtime > > > En/na Benoit Minisini ha escrit: >> On mercredi 21 mai 2008, Leonardo Miliani wrote: >>> Kari Laine ha scritto: >>>> Hi, >>>> >>>> I don't understand much about compilers - so I ask... >>>> >>>> Benoit, why you decided to use runtime instead making Gambas a "true" >>>> compiler without the need for a runtime? >>>> >>>> Best Regards >>>> Kari Laine >>> Interesting question... >>> I'm curios too ;-) >> 1) Writing a compiler (like gcc) is too complex for me. Well, not really, > but >> I don't have the time to do that. >> >> 2) Writing an interpreter is easier, and allow more freedom. Writing its > own >> interpreter is a bit like writing its own CPU. The runtime is that CPU. > The >> last sentence is a shortcut, it is more complex, of course. >> >> 3) A program written in C/C++ has its "runtime" too, but you don't see it. > gcc >> links it to your program by default. The only difference is that the gcc >> runtime (let's use that name for libc.so or libgcc_s.so) is always > installed >> by default. Not the Gambas runtime. > > Very interesting but, if the Gambas runtime is writen in c/c++, this mean > that Gambas add another abstraction layer between compiled gambas program > and the hardware. In other words, Gambas runtime has also it's runtime too, > the gcc one. Isn't it? > > Best regards, > Ep?leg. > >> 4) Installing the runtime would not be a problem with binary packages >> correctly done and a modern packaging system. >> >> Other questions? >> > > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > 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: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From leonardo at ...1237... Thu May 22 15:29:14 2008 From: leonardo at ...1237... (Leonardo Miliani) Date: Thu, 22 May 2008 15:29:14 +0200 Subject: [Gambas-user] Runtime In-Reply-To: <48356EDF.1020803@...626...> References: <48356EDF.1020803@...626...> Message-ID: <4835752A.9080702@...1237...> This is similar to the discussion about compiled/interpreted about BASIC, did you remember? :-) In the beginning, BASIC was born as a compiled language.. Then, in the second half of 70s' the interpreted versions raised and began more popular than the original one. This has been until mid 80s', when the quest for more speed of the BASIC programs (trying to reach the performances of TurboPascal & C.) was the spin to come back to the beginning, proposing compiled versions again (QuickBASIC and similars). VisualBASIC changed the things another time, reusing an interpreted version of the language... and the new languages have followed this trend... Python, Ruby, Java etc... all of these ones use a runtime interpreter to translate the source code in bytecode and let it to be executed by an interpreter. First of all, because of the speed of the modern CPUs... nothing to compare with the old ones! Today a modern CPU is able to do the work of thousand old PCs in less time. Personally, if I should choose I preferred to choose speed against other features but I have to admit that the interpreter solution is very easy -- Ciao. Leo. Web: www.leonardomiliani.com E-mail: leonardo at ...1237... Scegli software opensource - Choose opensource software Co-fondatore di Gambas-it.org Il sito di riferimento della comunit? italiana degli utenti di Gambas www.gambas-it.org From sourceforge-raindog2 at ...94... Thu May 22 16:41:54 2008 From: sourceforge-raindog2 at ...94... (Rob) Date: Thu, 22 May 2008 10:41:54 -0400 Subject: [Gambas-user] Runtime In-Reply-To: <4835752A.9080702@...1237...> References: <48356EDF.1020803@...626...> <4835752A.9080702@...1237...> Message-ID: <200805221041.54666.sourceforge-raindog2@...94...> On Thursday 22 May 2008 09:29, Leonardo Miliani wrote: > Personally, if I should choose I preferred to choose speed against > other features but I have to admit that the interpreter solution is > very easy I ported a customer's application from VB to Gambas several years ago (circa Gambas 1.0) and the Gambas version was noticeably more responsive on the same hardware despite the VB version being compiled into native code (or at least that's what the VB IDE calls it.) It could have been that my optimization skills were better than the author of the original program, or it could have been Linux acting more responsively than Windows, but if there is a performance hit for using bytecode, it's really not that much. "Native code compiler" when speaking of high-level languages is often just a euphemism for "our compiler copies the same routines that our interpreter uses into your executable," resulting in little if any difference in performance. Further, writing a C program with a modern, mainstream compiler, even with all the optimization switches turned on, even if you were to use a compiler that doesn't rely on a widely available runtime as gcc does, doesn't give you anywhere near the speeds you get by writing assembly code from scratch. Just as with Gambas, the C compiler and all the libraries give you a huge amount of convenience (and maintainability) at the expense of raw performance. And even if you were to write your application in an assembly language, as soon as you want to do any kind of I/O or show something on the screen, you're making calls to someone else's code, written in C and dependent upon a whole lot of other code written in C. An mp3 encoder written in Gambas using liblame (assuming that's possible with API calls) will be exactly as fast as an mp3 encoder written in C or even assembly language using liblame, because all the heavy lifting is done by a library. It may be that if you're writing something in Gambas to generate fractals in real time, it'll be slower than it would be in C, but if you're the kind of person who writes real-time fractal generators, you're probably going to end up writing for an assembler anyway. Rob From pinozollo at ...626... Thu May 22 17:59:17 2008 From: pinozollo at ...626... (Pino Zollo) Date: Thu, 22 May 2008 11:59:17 -0400 Subject: [Gambas-user] MoonPhase In-Reply-To: References: Message-ID: <200805221159.20442.pinozollo@...626...> Alle 08:26, gioved? 22 maggio 2008, gambas-user-request at ...48....net ha scritto: > >> Alas I'm no Gambas nor Math/Astronomy wizard. > >> > >> Regards, > >> Ron. > >> ? ? > > > > Math.Floor() in Javascript must be replaced by Int(), not Round(). Maybe > > it is the source of the problem. > > > > Regards, > > ? > > Ok, got it working ok now. > The Int()'s did magic, and I forgot ( ) around a calculation somewhere. > The new MoonPhase routine is attached. > > Thanks, > Ron. Ron can you put your code somewhere where I can download it. I am interested to include it into my project. Thanks Pino P.S. Attachments do not come with Gambas-user Digest From timothy.marshal-nichols at ...247... Thu May 22 18:48:47 2008 From: timothy.marshal-nichols at ...247... (timothy) Date: Thu, 22 May 2008 17:48:47 +0100 Subject: [Gambas-user] Load a Form into a Frame? In-Reply-To: <8D42310D957CFB46AA11921A711D4D16B4960D6D@...1899...> Message-ID: <001201c8bc2b$b6220e80$6401a8c0@...1587...> > -----Original Message----- > From: gambas-user-bounces at lists.sourceforge.net > [mailto:gambas-user-bounces at lists.sourceforge.net] On Behalf > Of Stefan Miefert > Sent: Tuesday, 20 May 2008 11:25 AM > To: gambas-user at lists.sourceforge.net > Subject: [Gambas-user] Load a Form into a Frame? > > > Hello, > > i try the gambas Tip 11 but it soent work . I want to load a > Form "Fchild" into anothers Form "Frame" Element but it > dosent work. Have someone an example for this ? > I guess you are using Gambas 1 as you mention Tip 11. This does the job: DIM f AS Fchild f = NEW Fchild(Frame1) However this takes over the entire control and you cannot see the border of Frame1. I suggest you place a Panel inside the Frame and make it the size you want and then do: DIM f AS Fchild f = NEW Fchild(Panel1) Simply because it looks a bit better. Thanks 8-{)} Timothy Marshal-Nichols From m0e.lnx at ...626... Thu May 22 23:54:53 2008 From: m0e.lnx at ...626... (M0E Lnx) Date: Thu, 22 May 2008 16:54:53 -0500 Subject: [Gambas-user] Load a Form into a Frame? In-Reply-To: <001201c8bc2b$b6220e80$6401a8c0@...1587...> References: <8D42310D957CFB46AA11921A711D4D16B4960D6D@...1899...> <001201c8bc2b$b6220e80$6401a8c0@...1587...> Message-ID: <1f1e8c1b0805221454o267d2654q4a48c8b39df0eb12@...627...> I'm currently working an application that works similar to this try using an embedder and use the reparent method to redirect the form to the container FMyForm.Reparent(Parent as container) FmyForm.show() See if that helps any On 5/22/08, timothy wrote: > > > > > -----Original Message----- > > From: gambas-user-bounces at lists.sourceforge.net > > [mailto:gambas-user-bounces at lists.sourceforge.net] On Behalf > > Of Stefan Miefert > > Sent: Tuesday, 20 May 2008 11:25 AM > > To: gambas-user at lists.sourceforge.net > > Subject: [Gambas-user] Load a Form into a Frame? > > > > > > Hello, > > > > i try the gambas Tip 11 but it soent work . I want to load a > > Form "Fchild" into anothers Form "Frame" Element but it > > dosent work. Have someone an example for this ? > > > > I guess you are using Gambas 1 as you mention Tip 11. > > This does the job: > > DIM f AS Fchild > f = NEW Fchild(Frame1) > > However this takes over the entire control and you cannot see the border > of Frame1. > > I suggest you place a Panel inside the Frame and make it the size you > want and then do: > > DIM f AS Fchild > f = NEW Fchild(Panel1) > > Simply because it looks a bit better. > > Thanks > > 8-{)} Timothy Marshal-Nichols > > > > > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From m0e.lnx at ...626... Thu May 22 23:56:38 2008 From: m0e.lnx at ...626... (M0E Lnx) Date: Thu, 22 May 2008 16:56:38 -0500 Subject: [Gambas-user] Fwd: bug with GAMBAS 2.6 and Slackware 12.0 In-Reply-To: <200805220227.57224.gambas@...1...> References: <200805220227.57224.gambas@...1...> Message-ID: <1f1e8c1b0805221456o56fe6408x3534a93c67aea0d4@...627...> For what it's worth, I've compiled gambas2-2.6 and later SVN revisions on VectorLinux 5.9 Light which is based on Slack 12.0 without a problem On 5/21/08, Benoit Minisini wrote: > This is apparently a bug in Slackware that prevent Gambas to compile. I > forward it to the mailing-list... > > ------------------------------------------------------- > > Subject : bug with GAMBAS 2.6 and Slackware 12.0 > Date : mercredi 21 mai 2008 > From : "Sean Robinson" > To : gambas at ...1... > > While trying to compile GAMBAS 2.6 (Gtk) on Slackware 12.0, I had > difficulty with ffi.h not finding ffitarget.h. While this is a Slackware > bug, GAMBAS is the only package I've found that triggered this error and I > thought I'd pass the fix on in case you receive other bug reports on Slack > 12.0. The fix was to change the line with #include to > #include in /usr/include/ffi.h. > > -- > Sean Robinson > > ------------------------------------------------------- > > -- > Benoit Minisini > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From m0e.lnx at ...626... Fri May 23 00:12:11 2008 From: m0e.lnx at ...626... (M0E Lnx) Date: Thu, 22 May 2008 17:12:11 -0500 Subject: [Gambas-user] Load a Form into a Frame? In-Reply-To: <1f1e8c1b0805221454o267d2654q4a48c8b39df0eb12@...627...> References: <8D42310D957CFB46AA11921A711D4D16B4960D6D@...1899...> <001201c8bc2b$b6220e80$6401a8c0@...1587...> <1f1e8c1b0805221454o267d2654q4a48c8b39df0eb12@...627...> Message-ID: <1f1e8c1b0805221512l76c8f0f9y3c44251af562ac27@...627...> Never mind, I spoke too soon... Looks like that will not work. I am embedding external gambas apps, not forms that belong to the same project. On 5/22/08, M0E Lnx wrote: > I'm currently working an application that works similar to this > > try using an embedder and use the reparent method to redirect the form > to the container > > > FMyForm.Reparent(Parent as container) > FmyForm.show() > > See if that helps any > > > On 5/22/08, timothy wrote: > > > > > > > > > -----Original Message----- > > > From: gambas-user-bounces at lists.sourceforge.net > > > [mailto:gambas-user-bounces at lists.sourceforge.net] On Behalf > > > Of Stefan Miefert > > > Sent: Tuesday, 20 May 2008 11:25 AM > > > To: gambas-user at lists.sourceforge.net > > > Subject: [Gambas-user] Load a Form into a Frame? > > > > > > > > > Hello, > > > > > > i try the gambas Tip 11 but it soent work . I want to load a > > > Form "Fchild" into anothers Form "Frame" Element but it > > > dosent work. Have someone an example for this ? > > > > > > > I guess you are using Gambas 1 as you mention Tip 11. > > > > This does the job: > > > > DIM f AS Fchild > > f = NEW Fchild(Frame1) > > > > However this takes over the entire control and you cannot see the border > > of Frame1. > > > > I suggest you place a Panel inside the Frame and make it the size you > > want and then do: > > > > DIM f AS Fchild > > f = NEW Fchild(Panel1) > > > > Simply because it looks a bit better. > > > > Thanks > > > > 8-{)} Timothy Marshal-Nichols > > > > > > > > > > > > > > ------------------------------------------------------------------------- > > This SF.net email is sponsored by: Microsoft > > Defy all challenges. Microsoft(R) Visual Studio 2008. > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > From ron at ...1740... Fri May 23 10:18:41 2008 From: ron at ...1740... (Ron) Date: Fri, 23 May 2008 10:18:41 +0200 Subject: [Gambas-user] System.Domain empty In-Reply-To: <200805151735.03734.gambas@...1...> References: <482C3331.90302@...1740...> <200805151735.03734.gambas@...1...> Message-ID: <48367DE1.7000703@...1740...> Benoit Minisini schreef: > On jeudi 15 mai 2008, Ron wrote: > >> System.Domain is empty (none) on my system (Debian 4.0) gambas 2.6 >> >> hostname -f is giving correct fqdn >> >> Where should it be defined? >> >> Regards, >> Ron. >> >> > > The Linux man page are not very clear... > > Apparently, you have: > - A system host name. > - A system domain name, or DNS domain name. > - A NIS/YP domain name. > > hostname -f returns the third, but System.Domain uses the getdomainname() > system call that seems to return the second. > > Try "man hostname" to get more information. > > Regards, > > For reference, I finally have this fixed by this: server:~# sysctl kernel.domainname kernel.domainname = (none) Set it correctly: server:~# sysctl kernel.domainname=mydomain.com kernel.domainname = mydomain.com Put it also in /etc/sysctl.conf. System.Domain is ok now. regards, Ron. From jscops at ...11... Fri May 23 18:50:21 2008 From: jscops at ...11... (Jacky) Date: Fri, 23 May 2008 18:50:21 +0200 Subject: [Gambas-user] Generating EAN13 barcodes In-Reply-To: <17303208.post@...1379...> References: <17303208.post@...1379...> Message-ID: <200805231850.21732.jscops@...11...> Le Sunday 18 May 2008 15:51:16 charlesg, vous avez ?crit?: > Firstly, a thank you to Benoit and all involved with the development of > Gambas. I am not a professional programmer (as the following shows!) and > have had to adjust to the inevitable differences between the presentation > of commercial and 'for-the-love-of-it' software. Having said that, I really > do like Gambas: it is my kind of software. > > Here is a module to print EAN-13 barcodes from first principles. I wrote it > because I could not get scannable results using the available ttf fonts. > > In this demonstration, the barcode module is called by a simple FMain which > will print the resultant barcode on the screen or on a default printer. The > logic comes (as does the meaning of life itself) from Wikipedia > (http://en.wikipedia.org/wiki/European_Article_Number). I have not checked > the array data against the Wikipedia article as well as I should. Please > check. http://www.nabble.com/file/p17303208/barcode-0.0.3.tar.gz > barcode-0.0.3.tar.gz I have put your program "modeCrBcode" in Laurux to test it. Your module is very fabulous for printing barcode etiquettes. If you are Ok i put it in the next version. Thank you very much. Jacky From rterry at ...1822... Tue May 20 00:09:45 2008 From: rterry at ...1822... (richard terry) Date: Tue, 20 May 2008 08:09:45 +1000 Subject: [Gambas-user] Gambas "Best Practices" In-Reply-To: References: Message-ID: <200805200809.45503.rterry@...1822...> This probably won't be of much use to you because I'm not in your programming league and probably off topic for you, however, my 2 cents worth is: QT walks all over GTK. The combo box problem - agree. I've written a medical records system in VB back in 1996/7 which I use at work, and have been tinkering do some modelling of a new system in gambas, and have found similar problems to yourself. Unless I'm wrong, the only way to easily do this would be to roll your own control. If you are into other languages take a look at the cPhraseWheel in the gnumed project which Ian Haywood and Karsten modelled after my vb work from the 90's. Its a super-control - textbox, popup list, spell checker, backend updater etc etc all rolled into one. In my tinkering I must admit that I simply use a textbox with an attatched list box, which popups up as the user types eg to search for people use either j m (would bring up all firstnames j surnames s, or s,j (like the way you do in your example or john, would bring up all the johns, or ,smith would bring up all the smiths . I find there are lots of limitations with many of the qt controls in annoying ways, but at the end of the day they function well, the IDE of gambas is easy to use. Don't know what database you are using but Postgresql seems to stand out from the pack. pgAdmin3 is available on linux, not bad, but for anything complex like working out complex queries or functions (with my puny cerebrum), I purchased a copy of EMS sqlmanager for postgres for windows which I run in virtualbox (seamless mode) on my ARCH linux laptop, so I can can past queries etc between the two environments - works well. Hope you stick with gambas and bring some expertise, as many seem to come and go due to some of the frustrations inherent in a developing language and lack of documentation. Regards Richard On Tue, 20 May 2008 01:43:01 am Doug Gack wrote: > Background: > > I am an independent software developer, primarily providing custom > business applications to small businesses. I do most of my work in M$ > Access, but also some in PHP and ASP Internet forms. (After programming for > 40+ years, another language is easier to learn than the first few.) I've > been looking for a couple of years for a way to do the same thing in Linux, > and it looks like I've finally found it. Thank you. Gambas! > > I just completed a conversion of a (tiny) application from Access/ASP to > Gambas/MySql/PHP, and it works just fine, thank you very much! Except.... > > As when learning any new environment, there's a prolonged period of > developing a "style" for the environment. > > I started off trying to create a "Graphical" application, not knowing any > better, and soon (well, not so soon, actually) realized that a "QT > Application" would give me a lot better user environment. That's just one > of the bumps encountered on the road, but I got it to work, so I'm better > for the experience. > > Question is, what can anyone tell me about better ways to approach the > subject? > > Some starter questions: > > - Which graphical environment, and why? > > - I've been spoiled by Access's methods with combo boxes, and it's become > my most used way of looking up data. If I want to find "Smith, John", I > start typing "smi...", and soon his name pops up. Looks like Linux > subscribes to the browser forms method of only using only the first letter > out of a list. I type "S" and get "Sa...", then type "m" and get "Ma...". > When I have a list with 15 or 20 thousand names, this won't do. How have > others solved this issue? > > Any starter suggestions? > > TIA, > > Doug > > > Doug Gack > Homepage: http://dgack.selfip.com > > _________________________________________________________________ > E-mail for the greater good. Join the i?m Initiative from Microsoft. > http://im.live.com/Messenger/IM/Join/Default.aspx?source=EML_WL_ > GreaterGood > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From serif at ...1870... Sun May 25 12:20:54 2008 From: serif at ...1870... (Mike Brett) Date: Sun, 25 May 2008 11:20:54 +0100 Subject: [Gambas-user] Control Layout questions Message-ID: <48393D86.90906@...1870...> Advice would be appreciated on the following please.... I'm trying to develop using 2.6.0 [using gb.qt and gb.qt.ext components] on Fedora 8, for an eventual target user platform of the Asus eeePC (KDE based 800x480 screen). I want to use several closely spaced rows of three controls - a Label next to a TextBox next to a ComboBox. I have set the Font size of all these controls to -4, because screen area is at a real premium. Questions 1. Layout seems to be permanently set to snap to grid, and for my purposes the grid increments are rather too big. Do I have control over (a) snapping on/off, and (b) grid 'spacing'? Questions 2. The Labels, TextBoxes and ComboBoxes all have a Height setting of 22, and have been top-aligned; however the bottoms of the ComboBoxes hang lower than the other two controls. I can however make the ComboBoxes have the same visual height as the Label/TextBox by dragging their bottom handle up. However the properties still show height = 22 for all three control types, even after this adjustment. When I (a) save and re-open the project, or (b) run it the comboboxes look slightly too tall again. Will the ComboBoxes in my final installation package look right or wrong? What's actually going on here, and what control if any do I have over the situation? Thanks - Mike - From gambas at ...1... Sun May 25 12:43:38 2008 From: gambas at ...1... (Benoit Minisini) Date: Sun, 25 May 2008 12:43:38 +0200 Subject: [Gambas-user] Control Layout questions In-Reply-To: <48393D86.90906@...1870...> References: <48393D86.90906@...1870...> Message-ID: <200805251243.38831.gambas@...1...> On dimanche 25 mai 2008, Mike Brett wrote: > Advice would be appreciated on the following please.... > > I'm trying to develop using 2.6.0 [using gb.qt and gb.qt.ext components] > on Fedora 8, for an eventual target user platform of the Asus eeePC (KDE > based 800x480 screen). > > I want to use several closely spaced rows of three controls - a Label > next to a TextBox next to a ComboBox. I have set the Font size of all > these controls to -4, because screen area is at a real premium. You don't have to change the font size in your project. You must change the default desktop font size, which might not be configure properly on Fedora. You may have the same problem as Ubuntu users: the qt library is not correctly configured when installed. To configure the qt library, you must use the qtconfig program. Ask other Fedora users how to install it. > > Questions 1. Layout seems to be permanently set to snap to grid, and for > my purposes the grid increments are rather too big. Do I have control > over (a) snapping on/off, and (b) grid 'spacing'? (a) Yes (b) No. Grid spacing is half the default font height on Gambas 2. It is 1 + 33% the default font font height on Gambas 3. The idea behind that is that the height of all "one-line" controls like Labels, TextBox, ComboBox, RadioButton, CheckBox must been two grid spaces. (Three in Gambas 3). Anyway, you should layout the control with the fixed grid the less as possible. The grid is mainly there for the old vb users. You should always use instead: * The layout containers: HBox, VBox, HPanel, VPanel, or any other container with the Arrangement property set. * The Padding and Spacing properties of these containers. * The Expand and Ignore property of the children controls. > > Questions 2. The Labels, TextBoxes and ComboBoxes all have a Height > setting of 22, and have been top-aligned; however the bottoms of the > ComboBoxes hang lower than the other two controls. I can however make > the ComboBoxes have the same visual height as the Label/TextBox by > dragging their bottom handle up. However the properties still show > height = 22 for all three control types, even after this adjustment. When I > (a) save and re-open the project, or > (b) run it > the comboboxes look slightly too tall again. Why did I change the grid space in Gambas 3? Because I discovered that many themes have enough border to make the 2 grid space height too small. As ComboBoxes (and a few other controls) do not shrink if their contents are not visible, it is sometimes too tall, even if Gambas thinks the contrary. > > Will the ComboBoxes in my final installation package look right or > wrong? What's actually going on here, and what control if any do I have > over the situation? > > Thanks - Mike - > First, fix the qt library default font height, and tell me if things go better after that. Regards, -- Benoit Minisini From pinozollo at ...626... Sun May 25 18:04:47 2008 From: pinozollo at ...626... (Pino Zollo) Date: Sun, 25 May 2008 12:04:47 -0400 Subject: [Gambas-user] Signal #6 Message-ID: <200805251204.48274.pinozollo@...626...> Random crash with Signal #6 and the following message *** glibc detected *** corrupted double-linked list: 0x082c1268 *** fscanf: Illegal seek Any idea ? GAMBAS 2.5 on Debian 4.0r3 Thanks Pino From gambas at ...1... Sun May 25 18:09:01 2008 From: gambas at ...1... (Benoit Minisini) Date: Sun, 25 May 2008 18:09:01 +0200 Subject: [Gambas-user] Signal #6 In-Reply-To: <200805251204.48274.pinozollo@...626...> References: <200805251204.48274.pinozollo@...626...> Message-ID: <200805251809.01159.gambas@...1...> On dimanche 25 mai 2008, Pino Zollo wrote: > Random crash with Signal #6 and the following message > > *** glibc detected *** corrupted double-linked list: 0x082c1268 *** > fscanf: Illegal seek > > Any idea ? > > GAMBAS 2.5 on Debian 4.0r3 > > Thanks > > Pino > No, but if you could send me a backtrace of a coredump and try to reproduce it, I will be able to fix it! To see how to send me this information, go to the troubleshooting section / 'reporting a problem' page of the web site. Regards, -- Benoit Minisini From serif at ...1870... Sun May 25 22:23:50 2008 From: serif at ...1870... (Mike Brett) Date: Sun, 25 May 2008 21:23:50 +0100 Subject: [Gambas-user] Control Layout questions In-Reply-To: <200805251243.38831.gambas@...1...> References: <48393D86.90906@...1870...> <200805251243.38831.gambas@...1...> Message-ID: <4839CAD6.5070708@...1870...> Benoit: Thanks very much for this which I'm working through. I've got qt-config sorted out, and would now like to compile and install my project on the target platform to see whether it looks anything like right. I presume there must be some instructions/examples somewhere on gambasrad.org describing (for complete Gambas and Linux beginners) how to make executables from gambas projects - including things like what has to be installed on the target machine for things to work, even down to where the executable gets installed, whether you run it from a console etc. I can't find anything on these questions at all - please could someone point me to the right URI? Thank you. - Mike - Benoit Minisini wrote: > On dimanche 25 mai 2008, Mike Brett wrote: >> Advice would be appreciated on the following please.... >> >> I'm trying to develop using 2.6.0 [using gb.qt and gb.qt.ext components] >> on Fedora 8, for an eventual target user platform of the Asus eeePC (KDE >> based 800x480 screen). >> >> I want to use several closely spaced rows of three controls - a Label >> next to a TextBox next to a ComboBox. I have set the Font size of all >> these controls to -4, because screen area is at a real premium. > > You don't have to change the font size in your project. You must change the > default desktop font size, which might not be configure properly on Fedora. > You may have the same problem as Ubuntu users: the qt library is not > correctly configured when installed. To configure the qt library, you must > use the qtconfig program. Ask other Fedora users how to install it. > >> Questions 1. Layout seems to be permanently set to snap to grid, and for >> my purposes the grid increments are rather too big. Do I have control >> over (a) snapping on/off, and (b) grid 'spacing'? > > (a) Yes (b) No. > > Grid spacing is half the default font height on Gambas 2. It is 1 + 33% the > default font font height on Gambas 3. > > The idea behind that is that the height of all "one-line" controls like > Labels, TextBox, ComboBox, RadioButton, CheckBox must been two grid spaces. > (Three in Gambas 3). > > Anyway, you should layout the control with the fixed grid the less as > possible. The grid is mainly there for the old vb users. You should always > use instead: > > * The layout containers: HBox, VBox, HPanel, VPanel, or any other container > with the Arrangement property set. > * The Padding and Spacing properties of these containers. > * The Expand and Ignore property of the children controls. > >> Questions 2. The Labels, TextBoxes and ComboBoxes all have a Height >> setting of 22, and have been top-aligned; however the bottoms of the >> ComboBoxes hang lower than the other two controls. I can however make >> the ComboBoxes have the same visual height as the Label/TextBox by >> dragging their bottom handle up. However the properties still show >> height = 22 for all three control types, even after this adjustment. When I >> (a) save and re-open the project, or >> (b) run it >> the comboboxes look slightly too tall again. > > Why did I change the grid space in Gambas 3? Because I discovered that many > themes have enough border to make the 2 grid space height too small. As > ComboBoxes (and a few other controls) do not shrink if their contents are not > visible, it is sometimes too tall, even if Gambas thinks the contrary. > >> Will the ComboBoxes in my final installation package look right or >> wrong? What's actually going on here, and what control if any do I have >> over the situation? >> >> Thanks - Mike - >> > > First, fix the qt library default font height, and tell me if things go better > after that. > > Regards, > From douggack at ...67... Sun May 25 23:43:06 2008 From: douggack at ...67... (Doug Gack) Date: Sun, 25 May 2008 14:43:06 -0700 Subject: [Gambas-user] "Best Practices"; Richard Terry and charlesg. Message-ID: All; 1. I wish I really understood how these "list thingies" worked, but I'll just plod on as best I can. First, charlesg sent in an excellent example of using a keyrelease event form a text (search) box, and populating a pick list from there. Works great. (See his code, below, and/or his complete post of 19 May, 2008.) My methods and perhaps requirements seemed to be a bit different, so I did it my way, but it's quick and efficient. I loaded a table with 8,003 names in it, and the response is as fast as my old hands can type.... The conversion is still a work in progress, but the web side is available at: http://dgack.selfip.com/RollCall/ , and it includes the original documentation for the Access/ASP implementation, and for the current version. I haven't packaged any of it, yet, but is anyone wants a copy, I'll be glad to forward it along. If interested, please read the intro, as it fairly well explains the purpose of this tiny application. There are hot links (in both versions of the documentation) to the forms in use, just click the link. The new implementation docs need a _lot_ of editing, but I'm working on it as time and enthusiasm permit. Lots of the things I encountered lead to more questions, but I'm going to attempt to experiment and answer them myself. I'll post success (or failure) as I get those tasks completed. Note that there are four desktop forms, and three different approaches to doing a look-up. At this point, I believe that there will always be multiple ways in use. Second, I'm using MySql, and the MySql Administrator and Query Browser (Query Tool) in both Winders and Linux. I started with Postgres, but in the final analysis, I think MySql is easier to come to terms with. Too bad I still can't back up and restore Views and Procedures, but I work around that by saving the create code as text files, in case I need to restore them. Third, I create two list boxes (or a combo box and a list box, as needed), where the first list box is visible, and the second one is not. The name in the visible box corresponds to a primary key in the hidden box, so by manipulating the index(es), I can click on the name, and immediately retrieve the corresponding PK in the hidden one. (I would have preferred to use a global array, but I can't, so this is a way to 'cheat'). ~~~~~~~~~~~~~~~~~~~ charlesg's code: As for the name search: I have not used your size datasets but have been > amazed at the speed of the following. Typing text into a TextBox filters the > displayed data in the ListBox. I guess it would be even quicker if you (in > your case) searched from the start of each data record rather than using > instr. A click of the ListBox can then transfer the complete data back to > the TextBox. > ------------------------------------------------ > PUBLIC SUB txtName_keyRelease() > DIM txtUpper AS String > DIM txtList AS String > > IF key.Code = key.Return OR key.Code = key.Enter OR key.Code = key.Tab > THEN > 'go nowhere if field is blank. This does not stop you tabbing out of an > empty field > 'so must still check for valid fields when is clicked. > IF IsNull(txtName.text) THEN > txtName.SetFocus > ELSE 'go to next field > txtDate.SetFocus > ENDIF > ELSE 'filter the listbox to allow entries containing the txtfield text. > IF Len(txtname.Text) = 0 THEN > ListFill 'subroutine to default fill with all the data > ELSE > txtUpper = UCase(txtName.Text) > lstSupplier.Clear > FOR EACH res > IF InStr(UCase(res!p_desc), txtUpper) <> 0 THEN > lstSupplier.Add(Format(res!p_box, "00") & ", " & > Format(res!p_number, "0000") & ", " & res!p_desc & ", " & res!p_date & ", " > & res!p_wherefrom) > ENDIF > NEXT > ENDIF > ENDIF > END ~~~~~~~~~~~~~~~~~~~~~~ For what it is worth, on 2.6, under Fedora and Ubuntu, the key.code stuff doesn't seem to work.?????? Doug Gack Homepage: http://dgack.selfip.com _________________________________________________________________ Give to a good cause with every e-mail. Join the i?m Initiative from Microsoft. http://im.live.com/Messenger/IM/Join/Default.aspx?souce=EML_WL_ GoodCause From sbungay at ...981... Mon May 26 05:08:39 2008 From: sbungay at ...981... (Stephen Bungay) Date: Sun, 25 May 2008 23:08:39 -0400 Subject: [Gambas-user] Gambas "Best Practices" In-Reply-To: <200805200809.45503.rterry@...1822...> References: <200805200809.45503.rterry@...1822...> Message-ID: <483A29B7.8020709@...981...> Richard, Doug; I too popped up a text box and on each keypress searched a table for a partial match, pulled back the recordset and populated a clickable list. IMHO this is bad as it hits the tables far too often, but it depends on how many people are using the app and hitting the tables over the network. The table was in MySQL, and the database hosted on a server with 30 other diskless workstations, all putting demands on the server and I have to say that the app and queries never missed a beat. I did end up writing alot of code so I could do this trick on any form for any table in any database, and it was a pain in the... well... you know, but it works incredibly well. richard terry wrote: > This probably won't be of much use to you because I'm not in your programming > league and probably off topic for you, however, my 2 cents worth is: > > QT walks all over GTK. > > The combo box problem - agree. I've written a medical records system in VB > back in 1996/7 which I use at work, and have been tinkering do some modelling > of a new system in gambas, and have found similar problems to yourself. > > Unless I'm wrong, the only way to easily do this would be to roll your own > control. If you are into other languages take a look at the cPhraseWheel in > the gnumed project which Ian Haywood and Karsten modelled after my vb work > from the 90's. Its a super-control - textbox, popup list, spell checker, > backend updater etc etc all rolled into one. > > In my tinkering I must admit that I simply use a textbox with an attatched > list box, which popups up as the user types eg to search for people use > either j m (would bring up all firstnames j surnames s, or s,j (like the way > you do in your example or john, would bring up all the johns, or ,smith would > bring up all the smiths . > > I find there are lots of limitations with many of the qt controls in annoying > ways, but at the end of the day they function well, the IDE of gambas is easy > to use. > > Don't know what database you are using but Postgresql seems to stand out from > the pack. pgAdmin3 is available on linux, not bad, but for anything complex > like working out complex queries or functions (with my puny cerebrum), I > purchased a copy of EMS sqlmanager for postgres for windows which I run in > virtualbox (seamless mode) on my ARCH linux laptop, so I can can past queries > etc between the two environments - works well. > > Hope you stick with gambas and bring some expertise, as many seem to come and > go due to some of the frustrations inherent in a developing language and lack > of documentation. > > Regards > > Richard > On Tue, 20 May 2008 01:43:01 am Doug Gack wrote: >> Background: >> >> I am an independent software developer, primarily providing custom >> business applications to small businesses. I do most of my work in M$ >> Access, but also some in PHP and ASP Internet forms. (After programming for >> 40+ years, another language is easier to learn than the first few.) I've >> been looking for a couple of years for a way to do the same thing in Linux, >> and it looks like I've finally found it. Thank you. Gambas! >> >> I just completed a conversion of a (tiny) application from Access/ASP to >> Gambas/MySql/PHP, and it works just fine, thank you very much! Except.... >> >> As when learning any new environment, there's a prolonged period of >> developing a "style" for the environment. >> >> I started off trying to create a "Graphical" application, not knowing any >> better, and soon (well, not so soon, actually) realized that a "QT >> Application" would give me a lot better user environment. That's just one >> of the bumps encountered on the road, but I got it to work, so I'm better >> for the experience. >> >> Question is, what can anyone tell me about better ways to approach the >> subject? >> >> Some starter questions: >> >> - Which graphical environment, and why? >> >> - I've been spoiled by Access's methods with combo boxes, and it's become >> my most used way of looking up data. If I want to find "Smith, John", I >> start typing "smi...", and soon his name pops up. Looks like Linux >> subscribes to the browser forms method of only using only the first letter >> out of a list. I type "S" and get "Sa...", then type "m" and get "Ma...". >> When I have a list with 15 or 20 thousand names, this won't do. How have >> others solved this issue? >> >> Any starter suggestions? >> >> TIA, >> >> Doug >> >> >> Doug Gack >> Homepage: http://dgack.selfip.com >> >> _________________________________________________________________ >> E-mail for the greater good. Join the i?m Initiative from Microsoft. >> http://im.live.com/Messenger/IM/Join/Default.aspx?source=EML_WL_ >> GreaterGood >> ------------------------------------------------------------------------- >> This SF.net email is sponsored by: Microsoft >> Defy all challenges. Microsoft(R) Visual Studio 2008. >> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ >> _______________________________________________ >> 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: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From charles at ...1784... Mon May 26 08:53:34 2008 From: charles at ...1784... (charlesg) Date: Sun, 25 May 2008 23:53:34 -0700 (PDT) Subject: [Gambas-user] Gambas "Best Practices" In-Reply-To: <483A29B7.8020709@...981...> References: <200805200809.45503.rterry@...1822...> <483A29B7.8020709@...981...> Message-ID: <17466709.post@...1379...> I too have been messing around with this. I loaded 20,000 stock records into sqlite3 and used my search method on the 50char max non-indexed description field. Bit tedious it was. Things got much snappier with the following although I agree with Stephen that you would have to watch performance in a large environment (fortunately not my problem!) because of the repeated calls to the database engine . By the 3rd digit, the search had caught up and displayed the result. '------------------------------------------------------------------- PUBLIC SUB txtDesc_KeyRelease() DIM txtUpper AS String lstBox.Clear txtUpper = UCase(txtDesc.text) sql = "select * from stmaster where st_desc like '%" & txtUpper & "%'" res = conn.Exec(sql) FOR EACH res lstBox.Add(res!st_code & "," & res!st_desc) NEXT END '------------------------------------------------------------------- I agree with Richard that there is a need to help newcomers (like myself) particularly on the now non-Francophone side of the divide! I must say I find bits of code a great help rather than a bland description of procedure. -- View this message in context: http://www.nabble.com/Gambas-%22Best-Practices%22-tp17323065p17466709.html Sent from the gambas-user mailing list archive at Nabble.com. From ron at ...1740... Mon May 26 10:03:37 2008 From: ron at ...1740... (Ron) Date: Mon, 26 May 2008 10:03:37 +0200 Subject: [Gambas-user] Detect signals? Message-ID: <483A6ED9.6050301@...1740...> Hi, Is it possible to detect unix signals from within gambas application? So you can for example run your own exit code when a application gets killed, or ctrl-c-ed? eg. SIG{INT} SIG{BREAK} SIG{KILL} SIG{HUP} SIG{PIPE} SIG{CHLD} Regards, Ron. From serif at ...1870... Mon May 26 12:10:14 2008 From: serif at ...1870... (Mike Brett) Date: Mon, 26 May 2008 11:10:14 +0100 Subject: [Gambas-user] Eval, and "Eval" for assignment? Message-ID: <483A8C86.5050307@...1870...> Q1. Why does something like this fail with "Unknown symbol" please? PRINT Eval("lblMaterial" & "6") Q2. I have a set of consecutively named labels (lblMaterial0, lblMaterial1, and so on) to which I want to assign text values from a database. Eval() is clearly not designed for assignment purposes, so what's the cleanest way to do this in gambas please? I'm looking for a solution like FOR EACH dbResult ??Eval??("lblMaterial" & CStr(iC)).Text = dbResult!value ic += 1 NEXT Thanks. - Mike Brett - (gambas 2.6.0 on Fedora 8) From chrisken0 at ...626... Mon May 26 13:34:28 2008 From: chrisken0 at ...626... (Chris Kenworthy) Date: Mon, 26 May 2008 07:34:28 -0400 Subject: [Gambas-user] Graphical Executable launches console shell first? Message-ID: Hi there. Only been using gambas for a few weeks at this point, and really enjoying it. Over this weekend I've got a music rating program that I already have on windows/palm/pocketPC translated to gambas so I can run it on the eeepc. One thing that kind of seems odd to me though. When I made an executable version of the program and double-clicked on the executable in file manager, it first opens up a console shell without a command prompt, and then the graphical QT window. If I close the shell window first, the graphical window goes away first. If I close the graphical GUI, the shell shows 'Press to continue...' and goes away after I follow that instruction. Now, that isn't a huge problem, but it's slightly inconvenient for me because I don't have much taskbar space on my screen. I know that other GUI programs will launch without this sort of routine. Is there any way to get a gambas executable running on xandros eeepc without showing this console window every time? Thanks if you can help, and yay for gambas! From Mike at ...680... Mon May 26 18:43:26 2008 From: Mike at ...680... (Mike Keehan) Date: Mon, 26 May 2008 17:43:26 +0100 Subject: [Gambas-user] Graphical Executable launches console shell first? In-Reply-To: References: Message-ID: <483AE8AE.1030505@...680...> Chris Kenworthy wrote: > Hi there. Only been using gambas for a few weeks at this point, and > really enjoying it. Over this weekend I've got a music rating program > that I already have on windows/palm/pocketPC translated to gambas so I > can run it on the eeepc. > > One thing that kind of seems odd to me though. When I made an > executable version of the program and double-clicked on the executable > in file manager, it first opens up a console shell without a command > prompt, and then the graphical QT window. If I close the shell window > first, the graphical window goes away first. If I close the graphical > GUI, the shell shows 'Press to continue...' and goes away > after I follow that instruction. > > Now, that isn't a huge problem, but it's slightly inconvenient for me > because I don't have much taskbar space on my screen. I know that > other GUI programs will launch without this sort of routine. Is there > any way to get a gambas executable running on xandros eeepc without > showing this console window every time? Thanks if you can help, and > yay for gambas! > Hi Chris. It is probably due to the file manager running it in a terminal. Can you find a setting or option in the file manager that you can turn off for Gambas programs, something like 'Run in terminal'. Mike. From gambas at ...1... Mon May 26 19:55:16 2008 From: gambas at ...1... (Benoit Minisini) Date: Mon, 26 May 2008 19:55:16 +0200 Subject: [Gambas-user] Detect signals? In-Reply-To: <483A6ED9.6050301@...1740...> References: <483A6ED9.6050301@...1740...> Message-ID: <200805261955.16594.gambas@...1...> On lundi 26 mai 2008, Ron wrote: > Hi, > > Is it possible to detect unix signals from within gambas application? > So you can for example run your own exit code when a application gets > killed, or ctrl-c-ed? > > eg. > SIG{INT} > SIG{BREAK} > SIG{KILL} > SIG{HUP} > SIG{PIPE} > SIG{CHLD} > > Regards, > Ron. > Not yet, but this is planned for 3.0. You will have something like a global static event handler named Application_Signal that will tell you which signal was raised. Maybe some signal will not be catchable. Regards, -- Benoit Minisini From gambas at ...1... Mon May 26 19:59:52 2008 From: gambas at ...1... (Benoit Minisini) Date: Mon, 26 May 2008 19:59:52 +0200 Subject: [Gambas-user] Eval, and "Eval" for assignment? In-Reply-To: <483A8C86.5050307@...1870...> References: <483A8C86.5050307@...1870...> Message-ID: <200805261959.52924.gambas@...1...> On lundi 26 mai 2008, Mike Brett wrote: > Q1. Why does something like this fail with "Unknown symbol" please? > > PRINT Eval("lblMaterial" & "6") Because Eval() does not use the context of the function where it is executed. Eval() is run a global context, it can only use global classes. > > Q2. I have a set of consecutively named labels (lblMaterial0, > lblMaterial1, and so on) to which I want to assign text values from a > database. Eval() is clearly not designed for assignment purposes, so > what's the cleanest way to do this in gambas please? > > I'm looking for a solution like > > FOR EACH dbResult > ??Eval??("lblMaterial" & CStr(iC)).Text = dbResult!value Form class has a Controls pseudo-collection: Form.Controls["lblMaterial" & CStr(iC)] will return a reference to the control. Regards, -- Benoit Minisini From gambas at ...1... Mon May 26 20:03:53 2008 From: gambas at ...1... (Benoit Minisini) Date: Mon, 26 May 2008 20:03:53 +0200 Subject: [Gambas-user] Graphical Executable launches console shell first? In-Reply-To: References: Message-ID: <200805262003.53937.gambas@...1...> On lundi 26 mai 2008, Chris Kenworthy wrote: > Hi there. Only been using gambas for a few weeks at this point, and > really enjoying it. Over this weekend I've got a music rating program > that I already have on windows/palm/pocketPC translated to gambas so I > can run it on the eeepc. > > One thing that kind of seems odd to me though. When I made an > executable version of the program and double-clicked on the executable > in file manager, it first opens up a console shell without a command > prompt, and then the graphical QT window. If I close the shell window > first, the graphical window goes away first. If I close the graphical > GUI, the shell shows 'Press to continue...' and goes away > after I follow that instruction. > > Now, that isn't a huge problem, but it's slightly inconvenient for me > because I don't have much taskbar space on my screen. I know that > other GUI programs will launch without this sort of routine. Is there > any way to get a gambas executable running on xandros eeepc without > showing this console window every time? Thanks if you can help, and > yay for gambas! > I don't know which distribution you use, but you must know that Gambas executable are actually scripts. So usually desktops falsely think that it is a text program than run inside a console. Gambas binary packages, or Gambas compiled from sources normally install freedesktop.org MIME information that tell the desktop that Gambas executables are normal executables. But maybe the desktop you use does not take these MIME files into account? -- Benoit Minisini From sbungay at ...981... Mon May 26 21:10:53 2008 From: sbungay at ...981... (Stephen Bungay) Date: Mon, 26 May 2008 15:10:53 -0400 Subject: [Gambas-user] Gambas "Best Practices" In-Reply-To: <17466709.post@...1379...> References: <200805200809.45503.rterry@...1822...> <483A29B7.8020709@...981...> <17466709.post@...1379...> Message-ID: <483B0B3D.3050603@...981...> I'll see if I can find the code and post it. charlesg wrote: > I too have been messing around with this. I loaded 20,000 stock records into > sqlite3 and used my search method on the 50char max non-indexed description > field. Bit tedious it was. > > Things got much snappier with the following although I agree with Stephen > that you would have to watch performance in a large environment (fortunately > not my problem!) because of the repeated calls to the database engine . By > the 3rd digit, the search had caught up and displayed the result. > '------------------------------------------------------------------- > PUBLIC SUB txtDesc_KeyRelease() > DIM txtUpper AS String > lstBox.Clear > txtUpper = UCase(txtDesc.text) > sql = "select * from stmaster where st_desc like '%" & txtUpper & "%'" > res = conn.Exec(sql) > FOR EACH res > lstBox.Add(res!st_code & "," & res!st_desc) > NEXT > END > '------------------------------------------------------------------- > > I agree with Richard that there is a need to help newcomers (like myself) > particularly on the now non-Francophone side of the divide! I must say I > find bits of code a great help rather than a bland description of procedure. > From rterry at ...1822... Mon May 26 07:00:01 2008 From: rterry at ...1822... (richard terry) Date: Mon, 26 May 2008 15:00:01 +1000 Subject: [Gambas-user] Gambas "Best Practices" In-Reply-To: <483A29B7.8020709@...981...> References: <200805200809.45503.rterry@...1822...> <483A29B7.8020709@...981...> Message-ID: <200805261500.01907.rterry@...1822...> On Mon, 26 May 2008 01:08:39 pm Stephen Bungay wrote: > Richard, Doug; > I too popped up a text box and on each keypress searched a table for > a partial match, pulled back the recordset and populated a clickable > list. IMHO this is bad as it hits the tables far too often bad in theory, in practice it's quick anyway, so does it matter. You could presumably cache your database tables in memory? > , but it > depends on how many people are using the app and hitting the tables over > the network. The table was in MySQL, and the database hosted on a server > with 30 other diskless workstations, all putting demands on the server > and I have to say that the app and queries never missed a beat. > I did end up writing alot of code so I could do this trick on any > form for any table in any database, and it was a pain in the... well... > you know, but it works incredibly well. mm........... any chance of the sql/code samples being posted? What one needs for this as mentioned is an intelligent control, like I mentioned Ian Haywood/Karsten wrote gmPhraseWheel for gnumed modelled after the behaviour of an old vb client of mine which works well. The logic is in gmPhraseWheel.py in cvs. Regards Richard > > richard terry wrote: > > This probably won't be of much use to you because I'm not in your > > programming league and probably off topic for you, however, my 2 cents > > worth is: > > > > QT walks all over GTK. > > > > The combo box problem - agree. I've written a medical records system in > > VB back in 1996/7 which I use at work, and have been tinkering do some > > modelling of a new system in gambas, and have found similar problems to > > yourself. > > > > Unless I'm wrong, the only way to easily do this would be to roll your > > own control. If you are into other languages take a look at the > > cPhraseWheel in the gnumed project which Ian Haywood and Karsten modelled > > after my vb work from the 90's. Its a super-control - textbox, popup > > list, spell checker, backend updater etc etc all rolled into one. > > > > In my tinkering I must admit that I simply use a textbox with an > > attatched list box, which popups up as the user types eg to search for > > people use either j m (would bring up all firstnames j surnames s, or > > s,j (like the way you do in your example or john, would bring up all the > > johns, or ,smith would bring up all the smiths . > > > > I find there are lots of limitations with many of the qt controls in > > annoying ways, but at the end of the day they function well, the IDE of > > gambas is easy to use. > > > > Don't know what database you are using but Postgresql seems to stand out > > from the pack. pgAdmin3 is available on linux, not bad, but for anything > > complex like working out complex queries or functions (with my puny > > cerebrum), I purchased a copy of EMS sqlmanager for postgres for windows > > which I run in virtualbox (seamless mode) on my ARCH linux laptop, so I > > can can past queries etc between the two environments - works well. > > > > Hope you stick with gambas and bring some expertise, as many seem to come > > and go due to some of the frustrations inherent in a developing language > > and lack of documentation. > > > > Regards > > > > Richard > > > > On Tue, 20 May 2008 01:43:01 am Doug Gack wrote: > >> Background: > >> > >> I am an independent software developer, primarily providing custom > >> business applications to small businesses. I do most of my work in M$ > >> Access, but also some in PHP and ASP Internet forms. (After programming > >> for 40+ years, another language is easier to learn than the first few.) > >> I've been looking for a couple of years for a way to do the same thing > >> in Linux, and it looks like I've finally found it. Thank you. Gambas! > >> > >> I just completed a conversion of a (tiny) application from Access/ASP to > >> Gambas/MySql/PHP, and it works just fine, thank you very much! > >> Except.... > >> > >> As when learning any new environment, there's a prolonged period of > >> developing a "style" for the environment. > >> > >> I started off trying to create a "Graphical" application, not knowing > >> any better, and soon (well, not so soon, actually) realized that a "QT > >> Application" would give me a lot better user environment. That's just > >> one of the bumps encountered on the road, but I got it to work, so I'm > >> better for the experience. > >> > >> Question is, what can anyone tell me about better ways to approach the > >> subject? > >> > >> Some starter questions: > >> > >> - Which graphical environment, and why? > >> > >> - I've been spoiled by Access's methods with combo boxes, and it's > >> become my most used way of looking up data. If I want to find "Smith, > >> John", I start typing "smi...", and soon his name pops up. Looks like > >> Linux subscribes to the browser forms method of only using only the > >> first letter out of a list. I type "S" and get "Sa...", then type "m" > >> and get "Ma...". When I have a list with 15 or 20 thousand names, this > >> won't do. How have others solved this issue? > >> > >> Any starter suggestions? > >> > >> TIA, > >> > >> Doug > >> > >> > >> Doug Gack > >> Homepage: http://dgack.selfip.com > >> > >> _________________________________________________________________ > >> E-mail for the greater good. Join the i?m Initiative from Microsoft. > >> http://im.live.com/Messenger/IM/Join/Default.aspx?source=EML_WL_ > >> GreaterGood > >> ------------------------------------------------------------------------ > >>- This SF.net email is sponsored by: Microsoft > >> Defy all challenges. Microsoft(R) Visual Studio 2008. > >> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > >> _______________________________________________ > >> 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: Microsoft > > Defy all challenges. Microsoft(R) Visual Studio 2008. > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user From chrisken0 at ...626... Mon May 26 22:37:56 2008 From: chrisken0 at ...626... (chrisken) Date: Mon, 26 May 2008 13:37:56 -0700 (PDT) Subject: [Gambas-user] Graphical Executable launches console shell first? In-Reply-To: <200805262003.53937.gambas@...1...> References: <200805262003.53937.gambas@...1...> Message-ID: <17478809.post@...1379...> Benoit Minisini wrote: > > I don't know which distribution you use, but you must know that Gambas > executable are actually scripts. So usually desktops falsely think that it > is > a text program than run inside a console. > > Gambas binary packages, or Gambas compiled from sources normally install > freedesktop.org MIME information that tell the desktop that Gambas > executables are normal executables. But maybe the desktop you use does not > take these MIME files into account? > Thanks. Yeah, I'm using a debian package of gambas 1.0.15 that was on my xandros repository. It seems to be working well enough for now, though I saw a message on here about a debian repository that has a version 2 package that would be worth a try on an eeepc. Can you give me any information on installing this MIME information manually? It's not a big issue, since I've worked out that if you create a menu shortcut, it defaults to non-terminal. So I'll be doing that instead of double clicking in file manager I guess. I looked for an easy setting in file manager, and there were ways to control whether documents were launched in console or not, but not 'a /usr/bin/gbx -x script text executable' which is the filetype it reads as. Oh well Thanks for the quick replies! -- View this message in context: http://www.nabble.com/Graphical-Executable-launches-console-shell-first--tp17470307p17478809.html Sent from the gambas-user mailing list archive at Nabble.com. From rterry at ...1822... Tue May 27 00:53:22 2008 From: rterry at ...1822... (richard terry) Date: Tue, 27 May 2008 08:53:22 +1000 Subject: [Gambas-user] Using a timer to speed data retrieval ( was Gambas "Best Practices") In-Reply-To: <17466709.post@...1379...> References: <483A29B7.8020709@...981...> <17466709.post@...1379...> Message-ID: <200805270853.22843.rterry@...1822...> By the way, what I forgot to mention about how I did this in VB (havn't done this yet in gambas) Used a timer to cancel the query until a particular count was reached. I set the timer interval to the users typing speed (configurable - I can touch type at around 80wpm, so I set the timer to I think from memory 300msec or less, and that way one can type continuously WITHOUT SENDING OFF A QUERY TO THE DATABASE EVERY KEY STROKE. As soon as you pause typing the query gets sent off, blindingly quick results. Also in situations (many) where you know you don't want an instring seach, and your field is indexed, speed is never a problem. (ie like txtUpper & %). You can also instruct users who really want an instring search occasionally to use the wild-card. The whole of my medical records program in VB relied on 'just in time' delivery of result sets to popup list boxes - and on an old pentium 100 used to run instantly. On postgres on my laptop celeron 1.8 it is instant, even when searching dozens of joined tables in a large query (could use a view of course). BTW if I think I've mentioned it before, but to anyone who is genuinely interested in using postgreql, wheras pgadmin3 is basic and I use it alot in linux, I also run VirtualBox in seamless mode and purchased a copy of ems postgresql data manager (www.sqlmanager.net), to work out and debug more complex functions and queries, saves hours of development time, and worth every cent. Regards Richard On Mon, 26 May 2008 04:53:34 pm charlesg wrote: > I too have been messing around with this. I loaded 20,000 stock records > into sqlite3 and used my search method on the 50char max non-indexed > description field. Bit tedious it was. > > Things got much snappier with the following although I agree with Stephen > that you would have to watch performance in a large environment > (fortunately not my problem!) because of the repeated calls to the database > engine . By the 3rd digit, the search had caught up and displayed the > result. > '------------------------------------------------------------------- > PUBLIC SUB txtDesc_KeyRelease() > DIM txtUpper AS String > lstBox.Clear > txtUpper = UCase(txtDesc.text) > sql = "select * from stmaster where st_desc like '%" & txtUpper & "%'" > res = conn.Exec(sql) > FOR EACH res > lstBox.Add(res!st_code & "," & res!st_desc) > NEXT > END > '------------------------------------------------------------------- > > I agree with Richard that there is a need to help newcomers (like myself) > particularly on the now non-Francophone side of the divide! I must say I > find bits of code a great help rather than a bland description of > procedure. From pinozollo at ...626... Tue May 27 03:28:38 2008 From: pinozollo at ...626... (Pino Zollo) Date: Mon, 26 May 2008 21:28:38 -0400 Subject: [Gambas-user] Graphic example Message-ID: <200805262128.40505.pinozollo@...626...> Hi, I am not a GAMBAS expert as I did start to use it on the past January, any how I made a small graphic project that can be usefull to somebody as an example. It rapresents an analogic tuning scale of a radio. It is downloadable from http://www.qsl.net/zp4kfx/Linux/Dial-0.0.1.tar.gz Improvements and comments are welcome. Regards Pino From serif at ...1870... Tue May 27 08:13:43 2008 From: serif at ...1870... (Mike Brett) Date: Tue, 27 May 2008 07:13:43 +0100 Subject: [Gambas-user] Eval, and "Eval" for assignment? In-Reply-To: <200805261959.52924.gambas@...1...> References: <483A8C86.5050307@...1870...> <200805261959.52924.gambas@...1...> Message-ID: <483BA697.8030600@...1870...> Thanks, Benoit. Very clear. Benoit Minisini wrote: > On lundi 26 mai 2008, Mike Brett wrote: >> Q1. Why does something like this fail with "Unknown symbol" please? >> >> PRINT Eval("lblMaterial" & "6") > > Because Eval() does not use the context of the function where it is executed. > Eval() is run a global context, it can only use global classes. > >> Q2. I have a set of consecutively named labels (lblMaterial0, >> lblMaterial1, and so on) to which I want to assign text values from a >> database. Eval() is clearly not designed for assignment purposes, so >> what's the cleanest way to do this in gambas please? >> >> I'm looking for a solution like >> >> FOR EACH dbResult >> ??Eval??("lblMaterial" & CStr(iC)).Text = dbResult!value > > Form class has a Controls pseudo-collection: Form.Controls["lblMaterial" & > CStr(iC)] will return a reference to the control. From jaap_cramer at ...67... Tue May 27 13:14:09 2008 From: jaap_cramer at ...67... (Jaap Cramer) Date: Tue, 27 May 2008 13:14:09 +0200 Subject: [Gambas-user] circular reference in menubar Message-ID: Hello I am tryping te remove my circular references. I use different forms, with menus. I discoverd, when I remove the menubar-items, the amount of circular referenced decrease. (see example below) Is this normal behaviour? Should I delete all menu-items, created with the menu editor; couldn't this be done automaticly? PUBLIC SUB Form_Close() Settings["Window/x"] = ME.ScreenX Settings["Window/y"] = ME.ScreenY Settings["Window/w"] = ME.W Settings["Window/h"] = ME.H Settings["Last/book"] = cbBooks.Index Settings["Last/chap"] = tbChap.Text Settings["Options/transState"] = CBool(tglTrans.Value) 'these lines decrease the amount of circular references ME.Menu1.Delete ME.Menu2.Delete ME.Menu3.Delete ME.Menu4.Delete ME.Menu5.Delete ME.Menu6.Delete mH.zQuit END grt, Jaap From gambas at ...1... Tue May 27 13:22:56 2008 From: gambas at ...1... (Benoit Minisini) Date: Tue, 27 May 2008 13:22:56 +0200 Subject: [Gambas-user] circular reference in menubar In-Reply-To: References: Message-ID: <200805271322.56561.gambas@...1...> On mardi 27 mai 2008, Jaap Cramer wrote: > Hello > > I am tryping te remove my circular references. I use different forms, > with menus. I discoverd, when I remove the menubar-items, the amount of > circular referenced decrease. (see example below) > Is this normal behaviour? Should I delete all menu-items, created with > the menu editor; couldn't this be done automaticly? > > PUBLIC SUB Form_Close() > Settings["Window/x"] = ME.ScreenX > Settings["Window/y"] = ME.ScreenY > Settings["Window/w"] = ME.W > Settings["Window/h"] = ME.H > Settings["Last/book"] = cbBooks.Index > Settings["Last/chap"] = tbChap.Text > Settings["Options/transState"] = CBool(tglTrans.Value) > > 'these lines decrease the amount of circular references > ME.Menu1.Delete > ME.Menu2.Delete > ME.Menu3.Delete > ME.Menu4.Delete > ME.Menu5.Delete > ME.Menu6.Delete > > mH.zQuit > END > > grt, > Jaap > You are trying to fix the symptoms, not the cause. First ensure that: - You do not use the QUIT nstruction. - You always use the Close() method to close a form. - You do not store any reference on a form, or if you do, you release it by hand. Regards, -- Benoit Minisini From jaap_cramer at ...67... Tue May 27 13:32:40 2008 From: jaap_cramer at ...67... (Jaap Cramer) Date: Tue, 27 May 2008 13:32:40 +0200 Subject: [Gambas-user] circular reference in menubar In-Reply-To: <200805271322.56561.gambas@...1...> References: <200805271322.56561.gambas@...1...> Message-ID: Thanks! I used indeed the quit command; removing solved my references. The first time it raised an #11 error; I cannot reproduce it. Well, I dont think it's any problem... I have a last question. You say I have to use Close(). When I use a .ShowModal, calls it (after it ends) the Close()? Jaap On Tue, 2008-05-27 at 13:22 +0200, Benoit Minisini wrote: > On mardi 27 mai 2008, Jaap Cramer wrote: > > Hello > > > > I am tryping te remove my circular references. I use different forms, > > with menus. I discoverd, when I remove the menubar-items, the amount of > > circular referenced decrease. (see example below) > > Is this normal behaviour? Should I delete all menu-items, created with > > the menu editor; couldn't this be done automaticly? > > > > PUBLIC SUB Form_Close() > > Settings["Window/x"] = ME.ScreenX > > Settings["Window/y"] = ME.ScreenY > > Settings["Window/w"] = ME.W > > Settings["Window/h"] = ME.H > > Settings["Last/book"] = cbBooks.Index > > Settings["Last/chap"] = tbChap.Text > > Settings["Options/transState"] = CBool(tglTrans.Value) > > > > 'these lines decrease the amount of circular references > > ME.Menu1.Delete > > ME.Menu2.Delete > > ME.Menu3.Delete > > ME.Menu4.Delete > > ME.Menu5.Delete > > ME.Menu6.Delete > > > > mH.zQuit > > END > > > > grt, > > Jaap > > > > You are trying to fix the symptoms, not the cause. > > First ensure that: > - You do not use the QUIT nstruction. > - You always use the Close() method to close a form. > - You do not store any reference on a form, or if you do, you release it by > hand. > > Regards, > From gambas at ...1... Tue May 27 13:37:54 2008 From: gambas at ...1... (Benoit Minisini) Date: Tue, 27 May 2008 13:37:54 +0200 Subject: [Gambas-user] circular reference in menubar In-Reply-To: References: <200805271322.56561.gambas@...1...> Message-ID: <200805271337.54912.gambas@...1...> On mardi 27 mai 2008, Jaap Cramer wrote: > Thanks! > > I used indeed the quit command; removing solved my references. The first > time it raised an #11 error; I cannot reproduce it. Well, I dont think > it's any problem... > > I have a last question. You say I have to use Close(). When I use > a .ShowModal, calls it (after it ends) the Close()? > > Jaap > You have to call Close(), the form opened with ShowModal() will not do it by itself, unless the user closes it from the window manager. -- Benoit Minisini From eoinhinchy at ...626... Tue May 27 15:36:18 2008 From: eoinhinchy at ...626... (hinchy) Date: Tue, 27 May 2008 06:36:18 -0700 (PDT) Subject: [Gambas-user] Re gular Expression Help Message-ID: <17488070.post@...1379...> keywords: regex, Regular Expression, regexp, pcre Hi guys, I've been struggling with the pcre component for a couple of days now. I'm running the command: SHELL "ls /dev | grep [sh]d[a-z]" TO sStr This will return something along the lines of: sda sda1 sda2 I then want to run the regular expression ^[^\s]*+ against sStr to return sda for saving in a different string but I can't for the life of my figure it out. Any ideas? I'm sure it's quite simple I just can't get it together. Thanks, Eoin -- View this message in context: http://www.nabble.com/Regular-Expression-Help-tp17488070p17488070.html Sent from the gambas-user mailing list archive at Nabble.com. From m0e.lnx at ...626... Tue May 27 15:51:08 2008 From: m0e.lnx at ...626... (M0E Lnx) Date: Tue, 27 May 2008 08:51:08 -0500 Subject: [Gambas-user] Re gular Expression Help In-Reply-To: <17488070.post@...1379...> References: <17488070.post@...1379...> Message-ID: <1f1e8c1b0805270651x6521d0e5kc7811cae62aadfdf@...627...> why not just do some text splitting to get what you need? If you have "sda1" and you only want "sda" out of that... you should be able to go with Newstring=left(sStr, 3) On 5/27/08, hinchy wrote: > > keywords: regex, Regular Expression, regexp, pcre > > Hi guys, > > I've been struggling with the pcre component for a couple of days now. I'm > running the command: > SHELL "ls /dev | grep [sh]d[a-z]" TO sStr > > This will return something along the lines of: > sda > sda1 > sda2 > > I then want to run the regular expression ^[^\s]*+ against sStr to return > sda for saving in a different string but I can't for the life of my figure > it out. > Any ideas? I'm sure it's quite simple I just can't get it together. > Thanks, > Eoin > -- > View this message in context: http://www.nabble.com/Regular-Expression-Help-tp17488070p17488070.html > Sent from the gambas-user mailing list archive at Nabble.com. > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From eoinhinchy at ...626... Tue May 27 17:22:35 2008 From: eoinhinchy at ...626... (hinchy) Date: Tue, 27 May 2008 08:22:35 -0700 (PDT) Subject: [Gambas-user] Re gular Expression Help In-Reply-To: <1f1e8c1b0805270651x6521d0e5kc7811cae62aadfdf@...627...> References: <17488070.post@...1379...> <1f1e8c1b0805270651x6521d0e5kc7811cae62aadfdf@...627...> Message-ID: <17492934.post@...1379...> Yeah I thought about doing something like that, the thing is though, I won't always know how long the first word is. With the regex I can match until the first white space. Is there a way of doing that with text splitting? If so great. If not is there anywhere you could suggest I look for example regex implementation in gambas? Thanks again. M0E Lnx wrote: > > why not just do some text splitting to get what you need? > > If you have "sda1" and you only want "sda" out of that... you should > be able to go with Newstring=left(sStr, 3) > > > > On 5/27/08, hinchy wrote: >> >> keywords: regex, Regular Expression, regexp, pcre >> >> Hi guys, >> >> I've been struggling with the pcre component for a couple of days now. >> I'm >> running the command: >> SHELL "ls /dev | grep [sh]d[a-z]" TO sStr >> >> This will return something along the lines of: >> sda >> sda1 >> sda2 >> >> I then want to run the regular expression ^[^\s]*+ against sStr to >> return >> sda for saving in a different string but I can't for the life of my >> figure >> it out. >> Any ideas? I'm sure it's quite simple I just can't get it together. >> Thanks, >> Eoin >> -- >> View this message in context: >> http://www.nabble.com/Regular-Expression-Help-tp17488070p17488070.html >> Sent from the gambas-user mailing list archive at Nabble.com. >> >> >> >> ------------------------------------------------------------------------- >> This SF.net email is sponsored by: Microsoft >> Defy all challenges. Microsoft(R) Visual Studio 2008. >> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ >> _______________________________________________ >> 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: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > 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/Regular-Expression-Help-tp17488070p17492934.html Sent from the gambas-user mailing list archive at Nabble.com. From rospolosco at ...152... Tue May 27 18:17:23 2008 From: rospolosco at ...152... (Stefano Palmeri) Date: Tue, 27 May 2008 18:17:23 +0200 Subject: [Gambas-user] Re gular Expression Help In-Reply-To: <17492934.post@...1379...> References: <17488070.post@...1379...> <1f1e8c1b0805270651x6521d0e5kc7811cae62aadfdf@...627...> <17492934.post@...1379...> Message-ID: <200805271817.23746.rospolosco@...152...> Il Tuesday 27 May 2008 17:22:35 hinchy ha scritto: > Yeah I thought about doing something like that, the thing is though, I > won't always know how long the first word is. With the regex I can match > until the first white space. Is there a way of doing that with text > splitting? If so great. If not is there anywhere you could suggest I look > for example regex implementation in gambas? > > Thanks again. I don't understand your problem (my fault). Here's a way to extracy only "sda". DIM sStr, sOneDev AS String SHELL "ls /dev | grep [sh]d[a-z]" TO sStr FOR EACH sOneDev IN Split(sStr, "\n") IF sOneDev = "sda" THEN BREAK NEXT PRINT sOneDev Bye > > M0E Lnx wrote: > > why not just do some text splitting to get what you need? > > > > If you have "sda1" and you only want "sda" out of that... you should > > be able to go with Newstring=left(sStr, 3) > > > > On 5/27/08, hinchy wrote: > >> keywords: regex, Regular Expression, regexp, pcre > >> > >> Hi guys, > >> > >> I've been struggling with the pcre component for a couple of days now. > >> I'm > >> running the command: > >> SHELL "ls /dev | grep [sh]d[a-z]" TO sStr > >> > >> This will return something along the lines of: > >> sda > >> sda1 > >> sda2 > >> > >> I then want to run the regular expression ^[^\s]*+ against sStr to > >> return > >> sda for saving in a different string but I can't for the life of my > >> figure > >> it out. > >> Any ideas? I'm sure it's quite simple I just can't get it together. > >> Thanks, > >> Eoin > >> -- > >> View this message in context: > >> http://www.nabble.com/Regular-Expression-Help-tp17488070p17488070.html > >> Sent from the gambas-user mailing list archive at Nabble.com. > >> > >> > >> > >> ------------------------------------------------------------------------ > >>- This SF.net email is sponsored by: Microsoft > >> Defy all challenges. Microsoft(R) Visual Studio 2008. > >> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > >> _______________________________________________ > >> 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: Microsoft > > Defy all challenges. Microsoft(R) Visual Studio 2008. > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user From rospolosco at ...152... Tue May 27 18:21:14 2008 From: rospolosco at ...152... (Stefano Palmeri) Date: Tue, 27 May 2008 18:21:14 +0200 Subject: [Gambas-user] Re gular Expression Help In-Reply-To: <200805271817.23746.rospolosco@...152...> References: <17488070.post@...1379...> <17492934.post@...1379...> <200805271817.23746.rospolosco@...152...> Message-ID: <200805271821.15074.rospolosco@...152...> Il Tuesday 27 May 2008 18:17:23 Stefano Palmeri ha scritto: > Il Tuesday 27 May 2008 17:22:35 hinchy ha scritto: > > Yeah I thought about doing something like that, the thing is though, I > > won't always know how long the first word is. With the regex I can match > > until the first white space. Is there a way of doing that with text > > splitting? If so great. If not is there anywhere you could suggest I look > > for example regex implementation in gambas? > > > > Thanks again. > > I don't understand your problem (my fault). Here's a way to > extracy only "sda". > > DIM sStr, sOneDev AS String > > SHELL "ls /dev | grep [sh]d[a-z]" TO sStr > > FOR EACH sOneDev IN Split(sStr, "\n") > > IF sOneDev = "sda" THEN BREAK > > NEXT > > PRINT sOneDev > > Bye > or: IF sOneDev LIKE "sd[a-z]" THEN BREAK > > M0E Lnx wrote: > > > why not just do some text splitting to get what you need? > > > > > > If you have "sda1" and you only want "sda" out of that... you should > > > be able to go with Newstring=left(sStr, 3) > > > > > > On 5/27/08, hinchy wrote: > > >> keywords: regex, Regular Expression, regexp, pcre > > >> > > >> Hi guys, > > >> > > >> I've been struggling with the pcre component for a couple of days > > >> now. I'm > > >> running the command: > > >> SHELL "ls /dev | grep [sh]d[a-z]" TO sStr > > >> > > >> This will return something along the lines of: > > >> sda > > >> sda1 > > >> sda2 > > >> > > >> I then want to run the regular expression ^[^\s]*+ against sStr to > > >> return > > >> sda for saving in a different string but I can't for the life of my > > >> figure > > >> it out. > > >> Any ideas? I'm sure it's quite simple I just can't get it together. > > >> Thanks, > > >> Eoin > > >> -- > > >> View this message in context: > > >> http://www.nabble.com/Regular-Expression-Help-tp17488070p17488070.html > > >> Sent from the gambas-user mailing list archive at Nabble.com. > > >> > > >> > > >> > > >> ---------------------------------------------------------------------- > > >>-- - This SF.net email is sponsored by: Microsoft > > >> Defy all challenges. Microsoft(R) Visual Studio 2008. > > >> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > >> _______________________________________________ > > >> 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: Microsoft > > > Defy all challenges. Microsoft(R) Visual Studio 2008. > > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > > _______________________________________________ > > > 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: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From m0e.lnx at ...626... Tue May 27 18:30:46 2008 From: m0e.lnx at ...626... (M0E Lnx) Date: Tue, 27 May 2008 11:30:46 -0500 Subject: [Gambas-user] Re gular Expression Help In-Reply-To: <200805271821.15074.rospolosco@...152...> References: <17488070.post@...1379...> <17492934.post@...1379...> <200805271817.23746.rospolosco@...152...> <200805271821.15074.rospolosco@...152...> Message-ID: <1f1e8c1b0805270930x382bd26cy30b61f6d91110deb@...627...> Throw it into an array.. DIM sList as string[] dim sStr as string DIM i as integer dim sOneDev as string SHELL "ls -m /dev | grep [sh]d[a-z]" to sStr sList = Split(sStr, ",") FOR i = 0 to sList.Count - 1 sOneDev = left(trim(sList[i]), 3) Print sOneDev Next This first, produce a list separated by commas, then use a gambas array to separate the array into separate strings. After that, you run the FOR Loop to trim out the text you need Unless I'm not understanding this right. On 5/27/08, Stefano Palmeri wrote: > Il Tuesday 27 May 2008 18:17:23 Stefano Palmeri ha scritto: > > > Il Tuesday 27 May 2008 17:22:35 hinchy ha scritto: > > > Yeah I thought about doing something like that, the thing is though, I > > > won't always know how long the first word is. With the regex I can match > > > until the first white space. Is there a way of doing that with text > > > splitting? If so great. If not is there anywhere you could suggest I look > > > for example regex implementation in gambas? > > > > > > Thanks again. > > > > I don't understand your problem (my fault). Here's a way to > > extracy only "sda". > > > > DIM sStr, sOneDev AS String > > > > SHELL "ls /dev | grep [sh]d[a-z]" TO sStr > > > > FOR EACH sOneDev IN Split(sStr, "\n") > > > > IF sOneDev = "sda" THEN BREAK > > > > NEXT > > > > PRINT sOneDev > > > > Bye > > > > > or: > > IF sOneDev LIKE "sd[a-z]" THEN BREAK > > > > > > > > > > > M0E Lnx wrote: > > > > why not just do some text splitting to get what you need? > > > > > > > > If you have "sda1" and you only want "sda" out of that... you should > > > > be able to go with Newstring=left(sStr, 3) > > > > > > > > On 5/27/08, hinchy wrote: > > > >> keywords: regex, Regular Expression, regexp, pcre > > > >> > > > >> Hi guys, > > > >> > > > >> I've been struggling with the pcre component for a couple of days > > > >> now. I'm > > > >> running the command: > > > >> SHELL "ls /dev | grep [sh]d[a-z]" TO sStr > > > >> > > > >> This will return something along the lines of: > > > >> sda > > > >> sda1 > > > >> sda2 > > > >> > > > >> I then want to run the regular expression ^[^\s]*+ against sStr to > > > >> return > > > >> sda for saving in a different string but I can't for the life of my > > > >> figure > > > >> it out. > > > >> Any ideas? I'm sure it's quite simple I just can't get it together. > > > >> Thanks, > > > >> Eoin > > > >> -- > > > >> View this message in context: > > > >> http://www.nabble.com/Regular-Expression-Help-tp17488070p17488070.html > > > >> Sent from the gambas-user mailing list archive at Nabble.com. > > > >> > > > >> > > > >> > > > >> ---------------------------------------------------------------------- > > > >>-- - This SF.net email is sponsored by: Microsoft > > > >> Defy all challenges. Microsoft(R) Visual Studio 2008. > > > >> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > > >> _______________________________________________ > > > >> 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: Microsoft > > > > Defy all challenges. Microsoft(R) Visual Studio 2008. > > > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > > > _______________________________________________ > > > > 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: Microsoft > > Defy all challenges. Microsoft(R) Visual Studio 2008. > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > _______________________________________________ > > 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: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From eoinhinchy at ...626... Tue May 27 19:37:51 2008 From: eoinhinchy at ...626... (hinchy) Date: Tue, 27 May 2008 10:37:51 -0700 (PDT) Subject: [Gambas-user] Re gular Expression Help In-Reply-To: <1f1e8c1b0805270930x382bd26cy30b61f6d91110deb@...627...> References: <17488070.post@...1379...> <1f1e8c1b0805270651x6521d0e5kc7811cae62aadfdf@...627...> <17492934.post@...1379...> <200805271817.23746.rospolosco@...152...> <200805271821.15074.rospolosco@...152...> <1f1e8c1b0805270930x382bd26cy30b61f6d91110deb@...627...> Message-ID: <17495939.post@...1379...> Thanks lads, that's really nice code, a big help. If you get a chance maybe you could explain how regular expressions are used in gambas. I know the documentation says: DIM hRegexp AS Regexp hRegexp = NEW Regexp ( [ Subject AS String, Pattern AS String, CompileOptions AS Integer, ExecOptions AS Integer ] ) I can't really figure out how to apply this though. Thanks again. M0E Lnx wrote: > > Throw it into an array.. > > DIM sList as string[] > dim sStr as string > DIM i as integer > dim sOneDev as string > > SHELL "ls -m /dev | grep [sh]d[a-z]" to sStr > sList = Split(sStr, ",") > > FOR i = 0 to sList.Count - 1 > sOneDev = left(trim(sList[i]), 3) > Print sOneDev > Next > > This first, produce a list separated by commas, then use a gambas > array to separate the array into separate strings. After that, you run > the FOR Loop to trim out the text you need > > Unless I'm not understanding this right. > > > On 5/27/08, Stefano Palmeri wrote: >> Il Tuesday 27 May 2008 18:17:23 Stefano Palmeri ha scritto: >> >> > Il Tuesday 27 May 2008 17:22:35 hinchy ha scritto: >> > > Yeah I thought about doing something like that, the thing is though, >> I >> > > won't always know how long the first word is. With the regex I can >> match >> > > until the first white space. Is there a way of doing that with text >> > > splitting? If so great. If not is there anywhere you could suggest I >> look >> > > for example regex implementation in gambas? >> > > >> > > Thanks again. >> > >> > I don't understand your problem (my fault). Here's a way to >> > extracy only "sda". >> > >> > DIM sStr, sOneDev AS String >> > >> > SHELL "ls /dev | grep [sh]d[a-z]" TO sStr >> > >> > FOR EACH sOneDev IN Split(sStr, "\n") >> > >> > IF sOneDev = "sda" THEN BREAK >> > >> > NEXT >> > >> > PRINT sOneDev >> > >> > Bye >> > >> >> >> or: >> >> IF sOneDev LIKE "sd[a-z]" THEN BREAK >> >> >> >> >> >> >> >> >> > > M0E Lnx wrote: >> > > > why not just do some text splitting to get what you need? >> > > > >> > > > If you have "sda1" and you only want "sda" out of that... you >> should >> > > > be able to go with Newstring=left(sStr, 3) >> > > > >> > > > On 5/27/08, hinchy wrote: >> > > >> keywords: regex, Regular Expression, regexp, pcre >> > > >> >> > > >> Hi guys, >> > > >> >> > > >> I've been struggling with the pcre component for a couple of >> days >> > > >> now. I'm >> > > >> running the command: >> > > >> SHELL "ls /dev | grep [sh]d[a-z]" TO sStr >> > > >> >> > > >> This will return something along the lines of: >> > > >> sda >> > > >> sda1 >> > > >> sda2 >> > > >> >> > > >> I then want to run the regular expression ^[^\s]*+ against sStr >> to >> > > >> return >> > > >> sda for saving in a different string but I can't for the life of >> my >> > > >> figure >> > > >> it out. >> > > >> Any ideas? I'm sure it's quite simple I just can't get it >> together. >> > > >> Thanks, >> > > >> Eoin >> > > >> -- >> > > >> View this message in context: >> > > >> >> http://www.nabble.com/Regular-Expression-Help-tp17488070p17488070.html >> > > >> Sent from the gambas-user mailing list archive at Nabble.com. >> > > >> >> > > >> >> > > >> >> > > >> >> ---------------------------------------------------------------------- >> > > >>-- - This SF.net email is sponsored by: Microsoft >> > > >> Defy all challenges. Microsoft(R) Visual Studio 2008. >> > > >> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ >> > > >> _______________________________________________ >> > > >> 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: Microsoft >> > > > Defy all challenges. Microsoft(R) Visual Studio 2008. >> > > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ >> > > > _______________________________________________ >> > > > 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: Microsoft >> > Defy all challenges. Microsoft(R) Visual Studio 2008. >> > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ >> > _______________________________________________ >> > 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: Microsoft >> Defy all challenges. Microsoft(R) Visual Studio 2008. >> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ >> _______________________________________________ >> 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: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > 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/Regular-Expression-Help-tp17488070p17495939.html Sent from the gambas-user mailing list archive at Nabble.com. From ubuntu at ...1914... Tue May 27 22:16:55 2008 From: ubuntu at ...1914... (Jim Miller) Date: Tue, 27 May 2008 16:16:55 -0400 Subject: [Gambas-user] Graphic example In-Reply-To: <200805262128.40505.pinozollo@...626...> References: <200805262128.40505.pinozollo@...626...> Message-ID: <483C6C37.8040307@...1914...> Hello Pino and All, I would like to introduce my self to the List and thank you for you post of the code. I have just moved into the Linus world and new at it and Gambas. I just Last week Installed Ubuntu and Gambas. I'm really impressed with linux and Gambas as a programmers delight, so at this point any Code Examples are a pleasure. I have a little work with VB 6 and wcBasic but I have to say the change is proving to be a new education I am looking forward to. Please point out any sites that will be help to a NewBeeee Like me. Maybe in the future I will be able to post some examples myself. Thanks Jim (SkyHawk) Miller Pino Zollo wrote: > Hi, > I am not a GAMBAS expert as I did start to use it on the past January, any how > I made a small graphic project that can be usefull to somebody as an example. > > It rapresents an analogic tuning scale of a radio. > > It is downloadable from http://www.qsl.net/zp4kfx/Linux/Dial-0.0.1.tar.gz > > Improvements and comments are welcome. > > Regards > > Pino > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > From pinozollo at ...626... Tue May 27 23:53:51 2008 From: pinozollo at ...626... (Pino Zollo) Date: Tue, 27 May 2008 17:53:51 -0400 Subject: [Gambas-user] How to suspend Draw ? Message-ID: <200805271753.52987.pinozollo@...626...> Hi Everybody, Is there a way to suspend Draw from drawing to allow the Resize to be done ? I have TRY DrawingArea1.Resize(ME.ClientW, ME.ClientH) I did put TRY just because gives error as the DrawingArea1 is redrawn frequently. ....but in such a way the resize is never done. Regards. Pino From nxgtrturbo at ...626... Tue May 27 23:55:39 2008 From: nxgtrturbo at ...626... (Nx GT-R BOY) Date: Tue, 27 May 2008 14:55:39 -0700 Subject: [Gambas-user] Startup Configuration Files for Gambas Message-ID: <688afe140805271455s65f2da3s4e4f344af18e85ea@...627...> Hi, I have a problem with the management of ini files, I have an ERP&CRM app, so, I want to have some kind a myapp.ini where I could save startup information for my app, like, "database server IP" (and others), so, the user won't have to write it each time he/she starts the app. I add a plain-text to my project, and It works perfect, but, once I create the installation packages, I cant find where this files are, for example, I use logos in my project, where are the images?, in the same way, Where do I tell the user is the myapp.ini file? The last package is DEB: http://systemarpi.googlepages.com/arpi.tar.gz -- http://tallerhuertas.googlepages.com/ http://systemarpi.googlepages.com/ From m0e.lnx at ...626... Wed May 28 04:25:13 2008 From: m0e.lnx at ...626... (M0E Lnx) Date: Tue, 27 May 2008 21:25:13 -0500 Subject: [Gambas-user] Startup Configuration Files for Gambas In-Reply-To: <688afe140805271455s65f2da3s4e4f344af18e85ea@...627...> References: <688afe140805271455s65f2da3s4e4f344af18e85ea@...627...> Message-ID: <1f1e8c1b0805271925j26b584c8vf1091a048566abaa@...627...> You can certainly use a text file for that.. If you haven't done so, add the gb.settings component to your application. YOu can specify default values for your settings and have the user set the preferences one time (maybe the first time the app loads) Based on the user settings, you create the ini file with the values to be loaded for later use. Take a look at this module of my vpackager application http://vpackager.googlecode.com/svn/trunk/MSettings.module You can use this kind of thing to store paths to graphics (for use a logos) and have the image objects created dynamically in your application based on the paths provided in the file. Espero q' t' ayude!.... ;) On 5/27/08, Nx GT-R BOY wrote: > Hi, I have a problem with the management of ini files, I have an ERP&CRM > app, so, I want to have some kind a myapp.ini where I could save startup > information for my app, like, "database server IP" (and others), so, the > user won't have to write it each time he/she starts the app. > > > > I add a plain-text to my project, and It works perfect, but, once I create > the installation packages, I cant find where this files are, for example, I > use logos in my project, where are the images?, in the same way, Where do I > tell the user is the myapp.ini file? > > > > The last package is DEB: http://systemarpi.googlepages.com/arpi.tar.gz > > > -- > http://tallerhuertas.googlepages.com/ > http://systemarpi.googlepages.com/ > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From ubuntu at ...1914... Wed May 28 22:03:32 2008 From: ubuntu at ...1914... (Jim Miller) Date: Wed, 28 May 2008 16:03:32 -0400 Subject: [Gambas-user] FTP Source Message-ID: <483DBA94.4010900@...1914...> Hi All Would any of you know where I might find some Example code Or Tutorial on using FTP in Gambas. Thanks Jim Miller From rospolosco at ...152... Wed May 28 22:12:13 2008 From: rospolosco at ...152... (Stefano Palmeri) Date: Wed, 28 May 2008 22:12:13 +0200 Subject: [Gambas-user] please, need help with gb.option Message-ID: <200805282212.13510.rospolosco@...152...> Please, could someone provide a little code to show me how to use gb.option component. I need an example application that accepts options "-a -b -c" and print their arguments. I mean: example.gambas -a test -b foo -c bar result on console: "-a" argument is "test" "-b" argument is "foo" "-c" argument is "bar" I googled a lot and searched in the Gambas documentation, but I can't find any example. Thanks. Regards, Stefano From ubuntu at ...1914... Thu May 29 01:56:16 2008 From: ubuntu at ...1914... (Jim Miller) Date: Wed, 28 May 2008 19:56:16 -0400 Subject: [Gambas-user] Need help with Extraction Message-ID: <483DF120.1020701@...1914...> Hello I have found some Tutorial and Examples at this site: http://www.gambasforge.net/cgi-bin/index.gambas?section=code&id=69 KGBFTP V0.25 File Name: KgbFTP-0.25.1.tar.gz It is written in BASIC using Gambas (for Linux) runtime I get an error trying to extract. I have tried several of the downloads and non appear to work. Have any of you found this to be a problem at the above site? I have Ubuntu Latest version and Gambas 2.0.0 Install. Thanks Jim Miller From sourceforge-raindog2 at ...94... Thu May 29 03:58:02 2008 From: sourceforge-raindog2 at ...94... (Rob) Date: Wed, 28 May 2008 21:58:02 -0400 Subject: [Gambas-user] Need help with Extraction In-Reply-To: <483DF120.1020701@...1914...> References: <483DF120.1020701@...1914...> Message-ID: <200805282158.02854.sourceforge-raindog2@...94...> On Wednesday 28 May 2008 19:56, Jim Miller wrote: > http://www.gambasforge.net/cgi-bin/index.gambas?section=code&id=69 > I get an error trying to extract. I have tried several of the > downloads and non appear to work. > Have any of you found this to be a problem at the above site? Yes, gambasforge.net has been broken since about 1 year ago. I haven't found any other copies of its downloads elsewhere on the net, but I would put them up somewhere (no fee, no ads, as I did with the Gambas wiki) if Fabien were to give me access to them. I would offer my server as a host for his whole site, but its Gambas version is 1.9.33 because it's still running Mandrake 10.1 and I haven't been able to get recent versions to compile under such an old OS. We were supposed to have a new server online by now, but my partner passed away last fall and my business partner has moved overseas. But I hope to get it updated soon. Rob From ariefbayu at ...626... Thu May 29 04:13:34 2008 From: ariefbayu at ...626... (Arief Bayu Purwanto) Date: Thu, 29 May 2008 09:13:34 +0700 Subject: [Gambas-user] Need help with Extraction In-Reply-To: <483DF120.1020701@...1914...> References: <483DF120.1020701@...1914...> Message-ID: <976ad9050805281913r2dadc449qcc8d0738cbe82f2f@...627...> On 5/29/08, Jim Miller wrote: > > Hello > I have found some Tutorial and Examples at this site: > http://www.gambasforge.net/cgi-bin/index.gambas?section=code&id=69 > KGBFTP V0.25 > File Name: KgbFTP-0.25.1.tar.gz > It is written in BASIC using Gambas (for Linux) runtime here's some info from the site: EDIT: if you need the source, and can't download it from here, get it from my personnal website. http://boby.joe.free.fr/files/KgbFTP/KgbFTP-0.25.1.tar.gz -- Arief Bayu Purwanto About : http://about.freelancer.web.id/ Blog : http://bayu.freelancer.web.id/ From ubuntu at ...1914... Thu May 29 04:42:54 2008 From: ubuntu at ...1914... (Jim Miller) Date: Wed, 28 May 2008 22:42:54 -0400 Subject: [Gambas-user] Need help with Extraction In-Reply-To: <200805282158.02854.sourceforge-raindog2@...94...> References: <483DF120.1020701@...1914...> <200805282158.02854.sourceforge-raindog2@...94...> Message-ID: <483E182E.2050900@...1914...> Thank you Rob. I figured it must be sbomething strange going o. Jim Miller Rob wrote: > On Wednesday 28 May 2008 19:56, Jim Miller wrote: > >> http://www.gambasforge.net/cgi-bin/index.gambas?section=code&id=69 >> I get an error trying to extract. I have tried several of the >> downloads and non appear to work. >> Have any of you found this to be a problem at the above site? >> > > Yes, gambasforge.net has been broken since about 1 year ago. I > haven't found any other copies of its downloads elsewhere on the net, > but I would put them up somewhere (no fee, no ads, as I did with the > Gambas wiki) if Fabien were to give me access to them. > > I would offer my server as a host for his whole site, but its Gambas > version is 1.9.33 because it's still running Mandrake 10.1 and I > haven't been able to get recent versions to compile under such an old > OS. We were supposed to have a new server online by now, but my > partner passed away last fall and my business partner has moved > overseas. But I hope to get it updated soon. > > Rob > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > From ubuntu at ...1914... Thu May 29 04:45:21 2008 From: ubuntu at ...1914... (Jim Miller) Date: Wed, 28 May 2008 22:45:21 -0400 Subject: [Gambas-user] Need help with Extraction In-Reply-To: <976ad9050805281913r2dadc449qcc8d0738cbe82f2f@...627...> References: <483DF120.1020701@...1914...> <976ad9050805281913r2dadc449qcc8d0738cbe82f2f@...627...> Message-ID: <483E18C1.8060609@...1914...> Hey this is Kool.. Thanks for the lonk will give it a try. Jim Miller Arief Bayu Purwanto wrote: > On 5/29/08, Jim Miller wrote: > >> Hello >> I have found some Tutorial and Examples at this site: >> http://www.gambasforge.net/cgi-bin/index.gambas?section=code&id=69 >> KGBFTP V0.25 >> File Name: KgbFTP-0.25.1.tar.gz >> It is written in BASIC using Gambas (for Linux) runtime >> > > > here's some info from the site: > EDIT: if you need the source, and can't download it from here, get it from > my personnal website. > http://boby.joe.free.fr/files/KgbFTP/KgbFTP-0.25.1.tar.gz > > > > From ron at ...1740... Thu May 29 12:07:56 2008 From: ron at ...1740... (Ron) Date: Thu, 29 May 2008 12:07:56 +0200 Subject: [Gambas-user] SMTPClient message format issue Message-ID: <483E807C.9080805@...1740...> Hi, Hereby a request to add a flagfield, apply a bugfix or correct working logic to smtpclient to be able to sent really plaintext messages with it. A plaintext message should look like this: for example: --- cut --- Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit BODY --- cut --- But if you sent simple textbody with smtpclient it results in this: The content-type is first set to multipart/mixed, and later to text/plain. --- cut --- Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----_=_libsmtp_Nextpart__000_000007DA.3B95D19_1" Content-Transfer-Encoding: 7bit Message-Id: <20080529094221.876B542B6 at ...1915...> Date: Thu, 29 May 2008 11:42:21 +0200 (CEST) This is a MIME multipart message. Your mail reader isn't MIME capable. You might not be able to read parts or all of this message. ------_=_libsmtp_Nextpart__000_000007DA.3B95D19_1 Content-Type: text/plain; name="MIME part #0"; charset="utf-8" Content-Transfer-Encoding: quoted-printable BODY=0D - Powered by Lighthouse V0.0.63 -=0D ------_=_libsmtp_Nextpart__000_000007DA.3B95D19_1-- --- cut --- I want to be able to sent command per e-mail to my aibo, but it doesn't grok these, just really plaintext, non multiparted ones. Gambas 2.6.0 Thanks, Ron. From m0e.lnx at ...626... Thu May 29 15:14:32 2008 From: m0e.lnx at ...626... (M0E Lnx) Date: Thu, 29 May 2008 08:14:32 -0500 Subject: [Gambas-user] comment blocks on gambas3? Message-ID: <1f1e8c1b0805290614x3533eb70oc0e659c8b781e87a@...627...> This is an official feature request for gambas3 I'd like to see a feature to allow comment blocks sort of like the C/C++ style comment blocks... /* These are comments. All of these lines are comments */ Any way to implement that in gambas? Dont get me wrong, the button to make comments out of an entire block of text is good and all, but it could get annoying when you're typing a lot of stuff and you forget to prefix your line with " ' "; then gambas thinks it's code, and turns the "for" into "FOR" and "next" into "NEXT" and stuff like that Just a thought From leonardo at ...1237... Thu May 29 15:32:00 2008 From: leonardo at ...1237... (Leonardo Miliani) Date: Thu, 29 May 2008 15:32:00 +0200 Subject: [Gambas-user] SMTPClient message format issue In-Reply-To: <483E807C.9080805@...1740...> References: <483E807C.9080805@...1740...> Message-ID: <483EB050.7010906@...1237...> I've had similar problems some weeks ago... I was not able to send a message with attachments... only 1 single file that the component got as attachment/body. I solved using mutt via shell... Benoit said me that he based the smtp component on an old library with less functions.. so until he has the time to rewrite it there are no many solutions to get that component working. -- Ciao. Leo. Web: www.leonardomiliani.com E-mail: leonardo at ...1237... Scegli software opensource - Choose opensource software Co-fondatore di Gambas-it.org Il sito di riferimento della comunit? italiana degli utenti di Gambas www.gambas-it.org From eilert-sprachen at ...221... Thu May 29 15:32:34 2008 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Thu, 29 May 2008 15:32:34 +0200 Subject: [Gambas-user] comment blocks on gambas3? In-Reply-To: <1f1e8c1b0805290614x3533eb70oc0e659c8b781e87a@...627...> References: <1f1e8c1b0805290614x3533eb70oc0e659c8b781e87a@...627...> Message-ID: <483EB072.4040708@...221...> M0E Lnx schrieb: > This is an official feature request for gambas3 > > I'd like to see a feature to allow comment blocks sort of like the > C/C++ style comment blocks... > > /* These > are comments. > All of these lines are comments > */ > > Any way to implement that in gambas? > > Dont get me wrong, the button to make comments out of an entire block > of text is good and all, but it could get annoying when you're typing > a lot of stuff and you forget to prefix your line with " ' "; then > gambas thinks it's code, and turns the "for" into "FOR" and "next" > into "NEXT" and stuff like that At least when you write English comments, you will see that at once - just imagine you do it in German :-) On the other hand, this wouldn't be BASIC "standard" anymore, or something new for it anyway. One idea might be a REM - END REM block style, but it's kinda roundabound, too. Rolf From sourceforge-raindog2 at ...94... Thu May 29 15:46:28 2008 From: sourceforge-raindog2 at ...94... (Rob) Date: Thu, 29 May 2008 09:46:28 -0400 Subject: [Gambas-user] comment blocks on gambas3? In-Reply-To: <1f1e8c1b0805290614x3533eb70oc0e659c8b781e87a@...627...> References: <1f1e8c1b0805290614x3533eb70oc0e659c8b781e87a@...627...> Message-ID: <200805290946.28691.sourceforge-raindog2@...94...> On Thursday 29 May 2008 09:14, M0E Lnx wrote: > you're typing a lot of stuff and you forget to prefix your line > with " ' "; then gambas thinks it's code, and turns the "for" into > "FOR" and "next" into "NEXT" and stuff like that This has happened to me a lot of times, and in every case the syntax highlighting has saved me. Rob From sourceforge-raindog2 at ...94... Thu May 29 16:09:51 2008 From: sourceforge-raindog2 at ...94... (Rob) Date: Thu, 29 May 2008 10:09:51 -0400 Subject: [Gambas-user] SMTPClient message format issue In-Reply-To: <483EB050.7010906@...1237...> References: <483E807C.9080805@...1740...> <483EB050.7010906@...1237...> Message-ID: <200805291009.51509.sourceforge-raindog2@...94...> On Thursday 29 May 2008 09:32, Leonardo Miliani wrote: > Benoit said me that he based the smtp component on an old library > with less functions.. so until he has the time to rewrite it there > are no many solutions to get that component working. If what you want to send is a really plain plaintext message, I would personally just connect to the SMTP server directly and do something like: print #mysocket, "HELO localhost" print #mysocket, "MAIL FROM:" print #mysocket, "RCPT TO:" print #mysocket, "DATA" print #mysocket, "From: " print #mysocket, "To: " print #mysocket, "Date: " & format(now, "ddd, dd mmmm yyyy " & _ "hh:nn:ss -0500" ' change -0500 to be your own timezone ' because i don't remember how to get the timezone in gambas print #mysocket, "Subject: " & subject print #mysocket, "" print #mysocket, bodytext print #mysocket, "." Rob From m0e.lnx at ...626... Thu May 29 17:58:15 2008 From: m0e.lnx at ...626... (M0E Lnx) Date: Thu, 29 May 2008 10:58:15 -0500 Subject: [Gambas-user] comment blocks on gambas3? In-Reply-To: <200805290946.28691.sourceforge-raindog2@...94...> References: <1f1e8c1b0805290614x3533eb70oc0e659c8b781e87a@...627...> <200805290946.28691.sourceforge-raindog2@...94...> Message-ID: <1f1e8c1b0805290858u3d3043a6gf408d279d0091209@...627...> Well, For what I understand, Gambas is not suppossed to be a BASIC clone, but I'm not sure how close to the BASIC standards it's supposed to stay.. I mean it doesn't have to be C style, you can even do XML style, or come up with gambas' very own style... so long as it provides an entire block of text to be turned into comment without having to prefix every single line. On Thu, May 29, 2008 at 8:46 AM, Rob wrote: > On Thursday 29 May 2008 09:14, M0E Lnx wrote: >> you're typing a lot of stuff and you forget to prefix your line >> with " ' "; then gambas thinks it's code, and turns the "for" into >> "FOR" and "next" into "NEXT" and stuff like that > > This has happened to me a lot of times, and in every case the syntax > highlighting has saved me. > > Rob > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From ubuntu at ...1914... Thu May 29 20:37:03 2008 From: ubuntu at ...1914... (Jim Miller) Date: Thu, 29 May 2008 14:37:03 -0400 Subject: [Gambas-user] Need help with Extraction In-Reply-To: <976ad9050805281913r2dadc449qcc8d0738cbe82f2f@...627...> References: <483DF120.1020701@...1914...> <976ad9050805281913r2dadc449qcc8d0738cbe82f2f@...627...> Message-ID: <483EF7CF.70800@...1914...> Arief Bayu Purwanto wrote: > here's some info from the site: > EDIT: if you need the source, and can't download it from here, get it from > my personnal website. > http://boby.joe.free.fr/files/KgbFTP/KgbFTP-0.25.1.tar.gz > > Arief Bayu I see this is a version 1 of Gambas and does not run or compile in Gambas2 v 2.0.0....... I'm running Ubuntu on this machine with Gambas 2 and related files installed. I really appreciate the effort...... Thanks much Do You think anyone has recompliled this in a version that will run on my system? In the online help Gambas Component's gb.net.curl FtpClient Many of the html files or not Displayed. I can only think they have not been finished. Please remember I am brand new to Linus system and Gambas. I run a server here at home as a hobby using WinServer Web Server software. Again Thank you very much. Jim Miller http://www.skyhawkbbs.com Lakeland, Florida From m0e.lnx at ...626... Thu May 29 21:28:57 2008 From: m0e.lnx at ...626... (M0E Lnx) Date: Thu, 29 May 2008 14:27:57 -0501 Subject: [Gambas-user] Problem switching forms on embedded application Message-ID: <1f1e8c1b0805291228g4b49019csa58e072baa49658c@...627...> I'm running 2 applications here... a Host and a Client. Some of you may already be familiar with this thing, since I had lots of problems getting the embedder to work.... but now that it's working, I have another problem The first form loads right into the embedder... all the objects work, focus problem is gone and all... but here is the problem I've got more than one form on the client (embedded) application If I try to switch forms, the host application simply hangs and the client goes invisible Should I be using a special method to switch forms in this case? Normally, I'd have a button with this on it's click event FMain.hide FrmNext.Show Well, that is causing the above described problem... Can anyone suggest anything better? Thanks in advance From robane00 at ...67... Thu May 29 22:45:56 2008 From: robane00 at ...67... (Robin Thompson) Date: Thu, 29 May 2008 20:45:56 +0000 Subject: [Gambas-user] reopen standard input Message-ID: Hi, I'm trouble with a console program i'm writing. Basically it requires user input from the console. But the program itself is run from a pipe i.e cmd1 | myprog.gambas PUBLIC SUB Main() DIM a AS Integer DIM inputline AS NEW String[] DIM ipt, f AS String a = -1 WHILE NOT Eof(file.in) a += 1 inputline.Resize(a + 1) LINE INPUT #file.In, inputline[a] WEND FOR EACH f IN inputline LINE INPUT ipt < -- at this point i get MMain.Main.21: #39: End of file PRINT #file.out, f & " " & ipt NEXT END How do I "reopen" standard input? Thanks, RT _________________________________________________________________ http://clk.atdmt.com/UKM/go/msnnkmgl0010000009ukm/direct/01/ From leonardo at ...1237... Thu May 29 22:47:47 2008 From: leonardo at ...1237... (Leonardo Miliani) Date: Thu, 29 May 2008 22:47:47 +0200 Subject: [Gambas-user] SMTPClient message format issue In-Reply-To: <200805291009.51509.sourceforge-raindog2@...94...> References: <483E807C.9080805@...1740...> <483EB050.7010906@...1237...> <200805291009.51509.sourceforge-raindog2@...94...> Message-ID: <483F1673.9070809@...1237...> Rob ha scritto: > On Thursday 29 May 2008 09:32, Leonardo Miliani wrote: >> Benoit said me that he based the smtp component on an old library >> with less functions.. so until he has the time to rewrite it there >> are no many solutions to get that component working. > > If what you want to send is a really plain plaintext message, I would > personally just connect to the SMTP server directly and do something > like: No, I had the necessity to send some attachments, not only a simple plaintext message. -- Ciao. Leo. Web: www.leonardomiliani.com E-mail: leonardo at ...1237... Scegli software opensource - Choose opensource software Co-fondatore di Gambas-it.org Il sito di riferimento della comunit? italiana degli utenti di Gambas www.gambas-it.org From sourceforge-raindog2 at ...94... Thu May 29 23:35:02 2008 From: sourceforge-raindog2 at ...94... (Rob) Date: Thu, 29 May 2008 17:35:02 -0400 Subject: [Gambas-user] SMTPClient message format issue In-Reply-To: <483F1673.9070809@...1237...> References: <483E807C.9080805@...1740...> <200805291009.51509.sourceforge-raindog2@...94...> <483F1673.9070809@...1237...> Message-ID: <200805291735.02636.sourceforge-raindog2@...94...> On Thursday 29 May 2008 16:47, Leonardo Miliani wrote: > > If what you want to send is a really plain plaintext message, I > No, I had the necessity to send some attachments, not only a simple > plaintext message. Oops, I guess it was Ron who needed to send plaintext messages to his Aibo. Rob From jshackney at ...626... Fri May 30 02:04:21 2008 From: jshackney at ...626... (Jason Hackney) Date: Thu, 29 May 2008 20:04:21 -0400 Subject: [Gambas-user] comment blocks on gambas3? In-Reply-To: <1f1e8c1b0805290858u3d3043a6gf408d279d0091209@...627...> References: <1f1e8c1b0805290614x3533eb70oc0e659c8b781e87a@...627...> <200805290946.28691.sourceforge-raindog2@...94...> <1f1e8c1b0805290858u3d3043a6gf408d279d0091209@...627...> Message-ID: <799be1690805291704u3236f43bv40253d13d85337f6@...627...> I'd have to agree with you there. When I first grabbed Gambas, I tried to insert a long, multi-line comment using /*, */. After I figured out that wasn't going to work, I looked around and saw the " ' '" method and said to myself, "aw crap, just like VB!". So, I empathize with ya, but I've gotten to the point where I don't care either way now. On 5/29/08, M0E Lnx wrote: > Well, For what I understand, Gambas is not suppossed to be a BASIC > clone, but I'm not sure how close to the BASIC standards it's supposed > to stay.. > > I mean it doesn't have to be C style, you can even do XML style, or > come up with gambas' very own style... so long as it provides an > entire block of text to be turned into comment without having to > prefix every single line. > > > > On Thu, May 29, 2008 at 8:46 AM, Rob wrote: > > On Thursday 29 May 2008 09:14, M0E Lnx wrote: > >> you're typing a lot of stuff and you forget to prefix your line > >> with " ' "; then gambas thinks it's code, and turns the "for" into > >> "FOR" and "next" into "NEXT" and stuff like that > > > > This has happened to me a lot of times, and in every case the syntax > > highlighting has saved me. > > > > Rob > > > > ------------------------------------------------------------------------- > > This SF.net email is sponsored by: Microsoft > > Defy all challenges. Microsoft(R) Visual Studio 2008. > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > _______________________________________________ > > 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: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From nando_f at ...951... Fri May 30 03:53:06 2008 From: nando_f at ...951... (nando) Date: Thu, 29 May 2008 20:53:06 -0500 Subject: [Gambas-user] reopen standard input In-Reply-To: References: Message-ID: <20080530014723.M21777@...951...> I believe you get the EOF error because your program is wanting input there isn't any from the sending program (through the pipe). STDIN is always open. You have to make sure your program won't crash due to no input available which is what is happening here. Data is sent through the pipe when the kernel does it, and it may not necessarily be on a word or a line boundaries and you might believe. Expect that the input line could have no data. -Fernando ---------- Original Message ----------- From: Robin Thompson To: Sent: Thu, 29 May 2008 20:45:56 +0000 Subject: [Gambas-user] reopen standard input > Hi, > > I'm trouble with a console program i'm writing. Basically it requires user > input from the console. But the program itself is run from a pipe > > i.e cmd1 | myprog.gambas > > PUBLIC SUB Main() > DIM a AS Integer > DIM inputline AS NEW String[] > DIM ipt, f AS String > a = -1 > > WHILE NOT Eof(file.in) > a += 1 > inputline.Resize(a + 1) > LINE INPUT #file.In, inputline[a] > WEND > > FOR EACH f IN inputline > > LINE INPUT ipt < -- at this point i get MMain.Main.21: #39: End of file > PRINT #file.out, f & " " & ipt > > NEXT > END > > How do I "reopen" standard input? > > Thanks, > > RT > _________________________________________________________________ > > http://clk.atdmt.com/UKM/go/msnnkmgl0010000009ukm/direct/01/ > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user ------- End of Original Message ------- From robane00 at ...67... Fri May 30 11:12:17 2008 From: robane00 at ...67... (Robin Thompson) Date: Fri, 30 May 2008 09:12:17 +0000 Subject: [Gambas-user] reopen standard input In-Reply-To: <20080530014723.M21777@...951...> References: <20080530014723.M21777@...951...> Message-ID: Thanks, but how do I then get my gambas program to accept keyboard input when its been started by a pipe? or is that not possible? RT > From: nando_f at ...951...> To: gambas-user at lists.sourceforge.net> Date: Thu, 29 May 2008 20:53:06 -0500> Subject: Re: [Gambas-user] reopen standard input> > I believe you get the EOF error because your program is wanting input> there isn't any from the sending program (through the pipe).> STDIN is always open.> You have to make sure your program won't crash due to no input available> which is what is happening here.> Data is sent through the pipe when the kernel does it, and it may not> necessarily be on a word or a line boundaries and you might believe.> Expect that the input line could have no data.> -Fernando> > > > > ---------- Original Message -----------> From: Robin Thompson > To: > Sent: Thu, 29 May 2008 20:45:56 +0000> Subject: [Gambas-user] reopen standard input> > > Hi,> > > > I'm trouble with a console program i'm writing. Basically it requires user > > input from the console. But the program itself is run from a pipe> > > > i.e cmd1 | myprog.gambas> > > > PUBLIC SUB Main()> > DIM a AS Integer> > DIM inputline AS NEW String[]> > DIM ipt, f AS String> > a = -1> > > > WHILE NOT Eof(file.in) > > a += 1> > inputline.Resize(a + 1)> > LINE INPUT #file.In, inputline[a] > > WEND> > > > FOR EACH f IN inputline> > > > LINE INPUT ipt < -- at this point i get MMain.Main.21: #39: End of file> > PRINT #file.out, f & " " & ipt> > > > NEXT > > END> > > > How do I "reopen" standard input?> > > > Thanks,> > > > RT> > _________________________________________________________________> > > > http://clk.atdmt.com/UKM/go/msnnkmgl0010000009ukm/direct/01/> > -------------------------------------------------------------------------> > This SF.net email is sponsored by: Microsoft> > Defy all challenges. Microsoft(R) Visual Studio 2008.> > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/> > _______________________________________________> > Gambas-user mailing list> > Gambas-user at lists.sourceforge.net> > https://lists.sourceforge.net/lists/listinfo/gambas-user> ------- End of Original Message -------> > > -------------------------------------------------------------------------> This SF.net email is sponsored by: Microsoft> Defy all challenges. Microsoft(R) Visual Studio 2008.> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/> _______________________________________________> Gambas-user mailing list> Gambas-user at lists.sourceforge.net> https://lists.sourceforge.net/lists/listinfo/gambas-user _________________________________________________________________ Great deals on almost anything at eBay.co.uk. Search, bid, find and win on eBay today! http://clk.atdmt.com/UKM/go/msnnkmgl0010000004ukm/direct/01/ From sourceforge-raindog2 at ...94... Fri May 30 16:22:18 2008 From: sourceforge-raindog2 at ...94... (Rob) Date: Fri, 30 May 2008 10:22:18 -0400 Subject: [Gambas-user] reopen standard input In-Reply-To: References: <20080530014723.M21777@...951...> Message-ID: <200805301022.18263.sourceforge-raindog2@...94...> On Friday 30 May 2008 05:12, Robin Thompson wrote: > but how do I then get my gambas program to accept keyboard input > when its been started by a pipe? You could try to open the TTY of the terminal it's running on, but that would involve some gb.api stuff, I think. The "correct" way to do it would be to write a gb.curses component, but that would be a huge job. Rob From Mike at ...680... Fri May 30 17:00:22 2008 From: Mike at ...680... (Mike Keehan) Date: Fri, 30 May 2008 16:00:22 +0100 Subject: [Gambas-user] reopen standard input In-Reply-To: References: Message-ID: <48401686.7070000@...680...> Robin Thompson wrote: > Hi, > > I'm trouble with a console program i'm writing. Basically it requires user input from the console. But the program itself is run from a pipe > > i.e cmd1 | myprog.gambas > > PUBLIC SUB Main() > DIM a AS Integer > DIM inputline AS NEW String[] > DIM ipt, f AS String > a = -1 > > WHILE NOT Eof(file.in) > a += 1 > inputline.Resize(a + 1) > LINE INPUT #file.In, inputline[a] > WEND > > > FOR EACH f IN inputline > > LINE INPUT ipt < -- at this point i get MMain.Main.21: #39: End of file > PRINT #file.out, f & " " & ipt > > NEXT > END > > How do I "reopen" standard input? > Not very easily :) It would be easier to run your "cmd1" from within your Gambas application, using Shell or Exec, and collect its output into a file which you then load. (In C, you could 'close(0); fd = open("/dev/tty");' to close the current connection on stdin, and re-open with the user's terminal. You could still have the problem of knowing when cmd1 has finished outputting data though.) Mike From nando_f at ...951... Fri May 30 17:05:46 2008 From: nando_f at ...951... (nando) Date: Fri, 30 May 2008 10:05:46 -0500 Subject: [Gambas-user] reopen standard input In-Reply-To: References: <20080530014723.M21777@...951...> Message-ID: <20080530150238.M71163@...951...> Perhaps using 2 programs. The first is the pipe-to Gambas program. It immediately starts another one which is your main keyboard program. Then open a socket between the two so the first can send info to the second. ---------- Original Message ----------- From: Robin Thompson To: Sent: Fri, 30 May 2008 09:12:17 +0000 Subject: Re: [Gambas-user] reopen standard input > Thanks, > > but how do I then get my gambas program to accept keyboard input when its been > started by a pipe? > > or is that not possible? > > RT > > > From: nando_f at ...951...> To: gambas-user at lists.sourceforge.net> Date: Thu, 29 May 2008 20:53:06 -0500> Subject: Re: [Gambas-user] reopen standard input> > I believe you get the EOF error because your program is wanting input> there isn't any from the sending program (through the pipe).> STDIN is always open.> You have to make sure your program won't crash due to no input available> which is what is happening here.> Data is sent through the pipe when the kernel does it, and it may not> necessarily be on a word or a line boundaries and you might believe.> Expect that the input line could have no data.> -Fernando> > > > > ---------- Original Message -----------> From: Robin Thompson > To: > Sent: Thu, 29 May 2008 20:45:56 +0000> Subject: [Gambas-user] reopen standard input> > > Hi,> > > > I'm trouble with a console program i'm writing. Basically it requires user > > input from the console. But the program itself > is run from a pipe> > > > i.e cmd1 | myprog.gambas> > > > PUBLIC SUB Main()> > > DIM a AS Integer> > DIM inputline AS NEW String[]> > DIM ipt, f AS String> > a = > -1> > > > WHILE NOT Eof(file.in) > > a += 1> > inputline.Resize(a + 1)> > LINE > INPUT #file.In, inputline[a] > > WEND> > > > FOR EACH f IN inputline> > > > LINE > INPUT ipt < -- at this point i get MMain.Main.21: #39: End of file> > PRINT > #file.out, f & " " & ipt> > > > NEXT > > END> > > > How do I "reopen" standard > input?> > > > Thanks,> > > > RT> > > _________________________________________________________________> > > > > http://clk.atdmt.com/UKM/go/msnnkmgl0010000009ukm/direct/01/> > ----------------- > --------------------------------------------------------> > This SF.net email is > sponsored by: Microsoft> > Defy all challenges. Microsoft(R) Visual Studio > 2008.> > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/> > > _______________________________________________> > Gambas-user mailing list> > > Gambas-user at ...496... ceforge.net> > > https://lists.sourceforge.net/lists/listinfo/gambas-user> ------- End of > Original Message -------> > > --------------------------------------------------- > ----------------------> This SF.net email is sponsored by: Microsoft> Defy all > challenges. Microsoft(R) Visual Studio 2008.> > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/> > _______________________________________________> Gambas-user mailing list> > Gambas-user at lists.sourceforge.net> > https://lists.sourceforge.net/lists/listinfo/gambas-user _________________________________________________________________ > Great deals on almost anything at eBay.co.uk. Search, bid, find and win on eBay today! > http://clk.atdmt.com/UKM/go/msnnkmgl0010000004ukm/direct/01/ > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user ------- End of Original Message ------- From sourceforge-raindog2 at ...94... Fri May 30 18:26:59 2008 From: sourceforge-raindog2 at ...94... (Rob) Date: Fri, 30 May 2008 12:26:59 -0400 Subject: [Gambas-user] reopen standard input In-Reply-To: <20080530150238.M71163@...951...> References: <20080530150238.M71163@...951...> Message-ID: <200805301226.59281.sourceforge-raindog2@...94...> On Friday 30 May 2008 11:05, nando wrote: > Perhaps using 2 programs. > The first is the pipe-to Gambas program. > It immediately starts another one which is your main > keyboard program. Then open a socket between the two so > the first can send info to the second. I think the problem is on the sending end; once the input pipe is closed, it's closed for all the programs in the pipe chain. I just tried this with Perl and the second program just immediately got EOF as well. I assume reading the tty/pty (whether directly or through some library) is the only way this can reliably be done. Rob From robane00 at ...67... Fri May 30 20:12:14 2008 From: robane00 at ...67... (Robin Thompson) Date: Fri, 30 May 2008 18:12:14 +0000 Subject: [Gambas-user] reopen standard input In-Reply-To: <200805301226.59281.sourceforge-raindog2@...94...> References: <20080530150238.M71163@...951...> <200805301226.59281.sourceforge-raindog2@...94...> Message-ID: Ok, Anyone got any idea how to get EXEC .. for READ WRITE as x working? So far i've got this (doesn't work at all) FRONTEND is run from bash. it sends the standard input to my test program (stdin) with echoes back it in uppercase Frontend code: PUBLIC SUB Main() DIM a AS String DIM t AS Process t = EXEC ["stdin"] FOR READ WRITE AS "stdin" PRINT #t, "this is a test" WHILE NOT Eof(File.in) LINE INPUT a PRINT #t, a WEND END PUBLIC SUB stdin_read() DIM sLine AS String READ #LAST, sLine, -256 PRINT #File.out, sLine END --------------------------------------------------------------------------------------------- stdin code: PUBLIC SUB Main() DIM a AS Integer DIM inputline AS NEW String[] DIM ipt, f AS String PRINT #file.out, "teststring" loo: a = -1 WHILE NOT Eof(file.in) a += 1 inputline.Resize(a + 1) LINE INPUT #file.In, inputline[a] WEND FOR EACH f IN inputline PRINT #file.out, UCase(f) NEXT WHILE Eof(file.in) WEND GOTO LOO END Thanks RT ---------------------------------------- > From: sourceforge-raindog2 at ...94... > To: gambas-user at lists.sourceforge.net > Date: Fri, 30 May 2008 12:26:59 -0400 > Subject: Re: [Gambas-user] reopen standard input > > On Friday 30 May 2008 11:05, nando wrote: >> Perhaps using 2 programs. >> The first is the pipe-to Gambas program. >> It immediately starts another one which is your main >> keyboard program. Then open a socket between the two so >> the first can send info to the second. > > I think the problem is on the sending end; once the input pipe is > closed, it's closed for all the programs in the pipe chain. I just > tried this with Perl and the second program just immediately got EOF > as well. I assume reading the tty/pty (whether directly or through > some library) is the only way this can reliably be done. > > Rob > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user _________________________________________________________________ http://clk.atdmt.com/UKM/go/msnnkmgl0010000007ukm/direct/01/ From joanjoc at ...626... Sat May 31 13:40:05 2008 From: joanjoc at ...626... (Joanjoc) Date: Sat, 31 May 2008 13:40:05 +0200 Subject: [Gambas-user] Autostart app Message-ID: Hi, I need that my gambas app autostarts when an user logins. In ubuntu it can be done manually using the GUI or creating an myapp.desktop file located on /home/user/.config/autostart but how it can be done automatically by the installation package (myapp.deb) ? Thanks in advance. -- Joanjo :-) From jredrejo at ...626... Sat May 31 14:52:17 2008 From: jredrejo at ...626... (=?UTF-8?Q?Jos=C3=A9_Luis_Redrejo?=) Date: Sat, 31 May 2008 14:52:17 +0200 Subject: [Gambas-user] Autostart app In-Reply-To: References: Message-ID: <8eb28a500805310552r19c8b0e9j696d98d449139a2a@...627...> use /etc/xdg/autostart 2008/5/31 Joanjoc : > Hi, > > I need that my gambas app autostarts when an user logins. In ubuntu it can > be done manually using the GUI or creating an myapp.desktop file located on > /home/user/.config/autostart but how it can be done automatically by the > installation package (myapp.deb) ? > > Thanks in advance. > > -- > Joanjo :-) > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From robertsonhamish at ...626... Sat May 31 17:11:52 2008 From: robertsonhamish at ...626... (Hamish Robertson) Date: Sat, 31 May 2008 22:11:52 +0700 Subject: [Gambas-user] Making debian repositories? Message-ID: Nearly finished a BASH script that makes it possible to double-click install software on ubuntu sans the internet. I'm almost there but I'm having trouble creating a local apt repository (I want to create an apt repository in a folder on my hard disk. Anyone got a clue how to do this? Any help would be greatly appreciated. p.s sorry this isn't GAMBAS...will add a proper gambas UI once I get this script worked out... l#/bin/bash # MAKE AN INSTALL SCRIPT SCRIPT # Hamish's convert's deb files to self extracting gz files. # bundles the desired deb and all it's dependancies together. gksu -k /bin/echo "login der" sudo mkdir /tmp/setupfiles sudo rm -f /var/cache/apt/archives/*.deb #sudo yes | sudo apt-get update sdebname=$(zenity --text "Please enter a one-word name for your superdeb." --entry) zenity --info \ --text="Please choose the packages to include in your setup file. When you have finished downloading your packages, please exit Synaptic to continue." sudo synaptic #Synaptic has now finished #Make a directory for the metapackage sudo mkdir -p /tmp/setupfiles/$sdebname/DEBIAN # Now we need to clear the control file if there is a pre-existing control file sudo rm -f /tmp/setupfiles/$sdebname/DEBIAN/control cd /tmp/setupfiles/$sdebname/DEBIAN #Make a new (and empty) control file sudo touch control sudo chmod 666 control #start filling in the fields #Insert package name into control file sudo echo "Package: "$sdebname >> control #insert version no... in this case it's always 1.0 sudo echo "Version: 1.0" >> control #insert section sudo echo "Section: unknown" >> control #insert Priority sudo echo "Priority: optional" >> control #insert Maintainer sudo echo "Maintainer: Superdeb! " >> control #insert Architechture sudo echo "Architecture: i386" >> control #insert list of dependancies cd /var/cache/apt/archives/ ## Rob's perl listing script. (Thanks Rob!!) DEPLIST=$(perl -e 'print join(", ", map { s/.deb$//; $_ } split("\n", `ls *.deb`)), "\n";') cd /tmp/setupfiles/$sdebname/DEBIAN sudo echo "Depends: "$DEPLIST >> control #Metapackage Description sudo echo "Description: This is the metapackage used to install "$sdebname >> control ##Control file is made! Yay! Now just have to make it into a .deb file cd /tmp/setupfiles/ sudo dpkg-deb -b --nocheck $sdebname #in theory I should now have a metapackage! #Now to make a repository HELP!!!! I'm in the ballpark here...just not hitting a home run yet.. cd /var/cache/apt/archives sudo cp *.deb /tmp/setupfiles sudo -i cd /tmp/setupfiles/ sudo ls -1 *.deb > override # create a package file dpkg-scanpackages ./ override | gzip > Packages.gz mkdir /tmp/setupfiles/packages sudo cp *.deb /tmp/setupfiles/packages From d.paleino at ...626... Sat May 31 17:25:04 2008 From: d.paleino at ...626... (David Paleino) Date: Sat, 31 May 2008 17:25:04 +0200 Subject: [Gambas-user] Making debian repositories? In-Reply-To: References: Message-ID: <20080531172504.2ae43097@...626...> On Sat, 31 May 2008 22:11:52 +0700, Hamish Robertson wrote: > Nearly finished a BASH script that makes it possible to double-click install > software on ubuntu sans the internet. What do you mean? Isn't that accomplished by things like gdebi and apt-zip? > I'm almost there but I'm having trouble creating a local apt repository (I > want to create an apt repository in a folder on my hard disk. Anyone got a > clue how to do this? Check for reprepro, debmirror, ... > Any help would be greatly appreciated. p.s sorry this isn't GAMBAS...will add > a proper gambas UI once I get this script worked out... :) > #/bin/bash > # MAKE AN INSTALL SCRIPT SCRIPT > # Hamish's convert's deb files to self extracting gz files. > # bundles the desired deb and all it's dependancies together. > > gksu -k /bin/echo "login der" Don't rely on the user having gksu. Better would be: [ -x /usr/bin/gksu ] && gksu -k /bin/echo "login der" You might also want to generalize that, allowing the use of "kdesudo", "sudo" ans "su". > sudo mkdir /tmp/setupfiles > > sudo rm -f /var/cache/apt/archives/*.deb > > #sudo yes | sudo apt-get update Don't expect anyone to have sudo. That's Ubuntuish (see my signature :P) > sdebname=$(zenity --text "Please enter a one-word name for your superdeb." > --entry) > > zenity --info \ > --text="Please choose the packages to include in your setup file. When you > have finished downloading your packages, please exit Synaptic to continue." Check for zenity: [ -x /usr/bin/zenity ] && zenity ... > sudo synaptic > #Synaptic has now finished Does that work? Besides the "don't expect sudo" remark -- wouldn't that just start synaptic? Also, don't expect (?) synaptic. > ... > > #insert version no... in this case it's always 1.0 > sudo echo "Version: 1.0" >> control Not true, lately in Debian we have inroduced: Version: 1.0 Version: 2.0 Version: 3.0 (quilt) Version: 3.0 (native) Version: 3.0 (git) > #insert section > sudo echo "Section: unknown" >> control Isn't there a way to fix that? > #insert Architechture > sudo echo "Architecture: i386" >> control Only i386? > #insert list of dependancies > cd /var/cache/apt/archives/ > ## Rob's perl listing script. (Thanks Rob!!) > DEPLIST=$(perl -e 'print join(", ", map { s/.deb$//; $_ } > split("\n", `ls *.deb`)), "\n";') As far as I understood, you're just listing anything in /var/cache/apt/archives... they're *not* dependencies. > #Now to make a repository HELP!!!! I'm in the ballpark here...just not > hitting a home run yet.. Check my tips above. > ... Please take my notes as suggestions, I don't mean to offend anyone :) Kindly, David P.S.: if you could explain what you're trying to achieve, maybe there's an easier and fancier way... -- . ''`. 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: 189 bytes Desc: not available URL: From robertsonhamish at ...626... Sat May 31 17:44:23 2008 From: robertsonhamish at ...626... (Hamish Robertson) Date: Sat, 31 May 2008 22:44:23 +0700 Subject: [Gambas-user] Making debian repositories? In-Reply-To: <20080531172504.2ae43097@...626...> References: <20080531172504.2ae43097@...626...> Message-ID: Woah! Thanks man for the uber-quick reply! Sorry about the ubuntu-ness of my script. I am a totall newbie and figured I'd start with what I know then decide if it's worth porting to other distros. This is what I'm trying to achieve. A double-click install file that installs programs without the internet. Micro-crap style! My target market is complete linux newbies and users in 3rd world countries without net access. They need to be able to double-click on a file and have it install. This script is designed to be run from a custom minimal distro run in a VM so as to allow synaptic to download all the dependancies. and make the output "setup" file compatible with most ubuntu variants. what it does... The user downloads the program(s) that they want to package into the setup file using synaptic. Synaptic also downloads all of the dependancies. The script creates a metapackage that has all the newly-downloaded .deb files listed as dependancies. then the idea is to merge all the downloaded .debs + the metapackage into a repository created in a local folder. The repository is then zipped into an executeable archive along with a script that will install it with a nifty utility called makeself. When a user double clicks on the "setup" archive, it extracts the repo into /tmp, replaces sources.list with a new one pointing to the new repository, runs apt-get update then installs the metapackage and all of it's bundles dependancies. i think it's a good idea? Any thoughts? I'm a total newbie...:P H. 2008/5/31 David Paleino : > On Sat, 31 May 2008 22:11:52 +0700, Hamish Robertson wrote: > > > Nearly finished a BASH script that makes it possible to double-click > install > > software on ubuntu sans the internet. > > What do you mean? > Isn't that accomplished by things like gdebi and apt-zip? > > > I'm almost there but I'm having trouble creating a local apt repository > (I > > want to create an apt repository in a folder on my hard disk. Anyone got > a > > clue how to do this? > > Check for reprepro, debmirror, ... > > > Any help would be greatly appreciated. p.s sorry this isn't GAMBAS...will > add > > a proper gambas UI once I get this script worked out... > > :) > > > #/bin/bash > > # MAKE AN INSTALL SCRIPT SCRIPT > > # Hamish's convert's deb files to self extracting gz files. > > # bundles the desired deb and all it's dependancies together. > > > > gksu -k /bin/echo "login der" > > Don't rely on the user having gksu. > Better would be: > > [ -x /usr/bin/gksu ] && gksu -k /bin/echo "login der" > > You might also want to generalize that, allowing the use of "kdesudo", > "sudo" > ans "su". > > > sudo mkdir /tmp/setupfiles > > > > sudo rm -f /var/cache/apt/archives/*.deb > > > > #sudo yes | sudo apt-get update > > Don't expect anyone to have sudo. That's Ubuntuish (see my signature :P) > > > sdebname=$(zenity --text "Please enter a one-word name for your > superdeb." > > --entry) > > > > zenity --info \ > > --text="Please choose the packages to include in your setup file. When > you > > have finished downloading your packages, please exit Synaptic to > continue." > > Check for zenity: > > [ -x /usr/bin/zenity ] && zenity ... > > > sudo synaptic > > #Synaptic has now finished > > Does that work? > Besides the "don't expect sudo" remark -- wouldn't that just start > synaptic? > Also, don't expect (?) synaptic. > > > ... > > > > #insert version no... in this case it's always 1.0 > > sudo echo "Version: 1.0" >> control > > Not true, lately in Debian we have inroduced: > > Version: 1.0 > Version: 2.0 > Version: 3.0 (quilt) > Version: 3.0 (native) > Version: 3.0 (git) > > > > #insert section > > sudo echo "Section: unknown" >> control > > Isn't there a way to fix that? > > > #insert Architechture > > sudo echo "Architecture: i386" >> control > > Only i386? > > > #insert list of dependancies > > cd /var/cache/apt/archives/ > > ## Rob's perl listing script. (Thanks Rob!!) > > DEPLIST=$(perl -e 'print join(", ", map { s/.deb$//; $_ } > > split("\n", `ls *.deb`)), "\n";') > > As far as I understood, you're just listing anything > in /var/cache/apt/archives... they're *not* dependencies. > > > #Now to make a repository HELP!!!! I'm in the ballpark here...just not > > hitting a home run yet.. > > Check my tips above. > > > ... > > Please take my notes as suggestions, I don't mean to offend anyone :) > > Kindly, > David > > P.S.: if you could explain what you're trying to achieve, maybe there's an > easier and fancier way... > > -- > . ''`. 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 > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > From d.paleino at ...626... Sat May 31 17:57:06 2008 From: d.paleino at ...626... (David Paleino) Date: Sat, 31 May 2008 17:57:06 +0200 Subject: [Gambas-user] Making debian repositories? In-Reply-To: References: <20080531172504.2ae43097@...626...> Message-ID: <20080531175706.1d08cfbc@...626...> On Sat, 31 May 2008 22:44:23 +0700, Hamish Robertson wrote: > Woah! Thanks man for the uber-quick reply! > > Sorry about the ubuntu-ness of my script. I am a totall newbie and figured > I'd start with what I know then decide if it's worth porting to other > distros. Ok :) > This is what I'm trying to achieve. > > A double-click install file that installs programs without the internet. > Micro-crap style! > > My target market is complete linux newbies and users in 3rd world countries > without net access. They need to be able to double-click on a file and have > it install. You might want to take a look at something like AutoPackage: did you check that? > This script is designed to be run from a custom minimal distro run in a VM > so as to allow synaptic to download all the dependancies. and make the > output "setup" file compatible with most ubuntu variants. [..] > > then the idea is to merge all the downloaded .debs + the metapackage into a > repository created in a local folder. Then, you will create the repo, and distribute the zip? > The repository is then zipped into an executeable archive along with a > script that will install it with a nifty utility called makeself. Yep, I know that tool! > When a user double clicks on the "setup" archive, it extracts the repo into > /tmp, replaces sources.list with a new one pointing to the new repository, > runs apt-get update then installs the metapackage and all of it's bundles > dependancies. Ok. If you want to distribute "mirrors" of packages with their dependencies, just use apt-zip. I've never really used it, but it shold do the trick. This is the package description: These scripts simplify the process of using dselect and apt on a non-networked Debian box, using removable media like ZIP floppies and USB keys. One generates a `fetch' script (supporting backends such as wget and lftp, in a modular, extensible way) to be run on a host with better connectivity, check space constraints of your removable media, and then install the package on your Debian box. 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: 189 bytes Desc: not available URL: From joanjoc at ...626... Sat May 31 19:00:44 2008 From: joanjoc at ...626... (Joanjoc) Date: Sat, 31 May 2008 19:00:44 +0200 Subject: [Gambas-user] Gambas-user Digest, Vol 24, Issue 45 In-Reply-To: References: Message-ID: Ok. But how I can instruct gambas to create the package "myapp.deb" that installs "myapp.desktop" file in /etc/xdg/autostart folder? Thanks again. Joanjo :-) > > Message: 8 > Date: Sat, 31 May 2008 14:52:17 +0200 > From: " Jos? Luis Redrejo " > Subject: Re: [Gambas-user] Autostart app > To: "mailing list for gambas users" > > Message-ID: > <8eb28a500805310552r19c8b0e9j696d98d449139a2a at ...627...> > Content-Type: text/plain; charset=UTF-8 > > use /etc/xdg/autostart > > 2008/5/31 Joanjoc : > > > Hi, > > > > I need that my gambas app autostarts when an user logins. In ubuntu it > can > > be done manually using the GUI or creating an myapp.desktop file located > on > > /home/user/.config/autostart but how it can be done automatically by the > > installation package (myapp.deb) ? > > > > Thanks in advance. > > > > -- > > Joanjo :-) > > ------------------------------------------------------------------------- > > > From gambas at ...1... Sat May 31 19:44:33 2008 From: gambas at ...1... (Benoit Minisini) Date: Sat, 31 May 2008 19:44:33 +0200 Subject: [Gambas-user] Autostart app In-Reply-To: <8eb28a500805310552r19c8b0e9j696d98d449139a2a@...627...> References: <8eb28a500805310552r19c8b0e9j696d98d449139a2a@...627...> Message-ID: <200805311944.33728.gambas@...1...> On samedi 31 mai 2008, Jos? Luis Redrejo wrote: > use /etc/xdg/autostart > Can you explain more precisely? Maybe this is an option that could be added to the IDE packager... -- Benoit Minisini From al_ur30 at ...67... Sat May 31 21:51:55 2008 From: al_ur30 at ...67... (tsakaji30) Date: Sat, 31 May 2008 12:51:55 -0700 (PDT) Subject: [Gambas-user] Make instalation package don't work Message-ID: <17570006.post@...1379...> Hello again, another question: i wanted to pack an application that i have made in gambas2 but when i try to use the option "Make instalation package" (there is in the tools bar), i complete the assistant (i have deb-helper installed) but it don't generate a .deb, only a .tar.gz (with the program and the source code). Is this option not implemented yet in Gambas 2-2.5.0? Thanks for your answers ;) -- View this message in context: http://www.nabble.com/Make-instalation-package-don%27t-work-tp17570006p17570006.html Sent from the gambas-user mailing list archive at Nabble.com. From al_ur30 at ...67... Sat May 31 21:53:02 2008 From: al_ur30 at ...67... (tsakaji30) Date: Sat, 31 May 2008 12:53:02 -0700 (PDT) Subject: [Gambas-user] Runtime for a Gambas2 program? Message-ID: <17569784.post@...1379...> Well, I have another question. I have finished an application for the university where I apply the Dijkstra algorithm for making the best decision over a commutating net. So, i wanted that my program run in another ubuntu PCs xD. The problem is that, i couldn't! I have read many posts here in nabble about that but i don't have solution! I have tried with the gambas-runtime.deb and nothing... If someone could help me i will be very gratefull! PD: remember, i have a very basic english, please forgive me xD I'm still learning it! ;) PD2: Thank you! -- View this message in context: http://www.nabble.com/Runtime-for-a-Gambas2-program--tp17569784p17569784.html Sent from the gambas-user mailing list archive at Nabble.com. From al_ur30 at ...67... Sat May 31 21:59:49 2008 From: al_ur30 at ...67... (tsakaji30) Date: Sat, 31 May 2008 12:59:49 -0700 (PDT) Subject: [Gambas-user] Problem with tab key Message-ID: <17569710.post@...1379...> Hi, i'm new in this forum (by the way, congratulations to Benoit for making the best Basic IDE out there!) Well, my question is about the use of the tab key. I have made a form where the user need to fill very much textboxes. The easy way to "navigate" in the form is using the tab key but i dont know why, it doesn't work! I have orderer the hierarchy in the order that i need but I get no response from that key. Please if any have answer for this, don't doubt posting it here! Thank you everyone! PD: Please forgive my poor english, it's not my mother language and i'm still learning it. -- View this message in context: http://www.nabble.com/Problem-with-tab-key-tp17569710p17569710.html Sent from the gambas-user mailing list archive at Nabble.com. From joanjoc at ...626... Sat May 31 22:30:37 2008 From: joanjoc at ...626... (Joanjoc) Date: Sat, 31 May 2008 22:30:37 +0200 Subject: [Gambas-user] Autostart app Message-ID: Hi Beno?t, Maybe the solution will be to add a checkbox during the IDE packager wizard like "Make this app autostart when a user login" If the option is checked, it will be necessary to create an application_name.desktop file (or locate an existent one), and add to the package the instructions to save it on the correct path (/etc/xdg/autostart) P.D. Congratulations for this great software to you and all the people that made it possible !! -- Joanjo :-) -- > > > > ------------------------------ > > Message: 6 > Date: Sat, 31 May 2008 19:44:33 +0200 > From: Benoit Minisini > Subject: Re: [Gambas-user] Autostart app > To: mailing list for gambas users > Message-ID: <200805311944.33728.gambas at ...1...> > Content-Type: text/plain; charset="iso-8859-1" > > On samedi 31 mai 2008, Jos? Luis Redrejo wrote: > > use /etc/xdg/autostart > > > > Can you explain more precisely? Maybe this is an option that could be added > to > the IDE packager... > > -- > Benoit Minisini > > > > ------------------------------ > > Message: 5 > Date: Sat, 31 May 2008 19:00:44 +0200 > From: Joanjoc > Subject: Re: [Gambas-user] Gambas-user Digest, Vol 24, Issue 45 > To: gambas-user at lists.sourceforge.net > Message-ID: > > Content-Type: text/plain; charset=ISO-8859-1 > > Ok. But how I can instruct gambas to create the package "myapp.deb" that > installs "myapp.desktop" file in /etc/xdg/autostart folder? > > Thanks again. > > Joanjo :-) > > > > > > > Message: 8 > > Date: Sat, 31 May 2008 14:52:17 +0200 > > From: " Jos? Luis Redrejo " > > Subject: Re: [Gambas-user] Autostart app > > To: "mailing list for gambas users" > > > > Message-ID: > > <8eb28a500805310552r19c8b0e9j696d98d449139a2a at ...627...> > > Content-Type: text/plain; charset=UTF-8 > > > > use /etc/xdg/autostart > > > > 2008/5/31 Joanjoc : > > > > > Hi, > > > > > > I need that my gambas app autostarts when an user logins. In ubuntu it > > can > > > be done manually using the GUI or creating an myapp.desktop file > located > > on > > > /home/user/.config/autostart but how it can be done automatically by > the > > > installation package (myapp.deb) ? > > > > > > Thanks in advance. > > > > > > -- > > > Joanjo :-) > > > > ------------------------------------------------------------------------- > > > > > > > > From mora.stsn3 at ...626... Sat May 31 17:29:11 2008 From: mora.stsn3 at ...626... (mora) Date: Sat, 31 May 2008 22:29:11 +0700 Subject: [Gambas-user] open and save file Message-ID: <000501c8c3ab$b08354c0$a54aa8c0@...1918...> i have this code, and nit running for save (named simpan) file, please help me.. PUBLIC SUB BrowsBt_Click() DIM buka AS String Dialog.Title = "Choose a File" Dialog.Filter = ["Picture files (*.png;*.jpg;*.jpeg;*.bmp)", "All files(*.*)"] Dialog.OpenFile TextBox1.Text = Dialog.Path buka = Trim(TextBox1.Text) END PUBLIC SUB BrowsBt2_Click() DIM simpan AS String Dialog.Title = "Save As" Dialog.Filter = ["Cipher files (*.o3s)", "All files(*.*)"] 'nama[1] = "dua" Dialog.SaveFile TextBox2.Text = Dialog.Path simpan = Trim(TextBox2.Text) END From rterry at ...1822... Thu May 29 23:54:36 2008 From: rterry at ...1822... (richard terry) Date: Fri, 30 May 2008 07:54:36 +1000 Subject: [Gambas-user] listening/notifying other parts of program Message-ID: <200805300754.36570.rterry@...1822...> Am bogged down/stuck in my project at the moment because of its structural design deficiencies. The core of my app is basically a workspace, with tabs being added/closed etc as needed. Various forms are added onto the tab as needed and contain information which on occasions may have been primarily entered on a different tab, but need to be displayed in a different context on another tab. I need a mechanism which, if I update information on one tab, it somehow posts a message which can be picked up by any other object listening for changes. Hope this is not ambiguous as not being a programmer I don't know how to describe it. Any help/pointers/code examples particularly, appreciated. Richard