From jussi.lahtinen at ...626... Sun Jun 1 01:07:08 2014 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Sun, 1 Jun 2014 02:07:08 +0300 Subject: [Gambas-user] Draw accuracy problem Message-ID: Another try to focus... I'm drawing line from last point to current point, so that current point became last point, and new current point is calculated. And so on. See attachment. So I expect to have continuous line, but I have loops and cuts..? See attached screenshot. Jussi -------------- next part -------------- A non-text attachment was scrubbed... Name: Screenshot .png Type: image/png Size: 1688 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: DrawAccuracyProblem-0.0.1.tar.gz Type: application/x-gzip Size: 6505 bytes Desc: not available URL: From bbruen at ...2308... Sun Jun 1 01:28:57 2014 From: bbruen at ...2308... (B Bruen) Date: Sun, 1 Jun 2014 08:58:57 +0930 Subject: [Gambas-user] Request for comments about a language change In-Reply-To: References: <5389BF34.2090602@...1...> Message-ID: <20140601085857.c14400e1a6e9ca9214a463ff@...2308...> > On Sat, May 31, 2014 at 2:38 PM, Beno?t Minisini < > gambas at ...1...> wrote: > > > Hi people, > > > > Does anybody have an objection against the following change: > > > > "For Each Value In Enumeration" raise an error if `Enumeration` is NULL. > > > > I suggest that instead it does nothing, as if Enumeration was a void array. > > > > What do you think? > > > > -- > > Beno?t Minisini > > So, : 100 Dim aTest As String[] 101 Dim sItem As String 102 103 For Each sItem In aTest 104 Print sItem 105 Next 106 Print aTest.Count would just just fail at line 106 rather than 104? No objections, I just cant see the point? regards Bruce -- B Bruen From jussi.lahtinen at ...626... Sun Jun 1 02:25:26 2014 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Sun, 1 Jun 2014 03:25:26 +0300 Subject: [Gambas-user] Request for comments about a language change In-Reply-To: <20140601085857.c14400e1a6e9ca9214a463ff@...2308...> References: <5389BF34.2090602@...1...> <20140601085857.c14400e1a6e9ca9214a463ff@...2308...> Message-ID: Oh, of course all enumerable classes, I was thinking command ENUM... I try to think whether there could be situation where this would hide error in code. If for some error you pass Null object to this: Public Function CountLargeObjects(hArrayOfObjects As Object[]) As Integer Dim hObject As Object, iCount As Integer For Each hObject In hArrayOfObjects If hObject.Size > 100 Then Inc iCount Endif Next Return iCount End Then it may be harder to catch. But I don't think that is big deal, if this change has some great potential..? Jussi On Sun, Jun 1, 2014 at 2:28 AM, B Bruen wrote: > > On Sat, May 31, 2014 at 2:38 PM, Beno?t Minisini < > > gambas at ...1...> wrote: > > > > > Hi people, > > > > > > Does anybody have an objection against the following change: > > > > > > "For Each Value In Enumeration" raise an error if `Enumeration` is > NULL. > > > > > > I suggest that instead it does nothing, as if Enumeration was a void > array. > > > > > > What do you think? > > > > > > -- > > > Beno?t Minisini > > > > > So, : > 100 Dim aTest As String[] > 101 Dim sItem As String > 102 > 103 For Each sItem In aTest > 104 Print sItem > 105 Next > 106 Print aTest.Count > > would just just fail at line 106 rather than 104? > No objections, I just cant see the point? > > regards > Bruce > -- > B Bruen > From gambas at ...1... Sun Jun 1 02:36:12 2014 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Sun, 01 Jun 2014 02:36:12 +0200 Subject: [Gambas-user] Draw accuracy problem In-Reply-To: References: Message-ID: <538A757C.8010402@...1...> Le 01/06/2014 01:07, Jussi Lahtinen a ?crit : > Another try to focus... I'm drawing line from last point to current point, > so that current point became last point, and new current point is > calculated. And so on. See attachment. > So I expect to have continuous line, but I have loops and cuts..? See > attached screenshot. > > Jussi > Did you try the last revision? -- Beno?t Minisini From jussi.lahtinen at ...626... Sun Jun 1 02:53:49 2014 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Sun, 1 Jun 2014 03:53:49 +0300 Subject: [Gambas-user] Draw accuracy problem In-Reply-To: <538A757C.8010402@...1...> References: <538A757C.8010402@...1...> Message-ID: Same problem with r6297. Jussi On Sun, Jun 1, 2014 at 3:36 AM, Beno?t Minisini < gambas at ...1...> wrote: > Le 01/06/2014 01:07, Jussi Lahtinen a ?crit : > > Another try to focus... I'm drawing line from last point to current > point, > > so that current point became last point, and new current point is > > calculated. And so on. See attachment. > > So I expect to have continuous line, but I have loops and cuts..? See > > attached screenshot. > > > > Jussi > > > > Did you try the last revision? > > -- > Beno?t Minisini > > > ------------------------------------------------------------------------------ > Time is money. Stop wasting it! Get your web API in 5 minutes. > www.restlet.com/download > http://p.sf.net/sfu/restlet > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From jussi.lahtinen at ...626... Sun Jun 1 02:57:41 2014 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Sun, 1 Jun 2014 03:57:41 +0300 Subject: [Gambas-user] Draw accuracy problem In-Reply-To: References: <538A757C.8010402@...1...> Message-ID: [System] Gambas=3.5.90 OperatingSystem=Linux Kernel=3.13.0-27-generic Architecture=x86_64 Distribution=Ubuntu 14.04 LTS Desktop=XFCE Theme=QGtk Language=en_US.UTF-8 Memory=3953M [Libraries] Cairo=libcairo.so.2.11301.0 Curl=libcurl.so.4.3.0 DBus=libdbus-1.so.3.7.6 GStreamer=libgstreamer-0.10.so.0.30.0 GStreamer=libgstreamer-1.0.so.0.204.0 GTK+3=libgtk-3.so.0.1000.8 GTK+=libgtk-x11-2.0.so.0.2400.23 OpenGL=libGL.so.1.2.0 Poppler=libpoppler.so.44.0.0 Qt4=libQtCore.so.4.8.6 SDL=libSDL-1.2.so.0.11.4 Jussi On Sun, Jun 1, 2014 at 3:53 AM, Jussi Lahtinen wrote: > Same problem with r6297. > > Jussi > > > On Sun, Jun 1, 2014 at 3:36 AM, Beno?t Minisini < > gambas at ...1...> wrote: > >> Le 01/06/2014 01:07, Jussi Lahtinen a ?crit : >> > Another try to focus... I'm drawing line from last point to current >> point, >> > so that current point became last point, and new current point is >> > calculated. And so on. See attachment. >> > So I expect to have continuous line, but I have loops and cuts..? See >> > attached screenshot. >> > >> > Jussi >> > >> >> Did you try the last revision? >> >> -- >> Beno?t Minisini >> >> >> ------------------------------------------------------------------------------ >> Time is money. Stop wasting it! Get your web API in 5 minutes. >> www.restlet.com/download >> http://p.sf.net/sfu/restlet >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > From bbruen at ...2308... Sun Jun 1 03:32:22 2014 From: bbruen at ...2308... (B Bruen) Date: Sun, 1 Jun 2014 11:02:22 +0930 Subject: [Gambas-user] Request for comments about a language change In-Reply-To: References: <5389BF34.2090602@...1...> <20140601085857.c14400e1a6e9ca9214a463ff@...2308...> Message-ID: <20140601110222.d0aa8be118b91d560cfc0bb5@...2308...> The only possible problem I can think of is where the enumerated set "becomes" null during the iteration. But quick testing shows that the iteration is done on a copy of the set as at when the For Each is first entered. On the other hand, you might want the enumeration to "automatically end" in the event that the set becomes null? This can currently be done by testing the set at each iteration. Would this change make this happen "automatically"? This could have side effects with existing code. On Sun, 1 Jun 2014 03:25:26 +0300 Jussi Lahtinen wrote: > Oh, of course all enumerable classes, I was thinking command ENUM... > I try to think whether there could be situation where this would hide error > in code. > If for some error you pass Null object to this: > > Public Function CountLargeObjects(hArrayOfObjects As Object[]) As Integer > > Dim hObject As Object, iCount As Integer > > For Each hObject In hArrayOfObjects > If hObject.Size > 100 Then > Inc iCount > Endif > Next > > Return iCount > > End > > > Then it may be harder to catch. > But I don't think that is big deal, if this change has some great > potential..? > > > Jussi > > > > On Sun, Jun 1, 2014 at 2:28 AM, B Bruen wrote: > > > > On Sat, May 31, 2014 at 2:38 PM, Beno?t Minisini < > > > gambas at ...1...> wrote: > > > > > > > Hi people, > > > > > > > > Does anybody have an objection against the following change: > > > > > > > > "For Each Value In Enumeration" raise an error if `Enumeration` is > > NULL. > > > > > > > > I suggest that instead it does nothing, as if Enumeration was a void > > array. > > > > > > > > What do you think? > > > > > > > > -- > > > > Beno?t Minisini > > > > > > > > So, : > > 100 Dim aTest As String[] > > 101 Dim sItem As String > > 102 > > 103 For Each sItem In aTest > > 104 Print sItem > > 105 Next > > 106 Print aTest.Count > > > > would just just fail at line 106 rather than 104? > > No objections, I just cant see the point? > > > > regards > > Bruce > > -- > > B Bruen > > > ------------------------------------------------------------------------------ > Time is money. Stop wasting it! Get your web API in 5 minutes. > www.restlet.com/download > http://p.sf.net/sfu/restlet > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -- B Bruen From bbruen at ...2308... Sun Jun 1 04:10:40 2014 From: bbruen at ...2308... (B Bruen) Date: Sun, 1 Jun 2014 11:40:40 +0930 Subject: [Gambas-user] gb.xml: XMLElement.GetChildrenByAttributeValue with multiple criteria Message-ID: <20140601114040.74d6fff5426791cdb5bf130a@...2308...> In essence, I want to select all (first level) child elements of the current element where attribute "Type"="R" and attribute "Status"="Open", in one hit. Is this possible? tia Bruce -- B Bruen From spikethecat73 at ...626... Sun Jun 1 08:40:21 2014 From: spikethecat73 at ...626... (David Robertson) Date: Sun, 01 Jun 2014 07:40:21 +0100 Subject: [Gambas-user] Paste bug in IDE In-Reply-To: <1401420639752-46734.post@...3046...> References: <1401420639752-46734.post@...3046...> Message-ID: <1401604821.5058.7.camel@...3343...> This happens to me if I accidently click the mouse wheel when I'm scrolling up or down a code module. I'm not normally aware of the paste operation as I've scrolled it off the screen and only discover it later. Not a bug, just clumsy mouse control. I'm running Unity on Ubuntu 14.04, but it happened on older versions of Ubuntu and other desktops. David Robertson On Thu, 2014-05-29 at 20:30 -0700, VonZorch wrote: > Sometimes when I paste a snippet of code it pastes to some random location as > well as where I want it. > I cannot cause this to happen deliberately. > It's new to 3.5.3 > I'm running Mint 16 with the Mate 1.6.1 desktop on a Gateway NE56R41u with > an Intel B960 64 bit processor with the 3.11.0-20.35 kernel. > > > > -- > View this message in context: http://gambas.8142.n7.nabble.com/Paste-bug-in-IDE-tp46734.html > Sent from the gambas-user mailing list archive at Nabble.com. > > ------------------------------------------------------------------------------ > Time is money. Stop wasting it! Get your web API in 5 minutes. > www.restlet.com/download > http://p.sf.net/sfu/restlet > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From gambas.fr at ...626... Sun Jun 1 10:17:57 2014 From: gambas.fr at ...626... (Fabien Bodard) Date: Sun, 1 Jun 2014 10:17:57 +0200 Subject: [Gambas-user] gb.xml: XMLElement.GetChildrenByAttributeValue with multiple criteria In-Reply-To: <20140601114040.74d6fff5426791cdb5bf130a@...2308...> References: <20140601114040.74d6fff5426791cdb5bf130a@...2308...> Message-ID: Byfilter ? Le 1 juin 2014 04:13, "B Bruen" a ?crit : > In essence, I want to select all (first level) child elements of the > current element where attribute "Type"="R" and attribute "Status"="Open", > in one hit. Is this possible? > > tia > Bruce > > -- > B Bruen > > > ------------------------------------------------------------------------------ > Time is money. Stop wasting it! Get your web API in 5 minutes. > www.restlet.com/download > http://p.sf.net/sfu/restlet > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From bagoneo at ...69... Sun Jun 1 10:59:51 2014 From: bagoneo at ...69... (gian) Date: Sun, 01 Jun 2014 10:59:51 +0200 Subject: [Gambas-user] Draw accuracy problem In-Reply-To: References: <538A757C.8010402@...1...> Message-ID: <538AEB87.5050602@...69...> Hello Jussi, I believe that you should use Paint instead of Draw, and Paint.Dash instead of Draw.LineStyle I think that in the help it is well explained how to do. I hope this can be of help gianluigi Il 01/06/2014 02:57, Jussi Lahtinen ha scritto: > [System] > Gambas=3.5.90 > OperatingSystem=Linux > Kernel=3.13.0-27-generic > Architecture=x86_64 > Distribution=Ubuntu 14.04 LTS > Desktop=XFCE > Theme=QGtk > Language=en_US.UTF-8 > Memory=3953M > [Libraries] > Cairo=libcairo.so.2.11301.0 > Curl=libcurl.so.4.3.0 > DBus=libdbus-1.so.3.7.6 > GStreamer=libgstreamer-0.10.so.0.30.0 > GStreamer=libgstreamer-1.0.so.0.204.0 > GTK+3=libgtk-3.so.0.1000.8 > GTK+=libgtk-x11-2.0.so.0.2400.23 > OpenGL=libGL.so.1.2.0 > Poppler=libpoppler.so.44.0.0 > Qt4=libQtCore.so.4.8.6 > SDL=libSDL-1.2.so.0.11.4 > > > Jussi > > > On Sun, Jun 1, 2014 at 3:53 AM, Jussi Lahtinen > wrote: > >> Same problem with r6297. >> >> Jussi >> >> >> On Sun, Jun 1, 2014 at 3:36 AM, Beno?t Minisini < >> gambas at ...1...> wrote: >> >>> Le 01/06/2014 01:07, Jussi Lahtinen a ?crit : >>>> Another try to focus... I'm drawing line from last point to current >>> point, >>>> so that current point became last point, and new current point is >>>> calculated. And so on. See attachment. >>>> So I expect to have continuous line, but I have loops and cuts..? See >>>> attached screenshot. >>>> >>>> Jussi >>>> >>> Did you try the last revision? >>> >>> -- >>> Beno?t Minisini >>> >>> >>> ------------------------------------------------------------------------------ >>> Time is money. Stop wasting it! Get your web API in 5 minutes. >>> www.restlet.com/download >>> http://p.sf.net/sfu/restlet >>> _______________________________________________ >>> Gambas-user mailing list >>> Gambas-user at lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>> >> > ------------------------------------------------------------------------------ > Time is money. Stop wasting it! Get your web API in 5 minutes. > www.restlet.com/download > http://p.sf.net/sfu/restlet > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From shordi at ...626... Sun Jun 1 11:10:41 2014 From: shordi at ...626... (=?UTF-8?Q?Jorge_Carri=C3=B3n?=) Date: Sun, 1 Jun 2014 11:10:41 +0200 Subject: [Gambas-user] A smtpClient question In-Reply-To: References: Message-ID: No answers? It's important for me... but perhaps too silly question. I suppouse i'll have to compress all attachments in all mails. That no solve the problem... just go around it. Regards 2014-05-31 11:47 GMT+02:00 Jorge Carri?n : > I've a Sub to send email. > > If I send a no-attachment mail all is OK. > If I send a non-text attached file, All is Ok. > But If I send a mail with a text file attached then the mail sended > contains the text that I send AND the text inside the attached file as > body... AND the text file attached too. > > My function is this: > > Public Sub send_mail(aTo As String[], cSubject As String, cBody As String, > cFrom As String, Optional aAtach As String[], Optional abcc As String[]) > > Dim enviador As New SmtpClient > Dim s, fich, mime, fname As String > > enviador.debug = True > enviador.host = mcomun.mailserver["host"] > enviador.user = mcomun.mailserver["user"] > enviador.password = mcomun.mailserver["password"] > enviador.Alternative = False > enviador.From = cFrom > For Each s In aTo > enviador.To.Add(s) > Next > enviador.Subject = cSubject > enviador.Body = cBody > If Not IsNull(aAtach) Then > For Each fich In aAtach > Exec ["file", "-bi", fich] To mime > mime = Left(mime, InStr(mime, ";") - 1) > fname = Right(fich, - RInStr(fich, "/")) > enviador.Add(File.Load(fich), mime, fname) > Next > Endif > If Not IsNull(abcc) Then > For Each s In abcc > enviador.bcc.Add(s) > Next > Endif > > enviador.send > > End > > I suppose the smtpClient does something wrong when it detects thas is a > multi mime-part mail... or I'm doing something wrong. > > Any help or suggestions? > > Regards > From gambas at ...1... Sun Jun 1 11:24:26 2014 From: gambas at ...1... (=?UTF-8?B?QmVub8OudCBNaW5pc2luaQ==?=) Date: Sun, 01 Jun 2014 11:24:26 +0200 Subject: [Gambas-user] A smtpClient question In-Reply-To: References: Message-ID: <538AF14A.9040004@...1...> Le 01/06/2014 11:10, Jorge Carri?n a ?crit : > No answers? No time. > It's important for me... but perhaps too silly question. > > I suppouse i'll have to compress all attachments in all mails. > > That no solve the problem... just go around it. > > Regards > > Please provide the resulting mail (for example, with Thunderbird, this is the "*.eml" file you get when you save the mail to disk) so that I can see what is generated exactly. Regards, -- Beno?t Minisini From shordi at ...626... Sun Jun 1 11:26:22 2014 From: shordi at ...626... (=?UTF-8?Q?Jorge_Carri=C3=B3n?=) Date: Sun, 1 Jun 2014 11:26:22 +0200 Subject: [Gambas-user] Console message with LinuxMint 17 Message-ID: Yesterday I updated my computer with LinuxMint 17 with Cinnamon. Since then I can read in IDE console at runtime: (gbx3:3785): Gtk-CRITICAL **: IA__gtk_widget_get_direction: assertion 'GTK_IS_WIDGET (widget)' failed My project uses qt, not gtk neither gui components. Regardas. From gambas at ...1... Sun Jun 1 11:33:52 2014 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Sun, 01 Jun 2014 11:33:52 +0200 Subject: [Gambas-user] Console message with LinuxMint 17 In-Reply-To: References: Message-ID: <538AF380.2030906@...1...> Le 01/06/2014 11:26, Jorge Carri?n a ?crit : > Yesterday I updated my computer with LinuxMint 17 with Cinnamon. > > Since then I can read in IDE console at runtime: > > (gbx3:3785): Gtk-CRITICAL **: IA__gtk_widget_get_direction: assertion > 'GTK_IS_WIDGET (widget)' failed > > My project uses qt, not gtk neither gui components. > > Regardas. Alas, not necessarily. If you use the QGtk QT widget theme, then you use the GTK theme, and so GTK+. -- Beno?t Minisini From shordi at ...626... Sun Jun 1 11:47:51 2014 From: shordi at ...626... (=?UTF-8?Q?Jorge_Carri=C3=B3n?=) Date: Sun, 1 Jun 2014 11:47:51 +0200 Subject: [Gambas-user] A smtpClient question In-Reply-To: <538AF14A.9040004@...1...> References: <538AF14A.9040004@...1...> Message-ID: Benoit: Doing what you request, I've sended a mail to myself from within my project with attached text-file. After that I've configured Thunderbird (usually I use gmail on Firefox) and open it. I'm surprised to find then Thunderbird shows it correctly... I don't know now if my email is right or is wrong. I hate waste your time if, at last, all this is a "feature" (a damm feature) of Gmail... sorry for te noise if it's so. Attaching the .eml file and a screenshot of gmail showing. 2014-06-01 11:24 GMT+02:00 Beno?t Minisini : > Le 01/06/2014 11:10, Jorge Carri?n a ?crit : > > No answers? > > No time. > > > It's important for me... but perhaps too silly question. > > > > I suppouse i'll have to compress all attachments in all mails. > > > > That no solve the problem... just go around it. > > > > Regards > > > > > > Please provide the resulting mail (for example, with Thunderbird, this > is the "*.eml" file you get when you save the mail to disk) so that I > can see what is generated exactly. > > Regards, > > -- > Beno?t Minisini > > > ------------------------------------------------------------------------------ > Time is money. Stop wasting it! Get your web API in 5 minutes. > www.restlet.com/download > http://p.sf.net/sfu/restlet > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -------------- next part -------------- X-Account-Key: account1 X-UIDL: UID146-1389264083 X-Mozilla-Status: 0001 X-Mozilla-Status2: 00000000 X-Mozilla-Keys: Return-path: Envelope-to: jorge at stas-clm.com Delivery-date: Sun, 01 Jun 2014 11:33:04 +0200 Received: from [95.63.223.108] (port=58391 helo=Pater) by int.intersindical-clm.org with esmtpa (Exim 4.82) (envelope-from ) id 1Wr28V-0008BG-PW for jorge at stas-clm.com; Sun, 01 Jun 2014 11:33:04 +0200 Date: Sun, 01 Jun 2014 11:33:03 +0200 From: Subject: Test mail with attached text file To: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----54BA9A3C9BF8382BCC33D4B636895C0B00" Content-Transfer-Encoding: 7bit This is a MIME multipart message. ------54BA9A3C9BF8382BCC33D4B636895C0B00 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable This text is tipped by hand. = Until here. ------54BA9A3C9BF8382BCC33D4B636895C0B00 Content-Type: text/plain; name="attached.txt"; charset="UTF-8" Content-Transfer-Encoding: quoted-printable This text is inside the attached text. = = ------54BA9A3C9BF8382BCC33D4B636895C0B00-- -------------- next part -------------- A non-text attachment was scrubbed... Name: gmailcapture.png Type: image/png Size: 128218 bytes Desc: not available URL: From shordi at ...626... Sun Jun 1 11:50:50 2014 From: shordi at ...626... (=?UTF-8?Q?Jorge_Carri=C3=B3n?=) Date: Sun, 1 Jun 2014 11:50:50 +0200 Subject: [Gambas-user] Console message with LinuxMint 17 In-Reply-To: <538AF380.2030906@...1...> References: <538AF380.2030906@...1...> Message-ID: You mean the Cinnamon theme (I'm using the Mint default) or something like Cairo Dock? 2014-06-01 11:33 GMT+02:00 Beno?t Minisini : > Le 01/06/2014 11:26, Jorge Carri?n a ?crit : > > Yesterday I updated my computer with LinuxMint 17 with Cinnamon. > > > > Since then I can read in IDE console at runtime: > > > > (gbx3:3785): Gtk-CRITICAL **: IA__gtk_widget_get_direction: assertion > > 'GTK_IS_WIDGET (widget)' failed > > > > My project uses qt, not gtk neither gui components. > > > > Regardas. > > Alas, not necessarily. If you use the QGtk QT widget theme, then you use > the GTK theme, and so GTK+. > > -- > Beno?t Minisini > > > ------------------------------------------------------------------------------ > Time is money. Stop wasting it! Get your web API in 5 minutes. > www.restlet.com/download > http://p.sf.net/sfu/restlet > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From shordi at ...626... Sun Jun 1 11:59:36 2014 From: shordi at ...626... (=?UTF-8?Q?Jorge_Carri=C3=B3n?=) Date: Sun, 1 Jun 2014 11:59:36 +0200 Subject: [Gambas-user] Console message with LinuxMint 17 In-Reply-To: <538AF380.2030906@...1...> References: <538AF380.2030906@...1...> Message-ID: Ok. Found the guilty: I use a webview control to show pie-charts and bar-charts and use a javasScript library (Chart.js) to make it. The warning is produced from webview. Don't know why, but I guess that is not a good thing mix different liquors in same cup... Regards 2014-06-01 11:33 GMT+02:00 Beno?t Minisini : > Le 01/06/2014 11:26, Jorge Carri?n a ?crit : > > Yesterday I updated my computer with LinuxMint 17 with Cinnamon. > > > > Since then I can read in IDE console at runtime: > > > > (gbx3:3785): Gtk-CRITICAL **: IA__gtk_widget_get_direction: assertion > > 'GTK_IS_WIDGET (widget)' failed > > > > My project uses qt, not gtk neither gui components. > > > > Regardas. > > Alas, not necessarily. If you use the QGtk QT widget theme, then you use > the GTK theme, and so GTK+. > > -- > Beno?t Minisini > > > ------------------------------------------------------------------------------ > Time is money. Stop wasting it! Get your web API in 5 minutes. > www.restlet.com/download > http://p.sf.net/sfu/restlet > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From shordi at ...626... Sun Jun 1 12:04:24 2014 From: shordi at ...626... (=?UTF-8?Q?Jorge_Carri=C3=B3n?=) Date: Sun, 1 Jun 2014 12:04:24 +0200 Subject: [Gambas-user] Console message with LinuxMint 17 In-Reply-To: References: <538AF380.2030906@...1...> Message-ID: Forget the lat mail: message still appears without javascript... Sorry for the noise. I'll be more carefull before send mails to list in future. Regards 2014-06-01 11:59 GMT+02:00 Jorge Carri?n : > > Ok. Found the guilty: I use a webview control to show pie-charts and > bar-charts and use a javasScript library (Chart.js) to make it. The warning > is produced from webview. Don't know why, but I guess that is not a good > thing mix different liquors in same cup... > > Regards > > 2014-06-01 11:33 GMT+02:00 Beno?t Minisini : > >> Le 01/06/2014 11:26, Jorge Carri?n a ?crit : >> > Yesterday I updated my computer with LinuxMint 17 with Cinnamon. >> > >> > Since then I can read in IDE console at runtime: >> > >> > (gbx3:3785): Gtk-CRITICAL **: IA__gtk_widget_get_direction: assertion >> > 'GTK_IS_WIDGET (widget)' failed >> > >> > My project uses qt, not gtk neither gui components. >> > >> > Regardas. >> >> Alas, not necessarily. If you use the QGtk QT widget theme, then you use >> the GTK theme, and so GTK+. >> >> -- >> Beno?t Minisini >> >> >> ------------------------------------------------------------------------------ >> Time is money. Stop wasting it! Get your web API in 5 minutes. >> www.restlet.com/download >> http://p.sf.net/sfu/restlet >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > From VonZorch at ...626... Sun Jun 1 17:36:05 2014 From: VonZorch at ...626... (VonZorch) Date: Sun, 1 Jun 2014 08:36:05 -0700 (PDT) Subject: [Gambas-user] Feature Requests In-Reply-To: References: <1401419537296-46733.post@...3046...> <1401466217381-46751.post@...3046...> Message-ID: <1401636965732-46805.post@...3046...> Jussi Lahtinen wrote >> >> I was thinking several colors selectable from the open ColorChooser. >> > > OK. I have made the desired change to ColorChooser ColorChooserWithSave.gz this is just the project files, it will need to be compiled. Jussi Lahtinen wrote >> > You mean, you could move project directory via IDE? >> >> A way to tell the interpreter that the application should be run from a >> specified directory during debug. >> > > Why you need that? I have several projects planned that will operate on existing files. They are intended to be placed in a directory common to the files worked on and not installed into /usr/bin. As they are intended for general release I want to be able to drop them into any directory, during development I will be using the files that already exist on my computer to test. -- View this message in context: http://gambas.8142.n7.nabble.com/Feature-Requests-tp46733p46805.html Sent from the gambas-user mailing list archive at Nabble.com. From shordi at ...626... Sun Jun 1 19:28:23 2014 From: shordi at ...626... (=?UTF-8?Q?Jorge_Carri=C3=B3n?=) Date: Sun, 1 Jun 2014 19:28:23 +0200 Subject: [Gambas-user] About treeview control Message-ID: I have a treeview and I like to show it with all it's items expanded in some cases and contracted on another cases. It's posible emulate the "Click on little arrow at left" from code? I can't find the property for that... Regards From jussi.lahtinen at ...626... Sun Jun 1 20:48:44 2014 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Sun, 1 Jun 2014 21:48:44 +0300 Subject: [Gambas-user] Drawing accuracy 2 Message-ID: Here is similar minor accuracy problem. Not sure when this has happened. See attachment. Look at the center of the pie chart. Jussi -------------- next part -------------- A non-text attachment was scrubbed... Name: DrawingAccuracy2-0.0.1.tar.gz Type: application/x-gzip Size: 5230 bytes Desc: not available URL: From jscops at ...11... Sun Jun 1 23:58:04 2014 From: jscops at ...11... (Jack) Date: Sun, 01 Jun 2014 23:58:04 +0200 Subject: [Gambas-user] vector-ball In-Reply-To: <53889B96.7000402@...546...> References: <53875B95.8000004@...546...> <7sna1o01v01WSuC01sncxM> <53889B96.7000402@...546...> Message-ID: <538BA1EC.5010203@...11...> Hi, do you know a vector ball written in Gambas ? No ? then follow the link below http://www.gambasforge.org/code-109-vector-ball.html Jack. From VonZorch at ...626... Mon Jun 2 02:36:54 2014 From: VonZorch at ...626... (VonZorch) Date: Sun, 1 Jun 2014 17:36:54 -0700 (PDT) Subject: [Gambas-user] Paste bug in IDE In-Reply-To: <1401604821.5058.7.camel@...3343...> References: <1401420639752-46734.post@...3046...> <1401604821.5058.7.camel@...3343...> Message-ID: <1401669414391-46810.post@...3046...> I don't use the mouse to cot and paste, just keyboard commands. -- View this message in context: http://gambas.8142.n7.nabble.com/Paste-bug-in-IDE-tp46734p46810.html Sent from the gambas-user mailing list archive at Nabble.com. From gambas at ...1... Mon Jun 2 02:47:56 2014 From: gambas at ...1... (=?UTF-8?B?QmVub8OudCBNaW5pc2luaQ==?=) Date: Mon, 02 Jun 2014 02:47:56 +0200 Subject: [Gambas-user] gb.desktop.x11 In-Reply-To: <538936B6.3060803@...1...> References: <538936B6.3060803@...1...> Message-ID: <538BC9BC.5030703@...1...> Le 31/05/2014 03:56, Beno?t Minisini a ?crit : > Le 31/05/2014 01:07, herberth guzman a ?crit : >> Hi Benoit >> >> Thanks Benoit for Gambas3 , gb.desktop.x11 >> Thanks to Fabien for his lib DesktopApps. >> >> My project is possible thanks to Benoit and Fabien. >> >> >> Panel Innova Desktop (Desktop developed Gambas3) >> >> is a desktop panel, written in Gambas3 >> is funsional through Desktop.X11 and DesktopWatcher >> easy to configure (change solid color, change image panel and adapted to >> desktop theme) >> launcher of applications on the panel >> system date >> system tray or task bar Embedder (Stalonetray) >> >> I have the following consultation: >> >> 1 - How can I work with system tray and not rely on Embedder and >> Stalonetray (nm-applet, gnome-sound-applet, system-config-printer-applet) >> in mypanel. >> > > No way at the moment. I will look at stalonetray source code to see if I > can integrate it into gb.desktop.x11. > This is done in revision #6299. To use it, use a DrawingArea, and calls X11Systray.Show(MyDrawingArea.Handle). Then create a static public method named 'X11Systray_Arrange' in your startup class. That method is called each time icons must be arranged. Here is an simple arrangement routine example: Static Public Sub X11Systray_Arrange() Dim I As Integer Dim X As Integer X = 2 For I = 0 To X11Systray.Count - 1 With X11Systray[I] .Move(X, 2, .IconW, .IconH) X += .IconW + 2 End With Next End For a really complete system tray, you should put your DrawingArea inside a ScrollView, and resize your DrawingArea according to the number of icons and the way you want to display them. Another point: at the moment, only a static color can be used as background in the DrawingArea. Otherwise you will get artifacts, because system tray icons are non-transparent X11 windows. Remember that this system tray is based on the stalonetray source code, and that now there is a new system tray protocol implemented in the KDE panel. Apparently that new protocol is not supported by stalonetray. But maybe I'm wrong, I don't know. >> >> 2 - DesktopWatcher with gb.gtk3 component does not update the windows >> closed or open a new windows. >> > > Does it work with gb.gtk or gb.qt4? Please provide your source code. > There were fixes about that too. Please check and report! Regards, -- Beno?t Minisini From VonZorch at ...626... Mon Jun 2 03:07:53 2014 From: VonZorch at ...626... (VonZorch) Date: Sun, 1 Jun 2014 18:07:53 -0700 (PDT) Subject: [Gambas-user] Component Programing Question Message-ID: <1401671272907-46812.post@...3046...> I have found that inheriting UserControl makes a developing control stop intercepting mouse events. Is this normal? I have been going around in circles trying to get my SpeedListBox working. It currently appears in the toolbox but when placed on a form it is 8 times as large as it should be and when I try to run the test project I get an error "Unexpected end of line in FMain.form:17" however the FMain.form file only has 13 lines. When created in code it does work correctly. Could this be caused by a corrupted component? -- View this message in context: http://gambas.8142.n7.nabble.com/Component-Programing-Question-tp46812.html Sent from the gambas-user mailing list archive at Nabble.com. From gambas at ...1... Mon Jun 2 03:27:23 2014 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Mon, 02 Jun 2014 03:27:23 +0200 Subject: [Gambas-user] Component Programing Question In-Reply-To: <1401671272907-46812.post@...3046...> References: <1401671272907-46812.post@...3046...> Message-ID: <538BD2FB.3050505@...1...> Le 02/06/2014 03:07, VonZorch a ?crit : > I have found that inheriting UserControl makes a developing control stop > intercepting mouse events. Is this normal? I have been going around in > circles trying to get my SpeedListBox working. > > It currently appears in the toolbox but when placed on a form it is 8 times > as large as it should be and when I try to run the test project I get an > error "Unexpected end of line in FMain.form:17" however the FMain.form file > only has 13 lines. When created in code it does work correctly. Could this > be caused by a corrupted component? > Without seeing your source code, I can't say anything useful... -- Beno?t Minisini From jussi.lahtinen at ...626... Mon Jun 2 03:27:51 2014 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Mon, 2 Jun 2014 04:27:51 +0300 Subject: [Gambas-user] Drawing accuracy 2 In-Reply-To: References: Message-ID: I found old thread about this same issue... it seems default value of Paint.LineJoin has just changed. This will fix the problem: Paint.LineJoin = Paint.LineJoinRound Jussi On Sun, Jun 1, 2014 at 9:48 PM, Jussi Lahtinen wrote: > Here is similar minor accuracy problem. Not sure when this has happened. > See attachment. > Look at the center of the pie chart. > > > Jussi > From gambas at ...1... Mon Jun 2 03:54:17 2014 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Mon, 02 Jun 2014 03:54:17 +0200 Subject: [Gambas-user] Drawing accuracy 2 In-Reply-To: References: Message-ID: <538BD949.8010705@...1...> Le 02/06/2014 03:27, Jussi Lahtinen a ?crit : > I found old thread about this same issue... it seems default value of > Paint.LineJoin has just changed. > This will fix the problem: > Paint.LineJoin = Paint.LineJoinRound > > Jussi > Yes. But you have to call Draw.Begin() explicitely, otherwise it won't be taken into account. Or better: stop using the Draw class. Use the Paint class directly. You will get antialiasing too. -- Beno?t Minisini From bbruen at ...2308... Mon Jun 2 04:06:05 2014 From: bbruen at ...2308... (B Bruen) Date: Mon, 2 Jun 2014 11:36:05 +0930 Subject: [Gambas-user] Component Programing Question In-Reply-To: <538BD2FB.3050505@...1...> References: <1401671272907-46812.post@...3046...> <538BD2FB.3050505@...1...> Message-ID: <20140602113605.948a9acd1559d87eb1deba52@...2308...> On Mon, 02 Jun 2014 03:27:23 +0200 Beno?t Minisini wrote: > Le 02/06/2014 03:07, VonZorch a ?crit : > > I have found that inheriting UserControl makes a developing control stop > > intercepting mouse events. Is this normal? I have been going around in > > circles trying to get my SpeedListBox working. > > > > It currently appears in the toolbox but when placed on a form it is 8 times > > as large as it should be and when I try to run the test project I get an > > error "Unexpected end of line in FMain.form:17" however the FMain.form file > > only has 13 lines. When created in code it does work correctly. Could this > > be caused by a corrupted component? > > > > Without seeing your source code, I can't say anything useful... > > -- > Beno?t Minisini > But to take a couple of guesses: In the second paragraph, what you have written suggests that you have not set the default values for the properties and/or the properties constant correctly. "8 times too big" looks like something wrong with your _DefaultSize constant. Remember, it is expressed in Desktop.Scale units. "caused by a corrupted component?" Probably not, more likely you have not defined the control infrastructure constants correctly. Show us the code. In the first para "Is this normal"? No, I have not seen anything like that. Again, SUTC! hth -- B Bruen From vuott at ...325... Mon Jun 2 04:50:09 2014 From: vuott at ...325... (Ru Vuott) Date: Mon, 2 Jun 2014 03:50:09 +0100 (BST) Subject: [Gambas-user] ERROR in Rev. #6299 Message-ID: <1401677409.38116.YahooMailBasic@...3268...> Hello, updating my Gambas with Rev. #6299 I obtain this error: ************************************************************************** In file included from systray/debug.h:16:0, from systray/common.h:12, from systray/systray.c:33: systray/settings.h:16:20: fatal error: layout.h: No such file or directory #include "layout.h" ^ compilation terminated. make[4]: *** [systray/gb_desktop_x11_la-systray.lo] Error 1 make[4]: Leaving directory `/home/vuott/trunk/gb.desktop.x11/src' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/home/vuott/trunk/gb.desktop.x11' make[2]: *** [all] Error 2 make[2]: Leaving directory `/home/vuott/trunk/gb.desktop.x11' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/vuott/trunk' make: *** [all] Error 2 **************************************************************************** Regards vuott From bbruen at ...2308... Mon Jun 2 05:07:52 2014 From: bbruen at ...2308... (B Bruen) Date: Mon, 2 Jun 2014 12:37:52 +0930 Subject: [Gambas-user] Native Date functions and milliseconds Message-ID: <20140602123752.f6767bb8a46ef29525032eff@...2308...> I have just noticed that Date(Year,Month,Day,Hours,Minutes,Seconds) truncates the seconds. It looks like it is expecting an integer. I am trying to work with a "Server Timestamp" string value that gives me the seconds as a Float e.g. "2014-06-02T10:11:15.330" and the milliseconds part has now become important. Is this a bug? Similarly, Second(Date as Date) is defined in the help as returning an integer, again shouldn't it return a float? in the console ?`format(Now,"hh:nn:ss.u") prints something like "12:34:59.764", but ?`format(Date(2014,6,2,12,19,57.666),"hh:nn:ss.uu") prints "12:19:57.000" tia -- B Bruen From spikethecat73 at ...626... Mon Jun 2 07:23:22 2014 From: spikethecat73 at ...626... (David Robertson) Date: Mon, 02 Jun 2014 06:23:22 +0100 Subject: [Gambas-user] Paste bug in IDE In-Reply-To: <1401669414391-46810.post@...3046...> References: <1401420639752-46734.post@...3046...> <1401604821.5058.7.camel@...3343...> <1401669414391-46810.post@...3046...> Message-ID: <1401686602.2784.6.camel@...3343...> On Sun, 2014-06-01 at 17:36 -0700, VonZorch wrote: > I don't use the mouse to cot and paste, just keyboard commands. > > > > -- > View this message in context: http://gambas.8142.n7.nabble.com/Paste-bug-in-IDE-tp46734p46810.html > Sent from the gambas-user mailing list archive at Nabble.com. > > ------------------------------------------------------------------------------ > Learn Graph Databases - Download FREE O'Reilly Book > "Graph Databases" is the definitive new guide to graph databases and their > applications. Written by three acclaimed leaders in the field, > this first edition is now available. Download your free book today! > http://p.sf.net/sfu/NeoTech > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user But my point is that if you have scrolled away from where you were editing, the edit cursor is not on screen and an accidental press of the mouse wheel inserts whatever is in the clipboard at that point. You won't be aware of any paste until later, probably when you recompile or run. As I say, this happens to me occasionally and is my own fault for being clumsy with the mouse. I've never experienced any other "random pastes" in the IDE and I've been using Gambas3 almost daily since Benoit released it. David Robertson From gambas.fr at ...626... Mon Jun 2 09:12:42 2014 From: gambas.fr at ...626... (Fabien Bodard) Date: Mon, 2 Jun 2014 09:12:42 +0200 Subject: [Gambas-user] gb.desktop.x11 In-Reply-To: <538BC9BC.5030703@...1...> References: <538936B6.3060803@...1...> <538BC9BC.5030703@...1...> Message-ID: Le 2 juin 2014 02:48, "Beno?t Minisini" a ?crit : > > Le 31/05/2014 03:56, Beno?t Minisini a ?crit : > > Le 31/05/2014 01:07, herberth guzman a ?crit : > >> Hi Benoit > >> > >> Thanks Benoit for Gambas3 , gb.desktop.x11 > >> Thanks to Fabien for his lib DesktopApps. > >> > >> My project is possible thanks to Benoit and Fabien. > >> > >> > >> Panel Innova Desktop (Desktop developed Gambas3) > >> > >> is a desktop panel, written in Gambas3 > >> is funsional through Desktop.X11 and DesktopWatcher > >> easy to configure (change solid color, change image panel and adapted to > >> desktop theme) > >> launcher of applications on the panel > >> system date > >> system tray or task bar Embedder (Stalonetray) > >> > >> I have the following consultation: > >> > >> 1 - How can I work with system tray and not rely on Embedder and > >> Stalonetray (nm-applet, gnome-sound-applet, system-config-printer-applet) > >> in mypanel. > >> > > > > No way at the moment. I will look at stalonetray source code to see if I > > can integrate it into gb.desktop.x11. > > > > This is done in revision #6299. To use it, use a DrawingArea, and calls > X11Systray.Show(MyDrawingArea.Handle). > > Then create a static public method named 'X11Systray_Arrange' in your > startup class. > > That method is called each time icons must be arranged. Here is an > simple arrangement routine example: > > Static Public Sub X11Systray_Arrange() > > Dim I As Integer > Dim X As Integer > > X = 2 > For I = 0 To X11Systray.Count - 1 > With X11Systray[I] > .Move(X, 2, .IconW, .IconH) > X += .IconW + 2 > End With > Next > > End > > For a really complete system tray, you should put your DrawingArea > inside a ScrollView, and resize your DrawingArea according to the number > of icons and the way you want to display them. > > Another point: at the moment, only a static color can be used as > background in the DrawingArea. Otherwise you will get artifacts, because > system tray icons are non-transparent X11 windows. > > Remember that this system tray is based on the stalonetray source code, > and that now there is a new system tray protocol implemented in the KDE > panel. Based on freedesktop spec ? Apparently that new protocol is not supported by stalonetray. But > maybe I'm wrong, I don't know. > > >> > >> 2 - DesktopWatcher with gb.gtk3 component does not update the windows > >> closed or open a new windows. > >> > > > > Does it work with gb.gtk or gb.qt4? Please provide your source code. > > > > There were fixes about that too. Please check and report! > > Regards, > > -- > Beno?t Minisini > > ------------------------------------------------------------------------------ > Learn Graph Databases - Download FREE O'Reilly Book > "Graph Databases" is the definitive new guide to graph databases and their > applications. Written by three acclaimed leaders in the field, > this first edition is now available. Download your free book today! > http://p.sf.net/sfu/NeoTech > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From vuott at ...325... Mon Jun 2 16:25:01 2014 From: vuott at ...325... (Ru Vuott) Date: Mon, 2 Jun 2014 15:25:01 +0100 (BST) Subject: [Gambas-user] R: ERROR in Rev. #6299 In-Reply-To: <1401677409.38116.YahooMailBasic@...3268...> Message-ID: <1401719101.81590.YahooMailBasic@...3268...> Well, OK, with rev. 6300 no problem: it works. Grazie. vuott -------------------------------------------- Lun 2/6/14, Ru Vuott ha scritto: Oggetto: [Gambas-user] ERROR in Rev. #6299 A: gambas-user at lists.sourceforge.net Data: Luned? 2 giugno 2014, 04:50 Hello, updating my Gambas with Rev. #6299 I obtain this error: ************************************************************************** In file included from systray/debug.h:16:0, ? ? ? ? ? ? ? ???from systray/common.h:12, ? ? ? ? ? ? ? ???from systray/systray.c:33: systray/settings.h:16:20: fatal error: layout.h: No such file or directory #include "layout.h" ? ? ? ? ? ? ? ? ? ? ^ compilation terminated. make[4]: *** [systray/gb_desktop_x11_la-systray.lo] Error 1 make[4]: Leaving directory `/home/vuott/trunk/gb.desktop.x11/src' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/home/vuott/trunk/gb.desktop.x11' make[2]: *** [all] Error 2 make[2]: Leaving directory `/home/vuott/trunk/gb.desktop.x11' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/vuott/trunk' make: *** [all] Error 2 **************************************************************************** Regards vuott ------------------------------------------------------------------------------ Learn Graph Databases - Download FREE O'Reilly Book "Graph Databases" is the definitive new guide to graph databases and their applications. Written by three acclaimed leaders in the field, this first edition is now available. Download your free book today! http://p.sf.net/sfu/NeoTech _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From jussi.lahtinen at ...626... Mon Jun 2 16:45:42 2014 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Mon, 2 Jun 2014 17:45:42 +0300 Subject: [Gambas-user] Drawing accuracy 2 In-Reply-To: <538BD949.8010705@...1...> References: <538BD949.8010705@...1...> Message-ID: > > Yes. But you have to call Draw.Begin() explicitely, otherwise it won't > be taken into account. > Not sure I understand what you mean. I'm using "Paint.LineJoin = Paint.LineJoinRound" inside draw event and it works. It also works with Draw.Begin() method. Or better: stop using the Draw class. Use the Paint class directly. You > will get antialiasing too. > I will look... Jussi From jussi.lahtinen at ...626... Mon Jun 2 16:52:07 2014 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Mon, 2 Jun 2014 17:52:07 +0300 Subject: [Gambas-user] Native Date functions and milliseconds In-Reply-To: <20140602123752.f6767bb8a46ef29525032eff@...2308...> References: <20140602123752.f6767bb8a46ef29525032eff@...2308...> Message-ID: Documentation is not up to date. See attached screenshot. You don't see this? What is your Gambas version? Jussi On Mon, Jun 2, 2014 at 6:07 AM, B Bruen wrote: > I have just noticed that Date(Year,Month,Day,Hours,Minutes,Seconds) > truncates the seconds. It looks like it is expecting an integer. I am > trying to work with a "Server Timestamp" string value that gives me the > seconds as a Float e.g. "2014-06-02T10:11:15.330" and the milliseconds part > has now become important. Is this a bug? > > Similarly, Second(Date as Date) is defined in the help as returning an > integer, again shouldn't it return a float? > > in the console > ?`format(Now,"hh:nn:ss.u") prints something like "12:34:59.764", but > ?`format(Date(2014,6,2,12,19,57.666),"hh:nn:ss.uu") prints "12:19:57.000" > > tia > -- > B Bruen > > > ------------------------------------------------------------------------------ > Learn Graph Databases - Download FREE O'Reilly Book > "Graph Databases" is the definitive new guide to graph databases and their > applications. Written by three acclaimed leaders in the field, > this first edition is now available. Download your free book today! > http://p.sf.net/sfu/NeoTech > _______________________________________________ > 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: Screenshot.png Type: image/png Size: 14501 bytes Desc: not available URL: From taboege at ...626... Mon Jun 2 19:59:53 2014 From: taboege at ...626... (Tobias Boege) Date: Mon, 2 Jun 2014 19:59:53 +0200 Subject: [Gambas-user] IsSpace() documentation Message-ID: <20140602175953.GD525@...2774...> Hi, the documentation of IsSpace()[0] is apparently wrong in stating: PRINT IsSpace(" \\n \\r\\n") True "\\n" will be literally "\n" which is not space (actually running the code supports this). Misprint? Regards, Tobi [0] http://gambaswiki.org/wiki/lang/isspace -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From bagoneo at ...69... Mon Jun 2 20:16:38 2014 From: bagoneo at ...69... (gian) Date: Mon, 02 Jun 2014 20:16:38 +0200 Subject: [Gambas-user] WARNING in Rev. #6300 Message-ID: <538CBF86.8060701@...69...> Hi All, I have this result in my log file: systray/embed.c: In function 'embedder_reset_size': systray/embed.c:307:7: warning: 'or' of unmatched not-equal tests is always 1 [enabled by default] (icon_sz.x < settings.icon_size && icon_sz.y < settings.icon_size)) it's dangerous? gianluigi From gambas at ...1... Mon Jun 2 20:25:09 2014 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Mon, 02 Jun 2014 20:25:09 +0200 Subject: [Gambas-user] WARNING in Rev. #6300 In-Reply-To: <538CBF86.8060701@...69...> References: <538CBF86.8060701@...69...> Message-ID: <538CC185.30400@...1...> Le 02/06/2014 20:16, gian a ?crit : > Hi All, > > I have this result in my log file: > > systray/embed.c: In function 'embedder_reset_size': > systray/embed.c:307:7: warning: 'or' of unmatched not-equal tests is > always 1 [enabled by default] > (icon_sz.x < settings.icon_size && icon_sz.y < settings.icon_size)) > > it's dangerous? > > gianluigi > It's not my code and I have no idea what the author wanted to do. I will certainly remove it when I clean up that. -- Beno?t Minisini From bagoneo at ...69... Mon Jun 2 21:37:59 2014 From: bagoneo at ...69... (gian) Date: Mon, 02 Jun 2014 21:37:59 +0200 Subject: [Gambas-user] WARNING in Rev. #6300 In-Reply-To: <538CC185.30400@...1...> References: <538CBF86.8060701@...69...> <538CC185.30400@...1...> Message-ID: <538CD297.4070002@...69...> Hello Benoit, many thanks for answer regards gianluigi Il 02/06/2014 20:25, Beno?t Minisini ha scritto: > Le 02/06/2014 20:16, gian a ?crit : >> Hi All, >> >> I have this result in my log file: >> >> systray/embed.c: In function 'embedder_reset_size': >> systray/embed.c:307:7: warning: 'or' of unmatched not-equal tests is >> always 1 [enabled by default] >> (icon_sz.x < settings.icon_size && icon_sz.y < settings.icon_size)) >> >> it's dangerous? >> >> gianluigi >> > It's not my code and I have no idea what the author wanted to do. I will > certainly remove it when I clean up that. > From bbruen at ...2308... Tue Jun 3 00:25:47 2014 From: bbruen at ...2308... (B Bruen) Date: Tue, 3 Jun 2014 07:55:47 +0930 Subject: [Gambas-user] Native Date functions and milliseconds In-Reply-To: References: <20140602123752.f6767bb8a46ef29525032eff@...2308...> Message-ID: <20140603075547.91a70150d6ed85477d1f3920@...2308...> Aha, the inline completion help is correct. The wiki help page is wrong. Thanks Jussi. (But is there a Milliseconds(Date) funtion?) Bruce On Mon, 2 Jun 2014 17:52:07 +0300 Jussi Lahtinen wrote: > Documentation is not up to date. See attached screenshot. You don't see > this? > What is your Gambas version? > > > Jussi > > > On Mon, Jun 2, 2014 at 6:07 AM, B Bruen wrote: > > > I have just noticed that Date(Year,Month,Day,Hours,Minutes,Seconds) > > truncates the seconds. It looks like it is expecting an integer. I am > > trying to work with a "Server Timestamp" string value that gives me the > > seconds as a Float e.g. "2014-06-02T10:11:15.330" and the milliseconds part > > has now become important. Is this a bug? > > > > Similarly, Second(Date as Date) is defined in the help as returning an > > integer, again shouldn't it return a float? > > > > in the console > > ?`format(Now,"hh:nn:ss.u") prints something like "12:34:59.764", but > > ?`format(Date(2014,6,2,12,19,57.666),"hh:nn:ss.uu") prints "12:19:57.000" > > > > tia > > -- > > B Bruen > > > > > > ------------------------------------------------------------------------------ > > Learn Graph Databases - Download FREE O'Reilly Book > > "Graph Databases" is the definitive new guide to graph databases and their > > applications. Written by three acclaimed leaders in the field, > > this first edition is now available. Download your free book today! > > http://p.sf.net/sfu/NeoTech > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > -- B Bruen From n.rogozarski at ...626... Tue Jun 3 00:27:24 2014 From: n.rogozarski at ...626... (Roki) Date: Tue, 03 Jun 2014 00:27:24 +0200 Subject: [Gambas-user] Console message with LinuxMint 17 In-Reply-To: References: Message-ID: <538CFA4C.5080509@...626...> I have the same error just with a different number at the beginning. (blagajnagtk:3572): Gtk-CRITICAL **: IA__gtk_widget_get_direction: assertion 'GTK_IS_WIDGET (widget)' failed Did you find a solution? BTW - I do not use webview. On 01.06.2014 11:26, Jorge Carri?n wrote: > Yesterday I updated my computer with LinuxMint 17 with Cinnamon. > > Since then I can read in IDE console at runtime: > > (gbx3:3785): Gtk-CRITICAL **: IA__gtk_widget_get_direction: assertion > 'GTK_IS_WIDGET (widget)' failed > > My project uses qt, not gtk neither gui components. > > Regardas. > ------------------------------------------------------------------------------ > Time is money. Stop wasting it! Get your web API in 5 minutes. > www.restlet.com/download > http://p.sf.net/sfu/restlet > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From shordi at ...626... Tue Jun 3 09:06:02 2014 From: shordi at ...626... (=?UTF-8?Q?Jorge_Carri=C3=B3n?=) Date: Tue, 3 Jun 2014 09:06:02 +0200 Subject: [Gambas-user] Console message with LinuxMint 17 In-Reply-To: <538CFA4C.5080509@...626...> References: <538CFA4C.5080509@...626...> Message-ID: Yes (I think). It seems that QT, under somes circumstances, can use GTK functions. You must change the QT_NO_GLIB environment setting to 1 (In mint you can do it in /etc/envirment file by adding the line QT_NO_GLIB=1) Benoit say this is done just in KDE machines, but works on Linuxmint as I have tested it. Since I changed this I've no seen the console messages at all. I don't know if the change of that environment variable makes "collateral damages" to other applications in the LinuxMint.... Regards. 2014-06-03 0:27 GMT+02:00 Roki : > I have the same error just with a different number at the beginning. > > (blagajnagtk:3572): Gtk-CRITICAL **: IA__gtk_widget_get_direction: > assertion 'GTK_IS_WIDGET (widget)' failed > > > Did you find a solution? > BTW - I do not use webview. > > On 01.06.2014 11:26, Jorge Carri?n wrote: > > Yesterday I updated my computer with LinuxMint 17 with Cinnamon. > > > > Since then I can read in IDE console at runtime: > > > > (gbx3:3785): Gtk-CRITICAL **: IA__gtk_widget_get_direction: assertion > > 'GTK_IS_WIDGET (widget)' failed > > > > My project uses qt, not gtk neither gui components. > > > > Regardas. > > > ------------------------------------------------------------------------------ > > Time is money. Stop wasting it! Get your web API in 5 minutes. > > www.restlet.com/download > > http://p.sf.net/sfu/restlet > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > ------------------------------------------------------------------------------ > Learn Graph Databases - Download FREE O'Reilly Book > "Graph Databases" is the definitive new guide to graph databases and their > applications. Written by three acclaimed leaders in the field, > this first edition is now available. Download your free book today! > http://p.sf.net/sfu/NeoTech > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From VonZorch at ...626... Tue Jun 3 16:02:44 2014 From: VonZorch at ...626... (VonZorch) Date: Tue, 3 Jun 2014 07:02:44 -0700 (PDT) Subject: [Gambas-user] Component Programing Question In-Reply-To: <20140602113605.948a9acd1559d87eb1deba52@...2308...> References: <1401671272907-46812.post@...3046...> <538BD2FB.3050505@...1...> <20140602113605.948a9acd1559d87eb1deba52@...2308...> Message-ID: <1401804164481-46832.post@...3046...> B Bruen wrote > On Mon, 02 Jun 2014 03:27:23 +0200 > Beno?t Minisini < > gambas at ...3286... > > wrote: > >> Le 02/06/2014 03:07, VonZorch a ?crit : >> > I have found that inheriting UserControl makes a developing control >> stop >> > intercepting mouse events. Is this normal? I have been going around in >> > circles trying to get my SpeedListBox working. >> > >> > It currently appears in the toolbox but when placed on a form it is 8 >> times >> > as large as it should be and when I try to run the test project I get >> an >> > error "Unexpected end of line in FMain.form:17" however the FMain.form >> file >> > only has 13 lines. When created in code it does work correctly. Could >> this >> > be caused by a corrupted component? >> > >> >> Without seeing your source code, I can't say anything useful... >> >> -- >> Beno?t Minisini >> > > But to take a couple of guesses: > In the second paragraph, what you have written suggests that you have not > set the default values for the properties and/or the properties constant > correctly. > "8 times too big" looks like something wrong with your _DefaultSize > constant. Remember, it is expressed in Desktop.Scale units. > "caused by a corrupted component?" Probably not, more likely you have not > defined the control infrastructure constants correctly. Show us the code. > > In the first para "Is this normal"? No, I have not seen anything like > that. Again, SUTC! > > hth The code is here speedlistbox.gz . The mouse event problem also occurred when I modified ColorChooser to save custom colors. -- View this message in context: http://gambas.8142.n7.nabble.com/Component-Programing-Question-tp46812p46832.html Sent from the gambas-user mailing list archive at Nabble.com. From pata.karlsson at ...626... Tue Jun 3 17:43:00 2014 From: pata.karlsson at ...626... (Patrik Karlsson) Date: Tue, 3 Jun 2014 17:43:00 +0200 Subject: [Gambas-user] Gambas on Mac OS X/MacPorts In-Reply-To: References: Message-ID: 2012-08-07 13:35 GMT+02:00 Fran?ois Gallo : > > Le 7 ao?t 2012 ? 13:00, Patrik Karlsson a ?crit > : > > > I have read about getting Gambas running on OS X and while browsing the > svn > > log of Gambas I found the lines below. > > > > * NEW: Add support for the MacPorts distribution. > > * NEW: it is now available for Mac OS X 10.8 > > * BUG: Fix detection of X11 for the control DrawingArea on Mac OS X 10.8. > > * BUG: Fix compilation on Mac OS X 10.8 > > * BUG: Correctly detect architecture on MacOSX. > > * BUG: Some files were incorrectly modified by Mac OS X changes. > > * BUG: Fix compilation on Mac OS X and Linux. > > * NEW: Search include and library files in /opt/local for Mac OS X. > > * NEW: Search include and library files in /opt/local for Mac OS X. But > it > > * NEW: Make the component compile on Mac OS X with the qt4-mac port. The > > * BUG: Use -fnested-functions only on Mac OS X. > > * BUG: Make the "main" directory compile on Mac OS X. > > that things work better on MacOSX. > > * NEW: Mac OS X is a FreeBSD. > > > > Since I'm on the Mac most of the time this is very interesting. > > I could not find Gambas in MacPorts so I guess it is not ready yet. > > Gambas is not in the MacPorts tree and i think it will be never because > the qt4-x11 port doesn't work. Indeed, this one isn't up to date. While > macports will not > provide an update to this port, Gambas cannot go into the macports tree. > To make Gambas i use both MacPorts and Fink. Although i only use Fink to > get > a 11 version of Qt. > > Currently, Gambas 3 compiles on OS X 10.8. > Right now, i see with Benoit to debug it at runtime. > The Gambas compiler crashes on some language instructions. Why? I don't > know. > Once Benoit will fix it, i could declare officially Gambas ported on OS X. > (i hope at less?) > > I'm the main contributor who (try to) port Gambas on others systems than > Linux. > If you have some questions about Gambas's ports, contact me. > > > > > How far has the project come? > > Is there some kind of a time line? > > How can I help? > > If you know good enough the OS X system, maybe yes i think you can help > for Gambas. > > > > > I guess my knowledge is limited to compile, install and test it. > > Logically, the main things that you must know is how install MacPorts and > Fink distributions. > Then, install the packages needed to compile Gambas. > > That's all you need to do :) . > When i wrote "add support for macports distribution" in change log, i > added path to a basic installation > of MacPorts so that any people can compile directly Gambas. > > However don't forget to add in your .profile file environment variables > needed to that. > Fink and MacPorts adds automatically some variables but not all. > > You can already download svn source code of Gambas and try to compile it. > Normally, you don't meet difficult to compile it. > > Do you use OS X 10.8 too? > > Fran?ois > > I tried building gambas on os x today and got some problem. What do I have to do in order to make it work? /Patrik mbp:trunk pata$ LC_ALL=C gmake gmake all-recursive gmake[1]: Entering directory '/Users/pata/temp/gambas/trunk' Making all in main gmake[2]: Entering directory '/Users/pata/temp/gambas/trunk/main' gmake all-recursive gmake[3]: Entering directory '/Users/pata/temp/gambas/trunk/main' Making all in gbc gmake[4]: Entering directory '/Users/pata/temp/gambas/trunk/main/gbc' CC gbc3-gb_error.o clang: warning: argument unused during compilation: '-fnested-functions' gb_error.c:94:3: error: function definition is not allowed here { ^ gb_error.c:126:3: warning: implicit declaration of function '_add_string' is invalid in C99 [-Wimplicit-function-declaration] _add_string(pattern); ^ 1 warning and 1 error generated. Makefile:788: recipe for target 'gbc3-gb_error.o' failed gmake[4]: *** [gbc3-gb_error.o] Error 1 gmake[4]: Leaving directory '/Users/pata/temp/gambas/trunk/main/gbc' Makefile:446: recipe for target 'all-recursive' failed gmake[3]: *** [all-recursive] Error 1 gmake[3]: Leaving directory '/Users/pata/temp/gambas/trunk/main' Makefile:377: recipe for target 'all' failed gmake[2]: *** [all] Error 2 gmake[2]: Leaving directory '/Users/pata/temp/gambas/trunk/main' Makefile:427: recipe for target 'all-recursive' failed gmake[1]: *** [all-recursive] Error 1 gmake[1]: Leaving directory '/Users/pata/temp/gambas/trunk' Makefile:367: recipe for target 'all' failed gmake: *** [all] Error 2 mbp:trunk pata$ **************************************************************************** and with make... mbp:trunk pata$ LC_ALL=C make /Applications/Xcode.app/Contents/Developer/usr/bin/make all-recursive Making all in main /Applications/Xcode.app/Contents/Developer/usr/bin/make all-recursive Making all in gbc CC gbc3-gb_error.o clang: warning: argument unused during compilation: '-fnested-functions' gb_error.c:94:3: error: function definition is not allowed here { ^ gb_error.c:126:3: warning: implicit declaration of function '_add_string' is invalid in C99 [-Wimplicit-function-declaration] _add_string(pattern); ^ 1 warning and 1 error generated. make[4]: *** [gbc3-gb_error.o] Error 1 make[3]: *** [all-recursive] Error 1 make[2]: *** [all] Error 2 make[1]: *** [all-recursive] Error 1 make: *** [all] Error 2 mbp:trunk pata$ From n.rogozarski at ...626... Tue Jun 3 17:45:09 2014 From: n.rogozarski at ...626... (Roki) Date: Tue, 03 Jun 2014 17:45:09 +0200 Subject: [Gambas-user] Console message with LinuxMint 17 In-Reply-To: References: <538CFA4C.5080509@...626...> Message-ID: <538DED85.1040608@...626...> I did this but the same error appears, just another number at the beginning (gbx3:3381): Gtk-CRITICAL **: IA__gtk_widget_get_direction: assertion 'GTK_IS_WIDGET (widget)' failed Anyway thank you for your time On 03.06.2014 09:06, Jorge Carri?n wrote: > Yes (I think). It seems that QT, under somes circumstances, can use GTK > functions. You must change the QT_NO_GLIB environment setting to 1 (In mint > you can do it in /etc/envirment file by adding the line > QT_NO_GLIB=1) > Benoit say this is done just in KDE machines, but works on Linuxmint as I > have tested it. > > Since I changed this I've no seen the console messages at all. I don't know > if the change of that environment variable makes "collateral damages" to > other applications in the LinuxMint.... > > Regards. > > > > 2014-06-03 0:27 GMT+02:00 Roki : > >> I have the same error just with a different number at the beginning. >> >> (blagajnagtk:3572): Gtk-CRITICAL **: IA__gtk_widget_get_direction: >> assertion 'GTK_IS_WIDGET (widget)' failed >> >> >> Did you find a solution? >> BTW - I do not use webview. >> >> On 01.06.2014 11:26, Jorge Carri?n wrote: >>> Yesterday I updated my computer with LinuxMint 17 with Cinnamon. >>> >>> Since then I can read in IDE console at runtime: >>> >>> (gbx3:3785): Gtk-CRITICAL **: IA__gtk_widget_get_direction: assertion >>> 'GTK_IS_WIDGET (widget)' failed >>> >>> My project uses qt, not gtk neither gui components. >>> >>> Regardas. >>> >> ------------------------------------------------------------------------------ >>> Time is money. Stop wasting it! Get your web API in 5 minutes. >>> www.restlet.com/download >>> http://p.sf.net/sfu/restlet >>> _______________________________________________ >>> Gambas-user mailing list >>> Gambas-user at lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/gambas-user >> >> ------------------------------------------------------------------------------ >> Learn Graph Databases - Download FREE O'Reilly Book >> "Graph Databases" is the definitive new guide to graph databases and their >> applications. Written by three acclaimed leaders in the field, >> this first edition is now available. Download your free book today! >> http://p.sf.net/sfu/NeoTech >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > ------------------------------------------------------------------------------ > Learn Graph Databases - Download FREE O'Reilly Book > "Graph Databases" is the definitive new guide to graph databases and their > applications. Written by three acclaimed leaders in the field, > this first edition is now available. Download your free book today! > http://p.sf.net/sfu/NeoTech > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From shordi at ...626... Tue Jun 3 17:56:34 2014 From: shordi at ...626... (=?UTF-8?Q?Jorge_Carri=C3=B3n?=) Date: Tue, 3 Jun 2014 17:56:34 +0200 Subject: [Gambas-user] Console message with LinuxMint 17 In-Reply-To: <538DED85.1040608@...626...> References: <538CFA4C.5080509@...626...> <538DED85.1040608@...626...> Message-ID: I'm afraid I were too optimistic about this issue. Benoit give me that clue and yesterday I didn't see the message at all... but this evening it is on my console constantly. I think is some function used in some control. First suspect in my suspects list: Iconpanel. Messages appears on a form wich includes a iconpanel and appears when click on it... Regards. 2014-06-03 17:45 GMT+02:00 Roki : > I did this but the same error appears, just another number at the beginning > (gbx3:3381): Gtk-CRITICAL **: IA__gtk_widget_get_direction: assertion > 'GTK_IS_WIDGET (widget)' failed > > Anyway thank you for your time > On 03.06.2014 09:06, Jorge Carri?n wrote: > > Yes (I think). It seems that QT, under somes circumstances, can use GTK > > functions. You must change the QT_NO_GLIB environment setting to 1 (In > mint > > you can do it in /etc/envirment file by adding the line > > QT_NO_GLIB=1) > > Benoit say this is done just in KDE machines, but works on Linuxmint as I > > have tested it. > > > > Since I changed this I've no seen the console messages at all. I don't > know > > if the change of that environment variable makes "collateral damages" to > > other applications in the LinuxMint.... > > > > Regards. > > > > > > > > 2014-06-03 0:27 GMT+02:00 Roki : > > > >> I have the same error just with a different number at the beginning. > >> > >> (blagajnagtk:3572): Gtk-CRITICAL **: IA__gtk_widget_get_direction: > >> assertion 'GTK_IS_WIDGET (widget)' failed > >> > >> > >> Did you find a solution? > >> BTW - I do not use webview. > >> > >> On 01.06.2014 11:26, Jorge Carri?n wrote: > >>> Yesterday I updated my computer with LinuxMint 17 with Cinnamon. > >>> > >>> Since then I can read in IDE console at runtime: > >>> > >>> (gbx3:3785): Gtk-CRITICAL **: IA__gtk_widget_get_direction: assertion > >>> 'GTK_IS_WIDGET (widget)' failed > >>> > >>> My project uses qt, not gtk neither gui components. > >>> > >>> Regardas. > >>> > >> > ------------------------------------------------------------------------------ > >>> Time is money. Stop wasting it! Get your web API in 5 minutes. > >>> www.restlet.com/download > >>> http://p.sf.net/sfu/restlet > >>> _______________________________________________ > >>> Gambas-user mailing list > >>> Gambas-user at lists.sourceforge.net > >>> https://lists.sourceforge.net/lists/listinfo/gambas-user > >> > >> > ------------------------------------------------------------------------------ > >> Learn Graph Databases - Download FREE O'Reilly Book > >> "Graph Databases" is the definitive new guide to graph databases and > their > >> applications. Written by three acclaimed leaders in the field, > >> this first edition is now available. Download your free book today! > >> http://p.sf.net/sfu/NeoTech > >> _______________________________________________ > >> Gambas-user mailing list > >> Gambas-user at lists.sourceforge.net > >> https://lists.sourceforge.net/lists/listinfo/gambas-user > >> > > > ------------------------------------------------------------------------------ > > Learn Graph Databases - Download FREE O'Reilly Book > > "Graph Databases" is the definitive new guide to graph databases and > their > > applications. Written by three acclaimed leaders in the field, > > this first edition is now available. Download your free book today! > > http://p.sf.net/sfu/NeoTech > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > ------------------------------------------------------------------------------ > Learn Graph Databases - Download FREE O'Reilly Book > "Graph Databases" is the definitive new guide to graph databases and their > applications. Written by three acclaimed leaders in the field, > this first edition is now available. Download your free book today! > http://p.sf.net/sfu/NeoTech > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Tue Jun 3 18:28:04 2014 From: gambas at ...1... (=?UTF-8?B?QmVub8OudCBNaW5pc2luaQ==?=) Date: Tue, 03 Jun 2014 18:28:04 +0200 Subject: [Gambas-user] Console message with LinuxMint 17 In-Reply-To: References: <538CFA4C.5080509@...626...> <538DED85.1040608@...626...> Message-ID: <538DF794.8010300@...1...> Le 03/06/2014 17:56, Jorge Carri?n a ?crit : > I'm afraid I were too optimistic about this issue. Benoit give me that clue > and yesterday I didn't see the message at all... but this evening it is on > my console constantly. > I think is some function used in some control. > > First suspect in my suspects list: Iconpanel. > > Messages appears on a form wich includes a iconpanel and appears when click > on it... > > Regards. > Check the widget theme used by Qt. If it is QGtk, then you are using the GTK+ theme indirectly, and you will have some GTK+ warning because of bugs in widget themes. -- Beno?t Minisini From shordi at ...626... Tue Jun 3 18:44:22 2014 From: shordi at ...626... (=?UTF-8?Q?Jorge_Carri=C3=B3n?=) Date: Tue, 3 Jun 2014 18:44:22 +0200 Subject: [Gambas-user] Console message with LinuxMint 17 In-Reply-To: <538DF794.8010300@...1...> References: <538CFA4C.5080509@...626...> <538DED85.1040608@...626...> <538DF794.8010300@...1...> Message-ID: Well... ejem, ejem.... how can I do that Check? There is a command or something? 2014-06-03 18:28 GMT+02:00 Beno?t Minisini : > Le 03/06/2014 17:56, Jorge Carri?n a ?crit : > > I'm afraid I were too optimistic about this issue. Benoit give me that > clue > > and yesterday I didn't see the message at all... but this evening it is > on > > my console constantly. > > I think is some function used in some control. > > > > First suspect in my suspects list: Iconpanel. > > > > Messages appears on a form wich includes a iconpanel and appears when > click > > on it... > > > > Regards. > > > > Check the widget theme used by Qt. If it is QGtk, then you are using the > GTK+ theme indirectly, and you will have some GTK+ warning because of > bugs in widget themes. > > -- > Beno?t Minisini > > > ------------------------------------------------------------------------------ > Learn Graph Databases - Download FREE O'Reilly Book > "Graph Databases" is the definitive new guide to graph databases and their > applications. Written by three acclaimed leaders in the field, > this first edition is now available. Download your free book today! > http://p.sf.net/sfu/NeoTech > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From shordi at ...626... Tue Jun 3 20:43:18 2014 From: shordi at ...626... (=?UTF-8?Q?Jorge_Carri=C3=B3n?=) Date: Tue, 3 Jun 2014 20:43:18 +0200 Subject: [Gambas-user] Console message with LinuxMint 17 In-Reply-To: References: <538CFA4C.5080509@...626...> <538DED85.1040608@...626...> <538DF794.8010300@...1...> Message-ID: Ok. Found it. The default theme of QT for LinuxMint 17 Cinnamon is (in my computer) a theme called GTK+. I've changed to another one called "cleanlooks", reboot and testing exhaustively my project. I don't see the messages at all. Like allways, Benoit rules! :):) Regards. 2014-06-03 18:44 GMT+02:00 Jorge Carri?n : > Well... ejem, ejem.... how can I do that Check? There is a command or > something? > > > > > 2014-06-03 18:28 GMT+02:00 Beno?t Minisini : > >> Le 03/06/2014 17:56, Jorge Carri?n a ?crit : >> > I'm afraid I were too optimistic about this issue. Benoit give me that >> clue >> > and yesterday I didn't see the message at all... but this evening it is >> on >> > my console constantly. >> > I think is some function used in some control. >> > >> > First suspect in my suspects list: Iconpanel. >> > >> > Messages appears on a form wich includes a iconpanel and appears when >> click >> > on it... >> > >> > Regards. >> > >> >> Check the widget theme used by Qt. If it is QGtk, then you are using the >> GTK+ theme indirectly, and you will have some GTK+ warning because of >> bugs in widget themes. >> >> -- >> Beno?t Minisini >> >> >> ------------------------------------------------------------------------------ >> Learn Graph Databases - Download FREE O'Reilly Book >> "Graph Databases" is the definitive new guide to graph databases and their >> applications. Written by three acclaimed leaders in the field, >> this first edition is now available. Download your free book today! >> http://p.sf.net/sfu/NeoTech >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > From n.rogozarski at ...626... Tue Jun 3 21:28:33 2014 From: n.rogozarski at ...626... (Roki) Date: Tue, 03 Jun 2014 21:28:33 +0200 Subject: [Gambas-user] Console message with LinuxMint 17 In-Reply-To: References: <538CFA4C.5080509@...626...> <538DED85.1040608@...626...> <538DF794.8010300@...1...> Message-ID: <538E21E1.70102@...626...> Well George how you found it, and how it changes, please shareif you do not mind On 03.06.2014 20:43, Jorge Carri?n wrote: > Ok. Found it. The default theme of QT for LinuxMint 17 Cinnamon is (in my > computer) a theme called GTK+. I've changed to another one called > "cleanlooks", reboot and testing exhaustively my project. > I don't see the messages at all. > > Like allways, Benoit rules! :):) > > Regards. > > > 2014-06-03 18:44 GMT+02:00 Jorge Carri?n : > >> Well... ejem, ejem.... how can I do that Check? There is a command or >> something? >> >> >> >> >> 2014-06-03 18:28 GMT+02:00 Beno?t Minisini : >> >>> Le 03/06/2014 17:56, Jorge Carri?n a ?crit : >>>> I'm afraid I were too optimistic about this issue. Benoit give me that >>> clue >>>> and yesterday I didn't see the message at all... but this evening it is >>> on >>>> my console constantly. >>>> I think is some function used in some control. >>>> >>>> First suspect in my suspects list: Iconpanel. >>>> >>>> Messages appears on a form wich includes a iconpanel and appears when >>> click >>>> on it... >>>> >>>> Regards. >>>> >>> Check the widget theme used by Qt. If it is QGtk, then you are using the >>> GTK+ theme indirectly, and you will have some GTK+ warning because of >>> bugs in widget themes. >>> >>> -- >>> Beno?t Minisini >>> >>> >>> ------------------------------------------------------------------------------ >>> Learn Graph Databases - Download FREE O'Reilly Book >>> "Graph Databases" is the definitive new guide to graph databases and their >>> applications. Written by three acclaimed leaders in the field, >>> this first edition is now available. Download your free book today! >>> http://p.sf.net/sfu/NeoTech >>> _______________________________________________ >>> Gambas-user mailing list >>> Gambas-user at lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>> >> > ------------------------------------------------------------------------------ > Learn Graph Databases - Download FREE O'Reilly Book > "Graph Databases" is the definitive new guide to graph databases and their > applications. Written by three acclaimed leaders in the field, > this first edition is now available. Download your free book today! > http://p.sf.net/sfu/NeoTech > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From herberthguzman at ...626... Tue Jun 3 22:24:11 2014 From: herberthguzman at ...626... (herberth guzman) Date: Tue, 3 Jun 2014 14:24:11 -0600 Subject: [Gambas-user] gb.desktop.x11 Message-ID: Hi Benoit Thanks for your help for everything you've done with gb.desktop.X11. No if lack of knowledge. I'm a mistake, or do not know how. Follow your instructions: 1 - Cls_Start Static Public Sub X11Systray_Arrange() Dim I As Integer Dim X As Integer X = 2 For I = 0 To X11Systray.Count - 1 With X11Systray[I] .Move(X, 2, .IconH, .IconH) X += .IconW + 2 End With Next End 2 - Form_Panel DrawingArea in use and in the Form Load event 'Dim myPicture As New Image 'myPicture = Image.Load(User.home &/ "wifi.png") MyDrawingArea.Cached = True Draw.Begin(MyDrawingArea) X11Systray.Show(MyDrawingArea.Handle) 'X11Systray.Refresh 'Draw.image(myPicture, 2, 2, 16, 16) Draw.End() I tested several ways and does not work. No achievement see tray icons and have access to the system tray. If it is not too much to ask you to help me or orientes with an example where I can see for example nm-applet and can access it please. I'm lost (but also very happy for the component that you created) Regards Herberth Guzm?n From shordi at ...626... Tue Jun 3 22:39:05 2014 From: shordi at ...626... (=?UTF-8?Q?Jorge_Carri=C3=B3n?=) Date: Tue, 3 Jun 2014 22:39:05 +0200 Subject: [Gambas-user] Console message with LinuxMint 17 In-Reply-To: <538E21E1.70102@...626...> References: <538CFA4C.5080509@...626...> <538DED85.1040608@...626...> <538DF794.8010300@...1...> <538E21E1.70102@...626...> Message-ID: Oh! It's easy. Just install qt4-qtconfig from repositories. In Accesories you'll find QT Settings and just select the theme you want. I choose cleanlook at random... Regards. 2014-06-03 21:28 GMT+02:00 Roki : > Well George how you found it, and how it changes, please shareif you do > not mind > > On 03.06.2014 20:43, Jorge Carri?n wrote: > > Ok. Found it. The default theme of QT for LinuxMint 17 Cinnamon is (in my > > computer) a theme called GTK+. I've changed to another one called > > "cleanlooks", reboot and testing exhaustively my project. > > I don't see the messages at all. > > > > Like allways, Benoit rules! :):) > > > > Regards. > > > > > > 2014-06-03 18:44 GMT+02:00 Jorge Carri?n : > > > >> Well... ejem, ejem.... how can I do that Check? There is a command or > >> something? > >> > >> > >> > >> > >> 2014-06-03 18:28 GMT+02:00 Beno?t Minisini < > gambas at ...1...>: > >> > >>> Le 03/06/2014 17:56, Jorge Carri?n a ?crit : > >>>> I'm afraid I were too optimistic about this issue. Benoit give me that > >>> clue > >>>> and yesterday I didn't see the message at all... but this evening it > is > >>> on > >>>> my console constantly. > >>>> I think is some function used in some control. > >>>> > >>>> First suspect in my suspects list: Iconpanel. > >>>> > >>>> Messages appears on a form wich includes a iconpanel and appears when > >>> click > >>>> on it... > >>>> > >>>> Regards. > >>>> > >>> Check the widget theme used by Qt. If it is QGtk, then you are using > the > >>> GTK+ theme indirectly, and you will have some GTK+ warning because of > >>> bugs in widget themes. > >>> > >>> -- > >>> Beno?t Minisini > >>> > >>> > >>> > ------------------------------------------------------------------------------ > >>> Learn Graph Databases - Download FREE O'Reilly Book > >>> "Graph Databases" is the definitive new guide to graph databases and > their > >>> applications. Written by three acclaimed leaders in the field, > >>> this first edition is now available. Download your free book today! > >>> http://p.sf.net/sfu/NeoTech > >>> _______________________________________________ > >>> Gambas-user mailing list > >>> Gambas-user at lists.sourceforge.net > >>> https://lists.sourceforge.net/lists/listinfo/gambas-user > >>> > >> > > > ------------------------------------------------------------------------------ > > Learn Graph Databases - Download FREE O'Reilly Book > > "Graph Databases" is the definitive new guide to graph databases and > their > > applications. Written by three acclaimed leaders in the field, > > this first edition is now available. Download your free book today! > > http://p.sf.net/sfu/NeoTech > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > ------------------------------------------------------------------------------ > Learn Graph Databases - Download FREE O'Reilly Book > "Graph Databases" is the definitive new guide to graph databases and their > applications. Written by three acclaimed leaders in the field, > this first edition is now available. Download your free book today! > http://p.sf.net/sfu/NeoTech > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Tue Jun 3 23:02:36 2014 From: gambas at ...1... (=?UTF-8?B?QmVub8OudCBNaW5pc2luaQ==?=) Date: Tue, 03 Jun 2014 23:02:36 +0200 Subject: [Gambas-user] gb.desktop.x11 In-Reply-To: References: Message-ID: <538E37EC.2060403@...1...> Le 03/06/2014 22:24, herberth guzman a ?crit : > Hi Benoit > > Thanks for your help for everything you've done with gb.desktop.X11. > > No if lack of knowledge. > I'm a mistake, or do not know how. > > Follow your instructions: > > 1 - Cls_Start > > Static Public Sub X11Systray_Arrange() > > Dim I As Integer > Dim X As Integer > > X = 2 > For I = 0 To X11Systray.Count - 1 > With X11Systray[I] > .Move(X, 2, .IconH, .IconH) > X += .IconW + 2 > > End With > Next > > End > > 2 - Form_Panel DrawingArea in use and in the Form Load event > > 'Dim myPicture As New Image > 'myPicture = Image.Load(User.home &/ "wifi.png") > > MyDrawingArea.Cached = True > Draw.Begin(MyDrawingArea) > X11Systray.Show(MyDrawingArea.Handle) > 'X11Systray.Refresh > > 'Draw.image(myPicture, 2, 2, 16, 16) > Draw.End() > > I tested several ways and does not work. > > No achievement see tray icons > and have access to the system tray. > > If it is not too much to ask you to help me or orientes with an example > where I can see for example nm-applet and can access it please. > > I'm lost (but also very happy for the component that you created) > > > Regards > Herberth Guzm?n See the new example in revision #6301. Regards, -- Beno?t Minisini From n.rogozarski at ...626... Tue Jun 3 23:10:50 2014 From: n.rogozarski at ...626... (Roki) Date: Tue, 03 Jun 2014 23:10:50 +0200 Subject: [Gambas-user] Console message with LinuxMint 17 In-Reply-To: References: <538CFA4C.5080509@...626...> <538DED85.1040608@...626...> <538DF794.8010300@...1...> <538E21E1.70102@...626...> Message-ID: <538E39DA.6080708@...626...> Thanks man! On 03.06.2014 22:39, Jorge Carri?n wrote: > Oh! It's easy. Just install qt4-qtconfig from repositories. In Accesories > you'll find QT Settings and just select the theme you want. I choose > cleanlook at random... > > Regards. > > > > 2014-06-03 21:28 GMT+02:00 Roki : > >> Well George how you found it, and how it changes, please shareif you do >> not mind >> >> On 03.06.2014 20:43, Jorge Carri?n wrote: >>> Ok. Found it. The default theme of QT for LinuxMint 17 Cinnamon is (in my >>> computer) a theme called GTK+. I've changed to another one called >>> "cleanlooks", reboot and testing exhaustively my project. >>> I don't see the messages at all. >>> >>> Like allways, Benoit rules! :):) >>> >>> Regards. >>> >>> >>> 2014-06-03 18:44 GMT+02:00 Jorge Carri?n : >>> >>>> Well... ejem, ejem.... how can I do that Check? There is a command or >>>> something? >>>> >>>> >>>> >>>> >>>> 2014-06-03 18:28 GMT+02:00 Beno?t Minisini < >> gambas at ...1...>: >>>>> Le 03/06/2014 17:56, Jorge Carri?n a ?crit : >>>>>> I'm afraid I were too optimistic about this issue. Benoit give me that >>>>> clue >>>>>> and yesterday I didn't see the message at all... but this evening it >> is >>>>> on >>>>>> my console constantly. >>>>>> I think is some function used in some control. >>>>>> >>>>>> First suspect in my suspects list: Iconpanel. >>>>>> >>>>>> Messages appears on a form wich includes a iconpanel and appears when >>>>> click >>>>>> on it... >>>>>> >>>>>> Regards. >>>>>> >>>>> Check the widget theme used by Qt. If it is QGtk, then you are using >> the >>>>> GTK+ theme indirectly, and you will have some GTK+ warning because of >>>>> bugs in widget themes. >>>>> >>>>> -- >>>>> Beno?t Minisini >>>>> >>>>> >>>>> >> ------------------------------------------------------------------------------ >>>>> Learn Graph Databases - Download FREE O'Reilly Book >>>>> "Graph Databases" is the definitive new guide to graph databases and >> their >>>>> applications. Written by three acclaimed leaders in the field, >>>>> this first edition is now available. Download your free book today! >>>>> http://p.sf.net/sfu/NeoTech >>>>> _______________________________________________ >>>>> Gambas-user mailing list >>>>> Gambas-user at lists.sourceforge.net >>>>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>>>> >> ------------------------------------------------------------------------------ >>> Learn Graph Databases - Download FREE O'Reilly Book >>> "Graph Databases" is the definitive new guide to graph databases and >> their >>> applications. Written by three acclaimed leaders in the field, >>> this first edition is now available. Download your free book today! >>> http://p.sf.net/sfu/NeoTech >>> _______________________________________________ >>> Gambas-user mailing list >>> Gambas-user at lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/gambas-user >> >> >> ------------------------------------------------------------------------------ >> Learn Graph Databases - Download FREE O'Reilly Book >> "Graph Databases" is the definitive new guide to graph databases and their >> applications. Written by three acclaimed leaders in the field, >> this first edition is now available. Download your free book today! >> http://p.sf.net/sfu/NeoTech >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > ------------------------------------------------------------------------------ > Learn Graph Databases - Download FREE O'Reilly Book > "Graph Databases" is the definitive new guide to graph databases and their > applications. Written by three acclaimed leaders in the field, > this first edition is now available. Download your free book today! > http://p.sf.net/sfu/NeoTech > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From bbruen at ...2308... Wed Jun 4 01:48:51 2014 From: bbruen at ...2308... (B Bruen) Date: Wed, 4 Jun 2014 09:18:51 +0930 Subject: [Gambas-user] Component Programing Question In-Reply-To: <1401804164481-46832.post@...3046...> References: <1401671272907-46812.post@...3046...> <538BD2FB.3050505@...1...> <20140602113605.948a9acd1559d87eb1deba52@...2308...> <1401804164481-46832.post@...3046...> Message-ID: <20140604091851.08b121ab02ced8f09e617983@...2308...> On Tue, 3 Jun 2014 07:02:44 -0700 (PDT) VonZorch wrote: > B Bruen wrote > > On Mon, 02 Jun 2014 03:27:23 +0200 > > Beno?t Minisini < > > > gambas at ...3286... > > > > wrote: > > > >> Le 02/06/2014 03:07, VonZorch a ?crit : > >> > I have found that inheriting UserControl makes a developing control > >> stop > >> > intercepting mouse events. Is this normal? I have been going around in > >> > circles trying to get my SpeedListBox working. > >> > > >> > It currently appears in the toolbox but when placed on a form it is 8 > >> times > >> > as large as it should be and when I try to run the test project I get > >> an > >> > error "Unexpected end of line in FMain.form:17" however the FMain.form > >> file > >> > only has 13 lines. When created in code it does work correctly. Could > >> this > >> > be caused by a corrupted component? > >> > > >> > >> Without seeing your source code, I can't say anything useful... > >> > >> -- > >> Beno?t Minisini > >> > > > > But to take a couple of guesses: > > In the second paragraph, what you have written suggests that you have not > > set the default values for the properties and/or the properties constant > > correctly. > > "8 times too big" looks like something wrong with your _DefaultSize > > constant. Remember, it is expressed in Desktop.Scale units. > > "caused by a corrupted component?" Probably not, more likely you have not > > defined the control infrastructure constants correctly. Show us the code. > > > > In the first para "Is this normal"? No, I have not seen anything like > > that. Again, SUTC! > > > > hth > > The code is here speedlistbox.gz > . > The mouse event problem also occurred when I modified ColorChooser to save > custom colors. > > 1. Change Public Const _DefaultSize As String = "400,24" to Public Const _DefaultSize As String = "50,4" This may give you some idea of what I meant by Desktop.Scale units 2. This may help you understand some things. In your _Properties const you have 'Maxlines=20". Now, all this does is set the default value that the IDE uses when it displays that property in the control's property list. It does not set the value of the real property to that value. In fact it assumes that you have set it to that value elsewhere in the code AND if the coder does not change that property value in the IDE then the .form file will not contain a setting for that property. So somewhere, possibly in your _new routine you need to set Maxlines (or the underlying real property) to 20 as well as setting that default value in the _Properties const string. Review your code for other places where this may be needed. 3. I'm still not actually sure about the loss of mouse events, but it may be beneficial for you to review the help on the custom control "Proxy" setting. hth Bruce -- B Bruen From bbruen at ...2308... Wed Jun 4 02:22:54 2014 From: bbruen at ...2308... (B Bruen) Date: Wed, 4 Jun 2014 09:52:54 +0930 Subject: [Gambas-user] Accessing the nth item in a collection Message-ID: <20140604095254.605cf5a3197b113b0ad49600@...2308...> Occasionally, and unfortunately for me lately quite frequently, I have found a need to access the first or last item in (or perhaps better "the first or last item added to") a collection regardless of key values (and by extension I could envisage a need to access the nth item in a collection regardless of the key value). There does not seem to be an elegant solution to this - or maybe just that I am incapable of developing an elegant solution to this. "First" can be achieved by using the For Each construct and unconditionally Break'ing the iteration on the first loop. This smells like using a sledge hammer to crush an ant. "Last" I have achieved after a manner, but the mechanism is too embarrassing to reveal. "nth" I am reluctant to attempt. Any clues? -- B Bruen From jussi.lahtinen at ...626... Wed Jun 4 02:46:08 2014 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Wed, 4 Jun 2014 03:46:08 +0300 Subject: [Gambas-user] Accessing the nth item in a collection In-Reply-To: <20140604095254.605cf5a3197b113b0ad49600@...2308...> References: <20140604095254.605cf5a3197b113b0ad49600@...2308...> Message-ID: If I remember correctly Benoit warned that collections doesn't necessarily keep the items in order. But I don't know what would make it to lose the order. Maybe he will enlighten the issue. Anyway I suggest you use array of objects, which you declare extra property "Key". Jussi On Wed, Jun 4, 2014 at 3:22 AM, B Bruen wrote: > Occasionally, and unfortunately for me lately quite frequently, I have > found a need to access the first or last item in (or perhaps better "the > first or last item added to") a collection regardless of key values (and > by extension I could envisage a need to access the nth item in a collection > regardless of the key value). There does not seem to be an elegant solution > to this - or maybe just that I am incapable of developing an elegant > solution to this. > > "First" can be achieved by using the For Each construct and > unconditionally Break'ing the iteration on the first loop. This smells like > using a sledge hammer to crush an ant. > "Last" I have achieved after a manner, but the mechanism is too > embarrassing to reveal. > "nth" I am reluctant to attempt. > > Any clues? > > -- > B Bruen > > > ------------------------------------------------------------------------------ > Learn Graph Databases - Download FREE O'Reilly Book > "Graph Databases" is the definitive new guide to graph databases and their > applications. Written by three acclaimed leaders in the field, > this first edition is now available. Download your free book today! > http://p.sf.net/sfu/NeoTech > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From bbruen at ...2308... Wed Jun 4 03:33:08 2014 From: bbruen at ...2308... (B Bruen) Date: Wed, 4 Jun 2014 11:03:08 +0930 Subject: [Gambas-user] Component Programing Question In-Reply-To: <20140604091851.08b121ab02ced8f09e617983@...2308...> References: <1401671272907-46812.post@...3046...> <538BD2FB.3050505@...1...> <20140602113605.948a9acd1559d87eb1deba52@...2308...> <1401804164481-46832.post@...3046...> <20140604091851.08b121ab02ced8f09e617983@...2308...> Message-ID: <20140604110308.8f5503fb82ff6c658aeb1bfd@...2308...> Re 2. below - to clarify further. The custom control constants, "_Properties" etc are directives to the IDE, they do not directly convey information to the interpreter. In other words, they don't "automatically generate the code you may have assumed". In fact, what you should assume is that they only affect how the custom control will work in the IDE. hth Bruce On Wed, 4 Jun 2014 09:18:51 +0930 B Bruen wrote: > On Tue, 3 Jun 2014 07:02:44 -0700 (PDT) > VonZorch wrote: > > > B Bruen wrote > > > On Mon, 02 Jun 2014 03:27:23 +0200 > > > Beno?t Minisini < > > > > > gambas at ...3286... > > > > > > wrote: > > > > > >> Le 02/06/2014 03:07, VonZorch a ?crit : > > >> > I have found that inheriting UserControl makes a developing control > > >> stop > > >> > intercepting mouse events. Is this normal? I have been going around in > > >> > circles trying to get my SpeedListBox working. > > >> > > > >> > It currently appears in the toolbox but when placed on a form it is 8 > > >> times > > >> > as large as it should be and when I try to run the test project I get > > >> an > > >> > error "Unexpected end of line in FMain.form:17" however the FMain.form > > >> file > > >> > only has 13 lines. When created in code it does work correctly. Could > > >> this > > >> > be caused by a corrupted component? > > >> > > > >> > > >> Without seeing your source code, I can't say anything useful... > > >> > > >> -- > > >> Beno?t Minisini > > >> > > > > > > But to take a couple of guesses: > > > In the second paragraph, what you have written suggests that you have not > > > set the default values for the properties and/or the properties constant > > > correctly. > > > "8 times too big" looks like something wrong with your _DefaultSize > > > constant. Remember, it is expressed in Desktop.Scale units. > > > "caused by a corrupted component?" Probably not, more likely you have not > > > defined the control infrastructure constants correctly. Show us the code. > > > > > > In the first para "Is this normal"? No, I have not seen anything like > > > that. Again, SUTC! > > > > > > hth > > > > The code is here speedlistbox.gz > > . > > The mouse event problem also occurred when I modified ColorChooser to save > > custom colors. > > > > > 1. Change > Public Const _DefaultSize As String = "400,24" > to > Public Const _DefaultSize As String = "50,4" > This may give you some idea of what I meant by Desktop.Scale units > > 2. This may help you understand some things. In your _Properties const you have 'Maxlines=20". Now, all this does is set the default value that the IDE uses when it displays that property in the control's property list. It does not set the value of the real property to that value. In fact it assumes that you have set it to that value elsewhere in the code AND if the coder does not change that property value in the IDE then the .form file will not contain a setting for that property. So somewhere, possibly in your _new routine you need to set Maxlines (or the underlying real property) to 20 as well as setting that default value in the _Properties const string. Review your code for other places where this may be needed. > > 3. I'm still not actually sure about the loss of mouse events, but it may be beneficial for you to review the help on the custom control "Proxy" setting. > > hth > Bruce > -- > B Bruen > > ------------------------------------------------------------------------------ > Learn Graph Databases - Download FREE O'Reilly Book > "Graph Databases" is the definitive new guide to graph databases and their > applications. Written by three acclaimed leaders in the field, > this first edition is now available. Download your free book today! > http://p.sf.net/sfu/NeoTech > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -- B Bruen From ihaywood at ...1979... Wed Jun 4 05:41:13 2014 From: ihaywood at ...1979... (Ian Haywood) Date: Wed, 4 Jun 2014 13:41:13 +1000 Subject: [Gambas-user] libraries and locations: feature request Message-ID: I've started using gambas libraries to break my projecty up into more manageable components. My understanding is libraries must be in the same directory as the compiled executable when deployed: so that's /usr/bin The debian packaging system complains that I don't have a manpage for each of my libraries: but only some of them will be run directly, some are only for use as gambas libraries. I can see a collision with debian policy: libraries should go in /usr/lib, ideally /usr/lib/gambas3/ or something like that. Can we have gambas look in /usr/lib/gambas3 as well as /usr/bin for libraries? Ian From herberthguzman at ...626... Wed Jun 4 06:45:51 2014 From: herberthguzman at ...626... (herberth guzman) Date: Tue, 3 Jun 2014 22:45:51 -0600 Subject: [Gambas-user] gb.desktop.x11 Message-ID: Hi Benoit Thanks for the SystemTray instance I saw the example gb.gui or gb.gtk3 and gives me the following error "Null Object" With gb.qt4 if it works but only shows gb.png image (do not know if that is the goal) If you want to see the applet nm-applet in stalonetray my code as follows: Shell "nm-applet > /dev/null 2>/dev/null" Shell "/usr/bin/stalonetray" and if needed gnome-sound-applet my code as follows: Shell "gnome-sound-applet > /dev/null 2>/dev/null" Shell "/usr/bin/stalonetray" The code in bash is: #!/bin/sh nm-applet > /dev/null 2>/dev/null & stalonetray > /dev/null 2>/dev/null killall nm-applet Consultation? If my form_panel need nm-applet and their properties, How I can do? Could you tell me how we can use our system tray Gambas, I'm not understanding. Regards. Herberth Guzm?n From gambas.fr at ...626... Wed Jun 4 10:02:21 2014 From: gambas.fr at ...626... (Fabien Bodard) Date: Wed, 4 Jun 2014 10:02:21 +0200 Subject: [Gambas-user] gb.desktop.x11 In-Reply-To: References: Message-ID: Benoit have added an example in the gambas examples Le 4 juin 2014 06:46, "herberth guzman" a ?crit : > Hi Benoit > > Thanks for the SystemTray instance > > I saw the example gb.gui or gb.gtk3 and gives me the following error "Null > Object" > With gb.qt4 if it works but only shows gb.png image (do not know if that is > the goal) > > If you want to see the applet nm-applet in stalonetray my code as follows: > > > Shell "nm-applet > /dev/null 2>/dev/null" > Shell "/usr/bin/stalonetray" > > and if needed gnome-sound-applet my code as follows: > > Shell "gnome-sound-applet > /dev/null 2>/dev/null" > Shell "/usr/bin/stalonetray" > > The code in bash is: > #!/bin/sh > nm-applet > /dev/null 2>/dev/null & > stalonetray > /dev/null 2>/dev/null > killall nm-applet > > Consultation? > > If my form_panel need nm-applet and their properties, How I can do? > > Could you tell me how we can use our system tray Gambas, I'm not > understanding. > > Regards. > > Herberth Guzm?n > > ------------------------------------------------------------------------------ > Learn Graph Databases - Download FREE O'Reilly Book > "Graph Databases" is the definitive new guide to graph databases and their > applications. Written by three acclaimed leaders in the field, > this first edition is now available. Download your free book today! > http://p.sf.net/sfu/NeoTech > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From taboege at ...626... Wed Jun 4 13:45:59 2014 From: taboege at ...626... (Tobias Boege) Date: Wed, 4 Jun 2014 13:45:59 +0200 Subject: [Gambas-user] Accessing the nth item in a collection In-Reply-To: References: <20140604095254.605cf5a3197b113b0ad49600@...2308...> Message-ID: <20140604114559.GA1167@...2774...> On Wed, 04 Jun 2014, Jussi Lahtinen wrote: > If I remember correctly Benoit warned that collections doesn't necessarily > keep the items in order. But I don't know what would make it to lose the > order. Maybe he will enlighten the issue. > Anyway I suggest you use array of objects, which you declare extra property > "Key". > > On Wed, Jun 4, 2014 at 3:22 AM, B Bruen wrote: > > > Occasionally, and unfortunately for me lately quite frequently, I have > > found a need to access the first or last item in (or perhaps better "the > > first or last item added to") a collection regardless of key values (and > > by extension I could envisage a need to access the nth item in a collection > > regardless of the key value). There does not seem to be an elegant solution > > to this - or maybe just that I am incapable of developing an elegant > > solution to this. > > > > "First" can be achieved by using the For Each construct and > > unconditionally Break'ing the iteration on the first loop. This smells like > > using a sledge hammer to crush an ant. > > "Last" I have achieved after a manner, but the mechanism is too > > embarrassing to reveal. > > "nth" I am reluctant to attempt. > > > > Any clues? > > > > -- > > B Bruen AFAIK, Collection is a hash table and of course, you cannot assume a particular order of keys in a hash table. But Bruce apparently doesn't care about an *order* but only that the elements can be addressed bijectively by the integers in [0, .Count). But the collection isn't meant to allow you to do that because elements are addressed by strings, not integers and the integer addressing isn't meaningful to people other than Bruce in his particular application :-) HOWEVER, and that's my proposal, an integer index does make sense in the AvlTree class in gb.data which is otherwise similar to Collection (i.e. normally uses strings as indices, etc.), because we can traverse the keys in an AvlTree in order. If you can use AvlTree instead of the normal Collection in your application, I will add functionality to get the n-th element of an AvlTree. Otherwise, we must hack Collection for this special purpose. And I don't think Benoit will make that change mainline (because it really has no sense, under normal circumstances, to use integers to address a string-built hash table) -- or Benoit adds a .Data property, if that is possible at all, similar to that of the array classes...? I don't know but my offer holds. Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From taboege at ...626... Wed Jun 4 13:59:24 2014 From: taboege at ...626... (Tobias Boege) Date: Wed, 4 Jun 2014 13:59:24 +0200 Subject: [Gambas-user] Accessing the nth item in a collection In-Reply-To: <20140604114559.GA1167@...2774...> References: <20140604095254.605cf5a3197b113b0ad49600@...2308...> <20140604114559.GA1167@...2774...> Message-ID: <20140604115924.GC1167@...2774...> On Wed, 04 Jun 2014, Tobias Boege wrote: > On Wed, 04 Jun 2014, Jussi Lahtinen wrote: > > If I remember correctly Benoit warned that collections doesn't necessarily > > keep the items in order. But I don't know what would make it to lose the > > order. Maybe he will enlighten the issue. > > Anyway I suggest you use array of objects, which you declare extra property > > "Key". > > > > On Wed, Jun 4, 2014 at 3:22 AM, B Bruen wrote: > > > > > Occasionally, and unfortunately for me lately quite frequently, I have > > > found a need to access the first or last item in (or perhaps better "the > > > first or last item added to") a collection regardless of key values (and > > > by extension I could envisage a need to access the nth item in a collection > > > regardless of the key value). There does not seem to be an elegant solution > > > to this - or maybe just that I am incapable of developing an elegant > > > solution to this. > > > Oh, I just saw the "added to" bit. That's not possible with AvlTree and also won't be with Collection. Then I suppose that you create a custom Collection class and make it record the first and last items added. For the general case of the n-th added item, you really need to sort your keys by the point in time they're inserted and that's plainly an array using the Add() method. Generally, if you want to have the same data *sorted* in different ways (and you want "sorted" because otherwise you would need to loop through the data which you don't want), it sounds plausible that you need the data twice, but in diffent containers and sorted differently. Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From ihaywood3 at ...626... Wed Jun 4 14:11:18 2014 From: ihaywood3 at ...626... (Ian Haywood) Date: Wed, 4 Jun 2014 22:11:18 +1000 Subject: [Gambas-user] Accessing the nth item in a collection In-Reply-To: <20140604115924.GC1167@...2774...> References: <20140604095254.605cf5a3197b113b0ad49600@...2308...> <20140604114559.GA1167@...2774...> <20140604115924.GC1167@...2774...> Message-ID: On Wed, Jun 4, 2014 at 9:59 PM, Tobias Boege wrote: > Oh, I just saw the "added to" bit. That's not possible with AvlTree and also > won't be with Collection. > > Then I suppose that you create a custom Collection class and make it record > the first and last items added. For the general case of the n-th added item, > you really need to sort your keys by the point in time they're inserted and > that's plainly an array using the Add() method. My first question is why not just use an Array full-stop: by definition that is the structure for accessing items by order. > Generally, if you want to have the same data *sorted* in different ways (and > you want "sorted" because otherwise you would need to loop through the data > which you don't want), it sounds plausible that you need the data twice, but > in diffent containers and sorted differently. Correct. if the "things" in question are Objects of any type, then internally what's being held in the Array or Collection are pointers to the objects, so extra memory use is minimal. In this case IMHO the most graceful and efficient solution is to have both an Array and a Collection of the same objects. If that doesn't work then I'd have a String[] holding the keys to the collection, this means two lookups so a bit of a speed penalty (but Gambas is fast at this stuff, I doubt you'd notice) Ian From jussi.lahtinen at ...626... Wed Jun 4 14:44:34 2014 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Wed, 4 Jun 2014 15:44:34 +0300 Subject: [Gambas-user] Accessing the nth item in a collection In-Reply-To: <20140604114559.GA1167@...2774...> References: <20140604095254.605cf5a3197b113b0ad49600@...2308...> <20140604114559.GA1167@...2774...> Message-ID: > AFAIK, Collection is a hash table and of course, you cannot assume a > particular order of keys in a hash table. > That is my understanding also. But they always seems to be in order they have been added, when you iterate them with "For Each ...". What would cause the disorder? Jussi From gambas at ...1... Wed Jun 4 14:51:49 2014 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Wed, 04 Jun 2014 14:51:49 +0200 Subject: [Gambas-user] Accessing the nth item in a collection In-Reply-To: References: <20140604095254.605cf5a3197b113b0ad49600@...2308...> <20140604114559.GA1167@...2774...> Message-ID: <538F1665.2000402@...1...> Le 04/06/2014 14:44, Jussi Lahtinen a ?crit : >> AFAIK, Collection is a hash table and of course, you cannot assume a >> particular order of keys in a hash table. >> > > That is my understanding also. But they always seems to be in order they > have been added, when you iterate them with "For Each ...". > > What would cause the disorder? > There are in order by design (the hash table elements are linked both by hash slot *and* insertion order). But I don't guarantee that this non-official feature won't be removed. Regards, -- Beno?t Minisini From jussi.lahtinen at ...626... Wed Jun 4 16:51:16 2014 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Wed, 4 Jun 2014 17:51:16 +0300 Subject: [Gambas-user] Accessing the nth item in a collection In-Reply-To: <538F1665.2000402@...1...> References: <20140604095254.605cf5a3197b113b0ad49600@...2308...> <20140604114559.GA1167@...2774...> <538F1665.2000402@...1...> Message-ID: OK, thanks for the answer! But can you elaborate bit further? If the insertion order is no longer kept, then what dictates the order "For Each" will enumerate the items? Order of memory addresses? I mean would the enumeration order be unchanging, but when new item is added it would be inserted in random (practically from user perspective) position of the enumeration? Jussi On Wed, Jun 4, 2014 at 3:51 PM, Beno?t Minisini < gambas at ...1...> wrote: > Le 04/06/2014 14:44, Jussi Lahtinen a ?crit : > >> AFAIK, Collection is a hash table and of course, you cannot assume a > >> particular order of keys in a hash table. > >> > > > > That is my understanding also. But they always seems to be in order they > > have been added, when you iterate them with "For Each ...". > > > > What would cause the disorder? > > > > There are in order by design (the hash table elements are linked both by > hash slot *and* insertion order). > > But I don't guarantee that this non-official feature won't be removed. > > Regards, > > -- > Beno?t Minisini > > > ------------------------------------------------------------------------------ > Learn Graph Databases - Download FREE O'Reilly Book > "Graph Databases" is the definitive new guide to graph databases and their > applications. Written by three acclaimed leaders in the field, > this first edition is now available. Download your free book today! > http://p.sf.net/sfu/NeoTech > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From herberthguzman at ...626... Wed Jun 4 18:21:38 2014 From: herberthguzman at ...626... (herberth guzman) Date: Wed, 4 Jun 2014 10:21:38 -0600 Subject: [Gambas-user] SystemTray (Problems gb.gui or gb.gtk3) Message-ID: >Benoit have added an example in the gambas examples Thanks Fabien, I have installed Gambas3 rev 6301, i have the example SystemTray but does not work with component gb.gtk3 gb.gui, when I run it I get the following error: Public Sub draSystemTray_Arrange () line (DH = 1 + draSystemTray.H / $ hImage.H) "Null Object" And if I change the component gb.gui by gb.qt4 works but only displays an image (gb.png), and if the example is only to show the gb.png image. Questions? 1 - How I can work with applets. Please guide me. 2 - If you are running other system tray example (stalonetray) does not conflict with our system tray. 3 - I'm doing wrong , could someone help me please to shown one applet (nm-applet or gnome-sound-applet or vlc) I'm lost ( and I saw the example SystemTray) From rmorgan62 at ...626... Wed Jun 4 20:13:13 2014 From: rmorgan62 at ...626... (Randall Morgan) Date: Wed, 4 Jun 2014 11:13:13 -0700 Subject: [Gambas-user] Accessing the nth item in a collection In-Reply-To: References: <20140604095254.605cf5a3197b113b0ad49600@...2308...> <20140604114559.GA1167@...2774...> <538F1665.2000402@...1...> Message-ID: In some languages, FOR EACH doesn't guaranty the order of the items processed. It only guaranties you will process each item in the collection. I think it is a bad habit to use For Each when order of processing is important. Unless you are using an array or other data structure that is known to maintain order. A linked list or array would be a better choice. I haven't followed all this thread but I am sure that has already been suggested... The other option is to implement your own ordered collection. But wouldn't an array of object be easier? On Wed, Jun 4, 2014 at 7:51 AM, Jussi Lahtinen wrote: > OK, thanks for the answer! But can you elaborate bit further? If the > insertion order is no longer kept, then what dictates the order "For Each" > will enumerate the items? Order of memory addresses? > > I mean would the enumeration order be unchanging, but when new item is > added it would be inserted in random (practically from user perspective) > position of the enumeration? > > > Jussi > > > On Wed, Jun 4, 2014 at 3:51 PM, Beno?t Minisini < > gambas at ...1...> wrote: > > > Le 04/06/2014 14:44, Jussi Lahtinen a ?crit : > > >> AFAIK, Collection is a hash table and of course, you cannot assume a > > >> particular order of keys in a hash table. > > >> > > > > > > That is my understanding also. But they always seems to be in order > they > > > have been added, when you iterate them with "For Each ...". > > > > > > What would cause the disorder? > > > > > > > There are in order by design (the hash table elements are linked both by > > hash slot *and* insertion order). > > > > But I don't guarantee that this non-official feature won't be removed. > > > > Regards, > > > > -- > > Beno?t Minisini > > > > > > > ------------------------------------------------------------------------------ > > Learn Graph Databases - Download FREE O'Reilly Book > > "Graph Databases" is the definitive new guide to graph databases and > their > > applications. Written by three acclaimed leaders in the field, > > this first edition is now available. Download your free book today! > > http://p.sf.net/sfu/NeoTech > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > ------------------------------------------------------------------------------ > Learn Graph Databases - Download FREE O'Reilly Book > "Graph Databases" is the definitive new guide to graph databases and their > applications. Written by three acclaimed leaders in the field, > this first edition is now available. Download your free book today! > http://p.sf.net/sfu/NeoTech > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- If you ask me if it can be done. The answer is YES, it can always be done. The correct questions however are... What will it cost, and how long will it take? From fabianfloresvadell at ...626... Wed Jun 4 21:26:48 2014 From: fabianfloresvadell at ...626... (=?UTF-8?Q?Fabi=C3=A1n_Flores_Vadell?=) Date: Wed, 4 Jun 2014 16:26:48 -0300 Subject: [Gambas-user] (no subject) Message-ID: Hi folks. I'm trying to implement a "decoration chain", but until now I can't get success. Let me explain the problem in detail. I have a class C, that is decorated by the class B, that is decorated by the class A. So, from the point of view of the client class, the class A must respond to messages from both, class B and class C. The decoration is implemented by delegation, not by inheritance. Besides, in some cases a class A must call just some messages belonging to class B, and the same respect the class C. I found relatively easy to do this using the special methods _property and _unknown, but only when the relation involves two classes and restricting to just properties or methods (not both). Someone, knows how this can be achieved in Gambas? If not, (to Benoit and dev team) would be possible to add a feature to Gambas in order to do the implementation of decoration patterns easier? I know, I know, is perfectly possible to do this in Gambas by writing the appropiate wrappers for those desired methods and properties belonging to other classes. The point is: this kind of code is boring to write, bothering at code reading time, and inconvenient for prototyping. SFMBE. From rmorgan62 at ...626... Wed Jun 4 23:40:48 2014 From: rmorgan62 at ...626... (Randall Morgan) Date: Wed, 4 Jun 2014 14:40:48 -0700 Subject: [Gambas-user] Changing Error Background Color or Font Color Message-ID: Hi Folks, I've had an issue for sometime now and I haven't found the solution yet. Anytime I get an error message in the IDE it is displayed as a pale yellow background with white text. It is almost impossible to read! Is there some way to change the font color or background color of just the error messages? -- If you ask me if it can be done. The answer is YES, it can always be done. The correct questions however are... What will it cost, and how long will it take? From rmorgan62 at ...626... Wed Jun 4 23:45:02 2014 From: rmorgan62 at ...626... (Randall Morgan) Date: Wed, 4 Jun 2014 14:45:02 -0700 Subject: [Gambas-user] Changing Error Background Color or Font Color In-Reply-To: References: Message-ID: Sorry, meant to attach a screen shot of the issue. So here it is. Again, just looking for a way to changed the background of font color of the popup error messages so they will be readable. On Wed, Jun 4, 2014 at 2:40 PM, Randall Morgan wrote: > Hi Folks, > > I've had an issue for sometime now and I haven't found the solution yet. > Anytime I get an error message in the IDE it is displayed as a pale yellow > background with white text. It is almost impossible to read! Is there some > way to change the font color or background color of just the error messages? > > > -- > If you ask me if it can be done. The answer is YES, it can always be done. > The correct questions however are... What will it cost, and how long will > it take? > -- If you ask me if it can be done. The answer is YES, it can always be done. The correct questions however are... What will it cost, and how long will it take? -------------- next part -------------- A non-text attachment was scrubbed... Name: Screenshot from 2014-06-04 14:37:11.png Type: image/png Size: 5204 bytes Desc: not available URL: From VonZorch at ...626... Thu Jun 5 02:07:46 2014 From: VonZorch at ...626... (VonZorch) Date: Wed, 4 Jun 2014 17:07:46 -0700 (PDT) Subject: [Gambas-user] Accessing the nth item in a collection In-Reply-To: References: <20140604095254.605cf5a3197b113b0ad49600@...2308...> <20140604114559.GA1167@...2774...> <538F1665.2000402@...1...> Message-ID: <1401926866276-46863.post@...3046...> If the key values aren't important then use something like Collection.add(Value,str(Collection.count+1)) then you can access any given item by Value=Collection[str(Index)] -- View this message in context: http://gambas.8142.n7.nabble.com/Accessing-the-nth-item-in-a-collection-tp46845p46863.html Sent from the gambas-user mailing list archive at Nabble.com. From jussi.lahtinen at ...626... Thu Jun 5 02:39:42 2014 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Thu, 5 Jun 2014 03:39:42 +0300 Subject: [Gambas-user] Accessing the nth item in a collection In-Reply-To: References: <20140604095254.605cf5a3197b113b0ad49600@...2308...> <20140604114559.GA1167@...2774...> <538F1665.2000402@...1...> Message-ID: > In some languages, FOR EACH doesn't guaranty the order of the items > processed. It only guaranties you will process each item in the collection. > I think it is a bad habit to use For Each when order of processing is > important. I agree and that is not my requirement. I only need to know when order changes (if Benoit changes the implementation). Example if I remove one item, does the enumeration order of rest change? If not, I have no problems. > Unless you are using an array or other data structure that is > known to maintain order. A linked list or array would be a better choice. I > haven't followed all this thread but I am sure that has already been > suggested... The other option is to implement your own ordered collection. > But wouldn't an array of object be easier? > I choose to use collection, because I have long list of objects and mostly I need to access them individually and fast. If I would use array I would have to enumerate them to find the object I wanted to access. Or constantly update index table when object is removed. Jussi From bbruen at ...2308... Thu Jun 5 04:55:34 2014 From: bbruen at ...2308... (B Bruen) Date: Thu, 5 Jun 2014 12:25:34 +0930 Subject: [Gambas-user] Accessing the nth item in a collection In-Reply-To: References: <20140604095254.605cf5a3197b113b0ad49600@...2308...> <20140604114559.GA1167@...2774...> <538F1665.2000402@...1...> Message-ID: <20140605122534.395246688be4df6241b95d4f@...2308...> Thanks to all for their interest an input here. At the very least it has helped me to crystallize what my problem is. I may have over generalised my problem. So I'll try to explain. The issue is, as some have realised, the temporal order in which things are added to the collection, not some order imposed by information represented by the key or some other value of the object. Primarily, I need to find out what is the key of the last item added to the collection. Secondly, there is sometimes a need to find out what is the key of the first item that was added to the collection since the last time it had zero members. I don't really (yet) have a need to find the key of the nth item that was added, but I can foresee given the current goals of the project that this need will come up in the future. I'll just talk about the primary goal here. A semi-optimal solution to my particular situation would be if the collection were to raise an "Added(Key As String)" event when a new item was added. It is only semi-optimal because that would mean processing would be invoked for each and every addition to the set. What I have at the moment is an asynchronous "process" (actually it is a Timer event handler) that uses For Each to find the last added item. Now, the comments that the For Each iteration in insertion order is not necessarily to be trusted are exactly the reason I started this thread. Within the "time quantum" defined by the Timer, zero one or more items could have been added. It is only necessary for me to process the last added item, hence that is why the event driven idea above is only semi optimal. Again, the fact that this is a collection and not an array is (unfortunately) a "given". It is a collection and there is no reasonably economical solution, it would involve re-writing an application suite of over three years generation. Bruce On Wed, 4 Jun 2014 11:13:13 -0700 Randall Morgan wrote: > In some languages, FOR EACH doesn't guaranty the order of the items > processed. It only guaranties you will process each item in the collection. > I think it is a bad habit to use For Each when order of processing is > important. Unless you are using an array or other data structure that is > known to maintain order. A linked list or array would be a better choice. I > haven't followed all this thread but I am sure that has already been > suggested... The other option is to implement your own ordered collection. > But wouldn't an array of object be easier? > > > On Wed, Jun 4, 2014 at 7:51 AM, Jussi Lahtinen > wrote: > > > OK, thanks for the answer! But can you elaborate bit further? If the > > insertion order is no longer kept, then what dictates the order "For Each" > > will enumerate the items? Order of memory addresses? > > > > I mean would the enumeration order be unchanging, but when new item is > > added it would be inserted in random (practically from user perspective) > > position of the enumeration? > > > > > > Jussi > > > > > > On Wed, Jun 4, 2014 at 3:51 PM, Beno?t Minisini < > > gambas at ...1...> wrote: > > > > > Le 04/06/2014 14:44, Jussi Lahtinen a ?crit : > > > >> AFAIK, Collection is a hash table and of course, you cannot assume a > > > >> particular order of keys in a hash table. > > > >> > > > > > > > > That is my understanding also. But they always seems to be in order > > they > > > > have been added, when you iterate them with "For Each ...". > > > > > > > > What would cause the disorder? > > > > > > > > > > There are in order by design (the hash table elements are linked both by > > > hash slot *and* insertion order). > > > > > > But I don't guarantee that this non-official feature won't be removed. > > > > > > Regards, > > > > > > -- > > > Beno?t Minisini > > > > > > > > > > > ------------------------------------------------------------------------------ > > > Learn Graph Databases - Download FREE O'Reilly Book > > > "Graph Databases" is the definitive new guide to graph databases and > > their > > > applications. Written by three acclaimed leaders in the field, > > > this first edition is now available. Download your free book today! > > > http://p.sf.net/sfu/NeoTech > > > _______________________________________________ > > > Gambas-user mailing list > > > Gambas-user at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > ------------------------------------------------------------------------------ > > Learn Graph Databases - Download FREE O'Reilly Book > > "Graph Databases" is the definitive new guide to graph databases and their > > applications. Written by three acclaimed leaders in the field, > > this first edition is now available. Download your free book today! > > http://p.sf.net/sfu/NeoTech > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > -- > If you ask me if it can be done. The answer is YES, it can always be done. > The correct questions however are... What will it cost, and how long will > it take? > ------------------------------------------------------------------------------ > Learn Graph Databases - Download FREE O'Reilly Book > "Graph Databases" is the definitive new guide to graph databases and their > applications. Written by three acclaimed leaders in the field, > this first edition is now available. Download your free book today! > http://p.sf.net/sfu/NeoTech > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -- B Bruen From bbruen at ...2308... Thu Jun 5 05:12:21 2014 From: bbruen at ...2308... (B Bruen) Date: Thu, 5 Jun 2014 12:42:21 +0930 Subject: [Gambas-user] Accessing the nth item in a collection In-Reply-To: <1401926866276-46863.post@...3046...> References: <20140604095254.605cf5a3197b113b0ad49600@...2308...> <20140604114559.GA1167@...2774...> <538F1665.2000402@...1...> <1401926866276-46863.post@...3046...> Message-ID: <20140605124221.53a5b3e48e588116e7caa0d8@...2308...> On Wed, 4 Jun 2014 17:07:46 -0700 (PDT) VonZorch wrote: > If the key values aren't important then use something like > Collection.add(Value,str(Collection.count+1)) > then you can access any given item by > Value=Collection[str(Index)] > > No, the key values are important (to the rest of the application). It's just that in this particular instance all I need to get at is the last or first item that was added. -- B Bruen From bbruen at ...2308... Thu Jun 5 05:22:31 2014 From: bbruen at ...2308... (B Bruen) Date: Thu, 5 Jun 2014 12:52:31 +0930 Subject: [Gambas-user] [Aside] Re: Accessing the nth item in a collection In-Reply-To: <20140605122534.395246688be4df6241b95d4f@...2308...> References: <20140604095254.605cf5a3197b113b0ad49600@...2308...> <20140604114559.GA1167@...2774...> <538F1665.2000402@...1...> <20140605122534.395246688be4df6241b95d4f@...2308...> Message-ID: <20140605125231.db4a5dc882a02d7bcac57779@...2308...> An interesting thought just occurred, almost totally unrelated to this thread. Is a gb.db Result a collection or an array? It is hard to tell from the help This class represents the result of a SQL request. This class is not creatable. This class acts like a read / write array. This class is enumerable with the FOR EACH keyword. but then I cannot access the first item via "MyResult[0]" It looks like a special array with a strange form of _get(). ? -- B Bruen From stefano.fraccaro at ...626... Thu Jun 5 09:04:21 2014 From: stefano.fraccaro at ...626... (Stefano Fraccaro) Date: Thu, 05 Jun 2014 09:04:21 +0200 Subject: [Gambas-user] Gambas and Firebird embedded Message-ID: <53901675.5090503@...626...> Hi, I'm a newbie. it's possible to configure a connection using the firebird embedded version on linux? It seems that the firebird component require the ip/port parameters... Stefano Fraccaro From jscops at ...11... Thu Jun 5 21:26:47 2014 From: jscops at ...11... (Jack) Date: Thu, 05 Jun 2014 21:26:47 +0200 Subject: [Gambas-user] UGD demo In-Reply-To: References: Message-ID: <5390C477.7070703@...11...> Hi, here http://www.gambasforge.org/code-112-ugd.html is a new demo called UGD (Gambas Ultimate Demo) because inspiration comes from the scrolling code demo "Whodares" the Overlanders. I have advanced a lot since my first attempts in the field of animation there a few months. Gambas reveals quite fluid, but it is far from capacity GFA. I hope these new lines of code you will enjoy and find a positive response to continue this very rewarding exploration. Good discovery. Jack. From jussi.lahtinen at ...626... Thu Jun 5 23:17:37 2014 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Fri, 6 Jun 2014 00:17:37 +0300 Subject: [Gambas-user] UGD demo In-Reply-To: <5390C477.7070703@...11...> References: <5390C477.7070703@...11...> Message-ID: > Gambas reveals quite fluid, but it is far from capacity GFA. > GFA Basic? So tell us what is has, but Gambas doesn't? Jussi From jim at ...3055... Fri Jun 6 01:41:52 2014 From: jim at ...3055... (Jim Brown) Date: Fri, 06 Jun 2014 00:41:52 +0100 Subject: [Gambas-user] UGD demo In-Reply-To: References: <5390C477.7070703@...11...> Message-ID: GFA Basic,wasn't that a version of basic for the Amiga. Iirc, it had some specialist commands for hitting the hardware and was compiled for speed. On Thu, 05 Jun 2014 22:17:37 +0100, Jussi Lahtinen wrote: >> Gambas reveals quite fluid, but it is far from capacity GFA. >> > > GFA Basic? So tell us what is has, but Gambas doesn't? > > > Jussi > ------------------------------------------------------------------------------ > Learn Graph Databases - Download FREE O'Reilly Book > "Graph Databases" is the definitive new guide to graph databases and > their > applications. Written by three acclaimed leaders in the field, > this first edition is now available. Download your free book today! > http://p.sf.net/sfu/NeoTech > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -- September 18th, Vote Yes Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ From rmorgan62 at ...626... Fri Jun 6 08:31:03 2014 From: rmorgan62 at ...626... (Randall Morgan) Date: Thu, 5 Jun 2014 23:31:03 -0700 Subject: [Gambas-user] UGD demo In-Reply-To: References: <5390C477.7070703@...11...> Message-ID: I think GFA was for the Atari ST. It was used some for game development. One thing I recall it had was inline assembler code. But I think the last version of GFA was for Windows 32-bit. I never used it but I had a friend with an ST who was trying to learn to write games with it many many years ago. Seems to me there was both a compiler and interpreted version. Is GFA still being develop? On Thu, Jun 5, 2014 at 4:41 PM, Jim Brown wrote: > GFA Basic,wasn't that a version of basic for the Amiga. Iirc, it had some > specialist commands for hitting the hardware and was compiled for speed. > > > On Thu, 05 Jun 2014 22:17:37 +0100, Jussi Lahtinen > wrote: > > >> Gambas reveals quite fluid, but it is far from capacity GFA. > >> > > > > GFA Basic? So tell us what is has, but Gambas doesn't? > > > > > > Jussi > > > ------------------------------------------------------------------------------ > > Learn Graph Databases - Download FREE O'Reilly Book > > "Graph Databases" is the definitive new guide to graph databases and > > their > > applications. Written by three acclaimed leaders in the field, > > this first edition is now available. Download your free book today! > > http://p.sf.net/sfu/NeoTech > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > -- > September 18th, Vote Yes > > Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ > > > ------------------------------------------------------------------------------ > Learn Graph Databases - Download FREE O'Reilly Book > "Graph Databases" is the definitive new guide to graph databases and their > applications. Written by three acclaimed leaders in the field, > this first edition is now available. Download your free book today! > http://p.sf.net/sfu/NeoTech > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- If you ask me if it can be done. The answer is YES, it can always be done. The correct questions however are... What will it cost, and how long will it take? From ihaywood3 at ...626... Fri Jun 6 09:30:26 2014 From: ihaywood3 at ...626... (Ian Haywood) Date: Fri, 6 Jun 2014 17:30:26 +1000 Subject: [Gambas-user] Fwd: libraries and locations: feature request In-Reply-To: References: Message-ID: I've started using gambas libraries to break my projecty up into more manageable components. My understanding is libraries must be in the same directory as the compiled executable when deployed: so that's /usr/bin The debian packaging system complains that I don't have a manpage for each of my libraries: but only some of them will be run directly, some are only for use as gambas libraries. I can see a collision with debian policy: libraries should go in /usr/lib, ideally /usr/lib/gambas3/ or something like that. Can we have gambas look in /usr/lib/gambas3 as well as /usr/bin for libraries? Ian From pata.karlsson at ...626... Fri Jun 6 09:52:51 2014 From: pata.karlsson at ...626... (Patrik Karlsson) Date: Fri, 6 Jun 2014 09:52:51 +0200 Subject: [Gambas-user] Feature request: IDE Message-ID: There are things in other IDEs/editors that I miss in Gambas and that I think would be useful, not only to me. 1. Tab management * Add close all from the view menu to the tabs popup menu. * Add close tabs to left * Add close tabs to right 2. Make shortcut for Horizontal and Vertikal split toggle. 3. Insert an 'Edit' menu between File and Project with cut, copy, paste, undo redo... 4. Shortcut for delete current row 5. CTRL X cuts current row if nothing is selected 6. CTRL C copies current row if nothing is selected 7. Triple click selects entire row. 8. Sort selection (a-z, z-a) 9. Move current row up/down 10. Move current selection up/down 11. CTRL Mouse click acts as F2, Find definition. 12. CTRL Shift W as default for Close all windows. /Patrik From gambas at ...1... Fri Jun 6 10:01:05 2014 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Fri, 06 Jun 2014 10:01:05 +0200 Subject: [Gambas-user] Feature request: IDE In-Reply-To: References: Message-ID: <53917541.2070605@...1...> Le 06/06/2014 09:52, Patrik Karlsson a ?crit : > There are things in other IDEs/editors that I miss in Gambas and that I > think would be useful, not only to me. > > 1. Tab management > * Add close all from the view menu to the tabs popup menu. You can click on the little cross on the top left of the project tree view. > * Add close tabs to left > * Add close tabs to right Mmmf. Is it really useful? > > 2. Make shortcut for Horizontal and Vertikal split toggle. CTRL+H and CTRL+J don't work? > > 3. Insert an 'Edit' menu between File and Project with cut, copy, paste, > undo redo... OK. Maybe... > > 4. Shortcut for delete current row > > 5. CTRL X cuts current row if nothing is selected As I'm running out of shortcuts, maybe I can merge 4) and 5) ? > > 6. CTRL C copies current row if nothing is selected OK. > > 7. Triple click selects entire row. If it does not disturb other things, OK. > > 8. Sort selection (a-z, z-a) OK. > > 9. Move current row up/down > > 10. Move current selection up/down If I can find available shortcuts. > > 11. CTRL Mouse click acts as F2, Find definition. I will see if I can. > > 12. CTRL Shift W as default for Close all windows. CTRL+ALT+W is the shortcut. -- Beno?t Minisini From gambas at ...1... Fri Jun 6 10:07:49 2014 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Fri, 06 Jun 2014 10:07:49 +0200 Subject: [Gambas-user] Fwd: libraries and locations: feature request In-Reply-To: References: Message-ID: <539176D5.3070609@...1...> Le 06/06/2014 09:30, Ian Haywood a ?crit : > I've started using gambas libraries to break my projecty up into more > manageable components. > > My understanding is libraries must be in the same directory as the > compiled executable when deployed: so that's /usr/bin > > The debian packaging system complains that I don't have a manpage for > each of my libraries: but only some of them will be run directly, some > are only for use as gambas libraries. > > I can see a collision with debian policy: libraries should go in > /usr/lib, ideally /usr/lib/gambas3/ or something like that. > > Can we have gambas look in /usr/lib/gambas3 as well as /usr/bin for libraries? > > Ian > No, because '/usr/lib/gambas3' is for gambas components, not the libraries you make for your project. Logically, if your project is named "MyProject", you should put your libraries in '/usr/lib/MyProject'. Actually, you shoud put them in '/usr/share/MyProject', because 'libraries' means 'executable shared objects' in that context. So I think the problem is better described that way: 1) I have multiple Gambas projects that are actually one or more executables, and a bunch of libraries. All that is "MyBigProject". 2) I want to install the executables in '/usr/bin'. The libraries should go in '/usr/share/MyBigProject'. I may put other executables in '/usr/share/MyBigProject' too. How can I tell the IDE? What do you think? -- Beno?t Minisini From gambas at ...1... Fri Jun 6 10:10:26 2014 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Fri, 06 Jun 2014 10:10:26 +0200 Subject: [Gambas-user] Gambas and Firebird embedded In-Reply-To: <53901675.5090503@...626...> References: <53901675.5090503@...626...> Message-ID: <53917772.5030704@...1...> Le 05/06/2014 09:04, Stefano Fraccaro a ?crit : > Hi, > I'm a newbie. it's possible to configure a connection using the > firebird embedded version on linux? It seems that the firebird component > require the ip/port parameters... > > Stefano Fraccaro As far as I remember, Firebird support has been removed from Gambas since the 2.0 version because of licensing problems... I don' know if firebird is now a free software. -- Beno?t Minisini From stefano.fraccaro at ...626... Fri Jun 6 10:32:04 2014 From: stefano.fraccaro at ...626... (Stefano Fraccaro) Date: Fri, 06 Jun 2014 10:32:04 +0200 Subject: [Gambas-user] Gambas and Firebird embedded In-Reply-To: <53917772.5030704@...1...> References: <53901675.5090503@...626...> <53917772.5030704@...1...> Message-ID: <53917C84.20709@...626...> I found a thread yesterday evening in a forum about that (license problem). If you create a new Connection the "Type" combobox shows the "Firebird" option : I think this option should be removed if Firebird isn't supported by Gambas3. Il 06/06/2014 10:10, Beno?t Minisini ha scritto: > As far as I remember, Firebird support has been removed from Gambas > since the 2.0 version because of licensing problems... I don' know if > firebird is now a free software. From pata.karlsson at ...626... Fri Jun 6 10:43:37 2014 From: pata.karlsson at ...626... (Patrik Karlsson) Date: Fri, 6 Jun 2014 10:43:37 +0200 Subject: [Gambas-user] Feature request: IDE In-Reply-To: <53917541.2070605@...1...> References: <53917541.2070605@...1...> Message-ID: 2014-06-06 10:01 GMT+02:00 Beno?t Minisini : > Le 06/06/2014 09:52, Patrik Karlsson a ?crit : > > There are things in other IDEs/editors that I miss in Gambas and that I > > think would be useful, not only to me. > > > > 1. Tab management > > * Add close all from the view menu to the tabs popup menu. > > You can click on the little cross on the top left of the project tree view. > Ok, there you go! :) Since Im switching between IDEs and close all option is common I still would appreciate it in Gambas too. > > > * Add close tabs to left > > * Add close tabs to right > > Mmmf. Is it really useful? > Most of the time I find myself working constantly on 2-4 documents and having many more others open at the same time. Those are the one I would like to close with "close tabs to the right". > > > 2. Make shortcut for Horizontal and Vertikal split toggle. > > CTRL+H and CTRL+J don't work? > > No, not for me. It just turns splitting on, not off. > > 3. Insert an 'Edit' menu between File and Project with cut, copy, paste, > > undo redo... > > OK. Maybe... > > > > > 4. Shortcut for delete current row > > > > 5. CTRL X cuts current row if nothing is selected > > As I'm running out of shortcuts, maybe I can merge 4) and 5) ? > Well, #5 puts the line on the clipboard and #4 should not. But if we got #5 I would use it for #4 too. :) > 12. CTRL Shift W as default for Close all windows. > > CTRL+ALT+W is the shortcut. > > Maybe it's just me but I have only come across CTRL Shift W for Close all windows. Thats not a big problem, I have redefined it. And may I introduce #13... The ability to load and save custom shortcut configuration in style with color theme. From gambas at ...1... Fri Jun 6 10:45:54 2014 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Fri, 06 Jun 2014 10:45:54 +0200 Subject: [Gambas-user] Gambas and Firebird embedded In-Reply-To: <53917C84.20709@...626...> References: <53901675.5090503@...626...> <53917772.5030704@...1...> <53917C84.20709@...626...> Message-ID: <53917FC2.1020702@...1...> Le 06/06/2014 10:32, Stefano Fraccaro a ?crit : > I found a thread yesterday evening in a forum about that (license > problem). If you create a new Connection the "Type" combobox shows the > "Firebird" option : I think this option should be removed if Firebird > isn't supported by Gambas3. > Oops. Never noticed that I forgot to remove it! -- Beno?t Minisini From gambas at ...1... Fri Jun 6 11:29:18 2014 From: gambas at ...1... (=?UTF-8?B?QmVub8OudCBNaW5pc2luaQ==?=) Date: Fri, 06 Jun 2014 11:29:18 +0200 Subject: [Gambas-user] Fwd: Re: Fwd: libraries and locations: feature request In-Reply-To: References: Message-ID: <539189EE.1000109@...1...> On Fri, Jun 6, 2014 at 6:07 PM, Beno?t Minisini wrote: > Le 06/06/2014 09:30, Ian Haywood a ?crit : >> I've started using gambas libraries to break my projecty up into more >> manageable components. >> >> My understanding is libraries must be in the same directory as the >> compiled executable when deployed: so that's /usr/bin >> >> The debian packaging system complains that I don't have a manpage for >> each of my libraries: but only some of them will be run directly, some >> are only for use as gambas libraries. >> >> I can see a collision with debian policy: libraries should go in >> /usr/lib, ideally /usr/lib/gambas3/ or something like that. >> >> Can we have gambas look in /usr/lib/gambas3 as well as /usr/bin for libraries? >> >> Ian >> > > No, because '/usr/lib/gambas3' is for gambas components, not the > libraries you make for your project. > > Logically, if your project is named "MyProject", you should put your > libraries in '/usr/lib/MyProject'. Actually, you shoud put them in > '/usr/share/MyProject', because 'libraries' means 'executable shared > objects' in that context. that's correct, gambas executables are not platform-specific so should go under /usr/share. > 2) I want to install the executables in '/usr/bin'. The libraries should > go in '/usr/share/MyBigProject'. I may put other executables in > '/usr/share/MyBigProject' too. How can I tell the IDE? it is already possible to tell the IDE where libraries are, no issues there. the issue is on deployment: my users don't run an IDE and just run the executable directly having installed a debian package. Obviously gambas3-runtime and the necessary components are installed. My preferred solution would be a GAMBASPATH environment variable, like PYTHONPATH or CLASSPATH for Java. The alternative is when compiling in the IDE, runtime values for library searching can be specified. Ian -- Beno?t Minisini From taboege at ...626... Fri Jun 6 11:53:46 2014 From: taboege at ...626... (Tobias Boege) Date: Fri, 6 Jun 2014 11:53:46 +0200 Subject: [Gambas-user] Gambas4: Function overloading? Message-ID: <20140606095346.GA988@...2774...> Hi Benoit, are there plans to support function overloading in Gambas 4? Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From jussi.lahtinen at ...626... Fri Jun 6 13:25:59 2014 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Fri, 6 Jun 2014 14:25:59 +0300 Subject: [Gambas-user] Feature request: IDE In-Reply-To: <53917541.2070605@...1...> References: <53917541.2070605@...1...> Message-ID: > > 9. Move current row up/down > > > > 10. Move current selection up/down > > If I can find available shortcuts. > ?? Haven't you done this already, Benoit? ALT + up/down arrow keys? Jussi From pata.karlsson at ...626... Fri Jun 6 13:36:38 2014 From: pata.karlsson at ...626... (Patrik Karlsson) Date: Fri, 6 Jun 2014 13:36:38 +0200 Subject: [Gambas-user] Feature request: IDE In-Reply-To: References: <53917541.2070605@...1...> Message-ID: 2014-06-06 13:25 GMT+02:00 Jussi Lahtinen : > > > 9. Move current row up/down > > > > > > 10. Move current selection up/down > > > > If I can find available shortcuts. > > > > > ?? Haven't you done this already, Benoit? > > ALT + up/down arrow keys? > > Great, works for me! Perhaps make that function more visible by adding menu items for it and adding it to configure shortcuts? From Karl.Reinl at ...2345... Fri Jun 6 14:21:31 2014 From: Karl.Reinl at ...2345... (Charlie Reinl) Date: Fri, 06 Jun 2014 14:21:31 +0200 Subject: [Gambas-user] Gambas and Firebird embedded In-Reply-To: <53917FC2.1020702@...1...> References: <53901675.5090503@...626...> <53917772.5030704@...1...> <53917C84.20709@...626...> <53917FC2.1020702@...1...> Message-ID: <1402057291.3648.2.camel@...40...> Am Freitag, den 06.06.2014, 10:45 +0200 schrieb Beno?t Minisini: > Le 06/06/2014 10:32, Stefano Fraccaro a ?crit : > > I found a thread yesterday evening in a forum about that (license > > problem). If you create a new Connection the "Type" combobox shows the > > "Firebird" option : I think this option should be removed if Firebird > > isn't supported by Gambas3. > > > > Oops. Never noticed that I forgot to remove it! > Salut, Private Sub fill_cmbType() Dim aType As String[] Dim sType As String aType = GetDBDrivers() cmbType.Clear For Each sType In aType cmbType.Add(sType) Next ' cmbType.Add("mysql") ' cmbType.Add("postgresql") ' cmbType.Add("sqlite") ' cmbType.Add("sqlite2") ' cmbType.Add("sqlite3") ' cmbType.Add("odbc") ' cmbType.Add("firebird") End Public Function GetDBDrivers() As String[] Dim xComp As String[] Dim xCompHelper As String[] Dim nI As Integer xComp = Dir(Component.Path, "gb.db.*.so") xComp.Sort() ' (gb.Descent) For nI = 0 To xComp.Length - 1 xCompHelper = Split(xComp[nI], ".") xComp[nI] = xCompHelper[2] Next Return xComp End Like that I take care of existing db-drivers on the box. -- Amicalement Charlie From mckaygerhard at ...626... Fri Jun 6 15:25:08 2014 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Fri, 6 Jun 2014 08:55:08 -0430 Subject: [Gambas-user] Gambas and Firebird embedded Message-ID: ok but firevbird DBMS still can be accesed throught ODBC Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com From introlinux at ...626... Fri Jun 6 21:19:42 2014 From: introlinux at ...626... (=?UTF-8?Q?Antonio_S=C3=A1nchez?=) Date: Fri, 6 Jun 2014 21:19:42 +0200 Subject: [Gambas-user] Something has changed in Paint or DrawintArea? Message-ID: Hi! This program works in gambas3.4.2, but not in gambas3.5.3., what could be the reason? The program doesn't show any errors, but not paints anything. It's a program for using in screencasts, it paints over the desktop (freehand, circles, rectagles, shadow, arrows...). Really it doesn't do that, in a form without windowframe, only makes a screencapture, loads it in a DrawingArea (with the size of your screen) and paints over it with the mouse, but the trick works (worked fine until I updated). key r for do a rectangle key l for lines key f for arrows (flecha in spanish) key c for circles key e for elipses key o for shadow doble clic for quit Project attached. -------------- next part -------------- A non-text attachment was scrubbed... Name: pintapantalla-0.0.14.tar.gz Type: application/x-gzip Size: 13026 bytes Desc: not available URL: From rmorgan62 at ...626... Fri Jun 6 22:08:30 2014 From: rmorgan62 at ...626... (Randall Morgan) Date: Fri, 6 Jun 2014 13:08:30 -0700 Subject: [Gambas-user] Something has changed in Paint or DrawintArea? In-Reply-To: References: Message-ID: I get an error on line 32 when I try to run this... Shell "mkdir -p /tmp/$USER/" Shell "DISPLAY=:0 scrot /tmp/$USER/fondo.jpg -q 100" Wait Error --> Me.Picture = Picture.Load("/tmp/" & User.Name & "/fondo.jpg") -- Unable to load picture Me.X = 0 Me.Y = 0 Using Ubuntu 12.04 LTS with latest updates. Hope this helps On Fri, Jun 6, 2014 at 12:19 PM, Antonio S?nchez wrote: > Hi! This program works in gambas3.4.2, but not in gambas3.5.3., what could > be the reason? > > The program doesn't show any errors, but not paints anything. > > It's a program for using in screencasts, it paints over the desktop > (freehand, circles, rectagles, shadow, arrows...). Really it doesn't do > that, in a form without windowframe, only makes a screencapture, loads it > in a DrawingArea (with the size of your screen) and paints over it with the > mouse, but the trick works (worked fine until I updated). > > key r for do a rectangle > key l for lines > key f for arrows (flecha in spanish) > key c for circles > key e for elipses > key o for shadow > > doble clic for quit > > Project attached. > > > ------------------------------------------------------------------------------ > Learn Graph Databases - Download FREE O'Reilly Book > "Graph Databases" is the definitive new guide to graph databases and their > applications. Written by three acclaimed leaders in the field, > this first edition is now available. Download your free book today! > http://p.sf.net/sfu/NeoTech > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > -- If you ask me if it can be done. The answer is YES, it can always be done. The correct questions however are... What will it cost, and how long will it take? From jussi.lahtinen at ...626... Fri Jun 6 22:48:35 2014 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Fri, 6 Jun 2014 23:48:35 +0300 Subject: [Gambas-user] Something has changed in Paint or DrawintArea? In-Reply-To: References: Message-ID: I attached fixed version of you app (several little things). Compare it to your current code. But I think there are some minor bugs in how Gambas handles Paint (cannot determine device inside _Draw event and it's not automatically set). Perhaps Benoit comment this further. Jussi On Fri, Jun 6, 2014 at 10:19 PM, Antonio S?nchez wrote: > Hi! This program works in gambas3.4.2, but not in gambas3.5.3., what could > be the reason? > > The program doesn't show any errors, but not paints anything. > > It's a program for using in screencasts, it paints over the desktop > (freehand, circles, rectagles, shadow, arrows...). Really it doesn't do > that, in a form without windowframe, only makes a screencapture, loads it > in a DrawingArea (with the size of your screen) and paints over it with the > mouse, but the trick works (worked fine until I updated). > > key r for do a rectangle > key l for lines > key f for arrows (flecha in spanish) > key c for circles > key e for elipses > key o for shadow > > doble clic for quit > > Project attached. > > > ------------------------------------------------------------------------------ > Learn Graph Databases - Download FREE O'Reilly Book > "Graph Databases" is the definitive new guide to graph databases and their > applications. Written by three acclaimed leaders in the field, > this first edition is now available. Download your free book today! > http://p.sf.net/sfu/NeoTech > _______________________________________________ > 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: pintapantalla-0.0.14-0.0.12_fixed.tar.gz Type: application/x-gzip Size: 9334 bytes Desc: not available URL: From gambas at ...1... Sat Jun 7 00:34:26 2014 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Sat, 07 Jun 2014 00:34:26 +0200 Subject: [Gambas-user] Something has changed in Paint or DrawintArea? In-Reply-To: References: Message-ID: <539241F2.5090404@...1...> Le 06/06/2014 22:48, Jussi Lahtinen a ?crit : > I attached fixed version of you app (several little things). Compare it to > your current code. But I think there are some minor bugs in how Gambas > handles Paint (cannot determine device inside _Draw event and it's not > automatically set). Perhaps Benoit comment this further. > > Jussi > Please elaborate. There are too many bugs in the project for me to know when it does what it is intended for and when it does not... -- Beno?t Minisini From jussi.lahtinen at ...626... Sat Jun 7 00:45:48 2014 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Sat, 7 Jun 2014 01:45:48 +0300 Subject: [Gambas-user] Something has changed in Paint or DrawintArea? In-Reply-To: <539241F2.5090404@...1...> References: <539241F2.5090404@...1...> Message-ID: OK, I attached specially mangled version of the app. Just run it and click with mouse. Public Sub DrawingArea1_Draw() ... Paint.Begin(DrawingArea1) <--- this gives error, cannot Paint outside of Draw event handler ... And if I comment it out, I got; No current device, when trying to Paint something. Jussi On Sat, Jun 7, 2014 at 1:34 AM, Beno?t Minisini < gambas at ...1...> wrote: > Le 06/06/2014 22:48, Jussi Lahtinen a ?crit : > > I attached fixed version of you app (several little things). Compare it > to > > your current code. But I think there are some minor bugs in how Gambas > > handles Paint (cannot determine device inside _Draw event and it's not > > automatically set). Perhaps Benoit comment this further. > > > > Jussi > > > > Please elaborate. There are too many bugs in the project for me to know > when it does what it is intended for and when it does not... > > -- > Beno?t Minisini > > > ------------------------------------------------------------------------------ > Learn Graph Databases - Download FREE O'Reilly Book > "Graph Databases" is the definitive new guide to graph databases and their > applications. Written by three acclaimed leaders in the field, > this first edition is now available. Download your free book today! > http://p.sf.net/sfu/NeoTech > _______________________________________________ > 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: pintapantalla-0.0.14-0.0.12_mangled.tar.gz Type: application/x-gzip Size: 12588 bytes Desc: not available URL: From gambas.fr at ...626... Sat Jun 7 21:38:24 2014 From: gambas.fr at ...626... (Fabien Bodard) Date: Sat, 7 Jun 2014 21:38:24 +0200 Subject: [Gambas-user] Something has changed in Paint or DrawintArea? In-Reply-To: References: <539241F2.5090404@...1...> Message-ID: I think you must set cached property to true Le 7 juin 2014 00:47, "Jussi Lahtinen" a ?crit : > OK, I attached specially mangled version of the app. Just run it and click > with mouse. > > > Public Sub DrawingArea1_Draw() > ... > Paint.Begin(DrawingArea1) <--- this gives error, cannot Paint outside of > Draw event handler > ... > > > And if I comment it out, I got; No current device, when trying to Paint > something. > > > Jussi > > > > > > On Sat, Jun 7, 2014 at 1:34 AM, Beno?t Minisini < > gambas at ...1...> wrote: > > > Le 06/06/2014 22:48, Jussi Lahtinen a ?crit : > > > I attached fixed version of you app (several little things). Compare it > > to > > > your current code. But I think there are some minor bugs in how Gambas > > > handles Paint (cannot determine device inside _Draw event and it's not > > > automatically set). Perhaps Benoit comment this further. > > > > > > Jussi > > > > > > > Please elaborate. There are too many bugs in the project for me to know > > when it does what it is intended for and when it does not... > > > > -- > > Beno?t Minisini > > > > > > > ------------------------------------------------------------------------------ > > Learn Graph Databases - Download FREE O'Reilly Book > > "Graph Databases" is the definitive new guide to graph databases and > their > > applications. Written by three acclaimed leaders in the field, > > this first edition is now available. Download your free book today! > > http://p.sf.net/sfu/NeoTech > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > ------------------------------------------------------------------------------ > Learn Graph Databases - Download FREE O'Reilly Book > "Graph Databases" is the definitive new guide to graph databases and their > applications. Written by three acclaimed leaders in the field, > this first edition is now available. Download your free book today! > http://p.sf.net/sfu/NeoTech > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > From gambas at ...1... Sun Jun 8 13:58:16 2014 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Sun, 08 Jun 2014 13:58:16 +0200 Subject: [Gambas-user] Many GTK+ bugs fixed in last revision Message-ID: <53944FD8.5080304@...1...> Hi, I have fixed many big gb.gtk bugs in revision #6306, but maybe I created some regressions. So please check and report! Here are the fixes: - Keyboard events raised twice (is it a behaviour that occurs only on the last Ubuntu?) - Drawing artifacts with overlapping controls. - Key.Code and Key[...], that should now behave the same way as in gb.qt4. - Key.Meta and Key.Normal that should work correctly now. - Windows (and forms) now can take the focus, as in gb.qt4. -- Beno?t Minisini From bagoneo at ...69... Sun Jun 8 15:32:18 2014 From: bagoneo at ...69... (gian) Date: Sun, 08 Jun 2014 15:32:18 +0200 Subject: [Gambas-user] Many GTK+ bugs fixed in last revision In-Reply-To: <53944FD8.5080304@...1...> References: <53944FD8.5080304@...1...> Message-ID: <539465E2.7020400@...69...> Hello Benoit, I just downloaded the # 6306 and while I start to try, I am attaching the compiling log file that contains this: 262 total warning (these new ones): sqlitedataset.cpp:424:12: warning: 'int old_callback(void*, int, char**, char**)' defined but not used [-Wunused-function] static int old_callback(void *res_ptr, int ncol, char **reslt, char **cols) ^ CXXLD gb.db.sqlite3.la libhttpd.c: In function 'cgi_child': libhttpd.c:3513:2: warning: ignoring return value of 'nice', declared with attribute warn_unused_result [-Wunused-result] (void) nice(CGI_NICE); Regards gianluigi Il 08/06/2014 13:58, Beno?t Minisini ha scritto: > Hi, > > I have fixed many big gb.gtk bugs in revision #6306, but maybe I created > some regressions. So please check and report! > > Here are the fixes: > > - Keyboard events raised twice (is it a behaviour that occurs only on > the last Ubuntu?) > > - Drawing artifacts with overlapping controls. > > - Key.Code and Key[...], that should now behave the same way as in gb.qt4. > > - Key.Meta and Key.Normal that should work correctly now. > > - Windows (and forms) now can take the focus, as in gb.qt4. > From bagoneo at ...69... Sun Jun 8 15:34:02 2014 From: bagoneo at ...69... (gian) Date: Sun, 08 Jun 2014 15:34:02 +0200 Subject: [Gambas-user] Many GTK+ bugs fixed in last revision In-Reply-To: <53944FD8.5080304@...1...> References: <53944FD8.5080304@...1...> Message-ID: <5394664A.8090307@...69...> Sorry see attached gianluigi Il 08/06/2014 13:58, Beno?t Minisini ha scritto: > Hi, > > I have fixed many big gb.gtk bugs in revision #6306, but maybe I created > some regressions. So please check and report! > > Here are the fixes: > > - Keyboard events raised twice (is it a behaviour that occurs only on > the last Ubuntu?) > > - Drawing artifacts with overlapping controls. > > - Key.Code and Key[...], that should now behave the same way as in gb.qt4. > > - Key.Meta and Key.Normal that should work correctly now. > > - Windows (and forms) now can take the focus, as in gb.qt4. > -------------- next part -------------- A non-text attachment was scrubbed... Name: compile6306.log.tar.gz Type: application/gzip Size: 33397 bytes Desc: not available URL: From jussi.lahtinen at ...626... Sun Jun 8 17:32:21 2014 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Sun, 8 Jun 2014 18:32:21 +0300 Subject: [Gambas-user] Many GTK+ bugs fixed in last revision In-Reply-To: <53944FD8.5080304@...1...> References: <53944FD8.5080304@...1...> Message-ID: Not sure about age of this bug, but I found it with latest revision. See attachment. Disabled button takes color from background color of form. This behavior isn't consistent with Qt4. Jussi PS. Will GTK+ have it's own version of TextEdit? On Sun, Jun 8, 2014 at 2:58 PM, Beno?t Minisini < gambas at ...1...> wrote: > Hi, > > I have fixed many big gb.gtk bugs in revision #6306, but maybe I created > some regressions. So please check and report! > > Here are the fixes: > > - Keyboard events raised twice (is it a behaviour that occurs only on > the last Ubuntu?) > > - Drawing artifacts with overlapping controls. > > - Key.Code and Key[...], that should now behave the same way as in gb.qt4. > > - Key.Meta and Key.Normal that should work correctly now. > > - Windows (and forms) now can take the focus, as in gb.qt4. > > -- > Beno?t Minisini > > > ------------------------------------------------------------------------------ > Learn Graph Databases - Download FREE O'Reilly Book > "Graph Databases" is the definitive new guide to graph databases and their > applications. Written by three acclaimed leaders in the field, > this first edition is now available. Download your free book today! > http://p.sf.net/sfu/NeoTech > _______________________________________________ > 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: GTKbug-0.0.1.tar.gz Type: application/x-gzip Size: 4647 bytes Desc: not available URL: From gambas at ...1... Sun Jun 8 17:57:40 2014 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Sun, 08 Jun 2014 17:57:40 +0200 Subject: [Gambas-user] Many GTK+ bugs fixed in last revision In-Reply-To: <53947235.6090904@...69...> References: <53944FD8.5080304@...1...> <539465E2.7020400@...69...> <53946E09.2010000@...1...> <53947235.6090904@...69...> Message-ID: <539487F4.1040701@...1...> Le 08/06/2014 16:24, gian a ?crit : > > Many thanks, I figured that. > > I sent the file only for your confirmation and a more complete information > > gianluigi > Sorry, I didn't understood. What do you want to know precisely? -- Beno?t Minisini From gambas at ...2524... Sun Jun 8 19:10:14 2014 From: gambas at ...2524... (gambas at ...2524...) Date: Sun, 08 Jun 2014 17:10:14 +0000 Subject: [Gambas-user] Issue 527 in gambas: Keypress event, twice. In-Reply-To: <3-6813199134517018827-7162631249871750400-gambas=googlecode.com@...2524...> References: <3-6813199134517018827-7162631249871750400-gambas=googlecode.com@...2524...> <0-6813199134517018827-7162631249871750400-gambas=googlecode.com@...2524...> Message-ID: <4-6813199134517018827-7162631249871750400-gambas=googlecode.com@...2524...> Updates: Status: Accepted Labels: -Version Version-3.5.0 Comment #4 on issue 527 by benoit.m... at ...626...: Keypress event, twice. http://code.google.com/p/gambas/issues/detail?id=527 (No comment was entered for this change.) -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From gambas at ...2524... Sun Jun 8 19:11:14 2014 From: gambas at ...2524... (gambas at ...2524...) Date: Sun, 08 Jun 2014 17:11:14 +0000 Subject: [Gambas-user] Issue 527 in gambas: Keypress event, twice. In-Reply-To: <4-6813199134517018827-7162631249871750400-gambas=googlecode.com@...2524...> References: <4-6813199134517018827-7162631249871750400-gambas=googlecode.com@...2524...> <0-6813199134517018827-7162631249871750400-gambas=googlecode.com@...2524...> Message-ID: <5-6813199134517018827-7162631249871750400-gambas=googlecode.com@...2524...> Updates: Status: Fixed Comment #5 on issue 527 by benoit.m... at ...626...: Keypress event, twice. http://code.google.com/p/gambas/issues/detail?id=527 It should be fixed in revision #6306. Apparently it is a new problem generated by the GTK+ library provided by Ubuntu 14.04. -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From timothy.a.case at ...626... Sun Jun 8 19:14:59 2014 From: timothy.a.case at ...626... (Timothy.a.Case) Date: Sun, 08 Jun 2014 11:14:59 -0600 Subject: [Gambas-user] gambas tutorials / android Message-ID: <53949A13.2050202@...626...> I am new to gambas, been coding for years,, php script... but, wanted to make some real programs for my zorin OS... is there any good places to learn from,,, is it easier to learn visual basic and then convert to gambas? I also want to learn to code on my gambas for android OS... ( found basic4android,, or something like that,, would be nice to do on gambas,, would hate to switch back and forth from a windows OS,,, love my linux too much now... I do have windows7 installed,, but havent used it in 3 months... )... thanks,,, and happy coding... TC From gambas at ...2524... Sun Jun 8 19:15:05 2014 From: gambas at ...2524... (gambas at ...2524...) Date: Sun, 08 Jun 2014 17:15:05 +0000 Subject: [Gambas-user] Issue 518 in gambas: Crash with too many Dims In-Reply-To: <0-6813199134517018827-4912358215953129910-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-4912358215953129910-gambas=googlecode.com@...2524...> Message-ID: <1-6813199134517018827-4912358215953129910-gambas=googlecode.com@...2524...> Updates: Status: Fixed Labels: -Version Version-3.5.0 Comment #1 on issue 518 by benoit.m... at ...626...: Crash with too many Dims http://code.google.com/p/gambas/issues/detail?id=518 Fixed in revision #6223 and in Gambas 3.5.3. -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From bagoneo at ...69... Sun Jun 8 20:03:14 2014 From: bagoneo at ...69... (gian) Date: Sun, 08 Jun 2014 20:03:14 +0200 Subject: [Gambas-user] Many GTK+ bugs fixed in last revision In-Reply-To: <539487F4.1040701@...1...> References: <53944FD8.5080304@...1...> <539465E2.7020400@...69...> <53946E09.2010000@...1...> <53947235.6090904@...69...> <539487F4.1040701@...1...> Message-ID: <5394A562.3030805@...69...> Hello Benoit, I'm sorry for my english. I have attached the log file just for your information. I know that there are warnig and that we need to ignore them. You told me to ignore them and only I thanked you. My Gambas work very well, as tried so far is OK Ciao gianluigi Il 08/06/2014 17:57, Beno?t Minisini ha scritto: > Le 08/06/2014 16:24, gian a ?crit : >> >> Many thanks, I figured that. >> >> I sent the file only for your confirmation and a more complete >> information >> >> gianluigi >> > > Sorry, I didn't understood. What do you want to know precisely? > From rmorgan62 at ...626... Sun Jun 8 21:18:53 2014 From: rmorgan62 at ...626... (Randall Morgan) Date: Sun, 8 Jun 2014 12:18:53 -0700 Subject: [Gambas-user] gambas tutorials / android In-Reply-To: <53949A13.2050202@...626...> References: <53949A13.2050202@...626...> Message-ID: Here are a few places: http://whiteislandsoftware.com/ http://gambaswiki.org/wiki http://gambasdoc.org/ http://www.gambas-buch.de/ (Use google translate) http://howtogambas.org/ http://www.gambasmag.com (coming soon) On Sun, Jun 8, 2014 at 10:14 AM, Timothy.a.Case wrote: > I am new to gambas, been coding for years,, php script... but, wanted to > make some real programs for my zorin OS... is there any good places to > learn from,,, is it easier to learn visual basic and then convert to > gambas? I also want to learn to code on my gambas for android OS... ( > found basic4android,, or something like that,, would be nice to do on > gambas,, would hate to switch back and forth from a windows OS,,, love > my linux too much now... I do have windows7 installed,, but havent used > it in 3 months... )... thanks,,, and happy coding... > > TC > > > ------------------------------------------------------------------------------ > Learn Graph Databases - Download FREE O'Reilly Book > "Graph Databases" is the definitive new guide to graph databases and their > applications. Written by three acclaimed leaders in the field, > this first edition is now available. Download your free book today! > http://p.sf.net/sfu/NeoTech > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- If you ask me if it can be done. The answer is YES, it can always be done. The correct questions however are... What will it cost, and how long will it take? From taboege at ...626... Sun Jun 8 21:35:41 2014 From: taboege at ...626... (Tobias Boege) Date: Sun, 8 Jun 2014 21:35:41 +0200 Subject: [Gambas-user] gambas tutorials / android In-Reply-To: <53949A13.2050202@...626...> References: <53949A13.2050202@...626...> Message-ID: <20140608193541.GA17813@...2774...> On Sun, 08 Jun 2014, Timothy.a.Case wrote: > I am new to gambas, been coding for years,, php script... but, wanted to > make some real programs for my zorin OS... is there any good places to > learn from,,, is it easier to learn visual basic and then convert to > gambas? I can't say anything about learning VB per se but I feel like learning different high level languages is governed by the triangle inequality: you will need more time to take the stopover. And from what I've seen on this mailing list, you will have more headaches if you go from VB to Gambas than from zero. It's said everywhere that Gambas is NOT "VB for Linux". I honestly don't know how similar they are (in concrete use) but I'd guess it's not worth the indirection. Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From timothy.a.case at ...626... Sun Jun 8 22:53:11 2014 From: timothy.a.case at ...626... (Timothy.a.Case) Date: Sun, 08 Jun 2014 14:53:11 -0600 Subject: [Gambas-user] gambas tutorials / android Message-ID: <5394CD37.8030902@...626...> thanks a lot for the information, gambas is similar to vb,,, Ive seen numerous of similarities,,,,, but, as said on the site,,, gambas isnt a vb clone,,, some of the code is similar from what Ive read, but yet its different,,, I havent done vb coding for 5 years though,,, mostly php scripting language,,, Them biggest thing I have to say, is gambas is probably the most interesting program Ive found for linux OS... Thanks for your time, TC From jussi.lahtinen at ...626... Mon Jun 9 00:22:19 2014 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Mon, 9 Jun 2014 01:22:19 +0300 Subject: [Gambas-user] gambas tutorials / android In-Reply-To: <53949A13.2050202@...626...> References: <53949A13.2050202@...626...> Message-ID: VB6 programs can be rather easily converted to Gambas (as I did few years ago), but I don't see any reason to start from VB6. Just install Gambas, it comes with examples and it has proper support for objects. Jussi On Sun, Jun 8, 2014 at 8:14 PM, Timothy.a.Case wrote: > I am new to gambas, been coding for years,, php script... but, wanted to > make some real programs for my zorin OS... is there any good places to > learn from,,, is it easier to learn visual basic and then convert to > gambas? I also want to learn to code on my gambas for android OS... ( > found basic4android,, or something like that,, would be nice to do on > gambas,, would hate to switch back and forth from a windows OS,,, love > my linux too much now... I do have windows7 installed,, but havent used > it in 3 months... )... thanks,,, and happy coding... > > TC > > > ------------------------------------------------------------------------------ > Learn Graph Databases - Download FREE O'Reilly Book > "Graph Databases" is the definitive new guide to graph databases and their > applications. Written by three acclaimed leaders in the field, > this first edition is now available. Download your free book today! > http://p.sf.net/sfu/NeoTech > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From dl7nb at ...17... Mon Jun 9 10:04:12 2014 From: dl7nb at ...17... (Wolfgang, dl7nb) Date: Mon, 09 Jun 2014 10:04:12 +0200 Subject: [Gambas-user] Webbrowser without gb.qt4?? In-Reply-To: References: <53949A13.2050202@...626...> Message-ID: <53956A7C.2040903@...17...> Hello, To display a html-file I would need the webbrowser from qb.qt4.webkit. That would be no problem BUT: My program grew of many month and is based on qb.gui (As it was a default when I started it) If I drop gb.gui to use gb.qt4.webkit (and gb.qt4)I get different looking forms and my program does no longer work. Is there a way to display html files WITH gb.gui (in absence of qt4)? Wolfgang From bbruen at ...2308... Mon Jun 9 10:41:13 2014 From: bbruen at ...2308... (B Bruen) Date: Mon, 9 Jun 2014 18:11:13 +0930 Subject: [Gambas-user] Webbrowser without gb.qt4?? In-Reply-To: <53956A7C.2040903@...17...> References: <53949A13.2050202@...626...> <53956A7C.2040903@...17...> Message-ID: <20140609181113.bf6a5905ae5ad5987db470ac@...2308...> On Mon, 09 Jun 2014 10:04:12 +0200 "Wolfgang, dl7nb" wrote: > Hello, > > To display a html-file I would need the webbrowser from qb.qt4.webkit. > That would be no problem BUT: > > My program grew of many month and is based on qb.gui (As it was a > default when I started it) > > If I drop gb.gui to use gb.qt4.webkit (and gb.qt4)I get different > looking forms and my program does no longer work. > > Is there a way to display html files WITH gb.gui (in absence of qt4)? > > Wolfgang > Sorry,I don't have an answer for you, merely a comment. Without going into specifics, your comment "If I drop gb.gui to use gb.qt4.webkit (and gb.qt4)I get different looking forms and my program does no longer work." rings like a similar bell here too. We are currently changing all our gb.gui projects to gb.qt4 in order to alleviate user complaints about the gtk situation across various distros. So: Has gui independence now become economically un-viable? Any comments, especially from Benoit. regards -- B Bruen From taboege at ...626... Mon Jun 9 12:08:36 2014 From: taboege at ...626... (Tobias Boege) Date: Mon, 9 Jun 2014 12:08:36 +0200 Subject: [Gambas-user] Webbrowser without gb.qt4?? In-Reply-To: <20140609181113.bf6a5905ae5ad5987db470ac@...2308...> References: <53949A13.2050202@...626...> <53956A7C.2040903@...17...> <20140609181113.bf6a5905ae5ad5987db470ac@...2308...> Message-ID: <20140609100836.GA856@...2774...> On Mon, 09 Jun 2014, B Bruen wrote: > On Mon, 09 Jun 2014 10:04:12 +0200 > "Wolfgang, dl7nb" wrote: > > > Hello, > > > > To display a html-file I would need the webbrowser from qb.qt4.webkit. > > That would be no problem BUT: > > > > My program grew of many month and is based on qb.gui (As it was a > > default when I started it) > > > > If I drop gb.gui to use gb.qt4.webkit (and gb.qt4)I get different > > looking forms and my program does no longer work. > > > > Is there a way to display html files WITH gb.gui (in absence of qt4)? > > > > Wolfgang > > > > Sorry,I don't have an answer for you, merely a comment. > > Without going into specifics, your comment "If I drop gb.gui to use gb.qt4.webkit (and gb.qt4)I get different looking forms and my program does no longer work." rings like a similar bell here too. We are currently changing all our gb.gui projects to gb.qt4 in order to alleviate user complaints about the gtk situation across various distros. So: > > Has gui independence now become economically un-viable? > > Any comments, especially from Benoit. > At gambas-buch.de, one of the first concrete decisions was to solely use gb.qt4. gb.gtk never really worked for me (I was with Gambas 2 on Ubuntu 8.04/9.04 with a Gnome desktop where it was buggy and after that on Arch Linux with Trinity where Qt is just more canonical to use) and soon Hans noticed unpleasant discrepancies with what I told his program does over here (gb.gui/gb.qt4) and he had developed over there (gb.gui/gb.gtk). Imagine people reading the book, trying the programs and noticing that things actually don't quite work as described. (Talking about the problems we had *back then*:) the programs usually did what they should but sometimes there were issues like misplaced controls, wrong colours, methods not doing something... That's just the mixture of working and non-working that would make readers think: "oh, that's a weird book. Maybe I come back in two years to see if it is any better". Sadly, we failed to report this stuff back then... I was also quite new around here at this time. Don't know how much my comment's worth but you're not the only one to have that thought. Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From dl7nb at ...17... Mon Jun 9 13:38:39 2014 From: dl7nb at ...17... (Wolfgang, dl7nb) Date: Mon, 09 Jun 2014 13:38:39 +0200 Subject: [Gambas-user] Webbrowser without gb.qt4?? In-Reply-To: <20140609100836.GA856@...2774...> References: <53949A13.2050202@...626...> <53956A7C.2040903@...17...> <20140609181113.bf6a5905ae5ad5987db470ac@...2308...> <20140609100836.GA856@...2774...> Message-ID: <53959CBF.4020705@...17...> Am 09.06.2014 12:08, schrieb Tobias Boege: > On Mon, 09 Jun 2014, B Bruen wrote: >> On Mon, 09 Jun 2014 10:04:12 +0200 >> "Wolfgang, dl7nb" wrote: >> >>> Hello, >>> >>> To display a html-file I would need the webbrowser from qb.qt4.webkit. >>> That would be no problem BUT: >>> >>> My program grew of many month and is based on qb.gui (As it was a >>> default when I started it) >>> >>> If I drop gb.gui to use gb.qt4.webkit (and gb.qt4)I get different >>> looking forms and my program does no longer work. >>> >>> Is there a way to display html files WITH gb.gui (in absence of qt4)? >>> >>> Wolfgang >>> >> Sorry,I don't have an answer for you, merely a comment. >> >> Without going into specifics, your comment "If I drop gb.gui to use gb.qt4.webkit (and gb.qt4)I get different looking forms and my program does no longer work." rings like a similar bell here too. We are currently changing all our gb.gui projects to gb.qt4 in order to alleviate user complaints about the gtk situation across various distros. So: >> >> Has gui independence now become economically un-viable? >> >> Any comments, especially from Benoit. >> > At gambas-buch.de, one of the first concrete decisions was to solely use > gb.qt4. gb.gtk never really worked for me (I was with Gambas 2 on Ubuntu > 8.04/9.04 with a Gnome desktop where it was buggy and after that on Arch > Linux with Trinity where Qt is just more canonical to use) and soon Hans > noticed unpleasant discrepancies with what I told his program does over > here (gb.gui/gb.qt4) and he had developed over there (gb.gui/gb.gtk). > > Imagine people reading the book, trying the programs and noticing that > things actually don't quite work as described. (Talking about the problems > we had *back then*:) the programs usually did what they should but sometimes > there were issues like misplaced controls, wrong colours, methods not doing > something... That's just the mixture of working and non-working that would > make readers think: "oh, that's a weird book. Maybe I come back in two years > to see if it is any better". > > Sadly, we failed to report this stuff back then... I was also quite new > around here at this time. > > Don't know how much my comment's worth but you're not the only one to have > that thought. > > Regards, > Tobi > Thank you B.Bruen and Tobi, ...so it may be a wise decision to throw gb.gui over board and stay with qt4... That is what I have feared, but this way I have enough work for the summer ;-) Anyway: you helped me out of this problem! Thank you! From northern Bavaria Wolfgang From bagoneo at ...69... Mon Jun 9 14:03:33 2014 From: bagoneo at ...69... (gian) Date: Mon, 09 Jun 2014 14:03:33 +0200 Subject: [Gambas-user] Webbrowser without gb.qt4?? In-Reply-To: <53959CBF.4020705@...17...> References: <53949A13.2050202@...626...> <53956A7C.2040903@...17...> <20140609181113.bf6a5905ae5ad5987db470ac@...2308...> <20140609100836.GA856@...2774...> <53959CBF.4020705@...17...> Message-ID: <5395A295.1020907@...69...> Hello Wolfang, I do not have answers on the specific problem. I guess you used gb.gui in Linux with GTK. I use Ubuntu 14:04 and I have studied the problem in my own way GTK vs QT. You can remedy with a few small tricks, some steps in these simple sample applications. I recommend to include some tricks and change your gb.gui to gb.gtk. GTK_Graphics has been tested on Linux with KDE and it works well. Ciao gianluigi Il 09/06/2014 13:38, Wolfgang, dl7nb ha scritto: > Am 09.06.2014 12:08, schrieb Tobias Boege: >> On Mon, 09 Jun 2014, B Bruen wrote: >>> On Mon, 09 Jun 2014 10:04:12 +0200 >>> "Wolfgang, dl7nb" wrote: >>> >>>> Hello, >>>> >>>> To display a html-file I would need the webbrowser from qb.qt4.webkit. >>>> That would be no problem BUT: >>>> >>>> My program grew of many month and is based on qb.gui (As it was a >>>> default when I started it) >>>> >>>> If I drop gb.gui to use gb.qt4.webkit (and gb.qt4)I get different >>>> looking forms and my program does no longer work. >>>> >>>> Is there a way to display html files WITH gb.gui (in absence of qt4)? >>>> >>>> Wolfgang >>>> >>> Sorry,I don't have an answer for you, merely a comment. >>> >>> Without going into specifics, your comment "If I drop gb.gui to use gb.qt4.webkit (and gb.qt4)I get different looking forms and my program does no longer work." rings like a similar bell here too. We are currently changing all our gb.gui projects to gb.qt4 in order to alleviate user complaints about the gtk situation across various distros. So: >>> >>> Has gui independence now become economically un-viable? >>> >>> Any comments, especially from Benoit. >>> >> At gambas-buch.de, one of the first concrete decisions was to solely use >> gb.qt4. gb.gtk never really worked for me (I was with Gambas 2 on Ubuntu >> 8.04/9.04 with a Gnome desktop where it was buggy and after that on Arch >> Linux with Trinity where Qt is just more canonical to use) and soon Hans >> noticed unpleasant discrepancies with what I told his program does over >> here (gb.gui/gb.qt4) and he had developed over there (gb.gui/gb.gtk). >> >> Imagine people reading the book, trying the programs and noticing that >> things actually don't quite work as described. (Talking about the problems >> we had *back then*:) the programs usually did what they should but sometimes >> there were issues like misplaced controls, wrong colours, methods not doing >> something... That's just the mixture of working and non-working that would >> make readers think: "oh, that's a weird book. Maybe I come back in two years >> to see if it is any better". >> >> Sadly, we failed to report this stuff back then... I was also quite new >> around here at this time. >> >> Don't know how much my comment's worth but you're not the only one to have >> that thought. >> >> Regards, >> Tobi >> > Thank you B.Bruen and Tobi, > > ...so it may be a wise decision to throw gb.gui over board and stay with > qt4... > > That is what I have feared, but this way I have enough work for the > summer ;-) > > Anyway: you helped me out of this problem! Thank you! > > From northern Bavaria > > Wolfgang > > ------------------------------------------------------------------------------ > HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions > Find What Matters Most in Your Big Data with HPCC Systems > Open Source. Fast. Scalable. Simple. Ideal for Dirty Data. > Leverages Graph Analysis for Fast Processing & Easy Data Exploration > http://www.hpccsystems.com > _______________________________________________ > 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: GTK_Graphics.tar.gz Type: application/gzip Size: 10991 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: QT_Graphics.tar.gz Type: application/gzip Size: 10731 bytes Desc: not available URL: From gambas at ...1... Mon Jun 9 15:35:16 2014 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Mon, 09 Jun 2014 15:35:16 +0200 Subject: [Gambas-user] Webbrowser without gb.qt4?? In-Reply-To: <53956A7C.2040903@...17...> References: <53949A13.2050202@...626...> <53956A7C.2040903@...17...> Message-ID: <5395B814.3000109@...1...> Le 09/06/2014 10:04, Wolfgang, dl7nb a ?crit : > Hello, > > To display a html-file I would need the webbrowser from qb.qt4.webkit. > That would be no problem BUT: > > My program grew of many month and is based on qb.gui (As it was a > default when I started it) > > If I drop gb.gui to use gb.qt4.webkit (and gb.qt4)I get different > looking forms and my program does no longer work. > > Is there a way to display html files WITH gb.gui (in absence of qt4)? > > Wolfgang > There are bugs that make gb.qt4 and gb.gtk not work the same way. There are just more bugs in gb.gtk than in gb.qt4, but I fix them as soon as they are reported to me. If you tell me that your program worked with gb.gtk, and does not with gb.qt4, it's probably your fault. (The contrary, gb.qt4 works but not gb.gtk, is usually my fault, or GTK+'s fault). I guess you didn't use arrangement containers everywhere, but fixed widget size and positions. Just provide your project and I will tell you. Regards, -- Beno?t Minisini From gambas at ...1... Mon Jun 9 15:37:05 2014 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Mon, 09 Jun 2014 15:37:05 +0200 Subject: [Gambas-user] Webbrowser without gb.qt4?? In-Reply-To: <5395B814.3000109@...1...> References: <53949A13.2050202@...626...> <53956A7C.2040903@...17...> <5395B814.3000109@...1...> Message-ID: <5395B881.10704@...1...> Le 09/06/2014 15:35, Beno?t Minisini a ?crit : > Le 09/06/2014 10:04, Wolfgang, dl7nb a ?crit : >> Hello, >> >> To display a html-file I would need the webbrowser from qb.qt4.webkit. >> That would be no problem BUT: >> >> My program grew of many month and is based on qb.gui (As it was a >> default when I started it) >> >> If I drop gb.gui to use gb.qt4.webkit (and gb.qt4)I get different >> looking forms and my program does no longer work. >> >> Is there a way to display html files WITH gb.gui (in absence of qt4)? >> >> Wolfgang >> > > There are bugs that make gb.qt4 and gb.gtk not work the same way. There > are just more bugs in gb.gtk than in gb.qt4, but I fix them as soon as > they are reported to me. > > If you tell me that your program worked with gb.gtk, and does not with > gb.qt4, it's probably your fault. (The contrary, gb.qt4 works but not > gb.gtk, is usually my fault, or GTK+'s fault). > > I guess you didn't use arrangement containers everywhere, but fixed > widget size and positions. > > Just provide your project and I will tell you. > > Regards, > By the way, there is no gb.gtk.webkit yet. I didn't have the time to do it yet... -- Beno?t Minisini From bagoneo at ...69... Mon Jun 9 17:22:01 2014 From: bagoneo at ...69... (gian) Date: Mon, 09 Jun 2014 17:22:01 +0200 Subject: [Gambas-user] Webbrowser without gb.qt4?? In-Reply-To: <53956A7C.2040903@...17...> References: <53949A13.2050202@...626...> <53956A7C.2040903@...17...> Message-ID: <5395D119.2000104@...69...> I'm sorry I do not understand how to do it. If you start with a gb.gui graphical program, after you can no longer change it. To change it in gb.qt (or gb. gtk) you have to start all over again. That's all right? Ciao gianluigi Il 09/06/2014 10:04, Wolfgang, dl7nb ha scritto: > If I drop gb.gui to use gb.qt4.webkit (and gb.qt4)I get different > looking forms and my program does no longer work. > > From taboege at ...626... Mon Jun 9 17:24:07 2014 From: taboege at ...626... (Tobias Boege) Date: Mon, 9 Jun 2014 17:24:07 +0200 Subject: [Gambas-user] Webbrowser without gb.qt4?? In-Reply-To: <5395D119.2000104@...69...> References: <53949A13.2050202@...626...> <53956A7C.2040903@...17...> <5395D119.2000104@...69...> Message-ID: <20140609152407.GG856@...2774...> On Mon, 09 Jun 2014, gian wrote: > > I'm sorry I do not understand how to do it. > > If you start with a gb.gui graphical program, after you can no longer > change it. > > To change it in gb.qt (or gb. gtk) you have to start all over again. > > That's all right? > No. Go to "Project" -> "Properties" -> "Components", deselect gb.gui and select gb.qt4. Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From bagoneo at ...69... Mon Jun 9 18:39:47 2014 From: bagoneo at ...69... (gian) Date: Mon, 09 Jun 2014 18:39:47 +0200 Subject: [Gambas-user] Webbrowser without gb.qt4?? In-Reply-To: <20140609152407.GG856@...2774...> References: <53949A13.2050202@...626...> <53956A7C.2040903@...17...> <5395D119.2000104@...69...> <20140609152407.GG856@...2774...> Message-ID: <5395E353.40009@...69...> Tobias, thanks you for your answer, At the beginning (only 3 months ago:-) ) I tried it and gave me different results. So I was convinced that was the right way. Ciao gianluigi Il 09/06/2014 17:24, Tobias Boege ha scritto: > On Mon, 09 Jun 2014, gian wrote: >> I'm sorry I do not understand how to do it. >> >> If you start with a gb.gui graphical program, after you can no longer >> change it. >> >> To change it in gb.qt (or gb. gtk) you have to start all over again. >> >> That's all right? >> > No. Go to "Project" -> "Properties" -> "Components", deselect gb.gui and > select gb.qt4. > > Regards, > Tobi > From herberthguzman at ...626... Mon Jun 9 18:42:51 2014 From: herberthguzman at ...626... (herberth guzman) Date: Mon, 9 Jun 2014 10:42:51 -0600 Subject: [Gambas-user] X11Systray Message-ID: Hi Benoit I want to thank all the support you have given me to work with MyPanel and Desktop Innova. I apologize for my bad English and for not having enough knowledge minimum and ask questions that maybe den laugh, it's because I did not know how. The important thing is that I learned to do it. Right now I'm working on some applets I want to include, and if the user wants to change. Benoit I have a question. 1 - I tried to set the size of the icons of the applets, and try various ways but to no avail, ?How to resize icons for applets? With X11Systray[I] .IconW=size .IconH=size End With Not working. 2 - I need a form (form_launcher.opacity = 80)semi-transparent , but the controls i need opacity =100, visible. As I can do?. Can you help me please. Regards, Herberth Guzm?n From gambas at ...1... Mon Jun 9 19:01:45 2014 From: gambas at ...1... (=?UTF-8?B?QmVub8OudCBNaW5pc2luaQ==?=) Date: Mon, 09 Jun 2014 19:01:45 +0200 Subject: [Gambas-user] X11Systray In-Reply-To: References: Message-ID: <5395E879.5080509@...1...> Le 09/06/2014 18:42, herberth guzman a ?crit : > Hi Benoit > I want to thank all the support you have given me to work with MyPanel and > Desktop Innova. > > I apologize for my bad English and for not having enough knowledge minimum > and ask questions that maybe den laugh, it's because I did not know how. > The important thing is that I learned to do it. > > Right now I'm working on some applets I want to include, and if the user > wants to change. > > Benoit I have a question. > > 1 - I tried to set the size of the icons of the applets, and try various > ways but to no avail, ?How to resize icons for applets? > > With X11Systray[I] > .IconW=size > .IconH=size > End With > > Not working. IconW and IconH are the size of the icon requested by the extern application. You must use the Resize() method of X11SystrayIcon class. But not all icons will accept the resize (Remember that systray icons are just embedded windows of other programs) I think GTK+ icons will stay at 22x22. > > 2 - I need a form (form_launcher.opacity = 80)semi-transparent , but the > controls i need opacity =100, visible. > > As I can do?. > It's possible with Qt4, but it is not implemented in gb.qt4. I need a way to do that too with GTK+. Regards, -- Beno?t Minisini From linux at ...3345... Mon Jun 9 21:57:14 2014 From: linux at ...3345... (Orionis) Date: Mon, 9 Jun 2014 12:57:14 -0700 (PDT) Subject: [Gambas-user] Form does not update during a debug session Message-ID: <1402343834636-46920.post@...3046...> I'm experimenting this issue: A form called 'modList' contains a TableView and some other simple controls like labels. NOTE: this is a modal window. A pubblic sub 'Update' is called inside the module with: Public Sub DoUpdate_Click() Update End The Update procedure must be debugged for some inconsistencies with a breakpoint at the beginning of procedure. Stepping with F8 does not show any change in the controls contents although the code applies them. This happens even placing some 'refresh' in the code, Only when the 'end' in the DoUpdate call is reached the windows is actually updated. Is this behaviour correct or am I missing something ? Thanks -- View this message in context: http://gambas.8142.n7.nabble.com/Form-does-not-update-during-a-debug-session-tp46920.html Sent from the gambas-user mailing list archive at Nabble.com. From taboege at ...626... Mon Jun 9 22:11:56 2014 From: taboege at ...626... (Tobias Boege) Date: Mon, 9 Jun 2014 22:11:56 +0200 Subject: [Gambas-user] Form does not update during a debug session In-Reply-To: <1402343834636-46920.post@...3046...> References: <1402343834636-46920.post@...3046...> Message-ID: <20140609201156.GL856@...2774...> On Mon, 09 Jun 2014, Orionis wrote: > I'm experimenting this issue: > A form called 'modList' contains a TableView and some other simple controls > like labels. > NOTE: this is a modal window. > > A pubblic sub 'Update' is called inside the module with: > > Public Sub DoUpdate_Click() > Update > End > > The Update procedure must be debugged for some inconsistencies with a > breakpoint at the beginning of procedure. > Stepping with F8 does not show any change in the controls contents although > the code applies them. > This happens even placing some 'refresh' in the code, > Only when the 'end' in the DoUpdate call is reached the windows is actually > updated. > > Is this behaviour correct or am I missing something ? > It's normal. The docs[0] say: --8<--- Sub Refresh ( ) Redraws the control, or just a part of it. The redraw is defered and is processed at the next call of the event loop. If you need an immediate refresh, call WAIT after having used this method. --8<--- In a nutshell: --8<--- Graphical controls are refreshed during the event loop, not when you change their properties. --8<--- as said in [1]. Regards, Tobi [0] http://gambaswiki.org/wiki/comp/gb.qt4/control/refresh [1] http://gambaswiki.org/wiki/cat/eventloop -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From dl7nb at ...17... Mon Jun 9 23:12:05 2014 From: dl7nb at ...17... (Wolfgang) Date: Mon, 09 Jun 2014 23:12:05 +0200 Subject: [Gambas-user] Webbrowser without gb.qt4?? In-Reply-To: <5395B814.3000109@...1...> References: <53949A13.2050202@...626...> <53956A7C.2040903@...17...> <5395B814.3000109@...1...> Message-ID: "Beno?t Minisini" schrieb: >Le 09/06/2014 10:04, Wolfgang, dl7nb a ?crit : >> Hello, >> >> To display a html-file I would need the webbrowser from >qb.qt4.webkit. >> That would be no problem BUT: >> >> My program grew of many month and is based on qb.gui (As it was a >> default when I started it) >> >> If I drop gb.gui to use gb.qt4.webkit (and gb.qt4)I get different >> looking forms and my program does no longer work. >> >> Is there a way to display html files WITH gb.gui (in absence of qt4)? >> >> Wolfgang >> > >There are bugs that make gb.qt4 and gb.gtk not work the same way. There > >are just more bugs in gb.gtk than in gb.qt4, but I fix them as soon as >they are reported to me. > >If you tell me that your program worked with gb.gtk, and does not with >gb.qt4, it's probably your fault. (The contrary, gb.qt4 works but not >gb.gtk, is usually my fault, or GTK+'s fault). > >I guess you didn't use arrangement containers everywhere, but fixed >widget size and positions. > >Just provide your project and I will tell you. > >Regards, > >-- >Beno?t Minisini > >------------------------------------------------------------------------------ >HPCC Systems Open Source Big Data Platform from LexisNexis Risk >Solutions >Find What Matters Most in Your Big Data with HPCC Systems >Open Source. Fast. Scalable. Simple. Ideal for Dirty Data. >Leverages Graph Analysis for Fast Processing & Easy Data Exploration >http://www.hpccsystems.com >_______________________________________________ >Gambas-user mailing list >Gambas-user at lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/gambas-user Thank you for answering. Now I can understand more. Found some mistakes. Think it works now... Wolfgang ...mobile message... From dl7nb at ...17... Mon Jun 9 23:24:18 2014 From: dl7nb at ...17... (Wolfgang) Date: Mon, 09 Jun 2014 23:24:18 +0200 Subject: [Gambas-user] Webbrowser without gb.qt4?? In-Reply-To: <5395B881.10704@...1...> References: <53949A13.2050202@...626...> <53956A7C.2040903@...17...> <5395B814.3000109@...1...> <5395B881.10704@...1...> Message-ID: <5f52ab1f-fd53-42ac-bb54-a98feaaf67d8@...2550...> "Beno?t Minisini" schrieb: >Le 09/06/2014 15:35, Beno?t Minisini a ?crit : >> Le 09/06/2014 10:04, Wolfgang, dl7nb a ?crit : >>> Hello, >>> >>> To display a html-file I would need the webbrowser from >qb.qt4.webkit. >>> That would be no problem BUT: >>> >>> My program grew of many month and is based on qb.gui (As it was a >>> default when I started it) >>> >>> If I drop gb.gui to use gb.qt4.webkit (and gb.qt4)I get different >>> looking forms and my program does no longer work. >>> >>> Is there a way to display html files WITH gb.gui (in absence of >qt4)? >>> >>> Wolfgang >>> >> >> There are bugs that make gb.qt4 and gb.gtk not work the same way. >There >> are just more bugs in gb.gtk than in gb.qt4, but I fix them as soon >as >> they are reported to me. >> >> If you tell me that your program worked with gb.gtk, and does not >with >> gb.qt4, it's probably your fault. (The contrary, gb.qt4 works but not >> gb.gtk, is usually my fault, or GTK+'s fault). >> >> I guess you didn't use arrangement containers everywhere, but fixed >> widget size and positions. >> >> Just provide your project and I will tell you. >> >> Regards, >> > >By the way, there is no gb.gtk.webkit yet. I didn't have the time to do > >it yet... > >-- >Beno?t Minisini > >------------------------------------------------------------------------------ >HPCC Systems Open Source Big Data Platform from LexisNexis Risk >Solutions >Find What Matters Most in Your Big Data with HPCC Systems >Open Source. Fast. Scalable. Simple. Ideal for Dirty Data. >Leverages Graph Analysis for Fast Processing & Easy Data Exploration >http://www.hpccsystems.com >_______________________________________________ >Gambas-user mailing list >Gambas-user at lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/gambas-user Thank you...then there is hope in the future ;-) Do not mind - you are doing a great job. Worked with SOME compilers and Gambas is by far the best and easiest! If something is still missing - this is a project in development - you do everything. Just wann to say Thank you!! Wolfgang ...mobile message... From bagoneo at ...69... Mon Jun 9 23:31:37 2014 From: bagoneo at ...69... (gian) Date: Mon, 09 Jun 2014 23:31:37 +0200 Subject: [Gambas-user] Webbrowser without gb.qt4?? In-Reply-To: <5f52ab1f-fd53-42ac-bb54-a98feaaf67d8@...2550...> References: <53949A13.2050202@...626...> <53956A7C.2040903@...17...> <5395B814.3000109@...1...> <5395B881.10704@...1...> <5f52ab1f-fd53-42ac-bb54-a98feaaf67d8@...2550...> Message-ID: <539627B9.2070404@...69...> Wolfang, I would like to reiterate the my concept, if you have an application created with gb.gui in a Linux using GTK (eg Ubuntu) and that well works , I think you should change it with GB.GTK+ ("Properties" -> "Components", select gb.gtk and deselect gb.gui as suggested by Tobias). Otherwise if your Linux use QT librerys, I think you should change it with GB.QT4 Ciao gianluigi From gambas at ...1... Tue Jun 10 04:19:14 2014 From: gambas at ...1... (=?UTF-8?B?QmVub8OudCBNaW5pc2luaQ==?=) Date: Tue, 10 Jun 2014 04:19:14 +0200 Subject: [Gambas-user] X11Systray In-Reply-To: <5395E879.5080509@...1...> References: <5395E879.5080509@...1...> Message-ID: <53966B22.5010804@...1...> Le 09/06/2014 19:01, Beno?t Minisini a ?crit : >> >> 2 - I need a form (form_launcher.opacity = 80)semi-transparent , but the >> controls i need opacity =100, visible. >> >> As I can do?. >> > > It's possible with Qt4, but it is not implemented in gb.qt4. I need a > way to do that too with GTK+. > > Regards, > OK, it was a bit difficult, but I succeeded: in revision #6308, you get a new Window.Transparent property. By setting it, you make your window (or form) transparent, and then you can use a RGBA background color and/or a background picture with an alpha channel. Of course, that works only if you have a compositing window manager. Regards, -- Beno?t Minisini From bbruen at ...2308... Tue Jun 10 05:36:23 2014 From: bbruen at ...2308... (B Bruen) Date: Tue, 10 Jun 2014 13:06:23 +0930 Subject: [Gambas-user] Raising events during the constructor method Message-ID: <20140610130623.557bf95939f1b5cbbc1b60b5@...2308...> I don't know whether I have only just noticed this, but is it possible to raise events during the constructor? Main class: Dim myThing as Thing myThing = new Thing as "Something" Public Sub Something_Hello() Debug End Thing class Event Hello() Public Sub _New() Raise Hello End The main class Something_Hello() never gets executed. Is this because the object does not exist yet? regards Bruce -- B Bruen From dl7nb at ...17... Tue Jun 10 06:46:38 2014 From: dl7nb at ...17... (Wolfgang) Date: Tue, 10 Jun 2014 06:46:38 +0200 Subject: [Gambas-user] Webbrowser without gb.qt4?? In-Reply-To: <539627B9.2070404@...69...> References: <53949A13.2050202@...626...> <53956A7C.2040903@...17...> <5395B814.3000109@...1...> <5395B881.10704@...1...> <5f52ab1f-fd53-42ac-bb54-a98feaaf67d8@...2550...> <539627B9.2070404@...69...> Message-ID: gian schrieb: > >Wolfang, > >I would like to reiterate the my concept, > >if you have an application created with gb.gui in a Linux using GTK (eg > >Ubuntu) and that well works , I think you should change it with GB.GTK+ > >("Properties" -> "Components", select gb.gtk and deselect gb.gui as >suggested by Tobias). > >Otherwise if your Linux use QT librerys, I think you should change it >with GB.QT4 > >Ciao gianluigi > > >------------------------------------------------------------------------------ >HPCC Systems Open Source Big Data Platform from LexisNexis Risk >Solutions >Find What Matters Most in Your Big Data with HPCC Systems >Open Source. Fast. Scalable. Simple. Ideal for Dirty Data. >Leverages Graph Analysis for Fast Processing & Easy Data Exploration >http://p.sf.net/sfu/hpccsystems >_______________________________________________ >Gambas-user mailing list >Gambas-user at lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/gambas-user Hello Gianluigi That is exactly what I will try today. Thank you very much for that advice. QT4 has its problems here. E.g. no working background color for a button or a tabstrip. So I think best for me will be to try gb.gtk+ (and maybe wait for a webbrowser element there ;-) Wolfgang ...mobile message... From taboege at ...626... Tue Jun 10 12:50:22 2014 From: taboege at ...626... (Tobias Boege) Date: Tue, 10 Jun 2014 12:50:22 +0200 Subject: [Gambas-user] Webbrowser without gb.qt4?? In-Reply-To: References: <53949A13.2050202@...626...> <53956A7C.2040903@...17...> <5395B814.3000109@...1...> <5395B881.10704@...1...> <5f52ab1f-fd53-42ac-bb54-a98feaaf67d8@...2550...> <539627B9.2070404@...69...> Message-ID: <20140610105022.GA837@...2774...> On Tue, 10 Jun 2014, Wolfgang wrote: > > > gian schrieb: > > > > >Wolfang, > > > >I would like to reiterate the my concept, > > > >if you have an application created with gb.gui in a Linux using GTK (eg > > > >Ubuntu) and that well works , I think you should change it with GB.GTK+ > > > >("Properties" -> "Components", select gb.gtk and deselect gb.gui as > >suggested by Tobias). > > > >Otherwise if your Linux use QT librerys, I think you should change it > >with GB.QT4 > > > >Ciao gianluigi > > > > > >------------------------------------------------------------------------------ > >HPCC Systems Open Source Big Data Platform from LexisNexis Risk > >Solutions > >Find What Matters Most in Your Big Data with HPCC Systems > >Open Source. Fast. Scalable. Simple. Ideal for Dirty Data. > >Leverages Graph Analysis for Fast Processing & Easy Data Exploration > >http://p.sf.net/sfu/hpccsystems > >_______________________________________________ > >Gambas-user mailing list > >Gambas-user at lists.sourceforge.net > >https://lists.sourceforge.net/lists/listinfo/gambas-user > > Hello Gianluigi > > That is exactly what I will try today. Thank you very much for that advice. > > QT4 has its problems here. E.g. no working background color for a button or a tabstrip. > Too funny :-) IIRC, this was the first problem I noticed with *gb.gtk* when I was learning Gambas. -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From linux at ...3345... Tue Jun 10 15:01:28 2014 From: linux at ...3345... (Orionis) Date: Tue, 10 Jun 2014 06:01:28 -0700 (PDT) Subject: [Gambas-user] Form does not update during a debug session In-Reply-To: <20140609201156.GL856@...2774...> References: <1402343834636-46920.post@...3046...> <20140609201156.GL856@...2774...> Message-ID: <1402405288950-46929.post@...3046...> Thanks Tobias, this is useful but it does not help me too much with my particular problem. I mean: i have some tens of controls updates to check while debugging. Should I have to place a .refresh followed by a Wait after each single statement to be tested? -- View this message in context: http://gambas.8142.n7.nabble.com/Form-does-not-update-during-a-debug-session-tp46920p46929.html Sent from the gambas-user mailing list archive at Nabble.com. From karl.reinl at ...9... Tue Jun 10 16:13:58 2014 From: karl.reinl at ...9... (Karl Reinl) Date: Tue, 10 Jun 2014 16:13:58 +0200 Subject: [Gambas-user] TableView Column-Headers are transparent now Message-ID: <1402409638.8219.4.camel@...40...> Salut Beno?t, TableView Column-Headers are transparent now As Test-project, you can use the MySQL-Examble. I attached 2 pic. [System] Gambas=3.5.90 (rev 6307) OperatingSystem=Linux Kernel=3.2.0-64-generic Architecture=x86 Distribution=Ubuntu 12.04.4 LTS Desktop=GNOME Theme=QPlastique Language=de_DE.UTF-8 Memory=3025M [Libraries] Cairo=libcairo.so.2.11000.2 Curl=libcurl.so.4.2.0 DBus=libdbus-1.so.3.5.8 GStreamer=libgstreamer-0.10.so.0.30.0 GTK+3=libgtk-3.so.0.400.2 GTK+=libgtk-x11-2.0.so.0.2400.10 Poppler=libpoppler.so.19.0.0 Qt4=libQtCore.so.4.8.1 SDL=libSDL-1.2.so.0.11.3 -- Amicalement Charlie -------------- next part -------------- A non-text attachment was scrubbed... Name: Bildschirmfoto vom 2014-06-10 16:04:40.png Type: image/png Size: 5136 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Bildschirmfoto vom 2014-06-10 16:04:16.png Type: image/png Size: 1535 bytes Desc: not available URL: From taboege at ...626... Tue Jun 10 16:58:04 2014 From: taboege at ...626... (Tobias Boege) Date: Tue, 10 Jun 2014 16:58:04 +0200 Subject: [Gambas-user] Form does not update during a debug session In-Reply-To: <1402405288950-46929.post@...3046...> References: <1402343834636-46920.post@...3046...> <20140609201156.GL856@...2774...> <1402405288950-46929.post@...3046...> Message-ID: <20140610145804.GB837@...2774...> On Tue, 10 Jun 2014, Orionis wrote: > Thanks Tobias, this is useful but it does not help me too much with my > particular problem. > I mean: i have some tens of controls updates to check while debugging. > Should I have to place a .refresh followed by a Wait after each > single statement to be tested? > If you want output on the GUI: yes. Of course you don't need to Refresh() and Wait after each change. Generally, Refresh() is not needed for most of the controls because they can detect themselves when they changed (it's different for a DrawingArea, e.g.). You simply change the controls and then call Wait once immediately before the breakpoint. Then you get the changed GUI. Or, if you don't need the update on the GUI but just the changed data, you can simply Print or Debug these values. Then you don't need Wait. Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From gambas at ...1... Tue Jun 10 17:20:44 2014 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Tue, 10 Jun 2014 17:20:44 +0200 Subject: [Gambas-user] TableView Column-Headers are transparent now In-Reply-To: <1402409638.8219.4.camel@...40...> References: <1402409638.8219.4.camel@...40...> Message-ID: <5397224C.9070904@...1...> Le 10/06/2014 16:13, Karl Reinl a ?crit : > Salut Beno?t, > > TableView Column-Headers are transparent now > As Test-project, you can use the MySQL-Examble. > > I attached 2 pic. > They are not transparent. It's just the text that is not clipped anymore... I will fix that. -- Beno?t Minisini From gambas at ...1... Tue Jun 10 17:40:53 2014 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Tue, 10 Jun 2014 17:40:53 +0200 Subject: [Gambas-user] TableView Column-Headers are transparent now In-Reply-To: <5397224C.9070904@...1...> References: <1402409638.8219.4.camel@...40...> <5397224C.9070904@...1...> Message-ID: <53972705.3060009@...1...> Le 10/06/2014 17:20, Beno?t Minisini a ?crit : > Le 10/06/2014 16:13, Karl Reinl a ?crit : >> Salut Beno?t, >> >> TableView Column-Headers are transparent now >> As Test-project, you can use the MySQL-Examble. >> >> I attached 2 pic. >> > > They are not transparent. It's just the text that is not clipped > anymore... I will fix that. > Fixed in revision #6311. Regards, -- Beno?t Minisini From Karl.Reinl at ...2345... Tue Jun 10 22:36:48 2014 From: Karl.Reinl at ...2345... (Charlie Reinl) Date: Tue, 10 Jun 2014 22:36:48 +0200 Subject: [Gambas-user] SOLVED : Re: TableView Column-Headers are transparent now In-Reply-To: <53972705.3060009@...1...> References: <1402409638.8219.4.camel@...40...> <5397224C.9070904@...1...> <53972705.3060009@...1...> Message-ID: <1402432608.3485.1.camel@...40...> Am Dienstag, den 10.06.2014, 17:40 +0200 schrieb Beno?t Minisini: > Le 10/06/2014 17:20, Beno?t Minisini a ?crit : > > Le 10/06/2014 16:13, Karl Reinl a ?crit : > >> Salut Beno?t, > >> > >> TableView Column-Headers are transparent now > >> As Test-project, you can use the MySQL-Examble. > >> > >> I attached 2 pic. > >> > > > > They are not transparent. It's just the text that is not clipped > > anymore... I will fix that. > > > > Fixed in revision #6311. > > Regards, > yes re-works now. Thanks -- Amicalement Charlie From bbruen at ...2308... Wed Jun 11 03:32:44 2014 From: bbruen at ...2308... (B Bruen) Date: Wed, 11 Jun 2014 11:02:44 +0930 Subject: [Gambas-user] Something strange just happened? Message-ID: <20140611110244.d36b9690d0f06790c47fb4a9@...2308...> I created a new project "ctlbrowser" with qt4, and settings components. In the main form (renamed from FMain to FControlBrowser) design, I just added the Open and Close events and the code Settings.Read(Me) and Settings.Write respectively. When I ran it, moved and resized the form, closed it and re-opened it, what I expected to happen, viz the form would open with the saved geometry, didn't. Its back at the top left of the screen and sized as per the IDE. Further investigation revealed that in ~/.config/gambas3 I have a "ctlbrowser.conf#" file of 18 bytes length containing a normal looking Settings slot "[FControlBrowser]" but nothing else and a "ctlbrowser.conf.lock" file of zero bytes. Deleting these files and then re-running the project just recreates the same situation. Any clues? (rev 3.5.90 r6307) Bruce -- B Bruen From bbruen at ...2308... Wed Jun 11 03:43:31 2014 From: bbruen at ...2308... (B Bruen) Date: Wed, 11 Jun 2014 11:13:31 +0930 Subject: [Gambas-user] Something strange just happened? In-Reply-To: <20140611110244.d36b9690d0f06790c47fb4a9@...2308...> References: <20140611110244.d36b9690d0f06790c47fb4a9@...2308...> Message-ID: <20140611111331.5e8ec65825a0dcb139d65b2e@...2308...> On Wed, 11 Jun 2014 11:02:44 +0930 B Bruen wrote: > I created a new project "ctlbrowser" with qt4, and settings components. In the main form (renamed from FMain to FControlBrowser) design, I just added the Open and Close events and the code Settings.Read(Me) and Settings.Write respectively. > > When I ran it, moved and resized the form, closed it and re-opened it, what I expected to happen, viz the form would open with the saved geometry, didn't. Its back at the top left of the screen and sized as per the IDE. > > Further investigation revealed that in ~/.config/gambas3 I have a "ctlbrowser.conf#" file of 18 bytes length containing a normal looking Settings slot "[FControlBrowser]" but nothing else and a "ctlbrowser.conf.lock" file of zero bytes. > > Deleting these files and then re-running the project just recreates the same situation. > > Any clues? (rev 3.5.90 r6307) > > Bruce Not to be fazed, I tried it again. Same result. source archive attached. ????? I have been running r6307 for at least 1 day with nothing like this occurring. > -- > B Bruen > > ------------------------------------------------------------------------------ > HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions > Find What Matters Most in Your Big Data with HPCC Systems > Open Source. Fast. Scalable. Simple. Ideal for Dirty Data. > Leverages Graph Analysis for Fast Processing & Easy Data Exploration > http://p.sf.net/sfu/hpccsystems > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -- B Bruen -------------- next part -------------- A non-text attachment was scrubbed... Name: ctlbrowser2-0.0.1.tar.gz Type: application/octet-stream Size: 4788 bytes Desc: not available URL: From bagoneo at ...69... Wed Jun 11 10:34:05 2014 From: bagoneo at ...69... (gian) Date: Wed, 11 Jun 2014 10:34:05 +0200 Subject: [Gambas-user] Advising methods of non-fixed argument tuple in a parent class In-Reply-To: <20140422122841.6845d50c@...3316...> References: <20140414225605.1f499874@...3316...> <53563B75.1070408@...1...> <20140422122841.6845d50c@...3316...> Message-ID: <5398147D.4050502@...69...> Public Sub Form_Close() Settings.Write(Me) Settings.Save() End Regards gianluigi Il 22/04/2014 17:28, Bruno F?lix Rezende Ribeiro ha scritto: > Em Tue, 22 Apr 2014 11:50:45 +0200 > Beno?t Minisini escreveu: > >> I have just came back from "holidays", and I haven't read all the >> pending mails yet. >> >> I just want to say that if you have problem with Gambas inheritance >> and "SUPER" limitations, you can replace inheritance by "composition". >> >> I mean : instead of inheriting "Variant[]" or reimplementing it, you >> can create your own "MyVariantArray" class that embeds a Variant >> array as a private dynamic variable. Then you will be able to do >> almost everything you need. > Indeed, "composition" is the best option given the current situation. > Wise advice. Correct if I'm wrong, but I think that is best exploited > when using '_unknown' and '_property' special methods to > transparently deliver any method or property request directly to the > private dynamic array. This way one don't have to wrap every possible > array method or property and the class can be made agnostic of array > type. > >> Another point: It's not a good idea to reimplement native array >> classes. These classes must be as fast as possible, they are used >> everywhere. I don't think that you need an "Update" event for every >> array in your application, do you? > No, I don't. It's a very specific use case. > > > Thank you. > Happy Hacking! > > > -- > ,= ,-_-. =. Bruno F?lix Rezende Ribeiro (oitofelix) [0x28D618AF] > ((_/)o o(\_)) There is no system but GNU; > `-'(. .)`-' GNU Linux-Libre is one of its official kernels; > \_/ All software must be free as in freedom; > > > ------------------------------------------------------------------------------ > Start Your Social Network Today - Download eXo Platform > Build your Enterprise Intranet with eXo Platform Software > Java Based Open Source Intranet - Social, Extensible, Cloud Ready > Get Started Now And Turn Your Intranet Into A Collaboration Platform > http://p.sf.net/sfu/ExoPlatform > > > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From bagoneo at ...69... Wed Jun 11 10:40:09 2014 From: bagoneo at ...69... (gian) Date: Wed, 11 Jun 2014 10:40:09 +0200 Subject: [Gambas-user] Something strange just happened? In-Reply-To: <20140611111331.5e8ec65825a0dcb139d65b2e@...2308...> References: <20140611110244.d36b9690d0f06790c47fb4a9@...2308...> <20140611111331.5e8ec65825a0dcb139d65b2e@...2308...> Message-ID: <539815E9.80202@...69...> Public Sub Form_Close() Settings.Write(Me) Settings.Save() End Ciao Gianluigi Il 11/06/2014 03:43, B Bruen ha scritto: > On Wed, 11 Jun 2014 11:02:44 +0930 > B Bruen wrote: > >> I created a new project "ctlbrowser" with qt4, and settings components. In the main form (renamed from FMain to FControlBrowser) design, I just added the Open and Close events and the code Settings.Read(Me) and Settings.Write respectively. >> >> When I ran it, moved and resized the form, closed it and re-opened it, what I expected to happen, viz the form would open with the saved geometry, didn't. Its back at the top left of the screen and sized as per the IDE. >> >> Further investigation revealed that in ~/.config/gambas3 I have a "ctlbrowser.conf#" file of 18 bytes length containing a normal looking Settings slot "[FControlBrowser]" but nothing else and a "ctlbrowser.conf.lock" file of zero bytes. >> >> Deleting these files and then re-running the project just recreates the same situation. >> >> Any clues? (rev 3.5.90 r6307) >> >> Bruce > Not to be fazed, I tried it again. Same result. source archive attached. > > ????? > > I have been running r6307 for at least 1 day with nothing like this occurring. >> -- >> B Bruen >> >> ------------------------------------------------------------------------------ >> HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions >> Find What Matters Most in Your Big Data with HPCC Systems >> Open Source. Fast. Scalable. Simple. Ideal for Dirty Data. >> Leverages Graph Analysis for Fast Processing & Easy Data Exploration >> http://p.sf.net/sfu/hpccsystems >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > ------------------------------------------------------------------------------ > HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions > Find What Matters Most in Your Big Data with HPCC Systems > Open Source. Fast. Scalable. Simple. Ideal for Dirty Data. > Leverages Graph Analysis for Fast Processing & Easy Data Exploration > http://p.sf.net/sfu/hpccsystems > > > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From vuott at ...325... Wed Jun 11 10:50:55 2014 From: vuott at ...325... (Ru Vuott) Date: Wed, 11 Jun 2014 09:50:55 +0100 (BST) Subject: [Gambas-user] llvm-3.1-dev no found Message-ID: <1402476655.77727.YahooMailBasic@...3274...> Hello, installing Gambas 3 packages on my new Linux Mint 17, I obtain the notice it's impossible find " llvm-3.1-dev " package. How can I solve this problem ? Thanks vuott From vuott at ...325... Wed Jun 11 12:20:58 2014 From: vuott at ...325... (Ru Vuott) Date: Wed, 11 Jun 2014 11:20:58 +0100 (BST) Subject: [Gambas-user] R: llvm-3.1-dev no found In-Reply-To: <1402476655.77727.YahooMailBasic@...3274...> Message-ID: <1402482058.66266.YahooMailBasic@...3269...> I erase from that list llvm-3.1-dev " package. So, I was be able to install the other packages. Then I installed sudo apt-get install automake and launching ~/trunk $ ./reconf-all I obtain this other problem: autoreconf: running: /usr/bin/autoconf configure:4105: error: possibly undefined macro: AC_LIBTOOL_DLOPEN If this token and others are legitimate, please use m4_pattern_allow. See the Autoconf documentation. configure:4128: error: possibly undefined macro: AC_LIBTOOL_WIN32_DLL configure:4129: error: possibly undefined macro: AC_DISABLE_STATIC autoreconf: /usr/bin/autoconf failed with exit status: 1 :-( What do I have to do ? Regards vuott -------------------------------------------- Mer 11/6/14, Ru Vuott ha scritto: Oggetto: [Gambas-user] llvm-3.1-dev no found A: gambas-user at lists.sourceforge.net Data: Mercoled? 11 giugno 2014, 10:50 Hello, installing Gambas 3 packages on my new Linux Mint 17,? I obtain the notice it's impossible find? " llvm-3.1-dev " package. How can I solve this problem ? Thanks vuott ------------------------------------------------------------------------------ HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions Find What Matters Most in Your Big Data with HPCC Systems Open Source. Fast. Scalable. Simple. Ideal for Dirty Data. Leverages Graph Analysis for Fast Processing & Easy Data Exploration http://p.sf.net/sfu/hpccsystems _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From vuott at ...325... Wed Jun 11 12:38:44 2014 From: vuott at ...325... (Ru Vuott) Date: Wed, 11 Jun 2014 11:38:44 +0100 (BST) Subject: [Gambas-user] R: R: llvm-3.1-dev no found In-Reply-To: <1402482058.66266.YahooMailBasic@...3269...> Message-ID: <1402483124.33428.YahooMailBasic@...3268...> Well, this second problem it seems solved by installing: $ sudo apt-get install libtool Ok -------------------------------------------- Mer 11/6/14, Ru Vuott ha scritto: Oggetto: [Gambas-user] R: llvm-3.1-dev no found A: "mailing list for gambas users" Data: Mercoled? 11 giugno 2014, 12:20 I erase from that list llvm-3.1-dev " package. So, I was be able to install the other packages. Then I installed ? sudo apt-get install automake and launching ~/trunk $ ./reconf-all? I obtain this other problem: autoreconf: running: /usr/bin/autoconf configure:4105: error: possibly undefined macro: AC_LIBTOOL_DLOPEN ? ? ? If this token and others are legitimate, please use m4_pattern_allow. ? ? ? See the Autoconf documentation. configure:4128: error: possibly undefined macro: AC_LIBTOOL_WIN32_DLL configure:4129: error: possibly undefined macro: AC_DISABLE_STATIC autoreconf: /usr/bin/autoconf failed with exit status: 1 :-( What do I have to do ? Regards vuott -------------------------------------------- Mer 11/6/14, Ru Vuott ha scritto: Oggetto: [Gambas-user] llvm-3.1-dev no found A: gambas-user at lists.sourceforge.net Data: Mercoled? 11 giugno 2014, 10:50 Hello, installing Gambas 3 packages on my new Linux Mint 17,? I obtain the notice it's impossible find? " llvm-3.1-dev " package. How can I solve this problem ? Thanks vuott ------------------------------------------------------------------------------ HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions Find What Matters Most in Your Big Data with HPCC Systems Open Source. Fast. Scalable. Simple. Ideal for Dirty Data. Leverages Graph Analysis for Fast Processing & Easy Data Exploration http://p.sf.net/sfu/hpccsystems _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user ------------------------------------------------------------------------------ HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions Find What Matters Most in Your Big Data with HPCC Systems Open Source. Fast. Scalable. Simple. Ideal for Dirty Data. Leverages Graph Analysis for Fast Processing & Easy Data Exploration http://p.sf.net/sfu/hpccsystems _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From jscops at ...11... Wed Jun 11 15:17:23 2014 From: jscops at ...11... (Jack) Date: Wed, 11 Jun 2014 15:17:23 +0200 Subject: [Gambas-user] chessboard In-Reply-To: <1402057291.3648.2.camel@...40...> References: <53901675.5090503@...626...> <53917772.5030704@...1...> <53917C84.20709@...626...> <53917FC2.1020702@...1...> <1402057291.3648.2.camel@...40...> Message-ID: <539856E3.9080506@...11...> hi, a chessboard which is scrolling and circles emerging from a spinning cube. And any music and scrolltext. All in Gambas? Incredible and yet it is here http://www.gambasforge.org/code-113-damier.html Jack From roel at ...3306... Wed Jun 11 14:32:19 2014 From: roel at ...3306... (Roel Touwen) Date: Wed, 11 Jun 2014 14:32:19 +0200 Subject: [Gambas-user] Sending parms to workspace children Message-ID: <53984C53.4070609@...3306...> Hi All, At last I moved on to gambas 3. But I'm running in some kind of problem. In gambas2 I used a function to let all the children now Edit is true or false. In the hosting form I do: for each object in workspace.children try object.MayEdit(True) ' or false of course next and for each object in workspace.children try object.RelationNumber = RelationString next But no matter what I try I simply cannet use this anymore. Any suggestions? From gambas at ...2524... Wed Jun 11 15:36:12 2014 From: gambas at ...2524... (gambas at ...2524...) Date: Wed, 11 Jun 2014 13:36:12 +0000 Subject: [Gambas-user] Issue 528 in gambas: Settings.Write(Me) and a new project Message-ID: <0-6813199134517018827-13789406993747809112-gambas=googlecode.com@...2524...> Status: New Owner: ---- Labels: Version Type-Bug Priority-Medium OpSys-Any Dist-Any Arch-Any Desktop-Any GUI-Any New issue 528 by adamn... at ...626...: Settings.Write(Me) and a new project http://code.google.com/p/gambas/issues/detail?id=528 1) Describe the problem. If the project config file does not exist, for example for a new project or if the config file has been deleted, then Settings.Save must be called explicitly in order to create it. 2) Give information about your system. Use the 'System information' menu in the Gambas IDE, and paste the result there. [System] Gambas=3.5.90 OperatingSystem=Linux Kernel=3.12.18-pclos2 Architecture=x86 Distribution=PCLinuxOS Desktop=LXDE Theme=QWindows Language=en_AU.UTF-8 Memory=1008M [Libraries] Cairo=libcairo.so.2.11200.16 Curl=libcurl.so.3.0.0 Curl=libcurl.so.4.3.0 DBus=libdbus-1.so.3.7.4 GStreamer=libgstreamer-0.10.so.0.30.0 GStreamer=libgstreamer-1.0.so.0.204.0 GTK+3=libgtk-3.so.0.1200.2 GTK+=libgtk-x11-2.0.so.0.2400.22 GTK+=libgtk-x11-2.0.so.0.600.10 OpenGL=libGL.so.1.2.0 OpenGL=libGL.so.173.14.39 OpenGL=libGL.so.96.43.23 Poppler=libpoppler.so.13.0.0 Poppler=libpoppler.so.19.0.0 Qt4=libQtCore.so.4.8.5 SDL=libSDL-1.2.so.0.11.3 3) Provide a little project that reproduces the bug or the crash. Attached 4) If your project needs a database, try to provide it, or part of it. N/A 5) Explain clearly how to reproduce the bug or the crash. Just run it and move the form. Check ~/.config/gambas3 Add Settings.Save to Form_Close Retry Remove Settings.Save Retry 6) By doing that carefully, you have done 50% of the bug fix job! IMPORTANT NOTE: If you encounter several different problems or bugs, (for example, a bug in your project, and an interpreter crash while debugging it), please create distinct issues! ANOTHER NOTE: Don't create an issue if you have a compilation problem on the development version. Send a mail to the mailing-list instead, thanks. Attachments: ctlbrowser2-0.0.1.tar.gz 4.7 KB -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From bbruen at ...2308... Wed Jun 11 15:37:10 2014 From: bbruen at ...2308... (B Bruen) Date: Wed, 11 Jun 2014 23:07:10 +0930 Subject: [Gambas-user] Something strange just happened? In-Reply-To: <539815E9.80202@...69...> References: <20140611110244.d36b9690d0f06790c47fb4a9@...2308...> <20140611111331.5e8ec65825a0dcb139d65b2e@...2308...> <539815E9.80202@...69...> Message-ID: <20140611230710.307dd71095753981da20f70c@...2308...> Aha! Got it. Issue #528 B On Wed, 11 Jun 2014 10:40:09 +0200 gian wrote: > Public Sub Form_Close() > > Settings.Write(Me) > Settings.Save() > > End > Ciao Gianluigi > > Il 11/06/2014 03:43, B Bruen ha scritto: > > On Wed, 11 Jun 2014 11:02:44 +0930 > > B Bruen wrote: > > > >> I created a new project "ctlbrowser" with qt4, and settings components. In the main form (renamed from FMain to FControlBrowser) design, I just added the Open and Close events and the code Settings.Read(Me) and Settings.Write respectively. > >> > >> When I ran it, moved and resized the form, closed it and re-opened it, what I expected to happen, viz the form would open with the saved geometry, didn't. Its back at the top left of the screen and sized as per the IDE. > >> > >> Further investigation revealed that in ~/.config/gambas3 I have a "ctlbrowser.conf#" file of 18 bytes length containing a normal looking Settings slot "[FControlBrowser]" but nothing else and a "ctlbrowser.conf.lock" file of zero bytes. > >> > >> Deleting these files and then re-running the project just recreates the same situation. > >> > >> Any clues? (rev 3.5.90 r6307) > >> > >> Bruce > > Not to be fazed, I tried it again. Same result. source archive attached. > > > > ????? > > > > I have been running r6307 for at least 1 day with nothing like this occurring. > >> -- > >> B Bruen > >> > >> ------------------------------------------------------------------------------ > >> HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions > >> Find What Matters Most in Your Big Data with HPCC Systems > >> Open Source. Fast. Scalable. Simple. Ideal for Dirty Data. > >> Leverages Graph Analysis for Fast Processing & Easy Data Exploration > >> http://p.sf.net/sfu/hpccsystems > >> _______________________________________________ > >> Gambas-user mailing list > >> Gambas-user at lists.sourceforge.net > >> https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > > ------------------------------------------------------------------------------ > > HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions > > Find What Matters Most in Your Big Data with HPCC Systems > > Open Source. Fast. Scalable. Simple. Ideal for Dirty Data. > > Leverages Graph Analysis for Fast Processing & Easy Data Exploration > > http://p.sf.net/sfu/hpccsystems > > > > > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > ------------------------------------------------------------------------------ > HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions > Find What Matters Most in Your Big Data with HPCC Systems > Open Source. Fast. Scalable. Simple. Ideal for Dirty Data. > Leverages Graph Analysis for Fast Processing & Easy Data Exploration > http://p.sf.net/sfu/hpccsystems > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -- B Bruen From gambas at ...1... Wed Jun 11 15:39:07 2014 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Wed, 11 Jun 2014 15:39:07 +0200 Subject: [Gambas-user] Sending parms to workspace children In-Reply-To: <53984C53.4070609@...3306...> References: <53984C53.4070609@...3306...> Message-ID: <53985BFB.8050006@...1...> Le 11/06/2014 14:32, Roel Touwen a ?crit : > Hi All, > > At last I moved on to gambas 3. But I'm running in some kind of problem. > In gambas2 I used a function to let all the children now Edit is true or > false. In the hosting form I do: > > for each object in workspace.children > try object.MayEdit(True) ' or false of course > next > > and > > for each object in workspace.children > try object.RelationNumber = RelationString > next > > > > But no matter what I try I simply cannet use this anymore. Any suggestions? > You must use the Workspace.Windows property. Children maybe worked in Gambas 2, but never the documentation told you that you will get necessarily the windows you embedded in the Workspace that way. Regards, -- Beno?t Minisini From roel at ...3306... Wed Jun 11 15:53:30 2014 From: roel at ...3306... (Roel Touwen) Date: Wed, 11 Jun 2014 15:53:30 +0200 Subject: [Gambas-user] Sending parms to workspace children In-Reply-To: <53985BFB.8050006@...1...> References: <53984C53.4070609@...3306...> <53985BFB.8050006@...1...> Message-ID: <53985F5A.1000201@...3306...> Hi Benoit, Can you give me a sample? I tried: (Also tried to DIM as Window and tried Dim.. as new) But I still get an error on the Wd.MayEdit. The Message of the form's name works. Thanks in advance. Best regards, Roel Public Sub btnEdit_Click() Dim Wd As Form If main.Mayedit = True Then main.MayEdit = False btnEdit.Background = main.vbGrey Else main.MayEdit = True btnEdit.Background = main.vbYellow Endif For Each Wd In ws.Windows Message(Wd.Text) Wd.MayEdit(False) Next End op 11-06-14 15:39, Beno?t Minisini schreef: > Le 11/06/2014 14:32, Roel Touwen a ?crit : >> Hi All, >> >> At last I moved on to gambas 3. But I'm running in some kind of problem. >> In gambas2 I used a function to let all the children now Edit is true or >> false. In the hosting form I do: >> >> for each object in workspace.children >> try object.MayEdit(True) ' or false of course >> next >> >> and >> >> for each object in workspace.children >> try object.RelationNumber = RelationString >> next >> >> >> >> But no matter what I try I simply cannet use this anymore. Any suggestions? >> > You must use the Workspace.Windows property. > > Children maybe worked in Gambas 2, but never the documentation told you > that you will get necessarily the windows you embedded in the Workspace > that way. > > Regards, > From gambas at ...1... Wed Jun 11 16:27:11 2014 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Wed, 11 Jun 2014 16:27:11 +0200 Subject: [Gambas-user] Sending parms to workspace children In-Reply-To: <53985F5A.1000201@...3306...> References: <53984C53.4070609@...3306...> <53985BFB.8050006@...1...> <53985F5A.1000201@...3306...> Message-ID: <5398673F.8000003@...1...> Le 11/06/2014 15:53, Roel Touwen a ?crit : > Hi Benoit, > > Can you give me a sample? I tried: (Also tried to DIM as Window and > tried Dim.. as new) But I still get an error on the Wd.MayEdit. The > Message of the form's name works. > > Thanks in advance. > > Best regards, > > Roel > > > Public Sub btnEdit_Click() > Dim Wd As Form > > If main.Mayedit = True Then > main.MayEdit = False > btnEdit.Background = main.vbGrey > Else > main.MayEdit = True > btnEdit.Background = main.vbYellow > Endif > > For Each Wd In ws.Windows > Message(Wd.Text) > Wd.MayEdit(False) > Next > End > Form has no "MayEdit" method. You must cast your Wd object to its real type, or use a dynamic reference (i.e. declare Wd as "Object"). Regards, -- Beno?t Minisini From roel at ...3306... Wed Jun 11 16:35:52 2014 From: roel at ...3306... (Roel Touwen) Date: Wed, 11 Jun 2014 16:35:52 +0200 Subject: [Gambas-user] Sending parms to workspace children In-Reply-To: <5398673F.8000003@...1...> References: <53984C53.4070609@...3306...> <53985BFB.8050006@...1...> <53985F5A.1000201@...3306...> <5398673F.8000003@...1...> Message-ID: <53986948.2040708@...3306...> Hi Benoit, Thanks, that did the trick! Best regards, Roel op 11-06-14 16:27, Beno?t Minisini schreef: > Le 11/06/2014 15:53, Roel Touwen a ?crit : >> Hi Benoit, >> >> Can you give me a sample? I tried: (Also tried to DIM as Window and >> tried Dim.. as new) But I still get an error on the Wd.MayEdit. The >> Message of the form's name works. >> >> Thanks in advance. >> >> Best regards, >> >> Roel >> >> >> Public Sub btnEdit_Click() >> Dim Wd As Form >> >> If main.Mayedit = True Then >> main.MayEdit = False >> btnEdit.Background = main.vbGrey >> Else >> main.MayEdit = True >> btnEdit.Background = main.vbYellow >> Endif >> >> For Each Wd In ws.Windows >> Message(Wd.Text) >> Wd.MayEdit(False) >> Next >> End >> > Form has no "MayEdit" method. You must cast your Wd object to its real > type, or use a dynamic reference (i.e. declare Wd as "Object"). > > Regards, > From shordi at ...626... Wed Jun 11 17:20:21 2014 From: shordi at ...626... (=?UTF-8?Q?Jorge_Carri=C3=B3n?=) Date: Wed, 11 Jun 2014 17:20:21 +0200 Subject: [Gambas-user] Sending parms to workspace children In-Reply-To: <53984C53.4070609@...3306...> References: <53984C53.4070609@...3306...> Message-ID: Try for each object in workspace.windows Regards 2014-06-11 14:32 GMT+02:00 Roel Touwen : > Hi All, > > At last I moved on to gambas 3. But I'm running in some kind of problem. > In gambas2 I used a function to let all the children now Edit is true or > false. In the hosting form I do: > > for each object in workspace.children > try object.MayEdit(True) ' or false of course > next > > and > > for each object in workspace.children > try object.RelationNumber = RelationString > next > > > > But no matter what I try I simply cannet use this anymore. Any suggestions? > > > > > ------------------------------------------------------------------------------ > HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions > Find What Matters Most in Your Big Data with HPCC Systems > Open Source. Fast. Scalable. Simple. Ideal for Dirty Data. > Leverages Graph Analysis for Fast Processing & Easy Data Exploration > http://p.sf.net/sfu/hpccsystems > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From rterry at ...1823... Wed Jun 11 23:45:50 2014 From: rterry at ...1823... (richard terry) Date: Thu, 12 Jun 2014 07:45:50 +1000 Subject: [Gambas-user] chessboard In-Reply-To: <539856E3.9080506@...11...> References: <53901675.5090503@...626...> <53917772.5030704@...1...> <53917C84.20709@...626...> <53917FC2.1020702@...1...> <1402057291.3648.2.camel@...40...> <539856E3.9080506@...11...> Message-ID: <5398CE0E.2010908@...1823...> On 11/06/14 23:17, Jack wrote: > hi, > > a chessboard which is scrolling and circles emerging from a spinning > cube. And any music and scrolltext. All in Gambas? Incredible and yet it > is here http://www.gambasforge.org/code-113-damier.html > > Jack > > > ------------------------------------------------------------------------------ > HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions > Find What Matters Most in Your Big Data with HPCC Systems > Open Source. Fast. Scalable. Simple. Ideal for Dirty Data. > Leverages Graph Analysis for Fast Processing & Easy Data Exploration > http://p.sf.net/sfu/hpccsystems > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > Une erreur est survenue Un probl?me a ?t? recontr? lors de la g?n?ration de cette page. Veuillez contacter un administrateur en lui communiquant les informations de d?bogage suivantes. Informations de d?bogage *Cannot open database: Can't conneAb* /? Main.DBSubmitAnalytics.416/ * Main.DBSubmitAnalytics.416 * Main.SubmitAnalytics.404 * Main.Main.30 From dl7nb at ...17... Thu Jun 12 09:00:47 2014 From: dl7nb at ...17... (Wolfgang, dl7nb) Date: Thu, 12 Jun 2014 09:00:47 +0200 Subject: [Gambas-user] qt4 not working like gb.gui? In-Reply-To: <53959CBF.4020705@...17...> References: <53949A13.2050202@...626...> <53956A7C.2040903@...17...> <20140609181113.bf6a5905ae5ad5987db470ac@...2308...> <20140609100836.GA856@...2774...> <53959CBF.4020705@...17...> Message-ID: <5399501F.2010402@...17...> Hello, now that I have learned the gb.gui does not work for me I have tried qt4. To my surprise I can not set the backgroundcolor of e.g. Tabstrip (only a small area is in background color) or button, which has no background at all. Is this a bug or is this a feature? Wolfgang [System] Gambas=3.5.3 OperatingSystem=Linux Kernel=3.5.0-51-generic Architecture=x86 Distribution=Ubuntu 12.04.4 LTS Desktop=GNOME Theme=QGtk Language=de_DE.UTF-8 Memory=2000M [Libraries] Cairo=libcairo.so.0.0.0 Cairo=libcairo.so.2.11000.2 Curl=libcurl.so.4.2.0 DBus=libdbus-1.so.3.5.8 GStreamer=libgstreamer-0.10.so.0.30.0 GStreamer=libgstreamer-1.0.so.0.1.0 GTK+=libgtk-x11-2.0.so.0.2400.10 OpenGL=libGL.so.1.2.0 Poppler=libpoppler.so.19.0.0 Qt4=libQtCore.so.4.8.1 SDL=libSDL-1.2.so.0.11.3 Example added... -------------- next part -------------- A non-text attachment was scrubbed... Name: test.tar.gz Type: application/x-gzip Size: 4584 bytes Desc: not available URL: From gambas at ...2524... Thu Jun 12 09:26:14 2014 From: gambas at ...2524... (gambas at ...2524...) Date: Thu, 12 Jun 2014 07:26:14 +0000 Subject: [Gambas-user] Issue 528 in gambas: Settings.Write(Me) and a new project In-Reply-To: <0-6813199134517018827-13789406993747809112-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-13789406993747809112-gambas=googlecode.com@...2524...> Message-ID: <1-6813199134517018827-13789406993747809112-gambas=googlecode.com@...2524...> Updates: Status: Accepted Labels: -Version Version-TRUNK Comment #1 on issue 528 by benoit.m... at ...626...: Settings.Write(Me) and a new project http://code.google.com/p/gambas/issues/detail?id=528 (No comment was entered for this change.) -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From gambas at ...2524... Thu Jun 12 09:27:24 2014 From: gambas at ...2524... (gambas at ...2524...) Date: Thu, 12 Jun 2014 07:27:24 +0000 Subject: [Gambas-user] Issue 528 in gambas: Settings.Write(Me) and a new project In-Reply-To: <1-6813199134517018827-13789406993747809112-gambas=googlecode.com@...2524...> References: <1-6813199134517018827-13789406993747809112-gambas=googlecode.com@...2524...> <0-6813199134517018827-13789406993747809112-gambas=googlecode.com@...2524...> Message-ID: <2-6813199134517018827-13789406993747809112-gambas=googlecode.com@...2524...> Updates: Status: Fixed Comment #2 on issue 528 by benoit.m... at ...626...: Settings.Write(Me) and a new project http://code.google.com/p/gambas/issues/detail?id=528 Fixed in revision #6314. -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From gambas at ...2524... Thu Jun 12 09:28:24 2014 From: gambas at ...2524... (gambas at ...2524...) Date: Thu, 12 Jun 2014 07:28:24 +0000 Subject: [Gambas-user] Issue 412 in gambas: Wish: Add a "picture" property to the panel container In-Reply-To: <1-6813199134517018827-11404429258308187080-gambas=googlecode.com@...2524...> References: <1-6813199134517018827-11404429258308187080-gambas=googlecode.com@...2524...> <0-6813199134517018827-11404429258308187080-gambas=googlecode.com@...2524...> Message-ID: <2-6813199134517018827-11404429258308187080-gambas=googlecode.com@...2524...> Updates: Labels: -Priority-Medium Priority-Low Comment #2 on issue 412 by benoit.m... at ...626...: Wish: Add a "picture" property to the panel container http://code.google.com/p/gambas/issues/detail?id=412 (No comment was entered for this change.) -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From gambas at ...1... Thu Jun 12 09:32:53 2014 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Thu, 12 Jun 2014 09:32:53 +0200 Subject: [Gambas-user] qt4 not working like gb.gui? In-Reply-To: <5399501F.2010402@...17...> References: <53949A13.2050202@...626...> <53956A7C.2040903@...17...> <20140609181113.bf6a5905ae5ad5987db470ac@...2308...> <20140609100836.GA856@...2774...> <53959CBF.4020705@...17...> <5399501F.2010402@...17...> Message-ID: <539957A5.4020508@...1...> Le 12/06/2014 09:00, Wolfgang, dl7nb a ?crit : > Hello, > now that I have learned the gb.gui does not work for me I have tried qt4. > To my surprise I can not set the backgroundcolor of e.g. Tabstrip (only > a small area is in background color) or button, which has no background > at all. > Is this a bug or is this a feature? > > Wolfgang > The widget appearance of basic controls is not managed by Gambas, but by the underlying GUI toolkit through the widget theme. Many Qt widget themes don't allow to change the background color of their buttons for example. You are using the QGtk widget theme, which is a Qt theme that embed the current GTK+ theme in QT. So the final appearance depends on the GTK+ theme used and on possible bugs in QGtk. Just change your widget theme, and you will see that sometimes the background color is taken into account or not, in some controls or others. I didn't try every widget theme, so I can't tell you. I use Oxygen only. Regards, -- Beno?t Minisini From gambas at ...2524... Thu Jun 12 09:34:29 2014 From: gambas at ...2524... (gambas at ...2524...) Date: Thu, 12 Jun 2014 07:34:29 +0000 Subject: [Gambas-user] Issue 355 in gambas: gb.gtk still uses gtk2 In-Reply-To: <5-6813199134517018827-2755329248504962869-gambas=googlecode.com@...2524...> References: <5-6813199134517018827-2755329248504962869-gambas=googlecode.com@...2524...> <0-6813199134517018827-2755329248504962869-gambas=googlecode.com@...2524...> Message-ID: <6-6813199134517018827-2755329248504962869-gambas=googlecode.com@...2524...> Updates: Status: Fixed Comment #6 on issue 355 by benoit.m... at ...626...: gb.gtk still uses gtk2 http://code.google.com/p/gambas/issues/detail?id=355 gb.gtk3 now exists in the development version (it will be there for Gambas 3.6). gb.gtk will be still there for GTK+2 applications. -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From gambas.fr at ...626... Thu Jun 12 09:52:33 2014 From: gambas.fr at ...626... (Fabien Bodard) Date: Thu, 12 Jun 2014 09:52:33 +0200 Subject: [Gambas-user] chessboard In-Reply-To: <5398CE0E.2010908@...1823...> References: <53901675.5090503@...626...> <53917772.5030704@...1...> <53917C84.20709@...626...> <53917FC2.1020702@...1...> <1402057291.3648.2.camel@...40...> <539856E3.9080506@...11...> <5398CE0E.2010908@...1823...> Message-ID: This is corrected ... Thanks to adrien... I'm without internet at home since three week Le 11 juin 2014 23:46, "richard terry" a ?crit : > On 11/06/14 23:17, Jack wrote: > > hi, > > > > a chessboard which is scrolling and circles emerging from a spinning > > cube. And any music and scrolltext. All in Gambas? Incredible and yet it > > is here http://www.gambasforge.org/code-113-damier.html > > > > Jack > > > > > > > ------------------------------------------------------------------------------ > > HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions > > Find What Matters Most in Your Big Data with HPCC Systems > > Open Source. Fast. Scalable. Simple. Ideal for Dirty Data. > > Leverages Graph Analysis for Fast Processing & Easy Data Exploration > > http://p.sf.net/sfu/hpccsystems > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > Une erreur est survenue > > Un probl?me a ?t? recontr? lors de la g?n?ration de cette page. > Veuillez contacter un administrateur en lui communiquant les > informations de d?bogage suivantes. > > > Informations de d?bogage > > *Cannot open database: Can't conneAb* > /? Main.DBSubmitAnalytics.416/ > > * Main.DBSubmitAnalytics.416 > * Main.SubmitAnalytics.404 > * Main.Main.30 > > > ------------------------------------------------------------------------------ > HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions > Find What Matters Most in Your Big Data with HPCC Systems > Open Source. Fast. Scalable. Simple. Ideal for Dirty Data. > Leverages Graph Analysis for Fast Processing & Easy Data Exploration > http://p.sf.net/sfu/hpccsystems > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas.fr at ...626... Thu Jun 12 09:54:40 2014 From: gambas.fr at ...626... (Fabien Bodard) Date: Thu, 12 Jun 2014 09:54:40 +0200 Subject: [Gambas-user] qt4 not working like gb.gui? In-Reply-To: <539957A5.4020508@...1...> References: <53949A13.2050202@...626...> <53956A7C.2040903@...17...> <20140609181113.bf6a5905ae5ad5987db470ac@...2308...> <20140609100836.GA856@...2774...> <53959CBF.4020705@...17...> <5399501F.2010402@...17...> <539957A5.4020508@...1...> Message-ID: Maybe you can add this feature to tabpanel ??? Le 12 juin 2014 09:33, "Beno?t Minisini" a ?crit : > Le 12/06/2014 09:00, Wolfgang, dl7nb a ?crit : > > Hello, > > now that I have learned the gb.gui does not work for me I have tried qt4. > > To my surprise I can not set the backgroundcolor of e.g. Tabstrip (only > > a small area is in background color) or button, which has no background > > at all. > > Is this a bug or is this a feature? > > > > Wolfgang > > > > The widget appearance of basic controls is not managed by Gambas, but by > the underlying GUI toolkit through the widget theme. > > Many Qt widget themes don't allow to change the background color of > their buttons for example. > > You are using the QGtk widget theme, which is a Qt theme that embed the > current GTK+ theme in QT. So the final appearance depends on the GTK+ > theme used and on possible bugs in QGtk. > > Just change your widget theme, and you will see that sometimes the > background color is taken into account or not, in some controls or > others. I didn't try every widget theme, so I can't tell you. I use > Oxygen only. > > Regards, > > -- > Beno?t Minisini > > > ------------------------------------------------------------------------------ > HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions > Find What Matters Most in Your Big Data with HPCC Systems > Open Source. Fast. Scalable. Simple. Ideal for Dirty Data. > Leverages Graph Analysis for Fast Processing & Easy Data Exploration > http://p.sf.net/sfu/hpccsystems > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From dl7nb at ...17... Thu Jun 12 09:58:02 2014 From: dl7nb at ...17... (Wolfgang, dl7nb) Date: Thu, 12 Jun 2014 09:58:02 +0200 Subject: [Gambas-user] qt4 not working like gb.gui? In-Reply-To: <539957A5.4020508@...1...> References: <53949A13.2050202@...626...> <53956A7C.2040903@...17...> <20140609181113.bf6a5905ae5ad5987db470ac@...2308...> <20140609100836.GA856@...2774...> <53959CBF.4020705@...17...> <5399501F.2010402@...17...> <539957A5.4020508@...1...> Message-ID: <53995D8A.10005@...17...> Am 12.06.2014 09:32, schrieb Beno?t Minisini: > Le 12/06/2014 09:00, Wolfgang, dl7nb a ?crit : >> Hello, >> now that I have learned the gb.gui does not work for me I have tried qt4. >> To my surprise I can not set the backgroundcolor of e.g. Tabstrip (only >> a small area is in background color) or button, which has no background >> at all. >> Is this a bug or is this a feature? >> >> Wolfgang >> > The widget appearance of basic controls is not managed by Gambas, but by > the underlying GUI toolkit through the widget theme. > > Many Qt widget themes don't allow to change the background color of > their buttons for example. > > You are using the QGtk widget theme, which is a Qt theme that embed the > current GTK+ theme in QT. So the final appearance depends on the GTK+ > theme used and on possible bugs in QGtk. > > Just change your widget theme, and you will see that sometimes the > background color is taken into account or not, in some controls or > others. I didn't try every widget theme, so I can't tell you. I use > Oxygen only. > > Regards, > Thank you Beno?t! I didn't think about that. So the solution for my "problem" depends on me. (as so often!;-) I should have tried that before. Have a nice day! Wolfgang From taboege at ...626... Thu Jun 12 21:12:27 2014 From: taboege at ...626... (Tobias Boege) Date: Thu, 12 Jun 2014 21:12:27 +0200 Subject: [Gambas-user] DirChooser does not see symlink'd directories Message-ID: <20140612191227.GC1102@...2774...> Hi, I recently (maybe it was yesterday?) rolled an overdue Gambas update and I just noticed that the IDE won't let me browse to my projects directory anymore which I like to access through a symlink on my desktop. Seems like the Dir-/FileChooser are the root cause. The attached project will create a symlink /tmp/tmp-link which points to /tmp and point a FileChooser to /tmp. On my system the symlink is shown as a file and is not "enter-able" like a directory would be. Screenshot attached. Before, symlinks that point to directories showed up in the directory part of the FileChooser and were indistinguishable from real directories, i.e. I could click on them to enter the linked directory. Is this behaviour controlled by Gambas? I honestly don't know when I had my last Gambas update. Might be that a system update lies in between and libraries changed... Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk -------------- next part -------------- A non-text attachment was scrubbed... Name: dirchooser-no-symlinks-0.0.1.tar.gz Type: application/octet-stream Size: 4701 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: dirchooser-no-symlinks.png Type: image/png Size: 25132 bytes Desc: not available URL: From rmorgan62 at ...626... Thu Jun 12 21:18:17 2014 From: rmorgan62 at ...626... (Randall Morgan) Date: Thu, 12 Jun 2014 12:18:17 -0700 Subject: [Gambas-user] DirChooser does not see symlink'd directories In-Reply-To: <20140612191227.GC1102@...2774...> References: <20140612191227.GC1102@...2774...> Message-ID: I reported this maybe two weeks ago.... On Thu, Jun 12, 2014 at 12:12 PM, Tobias Boege wrote: > Hi, > > I recently (maybe it was yesterday?) rolled an overdue Gambas update and I > just noticed that the IDE won't let me browse to my projects directory > anymore which I like to access through a symlink on my desktop. > > Seems like the Dir-/FileChooser are the root cause. The attached project > will create a symlink /tmp/tmp-link which points to /tmp and point a > FileChooser to /tmp. On my system the symlink is shown as a file and is not > "enter-able" like a directory would be. Screenshot attached. > > Before, symlinks that point to directories showed up in the directory part > of the FileChooser and were indistinguishable from real directories, i.e. I > could click on them to enter the linked directory. > > Is this behaviour controlled by Gambas? I honestly don't know when I had my > last Gambas update. Might be that a system update lies in between and > libraries changed... > > Regards, > Tobi > > -- > "There's an old saying: Don't change anything... ever!" -- Mr. Monk > > > ------------------------------------------------------------------------------ > HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions > Find What Matters Most in Your Big Data with HPCC Systems > Open Source. Fast. Scalable. Simple. Ideal for Dirty Data. > Leverages Graph Analysis for Fast Processing & Easy Data Exploration > http://p.sf.net/sfu/hpccsystems > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > -- If you ask me if it can be done. The answer is YES, it can always be done. The correct questions however are... What will it cost, and how long will it take? From taboege at ...626... Thu Jun 12 21:22:42 2014 From: taboege at ...626... (Tobias Boege) Date: Thu, 12 Jun 2014 21:22:42 +0200 Subject: [Gambas-user] DirChooser does not see symlink'd directories In-Reply-To: References: <20140612191227.GC1102@...2774...> Message-ID: <20140612192242.GE1102@...2774...> On Thu, 12 Jun 2014, Randall Morgan wrote: > I reported this maybe two weeks ago.... > Ouch. And I thought I'd read this list :-) -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From rmorgan62 at ...626... Thu Jun 12 21:38:26 2014 From: rmorgan62 at ...626... (Randall Morgan) Date: Thu, 12 Jun 2014 12:38:26 -0700 Subject: [Gambas-user] DirChooser does not see symlink'd directories In-Reply-To: <20140612192242.GE1102@...2774...> References: <20140612191227.GC1102@...2774...> <20140612192242.GE1102@...2774...> Message-ID: LOL. I t is a busy list. You can't catch everything... I might have posted it to the devel list instead of the user list... On Thu, Jun 12, 2014 at 12:22 PM, Tobias Boege wrote: > On Thu, 12 Jun 2014, Randall Morgan wrote: > > I reported this maybe two weeks ago.... > > > > Ouch. And I thought I'd read this list :-) > > -- > "There's an old saying: Don't change anything... ever!" -- Mr. Monk > > > ------------------------------------------------------------------------------ > HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions > Find What Matters Most in Your Big Data with HPCC Systems > Open Source. Fast. Scalable. Simple. Ideal for Dirty Data. > Leverages Graph Analysis for Fast Processing & Easy Data Exploration > http://p.sf.net/sfu/hpccsystems > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- If you ask me if it can be done. The answer is YES, it can always be done. The correct questions however are... What will it cost, and how long will it take? From bagoneo at ...69... Thu Jun 12 22:26:22 2014 From: bagoneo at ...69... (gian) Date: Thu, 12 Jun 2014 22:26:22 +0200 Subject: [Gambas-user] Gambas's menu vanished Message-ID: <539A0CEE.8050208@...69...> Hello to all, I updated svn Gambas3 (3.5.99.1 + + build11 ~ svn20140612 ubuntu14.04.1) on my Ubuntu very updated and now the menus are gone. regards gianluigi From gambas at ...1... Fri Jun 13 01:22:18 2014 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Fri, 13 Jun 2014 01:22:18 +0200 Subject: [Gambas-user] DirChooser does not see symlink'd directories In-Reply-To: <20140612191227.GC1102@...2774...> References: <20140612191227.GC1102@...2774...> Message-ID: <539A362A.30107@...1...> Le 12/06/2014 21:12, Tobias Boege a ?crit : > Hi, > > I recently (maybe it was yesterday?) rolled an overdue Gambas update and I > just noticed that the IDE won't let me browse to my projects directory > anymore which I like to access through a symlink on my desktop. > > Seems like the Dir-/FileChooser are the root cause. The attached project > will create a symlink /tmp/tmp-link which points to /tmp and point a > FileChooser to /tmp. On my system the symlink is shown as a file and is not > "enter-able" like a directory would be. Screenshot attached. > > Before, symlinks that point to directories showed up in the directory part > of the FileChooser and were indistinguishable from real directories, i.e. I > could click on them to enter the linked directory. > > Is this behaviour controlled by Gambas? I honestly don't know when I had my > last Gambas update. Might be that a system update lies in between and > libraries changed... > > Regards, > Tobi > Fixed in revision #6316. Regards, -- Beno?t Minisini From ihaywood3 at ...626... Fri Jun 13 01:47:38 2014 From: ihaywood3 at ...626... (Ian Haywood) Date: Fri, 13 Jun 2014 09:47:38 +1000 Subject: [Gambas-user] loading PDF widget very slow Message-ID: I've noticed that suddenyl loading any PDF became very slow (1-15 seconds to load) the PDFs are small and no my local drive, so should load almost immediately. then I discovered chanigng my default printer fixed it using strace, this is what's happening while I wait for the PDF to load connect(34, {sa_family=AF_INET, sin_port=htons(631), sin_addr=inet_addr("192.168.1.8")}, 16) = -1 EINPROGRESS (Operation now in progress) fcntl64(34, F_SETFL, O_RDWR) = 0 poll([{fd=34, events=POLLIN|POLLOUT}], 1, 250) = 0 (Timeout) poll([{fd=34, events=POLLIN|POLLOUT}], 1, 250) = 0 (Timeout) poll([{fd=34, events=POLLIN|POLLOUT}], 1, 250) = 0 (Timeout) poll([{fd=34, events=POLLIN|POLLOUT}], 1, 250) = 0 (Timeout) poll([{fd=34, events=POLLIN|POLLOUT}], 1, 250) = 0 (Timeout) poll([{fd=34, events=POLLIN|POLLOUT}], 1, 250) = 0 (Timeout) poll([{fd=34, events=POLLIN|POLLOUT}], 1, 250) = 0 (Timeout) poll([{fd=34, events=POLLIN|POLLOUT}], 1, 250) = 0 (Timeout) poll([{fd=34, events=POLLIN|POLLOUT}], 1, 250) = 0 (Timeout) poll([{fd=34, events=POLLIN|POLLOUT}], 1, 250) = 0 (Timeout) my interpretation is that it's trying to talk to the printer on 192.168.1.8: that's my printer at home, not available when I'm at work but the real question is: why does the PDF widget even care? I don't want to print, just look at the PDF From gambas at ...1... Fri Jun 13 02:10:45 2014 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Fri, 13 Jun 2014 02:10:45 +0200 Subject: [Gambas-user] loading PDF widget very slow In-Reply-To: References: Message-ID: <539A4185.5070206@...1...> Le 13/06/2014 01:47, Ian Haywood a ?crit : > I've noticed that suddenyl loading any PDF became very slow (1-15 > seconds to load) > the PDFs are small and no my local drive, so should load almost immediately. > > then I discovered chanigng my default printer fixed it > > using strace, this is what's happening while I wait for the PDF to load > > connect(34, {sa_family=AF_INET, sin_port=htons(631), > sin_addr=inet_addr("192.168.1.8")}, 16) = -1 EINPROGRESS (Operation > now in progress) > fcntl64(34, F_SETFL, O_RDWR) = 0 > poll([{fd=34, events=POLLIN|POLLOUT}], 1, 250) = 0 (Timeout) > poll([{fd=34, events=POLLIN|POLLOUT}], 1, 250) = 0 (Timeout) > poll([{fd=34, events=POLLIN|POLLOUT}], 1, 250) = 0 (Timeout) > poll([{fd=34, events=POLLIN|POLLOUT}], 1, 250) = 0 (Timeout) > poll([{fd=34, events=POLLIN|POLLOUT}], 1, 250) = 0 (Timeout) > poll([{fd=34, events=POLLIN|POLLOUT}], 1, 250) = 0 (Timeout) > poll([{fd=34, events=POLLIN|POLLOUT}], 1, 250) = 0 (Timeout) > poll([{fd=34, events=POLLIN|POLLOUT}], 1, 250) = 0 (Timeout) > poll([{fd=34, events=POLLIN|POLLOUT}], 1, 250) = 0 (Timeout) > poll([{fd=34, events=POLLIN|POLLOUT}], 1, 250) = 0 (Timeout) > > my interpretation is that it's trying to talk to the printer on > 192.168.1.8: that's my printer at home, not available when I'm at work > > but the real question is: why does the PDF widget even care? I don't > want to print, just look at the PDF > What do you call "PDF widget"??? -- Beno?t Minisini From gambas.fr at ...626... Fri Jun 13 08:04:06 2014 From: gambas.fr at ...626... (Fabien Bodard) Date: Fri, 13 Jun 2014 08:04:06 +0200 Subject: [Gambas-user] loading PDF widget very slow In-Reply-To: <539A4185.5070206@...1...> References: <539A4185.5070206@...1...> Message-ID: Le 13 juin 2014 02:11, "Beno?t Minisini" a ?crit : > > Le 13/06/2014 01:47, Ian Haywood a ?crit : > > I've noticed that suddenyl loading any PDF became very slow (1-15 > > seconds to load) > > the PDFs are small and no my local drive, so should load almost immediately. > > > > then I discovered chanigng my default printer fixed it > > > > using strace, this is what's happening while I wait for the PDF to load > > > > connect(34, {sa_family=AF_INET, sin_port=htons(631), > > sin_addr=inet_addr("192.168.1.8")}, 16) = -1 EINPROGRESS (Operation > > now in progress) > > fcntl64(34, F_SETFL, O_RDWR) = 0 > > poll([{fd=34, events=POLLIN|POLLOUT}], 1, 250) = 0 (Timeout) > > poll([{fd=34, events=POLLIN|POLLOUT}], 1, 250) = 0 (Timeout) > > poll([{fd=34, events=POLLIN|POLLOUT}], 1, 250) = 0 (Timeout) > > poll([{fd=34, events=POLLIN|POLLOUT}], 1, 250) = 0 (Timeout) > > poll([{fd=34, events=POLLIN|POLLOUT}], 1, 250) = 0 (Timeout) > > poll([{fd=34, events=POLLIN|POLLOUT}], 1, 250) = 0 (Timeout) > > poll([{fd=34, events=POLLIN|POLLOUT}], 1, 250) = 0 (Timeout) > > poll([{fd=34, events=POLLIN|POLLOUT}], 1, 250) = 0 (Timeout) > > poll([{fd=34, events=POLLIN|POLLOUT}], 1, 250) = 0 (Timeout) > > poll([{fd=34, events=POLLIN|POLLOUT}], 1, 250) = 0 (Timeout) > > > > my interpretation is that it's trying to talk to the printer on > > 192.168.1.8: that's my printer at home, not available when I'm at work > > > > but the real question is: why does the PDF widget even care? I don't > > want to print, just look at the PDF > > > > What do you call "PDF widget"??? ... A good idea ? > -- > Beno?t Minisini > > ------------------------------------------------------------------------------ > HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions > Find What Matters Most in Your Big Data with HPCC Systems > Open Source. Fast. Scalable. Simple. Ideal for Dirty Data. > Leverages Graph Analysis for Fast Processing & Easy Data Exploration > http://p.sf.net/sfu/hpccsystems > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From bagoneo at ...69... Fri Jun 13 10:15:39 2014 From: bagoneo at ...69... (Gian) Date: Fri, 13 Jun 2014 01:15:39 -0700 (PDT) Subject: [Gambas-user] Gambas's menu vanished In-Reply-To: <539A0CEE.8050208@...69...> References: <539A0CEE.8050208@...69...> Message-ID: <1402647339164-46970.post@...3046...> No one else has this problem? Gambas without its menu? -- View this message in context: http://gambas.8142.n7.nabble.com/Gambas-s-menu-vanished-tp46965p46970.html Sent from the gambas-user mailing list archive at Nabble.com. From wig at ...1809... Fri Jun 13 09:51:44 2014 From: wig at ...1809... (wig) Date: Fri, 13 Jun 2014 09:51:44 +0200 Subject: [Gambas-user] TableView.Clear in Gambas3 Message-ID: <99db45f3a38e3a024a439f222a2e1668.squirrel@...3221...> I tried to search for other mention of this item, and I might be missing something, but the Clear function seems to leave one cell "not-cleared" in my TableView. Replicate: make a table, with edit and save code, fill some cells, clear the table with TableView1.Clear One of the cells stays filled with the same content it had (mostly the last one that was filled - so I tried to be sure I left the cell after editing by doing something else on screen, like change a spinbox value). Version: Gambas 3.4.1 and 3.4.2, on OpenSUSE 13.1/KDE Demo project included (with screenshots). FMain : Public Sub _new() TableView1.Columns.Count = 6 TableView1.Rows.Count = 20 End Public Sub TableView1_Click() Debug TableView1.Column Debug TableView1.Row TableView1.Edit() End Public Sub Form_Open() End Public Sub Button1_Click() TableView1.Clear End Public Sub TableView1_Save(x As Integer, y As Integer, sText As String) TableView1[x, y].Text = sText End -------------- next part -------------- A non-text attachment was scrubbed... Name: DemoClearNotAllTable-0.0.1.tar.gz Type: application/gzip Size: 96252 bytes Desc: not available URL: From gambas.fr at ...626... Fri Jun 13 11:26:00 2014 From: gambas.fr at ...626... (Fabien Bodard) Date: Fri, 13 Jun 2014 11:26:00 +0200 Subject: [Gambas-user] Gambas's menu vanished In-Reply-To: <1402647339164-46970.post@...3046...> References: <539A0CEE.8050208@...69...> <1402647339164-46970.post@...3046...> Message-ID: Try ctrl alt M Maybe the menu is just hidden Le 13 juin 2014 10:16, "Gian" a ?crit : > No one else has this problem? > Gambas without its menu? > > > > -- > View this message in context: > http://gambas.8142.n7.nabble.com/Gambas-s-menu-vanished-tp46965p46970.html > Sent from the gambas-user mailing list archive at Nabble.com. > > > ------------------------------------------------------------------------------ > HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions > Find What Matters Most in Your Big Data with HPCC Systems > Open Source. Fast. Scalable. Simple. Ideal for Dirty Data. > Leverages Graph Analysis for Fast Processing & Easy Data Exploration > http://p.sf.net/sfu/hpccsystems > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From sbungay at ...3301... Fri Jun 13 14:59:20 2014 From: sbungay at ...3301... (Stephen) Date: Fri, 13 Jun 2014 08:59:20 -0400 Subject: [Gambas-user] chessboard In-Reply-To: References: <53901675.5090503@...626...> <53917772.5030704@...1...> <53917C84.20709@...626...> <53917FC2.1020702@...1...> <1402057291.3648.2.camel@...40...> <539856E3.9080506@...11...> <5398CE0E.2010908@...1823...> Message-ID: <539AF5A8.7020401@...3301...> All I see is a message and a smiley face waving a sign. Still not working? On 06/12/2014 03:52 AM, Fabien Bodard wrote: > This is corrected ... Thanks to adrien... I'm without internet at home > since three week > Le 11 juin 2014 23:46, "richard terry" a ?crit : > >> On 11/06/14 23:17, Jack wrote: >>> hi, >>> >>> a chessboard which is scrolling and circles emerging from a spinning >>> cube. And any music and scrolltext. All in Gambas? Incredible and yet it >>> is here http://www.gambasforge.org/code-113-damier.html >>> >>> Jack >>> >>> >>> >> ------------------------------------------------------------------------------ >>> HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions >>> Find What Matters Most in Your Big Data with HPCC Systems >>> Open Source. Fast. Scalable. Simple. Ideal for Dirty Data. >>> Leverages Graph Analysis for Fast Processing& Easy Data Exploration >>> http://p.sf.net/sfu/hpccsystems >>> _______________________________________________ >>> Gambas-user mailing list >>> Gambas-user at lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>> >> Une erreur est survenue >> >> Un probl?me a ?t? recontr? lors de la g?n?ration de cette page. >> Veuillez contacter un administrateur en lui communiquant les >> informations de d?bogage suivantes. >> >> >> Informations de d?bogage >> >> *Cannot open database: Can't conneAb* >> /? Main.DBSubmitAnalytics.416/ >> >> * Main.DBSubmitAnalytics.416 >> * Main.SubmitAnalytics.404 >> * Main.Main.30 >> >> >> ------------------------------------------------------------------------------ >> HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions >> Find What Matters Most in Your Big Data with HPCC Systems >> Open Source. Fast. Scalable. Simple. Ideal for Dirty Data. >> Leverages Graph Analysis for Fast Processing& Easy Data Exploration >> http://p.sf.net/sfu/hpccsystems >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > ------------------------------------------------------------------------------ > HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions > Find What Matters Most in Your Big Data with HPCC Systems > Open Source. Fast. Scalable. Simple. Ideal for Dirty Data. > Leverages Graph Analysis for Fast Processing& Easy Data Exploration > http://p.sf.net/sfu/hpccsystems > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -- Kindest Regards Stephen A. Bungay, Prop. Smarts On Site From taboege at ...626... Fri Jun 13 15:23:08 2014 From: taboege at ...626... (Tobias Boege) Date: Fri, 13 Jun 2014 15:23:08 +0200 Subject: [Gambas-user] DirChooser does not see symlink'd directories In-Reply-To: <539A362A.30107@...1...> References: <20140612191227.GC1102@...2774...> <539A362A.30107@...1...> Message-ID: <20140613132308.GB982@...2774...> On Fri, 13 Jun 2014, Beno?t Minisini wrote: > Le 12/06/2014 21:12, Tobias Boege a ?crit : > > Hi, > > > > I recently (maybe it was yesterday?) rolled an overdue Gambas update and I > > just noticed that the IDE won't let me browse to my projects directory > > anymore which I like to access through a symlink on my desktop. > > > > Seems like the Dir-/FileChooser are the root cause. The attached project > > will create a symlink /tmp/tmp-link which points to /tmp and point a > > FileChooser to /tmp. On my system the symlink is shown as a file and is not > > "enter-able" like a directory would be. Screenshot attached. > > > > Before, symlinks that point to directories showed up in the directory part > > of the FileChooser and were indistinguishable from real directories, i.e. I > > could click on them to enter the linked directory. > > > > Is this behaviour controlled by Gambas? I honestly don't know when I had my > > last Gambas update. Might be that a system update lies in between and > > libraries changed... > > > > Regards, > > Tobi > > > > Fixed in revision #6316. > Works! Thanks. -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From bagoneo at ...69... Fri Jun 13 16:59:01 2014 From: bagoneo at ...69... (Gian) Date: Fri, 13 Jun 2014 07:59:01 -0700 (PDT) Subject: [Gambas-user] Gambas's menu vanished In-Reply-To: References: <539A0CEE.8050208@...69...> <1402647339164-46970.post@...3046...> Message-ID: <1402671541985-46975.post@...3046...> Thankyou Fabien. It was just so, excuse my ignorance gianluigi -- View this message in context: http://gambas.8142.n7.nabble.com/Gambas-s-menu-vanished-tp46965p46975.html Sent from the gambas-user mailing list archive at Nabble.com. From gambas.fr at ...626... Fri Jun 13 17:07:07 2014 From: gambas.fr at ...626... (Fabien Bodard) Date: Fri, 13 Jun 2014 17:07:07 +0200 Subject: [Gambas-user] chessboard In-Reply-To: <539AF5A8.7020401@...3301...> References: <53901675.5090503@...626...> <53917772.5030704@...1...> <53917C84.20709@...626...> <53917FC2.1020702@...1...> <1402057291.3648.2.camel@...40...> <539856E3.9080506@...11...> <5398CE0E.2010908@...1823...> <539AF5A8.7020401@...3301...> Message-ID: Le 13 juin 2014 15:05, "Stephen" a ?crit : > > All I see is a message and a smiley face waving a sign. Still not > working? It work for me here on chrome and firefox. http://www.gambasforge.org/code-113-damier.html > > On 06/12/2014 03:52 AM, Fabien Bodard wrote: > > This is corrected ... Thanks to adrien... I'm without internet at home > > since three week > > Le 11 juin 2014 23:46, "richard terry" a ?crit : > > > >> On 11/06/14 23:17, Jack wrote: > >>> hi, > >>> > >>> a chessboard which is scrolling and circles emerging from a spinning > >>> cube. And any music and scrolltext. All in Gambas? Incredible and yet it > >>> is here http://www.gambasforge.org/code-113-damier.html > >>> > >>> Jack > >>> > >>> > >>> > >> ------------------------------------------------------------------------------ > >>> HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions > >>> Find What Matters Most in Your Big Data with HPCC Systems > >>> Open Source. Fast. Scalable. Simple. Ideal for Dirty Data. > >>> Leverages Graph Analysis for Fast Processing& Easy Data Exploration > >>> http://p.sf.net/sfu/hpccsystems > >>> _______________________________________________ > >>> Gambas-user mailing list > >>> Gambas-user at lists.sourceforge.net > >>> https://lists.sourceforge.net/lists/listinfo/gambas-user > >>> > >> Une erreur est survenue > >> > >> Un probl?me a ?t? recontr? lors de la g?n?ration de cette page. > >> Veuillez contacter un administrateur en lui communiquant les > >> informations de d?bogage suivantes. > >> > >> > >> Informations de d?bogage > >> > >> *Cannot open database: Can't conneAb* > >> /? Main.DBSubmitAnalytics.416/ > >> > >> * Main.DBSubmitAnalytics.416 > >> * Main.SubmitAnalytics.404 > >> * Main.Main.30 > >> > >> > >> ------------------------------------------------------------------------------ > >> HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions > >> Find What Matters Most in Your Big Data with HPCC Systems > >> Open Source. Fast. Scalable. Simple. Ideal for Dirty Data. > >> Leverages Graph Analysis for Fast Processing& Easy Data Exploration > >> http://p.sf.net/sfu/hpccsystems > >> _______________________________________________ > >> Gambas-user mailing list > >> Gambas-user at lists.sourceforge.net > >> https://lists.sourceforge.net/lists/listinfo/gambas-user > >> > > ------------------------------------------------------------------------------ > > HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions > > Find What Matters Most in Your Big Data with HPCC Systems > > Open Source. Fast. Scalable. Simple. Ideal for Dirty Data. > > Leverages Graph Analysis for Fast Processing& Easy Data Exploration > > http://p.sf.net/sfu/hpccsystems > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > -- > Kindest Regards > Stephen A. Bungay, Prop. > Smarts On Site > > > ------------------------------------------------------------------------------ > HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions > Find What Matters Most in Your Big Data with HPCC Systems > Open Source. Fast. Scalable. Simple. Ideal for Dirty Data. > Leverages Graph Analysis for Fast Processing & Easy Data Exploration > http://p.sf.net/sfu/hpccsystems > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From pata.karlsson at ...626... Fri Jun 13 17:35:27 2014 From: pata.karlsson at ...626... (Patrik Karlsson) Date: Fri, 13 Jun 2014 17:35:27 +0200 Subject: [Gambas-user] Fwd: Feature request: IDE In-Reply-To: <539745A7.60101@...1...> References: <53917541.2070605@...1...> <539745A7.60101@...1...> Message-ID: ---------- Forwarded message ---------- From: Beno?t Minisini Date: 2014-06-10 19:51 GMT+02:00 Subject: Re: [Gambas-user] Feature request: IDE To: Patrik Karlsson Well, everything is done except: 2. Make shortcut for Horizontal and Vertikal split toggle. > -> On my machine, CTRL+H and CTRL+J act as toogle correctly. Which version of Gambas do you use? Im using 3.5.3 from the PPA. 3. Insert an 'Edit' menu between File and Project with cut, copy, > paste, undo redo... > -> I don't want to do that, because the menu is contextual (it depends on the active tab) and has not enough entries. Would it be possible to have them visible in the menu but disabled when out of context? 5. CTRL X cuts current row if nothing is selected 6. CTRL C copies > > current row if nothing is selected > I find that confusing, so no. 7. Triple click selects entire row. > I can't detect triple click on Qt apparently... To select a line, you can just click on the very left of the line. 10. Move current selection up/down > Already done with ALT + arrows. -- Beno?t Minisini Great work, thanks for the improvements! /Patrik From tom at ...3139... Fri Jun 13 20:28:40 2014 From: tom at ...3139... (Tom) Date: Fri, 13 Jun 2014 14:28:40 -0400 Subject: [Gambas-user] Fwd: Feature request: IDE In-Reply-To: References: <53917541.2070605@...1...> <539745A7.60101@...1...> Message-ID: <539B42D8.60007@...3139...> On 6/13/2014 11:35 AM, Patrik Karlsson wrote: > 5. CTRL X cuts current row if nothing is selected 6. CTRL C copies >> > >> >current row if nothing is selected >> > > I find that confusing, so no. > I would like that. CTRL X and CTRL C do that on other IDE's I have used. I used CTRL X all of the time... From jussi.lahtinen at ...626... Fri Jun 13 22:39:10 2014 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Fri, 13 Jun 2014 23:39:10 +0300 Subject: [Gambas-user] Fwd: Feature request: IDE In-Reply-To: <539B42D8.60007@...3139...> References: <53917541.2070605@...1...> <539745A7.60101@...1...> <539B42D8.60007@...3139...> Message-ID: Maybe it could be optional feature? Just set is "off" by default. Jussi On Fri, Jun 13, 2014 at 9:28 PM, Tom wrote: > On 6/13/2014 11:35 AM, Patrik Karlsson wrote: > > 5. CTRL X cuts current row if nothing is selected 6. CTRL C copies > >> > > >> >current row if nothing is selected > >> > > > I find that confusing, so no. > > > I would like that. CTRL X and CTRL C do that on other IDE's I have used. > I > used CTRL X all of the time... > > > ------------------------------------------------------------------------------ > HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions > Find What Matters Most in Your Big Data with HPCC Systems > Open Source. Fast. Scalable. Simple. Ideal for Dirty Data. > Leverages Graph Analysis for Fast Processing & Easy Data Exploration > http://p.sf.net/sfu/hpccsystems > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...2524... Fri Jun 13 23:53:04 2014 From: gambas at ...2524... (gambas at ...2524...) Date: Fri, 13 Jun 2014 21:53:04 +0000 Subject: [Gambas-user] Issue 355 in gambas: gb.gtk still uses gtk2 In-Reply-To: <6-6813199134517018827-2755329248504962869-gambas=googlecode.com@...2524...> References: <6-6813199134517018827-2755329248504962869-gambas=googlecode.com@...2524...> <0-6813199134517018827-2755329248504962869-gambas=googlecode.com@...2524...> Message-ID: <7-6813199134517018827-2755329248504962869-gambas=googlecode.com@...2524...> Comment #7 on issue 355 by mckayger... at ...626...: gb.gtk still uses gtk2 http://code.google.com/p/gambas/issues/detail?id=355 thanks benoit for provide support for yet efficientloy gtk2+ and not only the slower and eye-candy gtk3 -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From gambas at ...2524... Fri Jun 13 23:58:37 2014 From: gambas at ...2524... (gambas at ...2524...) Date: Fri, 13 Jun 2014 21:58:37 +0000 Subject: [Gambas-user] Issue 355 in gambas: gb.gtk still uses gtk2 In-Reply-To: <7-6813199134517018827-2755329248504962869-gambas=googlecode.com@...2524...> References: <7-6813199134517018827-2755329248504962869-gambas=googlecode.com@...2524...> <0-6813199134517018827-2755329248504962869-gambas=googlecode.com@...2524...> Message-ID: <8-6813199134517018827-2755329248504962869-gambas=googlecode.com@...2524...> Comment #8 on issue 355 by mckayger... at ...626...: gb.gtk still uses gtk2 http://code.google.com/p/gambas/issues/detail?id=355 i have not noted the links to ignorant guru's blog... i make a note, today there's too many windo-like devels inside linux projects... please keep good work! -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From pata.karlsson at ...626... Sat Jun 14 07:26:46 2014 From: pata.karlsson at ...626... (Patrik Karlsson) Date: Sat, 14 Jun 2014 07:26:46 +0200 Subject: [Gambas-user] Development cycle and component vs library Message-ID: I'm working on a dice game and I'm thinking of separating "the dice part" from the game itself so I and others could reuse it, and for separation. The main reason for not doing this earlier is that I could not understand how to make the game development cycle easy in the sense that: 1. libraries have to be made executables and copied to my game project 2. components have to installed to the system. Is this correct? Is it possible to make the development cycle easier? e.g. Make changes in my dice library/component propagate automatically in to my game project? And finally, should I make it a library or a component? /Patrik From sbungay at ...3301... Sat Jun 14 13:43:24 2014 From: sbungay at ...3301... (Stephen) Date: Sat, 14 Jun 2014 07:43:24 -0400 Subject: [Gambas-user] chessboard In-Reply-To: References: <53901675.5090503@...626...> <53917772.5030704@...1...> <53917C84.20709@...626...> <53917FC2.1020702@...1...> <1402057291.3648.2.camel@...40...> <539856E3.9080506@...11...> <5398CE0E.2010908@...1823...> <539AF5A8.7020401@...3301...> Message-ID: <539C355C.8040405@...3301...> Egads I was being thick! For some reason I was expecting it to appear on the web-page... "it is here" is slightly different than "it is available here" but no excuse really... I should have clued in when I saw "Gambas Forge". Is there an English version of the site? On 06/13/2014 11:07 AM, Fabien Bodard wrote: > Le 13 juin 2014 15:05, "Stephen" a ?crit : >> All I see is a message and a smiley face waving a sign. Still not >> working? > It work for me here on chrome and firefox. > > http://www.gambasforge.org/code-113-damier.html > >> On 06/12/2014 03:52 AM, Fabien Bodard wrote: >>> This is corrected ... Thanks to adrien... I'm without internet at home >>> since three week >>> Le 11 juin 2014 23:46, "richard terry" a > ?crit : >>>> On 11/06/14 23:17, Jack wrote: >>>>> hi, >>>>> >>>>> a chessboard which is scrolling and circles emerging from a spinning >>>>> cube. And any music and scrolltext. All in Gambas? Incredible and yet > it >>>>> is here http://www.gambasforge.org/code-113-damier.html >>>>> >>>>> Jack >>>>> >>>>> >>>>> > ------------------------------------------------------------------------------ >>>>> HPCC Systems Open Source Big Data Platform from LexisNexis Risk > Solutions >>>>> Find What Matters Most in Your Big Data with HPCC Systems >>>>> Open Source. Fast. Scalable. Simple. Ideal for Dirty Data. >>>>> Leverages Graph Analysis for Fast Processing& Easy Data Exploration >>>>> http://p.sf.net/sfu/hpccsystems >>>>> _______________________________________________ >>>>> Gambas-user mailing list >>>>> Gambas-user at lists.sourceforge.net >>>>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>>>> >>>> Une erreur est survenue >>>> >>>> Un probl?me a ?t? recontr? lors de la g?n?ration de cette page. >>>> Veuillez contacter un administrateur en lui communiquant les >>>> informations de d?bogage suivantes. >>>> >>>> >>>> Informations de d?bogage >>>> >>>> *Cannot open database: Can't conneAb* >>>> /? Main.DBSubmitAnalytics.416/ >>>> >>>> * Main.DBSubmitAnalytics.416 >>>> * Main.SubmitAnalytics.404 >>>> * Main.Main.30 >>>> >>>> >>>> > ------------------------------------------------------------------------------ >>>> HPCC Systems Open Source Big Data Platform from LexisNexis Risk > Solutions >>>> Find What Matters Most in Your Big Data with HPCC Systems >>>> Open Source. Fast. Scalable. Simple. Ideal for Dirty Data. >>>> Leverages Graph Analysis for Fast Processing& Easy Data Exploration >>>> http://p.sf.net/sfu/hpccsystems >>>> _______________________________________________ >>>> Gambas-user mailing list >>>> Gambas-user at lists.sourceforge.net >>>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>>> > ------------------------------------------------------------------------------ >>> HPCC Systems Open Source Big Data Platform from LexisNexis Risk > Solutions >>> Find What Matters Most in Your Big Data with HPCC Systems >>> Open Source. Fast. Scalable. Simple. Ideal for Dirty Data. >>> Leverages Graph Analysis for Fast Processing& Easy Data Exploration >>> http://p.sf.net/sfu/hpccsystems >>> _______________________________________________ >>> Gambas-user mailing list >>> Gambas-user at lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/gambas-user >> >> -- >> Kindest Regards >> Stephen A. Bungay, Prop. >> Smarts On Site >> >> >> > ------------------------------------------------------------------------------ >> HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions >> Find What Matters Most in Your Big Data with HPCC Systems >> Open Source. Fast. Scalable. Simple. Ideal for Dirty Data. >> Leverages Graph Analysis for Fast Processing& Easy Data Exploration >> http://p.sf.net/sfu/hpccsystems >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user > ------------------------------------------------------------------------------ > HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions > Find What Matters Most in Your Big Data with HPCC Systems > Open Source. Fast. Scalable. Simple. Ideal for Dirty Data. > Leverages Graph Analysis for Fast Processing& Easy Data Exploration > http://p.sf.net/sfu/hpccsystems > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -- Kindest Regards Stephen A. Bungay, Prop. Smarts On Site From pata.karlsson at ...626... Sat Jun 14 20:17:48 2014 From: pata.karlsson at ...626... (Patrik Karlsson) Date: Sat, 14 Jun 2014 20:17:48 +0200 Subject: [Gambas-user] Feature request IDE: Make the origin of the DEBUG line code act as a hyper link Message-ID: I would like to be able to (ctrl) click the Class.Function.Line in the Debug output in order to navigate to its source. *CScoreGrid.HoverRow.337*: 0 12 *CRoller.PictureBox_MouseUp.171*: It does not have to look like a link, as long as it acts like one. /Patrik From jussi.lahtinen at ...626... Sat Jun 14 22:33:22 2014 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Sat, 14 Jun 2014 23:33:22 +0300 Subject: [Gambas-user] Feature request IDE: Make the origin of the DEBUG line code act as a hyper link In-Reply-To: References: Message-ID: Excellent idea! Jussi On Sat, Jun 14, 2014 at 9:17 PM, Patrik Karlsson wrote: > I would like to be able to (ctrl) click the Class.Function.Line in the > Debug output in order to navigate to its source. > > *CScoreGrid.HoverRow.337*: 0 12 > *CRoller.PictureBox_MouseUp.171*: > > It does not have to look like a link, as long as it acts like one. > > /Patrik > > ------------------------------------------------------------------------------ > HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions > Find What Matters Most in Your Big Data with HPCC Systems > Open Source. Fast. Scalable. Simple. Ideal for Dirty Data. > Leverages Graph Analysis for Fast Processing & Easy Data Exploration > http://p.sf.net/sfu/hpccsystems > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From sbungay at ...3301... Sat Jun 14 23:12:22 2014 From: sbungay at ...3301... (Stephen) Date: Sat, 14 Jun 2014 17:12:22 -0400 Subject: [Gambas-user] Fwd: Feature request: IDE In-Reply-To: References: <53917541.2070605@...1...> <539745A7.60101@...1...> <539B42D8.60007@...3139...> Message-ID: <539CBAB6.4050409@...3301...> I use [Ctrl]+[x] & [Ctrl]+[v] all the time too, Just highlight the line... [home] and then [Shift]+[End] followed by [Ctrl]+[x] or [Ctrl]+[v], more keystrokes, but less chance of accidentsmaking a mistake. On 06/13/2014 04:39 PM, Jussi Lahtinen wrote: > Maybe it could be optional feature? Just set is "off" by default. > > > Jussi > > > On Fri, Jun 13, 2014 at 9:28 PM, Tom wrote: > >> On 6/13/2014 11:35 AM, Patrik Karlsson wrote: >>> 5. CTRL X cuts current row if nothing is selected 6. CTRL C copies >>>>> current row if nothing is selected >>>>> >>> I find that confusing, so no. >>> >> I would like that. CTRL X and CTRL C do that on other IDE's I have used. >> I >> used CTRL X all of the time... >> >> >> ------------------------------------------------------------------------------ >> HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions >> Find What Matters Most in Your Big Data with HPCC Systems >> Open Source. Fast. Scalable. Simple. Ideal for Dirty Data. >> Leverages Graph Analysis for Fast Processing& Easy Data Exploration >> http://p.sf.net/sfu/hpccsystems >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > ------------------------------------------------------------------------------ > HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions > Find What Matters Most in Your Big Data with HPCC Systems > Open Source. Fast. Scalable. Simple. Ideal for Dirty Data. > Leverages Graph Analysis for Fast Processing& Easy Data Exploration > http://p.sf.net/sfu/hpccsystems > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Kindest Regards Stephen A. Bungay, Prop. Smarts On Site From bbruen at ...2308... Sun Jun 15 01:06:47 2014 From: bbruen at ...2308... (B Bruen) Date: Sun, 15 Jun 2014 08:36:47 +0930 Subject: [Gambas-user] Development cycle and component vs library In-Reply-To: References: Message-ID: <20140615083647.0d5d8df4bc88d2d7c4dac018@...2308...> Inline On Sat, 14 Jun 2014 07:26:46 +0200 Patrik Karlsson wrote: > I'm working on a dice game and I'm thinking of separating "the dice part" > from the game itself so I and others could reuse it, and for separation. > > The main reason for not doing this earlier is that I could not understand > how to make the game development cycle easy in the sense that: > 1. libraries have to be made executables and copied to my game project Yes, but there is an alternative to "copy". Make an executable of the library in its development project, lets call it "pkdice". Then create a symbolic link in your game project directory to that executable (pkdice.gambas in the library source project). Then every time you compile pkdice, the game will be using the latest version of the library. > 2. components have to installed to the system. Yes. As a matter of fact libraries can also be installed to the system. For that matter, at the end of the development cycle you will also want to install the game to the system (Unless you always want to run the game from it's development project?). So consider your development cycle and check that it includes a "deploy" step. Making and installing libraries, components and programs is actually very easy in Gambas, using the Project|Make|Installation Package route. We have found that the autotools packager works best for us, allowing installation across many different distros. Also, understanding it will help you to understand the distro specific installs. So I suggest you start with autotoools. Once the package is built, it can be installed with the normal .config/make/make install cycle. > > Is this correct? > Is it possible to make the development cycle easier? e.g. Make changes in > my dice library/component propagate automatically in to my game project? > > And finally, should I make it a library or a component? In short, initially as a library. From the help: "Gambas components are shared libraries written in C, C++ or directly in gambas that add new classes to the gambas interpreter. They are shared between all Gambas programs running on your system, and can be seen as part of the language." and "Gambas libraries are Gambas executables that can be used by a project almost exactly like a component." This is a bit hard to understand and I'm probably only about 90% correct here, but. There is actually very little difference and the differences are fairly unimportant to a new gambas developer. Suffice to say, until you understand that help above, libraries are the way to go. > > /Patrik hth Bruce -- B Bruen From tom at ...3139... Sun Jun 15 02:02:03 2014 From: tom at ...3139... (Tom) Date: Sat, 14 Jun 2014 20:02:03 -0400 Subject: [Gambas-user] Fwd: Feature request: IDE In-Reply-To: <539CBAB6.4050409@...3301...> References: <53917541.2070605@...1...> <539745A7.60101@...1...> <539B42D8.60007@...3139...> <539CBAB6.4050409@...3301...> Message-ID: <539CE27B.2060600@...3139...> It was never a problem for me. If I accidently did CTRL-X, you just do CTRL-V and the line is restored. It just does tis when nothing is selected. If something is selected, it works normal, just like you described. On 6/14/2014 5:12 PM, Stephen wrote: > I use [Ctrl]+[x] & [Ctrl]+[v] all the time too, Just highlight the > line... [home] and then [Shift]+[End] followed by [Ctrl]+[x] or > [Ctrl]+[v], more keystrokes, but less chance of accidentsmaking a mistake. > > On 06/13/2014 04:39 PM, Jussi Lahtinen wrote: >> Maybe it could be optional feature? Just set is "off" by default. >> >> >> Jussi >> >> >> On Fri, Jun 13, 2014 at 9:28 PM, Tom wrote: >> >>> On 6/13/2014 11:35 AM, Patrik Karlsson wrote: >>>> 5. CTRL X cuts current row if nothing is selected 6. CTRL C copies >>>>>> current row if nothing is selected >>>>>> >>>> I find that confusing, so no. Not sure why, it works the same as always if you don't use it. >>>> >>> I would like that. CTRL X and CTRL C do that on other IDE's I have used. >>> I used CTRL X all of the time... >>> >>> From shanep1967 at ...169... Sun Jun 15 05:58:12 2014 From: shanep1967 at ...169... (Shane) Date: Sun, 15 Jun 2014 13:58:12 +1000 Subject: [Gambas-user] SDL Feature Hide Cursor Message-ID: <539D19D4.2000403@...169...> Could we please have the ability in SDL to hide and show the cursor? thanks Shane. From pata.karlsson at ...626... Sun Jun 15 08:25:41 2014 From: pata.karlsson at ...626... (Patrik Karlsson) Date: Sun, 15 Jun 2014 08:25:41 +0200 Subject: [Gambas-user] Development cycle and component vs library In-Reply-To: <20140615083647.0d5d8df4bc88d2d7c4dac018@...2308...> References: <20140615083647.0d5d8df4bc88d2d7c4dac018@...2308...> Message-ID: 2014-06-15 1:06 GMT+02:00 B Bruen : > On Sat, 14 Jun 2014 07:26:46 +0200 > Patrik Karlsson wrote: > > > I'm working on a dice game and I'm thinking of separating "the dice part" > > from the game itself so I and others could reuse it, and for separation. > > > > The main reason for not doing this earlier is that I could not understand > > how to make the game development cycle easy in the sense that: > > 1. libraries have to be made executables and copied to my game project > Yes, but there is an alternative to "copy". Make an executable of the > library in its development project, lets call it "pkdice". Then create a > symbolic link in your game project directory to that executable > (pkdice.gambas in the library source project). Then every time you compile > pkdice, the game will be using the latest version of the library. > > 2. components have to installed to the system. > Yes. As a matter of fact libraries can also be installed to the system. > For that matter, at the end of the development cycle you will also want to > install the game to the system (Unless you always want to run the game from > it's development project?). So consider your development cycle and check > that it includes a "deploy" step. > > Making and installing libraries, components and programs is actually very > easy in Gambas, using the Project|Make|Installation Package route. We have > found that the autotools packager works best for us, allowing installation > across many different distros. Also, understanding it will help you to > understand the distro specific installs. So I suggest you start with > autotoools. Once the package is built, it can be installed with the normal > .config/make/make install cycle. > > > > Is this correct? > > Is it possible to make the development cycle easier? e.g. Make changes in > > my dice library/component propagate automatically in to my game project? > > > > And finally, should I make it a library or a component? > In short, initially as a library. From the help: > "Gambas components are shared libraries written in C, C++ or > directly in gambas that add new classes to the gambas interpreter. > They are shared between all Gambas programs running on your > system, and can be seen as part of the language." > and > "Gambas libraries are Gambas executables that can be used by a > project almost exactly like a component." > This is a bit hard to understand and I'm probably only about 90% correct > here, but. There is actually very little difference and the differences > are fairly unimportant to a new gambas developer. Suffice to say, until > you understand that help above, libraries are the way to go. > > > > > > /Patrik > > hth > Bruce > > -- > B Bruen > It helped, thanks! Now I can easily make changes to my library and instantly test it in my app. After reading your answer I did some testing and found that adding a library to a project is a IDE thing only, I still have to deploy and install the library in order for my installed app to use it. As an alternative to sym linking I found ExecPath in .project allows me to build it directly to my "game project" that uses the library in question. When having two or more apps using the library, sym links is the best way to go. /Patrik From kevinfishburne at ...1887... Sun Jun 15 08:39:00 2014 From: kevinfishburne at ...1887... (Kevin Fishburne) Date: Sun, 15 Jun 2014 02:39:00 -0400 Subject: [Gambas-user] gb.sdl.sound Channels.Count is 8 instead of 32 Message-ID: <539D3F84.7040506@...1887...> The documentation says sdl.sound is capable of 32 channels with an additional channel for music, however when I check Channels.Count it reports 8 instead of 32. Playback of effects seems to confirm this limitation. Is there a way to set the maximum number of channels to something higher than 8, or is this a bug? I'm using Kubuntu 14.04 with the daily build from the PPA. -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sales at ...1887... phone: (770) 853-6271 From bill-lancaster at ...2231... Sun Jun 15 10:26:55 2014 From: bill-lancaster at ...2231... (bill-lancaster) Date: Sun, 15 Jun 2014 01:26:55 -0700 (PDT) Subject: [Gambas-user] Help needed with installing Gambas 3.5.35 Message-ID: <1402820815422-46994.post@...3046...> This is what I have done so far:- 1 Download latest gambas version 2 In terminal CD to install directory 3 run ./reconf-all 4 run ./configure -C so far everything seems OK 5 run make - two error reported. Hers is the result:- make all-recursive make[1]: Entering directory `/home/bill/GambasFolder/GambasSource/gambas3-3.5.3' Making all in main make[2]: Entering directory `/home/bill/GambasFolder/GambasSource/gambas3-3.5.3/main' make all-recursive make[3]: Entering directory `/home/bill/GambasFolder/GambasSource/gambas3-3.5.3/main' Making all in gbc make[4]: Entering directory `/home/bill/GambasFolder/GambasSource/gambas3-3.5.3/main/gbc' CC gbc3-gbc.o CCLD gbc3 CC gba3-gba.o CCLD gba3 CC gbi3-gbi.o CCLD gbi3 make[4]: Leaving directory `/home/bill/GambasFolder/GambasSource/gambas3-3.5.3/main/gbc' Making all in gbx make[4]: Entering directory `/home/bill/GambasFolder/GambasSource/gambas3-3.5.3/main/gbx' CC gbx3-gbx.o CCLD gbx3 make[4]: Leaving directory `/home/bill/GambasFolder/GambasSource/gambas3-3.5.3/main/gbx' Making all in lib make[4]: Entering directory `/home/bill/GambasFolder/GambasSource/gambas3-3.5.3/main/lib' Making all in . make[5]: Entering directory `/home/bill/GambasFolder/GambasSource/gambas3-3.5.3/main/lib' make[5]: Nothing to be done for `all-am'. make[5]: Leaving directory `/home/bill/GambasFolder/GambasSource/gambas3-3.5.3/main/lib' Making all in debug make[5]: Entering directory `/home/bill/GambasFolder/GambasSource/gambas3-3.5.3/main/lib/debug' make[5]: Nothing to be done for `all'. make[5]: Leaving directory `/home/bill/GambasFolder/GambasSource/gambas3-3.5.3/main/lib/debug' Making all in eval make[5]: Entering directory `/home/bill/GambasFolder/GambasSource/gambas3-3.5.3/main/lib/eval' make[5]: Nothing to be done for `all'. make[5]: Leaving directory `/home/bill/GambasFolder/GambasSource/gambas3-3.5.3/main/lib/eval' Making all in db make[5]: Entering directory `/home/bill/GambasFolder/GambasSource/gambas3-3.5.3/main/lib/db' make[5]: Nothing to be done for `all'. make[5]: Leaving directory `/home/bill/GambasFolder/GambasSource/gambas3-3.5.3/main/lib/db' Making all in compress make[5]: Entering directory `/home/bill/GambasFolder/GambasSource/gambas3-3.5.3/main/lib/compress' make[5]: Nothing to be done for `all'. make[5]: Leaving directory `/home/bill/GambasFolder/GambasSource/gambas3-3.5.3/main/lib/compress' Making all in vb make[5]: Entering directory `/home/bill/GambasFolder/GambasSource/gambas3-3.5.3/main/lib/vb' make[5]: Nothing to be done for `all'. make[5]: Leaving directory `/home/bill/GambasFolder/GambasSource/gambas3-3.5.3/main/lib/vb' Making all in option make[5]: Entering directory `/home/bill/GambasFolder/GambasSource/gambas3-3.5.3/main/lib/option' make[5]: Nothing to be done for `all'. make[5]: Leaving directory `/home/bill/GambasFolder/GambasSource/gambas3-3.5.3/main/lib/option' Making all in geom make[5]: Entering directory `/home/bill/GambasFolder/GambasSource/gambas3-3.5.3/main/lib/geom' make[5]: Nothing to be done for `all'. make[5]: Leaving directory `/home/bill/GambasFolder/GambasSource/gambas3-3.5.3/main/lib/geom' Making all in draw make[5]: Entering directory `/home/bill/GambasFolder/GambasSource/gambas3-3.5.3/main/lib/draw' make[5]: Nothing to be done for `all'. make[5]: Leaving directory `/home/bill/GambasFolder/GambasSource/gambas3-3.5.3/main/lib/draw' Making all in image make[5]: Entering directory `/home/bill/GambasFolder/GambasSource/gambas3-3.5.3/main/lib/image' make[5]: Nothing to be done for `all'. make[5]: Leaving directory `/home/bill/GambasFolder/GambasSource/gambas3-3.5.3/main/lib/image' Making all in gui make[5]: Entering directory `/home/bill/GambasFolder/GambasSource/gambas3-3.5.3/main/lib/gui' make[5]: Nothing to be done for `all'. make[5]: Leaving directory `/home/bill/GambasFolder/GambasSource/gambas3-3.5.3/main/lib/gui' Making all in gui.opengl make[5]: Entering directory `/home/bill/GambasFolder/GambasSource/gambas3-3.5.3/main/lib/gui.opengl' make[5]: Nothing to be done for `all'. make[5]: Leaving directory `/home/bill/GambasFolder/GambasSource/gambas3-3.5.3/main/lib/gui.opengl' Making all in image.effect make[5]: Entering directory `/home/bill/GambasFolder/GambasSource/gambas3-3.5.3/main/lib/image.effect' CXX gb_image_effect_la-main.lo ../../libtool: line 1128: g++: command not found make[5]: *** [gb_image_effect_la-main.lo] Error 1 make[5]: Leaving directory `/home/bill/GambasFolder/GambasSource/gambas3-3.5.3/main/lib/image.effect' make[4]: *** [all-recursive] Error 1 make[4]: Leaving directory `/home/bill/GambasFolder/GambasSource/gambas3-3.5.3/main/lib' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/home/bill/GambasFolder/GambasSource/gambas3-3.5.3/main' make[2]: *** [all] Error 2 make[2]: Leaving directory `/home/bill/GambasFolder/GambasSource/gambas3-3.5.3/main' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/bill/GambasFolder/GambasSource/gambas3-3.5.3' make: *** [all] Error 2 Any help would be much appreciated. -- View this message in context: http://gambas.8142.n7.nabble.com/Help-needed-with-installing-Gambas-3-5-35-tp46994.html Sent from the gambas-user mailing list archive at Nabble.com. From taboege at ...626... Sun Jun 15 11:35:57 2014 From: taboege at ...626... (Tobias Boege) Date: Sun, 15 Jun 2014 11:35:57 +0200 Subject: [Gambas-user] Help needed with installing Gambas 3.5.35 In-Reply-To: <1402820815422-46994.post@...3046...> References: <1402820815422-46994.post@...3046...> Message-ID: <20140615093556.GA522@...2774...> On Sun, 15 Jun 2014, bill-lancaster wrote: > This is what I have done so far:- > 1 Download latest gambas version > 2 In terminal CD to install directory > 3 run ./reconf-all > 4 run ./configure -C > so far everything seems OK > 5 run make - two error reported. Hers is the result:- > [...] > `/home/bill/GambasFolder/GambasSource/gambas3-3.5.3/main/lib/image.effect' > CXX gb_image_effect_la-main.lo > ../../libtool: line 1128: g++: command not found > make[5]: *** [gb_image_effect_la-main.lo] Error 1 > [...] > Indicates that there is no C++ compiler found on your system. Do you have g++ installed in a location that is covered by your PATH? Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From bill-lancaster at ...2231... Sun Jun 15 11:48:12 2014 From: bill-lancaster at ...2231... (bill-lancaster) Date: Sun, 15 Jun 2014 02:48:12 -0700 (PDT) Subject: [Gambas-user] Help needed with installing Gambas 3.5.35 In-Reply-To: <20140615093556.GA522@...2774...> References: <1402820815422-46994.post@...3046...> <20140615093556.GA522@...2774...> Message-ID: <1402825692530-46996.post@...3046...> Ah! This is a fresh install of Kubuntu 14.04 I don't know anything about g++ but will look into it. Thanks for the reply -- View this message in context: http://gambas.8142.n7.nabble.com/Help-needed-with-installing-Gambas-3-5-35-tp46994p46996.html Sent from the gambas-user mailing list archive at Nabble.com. From gambas.fr at ...626... Sun Jun 15 13:07:39 2014 From: gambas.fr at ...626... (Fabien Bodard) Date: Sun, 15 Jun 2014 13:07:39 +0200 Subject: [Gambas-user] chessboard In-Reply-To: <539C355C.8040405@...3301...> References: <53901675.5090503@...626...> <53917772.5030704@...1...> <53917C84.20709@...626...> <53917FC2.1020702@...1...> <1402057291.3648.2.camel@...40...> <539856E3.9080506@...11...> <5398CE0E.2010908@...1823...> <539AF5A8.7020401@...3301...> <539C355C.8040405@...3301...> Message-ID: Le 14 juin 2014 13:49, "Stephen" a ?crit : > > Egads I was being thick! For some reason I was expecting it to appear > on the web-page... "it is here" is slightly different than "it is > available here" but no excuse really... I should have clued in when I > saw "Gambas Forge". Is there an English version of the site? It's on the old Todo list > > On 06/13/2014 11:07 AM, Fabien Bodard wrote: > > Le 13 juin 2014 15:05, "Stephen" a ?crit : > >> All I see is a message and a smiley face waving a sign. Still not > >> working? > > It work for me here on chrome and firefox. > > > > http://www.gambasforge.org/code-113-damier.html > > > >> On 06/12/2014 03:52 AM, Fabien Bodard wrote: > >>> This is corrected ... Thanks to adrien... I'm without internet at home > >>> since three week > >>> Le 11 juin 2014 23:46, "richard terry" a > > ?crit : > >>>> On 11/06/14 23:17, Jack wrote: > >>>>> hi, > >>>>> > >>>>> a chessboard which is scrolling and circles emerging from a spinning > >>>>> cube. And any music and scrolltext. All in Gambas? Incredible and yet > > it > >>>>> is here http://www.gambasforge.org/code-113-damier.html > >>>>> > >>>>> Jack > >>>>> > >>>>> > >>>>> > > ------------------------------------------------------------------------------ > >>>>> HPCC Systems Open Source Big Data Platform from LexisNexis Risk > > Solutions > >>>>> Find What Matters Most in Your Big Data with HPCC Systems > >>>>> Open Source. Fast. Scalable. Simple. Ideal for Dirty Data. > >>>>> Leverages Graph Analysis for Fast Processing& Easy Data Exploration > >>>>> http://p.sf.net/sfu/hpccsystems > >>>>> _______________________________________________ > >>>>> Gambas-user mailing list > >>>>> Gambas-user at lists.sourceforge.net > >>>>> https://lists.sourceforge.net/lists/listinfo/gambas-user > >>>>> > >>>> Une erreur est survenue > >>>> > >>>> Un probl?me a ?t? recontr? lors de la g?n?ration de cette page. > >>>> Veuillez contacter un administrateur en lui communiquant les > >>>> informations de d?bogage suivantes. > >>>> > >>>> > >>>> Informations de d?bogage > >>>> > >>>> *Cannot open database: Can't conneAb* > >>>> /? Main.DBSubmitAnalytics.416/ > >>>> > >>>> * Main.DBSubmitAnalytics.416 > >>>> * Main.SubmitAnalytics.404 > >>>> * Main.Main.30 > >>>> > >>>> > >>>> > > ------------------------------------------------------------------------------ > >>>> HPCC Systems Open Source Big Data Platform from LexisNexis Risk > > Solutions > >>>> Find What Matters Most in Your Big Data with HPCC Systems > >>>> Open Source. Fast. Scalable. Simple. Ideal for Dirty Data. > >>>> Leverages Graph Analysis for Fast Processing& Easy Data Exploration > >>>> http://p.sf.net/sfu/hpccsystems > >>>> _______________________________________________ > >>>> Gambas-user mailing list > >>>> Gambas-user at lists.sourceforge.net > >>>> https://lists.sourceforge.net/lists/listinfo/gambas-user > >>>> > > ------------------------------------------------------------------------------ > >>> HPCC Systems Open Source Big Data Platform from LexisNexis Risk > > Solutions > >>> Find What Matters Most in Your Big Data with HPCC Systems > >>> Open Source. Fast. Scalable. Simple. Ideal for Dirty Data. > >>> Leverages Graph Analysis for Fast Processing& Easy Data Exploration > >>> http://p.sf.net/sfu/hpccsystems > >>> _______________________________________________ > >>> Gambas-user mailing list > >>> Gambas-user at lists.sourceforge.net > >>> https://lists.sourceforge.net/lists/listinfo/gambas-user > >> > >> -- > >> Kindest Regards > >> Stephen A. Bungay, Prop. > >> Smarts On Site > >> > >> > >> > > ------------------------------------------------------------------------------ > >> HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions > >> Find What Matters Most in Your Big Data with HPCC Systems > >> Open Source. Fast. Scalable. Simple. Ideal for Dirty Data. > >> Leverages Graph Analysis for Fast Processing& Easy Data Exploration > >> http://p.sf.net/sfu/hpccsystems > >> _______________________________________________ > >> Gambas-user mailing list > >> Gambas-user at lists.sourceforge.net > >> https://lists.sourceforge.net/lists/listinfo/gambas-user > > ------------------------------------------------------------------------------ > > HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions > > Find What Matters Most in Your Big Data with HPCC Systems > > Open Source. Fast. Scalable. Simple. Ideal for Dirty Data. > > Leverages Graph Analysis for Fast Processing& Easy Data Exploration > > http://p.sf.net/sfu/hpccsystems > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > -- > Kindest Regards > Stephen A. Bungay, Prop. > Smarts On Site > > > ------------------------------------------------------------------------------ > HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions > Find What Matters Most in Your Big Data with HPCC Systems > Open Source. Fast. Scalable. Simple. Ideal for Dirty Data. > Leverages Graph Analysis for Fast Processing & Easy Data Exploration > http://p.sf.net/sfu/hpccsystems > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From ea7dfh at ...2382... Sun Jun 15 12:56:30 2014 From: ea7dfh at ...2382... (Jesus) Date: Sun, 15 Jun 2014 12:56:30 +0200 Subject: [Gambas-user] Help needed with installing Gambas 3.5.35 In-Reply-To: <1402825692530-46996.post@...3046...> References: <1402820815422-46994.post@...3046...> <20140615093556.GA522@...2774...> <1402825692530-46996.post@...3046...> Message-ID: <539D7BDE.5060602@...2382...> El 15/06/14 11:48, bill-lancaster escribi?: > Ah! This is a fresh install of Kubuntu 14.04 > I don't know anything about g++ but will look into it. > Thanks for the reply Bill, please, check this page in the first place, if you don't want to run into some problems. http://gambaswiki.org/wiki/install/ubuntu#t6 Compilation process is straightforward only if you know the previous requirements. Regards -- Jesus Guardon From bagoneo at ...69... Sun Jun 15 13:39:27 2014 From: bagoneo at ...69... (gian) Date: Sun, 15 Jun 2014 13:39:27 +0200 Subject: [Gambas-user] Help needed with installing Gambas 3.5.35 In-Reply-To: <539D7BDE.5060602@...2382...> References: <1402820815422-46994.post@...3046...> <20140615093556.GA522@...2774...> <1402825692530-46996.post@...3046...> <539D7BDE.5060602@...2382...> Message-ID: <539D85EF.3070403@...69...> Hello Bill, I have recently installed Gambas3 (trunk version) in Ubuntu 14:04, and I reported here all the steps: http://www.gambas-it.org/smf/index.php?topic=3403.msg32830#msg32830 Maybe it could help gianluigi Il 15/06/2014 12:56, Jesus ha scritto: > El 15/06/14 11:48, bill-lancaster escribi?: >> Ah! This is a fresh install of Kubuntu 14.04 >> I don't know anything about g++ but will look into it. >> Thanks for the reply > Bill, please, check this page in the first place, if you don't want to > run into some problems. > > http://gambaswiki.org/wiki/install/ubuntu#t6 > > Compilation process is straightforward only if you know the previous > requirements. > > Regards > From gambas at ...1... Sun Jun 15 13:58:27 2014 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Sun, 15 Jun 2014 13:58:27 +0200 Subject: [Gambas-user] SDL Feature Hide Cursor In-Reply-To: <539D19D4.2000403@...169...> References: <539D19D4.2000403@...169...> Message-ID: <539D8A63.80705@...1...> Le 15/06/2014 05:58, Shane a ?crit : > Could we please have the ability in SDL to hide and show the cursor? > > thanks Shane. > Done in revision #6318. Mouse.Hide() hides the cursor. Mouse.Show() shows the cursor. Or use the Mouse.Visible property. Regards, -- Beno?t Minisini From gambas at ...1... Sun Jun 15 13:59:51 2014 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Sun, 15 Jun 2014 13:59:51 +0200 Subject: [Gambas-user] gb.sdl.sound Channels.Count is 8 instead of 32 In-Reply-To: <539D3F84.7040506@...1887...> References: <539D3F84.7040506@...1887...> Message-ID: <539D8AB7.5020407@...1...> Le 15/06/2014 08:39, Kevin Fishburne a ?crit : > The documentation says sdl.sound is capable of 32 channels with an > additional channel for music, however when I check Channels.Count it > reports 8 instead of 32. > > Playback of effects seems to confirm this limitation. Is there a way to > set the maximum number of channels to something higher than 8, or is > this a bug? I'm using Kubuntu 14.04 with the daily build from the PPA. > Set the Channels.Count property to the value you want. 32 is just the maximum value. Regards, -- Beno?t Minisini From introlinux at ...626... Sun Jun 15 14:02:03 2014 From: introlinux at ...626... (=?UTF-8?Q?Antonio_S=C3=A1nchez?=) Date: Sun, 15 Jun 2014 14:02:03 +0200 Subject: [Gambas-user] Patch with non text files? Message-ID: Hi, is there any way to create a patch in Gambas in a project where you have added new non text files as images or sounds? Thanks. From taboege at ...626... Sun Jun 15 14:16:22 2014 From: taboege at ...626... (Tobias Boege) Date: Sun, 15 Jun 2014 14:16:22 +0200 Subject: [Gambas-user] Patch with non text files? In-Reply-To: References: Message-ID: <20140615121622.GC522@...2774...> On Sun, 15 Jun 2014, Antonio S??nchez wrote: > Hi, is there any way to create a patch in Gambas in a project where you > have added new non text files as images or sounds? > There is no difference between text and non-text files as far as it concerns the programs "diff" and "patch" which are used by the IDE for patching. It just happens that the IDE tests for the patch to be a text file. We have to blame Benoit for that behaviour ;-) $ svn blame FPatch.class | grep -B1 -A2 look 5835 gambas If Not Project.IsTextFile(Dialog.Path) Then 5835 gambas Message.Warning(("That file does not look like a patch file!")) 5835 gambas Return 5835 gambas Endif I'll fix it in one of the next revisions. Benoit, if there is a reason you added this code, please tell me and feel free to revert my commit. However, the commit message for #5835 doesn't say anything about it. Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From gambas at ...1... Sun Jun 15 14:42:09 2014 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Sun, 15 Jun 2014 14:42:09 +0200 Subject: [Gambas-user] Patch with non text files? In-Reply-To: <20140615121622.GC522@...2774...> References: <20140615121622.GC522@...2774...> Message-ID: <539D94A1.8090400@...1...> Le 15/06/2014 14:16, Tobias Boege a ?crit : > On Sun, 15 Jun 2014, Antonio S??nchez wrote: >> Hi, is there any way to create a patch in Gambas in a project where you >> have added new non text files as images or sounds? >> > > There is no difference between text and non-text files as far as it concerns > the programs "diff" and "patch" which are used by the IDE for patching. It > just happens that the IDE tests for the patch to be a text file. We have to > blame Benoit for that behaviour ;-) > > $ svn blame FPatch.class | grep -B1 -A2 look > 5835 gambas If Not Project.IsTextFile(Dialog.Path) Then > 5835 gambas Message.Warning(("That file does not look like a patch file!")) > 5835 gambas Return > 5835 gambas Endif > > I'll fix it in one of the next revisions. > > Benoit, if there is a reason you added this code, please tell me and feel > free to revert my commit. However, the commit message for #5835 doesn't say > anything about it. > > Regards, > Tobi > I think I added that just to prevent the user to choose a file by mistake. I don't know what "patch" will do with a random file, and so I wanted to prevent it from transforming the project into garbage. So if you have a way to detect if a file is actually a patch or not, I suggest you create a Project.IsPatchFile() and use it in the test. Regards, -- Beno?t Minisini From gambas at ...1... Sun Jun 15 14:46:32 2014 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Sun, 15 Jun 2014 14:46:32 +0200 Subject: [Gambas-user] Feature request IDE: Make the origin of the DEBUG line code act as a hyper link In-Reply-To: References: Message-ID: <539D95A8.5030703@...1...> Le 14/06/2014 22:33, Jussi Lahtinen a ?crit : > Excellent idea! > > > Jussi > > Done in revision #6320. At the moment, the feature is not optional, but it will be. I'm just waiting from people's tests before. Regards, -- Beno?t Minisini From taboege at ...626... Sun Jun 15 15:18:47 2014 From: taboege at ...626... (Tobias Boege) Date: Sun, 15 Jun 2014 15:18:47 +0200 Subject: [Gambas-user] Patch with non text files? In-Reply-To: <539D94A1.8090400@...1...> References: <20140615121622.GC522@...2774...> <539D94A1.8090400@...1...> Message-ID: <20140615131846.GD522@...2774...> On Sun, 15 Jun 2014, Beno?t Minisini wrote: > Le 15/06/2014 14:16, Tobias Boege a ?crit : > > On Sun, 15 Jun 2014, Antonio S??nchez wrote: > >> Hi, is there any way to create a patch in Gambas in a project where you > >> have added new non text files as images or sounds? > >> > > > > There is no difference between text and non-text files as far as it concerns > > the programs "diff" and "patch" which are used by the IDE for patching. It > > just happens that the IDE tests for the patch to be a text file. We have to > > blame Benoit for that behaviour ;-) > > > > $ svn blame FPatch.class | grep -B1 -A2 look > > 5835 gambas If Not Project.IsTextFile(Dialog.Path) Then > > 5835 gambas Message.Warning(("That file does not look like a patch file!")) > > 5835 gambas Return > > 5835 gambas Endif > > > > I'll fix it in one of the next revisions. > > > > Benoit, if there is a reason you added this code, please tell me and feel > > free to revert my commit. However, the commit message for #5835 doesn't say > > anything about it. > > > > Regards, > > Tobi > > > > I think I added that just to prevent the user to choose a file by > mistake. I don't know what "patch" will do with a random file, and so I > wanted to prevent it from transforming the project into garbage. > > So if you have a way to detect if a file is actually a patch or not, I > suggest you create a Project.IsPatchFile() and use it in the test. > Done. It looks for the first four bytes to be "diff" because apparently GNU diff outputs the command line it was invoked with into the patch file. I have looked through the diff manual but haven't found any mention of this behaviour. They just list it in example files. I'm tempted to take the presence of this header line as granted until someone reports this as a bug because the line is missing on their system... In worst case, the patch is just rejected by the IDE, so no danger here. Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From pata.karlsson at ...626... Sun Jun 15 15:40:44 2014 From: pata.karlsson at ...626... (Patrik Karlsson) Date: Sun, 15 Jun 2014 15:40:44 +0200 Subject: [Gambas-user] Feature request IDE: Make the origin of the DEBUG line code act as a hyper link In-Reply-To: <539D95A8.5030703@...1...> References: <539D95A8.5030703@...1...> Message-ID: 2014-06-15 14:46 GMT+02:00 Beno?t Minisini : > Le 14/06/2014 22:33, Jussi Lahtinen a ?crit : > > Excellent idea! > > > > > > Jussi > > > > > > Done in revision #6320. > > At the moment, the feature is not optional, but it will be. I'm just > waiting from people's tests before. > > Regards, > > -- > Beno?t Minisini > > Thank you for making the Gambas experience more and more enjoyable. From sbungay at ...3301... Sun Jun 15 18:34:34 2014 From: sbungay at ...3301... (Stephen) Date: Sun, 15 Jun 2014 12:34:34 -0400 Subject: [Gambas-user] Fwd: Feature request: IDE In-Reply-To: <539CE27B.2060600@...3139...> References: <53917541.2070605@...1...> <539745A7.60101@...1...> <539B42D8.60007@...3139...> <539CBAB6.4050409@...3301...> <539CE27B.2060600@...3139...> Message-ID: <539DCB1A.2050005@...3301...> The point is that only selected items get operated on, I suppose it's a preferences thing, as long as it can be configured (and the configuration option is not buried in some obscure location). On 06/14/2014 08:02 PM, Tom wrote: > It was never a problem for me. If I accidently did CTRL-X, you just do CTRL-V > and the line is restored. It just does tis when nothing is selected. If > something is selected, it works normal, just like you described. > > On 6/14/2014 5:12 PM, Stephen wrote: >> I use [Ctrl]+[x]& [Ctrl]+[v] all the time too, Just highlight the >> line... [home] and then [Shift]+[End] followed by [Ctrl]+[x] or >> [Ctrl]+[v], more keystrokes, but less chance of accidentsmaking a mistake. >> >> On 06/13/2014 04:39 PM, Jussi Lahtinen wrote: >>> Maybe it could be optional feature? Just set is "off" by default. >>> >>> >>> Jussi >>> >>> >>> On Fri, Jun 13, 2014 at 9:28 PM, Tom wrote: >>> >>>> On 6/13/2014 11:35 AM, Patrik Karlsson wrote: >>>>> 5. CTRL X cuts current row if nothing is selected 6. CTRL C copies >>>>>>> current row if nothing is selected >>>>>>> >>>>> I find that confusing, so no. > Not sure why, it works the same as always if you don't use it. >>>> I would like that. CTRL X and CTRL C do that on other IDE's I have used. >>>> I used CTRL X all of the time... >>>> >>>> > > ------------------------------------------------------------------------------ > HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions > Find What Matters Most in Your Big Data with HPCC Systems > Open Source. Fast. Scalable. Simple. Ideal for Dirty Data. > Leverages Graph Analysis for Fast Processing& Easy Data Exploration > http://p.sf.net/sfu/hpccsystems > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Kindest Regards Stephen A. Bungay, Prop. Smarts On Site From sbungay at ...3301... Sun Jun 15 18:35:49 2014 From: sbungay at ...3301... (Stephen) Date: Sun, 15 Jun 2014 12:35:49 -0400 Subject: [Gambas-user] chessboard In-Reply-To: References: <53901675.5090503@...626...> <53917772.5030704@...1...> <53917C84.20709@...626...> <53917FC2.1020702@...1...> <1402057291.3648.2.camel@...40...> <539856E3.9080506@...11...> <5398CE0E.2010908@...1823...> <539AF5A8.7020401@...3301...> <539C355C.8040405@...3301...> Message-ID: <539DCB65.6030203@...3301...> On 06/15/2014 07:07 AM, Fabien Bodard wrote: > Le 14 juin 2014 13:49, "Stephen" a ?crit : >> Egads I was being thick! For some reason I was expecting it to appear >> on the web-page... "it is here" is slightly different than "it is >> available here" but no excuse really... I should have clued in when I >> saw "Gambas Forge". Is there an English version of the site? > It's on the old Todo list > Oh, THAT list... I have one of those too :/ >> On 06/13/2014 11:07 AM, Fabien Bodard wrote: >>> Le 13 juin 2014 15:05, "Stephen" a ?crit : >>>> All I see is a message and a smiley face waving a sign. Still not >>>> working? >>> It work for me here on chrome and firefox. >>> >>> http://www.gambasforge.org/code-113-damier.html >>> >>>> On 06/12/2014 03:52 AM, Fabien Bodard wrote: >>>>> This is corrected ... Thanks to adrien... I'm without internet at home >>>>> since three week >>>>> Le 11 juin 2014 23:46, "richard terry" a >>> ?crit : >>>>>> On 11/06/14 23:17, Jack wrote: >>>>>>> hi, >>>>>>> >>>>>>> a chessboard which is scrolling and circles emerging from a spinning >>>>>>> cube. And any music and scrolltext. All in Gambas? Incredible and > yet >>> it >>>>>>> is here http://www.gambasforge.org/code-113-damier.html >>>>>>> >>>>>>> Jack >>>>>>> >>>>>>> >>>>>>> > ------------------------------------------------------------------------------ >>>>>>> HPCC Systems Open Source Big Data Platform from LexisNexis Risk >>> Solutions >>>>>>> Find What Matters Most in Your Big Data with HPCC Systems >>>>>>> Open Source. Fast. Scalable. Simple. Ideal for Dirty Data. >>>>>>> Leverages Graph Analysis for Fast Processing& Easy Data > Exploration >>>>>>> http://p.sf.net/sfu/hpccsystems >>>>>>> _______________________________________________ >>>>>>> Gambas-user mailing list >>>>>>> Gambas-user at lists.sourceforge.net >>>>>>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>>>>>> >>>>>> Une erreur est survenue >>>>>> >>>>>> Un probl?me a ?t? recontr? lors de la g?n?ration de cette page. >>>>>> Veuillez contacter un administrateur en lui communiquant les >>>>>> informations de d?bogage suivantes. >>>>>> >>>>>> >>>>>> Informations de d?bogage >>>>>> >>>>>> *Cannot open database: Can't conneAb* >>>>>> /? Main.DBSubmitAnalytics.416/ >>>>>> >>>>>> * Main.DBSubmitAnalytics.416 >>>>>> * Main.SubmitAnalytics.404 >>>>>> * Main.Main.30 >>>>>> >>>>>> >>>>>> > ------------------------------------------------------------------------------ >>>>>> HPCC Systems Open Source Big Data Platform from LexisNexis Risk >>> Solutions >>>>>> Find What Matters Most in Your Big Data with HPCC Systems >>>>>> Open Source. Fast. Scalable. Simple. Ideal for Dirty Data. >>>>>> Leverages Graph Analysis for Fast Processing& Easy Data Exploration >>>>>> http://p.sf.net/sfu/hpccsystems >>>>>> _______________________________________________ >>>>>> Gambas-user mailing list >>>>>> Gambas-user at lists.sourceforge.net >>>>>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>>>>> > ------------------------------------------------------------------------------ >>>>> HPCC Systems Open Source Big Data Platform from LexisNexis Risk >>> Solutions >>>>> Find What Matters Most in Your Big Data with HPCC Systems >>>>> Open Source. Fast. Scalable. Simple. Ideal for Dirty Data. >>>>> Leverages Graph Analysis for Fast Processing& Easy Data Exploration >>>>> http://p.sf.net/sfu/hpccsystems >>>>> _______________________________________________ >>>>> Gambas-user mailing list >>>>> Gambas-user at lists.sourceforge.net >>>>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>>> -- >>>> Kindest Regards >>>> Stephen A. Bungay, Prop. >>>> Smarts On Site >>>> >>>> >>>> > ------------------------------------------------------------------------------ >>>> HPCC Systems Open Source Big Data Platform from LexisNexis Risk > Solutions >>>> Find What Matters Most in Your Big Data with HPCC Systems >>>> Open Source. Fast. Scalable. Simple. Ideal for Dirty Data. >>>> Leverages Graph Analysis for Fast Processing& Easy Data Exploration >>>> http://p.sf.net/sfu/hpccsystems >>>> _______________________________________________ >>>> Gambas-user mailing list >>>> Gambas-user at lists.sourceforge.net >>>> https://lists.sourceforge.net/lists/listinfo/gambas-user > ------------------------------------------------------------------------------ >>> HPCC Systems Open Source Big Data Platform from LexisNexis Risk > Solutions >>> Find What Matters Most in Your Big Data with HPCC Systems >>> Open Source. Fast. Scalable. Simple. Ideal for Dirty Data. >>> Leverages Graph Analysis for Fast Processing& Easy Data Exploration >>> http://p.sf.net/sfu/hpccsystems >>> _______________________________________________ >>> Gambas-user mailing list >>> Gambas-user at lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/gambas-user >> >> -- >> Kindest Regards >> Stephen A. Bungay, Prop. >> Smarts On Site >> >> >> > ------------------------------------------------------------------------------ >> HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions >> Find What Matters Most in Your Big Data with HPCC Systems >> Open Source. Fast. Scalable. Simple. Ideal for Dirty Data. >> Leverages Graph Analysis for Fast Processing& Easy Data Exploration >> http://p.sf.net/sfu/hpccsystems >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user > ------------------------------------------------------------------------------ > HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions > Find What Matters Most in Your Big Data with HPCC Systems > Open Source. Fast. Scalable. Simple. Ideal for Dirty Data. > Leverages Graph Analysis for Fast Processing& Easy Data Exploration > http://p.sf.net/sfu/hpccsystems > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -- Kindest Regards Stephen A. Bungay, Prop. Smarts On Site From gambas.fr at ...626... Sun Jun 15 21:01:45 2014 From: gambas.fr at ...626... (Fabien Bodard) Date: Sun, 15 Jun 2014 21:01:45 +0200 Subject: [Gambas-user] chessboard In-Reply-To: <539DCB65.6030203@...3301...> References: <53901675.5090503@...626...> <53917772.5030704@...1...> <53917C84.20709@...626...> <53917FC2.1020702@...1...> <1402057291.3648.2.camel@...40...> <539856E3.9080506@...11...> <5398CE0E.2010908@...1823...> <539AF5A8.7020401@...3301...> <539C355C.8040405@...3301...> <539DCB65.6030203@...3301...> Message-ID: >> It's on the old Todo list >> >Oh, THAT list... I have one of those too :/ yes we all have it From bbruen at ...2308... Mon Jun 16 00:15:42 2014 From: bbruen at ...2308... (B Bruen) Date: Mon, 16 Jun 2014 07:45:42 +0930 Subject: [Gambas-user] Feature request IDE: Make the origin of the DEBUG line code act as a hyper link In-Reply-To: References: <539D95A8.5030703@...1...> Message-ID: <20140616074542.cc7b1a75140bd6dd343eea5d@...2308...> hmmm. IDE crashes on rollover. -- B Bruen -------------- next part -------------- A non-text attachment was scrubbed... Name: shot.png Type: image/png Size: 251687 bytes Desc: not available URL: From bbruen at ...2308... Mon Jun 16 00:52:22 2014 From: bbruen at ...2308... (B Bruen) Date: Mon, 16 Jun 2014 08:22:22 +0930 Subject: [Gambas-user] IDE Feature Request Message-ID: <20140616082222.fda1c22e2b429a50e47c080d@...2308...> ( Don't see why I shouldn't join in :-) ) Would it be possible to lock source files the same as for forms? This would prevent me from changing the wrong class in a set of very similar classes. Oh,and while you're there - the reload button on the form toolbar seems to unlock a locked form! regards Bruce -- B Bruen From shanep1967 at ...169... Mon Jun 16 08:45:21 2014 From: shanep1967 at ...169... (Shane) Date: Mon, 16 Jun 2014 16:45:21 +1000 Subject: [Gambas-user] SDL Feature Hide Cursor In-Reply-To: <539D8A63.80705@...1...> References: <539D19D4.2000403@...169...> <539D8A63.80705@...1...> Message-ID: <539E9281.80304@...169...> Thanks Benoit On 15/06/14 21:58, Beno?t Minisini wrote: > Le 15/06/2014 05:58, Shane a ?crit : >> Could we please have the ability in SDL to hide and show the cursor? >> >> thanks Shane. >> > Done in revision #6318. > > Mouse.Hide() hides the cursor. > Mouse.Show() shows the cursor. > > Or use the Mouse.Visible property. > > Regards, > From bbruen at ...2308... Mon Jun 16 11:29:17 2014 From: bbruen at ...2308... (B Bruen) Date: Mon, 16 Jun 2014 18:59:17 +0930 Subject: [Gambas-user] Feature request IDE: Make the origin of the DEBUG line code act as a hyper link In-Reply-To: <20140616074542.cc7b1a75140bd6dd343eea5d@...2308...> References: <539D95A8.5030703@...1...> <20140616074542.cc7b1a75140bd6dd343eea5d@...2308...> Message-ID: <20140616185917.a6bc1a65972af4a2da4fd3cc@...2308...> On Mon, 16 Jun 2014 07:45:42 +0930 B Bruen wrote: > hmmm. > > IDE crashes on rollover. > > Seems to happen only if Debug is used, Print and Error dont crash. LXDE? -- B Bruen From bbruen at ...2308... Mon Jun 16 11:50:50 2014 From: bbruen at ...2308... (B Bruen) Date: Mon, 16 Jun 2014 19:20:50 +0930 Subject: [Gambas-user] Totally lost on this one Message-ID: <20140616192050.f9de65be20c19f125e66a68b@...2308...> ---------------------------------------- ERR: Cannot load class 'HtmlDocument': Unable to load class file (2) FHelpView.Run.78 FSearch.mnuHelpBrowser_Click.166 ------------------------------------ FHelpView.Run.78 is: Me.ShowModal FHelpView.Run is: Public Sub Run(helppath As String) '' Main access point. Allows use of the browser from other programs $helppath = helppath ' &/ "help" $conn = New Connection With $conn .Type = "sqlite" .Host = $helppath .Name = "helpbase" End With If Not $conn.Opened Then $conn.Open If Not $conn.Opened Then <------- total overkill but I am getting desperate here Debug $conn.Host Debug $conn.Name Debug $conn.Type Endif Debug "About to run" Me.ShowModal <----------- LINE 78 Debug "How do we get here" Catch Error Subst("&1\nERR: &2 (&3)\n&4\n&1\n", String$(40, "-"), Error.Text, Error.Code, Error.Backtrace.Join("\n")) End WTF is HtmlDocument???? AFAIK _I_ have never written such a class. So who or where is it. -- B Bruen From gambas.fr at ...626... Mon Jun 16 15:18:15 2014 From: gambas.fr at ...626... (Fabien Bodard) Date: Mon, 16 Jun 2014 15:18:15 +0200 Subject: [Gambas-user] Totally lost on this one In-Reply-To: <20140616192050.f9de65be20c19f125e66a68b@...2308...> References: <20140616192050.f9de65be20c19f125e66a68b@...2308...> Message-ID: Htmldocument is a class from gb.xml.html to work on html page in Dom mode. Le 16 juin 2014 11:51, "B Bruen" a ?crit : > ---------------------------------------- > ERR: Cannot load class 'HtmlDocument': Unable to load class file (2) > FHelpView.Run.78 > FSearch.mnuHelpBrowser_Click.166 > ------------------------------------ > > FHelpView.Run.78 is: > > Me.ShowModal > > FHelpView.Run is: > Public Sub Run(helppath As String) '' Main > access point. Allows use of the browser from other programs > > $helppath = helppath ' &/ "help" > > $conn = New Connection > With $conn > .Type = "sqlite" > .Host = $helppath > .Name = "helpbase" > End With > If Not $conn.Opened Then $conn.Open > > If Not $conn.Opened Then <------- total overkill but I am getting > desperate here > Debug $conn.Host > Debug $conn.Name > Debug $conn.Type > Endif > > Debug "About to run" > Me.ShowModal <----------- LINE 78 > Debug "How do we get here" > > Catch > Error Subst("&1\nERR: &2 (&3)\n&4\n&1\n", String$(40, "-"), > Error.Text, Error.Code, Error.Backtrace.Join("\n")) > > End > > > WTF is HtmlDocument???? > AFAIK _I_ have never written such a class. So who or where is it. > > -- > B Bruen > > > ------------------------------------------------------------------------------ > HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions > Find What Matters Most in Your Big Data with HPCC Systems > Open Source. Fast. Scalable. Simple. Ideal for Dirty Data. > Leverages Graph Analysis for Fast Processing & Easy Data Exploration > http://p.sf.net/sfu/hpccsystems > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From shanep1967 at ...169... Mon Jun 16 15:25:58 2014 From: shanep1967 at ...169... (Shane) Date: Mon, 16 Jun 2014 23:25:58 +1000 Subject: [Gambas-user] sdl mouse Message-ID: <539EF066.8050209@...169...> hi benoit would it be possible to include the ability to keep the mouse within the bounds of the sdl window thanks Shane From jussi.lahtinen at ...626... Mon Jun 16 17:14:29 2014 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Mon, 16 Jun 2014 18:14:29 +0300 Subject: [Gambas-user] Feature request IDE: Make the origin of the DEBUG line code act as a hyper link In-Reply-To: <20140616185917.a6bc1a65972af4a2da4fd3cc@...2308...> References: <539D95A8.5030703@...1...> <20140616074542.cc7b1a75140bd6dd343eea5d@...2308...> <20140616185917.a6bc1a65972af4a2da4fd3cc@...2308...> Message-ID: Happens also with XFCE. Jussi On Mon, Jun 16, 2014 at 12:29 PM, B Bruen wrote: > On Mon, 16 Jun 2014 07:45:42 +0930 > B Bruen wrote: > > > hmmm. > > > > IDE crashes on rollover. > > > > > Seems to happen only if Debug is used, Print and Error dont crash. > LXDE? > > -- > B Bruen > > > ------------------------------------------------------------------------------ > HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions > Find What Matters Most in Your Big Data with HPCC Systems > Open Source. Fast. Scalable. Simple. Ideal for Dirty Data. > Leverages Graph Analysis for Fast Processing & Easy Data Exploration > http://p.sf.net/sfu/hpccsystems > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Mon Jun 16 17:29:02 2014 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Mon, 16 Jun 2014 17:29:02 +0200 Subject: [Gambas-user] Feature request IDE: Make the origin of the DEBUG line code act as a hyper link In-Reply-To: References: <539D95A8.5030703@...1...> <20140616074542.cc7b1a75140bd6dd343eea5d@...2308...> <20140616185917.a6bc1a65972af4a2da4fd3cc@...2308...> Message-ID: <539F0D3E.50005@...1...> Le 16/06/2014 17:14, Jussi Lahtinen a ?crit : > Happens also with XFCE. > > > Jussi > Not all the code has been committed. This should be fixed in revision #6323. Regards, -- Beno?t Minisini From gambas at ...1... Mon Jun 16 17:36:43 2014 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Mon, 16 Jun 2014 17:36:43 +0200 Subject: [Gambas-user] IDE Feature Request In-Reply-To: <20140616082222.fda1c22e2b429a50e47c080d@...2308...> References: <20140616082222.fda1c22e2b429a50e47c080d@...2308...> Message-ID: <539F0F0B.5010804@...1...> Le 16/06/2014 00:52, B Bruen a ?crit : > ( Don't see why I shouldn't join in :-) ) > > Would it be possible to lock source files the same as for forms? This > would prevent me from changing the wrong class in a set of very > similar classes. > > Oh,and while you're there - the reload button on the form toolbar > seems to unlock a locked form! > > regards Bruce > I didn't know that feature was used... I will change the way it works, so that every file can be locked. I will simply use the file read authorization. Regards, -- Beno?t Minisini From rterry at ...1823... Mon Jun 16 23:40:58 2014 From: rterry at ...1823... (richard terry) Date: Tue, 17 Jun 2014 07:40:58 +1000 Subject: [Gambas-user] test - ignore Message-ID: <539F646A.4030208@...1823...> From rterry at ...1823... Mon Jun 16 23:42:42 2014 From: rterry at ...1823... (richard terry) Date: Tue, 17 Jun 2014 07:42:42 +1000 Subject: [Gambas-user] Probably a dumb listcontainer question Message-ID: <539F64D2.9030501@...1823...> Hi List, Second try, not sure my first message got through as I didn't receive it 1) How come the documentation says you should populate the listcontainer with read-only controls when it doesn't seem to matter, eg. I had occasion to want to have a list type of control contain small forms with some labels/textbox for data entry (don't ask why....) and easy to add, change the data, save etc from each row in the control. 2) There seems no no way to remove a control from the list container, which one can from a listbox using the index. ?? any help/explanation appreciated richard From bbruen at ...2308... Mon Jun 16 23:48:21 2014 From: bbruen at ...2308... (B Bruen) Date: Tue, 17 Jun 2014 07:18:21 +0930 Subject: [Gambas-user] Totally lost on this one In-Reply-To: References: <20140616192050.f9de65be20c19f125e66a68b@...2308...> Message-ID: <20140617071821.f68767a6849e1c33fe5d78dc@...2308...> On Mon, 16 Jun 2014 15:18:15 +0200 Fabien Bodard wrote: > Htmldocument is a class from gb.xml.html to work on html page in Dom mode. > Aha, a missing requires in a library. Thanks Fabien. -- B Bruen From vuott at ...325... Tue Jun 17 01:27:42 2014 From: vuott at ...325... (Ru Vuott) Date: Tue, 17 Jun 2014 00:27:42 +0100 Subject: [Gambas-user] "The program received an X Window System error"... and more problems Message-ID: <1402961262.76207.YahooMailBasic@...3269...> Hello, well, I have this code to run a extern program from a Terminal: **************************************** Public Sub Button1_Click() ' Opens the Terminal: Desktop.OpenTerminal End Public Sub Button2_Click() Dim c As Integer[] ' Finds the ID of Terminal window before open: c = Desktop.FindWindow("Terminal") ' Gives the "Focus" to Terminal window: Desktop.ActiveWindow = c[c.Max] ' Runs "Gedit" program: Desktop.SendKeys("{gedit\n}") End ********************************************* I have some problems: 1) If I activate only "gb.desktop", but not also "gb.desktop.x11", I obtain an error at line: c = Desktop.FindWindow("Terminal"): " cannot load class x11: Unable to load class file " My question: ok, but why does "gb.desktop" component have the function ".FindWindow()" ? 2) Well, so I activate also I run my program, and press Button1: In console I obtain this notice: "(gnome-terminal:21625): GLib-GIO-CRITICAL **: g_settings_get: the format string may not contain '&' (key 'monospace-font-name' from schema 'org.gnome.desktop.interface'). This call will probably stop working with a future version of glib." My question: What's that ? 3) By pressing Button1, a Terminal window open. Well, so I press Button2... but I obtain this error: " The program 'my_program' received an X Window System error. This probably reflects a bug in the program. The error was 'BadWindow (invalid Window parameter)'. (Details: serial 2363 error_code 3 request_code 20 minor_code 0) (Note to programmers: normally, X errors are reported asynchronously; that is, you will receive the error a while after causing it. To debug your program, run it with the --sync command line option to change this behavior. You can then get a meaningful backtrace from your debugger if you break on the gdk_x_error() function.) " My question: What's that ? 4) Now I repeat procedure, but I do not close last Terminal. I run my_program, press Button1: now obviously I have 2 Terminals. So, now I press Button2 and I do not receive error or notices. Gedit opens. My question: ...Why does my program runs perfect only with 2 or more Terminals ? Best regards vuottttttttt From bbruen at ...2308... Tue Jun 17 01:37:49 2014 From: bbruen at ...2308... (B Bruen) Date: Tue, 17 Jun 2014 09:07:49 +0930 Subject: [Gambas-user] Getting the "un-specialed" XMLElement.TextContent string Message-ID: <20140617090749.2661f2106de45633a82e080f@...2308...> (I'm sure I've done this before, but I can't find my prior code nor can I find it in either of the help sites.) I just want to set a string variable to the text content of an element. I am almost certain there was a way to have it automatically convert all the "special character"s, like  , <, etc etc to their "normal" representation. Is there such a function, or was I just dreaming? tia Bruce -- B Bruen From gambas at ...1... Tue Jun 17 01:48:37 2014 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Tue, 17 Jun 2014 01:48:37 +0200 Subject: [Gambas-user] "The program received an X Window System error"... and more problems In-Reply-To: <1402961262.76207.YahooMailBasic@...3269...> References: <1402961262.76207.YahooMailBasic@...3269...> Message-ID: <539F8255.9070207@...1...> Le 17/06/2014 01:27, Ru Vuott a ?crit : > Hello, > > well, I have this code to run a extern program from a Terminal: > > **************************************** > Public Sub Button1_Click() > > ' Opens the Terminal: > Desktop.OpenTerminal > > End > > > Public Sub Button2_Click() > > Dim c As Integer[] > > ' Finds the ID of Terminal window before open: > c = Desktop.FindWindow("Terminal") > > ' Gives the "Focus" to Terminal window: > Desktop.ActiveWindow = c[c.Max] > > ' Runs "Gedit" program: > Desktop.SendKeys("{gedit\n}") > > End > ********************************************* > > I have some problems: > > 1) If I activate only "gb.desktop", but not also "gb.desktop.x11", I obtain an error at line: > c = Desktop.FindWindow("Terminal"): > " cannot load class x11: Unable to load class file" > > My question: ok, but why does "gb.desktop" component have the function ".FindWindow()" ? Because it had it in Gambas 3.5. Now the bug is that Desktop.FindWindow should automatically load "gb.desktop.x11" behind the scene. And in the future, when we will get Wayland, we can imagine a gb.desktop.wayland component, and a gb.desktop component that will choose between gb.desktop.x11 and gb.desktop.wayland according to the context. But your code won't change, it will continue to call Desktop.FindWindow(). > > > 2) Well, so I activate also > I run my program, and press Button1: In console I obtain this notice: > "(gnome-terminal:21625): GLib-GIO-CRITICAL **: g_settings_get: the format string may not contain '&' (key 'monospace-font-name' from schema 'org.gnome.desktop.interface'). > This call will probably stop working with a future version of glib." > > My question: What's that ? The output console is for your running program *and* all children processes run by it. You see "gnome-terminal" at the beginning of the message? Guess what, this is the responsible. > > > 3) By pressing Button1, a Terminal window open. Well, so I press Button2... but I obtain this error: > " The program 'my_program' > received an X Window System error. > This probably reflects a bug in the program. > The error was 'BadWindow (invalid Window parameter)'. > (Details: serial 2363 error_code 3 request_code 20 minor_code 0) > (Note to programmers: normally, X errors are reported asynchronously; > that is, you will receive the error a while after causing it. > To debug your program, run it with the --sync command line > option to change this behavior. You can then get a meaningful > backtrace from your debugger if you break on the gdk_x_error() function.) " > > My question: What's that ? An X11 error message. X11 is asynchronous by default: nothing ensures that the terminal is launched when you call Desktop.FindWindow(). You must retry periodically until you find the window. > > > 4) Now I repeat procedure, but I do not close last Terminal. I run my_program, press Button1: now obviously I have 2 Terminals. > So, now I press Button2 and I do not receive error or notices. > Gedit opens. > > My question: ...Why does my program runs perfect only with 2 or more Terminals ? If you understood the previous point, you should now why. By the way, read carefully the documentation of Desktop.SendKeys(). You should not put your string beetween braces. Regards, -- Beno?t Minisini From bill-lancaster at ...2231... Tue Jun 17 08:01:32 2014 From: bill-lancaster at ...2231... (bill-lancaster) Date: Mon, 16 Jun 2014 23:01:32 -0700 (PDT) Subject: [Gambas-user] Help needed with installing Gambas 3.5.35 In-Reply-To: <539D85EF.3070403@...69...> References: <1402820815422-46994.post@...3046...> <20140615093556.GA522@...2774...> <1402825692530-46996.post@...3046...> <539D7BDE.5060602@...2382...> <539D85EF.3070403@...69...> Message-ID: <1402984892841-47027.post@...3046...> Thanks gianluigi Not speaking Italian I wasn't confident in following the instructions in the link - sorry. Thanks also Jesus-21, but still had errors. I found this link:- http://kalaharix.wordpress.com/2012/04/22/installing-gambas-3-on-ubuntu-12-04-lts-precise-pangolin/ It worked fine -- View this message in context: http://gambas.8142.n7.nabble.com/Help-needed-with-installing-Gambas-3-5-35-tp46994p47027.html Sent from the gambas-user mailing list archive at Nabble.com. From vuott at ...325... Tue Jun 17 10:13:40 2014 From: vuott at ...325... (Ru Vuott) Date: Tue, 17 Jun 2014 09:13:40 +0100 Subject: [Gambas-user] "The program received an X Window System error"... and more problems In-Reply-To: <539F8255.9070207@...1...> Message-ID: <1402992820.48189.YahooMailBasic@...3269...> Thank you for your answers, Beno?t. bye vuott -------------------------------------------- Mar 17/6/14, Beno?t Minisini ha scritto: Oggetto: Re: [Gambas-user] "The program received an X Window System error"... and more problems A: "mailing list for gambas users" Data: Marted? 17 giugno 2014, 01:48 Le 17/06/2014 01:27, Ru Vuott a ?crit : > Hello, > > well, I have this code to run a extern program from a Terminal: > > **************************************** > Public Sub Button1_Click() > > ' Opens the Terminal: >? ???Desktop.OpenTerminal > > End > > > Public Sub Button2_Click() > >???Dim c As Integer[] > > ' Finds the ID of Terminal window before open: >? ? c = Desktop.FindWindow("Terminal") > > ' Gives the "Focus" to Terminal window: >? ? Desktop.ActiveWindow = c[c.Max] > > ' Runs "Gedit" program: >? ? Desktop.SendKeys("{gedit\n}") > > End > ********************************************* > > I have some problems: > > 1) If I activate only "gb.desktop", but not also "gb.desktop.x11", I obtain an error at line: > c = Desktop.FindWindow("Terminal"): > " cannot load class x11: Unable to load class file" > > My question:? ok, but why does "gb.desktop" component have the function ".FindWindow()" ? Because it had it in Gambas 3.5. Now the bug is that Desktop.FindWindow should automatically load "gb.desktop.x11" behind the scene. And in the future, when we will get Wayland, we can imagine a gb.desktop.wayland component, and a gb.desktop component that will choose between gb.desktop.x11 and gb.desktop.wayland according to the context. But your code won't change, it will continue to call Desktop.FindWindow(). > > > 2) Well, so I activate also > I run my program, and press Button1: In console I obtain this notice: > "(gnome-terminal:21625): GLib-GIO-CRITICAL **: g_settings_get: the format string may not contain '&' (key 'monospace-font-name' from schema 'org.gnome.desktop.interface'). > This call will probably stop working with a future version of glib." > > My question:? What's that ? The output console is for your running program *and* all children processes run by it. You see "gnome-terminal" at the beginning of the message? Guess what, this is the responsible. > > > 3) By pressing Button1, a Terminal window open. Well, so I press Button2... but I obtain this error: > " The program 'my_program' > received an X Window System error. > This probably reflects a bug in the program. > The error was 'BadWindow (invalid Window parameter)'. >? ? (Details: serial 2363 error_code 3 request_code 20 minor_code 0) >? ? (Note to programmers: normally, X errors are reported asynchronously; >? ???that is, you will receive the error a while after causing it. >? ???To debug your program, run it with the --sync command line >? ???option to change this behavior. You can then get a meaningful >? ???backtrace from your debugger if you break on the gdk_x_error() function.) " > > My question:???What's that ? An X11 error message. X11 is asynchronous by default: nothing ensures that the terminal is launched when you call Desktop.FindWindow(). You must retry periodically until you find the window. > > > 4) Now I repeat procedure, but I do not close last Terminal. I run my_program, press Button1: now obviously I have 2 Terminals. > So, now I press Button2 and I do not receive error or notices. > Gedit opens. > > My question:? ...Why does my program runs perfect only with 2 or more Terminals ? If you understood the previous point, you should now why. By the way, read carefully the documentation of Desktop.SendKeys(). You should not put your string beetween braces. Regards, -- Beno?t Minisini ------------------------------------------------------------------------------ HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions Find What Matters Most in Your Big Data with HPCC Systems Open Source. Fast. Scalable. Simple. Ideal for Dirty Data. Leverages Graph Analysis for Fast Processing & Easy Data Exploration http://p.sf.net/sfu/hpccsystems _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From rterry at ...1823... Tue Jun 17 12:13:42 2014 From: rterry at ...1823... (richard terry) Date: Tue, 17 Jun 2014 20:13:42 +1000 Subject: [Gambas-user] Bug/Anomalie in IDE Message-ID: <53A014D6.3030307@...1823...> Hi List, Benoit Noticed that if I click on a line in the editor > select part of text > use the Upper Case option on the menu, then the whole line is made upper case 3.5.3 regards richard From gambas at ...1... Tue Jun 17 13:48:55 2014 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Tue, 17 Jun 2014 13:48:55 +0200 Subject: [Gambas-user] Fwd: Feature request: IDE In-Reply-To: <539B42D8.60007@...3139...> References: <53917541.2070605@...1...> <539745A7.60101@...1...> <539B42D8.60007@...3139...> Message-ID: <53A02B27.6040101@...1...> Le 13/06/2014 20:28, Tom a ?crit : > On 6/13/2014 11:35 AM, Patrik Karlsson wrote: >> 5. CTRL X cuts current row if nothing is selected 6. CTRL C copies >>>> >>>> current row if nothing is selected >>>> >> I find that confusing, so no. >> > I would like that. CTRL X and CTRL C do that on other IDE's I have used. I > used CTRL X all of the time... > "CTRL+X cuts the current line if nothing is selected" is implemented in revision #6324. Moreover, cutted lines accumulate if you stay on the same line. Regards, -- Beno?t Minisini From gambas at ...1... Tue Jun 17 13:52:27 2014 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Tue, 17 Jun 2014 13:52:27 +0200 Subject: [Gambas-user] New feature: IDE can open a single file Message-ID: <53A02BFB.1040506@...1...> Hi, In revision #6324, the IDE can open a single file without any project. It works by internally creating a fake project in a temporary directory. Moreover, if the file is a SQLite database, then a connection is automatically created and the database editor is opened. That way, you can, for example, associate the SQLite mime type with the gambas 3 executable in Dolphin, and then double-clicking on a SQLite file will automatically the Gambas IDE database editor on it. The IDE GUI tries to adapt that new mode, but this is not perfect yet. Please report problems. Regards, -- Beno?t Minisini From gambas at ...1... Wed Jun 18 02:40:12 2014 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Wed, 18 Jun 2014 02:40:12 +0200 Subject: [Gambas-user] TableView.Clear in Gambas3 In-Reply-To: <99db45f3a38e3a024a439f222a2e1668.squirrel@...3221...> References: <99db45f3a38e3a024a439f222a2e1668.squirrel@...3221...> Message-ID: <53A0DFEC.6030100@...1...> Le 13/06/2014 09:51, wig a ?crit : > I tried to search for other mention of this item, and I might be missing > something, but the Clear function seems to leave one cell "not-cleared" in > my TableView. > > Replicate: make a table, with edit and save code, fill some cells, clear > the table with TableView1.Clear > > One of the cells stays filled with the same content it had (mostly the > last one that was filled - so I tried to be sure I left the cell after > editing by doing something else on screen, like change a spinbox value). > > Version: Gambas 3.4.1 and 3.4.2, on OpenSUSE 13.1/KDE > > Demo project included (with screenshots). > > FMain : > > Public Sub _new() > TableView1.Columns.Count = 6 > TableView1.Rows.Count = 20 > End > > Public Sub TableView1_Click() > > Debug TableView1.Column > Debug TableView1.Row > > TableView1.Edit() > > End > > Public Sub Form_Open() > > End > > Public Sub Button1_Click() > > TableView1.Clear > > End > > Public Sub TableView1_Save(x As Integer, y As Integer, sText As String) > > TableView1[x, y].Text = sText > > End > Fixed in revision #6327. As a workaround, call the Cancel() method before calling Clear(). Regards, -- Beno?t Minisini From rterry at ...1823... Wed Jun 18 02:52:04 2014 From: rterry at ...1823... (richard terry) Date: Wed, 18 Jun 2014 10:52:04 +1000 Subject: [Gambas-user] TableView.Clear in Gambas3 In-Reply-To: <53A0DFEC.6030100@...1...> References: <99db45f3a38e3a024a439f222a2e1668.squirrel@...3221...> <53A0DFEC.6030100@...1...> Message-ID: <53A0E2B4.1050803@...1823...> I don't suppose whoever sent in this post originally would email me their mini-project example. I'm using the table view and can't consistantly get the tableview1_save to work - the data looks like it is in the table on the screen, but if you try and read it back to e.g save, it is inconsistanly not there. If I as the user go back to the cell in the grid and hit the key then it is, but if I'd just typed in the data then moved off the tableview to somewhere else, as I say it looks like its in the table but is not ie the save event not triggered. ?any solutions/example richard On 18/06/14 10:40, Beno?t Minisini wrote: > Le 13/06/2014 09:51, wig a ?crit : >> I tried to search for other mention of this item, and I might be missing >> something, but the Clear function seems to leave one cell "not-cleared" in >> my TableView. >> >> Replicate: make a table, with edit and save code, fill some cells, clear >> the table with TableView1.Clear >> >> One of the cells stays filled with the same content it had (mostly the >> last one that was filled - so I tried to be sure I left the cell after >> editing by doing something else on screen, like change a spinbox value). >> >> Version: Gambas 3.4.1 and 3.4.2, on OpenSUSE 13.1/KDE >> >> Demo project included (with screenshots). >> >> FMain : >> >> Public Sub _new() >> TableView1.Columns.Count = 6 >> TableView1.Rows.Count = 20 >> End >> >> Public Sub TableView1_Click() >> >> Debug TableView1.Column >> Debug TableView1.Row >> >> TableView1.Edit() >> >> End >> >> Public Sub Form_Open() >> >> End >> >> Public Sub Button1_Click() >> >> TableView1.Clear >> >> End >> >> Public Sub TableView1_Save(x As Integer, y As Integer, sText As String) >> >> TableView1[x, y].Text = sText >> >> End >> > Fixed in revision #6327. > > As a workaround, call the Cancel() method before calling Clear(). > > Regards, > From bbruen at ...2308... Wed Jun 18 04:44:59 2014 From: bbruen at ...2308... (B Bruen) Date: Wed, 18 Jun 2014 12:14:59 +0930 Subject: [Gambas-user] IDE crash Message-ID: <20140618121459.d499a2fac96993ed74bcd719@...2308...> Obscure, but annoying. Maybe LXDE only. Open a project, open a few files. Detach a tab and move it to another v-desktop. Then slide the remaining IDE tabs around. Occassionally, I get: * a silent IDE crash * a stack overflow (have not managed to catch a screenshot yet * a "grabber" mouse pointer that renders the entire desktop inactive I'll try to get some more info, but here's the basics: [System] Gambas=3.5.90 OperatingSystem=Linux Kernel=3.12.18-pclos2 Architecture=x86 Distribution=PCLinuxOS Desktop=LXDE Theme=QWindows Language=en_AU.UTF-8 Memory=1008M [Libraries] Cairo=libcairo.so.2.11200.16 Curl=libcurl.so.3.0.0 Curl=libcurl.so.4.3.0 DBus=libdbus-1.so.3.7.4 GStreamer=libgstreamer-0.10.so.0.30.0 GStreamer=libgstreamer-1.0.so.0.204.0 GTK+3=libgtk-3.so.0.1200.2 GTK+=libgtk-x11-2.0.so.0.2400.22 GTK+=libgtk-x11-2.0.so.0.600.10 OpenGL=libGL.so.1.2.0 OpenGL=libGL.so.173.14.39 OpenGL=libGL.so.96.43.23 Poppler=libpoppler.so.13.0.0 Poppler=libpoppler.so.19.0.0 Qt4=libQtCore.so.4.8.5 SDL=libSDL-1.2.so.0.11.3 [bb at ...40... ~]$ gbx3 -V 3.5.90 r6327 [bb at ...40... ~]$ seems (?) to especially occur if the detached tab is graphical, like a form or an image file regards Bruce -- B Bruen From bbruen at ...2308... Wed Jun 18 04:50:16 2014 From: bbruen at ...2308... (B Bruen) Date: Wed, 18 Jun 2014 12:20:16 +0930 Subject: [Gambas-user] IDE crash In-Reply-To: <20140618121459.d499a2fac96993ed74bcd719@...2308...> References: <20140618121459.d499a2fac96993ed74bcd719@...2308...> Message-ID: <20140618122016.00d2d2667766df92fb7b8492@...2308...> Got one: This application has raised an unexpected error and must abort. [3] Stack overflow _TabPanelButton.UpdateLayout.205 b On Wed, 18 Jun 2014 12:14:59 +0930 B Bruen wrote: > Obscure, but annoying. > > Maybe LXDE only. > > Open a project, open a few files. > Detach a tab and move it to another v-desktop. > Then slide the remaining IDE tabs around. > > Occassionally, I get: > * a silent IDE crash > * a stack overflow (have not managed to catch a screenshot yet > * a "grabber" mouse pointer that renders the entire desktop inactive > > I'll try to get some more info, but here's the basics: > [System] > Gambas=3.5.90 > OperatingSystem=Linux > Kernel=3.12.18-pclos2 > Architecture=x86 > Distribution=PCLinuxOS > Desktop=LXDE > Theme=QWindows > Language=en_AU.UTF-8 > Memory=1008M > [Libraries] > Cairo=libcairo.so.2.11200.16 > Curl=libcurl.so.3.0.0 > Curl=libcurl.so.4.3.0 > DBus=libdbus-1.so.3.7.4 > GStreamer=libgstreamer-0.10.so.0.30.0 > GStreamer=libgstreamer-1.0.so.0.204.0 > GTK+3=libgtk-3.so.0.1200.2 > GTK+=libgtk-x11-2.0.so.0.2400.22 > GTK+=libgtk-x11-2.0.so.0.600.10 > OpenGL=libGL.so.1.2.0 > OpenGL=libGL.so.173.14.39 > OpenGL=libGL.so.96.43.23 > Poppler=libpoppler.so.13.0.0 > Poppler=libpoppler.so.19.0.0 > Qt4=libQtCore.so.4.8.5 > SDL=libSDL-1.2.so.0.11.3 > > [bb at ...40... ~]$ gbx3 -V > 3.5.90 r6327 > [bb at ...40... ~]$ > > seems (?) to especially occur if the detached tab is graphical, like a form or an image file > > regards > Bruce > -- > B Bruen > > ------------------------------------------------------------------------------ > HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions > Find What Matters Most in Your Big Data with HPCC Systems > Open Source. Fast. Scalable. Simple. Ideal for Dirty Data. > Leverages Graph Analysis for Fast Processing & Easy Data Exploration > http://p.sf.net/sfu/hpccsystems > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -- B Bruen From bbruen at ...2308... Wed Jun 18 04:54:51 2014 From: bbruen at ...2308... (B Bruen) Date: Wed, 18 Jun 2014 12:24:51 +0930 Subject: [Gambas-user] IDE crash In-Reply-To: <20140618121459.d499a2fac96993ed74bcd719@...2308...> References: <20140618121459.d499a2fac96993ed74bcd719@...2308...> Message-ID: <20140618122451.d1dc01be11ad7cc772f6490d@...2308...> On Wed, 18 Jun 2014 12:14:59 +0930 B Bruen wrote: > Obscure, but annoying. > > Maybe LXDE only. > > Open a project, open a few files. > Detach a tab and move it to another v-desktop. > Then slide the remaining IDE tabs around. > > Occassionally, I get: > * a silent IDE crash > * a stack overflow (have not managed to catch a screenshot yet > * a "grabber" mouse pointer that renders the entire desktop inactive > > I'll try to get some more info, but here's the basics: > [System] > Gambas=3.5.90 > OperatingSystem=Linux > Kernel=3.12.18-pclos2 > Architecture=x86 > Distribution=PCLinuxOS > Desktop=LXDE > Theme=QWindows > Language=en_AU.UTF-8 > Memory=1008M > [Libraries] > Cairo=libcairo.so.2.11200.16 > Curl=libcurl.so.3.0.0 > Curl=libcurl.so.4.3.0 > DBus=libdbus-1.so.3.7.4 > GStreamer=libgstreamer-0.10.so.0.30.0 > GStreamer=libgstreamer-1.0.so.0.204.0 > GTK+3=libgtk-3.so.0.1200.2 > GTK+=libgtk-x11-2.0.so.0.2400.22 > GTK+=libgtk-x11-2.0.so.0.600.10 > OpenGL=libGL.so.1.2.0 > OpenGL=libGL.so.173.14.39 > OpenGL=libGL.so.96.43.23 > Poppler=libpoppler.so.13.0.0 > Poppler=libpoppler.so.19.0.0 > Qt4=libQtCore.so.4.8.5 > SDL=libSDL-1.2.so.0.11.3 > > [bb at ...40... ~]$ gbx3 -V > 3.5.90 r6327 > [bb at ...40... ~]$ > > seems (?) to especially occur if the detached tab is graphical, like a form or an image file > > regards > Bruce > -- > B Bruen > > ------------------------------------------------------------------------------ > HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions > Find What Matters Most in Your Big Data with HPCC Systems > Open Source. Fast. Scalable. Simple. Ideal for Dirty Data. > Leverages Graph Analysis for Fast Processing & Easy Data Exploration > http://p.sf.net/sfu/hpccsystems > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -- B Bruen -------------- next part -------------- A non-text attachment was scrubbed... Name: shot.png Type: image/png Size: 203502 bytes Desc: not available URL: From t.lee.davidson at ...626... Wed Jun 18 05:18:10 2014 From: t.lee.davidson at ...626... (T Lee Davidson) Date: Tue, 17 Jun 2014 23:18:10 -0400 Subject: [Gambas-user] TableView.Clear in Gambas3 In-Reply-To: <53A0E2B4.1050803@...1823...> References: <99db45f3a38e3a024a439f222a2e1668.squirrel@...3221...> <53A0DFEC.6030100@...1...> <53A0E2B4.1050803@...1823...> Message-ID: <53A104F2.7020607@...626...> I don't know if this addresses your issue, as I am unsure when you are talking about the Tableview Save *method* or the Save *event*. I never did figure out the Save method. When I called the Save method in a Save event handler (thinking that's what I needed to do), I created an infinite loop and my application crashed. So I just used this: Public Sub TableView1_Save(Row As Integer, Column As Integer, Value As String) TableView1[Row, Column].Text = Value End And if I needed to refresh the view, I used this: Private Sub RefreshTableView() TableView1.Clear 'If not cleared, displayed data will not be correct after Refresh TableView1.Refresh End There are also two different keys. There is the key on the keypad. But the one in the alpha section of the keyboard is actually a key. In my current version of Gambas (3.4), they behave differently, though I believe this has been fixed in a later release. HTH, T. Lee On 06/17/2014 08:52 PM, richard terry wrote: > I don't suppose whoever sent in this post originally would email me > their mini-project example. > > I'm using the table view and can't consistantly get the tableview1_save > to work - the data looks like it is in the table on the screen, but if > you try and read it back to e.g save, it is inconsistanly not there. If > I as the user go back to the cell in the grid and hit the key > then it is, but if I'd just typed in the data then moved off the > tableview to somewhere else, as I say it looks like its in the table but > is not ie the save event not triggered. ?any solutions/example > > richard > > On 18/06/14 10:40, Beno?t Minisini wrote: >> Le 13/06/2014 09:51, wig a ?crit : >>> I tried to search for other mention of this item, and I might be missing >>> something, but the Clear function seems to leave one cell "not-cleared" in >>> my TableView. >>> >>> Replicate: make a table, with edit and save code, fill some cells, clear >>> the table with TableView1.Clear >>> >>> One of the cells stays filled with the same content it had (mostly the >>> last one that was filled - so I tried to be sure I left the cell after >>> editing by doing something else on screen, like change a spinbox value). >>> >>> Version: Gambas 3.4.1 and 3.4.2, on OpenSUSE 13.1/KDE >>> >>> Demo project included (with screenshots). >>> >>> FMain : >>> >>> Public Sub _new() >>> TableView1.Columns.Count = 6 >>> TableView1.Rows.Count = 20 >>> End >>> >>> Public Sub TableView1_Click() >>> >>> Debug TableView1.Column >>> Debug TableView1.Row >>> >>> TableView1.Edit() >>> >>> End >>> >>> Public Sub Form_Open() >>> >>> End >>> >>> Public Sub Button1_Click() >>> >>> TableView1.Clear >>> >>> End >>> >>> Public Sub TableView1_Save(x As Integer, y As Integer, sText As String) >>> >>> TableView1[x, y].Text = sText >>> >>> End >>> >> Fixed in revision #6327. >> >> As a workaround, call the Cancel() method before calling Clear(). >> >> Regards, >> > > > ------------------------------------------------------------------------------ > HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions > Find What Matters Most in Your Big Data with HPCC Systems > Open Source. Fast. Scalable. Simple. Ideal for Dirty Data. > Leverages Graph Analysis for Fast Processing & Easy Data Exploration > http://p.sf.net/sfu/hpccsystems > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From bbruen at ...2308... Wed Jun 18 05:52:36 2014 From: bbruen at ...2308... (B Bruen) Date: Wed, 18 Jun 2014 13:22:36 +0930 Subject: [Gambas-user] IDE crash In-Reply-To: <20140618122016.00d2d2667766df92fb7b8492@...2308...> References: <20140618121459.d499a2fac96993ed74bcd719@...2308...> <20140618122016.00d2d2667766df92fb7b8492@...2308...> Message-ID: <20140618132236.74a8054b74fa7621184731aa@...2308...> OK, I'm pretty sure this only happens if a tab is detached. I've been sliding tabs around for up to 30 open files and it doesn't happen unless one of them is detached. Again, it seems to only happen if the detached tab is graphical. ??? b On Wed, 18 Jun 2014 12:20:16 +0930 B Bruen wrote: > Got one: > > This application has raised an unexpected > error and must abort. > [3] Stack overflow > _TabPanelButton.UpdateLayout.205 > > b > > On Wed, 18 Jun 2014 12:14:59 +0930 > B Bruen wrote: > > > Obscure, but annoying. > > > > Maybe LXDE only. > > > > Open a project, open a few files. > > Detach a tab and move it to another v-desktop. > > Then slide the remaining IDE tabs around. > > > > Occassionally, I get: > > * a silent IDE crash > > * a stack overflow (have not managed to catch a screenshot yet > > * a "grabber" mouse pointer that renders the entire desktop inactive > > > > I'll try to get some more info, but here's the basics: > > [System] > > Gambas=3.5.90 > > OperatingSystem=Linux > > Kernel=3.12.18-pclos2 > > Architecture=x86 > > Distribution=PCLinuxOS > > Desktop=LXDE > > Theme=QWindows > > Language=en_AU.UTF-8 > > Memory=1008M > > [Libraries] > > Cairo=libcairo.so.2.11200.16 > > Curl=libcurl.so.3.0.0 > > Curl=libcurl.so.4.3.0 > > DBus=libdbus-1.so.3.7.4 > > GStreamer=libgstreamer-0.10.so.0.30.0 > > GStreamer=libgstreamer-1.0.so.0.204.0 > > GTK+3=libgtk-3.so.0.1200.2 > > GTK+=libgtk-x11-2.0.so.0.2400.22 > > GTK+=libgtk-x11-2.0.so.0.600.10 > > OpenGL=libGL.so.1.2.0 > > OpenGL=libGL.so.173.14.39 > > OpenGL=libGL.so.96.43.23 > > Poppler=libpoppler.so.13.0.0 > > Poppler=libpoppler.so.19.0.0 > > Qt4=libQtCore.so.4.8.5 > > SDL=libSDL-1.2.so.0.11.3 > > > > [bb at ...40... ~]$ gbx3 -V > > 3.5.90 r6327 > > [bb at ...40... ~]$ > > > > seems (?) to especially occur if the detached tab is graphical, like a form or an image file > > > > regards > > Bruce > > -- > > B Bruen > > > > ------------------------------------------------------------------------------ > > HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions > > Find What Matters Most in Your Big Data with HPCC Systems > > Open Source. Fast. Scalable. Simple. Ideal for Dirty Data. > > Leverages Graph Analysis for Fast Processing & Easy Data Exploration > > http://p.sf.net/sfu/hpccsystems > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > -- > B Bruen > > ------------------------------------------------------------------------------ > HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions > Find What Matters Most in Your Big Data with HPCC Systems > Open Source. Fast. Scalable. Simple. Ideal for Dirty Data. > Leverages Graph Analysis for Fast Processing & Easy Data Exploration > http://p.sf.net/sfu/hpccsystems > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -- B Bruen From bbruen at ...2308... Wed Jun 18 06:58:17 2014 From: bbruen at ...2308... (B Bruen) Date: Wed, 18 Jun 2014 14:28:17 +0930 Subject: [Gambas-user] Why are colors not the same colors? Message-ID: <20140618142817.699059bb0241002a33984dca@...2308...> I'm (amongst other things) working on a way to "theme" our applications. I use qtconfig to investigate. If qtconfig GUI style is set to "Use desktop settings" then the following problem does not occur. But if I set to to something like Cleanlooks then there is a slight discrepancy between things. For example, say I have the qtconfig "Window Background" set to RGB(212,208,200) then the default form background gets set to RGB(212,208,200) but if I set (for example) a textbox Background property to "Background" then it seems to be lighter (see attached). Even if I set it explicitly to RGB(212,208,200) it still renders in this lighter color. This is making it extremely difficult to develop a theming component. ??? Why is it so? ??? Bruce (not happy) -- B Bruen -------------- next part -------------- A non-text attachment was scrubbed... Name: shot.png Type: image/png Size: 76548 bytes Desc: not available URL: From bbruen at ...2308... Wed Jun 18 07:27:22 2014 From: bbruen at ...2308... (B Bruen) Date: Wed, 18 Jun 2014 14:57:22 +0930 Subject: [Gambas-user] Why are colors not the same colors? In-Reply-To: <20140618142817.699059bb0241002a33984dca@...2308...> References: <20140618142817.699059bb0241002a33984dca@...2308...> Message-ID: <20140618145722.c48f5820c7d0a78ca3c81480@...2308...> Here's a more garish example. The tabview background is NOT the set/inherited color, thus the textboxes stick out like .... (insert your favourite Aussie slang here) and why is the dirview background white? -- B Bruen -------------- next part -------------- A non-text attachment was scrubbed... Name: shot.png Type: image/png Size: 214981 bytes Desc: not available URL: From wig at ...1809... Wed Jun 18 12:40:33 2014 From: wig at ...1809... (wig) Date: Wed, 18 Jun 2014 12:40:33 +0200 Subject: [Gambas-user] TableView.Clear in Gambas3 In-Reply-To: <53A0E2B4.1050803@...1823...> References: <99db45f3a38e3a024a439f222a2e1668.squirrel@...3221...> <53A0DFEC.6030100@...1...> <53A0E2B4.1050803@...1823...> Message-ID: <41b3eba791db36c3948332e189a009d0.squirrel@...3221...> B.: thanks for fixing. R: For me the table works; this is the code that concerns the table: >From the click I call TableView1.Edit, and then TableView1_Save explicitly stores the value. The other lines is just a counter in the first column. Public Sub TableView1_Click() Debug TableView1.Column Debug TableView1.Row If TableView1.Column > 0 And TableView1.Row <= iRowCounter ' grow table rows if needed If TableView1.Row = TableView1.Rows.Count - 1 Inc TableView1.Rows.Count Inc iRowCounter Endif ' repeat name of group If TableView1.Row > 0 And TableView1.Column = iColName TableView1[TableView1.Row, TableView1.Column].Text = TableView1[TableView1.Row - 1, TableView1.Column].Text Endif TableView1.Edit Endif End Public Sub TableView1_Save(Row As Integer, Column As Integer, Value As String) TableView1[Row, Column].Text = Value TableView1[Row, iColNr].Text = Row iRowCounter = Row Inc iRowCounter End Public Sub initTable() With TableView1 .Clear() .columns.Count = iColRemark + 1 .Rows.Count = 2 End With TableView1.Columns[iColNr].Text = "Pos" TableView1.Columns[iColName].Text = "GrpName" TableView1.Columns[iColKey].Text = "KeyName" TableView1.Columns[iColDescription].Text = "Description" TableView1.Columns[iColDefault].Text = "Default Val" TableView1.Columns[iColRemark].Text = "Remark" End The rest of the project also stores the table data to a file and reads it back. You can get the code in the state it is / being worked on at http://sourceforge.net/projects/garlic3/files/Tools/GbSettingsTool/Archive/ Hope that helps. Greeting, WiG > I don't suppose whoever sent in this post originally would email me > their mini-project example. > > I'm using the table view and can't consistantly get the tableview1_save > to work - the data looks like it is in the table on the screen, but if > you try and read it back to e.g save, it is inconsistanly not there. If > I as the user go back to the cell in the grid and hit the key > then it is, but if I'd just typed in the data then moved off the > tableview to somewhere else, as I say it looks like its in the table but > is not ie the save event not triggered. ?any solutions/example > > richard > > On 18/06/14 10:40, Beno?t Minisini wrote: >> Le 13/06/2014 09:51, wig a ?crit : >>> I tried to search for other mention of this item, and I might be >>> missing >>> something, but the Clear function seems to leave one cell "not-cleared" >>> in >>> my TableView. >>> >>> Replicate: make a table, with edit and save code, fill some cells, >>> clear >>> the table with TableView1.Clear >>> >>> One of the cells stays filled with the same content it had (mostly the >>> last one that was filled - so I tried to be sure I left the cell after >>> editing by doing something else on screen, like change a spinbox >>> value). >>> >>> Version: Gambas 3.4.1 and 3.4.2, on OpenSUSE 13.1/KDE >>> >>> Demo project included (with screenshots). >>> >>> FMain : >>> >>> Public Sub _new() >>> TableView1.Columns.Count = 6 >>> TableView1.Rows.Count = 20 >>> End >>> >>> Public Sub TableView1_Click() >>> >>> Debug TableView1.Column >>> Debug TableView1.Row >>> >>> TableView1.Edit() >>> >>> End >>> >>> Public Sub Form_Open() >>> >>> End >>> >>> Public Sub Button1_Click() >>> >>> TableView1.Clear >>> >>> End >>> >>> Public Sub TableView1_Save(x As Integer, y As Integer, sText As String) >>> >>> TableView1[x, y].Text = sText >>> >>> End >>> >> Fixed in revision #6327. >> >> As a workaround, call the Cancel() method before calling Clear(). >> >> Regards, >> > > > ------------------------------------------------------------------------------ > HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions > Find What Matters Most in Your Big Data with HPCC Systems > Open Source. Fast. Scalable. Simple. Ideal for Dirty Data. > Leverages Graph Analysis for Fast Processing & Easy Data Exploration > http://p.sf.net/sfu/hpccsystems > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From wig at ...1809... Wed Jun 18 15:08:23 2014 From: wig at ...1809... (wig) Date: Wed, 18 Jun 2014 15:08:23 +0200 Subject: [Gambas-user] Settings: how to get (unknown) Keys? Message-ID: How the get the (unknown keys) from a Settings file? Terminology of Keys and "Slot" for the group of keys in a settings file taken from documentation; This gives the names of the slots: Dim SettingsToImport As New Settings(User.Home &/ ".config/gambas3/gambas3.conf") Dim sKeySlot As String Dim iSlotCounter As Integer For Each sKeySlot In SettingsToImport.Keys Debug sKeySlot Inc iSlotCounter Next Debug " - - - - " & iSlotCounter Works fine, gives me all the slotnames, and the count of e.g.23: > Editor > FColorChooser > FConnectionEditor ... > gb.form.mdi/FShortcut > gb.form.mdi/FToolbarConfig > gb.form.mdi/Toolbars/main > - - - - 23 Next step; I want to have the keys themselves. But how? (assuming I do not know the keynames) Dim SettingsToImport As New Settings(User.Home &/ ".config/gambas3/gambas3.conf") Dim sKey As String Dim iKeyCounter As Integer Dim hSettingsKeys As _Settings_Keys ' what I found in gb.settings docum. For Each sKeySlot In SettingsToImport.Keys Debug sKeySlot Inc iSlotCounter hSettingsKeys = SettingsToImport.Keys[sKeySlot] ' docum says hSettings.Keys [ Parent As String ] For Each sKeySlot In hSettingsKeys Inc iKeyCounter Debug iKeyCounter & ": " & sKey Next Next Doesn't crash, doesn't freeze, but gives the output: > Editor > 1: Font > 2: KeywordsUseUpperCase > KeywordsUseUpperCase That's all, it stops. (I want to import a Settings file, not use it for my app itself; I know how to save and use settings for my app). This in Gambas 3.4.1 on OpenSuse 13.1/KDE WiG. From gambas at ...1... Wed Jun 18 16:14:18 2014 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Wed, 18 Jun 2014 16:14:18 +0200 Subject: [Gambas-user] Why are colors not the same colors? In-Reply-To: <20140618145722.c48f5820c7d0a78ca3c81480@...2308...> References: <20140618142817.699059bb0241002a33984dca@...2308...> <20140618145722.c48f5820c7d0a78ca3c81480@...2308...> Message-ID: <53A19EBA.7010508@...1...> Le 18/06/2014 07:27, B Bruen a ?crit : > Here's a more garish example. > The tabview background is NOT the set/inherited color, thus the textboxes stick out like .... (insert your favourite Aussie slang here) > and why is the dirview background white? > Because some themes do not use the standard colors, but a mix of them, or sometimes gradients. This is the case apparently for TabStrip with your theme. Just set the background color of TabStrip to Background. As for the DirView, I don't know. Changing its background color works for me, with the development version and the Oxygen theme. -- Beno?t Minisini From gambas at ...1... Wed Jun 18 16:27:49 2014 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Wed, 18 Jun 2014 16:27:49 +0200 Subject: [Gambas-user] IDE crash In-Reply-To: <20140618132236.74a8054b74fa7621184731aa@...2308...> References: <20140618121459.d499a2fac96993ed74bcd719@...2308...> <20140618122016.00d2d2667766df92fb7b8492@...2308...> <20140618132236.74a8054b74fa7621184731aa@...2308...> Message-ID: <53A1A1E5.607@...1...> Le 18/06/2014 05:52, B Bruen a ?crit : > OK, I'm pretty sure this only happens if a tab is detached. > I've been sliding tabs around for up to 30 open files and it doesn't happen unless one of them is detached. > Again, it seems to only happen if the detached tab is graphical. ??? > > This should be fixed in revision #6328. Regards, -- Beno?t Minisini From lists at ...2828... Wed Jun 18 19:20:52 2014 From: lists at ...2828... (CJ) Date: Wed, 18 Jun 2014 19:20:52 +0200 Subject: [Gambas-user] Test - please ignore! Message-ID: <000001cf8b19$af8e3710$0f00a8c0@...2829...> Have problems sending to the list... /CJ From lists at ...2828... Wed Jun 18 19:29:18 2014 From: lists at ...2828... (CJ) Date: Wed, 18 Jun 2014 19:29:18 +0200 Subject: [Gambas-user] gb.net.curl and SSL certificate Message-ID: <000001cf8b1a$d7283220$0f00a8c0@...2829...> Trying to communicate with a web server via https and the HTTPGet example but the connection fails with error -1060 also if I disable certificate authentication using... MyHTTP.SSL.VerifyHost = False MyHTTP.SSL.VerifyPeer = False Found an old discussion about this issue where Jim couldn't get it to work but thread ends there... http://sourceforge.net/p/gambas/mailman/message/31259267/ Using the debug option I get the following back (IP# and host names removed)... * About to connect() to xxx.yyyy.com port 443 (#0) * Trying 194.XX.XXX.XX... * Connected to xxx.yyyy.com (194.XX.XXX.XX) port 443 (#0) * successfully set certificate verify locations: * CAfile: none CApath: /etc/ssl/certs * SSL certificate problem, verify that the CA cert is OK. Details: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed * Closing connection #0 If I use the curl command line tool with the "--insecure option" it works as intended and I get data back from the server. Reading the libcurl doc's I see there is a option to disable it as follows and wonder if this is what "MyHTTP.SSL.VerifyPeer = False" do? curl_easy_setopt(curl, CURLOPT_SSL_VERIFYPEER, FALSE); Source: http://curl.haxx.se/libcurl/c/curl_easy_setopt.html [System] Gambas=3.5.3 OperatingSystem=Linux Kernel=3.2.0-24-generic-pae Architecture=x86 Distribution=Ubuntu 12.04 LTS Desktop=GNOME Theme=QGtk Language=en_US.UTF-8 Memory=496M [Libraries] Cairo=libcairo.so.2.11000.2 Curl=libcurl.so.4.2.0 DBus=libdbus-1.so.3.5.8 GStreamer=libgstreamer-0.10.so.0.30.0 GStreamer=libgstreamer-1.0.so.0.1.0 GTK+=libgtk-x11-2.0.so.0.2400.10 Poppler=libpoppler.so.19.0.0 Qt4=libQtCore.so.4.8.1 SDL=libSDL-1.2.so.0.11.3 /CJ From corradoventu at ...69... Wed Jun 18 20:39:24 2014 From: corradoventu at ...69... (corradoventu at ...69...) Date: Wed, 18 Jun 2014 20:39:24 +0200 (CEST) Subject: [Gambas-user] RadioButton in Frame not working Message-ID: <679069203.783891403116764227.JavaMail.defaultUser@...1910...> RadioButton in Frame not working (no longer working?) - sample project includedtanks [System] Gambas=3.5.90 OperatingSystem=Linux Kernel=3.13.0-24-generic Architecture=x86_64 Distribution=Ubuntu 14.04 LTS Desktop=GNOME Theme=QGtk Language=en_US.UTF-8 Memory=7865M [Libraries] Cairo=libcairo.so.2.11301.0 Curl=libcurl.so.4.3.0 DBus=libdbus-1.so.3.7.6 GStreamer=libgstreamer-0.10.so.0.30.0 GStreamer=libgstreamer-1.0.so.0.204.0 GTK+3=libgtk-3.so.0.1000.8 GTK+=libgtk-x11-2.0.so.0.2400.23 OpenGL=libGL.so.1.2.0 Poppler=libpoppler.so.43.0.0 Poppler=libpoppler.so.44.0.0 Qt4=libQtCore.so.4.8.6 SDL=libSDL-1.2.so.0.11.4 -------------- next part -------------- A non-text attachment was scrubbed... Name: RadioButton-0.0.1.tar.gz Type: application/gzip Size: 4843 bytes Desc: not available URL: From gambas at ...1... Thu Jun 19 08:57:34 2014 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Thu, 19 Jun 2014 08:57:34 +0200 Subject: [Gambas-user] gb.net.curl and SSL certificate In-Reply-To: <000001cf8b1a$d7283220$0f00a8c0@...2829...> References: <000001cf8b1a$d7283220$0f00a8c0@...2829...> Message-ID: <53A289DE.60206@...1...> Le 18/06/2014 19:29, CJ a ?crit : > > Trying to communicate with a web server via https and the HTTPGet example > but the > connection fails with error -1060 also if I disable certificate > authentication using... > > MyHTTP.SSL.VerifyHost = False > MyHTTP.SSL.VerifyPeer = False > ".VerifyPeer = False" is really just a call to: curl_easy_setopt(curl, CURLOPT_SSL_VERIFYPEER, FALSE); So I don't know why it does not work. I would need an "https" URL to test... Regards, -- Beno?t Minisini From gambas.fr at ...626... Thu Jun 19 10:02:42 2014 From: gambas.fr at ...626... (Fabien Bodard) Date: Thu, 19 Jun 2014 10:02:42 +0200 Subject: [Gambas-user] Report and Settings In-Reply-To: <536DF836.8090204@...626...> References: <536AA19F.6070709@...626...> <536B9AC2.8010503@...626...> <536DF836.8090204@...626...> Message-ID: Can you or someone can tel me if this problem remain in the last releases ? I've not any problems like this on svn. Thank you Fabien Le 10 mai 2014 11:59, "Roki" a ?crit : > > Hi Randall ! > > This is just a small project that will reproduce the same error that I > previously told you. This is only if you're curious about the problem, > beacouseFabien already gave the answer, we must be patient until the > problem is solved. > > Anyway thank you guys for your commitment! > > On 05/08/2014 08:54 PM, Randall Morgan wrote: > >> I've found that this error can sometimes be traced to an object property >> that has not been initialized. But there can be other reasons as well. So >> a >> simple project that can show how you initialize the components and use >> them >> and that reproduces the error would help a great deal. >> >> >> >> >> On Thu, May 8, 2014 at 9:53 AM, Jussi Lahtinen >> wrote: >> >> How that method "Preview" is defined? >>> If you cannot show more code, then can you isolate this problem in small >>> runnable project you could send to us? >>> >>> >>> Jussi >>> >>> >>> On Thu, May 8, 2014 at 5:54 PM, Roki wrote: >>> >>> First, thank Randall for rapid response. You're right, here's my >>>> explanation of the problem. >>>> >>>> I did a project to record the vehicles that are registered in our >>>> company. I use mysql database in background. From the Component tab, I >>>> checked (gb.db.mysql, gb.report and gb.settings) because I needed for my >>>> project. After all the forms and modules, I created a report of >>>> registered vehicles. I run the project to test it. But when I clicked to >>>> view a report, the program stopped, and return this error (Type >>>> mismatch: wanted integer, got Null instead in FMain:343.) >>>> >>>> Here is the code where the error appears: >>>> Public sub ToolButton3_Click() >>>> Dim rep as New repVehicle >>>> rep.Preview <<< Here returns an error (Type mismatch: wanted >>>> integer, got Null instead in FMain:343.) >>>> End >>>> >>>> After exploring the code to find the source of the error, I found >>>> nothing wrong with the code. >>>> Accidentally noticed that when uncheck gb.settings from the component >>>> tab, the review of a report, run without any problem. >>>> >>>> I hope that now I was clear enough about the problem. >>>> >>>> On 05/07/2014 11:27 PM, Randall Morgan wrote: >>>> >>>>> Can you supply your code? You don't give enough details for anyone to >>>>> >>>> be >>> >>>> able to help. >>>>> >>>>> >>>>> On Wed, May 7, 2014 at 2:11 PM, Roki wrote: >>>>> >>>>> Hello everyone, I'm new here! >>>>>> >>>>>> Here's my question!? >>>>>> >>>>>> When I add gb.settings component in my project, a report returning >>>>>> >>>>> this >>> >>>> error ("type mismatch: wanted integer, got null instead"). When I turn >>>>>> off gb.settings component, report work correctly. >>>>>> >>>>>> Is this a bug or I do something wrong? >>>>>> >>>>>> Sorry for my English, if there are some mistakes, but I think somehow >>>>>> you understand. >>>>>> >>>>>> >>>>>> >>>>>> ------------------------------------------------------------ >>> ------------------ >>> >>>> Is your legacy SCM system holding you back? Join Perforce May 7 to >>>>>> >>>>> find >>> >>>> out: >>>>>> • 3 signs your SCM is hindering your productivity >>>>>> • Requirements for releasing software faster >>>>>> • Expert tips and advice for migrating your SCM now >>>>>> http://p.sf.net/sfu/perforce >>>>>> _______________________________________________ >>>>>> Gambas-user mailing list >>>>>> Gambas-user at lists.sourceforge.net >>>>>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>>>>> >>>>>> >>>>> >>>> >>>> >>>> ------------------------------------------------------------ >>> ------------------ >>> >>>> Is your legacy SCM system holding you back? Join Perforce May 7 to find >>>> out: >>>> • 3 signs your SCM is hindering your productivity >>>> • Requirements for releasing software faster >>>> • Expert tips and advice for migrating your SCM now >>>> http://p.sf.net/sfu/perforce >>>> _______________________________________________ >>>> Gambas-user mailing list >>>> Gambas-user at lists.sourceforge.net >>>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>>> >>>> ------------------------------------------------------------ >>> ------------------ >>> Is your legacy SCM system holding you back? Join Perforce May 7 to find >>> out: >>> • 3 signs your SCM is hindering your productivity >>> • Requirements for releasing software faster >>> • Expert tips and advice for migrating your SCM now >>> http://p.sf.net/sfu/perforce >>> _______________________________________________ >>> Gambas-user mailing list >>> Gambas-user at lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>> >>> >> >> > > > ------------------------------------------------------------------------------ > Is your legacy SCM system holding you back? Join Perforce May 7 to find > out: > • 3 signs your SCM is hindering your productivity > • Requirements for releasing software faster > • Expert tips and advice for migrating your SCM now > http://p.sf.net/sfu/perforce > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > From gambas at ...1... Thu Jun 19 11:08:51 2014 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Thu, 19 Jun 2014 11:08:51 +0200 Subject: [Gambas-user] RadioButton in Frame not working In-Reply-To: <679069203.783891403116764227.JavaMail.defaultUser@...1910...> References: <679069203.783891403116764227.JavaMail.defaultUser@...1910...> Message-ID: <53A2A8A3.4050700@...1...> Le 18/06/2014 20:39, corradoventu at ...69... a ?crit : > RadioButton in Frame not working (no longer working?) - sample project includedtanks It should be fixed in revision #6329. Regards, -- Beno?t Minisini From n.rogozarski at ...626... Thu Jun 19 17:33:29 2014 From: n.rogozarski at ...626... (roki73) Date: Thu, 19 Jun 2014 08:33:29 -0700 (PDT) Subject: [Gambas-user] Report and Settings In-Reply-To: References: <536AA19F.6070709@...626...> <536B9AC2.8010503@...626...> <536DF836.8090204@...626...> Message-ID: <53A302A1.5080104@...626...> I really do not know how to check which version of SVN I have, but I think I have the last update for the Gambas, from gambas-daily.And the problem is still here! On 19.06.2014 10:04, Fabien Bodard-4 [via Gambas] wrote: > Can you or someone can tel me if this problem remain in the last > releases ? > > I've not any problems like this on svn. > > Thank you > > Fabien > Le 10 mai 2014 11:59, "Roki" <[hidden email] > > a ?crit : > > > > > Hi Randall ! > > > > This is just a small project that will reproduce the same error that I > > previously told you. This is only if you're curious about the problem, > > beacouseFabien already gave the answer, we must be patient until the > > problem is solved. > > > > Anyway thank you guys for your commitment! > > > > On 05/08/2014 08:54 PM, Randall Morgan wrote: > > > >> I've found that this error can sometimes be traced to an object > property > >> that has not been initialized. But there can be other reasons as > well. So > >> a > >> simple project that can show how you initialize the components and use > >> them > >> and that reproduces the error would help a great deal. > >> > >> > >> > >> > >> On Thu, May 8, 2014 at 9:53 AM, Jussi Lahtinen <[hidden email] > > > >> wrote: > >> > >> How that method "Preview" is defined? > >>> If you cannot show more code, then can you isolate this problem in > small > >>> runnable project you could send to us? > >>> > >>> > >>> Jussi > >>> > >>> > >>> On Thu, May 8, 2014 at 5:54 PM, Roki <[hidden email] > > wrote: > >>> > >>> First, thank Randall for rapid response. You're right, here's my > >>>> explanation of the problem. > >>>> > >>>> I did a project to record the vehicles that are registered in our > >>>> company. I use mysql database in background. From the Component > tab, I > >>>> checked (gb.db.mysql, gb.report and gb.settings) because I needed > for my > >>>> project. After all the forms and modules, I created a report of > >>>> registered vehicles. I run the project to test it. But when I > clicked to > >>>> view a report, the program stopped, and return this error (Type > >>>> mismatch: wanted integer, got Null instead in FMain:343.) > >>>> > >>>> Here is the code where the error appears: > >>>> Public sub ToolButton3_Click() > >>>> Dim rep as New repVehicle > >>>> rep.Preview <<< Here returns an error (Type mismatch: wanted > >>>> integer, got Null instead in FMain:343.) > >>>> End > >>>> > >>>> After exploring the code to find the source of the error, I found > >>>> nothing wrong with the code. > >>>> Accidentally noticed that when uncheck gb.settings from the > component > >>>> tab, the review of a report, run without any problem. > >>>> > >>>> I hope that now I was clear enough about the problem. > >>>> > >>>> On 05/07/2014 11:27 PM, Randall Morgan wrote: > >>>> > >>>>> Can you supply your code? You don't give enough details for > anyone to > >>>>> > >>>> be > >>> > >>>> able to help. > >>>>> > >>>>> > >>>>> On Wed, May 7, 2014 at 2:11 PM, Roki <[hidden email] > > wrote: > >>>>> > >>>>> Hello everyone, I'm new here! > >>>>>> > >>>>>> Here's my question!? > >>>>>> > >>>>>> When I add gb.settings component in my project, a report returning > >>>>>> > >>>>> this > >>> > >>>> error ("type mismatch: wanted integer, got null instead"). When I > turn > >>>>>> off gb.settings component, report work correctly. > >>>>>> > >>>>>> Is this a bug or I do something wrong? > >>>>>> > >>>>>> Sorry for my English, if there are some mistakes, but I think > somehow > >>>>>> you understand. > >>>>>> > >>>>>> > >>>>>> > >>>>>> ------------------------------------------------------------ > >>> ------------------ > >>> > >>>> Is your legacy SCM system holding you back? Join Perforce May 7 to > >>>>>> > >>>>> find > >>> > >>>> out: > >>>>>> • 3 signs your SCM is hindering your productivity > >>>>>> • Requirements for releasing software faster > >>>>>> • Expert tips and advice for migrating your SCM now > >>>>>> http://p.sf.net/sfu/perforce > >>>>>> _______________________________________________ > >>>>>> Gambas-user mailing list > >>>>>> [hidden email] > >>>>>> https://lists.sourceforge.net/lists/listinfo/gambas-user > >>>>>> > >>>>>> > >>>>> > >>>> > >>>> > >>>> ------------------------------------------------------------ > >>> ------------------ > >>> > >>>> Is your legacy SCM system holding you back? Join Perforce May 7 > to find > >>>> out: > >>>> • 3 signs your SCM is hindering your productivity > >>>> • Requirements for releasing software faster > >>>> • Expert tips and advice for migrating your SCM now > >>>> http://p.sf.net/sfu/perforce > >>>> _______________________________________________ > >>>> Gambas-user mailing list > >>>> [hidden email] > >>>> https://lists.sourceforge.net/lists/listinfo/gambas-user > >>>> > >>>> ------------------------------------------------------------ > >>> ------------------ > >>> Is your legacy SCM system holding you back? Join Perforce May 7 to > find > >>> out: > >>> • 3 signs your SCM is hindering your productivity > >>> • Requirements for releasing software faster > >>> • Expert tips and advice for migrating your SCM now > >>> http://p.sf.net/sfu/perforce > >>> _______________________________________________ > >>> Gambas-user mailing list > >>> [hidden email] > >>> https://lists.sourceforge.net/lists/listinfo/gambas-user > >>> > >>> > >> > >> > > > > > > > ------------------------------------------------------------------------------ > > Is your legacy SCM system holding you back? Join Perforce May 7 to find > > out: > > • 3 signs your SCM is hindering your productivity > > • Requirements for releasing software faster > > • Expert tips and advice for migrating your SCM now > > http://p.sf.net/sfu/perforce > > _______________________________________________ > > Gambas-user mailing list > > [hidden email] > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > ------------------------------------------------------------------------------ > > HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions > Find What Matters Most in Your Big Data with HPCC Systems > Open Source. Fast. Scalable. Simple. Ideal for Dirty Data. > Leverages Graph Analysis for Fast Processing & Easy Data Exploration > http://p.sf.net/sfu/hpccsystems > _______________________________________________ > Gambas-user mailing list > [hidden email] > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > ------------------------------------------------------------------------ > If you reply to this email, your message will be added to the > discussion below: > http://gambas.8142.n7.nabble.com/Report-and-Settings-tp46366p47049.html > To unsubscribe from Report and Settings, click here > . > NAML > > -- View this message in context: http://gambas.8142.n7.nabble.com/Report-and-Settings-tp46366p47051.html Sent from the gambas-user mailing list archive at Nabble.com. From lists at ...2828... Thu Jun 19 19:27:09 2014 From: lists at ...2828... (CJ) Date: Thu, 19 Jun 2014 19:27:09 +0200 Subject: [Gambas-user] gb.net.curl and SSL certificate In-Reply-To: <53A289DE.60206@...1...> Message-ID: <000001cf8be3$b6b38890$0f00a8c0@...2829...> > > Trying to communicate with a web server via https and the HTTPGet example > > but the connection fails with error -1060 also if I disable certificate > > authentication using... > > > > MyHTTP.SSL.VerifyHost = False > > MyHTTP.SSL.VerifyPeer = False > > > > ".VerifyPeer = False" is really just a call to: > > curl_easy_setopt(curl, CURLOPT_SSL_VERIFYPEER, FALSE); > > So I don't know why it does not work. > > I would need an "https" URL to test... Thanks for clarifying Beno?t! Since I don't want to make the server address public would it be possible for me to send you a private e-mail with the https URL to test? If, then just send me your e-mail address to my address used for this mailing list... /CJ From gambas at ...1... Thu Jun 19 19:46:11 2014 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Thu, 19 Jun 2014 19:46:11 +0200 Subject: [Gambas-user] gb.net.curl and SSL certificate In-Reply-To: <000001cf8be3$b6b38890$0f00a8c0@...2829...> References: <000001cf8be3$b6b38890$0f00a8c0@...2829...> Message-ID: <53A321E3.2040808@...1...> Le 19/06/2014 19:27, CJ a ?crit : > >>> Trying to communicate with a web server via https and the HTTPGet > example >>> but the connection fails with error -1060 also if I disable certificate >>> authentication using... >>> >>> MyHTTP.SSL.VerifyHost = False >>> MyHTTP.SSL.VerifyPeer = False >>> >> >> ".VerifyPeer = False" is really just a call to: >> >> curl_easy_setopt(curl, CURLOPT_SSL_VERIFYPEER, FALSE); >> >> So I don't know why it does not work. >> >> I would need an "https" URL to test... > > Thanks for clarifying Beno?t! > > Since I don't want to make the server address public would it be possible > for > me to send you a private e-mail with the https URL to test? > > If, then just send me your e-mail address to my address used for this > mailing list... > > /CJ > If I can see your address in the mailing-list, so you can see mine, can't you? mailto:gambas at ...1... -- Beno?t Minisini From willy at ...2734... Thu Jun 19 17:26:52 2014 From: willy at ...2734... (Willy Raets) Date: Thu, 19 Jun 2014 17:26:52 +0200 Subject: [Gambas-user] Updated Debian and Raspbian installation instructions Message-ID: <1403191612.16903.5.camel@...3024...> Hi all, I updated instruction to use a apt preferences file when installing gambas 3.5.2 on wheezy using jessie repository. Added the preferences file that worked for me, without messing up my wheezy installation. If you still meet any problems in your installation when working with the preferences file as shown in instructions just let me know. -- Kind regards, Willy (aka gbWilly) http://gambasshowcase.org/ http://howtogambas.org http://gambos.org From lists at ...2828... Thu Jun 19 21:40:51 2014 From: lists at ...2828... (CJ) Date: Thu, 19 Jun 2014 21:40:51 +0200 Subject: [Gambas-user] gb.net.curl and SSL certificate In-Reply-To: <53A321E3.2040808@...1...> Message-ID: <000001cf8bf6$64b98810$0f00a8c0@...2829...> Beno?t, > If I can see your address in the mailing-list, so you can see mine, > can't you? mailto:gambas at ...1... Ahh, I thought that was a "generic" mailing list address to prevent you from being swamped by personal requests, silly me ;) I will pack up the example program including the https test address and send it to you when I get back home tomorrow. /CJ From willy at ...2734... Thu Jun 19 22:08:32 2014 From: willy at ...2734... (Willy Raets) Date: Thu, 19 Jun 2014 22:08:32 +0200 Subject: [Gambas-user] Updated Ubuntu installation instructions Message-ID: <1403208512.2209.1.camel@...3024...> Hi all, Updated instructions to install Gambas on Ubuntu. -- Kind regards, Willy (aka gbWilly) http://gambasshowcase.org/ http://howtogambas.org http://gambos.org From willy at ...2734... Thu Jun 19 22:21:45 2014 From: willy at ...2734... (Willy Raets) Date: Thu, 19 Jun 2014 22:21:45 +0200 Subject: [Gambas-user] Requirements for compilation and installation Message-ID: <1403209305.2209.4.camel@...3024...> Hi all, The list with requirements for compilation and installation at http://gambaswiki.org/wiki/install seems to be missing some components. Could it be updated to meet the latest Gambas release? -- Kind regards, Willy (aka gbWilly) http://gambasshowcase.org/ http://howtogambas.org http://gambos.org From taboege at ...626... Thu Jun 19 22:26:16 2014 From: taboege at ...626... (Tobias Boege) Date: Thu, 19 Jun 2014 22:26:16 +0200 Subject: [Gambas-user] Requirements for compilation and installation In-Reply-To: <1403209305.2209.4.camel@...3024...> References: <1403209305.2209.4.camel@...3024...> Message-ID: <20140619202616.GB959@...2774...> On Thu, 19 Jun 2014, Willy Raets wrote: > Hi all, > > The list with requirements for compilation and installation at > http://gambaswiki.org/wiki/install seems to be missing some components. > > Could it be updated to meet the latest Gambas release? > As far as it concerns me: - gb.ncurses and gb.openssl are listed, - gb.data and gb.inotify do not have any requirements. I think components without requirements don't need to be listed, no? Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From willy at ...2734... Thu Jun 19 22:50:23 2014 From: willy at ...2734... (Willy Raets) Date: Thu, 19 Jun 2014 22:50:23 +0200 Subject: [Gambas-user] Requirements for compilation and installation In-Reply-To: <20140619202616.GB959@...2774...> References: <1403209305.2209.4.camel@...3024...> <20140619202616.GB959@...2774...> Message-ID: <1403211023.2209.9.camel@...3024...> On do, 2014-06-19 at 22:26 +0200, Tobias Boege wrote: > On Thu, 19 Jun 2014, Willy Raets wrote: > > Hi all, > > > > The list with requirements for compilation and installation at > > http://gambaswiki.org/wiki/install seems to be missing some components. > > > > Could it be updated to meet the latest Gambas release? > > > > As far as it concerns me: > > - gb.ncurses and gb.openssl are listed, > - gb.data and gb.inotify do not have any requirements. > > I think components without requirements don't need to be listed, no? I agree Tobi, no requirements no need to list them. I have recently seen gb.gtk3 appear as a component and it has different requirements as gb,gtk, but is not listed in the requirements for compilation and installation, so I had to do some investigations myself, to get it compiled. Having the requirements listed makes the search for the proper dependencies for a specific distribution a little easier :) Or maybe the list only meant for stable versions and not for trunk? > > Regards, > Tobi > -- Kind regards, Willy (aka gbWilly) http://gambasshowcase.org/ http://howtogambas.org http://gambos.org From willy at ...2734... Thu Jun 19 22:54:34 2014 From: willy at ...2734... (Willy Raets) Date: Thu, 19 Jun 2014 22:54:34 +0200 Subject: [Gambas-user] Requirements for compilation and installation In-Reply-To: <1403211023.2209.9.camel@...3024...> References: <1403209305.2209.4.camel@...3024...> <20140619202616.GB959@...2774...> <1403211023.2209.9.camel@...3024...> Message-ID: <1403211274.2209.11.camel@...3024...> On do, 2014-06-19 at 22:50 +0200, Willy Raets wrote: > On do, 2014-06-19 at 22:26 +0200, Tobias Boege wrote: > > On Thu, 19 Jun 2014, Willy Raets wrote: > > > Hi all, > > > > > > The list with requirements for compilation and installation at > > > http://gambaswiki.org/wiki/install seems to be missing some components. > > > > > > Could it be updated to meet the latest Gambas release? > > > > > > > As far as it concerns me: > > > > - gb.ncurses and gb.openssl are listed, > > - gb.data and gb.inotify do not have any requirements. > > > > I think components without requirements don't need to be listed, no? > > I agree Tobi, no requirements no need to list them. > > I have recently seen gb.gtk3 appear as a component and it has different > requirements as gb,gtk, but is not listed in the requirements for > compilation and installation, so I had to do some investigations myself, > to get it compiled. > > Having the requirements listed makes the search for the proper > dependencies for a specific distribution a little easier :) > > Or maybe the list only meant for stable versions and not for trunk? > gb.openal is another one missing requirements. Well, I guess we all experience that developing is more fun than documenting our developments :) -- Kind regards, Willy (aka gbWilly) http://gambasshowcase.org/ http://howtogambas.org http://gambos.org From taboege at ...626... Thu Jun 19 22:55:05 2014 From: taboege at ...626... (Tobias Boege) Date: Thu, 19 Jun 2014 22:55:05 +0200 Subject: [Gambas-user] Requirements for compilation and installation In-Reply-To: <1403211023.2209.9.camel@...3024...> References: <1403209305.2209.4.camel@...3024...> <20140619202616.GB959@...2774...> <1403211023.2209.9.camel@...3024...> Message-ID: <20140619205505.GC959@...2774...> On Thu, 19 Jun 2014, Willy Raets wrote: > On do, 2014-06-19 at 22:26 +0200, Tobias Boege wrote: > > On Thu, 19 Jun 2014, Willy Raets wrote: > > > Hi all, > > > > > > The list with requirements for compilation and installation at > > > http://gambaswiki.org/wiki/install seems to be missing some components. > > > > > > Could it be updated to meet the latest Gambas release? > > > > > > > As far as it concerns me: > > > > - gb.ncurses and gb.openssl are listed, > > - gb.data and gb.inotify do not have any requirements. > > > > I think components without requirements don't need to be listed, no? > > I agree Tobi, no requirements no need to list them. > > I have recently seen gb.gtk3 appear as a component and it has different > requirements as gb,gtk, but is not listed in the requirements for > compilation and installation, so I had to do some investigations myself, > to get it compiled. > > Having the requirements listed makes the search for the proper > dependencies for a specific distribution a little easier :) > > Or maybe the list only meant for stable versions and not for trunk? > Well, trunk is tomorrow's stable so we just could list the dependencies already today. Go on :-) -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From gambas at ...2524... Fri Jun 20 07:32:21 2014 From: gambas at ...2524... (gambas at ...2524...) Date: Fri, 20 Jun 2014 05:32:21 +0000 Subject: [Gambas-user] Issue 529 in gambas: Wrong foreground color in Help Browser Message-ID: <0-6813199134517018827-10030019510279427439-gambas=googlecode.com@...2524...> Status: New Owner: ---- Labels: Version Type-Bug Priority-Medium OpSys-Any Dist-Any Arch-Any Desktop-Any GUI-Any New issue 529 by pata.kar... at ...626...: Wrong foreground color in Help Browser http://code.google.com/p/gambas/issues/detail?id=529 1) When having a darker theme, in this case 'Obsidian Coast', it's really har to read the help. 2) [System] Gambas=3.5.3 OperatingSystem=Linux Kernel=3.13.0-29-generic Architecture=x86_64 Distribution=Netrunner 14 (Frontier) Desktop=KDE4 Theme=Oxygen Language=C Memory=2002M [Libraries] Cairo=libcairo.so.2.11301.0 Curl=libcurl.so.4.3.0 DBus=libdbus-1.so.3.7.6 GStreamer=libgstreamer-0.10.so.0.30.0 GStreamer=libgstreamer-1.0.so.0.204.0 GTK+=libgtk-x11-2.0.so.0.2400.23 OpenGL=libGL.so.1.2.0 Poppler=libpoppler.so.44.0.0 Qt4=libQtCore.so.4.8.6 SDL=libSDL-1.2.so.0.11.4 3) - 4) - 5) In KDE, set Colors to Obsidian Coast, In Gambas, display help. 6) - Attachments: help_browser_foreground_color_problem_1.png 72.3 KB help_browser_foreground_color_problem_2.png 69.2 KB -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From pata.karlsson at ...626... Fri Jun 20 07:57:22 2014 From: pata.karlsson at ...626... (Patrik Karlsson) Date: Fri, 20 Jun 2014 07:57:22 +0200 Subject: [Gambas-user] Feature request: Color.Link and Color.Visited system colors. Message-ID: Is it possible to add system colors in order to get the color of links from the current theme? Color.Link and Color.Visited. /Patrik From gambas at ...1... Fri Jun 20 15:44:39 2014 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Fri, 20 Jun 2014 15:44:39 +0200 Subject: [Gambas-user] Feature request: Color.Link and Color.Visited system colors. In-Reply-To: References: Message-ID: <53A43AC7.4030700@...1...> Le 20/06/2014 07:57, Patrik Karlsson a ?crit : > Is it possible to add system colors in order to get the color of links from > the current theme? > Color.Link and Color.Visited. > > /Patrik Done in revision #6331. Note that GTK+2 does not have system colors for that, so some default color is used. -- Beno?t Minisini From gambas at ...2524... Fri Jun 20 18:40:11 2014 From: gambas at ...2524... (gambas at ...2524...) Date: Fri, 20 Jun 2014 16:40:11 +0000 Subject: [Gambas-user] Issue 530 in gambas: Bottom part of Target distribution dialog box is missing Message-ID: <0-6813199134517018827-9852596366090609272-gambas=googlecode.com@...2524...> Status: New Owner: ---- Labels: Version-3.1.0 Type-Bug Priority-Medium Dist-Ubuntu Desktop-Gnome GUI-QT4 New issue 530 by arif_rah... at ...2488...: Bottom part of Target distribution dialog box is missing http://code.google.com/p/gambas/issues/detail?id=530 I use Ubuntu in my netbook. In Ubuntu 13.10, the bottom part of Target distribution dialog box is in the lower workspace. In Ubuntu 14.04, it's missing. [System] OperatingSystem=Linux Kernel=3.13.0-24-generic Architecture=i686 Memory=1014672 kB DistributionVendor=Ubuntu DistributionRelease="Ubuntu 14.04 LTS" Desktop=Gnome [Gambas 3] Version=3.1.1 Path=/usr/bin/gbx3 [Libraries] Qt4=libQtCore.so.4.8.6 GTK+=libgtk-x11-2.0.so.0.2400.23 Attachments: Target distribution.jpg 67.4 KB -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From lists at ...2828... Fri Jun 20 22:29:34 2014 From: lists at ...2828... (CJ) Date: Fri, 20 Jun 2014 22:29:34 +0200 Subject: [Gambas-user] gb.net.curl and SSL certificate In-Reply-To: <53A3636E.3070402@...1...> Message-ID: <000001cf8cc6$5bb44db0$0f00a8c0@...2829...> Hi Beno?t, > Can you try revision #6330 and tell me? Thanks for looking into it! It works in #6330, tested on Ubuntu 12.04 LTS and Xubuntu 14.04 LTS. /CJ From rterry at ...1823... Sat Jun 21 02:57:33 2014 From: rterry at ...1823... (richard terry) Date: Sat, 21 Jun 2014 10:57:33 +1000 Subject: [Gambas-user] ide feature request Message-ID: <53A4D87D.20204@...1823...> Hi Benoit, List EasyGP (our project) has a huge codebase. Often I may have to search the tree for the file I want to operate on. I wondered if it would be possible to have an option to add a combo box to the IDE which was populated by an new option on the popup menu over the tabs at the top of the IDE, which said something like 'Add to Class Combo' or whatever made sense to Benoit. Then, instead of having to continually search through the code tree one could load that file b just clicking on the favourite combo Regards richard From bbruen at ...2308... Sat Jun 21 03:04:21 2014 From: bbruen at ...2308... (B Bruen) Date: Sat, 21 Jun 2014 10:34:21 +0930 Subject: [Gambas-user] ide feature request In-Reply-To: <53A4D87D.20204@...1823...> References: <53A4D87D.20204@...1823...> Message-ID: <20140621103421.45dfb441a7c8b6d0858d7c7a@...2308...> Richard, Doesn't the search box at the top of the project browser go 99% of the way to what you want? Bruce On Sat, 21 Jun 2014 10:57:33 +1000 richard terry wrote: > Hi Benoit, List > > EasyGP (our project) has a huge codebase. Often I may have to search the > tree for the file I want to operate on. > > I wondered if it would be possible to have an option to add a combo box > to the IDE which was populated by an new option on the popup menu over > the tabs at the top of the IDE, which said something like 'Add to Class > Combo' or whatever made sense to Benoit. > > Then, instead of having to continually search through the code tree one > could load that file b just clicking on the favourite combo > > Regards > > richard > > > ------------------------------------------------------------------------------ > HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions > Find What Matters Most in Your Big Data with HPCC Systems > Open Source. Fast. Scalable. Simple. Ideal for Dirty Data. > Leverages Graph Analysis for Fast Processing & Easy Data Exploration > http://p.sf.net/sfu/hpccsystems > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -- B Bruen From pata.karlsson at ...626... Sat Jun 21 07:08:47 2014 From: pata.karlsson at ...626... (Patrik Karlsson) Date: Sat, 21 Jun 2014 07:08:47 +0200 Subject: [Gambas-user] Feature request: Color.Link and Color.Visited system colors. In-Reply-To: <53A43AC7.4030700@...1...> References: <53A43AC7.4030700@...1...> Message-ID: Much appreciated, thank you. 2014-06-20 15:44 GMT+02:00 Beno?t Minisini : > Le 20/06/2014 07:57, Patrik Karlsson a ?crit : > > Is it possible to add system colors in order to get the color of links > from > > the current theme? > > Color.Link and Color.Visited. > > > > /Patrik > > Done in revision #6331. > > Note that GTK+2 does not have system colors for that, so some default > color is used. > > -- > Beno?t Minisini > > > ------------------------------------------------------------------------------ > HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions > Find What Matters Most in Your Big Data with HPCC Systems > Open Source. Fast. Scalable. Simple. Ideal for Dirty Data. > Leverages Graph Analysis for Fast Processing & Easy Data Exploration > http://p.sf.net/sfu/hpccsystems > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas.fr at ...626... Sat Jun 21 09:45:19 2014 From: gambas.fr at ...626... (Fabien Bodard) Date: Sat, 21 Jun 2014 09:45:19 +0200 Subject: [Gambas-user] ide feature request In-Reply-To: <20140621103421.45dfb441a7c8b6d0858d7c7a@...2308...> References: <53A4D87D.20204@...1823...> <20140621103421.45dfb441a7c8b6d0858d7c7a@...2308...> Message-ID: I tink mabe a star buttonmenu with a favourite menu may be sufficient no ? This star menu button can take place near the windowsallclose one or on replacement. and the close all can just be an entry in the tab menu. 2014-06-21 3:04 GMT+02:00 B Bruen : > Richard, > > Doesn't the search box at the top of the project browser go 99% of the way to what you want? > > Bruce > > > On Sat, 21 Jun 2014 10:57:33 +1000 > richard terry wrote: > >> Hi Benoit, List >> >> EasyGP (our project) has a huge codebase. Often I may have to search the >> tree for the file I want to operate on. >> >> I wondered if it would be possible to have an option to add a combo box >> to the IDE which was populated by an new option on the popup menu over >> the tabs at the top of the IDE, which said something like 'Add to Class >> Combo' or whatever made sense to Benoit. >> >> Then, instead of having to continually search through the code tree one >> could load that file b just clicking on the favourite combo >> >> Regards >> >> richard >> >> >> ------------------------------------------------------------------------------ >> HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions >> Find What Matters Most in Your Big Data with HPCC Systems >> Open Source. Fast. Scalable. Simple. Ideal for Dirty Data. >> Leverages Graph Analysis for Fast Processing & Easy Data Exploration >> http://p.sf.net/sfu/hpccsystems >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user > > > -- > B Bruen > > ------------------------------------------------------------------------------ > HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions > Find What Matters Most in Your Big Data with HPCC Systems > Open Source. Fast. Scalable. Simple. Ideal for Dirty Data. > Leverages Graph Analysis for Fast Processing & Easy Data Exploration > http://p.sf.net/sfu/hpccsystems > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -- Fabien Bodard From pata.karlsson at ...626... Sat Jun 21 09:47:27 2014 From: pata.karlsson at ...626... (Patrik Karlsson) Date: Sat, 21 Jun 2014 09:47:27 +0200 Subject: [Gambas-user] Referencing an array element with boolean Message-ID: Many years ago when I was programming in Delphi I used to have object arrays of size 2 and referencing to the element index with true and false. This was very very useful. It was possible since false=0 and true=+1. In Gambas we have false=0 and true=-1. So now I came up with: Dim sMoods As String[] = ["Sad", "Happy"] Dim bHappiness As Boolean Debug CInt(True), Abs(True), Abs(CInt(True)) Debug CInt(False), Abs(False), Abs(CInt(False)) bHappiness = False Debug "bHappiness= "; bHappiness; ": " & sMoods[Abs(CInt(bHappiness))] Debug "bHappiness= "; bHappiness; ": " & sMoods[If(bHappiness, 1, 0)] bHappiness = True Debug "bHappiness= "; bHappiness; ": " & sMoods[Abs(CInt(bHappiness))] Debug "bHappiness= "; bHappiness; ": " & sMoods[If(bHappiness, 1, 0)] 1. Why is Abs(True) True? 2. Which is fastest, Abs(CInt(... or If(... ? I guess that If(... is more future proof. 3. I have a "BoolToIndex" function in a library module but I was thinking if it should not be part of the language, to be able to reference in a _simple_ way to an array element with a boolean. /Patrik From gambas at ...1... Sat Jun 21 12:23:23 2014 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Sat, 21 Jun 2014 12:23:23 +0200 Subject: [Gambas-user] Referencing an array element with boolean In-Reply-To: References: Message-ID: <53A55D1B.5050809@...1...> Le 21/06/2014 09:47, Patrik Karlsson a ?crit : > Many years ago when I was programming in Delphi I used to have object > arrays of size 2 and referencing to the element index with true and false. > This was very very useful. > > It was possible since false=0 and true=+1. > In Gambas we have false=0 and true=-1. > > So now I came up with: > Dim sMoods As String[] = ["Sad", "Happy"] > Dim bHappiness As Boolean > > Debug CInt(True), Abs(True), Abs(CInt(True)) > Debug CInt(False), Abs(False), Abs(CInt(False)) > > bHappiness = False > Debug "bHappiness= "; bHappiness; ": " & sMoods[Abs(CInt(bHappiness))] > Debug "bHappiness= "; bHappiness; ": " & sMoods[If(bHappiness, 1, 0)] > > bHappiness = True > Debug "bHappiness= "; bHappiness; ": " & sMoods[Abs(CInt(bHappiness))] > Debug "bHappiness= "; bHappiness; ": " & sMoods[If(bHappiness, 1, 0)] > > 1. Why is Abs(True) True? > I think I did that so that TypeOf(Abs(x)) = TypeOf(x). But for boolean, it is not very useful. Maybe I should automatically convert Boolean to Int in that case, so that Abs(True) = 1 and Abs(False) = 0. > 2. Which is fastest, Abs(CInt(... or If(... ? I guess that If(... is more > future proof. Abs(CInt(True)). > > 3. I have a "BoolToIndex" function in a library module but I was thinking > if it should not be part of the language, to be able to reference in > a _simple_ way to an array element with a boolean. No. But you will be able to do Abs(True). Moreover, Boolean is, by definition, not a good datatype for indexing! Regards, -- Beno?t Minisini From taboege at ...626... Sat Jun 21 12:28:28 2014 From: taboege at ...626... (Tobias Boege) Date: Sat, 21 Jun 2014 12:28:28 +0200 Subject: [Gambas-user] Referencing an array element with boolean In-Reply-To: References: Message-ID: <20140621102828.GA644@...2774...> On Sat, 21 Jun 2014, Patrik Karlsson wrote: > Many years ago when I was programming in Delphi I used to have object > arrays of size 2 and referencing to the element index with true and false. > This was very very useful. > > It was possible since false=0 and true=+1. > In Gambas we have false=0 and true=-1. > > So now I came up with: > Dim sMoods As String[] = ["Sad", "Happy"] > Dim bHappiness As Boolean > > Debug CInt(True), Abs(True), Abs(CInt(True)) > Debug CInt(False), Abs(False), Abs(CInt(False)) > > bHappiness = False > Debug "bHappiness= "; bHappiness; ": " & sMoods[Abs(CInt(bHappiness))] > Debug "bHappiness= "; bHappiness; ": " & sMoods[If(bHappiness, 1, 0)] > > bHappiness = True > Debug "bHappiness= "; bHappiness; ": " & sMoods[Abs(CInt(bHappiness))] > Debug "bHappiness= "; bHappiness; ": " & sMoods[If(bHappiness, 1, 0)] > > 1. Why is Abs(True) True? > Because the mapping Integer -> Boolean is not injective. The rule is: 0 maps to False, everything else maps to True. To be able to map Boolean -> Integer the convention used in Gambas is False maps to zero (of course) and True maps to -1, which makes actually sense if you don't look into the array index but into the bit flags direction (True means "all bits set" in Gambas, which is what -1 is in two's complement). So what happens is: Abs(True) becomes Abs(CInt(True)) on the fly which is Abs(-1) = 1 which is non-zero and thus True again. > 2. Which is fastest, Abs(CInt(... or If(... ? I guess that If(... is more > future proof. > IIf() (or If() for short) is likely to be more expensive because it needs to evaluate both expressions, the true and the false one, before it decides which to use. Since these are only numbers in your use case, it's really hard to say - and I bet even harder to measure anyways. > 3. I have a "BoolToIndex" function in a library module but I was thinking > if it should not be part of the language, to be able to reference in > a _simple_ way to an array element with a boolean. > I don't know. If I have to do what you want, I skip the array indirection and simply do: Debug IIf(bHappiness, ("Happy"), ("Sad")) Since you want only Boolean indices, it's never going to be more code to type... Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From pata.karlsson at ...626... Sun Jun 22 07:46:36 2014 From: pata.karlsson at ...626... (Patrik Karlsson) Date: Sun, 22 Jun 2014 07:46:36 +0200 Subject: [Gambas-user] Referencing an array element with boolean In-Reply-To: <53A55D1B.5050809@...1...> References: <53A55D1B.5050809@...1...> Message-ID: 2014-06-21 12:23 GMT+02:00 Beno?t Minisini : > Le 21/06/2014 09:47, Patrik Karlsson a ?crit : > > 3. I have a "BoolToIndex" function in a library module but I was thinking > > if it should not be part of the language, to be able to reference in > > a _simple_ way to an array element with a boolean. > > No. But you will be able to do Abs(True). > > Moreover, Boolean is, by definition, not a good datatype for indexing! > > Ok, that will be good too, thank you. In this case indexing on booleans gives me a nice and clean code where I have many 'either or' for loading the correct string value, sound clip and image. But I will keep that in mind. /Patrik From pata.karlsson at ...626... Sun Jun 22 07:48:54 2014 From: pata.karlsson at ...626... (Patrik Karlsson) Date: Sun, 22 Jun 2014 07:48:54 +0200 Subject: [Gambas-user] Referencing an array element with boolean In-Reply-To: <20140621102828.GA644@...2774...> References: <20140621102828.GA644@...2774...> Message-ID: 2014-06-21 12:28 GMT+02:00 Tobias Boege : > On Sat, 21 Jun 2014, Patrik Karlsson wrote: > > 1. Why is Abs(True) True? > > Because the mapping Integer -> Boolean is not injective. The rule is: 0 > maps > to False, everything else maps to True. To be able to map Boolean -> > Integer > the convention used in Gambas is False maps to zero (of course) and True > maps > to -1, which makes actually sense if you don't look into the array index > but > into the bit flags direction (True means "all bits set" in Gambas, which is > what -1 is in two's complement). So what happens is: > > Abs(True) becomes Abs(CInt(True)) on the fly which is Abs(-1) = 1 which is > non-zero and thus True again. That was interesting, thanks. /Patrik From corradoventu at ...69... Sun Jun 22 14:40:12 2014 From: corradoventu at ...69... (corradoventu at ...69...) Date: Sun, 22 Jun 2014 14:40:12 +0200 (CEST) Subject: [Gambas-user] Problem with Foreground and Background property on RadioButton and CheckBox Message-ID: <1538599728.9758721403440812247.JavaMail.actor@...3347...> Foreground and Background property does not work, or has a strange behaviour on RadioButton and CheckBox.sample project included. thanks for your attention. [System] Gambas=3.5.90 OperatingSystem=Linux Kernel=3.13.0-24-generic Architecture=x86_64 Distribution=Ubuntu 14.04 LTS Desktop=GNOME Theme=QGtk Language=en_US.UTF-8 Memory=7865M [Libraries] Cairo=libcairo.so.2.11301.0 Curl=libcurl.so.4.3.0 DBus=libdbus-1.so.3.7.6 GStreamer=libgstreamer-0.10.so.0.30.0 GStreamer=libgstreamer-1.0.so.0.204.0 GTK+3=libgtk-3.so.0.1000.8 GTK+=libgtk-x11-2.0.so.0.2400.23 OpenGL=libGL.so.1.2.0 Poppler=libpoppler.so.43.0.0 Poppler=libpoppler.so.44.0.0 Qt4=libQtCore.so.4.8.6 SDL=libSDL-1.2.so.0.11.4 -------------- next part -------------- A non-text attachment was scrubbed... Name: Radiocolor-0.0.1.tar.gz Type: application/gzip Size: 5027 bytes Desc: not available URL: From gambas at ...1... Sun Jun 22 14:53:39 2014 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Sun, 22 Jun 2014 14:53:39 +0200 Subject: [Gambas-user] Problem with Foreground and Background property on RadioButton and CheckBox In-Reply-To: <1538599728.9758721403440812247.JavaMail.actor@...3347...> References: <1538599728.9758721403440812247.JavaMail.actor@...3347...> Message-ID: <53A6D1D3.1020705@...1...> Le 22/06/2014 14:40, corradoventu at ...69... a ?crit : > Foreground and Background property does not work, or has a strange > behaviour on RadioButton and CheckBox.sample project included. thanks > for your attention. > The widget theme decides how to interpreter background and foreground colors. So you don't get necessarily what you expect, depending on the widget theme in use. For example, I use 'oxygen' theme with QT, 'oxygen-gtk' for GTK+2, and Radiance for GTK+3: 1) With QT and GTK+2, only the background of the button or the check box is colored, not the entire widget. 2) With GTK+2, the foreground color is not taken into accound. Why? No idea, I will check if it is a bug in gb.gtk. 3) With GTK+3, everything is fine. Regards, -- Beno?t Minisini From gambas at ...1... Sun Jun 22 16:06:30 2014 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Sun, 22 Jun 2014 16:06:30 +0200 Subject: [Gambas-user] Problem with Foreground and Background property on RadioButton and CheckBox In-Reply-To: <53A6D1D3.1020705@...1...> References: <1538599728.9758721403440812247.JavaMail.actor@...3347...> <53A6D1D3.1020705@...1...> Message-ID: <53A6E2E6.4010403@...1...> Le 22/06/2014 14:53, Beno?t Minisini a ?crit : > Le 22/06/2014 14:40, corradoventu at ...69... a ?crit : >> Foreground and Background property does not work, or has a strange >> behaviour on RadioButton and CheckBox.sample project included. thanks >> for your attention. >> > > The widget theme decides how to interpreter background and foreground > colors. So you don't get necessarily what you expect, depending on the > widget theme in use. > > For example, I use 'oxygen' theme with QT, 'oxygen-gtk' for GTK+2, and > Radiance for GTK+3: > > 1) With QT and GTK+2, only the background of the button or the check box > is colored, not the entire widget. > > 2) With GTK+2, the foreground color is not taken into accound. Why? No > idea, I will check if it is a bug in gb.gtk. > > 3) With GTK+3, everything is fine. > > Regards, > Finally the problem with Foreground color was a bug, and it has been fixed in revision #6333. Regards, -- Beno?t Minisini From olivier.cruilles at ...614... Sun Jun 22 18:03:24 2014 From: olivier.cruilles at ...614... (Yahoo) Date: Sun, 22 Jun 2014 12:03:24 -0400 Subject: [Gambas-user] Information about instruction in Gambas v3 Message-ID: <1403453004.24433.11.camel@...2157...> Hello all, I'm currently trying to translate a Perl script in Gambas v3 so can someone say to me if this kind of instruction exist in Gambas. The instruction in Perl are: 'pack' and 'unpack' This is the documentation to have an idea: http://www.perlmonks.org/?node_id=224666 These instructions are used to split a string into respectively variables like Byte, 16 bits integer, 32 bits integer, etc... It's just to know if exist an equivalent in Gambas or not to not re-invet the wheel. Thank you in advance [System] Gambas=3.5.90 OperatingSystem=Linux Kernel=2.6.43.8-1.fc15.i686 Architecture=x86 Distribution=redhat Fedora release 14 (Laughlin) Desktop=GNOME Theme=QGtk Language=fr_FR.UTF-8 Memory=3284M [Libraries] Cairo=libcairo.so.0.0.0 Cairo=libcairo.so.2.11000.2 Curl=libcurl.so.4.2.0 DBus=libdbus-1.so.3.5.2 GStreamer=libgstreamer-0.10.so.0.27.0 GTK+=libgtk-x11-2.0.so.0.2200.0 Poppler=libpoppler.so.7.0.0 Qt4=libQtCore.so.4.7.4 SDL=libSDL-1.2.so.0.11.3 Olivier From gambas at ...1... Sun Jun 22 19:04:01 2014 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Sun, 22 Jun 2014 19:04:01 +0200 Subject: [Gambas-user] Information about instruction in Gambas v3 In-Reply-To: <1403453004.24433.11.camel@...2157...> References: <1403453004.24433.11.camel@...2157...> Message-ID: <53A70C81.5090707@...1...> Le 22/06/2014 18:03, Yahoo a ?crit : > Hello all, > > I'm currently trying to translate a Perl script in Gambas v3 so can > someone say to me if this kind of instruction exist in Gambas. > > The instruction in Perl are: 'pack' and 'unpack' > > This is the documentation to have an idea: > > http://www.perlmonks.org/?node_id=224666 > > > > These instructions are used to split a string into respectively > variables like Byte, 16 bits integer, 32 bits integer, etc... > > It's just to know if exist an equivalent in Gambas or not to not > re-invet the wheel. > > Thank you in advance > > > [System] > Gambas=3.5.90 > OperatingSystem=Linux > Kernel=2.6.43.8-1.fc15.i686 > Architecture=x86 > Distribution=redhat Fedora release 14 (Laughlin) > Desktop=GNOME > Theme=QGtk > Language=fr_FR.UTF-8 > Memory=3284M > [Libraries] > Cairo=libcairo.so.0.0.0 > Cairo=libcairo.so.2.11000.2 > Curl=libcurl.so.4.2.0 > DBus=libdbus-1.so.3.5.2 > GStreamer=libgstreamer-0.10.so.0.27.0 > GTK+=libgtk-x11-2.0.so.0.2200.0 > Poppler=libpoppler.so.7.0.0 > Qt4=libQtCore.so.4.7.4 > SDL=libSDL-1.2.so.0.11.3 > > > Olivier > You have to implement it by hand using: 1) "OPEN STRING" to get a read/write stream on a string. 2) "READ" and "WRITE" to read/write binary data. Regards, -- Beno?t Minisini From olivier.cruilles at ...614... Sun Jun 22 20:10:22 2014 From: olivier.cruilles at ...614... (Olivier Cruilles) Date: Sun, 22 Jun 2014 14:10:22 -0400 Subject: [Gambas-user] Information about instruction in Gambas v3 In-Reply-To: <53A70C81.5090707@...1...> References: <1403453004.24433.11.camel@...2157...> <53A70C81.5090707@...1...> Message-ID: <9CD0CB0A-2CE6-46D0-8F9C-11755C0052CD@...614...> Ok, I will try to do it. Tks Benoit Cordialement, Olivier Cruilles EMail: olivier.cruilles at ...614... Portable: +01 514 431 2960 Le 22 juin 2014 ? 13:04, Beno?t Minisini a ?crit : > Le 22/06/2014 18:03, Yahoo a ?crit : >> Hello all, >> >> I'm currently trying to translate a Perl script in Gambas v3 so can >> someone say to me if this kind of instruction exist in Gambas. >> >> The instruction in Perl are: 'pack' and 'unpack' >> >> This is the documentation to have an idea: >> >> http://www.perlmonks.org/?node_id=224666 >> >> >> >> These instructions are used to split a string into respectively >> variables like Byte, 16 bits integer, 32 bits integer, etc... >> >> It's just to know if exist an equivalent in Gambas or not to not >> re-invet the wheel. >> >> Thank you in advance >> >> >> [System] >> Gambas=3.5.90 >> OperatingSystem=Linux >> Kernel=2.6.43.8-1.fc15.i686 >> Architecture=x86 >> Distribution=redhat Fedora release 14 (Laughlin) >> Desktop=GNOME >> Theme=QGtk >> Language=fr_FR.UTF-8 >> Memory=3284M >> [Libraries] >> Cairo=libcairo.so.0.0.0 >> Cairo=libcairo.so.2.11000.2 >> Curl=libcurl.so.4.2.0 >> DBus=libdbus-1.so.3.5.2 >> GStreamer=libgstreamer-0.10.so.0.27.0 >> GTK+=libgtk-x11-2.0.so.0.2200.0 >> Poppler=libpoppler.so.7.0.0 >> Qt4=libQtCore.so.4.7.4 >> SDL=libSDL-1.2.so.0.11.3 >> >> >> Olivier >> > > You have to implement it by hand using: > > 1) "OPEN STRING" to get a read/write stream on a string. > > 2) "READ" and "WRITE" to read/write binary data. > > Regards, > > -- > Beno?t Minisini From gambas at ...2524... Sun Jun 22 22:50:17 2014 From: gambas at ...2524... (gambas at ...2524...) Date: Sun, 22 Jun 2014 20:50:17 +0000 Subject: [Gambas-user] Issue 530 in gambas: Bottom part of Target distribution dialog box is missing In-Reply-To: <0-6813199134517018827-9852596366090609272-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-9852596366090609272-gambas=googlecode.com@...2524...> Message-ID: <1-6813199134517018827-9852596366090609272-gambas=googlecode.com@...2524...> Comment #1 on issue 530 by benoit.m... at ...626...: Bottom part of Target distribution dialog box is missing http://code.google.com/p/gambas/issues/detail?id=530 Why don't you use a smaller font? -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From gambas at ...1... Sun Jun 22 22:51:29 2014 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Sun, 22 Jun 2014 22:51:29 +0200 Subject: [Gambas-user] Pre-release of gambas 3.5.4 Message-ID: <53A741D1.3070208@...1...> Hi, I have made a pre-release of the gambas 3.5.4 package at: http://sourceforge.net/projects/gambas/files/gambas3/gambas3-3.5.4.tar.bz2/download Please test it and report any problem before I make the release official. Thanks! -- Beno?t Minisini From olivier.cruilles at ...614... Mon Jun 23 03:36:42 2014 From: olivier.cruilles at ...614... (Olivier Cruilles) Date: Sun, 22 Jun 2014 21:36:42 -0400 Subject: [Gambas-user] Pre-release of gambas 3.5.4 In-Reply-To: <53A741D1.3070208@...1...> References: <53A741D1.3070208@...1...> Message-ID: Hello, I compiled the pre-release 3.5.4 as asked by you. All the compilation is ok without any problem. But when tried to start the IDE, I took this error: Gtk-Message: (for origin information, set GTK_DEBUG): failed to retrieve property `GtkTreeView::odd-row-color' of type `GdkColor' from rc file value "((GString*) 0x98d3980)" of type `GString' /usr/bin/gambas3: symbol lookup error: /usr/lib/gambas3/gb.qt4.so: undefined symbol: _Z22CCONTAINER_draw_borderP8QPaintercP7QWidget [System] OperatingSystem=Linux Kernel=2.6.43.8-1.fc15.i686 Architecture=x86 Distribution=redhat Fedora release 14 (Laughlin) Desktop=GNOME Theme=QGtk Language=fr_FR.UTF-8 Memory=3284M [Libraries] Cairo=libcairo.so.0.0.0 Cairo=libcairo.so.2.11000.2 Curl=libcurl.so.4.2.0 DBus=libdbus-1.so.3.5.2 GStreamer=libgstreamer-0.10.so.0.27.0 GTK+=libgtk-x11-2.0.so.0.2200.0 Poppler=libpoppler.so.7.0.0 Qt4=libQtCore.so.4.7.4 SDL=libSDL-1.2.so.0.11.3 * But I use the latest SVN version and all is OK Do I need to give you more informations ? Cordialement, Olivier Cruilles EMail: olivier.cruilles at ...614... Portable: +01 514 431 2960 Le 22 juin 2014 ? 16:51, Beno?t Minisini a ?crit : > Hi, > > I have made a pre-release of the gambas 3.5.4 package at: > > http://sourceforge.net/projects/gambas/files/gambas3/gambas3-3.5.4.tar.bz2/download > > Please test it and report any problem before I make the release official. > > Thanks! > > -- > Beno?t Minisini > > ------------------------------------------------------------------------------ > HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions > Find What Matters Most in Your Big Data with HPCC Systems > Open Source. Fast. Scalable. Simple. Ideal for Dirty Data. > Leverages Graph Analysis for Fast Processing & Easy Data Exploration > http://p.sf.net/sfu/hpccsystems > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From bbruen at ...2308... Mon Jun 23 05:28:17 2014 From: bbruen at ...2308... (B Bruen) Date: Mon, 23 Jun 2014 12:58:17 +0930 Subject: [Gambas-user] Another IDE wish Message-ID: <20140623125817.f1f052ae95d47f088bff60a9@...2308...> Could we have a "Run that Form" button on the class editor as well as the Form editor please. regards Bruce -- B Bruen From bbruen at ...2308... Mon Jun 23 07:38:13 2014 From: bbruen at ...2308... (B Bruen) Date: Mon, 23 Jun 2014 15:08:13 +0930 Subject: [Gambas-user] IDE crash In-Reply-To: <53A1A1E5.607@...1...> References: <20140618121459.d499a2fac96993ed74bcd719@...2308...> <20140618122016.00d2d2667766df92fb7b8492@...2308...> <20140618132236.74a8054b74fa7621184731aa@...2308...> <53A1A1E5.607@...1...> Message-ID: <20140623150813.0595e219f7bb2ec36c8a37e8@...2308...> On Wed, 18 Jun 2014 16:27:49 +0200 Beno?t Minisini wrote: > Le 18/06/2014 05:52, B Bruen a ?crit : > > OK, I'm pretty sure this only happens if a tab is detached. > > I've been sliding tabs around for up to 30 open files and it doesn't happen unless one of them is detached. > > Again, it seems to only happen if the detached tab is graphical. ??? > > > > > > This should be fixed in revision #6328. > > Regards, > > -- > Beno?t Minisini > belated thank you! -- B Bruen From gambas at ...2524... Mon Jun 23 15:24:32 2014 From: gambas at ...2524... (gambas at ...2524...) Date: Mon, 23 Jun 2014 13:24:32 +0000 Subject: [Gambas-user] Issue 530 in gambas: Bottom part of Target distribution dialog box is missing In-Reply-To: <1-6813199134517018827-9852596366090609272-gambas=googlecode.com@...2524...> References: <1-6813199134517018827-9852596366090609272-gambas=googlecode.com@...2524...> <0-6813199134517018827-9852596366090609272-gambas=googlecode.com@...2524...> Message-ID: <2-6813199134517018827-9852596366090609272-gambas=googlecode.com@...2524...> Comment #2 on issue 530 by arif_rah... at ...2488...: Bottom part of Target distribution dialog box is missing http://code.google.com/p/gambas/issues/detail?id=530 Thanks. That worked. -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From rezedent12 at ...626... Mon Jun 23 18:12:42 2014 From: rezedent12 at ...626... (Rezedent12 .) Date: Mon, 23 Jun 2014 20:12:42 +0400 Subject: [Gambas-user] Dynamic multi-dimensional array? Message-ID: Is it possible to dynamic multi-dimensional arrays? Static multi-dimensional array may declare Ps As New Integer [10,100] Dynamic dimensional possibly Ps As New Integer [] How to declare a dynamic multidimensional array? I tried Ps As New Integer [,] but it is not syntactically correct. I decided to temporarily apply Ps As New Integer [] []. Create a dynamic array of dynamic arrays. But this is not what I need [x] [y], I need to [x, y]. Is it possible? ???????? ?? ???????????? ??????????? ???????? ??????????? ??????????? ?????? ???????? ???????? Ps As New Integer[10,100] ???????????? ?????????? ???????? Ps As New Integer[] ??? ???????? ???????????? ??????????? ??????? ? ???????? Ps As New Integer[,] ?? ??? ????????????? ?? ?????????. ???????? ? ????? ????????? Ps As New Integer[][] . ?????? ???????????? ?????? ???????????? ????????. ?? ??? ?? ?? ??? ??? ???? [x][y] , ??? ????? [x,y] . ???????? ?? ???? From taboege at ...626... Mon Jun 23 18:33:19 2014 From: taboege at ...626... (Tobias Boege) Date: Mon, 23 Jun 2014 18:33:19 +0200 Subject: [Gambas-user] Dynamic multi-dimensional array? In-Reply-To: References: Message-ID: <20140623163318.GA1001@...2774...> On Mon, 23 Jun 2014, Rezedent12 . wrote: > Is it possible to dynamic multi-dimensional arrays? > > Static multi-dimensional array may declare Ps As New Integer [10,100] > > Dynamic dimensional possibly Ps As New Integer [] > > How to declare a dynamic multidimensional array? I tried Ps As New Integer > [,] but it is not syntactically correct. I decided to temporarily apply Ps > As New Integer [] []. Create a dynamic array of dynamic arrays. But this is > not what I need [x] [y], I need to [x, y]. Is it possible? > > The preferred way[*] of having dynamic multidimensional arrays is actually the Integer[][]...[] syntax, one pair of "[]" for each dimension. If you for some reason cannot possibly bear the [x][y] syntax, you may also create a distinct class which implements the _get() and _put() special methods and wrap the arguments for a call to a typical Gambas md-array. There's actually to be some thought involved in the latter procedure if you want to handle arbitrary dimensions and I don't know off the top of my head if it's at all possible. But if you need it, maybe we can do something... [*] It's preferred for various reasons. If you want to hear some, just ask. Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From gambas at ...1... Mon Jun 23 19:06:52 2014 From: gambas at ...1... (=?UTF-8?B?QmVub8OudCBNaW5pc2luaQ==?=) Date: Mon, 23 Jun 2014 19:06:52 +0200 Subject: [Gambas-user] Dynamic multi-dimensional array? In-Reply-To: References: Message-ID: <53A85EAC.8000006@...1...> Le 23/06/2014 18:12, Rezedent12 . a ?crit : > Is it possible to dynamic multi-dimensional arrays? > > Static multi-dimensional array may declare Ps As New Integer [10,100] > > Dynamic dimensional possibly Ps As New Integer [] > > How to declare a dynamic multidimensional array? I tried Ps As New Integer > [,] but it is not syntactically correct. I decided to temporarily apply Ps > As New Integer [] []. Create a dynamic array of dynamic arrays. But this is > not what I need [x] [y], I need to [x, y]. Is it possible? > You can create dynamically an array with any number of dimensions and any size in each dimension, but once instanciated, you cannot modify the size and the number of dimensions. The only exception is arrays with one dimension, where the size can be increased or decreased. So: Dim myArray As Integer[] myArray = New Integer[Expr1, Expr2, Expr3] If you don't know the number of dimensions at design time, you have to do that: Dim myDimensions As Integer[] myArray = Object.New("Integer[]", myDimensions) Regards, -- Beno?t Minisini From bbruen at ...2308... Tue Jun 24 03:44:56 2014 From: bbruen at ...2308... (B Bruen) Date: Tue, 24 Jun 2014 11:14:56 +0930 Subject: [Gambas-user] Intermittent IDE crash when clicking on the run buton Message-ID: <20140624111456.14d88b0e750ab6e64a40f331@...2308...> Recently I have been getting a crash in the IDE when I click on the Run button. It is intermittent and I have not been able to isolate it any further. See attached pic. rev r6340 [System] Gambas=3.5.90 OperatingSystem=Linux Kernel=3.12.18-pclos2 Architecture=x86 Distribution=PCLinuxOS Desktop=LXDE Theme=QWindows Language=en_AU.UTF-8 Memory=1008M [Libraries] Cairo=libcairo.so.2.11200.16 Curl=libcurl.so.3.0.0 Curl=libcurl.so.4.3.0 DBus=libdbus-1.so.3.7.4 GStreamer=libgstreamer-0.10.so.0.30.0 GStreamer=libgstreamer-1.0.so.0.204.0 GTK+3=libgtk-3.so.0.1200.2 GTK+=libgtk-x11-2.0.so.0.2400.22 GTK+=libgtk-x11-2.0.so.0.600.10 OpenGL=libGL.so.1.2.0 OpenGL=libGL.so.173.14.39 OpenGL=libGL.so.96.43.23 Poppler=libpoppler.so.13.0.0 Poppler=libpoppler.so.19.0.0 Qt4=libQtCore.so.4.8.5 SDL=libSDL-1.2.so.0.11.3 regards Bruce -- B Bruen -------------- next part -------------- A non-text attachment was scrubbed... Name: gambas3_004.png Type: image/png Size: 13606 bytes Desc: not available URL: From adrien.prokopowicz at ...626... Tue Jun 24 16:36:11 2014 From: adrien.prokopowicz at ...626... (Adrien Prokopowicz) Date: Tue, 24 Jun 2014 16:36:11 +0200 Subject: [Gambas-user] Getting the "un-specialed" XMLElement.TextContent string In-Reply-To: <20140617090749.2661f2106de45633a82e080f@...2308...> References: <20140617090749.2661f2106de45633a82e080f@...2308...> Message-ID: Le Tue, 17 Jun 2014 01:37:49 +0200, B Bruen a ?crit: > (I'm sure I've done this before, but I can't find my prior code nor can > I find it in either of the help sites.) > > I just want to set a string variable to the text content of an element. > I am almost certain there was a way to have it automatically convert all > the "special character"s, like  , <, etc etc to their "normal" > representation. Is there such a function, or was I just dreaming? > > tia > Bruce > (Sorry about the late answer, I was quite busy these last few months ...) The XmlNode.TextContent property is actually what you're looking for : it defines the node's text content without these entities. For example, this little code : Dim doc As New XmlDocument doc.FromString("Fish & chips") 'This can be doc.Open(), doc.Content = "..." or whatever Print doc.ToString() Print doc.Root.TextContent ... will output this : Fish & chips Fish & chips Moreover, you have the static couple of methods XmlNode.Serialize() and XmlNode.Deserialize() that allow you to convert strings back and forth between the "with entities" and "without entities" representations. Regards, -- Adrien Prokopowicz From i_safiur at ...67... Tue Jun 24 19:43:11 2014 From: i_safiur at ...67... (Safiur Rahman) Date: Tue, 24 Jun 2014 17:43:11 +0000 Subject: [Gambas-user] How to deal with unicode Message-ID: I am converting an application to local language which uses "Devanagri" letters and numbers. I have changed System.Language to "ne_NP.UTF-8". My System.Charset is "UTF-8". I have little knowledge of lacalization methods used by gambas. My problems are: 1) Datebox displays month and week days in Devanagri but not the day numbers. 2) How can I write Devanagri numbers (eg. ??????????) in valuebox? 3) How can I do arithematical calculations using these numbers? 4) How can I save these numbers in database table with numerical type column? If I save English numbers in database then how can I display those numbers on application in Devanagri? 5) How can I create table columns in UTF-8. The gb.mysql works (ie. $hCon.MySQL.Table.Add("fldCost", "InnoDB", $hCon.MySQL.Charset) created column with UTF-8 type). However gb.db doesnot work wih mysql (ie. hTable = $con.Tables.Add("tbllabel") doesnot create column with UTF-8 type in MySQL database). I am using mariadb version 10. System Information: [System] Gambas=3.5.3 OperatingSystem=Linux Kernel=3.11.0-23-generic Architecture=x86 Distribution=Ubuntu 12.04.4 LTS Desktop=GNOME Theme=QGtk Language=en_US.UTF-8 Memory=1944M [Libraries] Cairo=libcairo.so.2.11000.2 Curl=libcurl.so.4.2.0 DBus=libdbus-1.so.3.5.8 GStreamer=libgstreamer-0.10.so.0.30.0 GStreamer=libgstreamer-1.0.so.0.1.0 GTK+=libgtk-x11-2.0.so.0.2400.10 OpenGL=libGL.so.1.2.0 Poppler=libpoppler.so.19.0.0 Qt4=libQtCore.so.4.8.1 SDL=libSDL-1.2.so.0.11.3 From jusabejusabe at ...626... Tue Jun 24 20:16:45 2014 From: jusabejusabe at ...626... (Julio Sanchez) Date: Tue, 24 Jun 2014 20:16:45 +0200 Subject: [Gambas-user] Request for the Gambas IDE: a way to query the help in an offline mode Message-ID: Request for the Gambas IDE: a way to query the help in an offline mode. Perhaps a path where Gambas look for local web pages or better, a way to download the wikigambas website and accessing the help without internet. Regards From Karl.Reinl at ...2345... Tue Jun 24 20:36:50 2014 From: Karl.Reinl at ...2345... (Charlie Reinl) Date: Tue, 24 Jun 2014 20:36:50 +0200 Subject: [Gambas-user] How to deal with unicode In-Reply-To: References: Message-ID: <1403635010.3449.2.camel@...40...> Am Dienstag, den 24.06.2014, 17:43 +0000 schrieb Safiur Rahman: > I am converting an application to local language which uses "Devanagri" letters and numbers. I have changed System.Language to "ne_NP.UTF-8". My System.Charset is "UTF-8". I have little knowledge of lacalization methods used by gambas. My problems are: > 1) Datebox displays month and week days in Devanagri but not the day numbers. > 2) How can I write Devanagri numbers (eg. ??????????) in valuebox? > 3) How can I do arithematical calculations using these numbers? > 4) How can I save these numbers in database table with numerical type column? If I save English numbers in database then how can I display those numbers on application in Devanagri? > 5) How can I create table columns in UTF-8. The gb.mysql works (ie. $hCon.MySQL.Table.Add("fldCost", "InnoDB", $hCon.MySQL.Charset) created column with UTF-8 type). However gb.db doesnot work wih mysql (ie. hTable = $con.Tables.Add("tbllabel") doesnot create column with UTF-8 type in MySQL database). I am using mariadb version 10. > > System Information: > [System] > Gambas=3.5.3 > OperatingSystem=Linux > Kernel=3.11.0-23-generic > Architecture=x86 > Distribution=Ubuntu 12.04.4 LTS > Desktop=GNOME > Theme=QGtk > Language=en_US.UTF-8 > Memory=1944M > [Libraries] > Cairo=libcairo.so.2.11000.2 > Curl=libcurl.so.4.2.0 > DBus=libdbus-1.so.3.5.8 > GStreamer=libgstreamer-0.10.so.0.30.0 > GStreamer=libgstreamer-1.0.so.0.1.0 > GTK+=libgtk-x11-2.0.so.0.2400.10 > OpenGL=libGL.so.1.2.0 > Poppler=libpoppler.so.19.0.0 > Qt4=libQtCore.so.4.8.1 > SDL=libSDL-1.2.so.0.11.3 > Salut, read the doc for UTF8 : http://gambasdoc.org/help/cat/string?show&v3 -- Amicalement Charlie From sbungay at ...3301... Tue Jun 24 22:29:40 2014 From: sbungay at ...3301... (Stephen) Date: Tue, 24 Jun 2014 16:29:40 -0400 Subject: [Gambas-user] Feature Request Message-ID: <53A9DFB4.1060907@...3301...> When adding new modules, classes, or forms the ability to select pre-existing code is good, an improvement would be enabling multi-select of those items, eliminating the need to loop through the RightClick->New->[Module/Class/Form]->Existing->[Selection]. Just a thought. -- Kindest Regards Stephen A. Bungay, Prop. Smarts On Site From herberthguzman at ...626... Tue Jun 24 22:38:17 2014 From: herberthguzman at ...626... (herberth guzman) Date: Tue, 24 Jun 2014 14:38:17 -0600 Subject: [Gambas-user] Desktop.X11 Systray Message-ID: hi Benoit No I thanked the transparent property has been very useful. Thank you. I am making changes to the project, myinnova (desktop configuration) is the easiest to customize. change in the panel (upper, lower, applets, background and more). I have a problem with the panel and systray if the form is not transparent everything works fine. and if i change the property to transparent=true gives the following error "Error segment violation" if I run gambas3 of new then closes. my code is as follows Public process_nm As Process if not commented this line fails process_nm = Shell "nm-applet > /dev/null 2>/dev/null" the program crashes and closes only if form.transparent=true can you help me please. regards Herberth Guzman From gambas at ...1... Tue Jun 24 22:40:27 2014 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Tue, 24 Jun 2014 22:40:27 +0200 Subject: [Gambas-user] Desktop.X11 Systray In-Reply-To: References: Message-ID: <53A9E23B.8080505@...1...> Le 24/06/2014 22:38, herberth guzman a ?crit : > hi Benoit > > No I thanked the transparent property has been very useful. Thank you. > > I am making changes to the project, myinnova (desktop configuration) is > the easiest to customize. > change in the panel (upper, lower, applets, background and more). > > I have a problem with the panel and systray > > if the form is not transparent everything works fine. > and if i change the property to transparent=true gives the following error > > "Error segment violation" > > if I run gambas3 of new then closes. > > my code is as follows > > Public process_nm As Process > > if not commented this line fails > process_nm = Shell "nm-applet > /dev/null 2>/dev/null" > > the program crashes and closes only if > form.transparent=true > > can you help me please. > > regards > > Herberth Guzman Without the source code I can't. -- Beno?t Minisini From herberthguzman at ...626... Tue Jun 24 22:41:38 2014 From: herberthguzman at ...626... (herberth guzman) Date: Tue, 24 Jun 2014 14:41:38 -0600 Subject: [Gambas-user] Form ALT+CLICK Not Move Message-ID: Hi benoit a question I need what a form (F_PANEL) to press ALT+CLICK what can NOT move the form. How I can do? thanks regards. herberth Guzman From herberthguzman at ...626... Tue Jun 24 22:50:07 2014 From: herberthguzman at ...626... (herberth guzman) Date: Tue, 24 Jun 2014 14:50:07 -0600 Subject: [Gambas-user] Window Manager Kwin ALT+TAB Message-ID: Hi Benoit if I use the window manager Kwin pressing ALT + TAB show the form(F_PANEL), I do not want to show it try to solve it with the new ATOM and gb.desktop.x11 I could not fix it. How I can fix I? with Openbox works well. works well with Mutter. Change _NET_WM_STATE_SKIP_PAGER _NET_WM_STATE_SKIP_TASKBAR _NET_WM_STATE_STICKY Regards Herberth Guzman From gambas at ...1... Tue Jun 24 22:51:36 2014 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Tue, 24 Jun 2014 22:51:36 +0200 Subject: [Gambas-user] Form ALT+CLICK Not Move In-Reply-To: References: Message-ID: <53A9E4D8.9070105@...1...> Le 24/06/2014 22:41, herberth guzman a ?crit : > Hi benoit > > a question > > I need what a form (F_PANEL) to press ALT+CLICK > what can NOT move the form. > > How I can do? > > thanks > > regards. > > herberth Guzman Sorry, I didn't understand what you said. -- Beno?t Minisini From gambas at ...1... Tue Jun 24 23:01:25 2014 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Tue, 24 Jun 2014 23:01:25 +0200 Subject: [Gambas-user] Window Manager Kwin ALT+TAB In-Reply-To: References: Message-ID: <53A9E725.9050403@...1...> Le 24/06/2014 22:50, herberth guzman a ?crit : > Hi Benoit > > if I use the window manager Kwin > pressing ALT + TAB show the form(F_PANEL), I do not want to show it > > try to solve it with the new ATOM and gb.desktop.x11 > I could not fix it. > > How I can fix I? > > with Openbox works well. > works well with Mutter. > > Change > > _NET_WM_STATE_SKIP_PAGER > _NET_WM_STATE_SKIP_TASKBAR > _NET_WM_STATE_STICKY > > > > Regards > Herberth Guzman You have the "SkipTaskbar" property to tell the window manager to not show the window in the taskbar, and so logically it won't be visible by ALT+TAB. Regards, -- Beno?t Minisini From herberthguzman at ...626... Tue Jun 24 23:04:38 2014 From: herberthguzman at ...626... (herberth guzman) Date: Tue, 24 Jun 2014 15:04:38 -0600 Subject: [Gambas-user] Desktop.X11 Systray Message-ID: ' Gambas module file M_SYSTRAY(MODULE) Public process_nm As Process Public Sub Start_SysTray() process_nm = Shell "nm-applet > /dev/null 2>/dev/null" X11Systray.Show(f_panel.draSystemTray.Handle) End Public Sub ArrangeTray() Dim I As Integer Dim X, Y, H As Integer X = 2 Y = 2 For I = 0 To X11Systray.Count - 1 With X11Systray[I] If (X + .IconW) >= (f_panel.draSystemTray.W - 2) Then X = 2 Y += H + 2 H = 0 Endif .Move(X, Y, .IconW, .IconH) H = Max(H, .IconH) X += .IconW + 2 End With Next End Public Sub X11Systray_Arrange() f_panel.ArrangeTray End ' Gambas class file FORM_PANEL Public id_win_active As Integer Public Language As String = M_Var.Language_System Public HPanel_app As Panel Public hToggle As ToggleButton Public cx As Connection Public rs As Result Public Sub Init() Dim desk_w As Integer = Desktop.W Desktop.Count = 2 m_kernel.ATOM_PANEL M_Systemtray.Start_SysTray End Public Sub _new() Me.TopOnly = True M_Global.Add(Me) m_kernel.Show_Img_Launcher m_kernel.init_img_start m_kernel.Show_Appearance_Taskbar End Public Sub Form_Open() Init Desktop_Windows draSystemTray_Arrange End Public Sub draSystemTray_Arrange() Dim DH As Integer Paint.Begin(draSystemTray) DH = 1 + draSystemTray.H / 16 Paint.End M_Systemtray.ArrangeTray End Static Public Sub X11Systray_Arrange() M_Systemtray.ArrangeTray End regards Herberth Guzman From gambas.fr at ...626... Tue Jun 24 23:11:30 2014 From: gambas.fr at ...626... (Fabien Bodard) Date: Tue, 24 Jun 2014 23:11:30 +0200 Subject: [Gambas-user] Form ALT+CLICK Not Move In-Reply-To: <53A9E4D8.9070105@...1...> References: <53A9E4D8.9070105@...1...> Message-ID: I think He want to disable the ability of x to move a windows with alt + mousedown Le 24 juin 2014 22:52, "Beno?t Minisini" a ?crit : > Le 24/06/2014 22:41, herberth guzman a ?crit : > > Hi benoit > > > > a question > > > > I need what a form (F_PANEL) to press ALT+CLICK > > what can NOT move the form. > > > > How I can do? > > > > thanks > > > > regards. > > > > herberth Guzman > > Sorry, I didn't understand what you said. > > -- > Beno?t Minisini > > > ------------------------------------------------------------------------------ > Open source business process management suite built on Java and Eclipse > Turn processes into business applications with Bonita BPM Community Edition > Quickly connect people, data, and systems into organized workflows > Winner of BOSSIE, CODIE, OW2 and Gartner awards > http://p.sf.net/sfu/Bonitasoft > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Tue Jun 24 23:38:05 2014 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Tue, 24 Jun 2014 23:38:05 +0200 Subject: [Gambas-user] Desktop.X11 Systray In-Reply-To: References: Message-ID: <53A9EFBD.1020907@...1...> Le 24/06/2014 23:04, herberth guzman a ?crit : > ' Gambas module file > > M_SYSTRAY(MODULE) > > Public process_nm As Process > > Public Sub Start_SysTray() > process_nm = Shell "nm-applet > /dev/null 2>/dev/null" > > X11Systray.Show(f_panel.draSystemTray.Handle) > End > > > Public Sub ArrangeTray() > > Dim I As Integer > Dim X, Y, H As Integer > > X = 2 > Y = 2 > For I = 0 To X11Systray.Count - 1 > With X11Systray[I] > If (X + .IconW) >= (f_panel.draSystemTray.W - 2) Then > X = 2 > Y += H + 2 > H = 0 > Endif > .Move(X, Y, .IconW, .IconH) > H = Max(H, .IconH) > X += .IconW + 2 > > End With > > Next > > End > > > Public Sub X11Systray_Arrange() > > f_panel.ArrangeTray > > End > > > ' Gambas class file > FORM_PANEL > > Public id_win_active As Integer > Public Language As String = M_Var.Language_System > Public HPanel_app As Panel > Public hToggle As ToggleButton > Public cx As Connection > Public rs As Result > > Public Sub Init() > Dim desk_w As Integer = Desktop.W > Desktop.Count = 2 > m_kernel.ATOM_PANEL > M_Systemtray.Start_SysTray > > End > > Public Sub _new() > > Me.TopOnly = True > M_Global.Add(Me) > m_kernel.Show_Img_Launcher > m_kernel.init_img_start > m_kernel.Show_Appearance_Taskbar > > > End > > Public Sub Form_Open() > Init > Desktop_Windows > > draSystemTray_Arrange > > End > > > Public Sub draSystemTray_Arrange() > > Dim DH As Integer > > Paint.Begin(draSystemTray) > DH = 1 + draSystemTray.H / 16 > Paint.End > M_Systemtray.ArrangeTray > > End > Static Public Sub X11Systray_Arrange() > > M_Systemtray.ArrangeTray > > End > > regards > > Herberth Guzman Please send the full project! I have to debug exactly what you have done. -- Beno?t Minisini From bbruen at ...2308... Wed Jun 25 01:03:01 2014 From: bbruen at ...2308... (B Bruen) Date: Wed, 25 Jun 2014 08:33:01 +0930 Subject: [Gambas-user] Getting the "un-specialed" XMLElement.TextContent string In-Reply-To: References: <20140617090749.2661f2106de45633a82e080f@...2308...> Message-ID: <20140625083301.8b719b816b14db8a9eef5ac8@...2308...> On Tue, 24 Jun 2014 16:36:11 +0200 "Adrien Prokopowicz" wrote: > Le Tue, 17 Jun 2014 01:37:49 +0200, B Bruen a > ?crit: > > > (I'm sure I've done this before, but I can't find my prior code nor can > > I find it in either of the help sites.) > > > > I just want to set a string variable to the text content of an element. > > I am almost certain there was a way to have it automatically convert all > > the "special character"s, like  , <, etc etc to their "normal" > > representation. Is there such a function, or was I just dreaming? > > > > tia > > Bruce > > > > (Sorry about the late answer, I was quite busy these last few months ...) > > The XmlNode.TextContent property is actually what you're looking for : it > defines the node's text content without these entities. For example, this > little code : > > Dim doc As New XmlDocument > > doc.FromString("Fish & chips") 'This can be doc.Open(), > doc.Content = "..." or whatever > > Print doc.ToString() > > Print doc.Root.TextContent > > ... will output this : > > Fish & chips > Fish & chips > > Moreover, you have the static couple of methods XmlNode.Serialize() and > XmlNode.Deserialize() that allow you to convert strings back and forth > between the "with entities" and "without entities" representations. > > Regards, > -- > Adrien Prokopowicz > Adrien, That's what I thought. But now I found my problem. The special characters are in the attributes of the element, not in the text content. Here's an example: (racenode is an XMLElement) ? racenode.Tostring(true) ( inner content excised ) I'm looking at a bit of code that is: $title = raceNode.Attributes["RaceName"] which ends up with the raw value, viz C,G&E 0 - 68 HANDICAP Is there a way to get an attribute value "de-specialed"? tia Bruce -- B Bruen From bbruen at ...2308... Wed Jun 25 01:23:59 2014 From: bbruen at ...2308... (B Bruen) Date: Wed, 25 Jun 2014 08:53:59 +0930 Subject: [Gambas-user] markdown to html? Message-ID: <20140625085359.8365e83f46863e1c79ba3be3@...2308...> @Beno?t Hi, could you tell me where (exactly) in the IDE code you convert markdown text to html please. I would like to use that code for my own nefarious purposes :-) tia Bruce -- B Bruen From bbruen at ...2308... Wed Jun 25 01:31:23 2014 From: bbruen at ...2308... (B Bruen) Date: Wed, 25 Jun 2014 09:01:23 +0930 Subject: [Gambas-user] constructor events Message-ID: <20140625090123.2a7f702e956f1e598596a9cc@...2308...> (I don't know whether I have already asked this.) Is it possible to raise events in a class constructor and trap them in an observing class? Looking at it, I don't think the object exists yet and so the answer appears to be no (and my experiments seem to bear this out) but I am asking anyway in case there is something I'm missing. tia Bruce -- B Bruen From gambas at ...1... Wed Jun 25 01:42:09 2014 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Wed, 25 Jun 2014 01:42:09 +0200 Subject: [Gambas-user] markdown to html? In-Reply-To: <20140625085359.8365e83f46863e1c79ba3be3@...2308...> References: <20140625085359.8365e83f46863e1c79ba3be3@...2308...> Message-ID: <53AA0CD1.2030901@...1...> Le 25/06/2014 01:23, B Bruen a ?crit : > @Beno?t > > Hi, could you tell me where (exactly) in the IDE code you convert > markdown text to html please. I would like to use that code for my > own nefarious purposes :-) > > tia Bruce > In the gb.markdown component in the development version. -- Beno?t Minisini From bbruen at ...2308... Wed Jun 25 02:30:03 2014 From: bbruen at ...2308... (B Bruen) Date: Wed, 25 Jun 2014 10:00:03 +0930 Subject: [Gambas-user] modifying an enumerated set during the loop Message-ID: <20140625100003.19591016b4708718d1da173a@...2308...> I realise that modifying the enumerated set during a For Each loop is fraught with danger but I do have a situation where this is "necessary". The following is a very simplified mock up of an anomaly in gambas that I am seeing. The real situation is complex, I'll explain it later in this post. The following code shows several variants of changing the enumerated set during the loop. (I could have also attached a source archive, but its probably quicker to just paste this in a new project main module.) The simulation is simply a "rocket launch count-down" . Public Sub Main() Dim aTest As String[] Dim sItem As String ' Run 1: Simple enumeration (obviously works) aTest = ["1", "2", "3", "4", "5", "6", "7", "8", "9", "10"] aTest.Reverse For Each sItem In aTest Print sItem Next Print "Blast off" ' Run 2: Nullify the whole array during the enumeration (continues as if enumeration is working on a copy) aTest = ["1", "2", "3", "4", "5", "6", "7", "8", "9", "10"] Debug aTest aTest.Reverse Debug aTest ' prove that this is not duping the`array For Each sItem In aTest Debug aTest Print sItem If sitem = "8" Then aTest = Null ' but the enumeration continues??? Next Print "Blast off" Print aTest = Null ' Delete (all) elements within the enumeration aTest = ["1", "2", "3", "4", "5", "6", "7", "8", "9", "10"] aTest.Reverse For Each sItem In aTest Print sItem If sitem = "8" Then aTest.Delete(0, aTest.Count) ' leaves a non-null but empty array, the loop exits once this has been executed Endif Next Print "Blast off" End Run 1 is just a simple enumeration, no changes are made to the set during the loop (sanity check !). In Run 2, when the count gets to 8 we nullify the entire array. However, the enumeration loop still continues and includes all the elements from the original array??? In Run 3, when the count gets to 8 we delete the entire array. Now the enumeration stops at that point. This is what I would expect in Run 2??? In our real situation, we receive a bunch of xml "packets" (a packet being a complete xml document) that are queued for processing in such an array. Quite often, the list of packets to be processed includes duplicate, or earlier, versions of some information relevant to a specific entity identified within the packet. So once we have processed the latest version, hence the array reversal, all packets containing earlier information regarding that entity are irrelevant. In the real code we don't actually delete or nullify the queue array, but use a separate routine to remove the elements in the array that are no longer relevant, sometimes this will empty the reversed array entirely (or at least the rest of it). Now, as the Run 3 example works as I expect, i.e. the loop is "truncated", generally everything is fine. But, there are uncommon, but not infrequent, situations where the entire array can be nullified, this is what scares me as the code that handles this entire mess is spread out over multiple tasks and such like. So, shouldn't the Run 2 loop truncate like Run 3? regards Bruce -- B Bruen From bbruen at ...2308... Wed Jun 25 02:34:41 2014 From: bbruen at ...2308... (B Bruen) Date: Wed, 25 Jun 2014 10:04:41 +0930 Subject: [Gambas-user] markdown to html? In-Reply-To: <53AA0CD1.2030901@...1...> References: <20140625085359.8365e83f46863e1c79ba3be3@...2308...> <53AA0CD1.2030901@...1...> Message-ID: <20140625100441.7c9a05d4f7e7b0f905448f85@...2308...> On Wed, 25 Jun 2014 01:42:09 +0200 Beno?t Minisini wrote: > Le 25/06/2014 01:23, B Bruen a ?crit : > > @Beno?t > > > > Hi, could you tell me where (exactly) in the IDE code you convert > > markdown text to html please. I would like to use that code for my > > own nefarious purposes :-) > > > > tia Bruce > > > > In the gb.markdown component in the development version. > > -- > Beno?t Minisini > Doh! :-\ I've been trying to find it in the IDE help code. Thanks Bruce -- B Bruen From gambas at ...1... Wed Jun 25 02:43:11 2014 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Wed, 25 Jun 2014 02:43:11 +0200 Subject: [Gambas-user] modifying an enumerated set during the loop In-Reply-To: <20140625100003.19591016b4708718d1da173a@...2308...> References: <20140625100003.19591016b4708718d1da173a@...2308...> Message-ID: <53AA1B1F.3030706@...1...> Le 25/06/2014 02:30, B Bruen a ?crit : > I realise that modifying the enumerated set during a For Each loop is > fraught with danger but I do have a situation where this is > "necessary". The following is a very simplified mock up of an anomaly > in gambas that I am seeing. The real situation is complex, I'll > explain it later in this post. > > The following code shows several variants of changing the enumerated > set during the loop. (I could have also attached a source archive, > but its probably quicker to just paste this in a new project main > module.) The simulation is simply a "rocket launch count-down" . > > Public Sub Main() > > Dim aTest As String[] Dim sItem As String > > ' Run 1: Simple enumeration (obviously works) aTest = ["1", "2", "3", > "4", "5", "6", "7", "8", "9", "10"] aTest.Reverse For Each sItem In > aTest Print sItem Next Print "Blast off" > > ' Run 2: Nullify the whole array during the enumeration (continues as > if enumeration is working on a copy) aTest = ["1", "2", "3", "4", > "5", "6", "7", "8", "9", "10"] Debug aTest aTest.Reverse Debug aTest > ' prove that this is not duping the`array For Each sItem In aTest > Debug aTest Print sItem If sitem = "8" Then aTest = Null ' but the > enumeration continues??? Next Print "Blast off" Print aTest = Null > > ' Delete (all) elements within the enumeration aTest = ["1", "2", > "3", "4", "5", "6", "7", "8", "9", "10"] aTest.Reverse For Each sItem > In aTest Print sItem If sitem = "8" Then aTest.Delete(0, aTest.Count) > ' leaves a non-null but empty array, the loop exits once this has > been executed Endif Next Print "Blast off" > > End > > Run 1 is just a simple enumeration, no changes are made to the set > during the loop (sanity check !). In Run 2, when the count gets to 8 > we nullify the entire array. However, the enumeration loop still > continues and includes all the elements from the original array??? In > Run 3, when the count gets to 8 we delete the entire array. Now the > enumeration stops at that point. This is what I would expect in Run > 2??? > > In our real situation, we receive a bunch of xml "packets" (a packet > being a complete xml document) that are queued for processing in such > an array. Quite often, the list of packets to be processed includes > duplicate, or earlier, versions of some information relevant to a > specific entity identified within the packet. So once we have > processed the latest version, hence the array reversal, all packets > containing earlier information regarding that entity are irrelevant. > > In the real code we don't actually delete or nullify the queue array, > but use a separate routine to remove the elements in the array that > are no longer relevant, sometimes this will empty the reversed array > entirely (or at least the rest of it). Now, as the Run 3 example > works as I expect, i.e. the loop is "truncated", generally everything > is fine. But, there are uncommon, but not infrequent, situations > where the entire array can be nullified, this is what scares me as > the code that handles this entire mess is spread out over multiple > tasks and such like. > > So, shouldn't the Run 2 loop truncate like Run 3? > > regards Bruce > No. An array is an object, and aTest a variable that owns a *reference* to the array. If you set aTest to NULL, you just remove the reference, not the array by itself, which is referenced by the FOR EACH instruction until it ends. -- Beno?t Minisini From bbruen at ...2308... Wed Jun 25 02:53:55 2014 From: bbruen at ...2308... (B Bruen) Date: Wed, 25 Jun 2014 10:23:55 +0930 Subject: [Gambas-user] modifying an enumerated set during the loop In-Reply-To: <53AA1B1F.3030706@...1...> References: <20140625100003.19591016b4708718d1da173a@...2308...> <53AA1B1F.3030706@...1...> Message-ID: <20140625102355.16f0bb1833dcd195e9f6259b@...2308...> On Wed, 25 Jun 2014 02:43:11 +0200 Beno?t Minisini wrote: > Le 25/06/2014 02:30, B Bruen a ?crit : > > I realise that modifying the enumerated set during a For Each loop is (Cut) > > No. An array is an object, and aTest a variable that owns a *reference* > to the array. If you set aTest to NULL, you just remove the reference, > not the array by itself, which is referenced by the FOR EACH instruction > until it ends. > > -- > Beno?t Minisini > Ah, OK. So using If Not aTest Then Break during the loop appears to resolve the situation. thanks Bruce -- B Bruen From bbruen at ...2308... Wed Jun 25 02:56:01 2014 From: bbruen at ...2308... (B Bruen) Date: Wed, 25 Jun 2014 10:26:01 +0930 Subject: [Gambas-user] markdown to html? In-Reply-To: <20140625100441.7c9a05d4f7e7b0f905448f85@...2308...> References: <20140625085359.8365e83f46863e1c79ba3be3@...2308...> <53AA0CD1.2030901@...1...> <20140625100441.7c9a05d4f7e7b0f905448f85@...2308...> Message-ID: <20140625102601.04b5bd4fc7fc1860107c0ef3@...2308...> On Wed, 25 Jun 2014 10:04:41 +0930 B Bruen wrote: > On Wed, 25 Jun 2014 01:42:09 +0200 > Beno?t Minisini wrote: > > > Le 25/06/2014 01:23, B Bruen a ?crit : > > > @Beno?t > > > > > > Hi, could you tell me where (exactly) in the IDE code you convert > > > markdown text to html please. I would like to use that code for my > > > own nefarious purposes :-) > > > > > > tia Bruce > > > > > > > In the gb.markdown component in the development version. > > > > -- > > Beno?t Minisini > > In the Markdown.class you have the Create keyword appearing by itself (line 4). This does not appear to be covered by the Help. What does that do? tia Bruce -- B Bruen From bbruen at ...2308... Wed Jun 25 03:26:16 2014 From: bbruen at ...2308... (B Bruen) Date: Wed, 25 Jun 2014 10:56:16 +0930 Subject: [Gambas-user] Sorting gridviews Message-ID: <20140625105616.edaa063abf068c443e4ae799@...2308...> Someone, recently, was discussing sorting gridviews over multiple columns. Tobi? Was any progress made on this? (Gee, I am having a busy day today, aren't I? :-) Actually, we are cleaning up a lot of old outstanding things.) tia Bruce -- B Bruen From herberthguzman at ...626... Wed Jun 25 04:00:08 2014 From: herberthguzman at ...626... (herberth guzman) Date: Tue, 24 Jun 2014 20:00:08 -0600 Subject: [Gambas-user] Window Manager Kwin ALT+TAB Message-ID: Benoit Thank you for your answers. i have the SkipTaskbar property, but: with openbox not problem. ALT+TAB not show the form(f_panel) with kwin i have problem. ALT+TAB show the form(f_panel) Regard Herberth Guzm?n From herberthguzman at ...626... Wed Jun 25 04:12:51 2014 From: herberthguzman at ...626... (herberth guzman) Date: Tue, 24 Jun 2014 20:12:51 -0600 Subject: [Gambas-user] Desktop.X11 Systray Message-ID: Hi Benoit The example of the panel you can download from the following link. The problem is when you convert the form into transparent. https://drive.google.com/file/d/0B2gI4jYOofp0dUh2QXZta05ydEE/edit?usp=sharing If you need the code for innova desktop, glad to command. Regards and thanks Benoit herberth Guzman From herberthguzman at ...626... Wed Jun 25 04:19:08 2014 From: herberthguzman at ...626... (herberth guzman) Date: Tue, 24 Jun 2014 20:19:08 -0600 Subject: [Gambas-user] Desktop.X11 Systray Message-ID: Sorry the previous mail send the wrong link. This link is correct. Hi Benoit The example of the panel you can download from the following link. The problem is when you convert the form into transparent. Link OK https://docs.google.com/file/d/0B2gI4jYOofp0STRLYnkzdnMwQlU/edit If you need the code for innova desktop, glad to command. Regards and thanks Benoit From herberthguzman at ...626... Wed Jun 25 04:27:32 2014 From: herberthguzman at ...626... (herberth guzman) Date: Tue, 24 Jun 2014 20:27:32 -0600 Subject: [Gambas-user] Desktop.X11 Systray Message-ID: Not is Spam Sorry Sorry Sorry the previous mail send and previous the wrong link. This link is correct, OkOk Hi Benoit Sorry The example of the panel you can download from the following link. The problem is when you convert the form into transparent. Link OKOKOK https://drive.google.com/file/d/0B2gI4jYOofp0UlU3T3dMb3A0eUU/edit?usp=sharing If you need the code for innova desktop, glad to command. Regards Benoit Herberth Guzman From bbruen at ...2308... Wed Jun 25 04:32:42 2014 From: bbruen at ...2308... (B Bruen) Date: Wed, 25 Jun 2014 12:02:42 +0930 Subject: [Gambas-user] Wishlist : gb.form.mdi ToolBar Message-ID: <20140625120242.ed25c80e9b6eb259c4c8fb83@...2308...> Is there any reason that the ToolBar control is constrained within gb.form.mdi? I use it consistently, without needing the other controls in gb.form.mdi and would really like to see it just within gb.form as a general control. Maybe gb4? regards Bruce -- B Bruen From herberthguzman at ...626... Wed Jun 25 04:34:09 2014 From: herberthguzman at ...626... (herberth guzman) Date: Tue, 24 Jun 2014 20:34:09 -0600 Subject: [Gambas-user] Form ALT+CLICK Not Move Message-ID: Fabien I think He want to disable the ability of x to move a windows with alt + mousedown Benoit Fabien says what is right. What I need is to disable the ability of x to move a windows with alt + mousedown Thanks Regards, Herberth From bbruen at ...2308... Wed Jun 25 05:23:41 2014 From: bbruen at ...2308... (B Bruen) Date: Wed, 25 Jun 2014 12:53:41 +0930 Subject: [Gambas-user] Form ALT+CLICK Not Move In-Reply-To: References: Message-ID: <20140625125341.e9acb32f74ea2476d417d687@...2308...> On Tue, 24 Jun 2014 20:34:09 -0600 herberth guzman wrote: > Fabien > I think He want to disable the ability of x to move a windows with alt + > mousedown > > Benoit > Fabien says what is right. What I need is to disable the ability of x to > move a windows with alt + mousedown > > > Thanks > > Regards, > > Herberth Herbeth, Be careful of what you wish for. Moving a window is a user decision. I have a non-gambas application (a uml toolkit) that does this and it is an almighty pain in the ARS*! In fact I avoid using it as much as possible. Consider a situation where a user has multiple monitors. Claiming the central or startup monitor as "MINE" could be considered rude at least .... Bruce -- B Bruen From bbruen at ...2308... Wed Jun 25 05:38:10 2014 From: bbruen at ...2308... (B Bruen) Date: Wed, 25 Jun 2014 13:08:10 +0930 Subject: [Gambas-user] Form ALT+CLICK Not Move In-Reply-To: <20140625125341.e9acb32f74ea2476d417d687@...2308...> References: <20140625125341.e9acb32f74ea2476d417d687@...2308...> Message-ID: <20140625130810.e5b6aaac8aa82c13f4db0aab@...2308...> On Wed, 25 Jun 2014 12:53:41 +0930 B Bruen wrote: > On Tue, 24 Jun 2014 20:34:09 -0600 > herberth guzman wrote: > > > Fabien > > I think He want to disable the ability of x to move a windows with alt + > > mousedown > > > > Benoit > > Fabien says what is right. What I need is to disable the ability of x to > > move a windows with alt + mousedown > > > > > > Thanks > > > > Regards, > > > > Herberth > > Herbeth, > > Be careful of what you wish for. Moving a window is a user decision. I have a non-gambas application (a uml toolkit) that does this and it is an almighty pain in the ARS*! In fact I avoid using it as much as possible. Consider a situation where a user has multiple monitors. Claiming the central or startup monitor as "MINE" could be considered rude at least .... > > Bruce > > -- > B Bruen > > And as a perfect example, we work in a situation where there is a W*ND*Ws POS touchscreen system alongside our linux based screens. When their POS collapses the error popup falls behind the screen-grabbing POS application, which then appears totally locked. On the other hand, if something terrible happens to our screen app then Alt-Tab and Alt+mousemove lets us find the error popup. I wish I had a $ for each time the user has watched me drag the main window aside, get the error and click the "FixThis" button ... and then said "Well why cant you do that here too????" .... best wishes, I suppose you have reasons. B -- B Bruen From bbruen at ...2308... Wed Jun 25 06:07:33 2014 From: bbruen at ...2308... (B Bruen) Date: Wed, 25 Jun 2014 13:37:33 +0930 Subject: [Gambas-user] Form ALT+CLICK Not Move In-Reply-To: <20140625130810.e5b6aaac8aa82c13f4db0aab@...2308...> References: <20140625125341.e9acb32f74ea2476d417d687@...2308...> <20140625130810.e5b6aaac8aa82c13f4db0aab@...2308...> Message-ID: <20140625133733.3bf3e475f74f67f583f0536a@...2308...> On Wed, 25 Jun 2014 13:08:10 +0930 B Bruen wrote: > On Wed, 25 Jun 2014 12:53:41 +0930 > B Bruen wrote: > > > On Tue, 24 Jun 2014 20:34:09 -0600 > > herberth guzman wrote: > > > > > Fabien > > > I think He want to disable the ability of x to move a windows with alt + > > > mousedown > > > > > > Benoit > > > Fabien says what is right. What I need is to disable the ability of x to > > > move a windows with alt + mousedown > > > > > > > > > Thanks > > > > > > Regards, > > > > > > Herberth > > > > Herbeth, > > > > Be careful of what you wish for. Moving a window is a user decision. I have a non-gambas application (a uml toolkit) that does this and it is an almighty pain in the ARS*! In fact I avoid using it as much as possible. Consider a situation where a user has multiple monitors. Claiming the central or startup monitor as "MINE" could be considered rude at least .... > > > > Bruce > > > > -- > > B Bruen > > > > > > And as a perfect example, we work in a situation where there is a W*ND*Ws POS touchscreen system alongside our linux based screens. When their POS collapses the error popup falls behind the screen-grabbing POS application, which then appears totally locked. On the other hand, if something terrible happens to our screen app then Alt-Tab and Alt+mousemove lets us find the error popup. > > I wish I had a $ for each time the user has watched me drag the main window aside, get the error and click the "FixThis" button ... and then said "Well why cant you do that here too????" .... > > best wishes, I suppose you have reasons. > > B > And here's my favourite example of linux gui stupidity. (not the uml modeller mentioned above by the way). Modelio. Modelio is a java UML tool. When you start it, which takes the standard 15 seconds or so, they display a flash screen that occupies every virtual desktop. Unmoveable and unhideable. Great, I could answer 3 emails in that time ... if I could see them. 8 desktops and every one of them has a bloody great red box of meaningless artistic bulldust in the middle of it. User friendly rating - visceral. -- B Bruen From gambas.fr at ...626... Wed Jun 25 09:15:01 2014 From: gambas.fr at ...626... (Fabien Bodard) Date: Wed, 25 Jun 2014 09:15:01 +0200 Subject: [Gambas-user] constructor events In-Reply-To: <20140625090123.2a7f702e956f1e598596a9cc@...2308...> References: <20140625090123.2a7f702e956f1e598596a9cc@...2308...> Message-ID: I really dont understand in what case it can be usefull Your observer in all case will be created after the object so in this case just call a subroutine will do the same If you need an info during the init you can give it as param Please give more explanation of what you want to achieve Regards Fabien Le 25 juin 2014 01:32, "B Bruen" a ?crit : > (I don't know whether I have already asked this.) > > Is it possible to raise events in a class constructor and trap them in an > observing class? > Looking at it, I don't think the object exists yet and so the answer > appears to be no (and my experiments seem to bear this out) but I am asking > anyway in case there is something I'm missing. > > tia > Bruce > > -- > B Bruen > > > ------------------------------------------------------------------------------ > Open source business process management suite built on Java and Eclipse > Turn processes into business applications with Bonita BPM Community Edition > Quickly connect people, data, and systems into organized workflows > Winner of BOSSIE, CODIE, OW2 and Gartner awards > http://p.sf.net/sfu/Bonitasoft > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas.fr at ...626... Wed Jun 25 09:21:30 2014 From: gambas.fr at ...626... (Fabien Bodard) Date: Wed, 25 Jun 2014 09:21:30 +0200 Subject: [Gambas-user] Getting the "un-specialed" XMLElement.TextContent string In-Reply-To: <20140625083301.8b719b816b14db8a9eef5ac8@...2308...> References: <20140617090749.2661f2106de45633a82e080f@...2308...> <20140625083301.8b719b816b14db8a9eef5ac8@...2308...> Message-ID: Le 25 juin 2014 01:04, "B Bruen" a ?crit : > > On Tue, 24 Jun 2014 16:36:11 +0200 > "Adrien Prokopowicz" wrote: > > > Le Tue, 17 Jun 2014 01:37:49 +0200, B Bruen a > > ?crit: > > > > > (I'm sure I've done this before, but I can't find my prior code nor can > > > I find it in either of the help sites.) > > > > > > I just want to set a string variable to the text content of an element. > > > I am almost certain there was a way to have it automatically convert all > > > the "special character"s, like  , <, etc etc to their "normal" > > > representation. Is there such a function, or was I just dreaming? > > > > > > tia > > > Bruce > > > > > > > (Sorry about the late answer, I was quite busy these last few months ...) > > > > The XmlNode.TextContent property is actually what you're looking for : it > > defines the node's text content without these entities. For example, this > > little code : > > > > Dim doc As New XmlDocument > > > > doc.FromString("Fish & chips") 'This can be doc.Open(), > > doc.Content = "..." or whatever > > > > Print doc.ToString() > > > > Print doc.Root.TextContent > > > > ... will output this : > > > > Fish & chips > > Fish & chips > > > > Moreover, you have the static couple of methods XmlNode.Serialize() and > > XmlNode.Deserialize() that allow you to convert strings back and forth > > between the "with entities" and "without entities" representations. > > > > Regards, > > -- > > Adrien Prokopowicz > > > Adrien, > > That's what I thought. But now I found my problem. > > The special characters are in the attributes of the element, not in the text content. Here's an example: > > (racenode is an XMLElement) > > ? racenode.Tostring(true) > > ( inner content excised ) > > > I'm looking at a bit of code that is: > $title = raceNode.Attributes["RaceName"] > which ends up with the raw value, viz > C,G&E 0 - 68 HANDICAP > > Is there a way to get an attribute value "de-specialed"? $title = xmlnode.deserialize(raceNode.Attributes["RaceName"]) No? B-) > > tia > Bruce > -- > B Bruen > > ------------------------------------------------------------------------------ > Open source business process management suite built on Java and Eclipse > Turn processes into business applications with Bonita BPM Community Edition > Quickly connect people, data, and systems into organized workflows > Winner of BOSSIE, CODIE, OW2 and Gartner awards > http://p.sf.net/sfu/Bonitasoft > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From gambas.fr at ...626... Wed Jun 25 12:34:59 2014 From: gambas.fr at ...626... (Fabien Bodard) Date: Wed, 25 Jun 2014 12:34:59 +0200 Subject: [Gambas-user] Form ALT+CLICK Not Move In-Reply-To: <20140625133733.3bf3e475f74f67f583f0536a@...2308...> References: <20140625125341.e9acb32f74ea2476d417d687@...2308...> <20140625130810.e5b6aaac8aa82c13f4db0aab@...2308...> <20140625133733.3bf3e475f74f67f583f0536a@...2308...> Message-ID: In this case I think it's for a panel Le 25 juin 2014 06:08, "B Bruen" a ?crit : > On Wed, 25 Jun 2014 13:08:10 +0930 > B Bruen wrote: > > > On Wed, 25 Jun 2014 12:53:41 +0930 > > B Bruen wrote: > > > > > On Tue, 24 Jun 2014 20:34:09 -0600 > > > herberth guzman wrote: > > > > > > > Fabien > > > > I think He want to disable the ability of x to move a windows with > alt + > > > > mousedown > > > > > > > > Benoit > > > > Fabien says what is right. What I need is to disable the ability of > x to > > > > move a windows with alt + mousedown > > > > > > > > > > > > Thanks > > > > > > > > Regards, > > > > > > > > Herberth > > > > > > Herbeth, > > > > > > Be careful of what you wish for. Moving a window is a user decision. > I have a non-gambas application (a uml toolkit) that does this and it is > an almighty pain in the ARS*! In fact I avoid using it as much as > possible. Consider a situation where a user has multiple monitors. Claiming > the central or startup monitor as "MINE" could be considered rude at least > .... > > > > > > Bruce > > > > > > -- > > > B Bruen > > > > > > > > > > And as a perfect example, we work in a situation where there is a > W*ND*Ws POS touchscreen system alongside our linux based screens. When > their POS collapses the error popup falls behind the screen-grabbing POS > application, which then appears totally locked. On the other hand, if > something terrible happens to our screen app then Alt-Tab and Alt+mousemove > lets us find the error popup. > > > > I wish I had a $ for each time the user has watched me drag the main > window aside, get the error and click the "FixThis" button ... and then > said "Well why cant you do that here too????" .... > > > > best wishes, I suppose you have reasons. > > > > B > > > > And here's my favourite example of linux gui stupidity. (not the uml > modeller mentioned above by the way). Modelio. Modelio is a java UML > tool. When you start it, which takes the standard 15 seconds or so, they > display a flash screen that occupies every virtual desktop. Unmoveable > and unhideable. Great, I could answer 3 emails in that time ... if I could > see them. 8 desktops and every one of them has a bloody great red box of > meaningless artistic bulldust in the middle of it. User friendly rating - > visceral. > -- > B Bruen > > > ------------------------------------------------------------------------------ > Open source business process management suite built on Java and Eclipse > Turn processes into business applications with Bonita BPM Community Edition > Quickly connect people, data, and systems into organized workflows > Winner of BOSSIE, CODIE, OW2 and Gartner awards > http://p.sf.net/sfu/Bonitasoft > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...2524... Wed Jun 25 13:05:04 2014 From: gambas at ...2524... (gambas at ...2524...) Date: Wed, 25 Jun 2014 11:05:04 +0000 Subject: [Gambas-user] Issue 531 in gambas: Gambas3 has a non-redistributable file (PHP license) Message-ID: <0-6813199134517018827-3522637678684863622-gambas=googlecode.com@...2524...> Status: New Owner: ---- Labels: Version-3.5.0 Type-Bug Priority-Medium OpSys-Any Dist-Any Arch-Any Desktop-Any GUI-Any New issue 531 by costamag... at ...626...: Gambas3 has a non-redistributable file (PHP license) http://code.google.com/p/gambas/issues/detail?id=531 Quoting from https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=752625 gambas3 combines code released under the GPL with code released under the PHP license in main/lib/image/image_stat.c. As the GPL and PHP license are incompatible[1], this makes the package not distributable. [1] thanks -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From gambas at ...2524... Wed Jun 25 13:21:41 2014 From: gambas at ...2524... (gambas at ...2524...) Date: Wed, 25 Jun 2014 11:21:41 +0000 Subject: [Gambas-user] Issue 531 in gambas: Gambas3 has a non-redistributable file (PHP license) In-Reply-To: <0-6813199134517018827-3522637678684863622-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-3522637678684863622-gambas=googlecode.com@...2524...> Message-ID: <1-6813199134517018827-3522637678684863622-gambas=googlecode.com@...2524...> Updates: Status: Accepted Comment #1 on issue 531 by benoit.m... at ...626...: Gambas3 has a non-redistributable file (PHP license) http://code.google.com/p/gambas/issues/detail?id=531 Oops. I thought that PHP was free software compatible with GNU... I will rewrite the code. -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From gambas at ...2524... Wed Jun 25 13:22:41 2014 From: gambas at ...2524... (gambas at ...2524...) Date: Wed, 25 Jun 2014 11:22:41 +0000 Subject: [Gambas-user] Issue 530 in gambas: Bottom part of Target distribution dialog box is missing In-Reply-To: <2-6813199134517018827-9852596366090609272-gambas=googlecode.com@...2524...> References: <2-6813199134517018827-9852596366090609272-gambas=googlecode.com@...2524...> <0-6813199134517018827-9852596366090609272-gambas=googlecode.com@...2524...> Message-ID: <3-6813199134517018827-9852596366090609272-gambas=googlecode.com@...2524...> Updates: Status: WontFix Comment #3 on issue 530 by benoit.m... at ...626...: Bottom part of Target distribution dialog box is missing http://code.google.com/p/gambas/issues/detail?id=530 (No comment was entered for this change.) -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From gambas at ...2524... Wed Jun 25 13:23:41 2014 From: gambas at ...2524... (gambas at ...2524...) Date: Wed, 25 Jun 2014 11:23:41 +0000 Subject: [Gambas-user] Issue 531 in gambas: Gambas3 has a non-redistributable file (PHP license) In-Reply-To: <1-6813199134517018827-3522637678684863622-gambas=googlecode.com@...2524...> References: <1-6813199134517018827-3522637678684863622-gambas=googlecode.com@...2524...> <0-6813199134517018827-3522637678684863622-gambas=googlecode.com@...2524...> Message-ID: <2-6813199134517018827-3522637678684863622-gambas=googlecode.com@...2524...> Comment #2 on issue 531 by gianfran... at ...3351...: Gambas3 has a non-redistributable file (PHP license) http://code.google.com/p/gambas/issues/detail?id=531 Many thanks! -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From taboege at ...626... Wed Jun 25 13:51:42 2014 From: taboege at ...626... (Tobias Boege) Date: Wed, 25 Jun 2014 13:51:42 +0200 Subject: [Gambas-user] Sorting gridviews In-Reply-To: <20140625105616.edaa063abf068c443e4ae799@...2308...> References: <20140625105616.edaa063abf068c443e4ae799@...2308...> Message-ID: <20140625115142.GA971@...2774...> On Wed, 25 Jun 2014, B Bruen wrote: > Someone, recently, was discussing sorting gridviews over multiple columns. Tobi? > > Was any progress made on this? > The project was finished some time ago. But likely the results will not please you because the code is not very integrative. Basically, we model the GridView as an array of Record objects (the array is the rows, a Record describes the columns in the GridView). By a special RecordArray class which Inherits Record[] and a special _compare() method in Record, we can sort that RecordArray by any property of the Record objects. So you must write a Record class for your specific purpose and have an array of them behind the scenes to populate the GridView with. Maybe you can tweak the code to be a bit more general... if you get it much more general, please tell me :-) [ IIRC, we have a SortField property in each Record object which we need to set for each object in the array before we sort. I think you can replace that with a static property if you never sort multiple arrays at the same time... ] The code for the GridView is here[0] and also here[1] in the more abstract context of sorting multidimensional arrays. (The project archives are at the end of the article.) Regards, Tobi [0] http://www.gambas-buch.de/dw/doku.php?id=k17:k17.7:k17.7.4:start [1] http://www.gambas-buch.de/dw/doku.php?id=k7:k7.4:k7.4.9:k7.4.9.4:start PS: I would prefer [1] over [0]. The code used in [0] was actually an early try from me and it uses the officially not supported possibility to override Variant[]. (Variant[] acts as both, a Record object and also as an array class for Variant[] objects there!) -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From herberthguzman at ...626... Wed Jun 25 17:21:45 2014 From: herberthguzman at ...626... (herberth guzman) Date: Wed, 25 Jun 2014 09:21:45 -0600 Subject: [Gambas-user] Form ALT+CLICK Not Move Message-ID: brus I'm make a panel for my desktop. and what I need is that the user can not move the panel to push ALT + CLICK MOUSE. I do not understand because I stretched out on the subject. From gambas at ...2524... Thu Jun 26 01:08:21 2014 From: gambas at ...2524... (gambas at ...2524...) Date: Wed, 25 Jun 2014 23:08:21 +0000 Subject: [Gambas-user] Issue 432 in gambas: Crash with Paste Special feature In-Reply-To: <1-6813199134517018827-11210059805114163329-gambas=googlecode.com@...2524...> References: <1-6813199134517018827-11210059805114163329-gambas=googlecode.com@...2524...> <0-6813199134517018827-11210059805114163329-gambas=googlecode.com@...2524...> Message-ID: <2-6813199134517018827-11210059805114163329-gambas=googlecode.com@...2524...> Comment #2 on issue 432 by jussi.la... at ...626...: Crash with Paste Special feature http://code.google.com/p/gambas/issues/detail?id=432 The problem seems to be fixed, at least I cannot reproduce it with revision 6340. -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From bbruen at ...2308... Thu Jun 26 05:17:25 2014 From: bbruen at ...2308... (B Bruen) Date: Thu, 26 Jun 2014 12:47:25 +0930 Subject: [Gambas-user] Getting the "un-specialed" XMLElement.TextContent string In-Reply-To: References: <20140617090749.2661f2106de45633a82e080f@...2308...> <20140625083301.8b719b816b14db8a9eef5ac8@...2308...> Message-ID: <20140626124725.e4f7f85b871520974c1e7496@...2308...> On Wed, 25 Jun 2014 09:21:30 +0200 Fabien Bodard wrote: > $title = xmlnode.deserialize(raceNode.Attributes["RaceName"]) > > No? B-) Ah, OK. Thanks, the fact that it was a static function hadn't sunk in. regards Bruce -- B Bruen From bbruen at ...2308... Thu Jun 26 06:00:22 2014 From: bbruen at ...2308... (B Bruen) Date: Thu, 26 Jun 2014 13:30:22 +0930 Subject: [Gambas-user] constructor events In-Reply-To: References: <20140625090123.2a7f702e956f1e598596a9cc@...2308...> Message-ID: <20140626133022.947b8fc0ced50f85d7121531@...2308...> On Wed, 25 Jun 2014 09:15:01 +0200 Fabien Bodard wrote: > I really dont understand in what case it can be usefull > > Your observer in all case will be created after the object so in this case > just call a subroutine will do the same > > If you need an info during the init you can give it as param > > Please give more explanation of what you want to achieve > > Regards > > Fabien It's to do with a class that handles a continuous XML feed for a set of similar feeds. So we have a main form class that creates up to 15 or so instances of a "feed watcher" class, each looking at one specific thread. We have certain handlers in the main class that respond to events raised in the feed-watcher class. Once the feed-watcher object is fully instantiated these event handlers work fine and the set of feeds is managed fine. However, some of these events can occur during the feed-watcher constructor execution. Since we already have the code to handle them in the main form, I was hoping to not have to create special error conditions etc sent back from the feed-watcher._new method, but just to raise the relevant during the constructor. The feeds are from a url like "www.xyz.com/auctions/lots.aspx?year=2014&month=6&day=26&lot=113#1". Where 113 is one of a set of lot numbers we are interested in. These feed-watchers set up the download structure, get the initial xml result and parse it (read on), then wake up on a timer basis and re-request the same url, get the result (its an XML document), parse it and depending on some changes to the parsed information, raise events that signal to the main form that something has to be done, for example, the bidding on that lot has started, finished, etc . As it's an internet based feed, there are some other things that can also happen that we need to handle - download errors, loss of connection etc. Further, depending on the auction house concerned, setting up the download structure and getting the initial packet is complex. So we have a set of these feed-watcher classes specialised to handle that initial work. The problem is that some of the conditions that result in the raising of these events can also happen during the construction of the feed-watcher object, e.g. loss of connection, but also some of the information based events, e.g the requested lot has been "cancelled" etc. As I said, once the feed is established,everything works fine. It's just that initial phase. The more I think about it, the more I am convinced that it cannot work the way we have designed and written it. And we will have to split the initial phase into a constructor and an "Initialise" method. So never mind. (Well, you did ask :-) ) regards Bruce -- B Bruen From herberthguzman at ...626... Thu Jun 26 18:51:19 2014 From: herberthguzman at ...626... (herberth guzman) Date: Thu, 26 Jun 2014 10:51:19 -0600 Subject: [Gambas-user] X11Systray+GB.QT4+DrawingArea Message-ID: Hi Benoit I know Gambas3.6 is under development, But the idea is to help improve Gambas3. I was watching these days on the error, the same Example of gambas3 systray have error. 1 - With gb.gui and gb.gtk3 component and the systray does not work and when you switch to gb.qt4 works well. 2 - If you change the form.transparent = true property you will realize that does not work, gives error "Violation of section 11" and gambas3 stops. 3 - I'm not sure that the problem is in integrating the form.transparent = true and when DrawingArea X11Systray use. 4 - Y form.transparent=true the same application using libreoffice + scroll mouse gives the same error: Violation of segment 11 and gambas3 stops. It is unusual and very rare. How I can fix these little problems? Thanks and Regards. Herberth Guzm?n From mckaygerhard at ...626... Thu Jun 26 20:53:22 2014 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Thu, 26 Jun 2014 14:23:22 -0430 Subject: [Gambas-user] how to override opengl pkg-config requirements??? building gambas from trunk Message-ID: i already compiled gambas 3.2 opengl module for lenny xorg 7.4 in past, but now in 3.5 trunk seems gambas need pkg-config files to find opengl requirements.. i mean, if i have opengl and xorg on a custom setup as example... how can i override configure script to supply the opengl requirements? due i got this on debian lenny (venenux 0.8): configure: WARNING: Unable to met pkg-config requirement: gl configure: WARNING: gb.opengl is disabled no configure: WARNING: Unable to met pkg-config requirement: gl configure: WARNING: gb.opengl.glsl is disabled no configure: WARNING: Unable to met pkg-config requirement: glu configure: WARNING: gb.opengl.glu is disabled no configure: WARNING: Unable to met pkg-config requirement: gl configure: WARNING: gb.opengl.sge is disabled || || Unable to met pkg-config requirement: gl || gb.opengl is disabled || Unable to met pkg-config requirement: gl || gb.opengl.glsl is disabled || Unable to met pkg-config requirement: glu || gb.opengl.glu is disabled || Unable to met pkg-config requirement: gl || gb.opengl.sge is disabled || -- Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com From mckaygerhard at ...626... Thu Jun 26 20:56:29 2014 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Thu, 26 Jun 2014 14:26:29 -0430 Subject: [Gambas-user] just a warning, but that's what means? Message-ID: i got that warnings, what that's mean? its just for curiosity! || || Unable to find file: libintl.so || This library may be located inside the system C library, so you can ignore that warning... || Unable to find file: libiconv.so || This library may be located inside the system C library, so you can ignore that warning... || -- Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com From gambas at ...1... Thu Jun 26 21:06:03 2014 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Thu, 26 Jun 2014 21:06:03 +0200 Subject: [Gambas-user] just a warning, but that's what means? In-Reply-To: References: Message-ID: <53AC6F1B.7090107@...1...> Le 26/06/2014 20:56, PICCORO McKAY Lenz a ?crit : > i got that warnings, what that's mean? its just for curiosity! > > || > || Unable to find file: libintl.so > || This library may be located inside the system C library, so you can > ignore that warning... > || Unable to find file: libiconv.so > || This library may be located inside the system C library, so you can > ignore that warning... > || > > > On some systems, libintl.so and libiconv.so are independant libraries (so that the standard C library is not too big). Not on Linux. -- Beno?t Minisini From gambas at ...1... Thu Jun 26 21:06:37 2014 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Thu, 26 Jun 2014 21:06:37 +0200 Subject: [Gambas-user] how to override opengl pkg-config requirements??? building gambas from trunk In-Reply-To: References: Message-ID: <53AC6F3D.4010808@...1...> Le 26/06/2014 20:53, PICCORO McKAY Lenz a ?crit : > i already compiled gambas 3.2 opengl module for lenny xorg 7.4 in > past, but now in 3.5 trunk seems gambas need pkg-config files to find > opengl requirements.. > > i mean, if i have opengl and xorg on a custom setup as example... > > how can i override configure script to supply the opengl requirements? > due i got this on debian lenny (venenux 0.8): > > configure: WARNING: Unable to met pkg-config requirement: gl > configure: WARNING: gb.opengl is disabled > no > configure: WARNING: Unable to met pkg-config requirement: gl > configure: WARNING: gb.opengl.glsl is disabled > no > configure: WARNING: Unable to met pkg-config requirement: glu > configure: WARNING: gb.opengl.glu is disabled > no > configure: WARNING: Unable to met pkg-config requirement: gl > configure: WARNING: gb.opengl.sge is disabled > > || > || Unable to met pkg-config requirement: gl > || gb.opengl is disabled > || Unable to met pkg-config requirement: gl > || gb.opengl.glsl is disabled > || Unable to met pkg-config requirement: glu > || gb.opengl.glu is disabled > || Unable to met pkg-config requirement: gl > || gb.opengl.sge is disabled > || > > > Why don't you have the pkg-config files for the OpenGL library if you have pkg-config? -- Beno?t Minisini From gambas at ...2524... Thu Jun 26 21:09:39 2014 From: gambas at ...2524... (gambas at ...2524...) Date: Thu, 26 Jun 2014 19:09:39 +0000 Subject: [Gambas-user] Issue 532 in gambas: missing libcroco in requirements, and also missing check in configure script Message-ID: <0-6813199134517018827-14908096522293175178-gambas=googlecode.com@...2524...> Status: New Owner: ---- Labels: Version-TRUNK Type-Bug Priority-Medium OpSys-Any Dist-Any Arch-Any Desktop-Any GUI-Any New issue 532 by mckayger... at ...626...: missing libcroco in requirements, and also missing check in configure script http://code.google.com/p/gambas/issues/detail?id=532 1) Gambas does configure correctly, but does not detect libcroco missing depends when configuring, so when build failts if packager dont already known that so in configure need to list missing croco depends verification 2) N/A 3) N/A 4) N/A 5) How to reproduce: in a clean system install all depends clone svn autoreconf configure make then got that: CXX gb_gtk_la-gdrawingarea.lo gdrawingarea.cpp: In member function 'void gDrawingArea::create()': gdrawingarea.cpp:111: warning: 'rect._GdkRectangle::x' may be used uninitialized in this function gdrawingarea.cpp:111: warning: 'rect._GdkRectangle::y' may be used uninitialized in this function gdrawingarea.cpp:111: warning: 'rect._GdkRectangle::width' may be used uninitialized in this function gdrawingarea.cpp:111: warning: 'rect._GdkRectangle::height' may be used uninitialized in this function gdrawingarea.cpp:112: warning: 'fg' may be used uninitialized in this function gdrawingarea.cpp:112: warning: 'bg' may be used uninitialized in this function CXX gb_gtk_la-gapplication.lo CXX gb_gtk_la-gdrag.lo CXX gb_gtk_la-gprinter.lo CXX gb_gtk_la-gglarea.lo CC gb_gtk_la-x11.lo CXXLD gb.gtk.la /bin/sed: can't read /usr/lib/libcroco-0.6.la: No such file or directory libtool: link: `/usr/lib/libcroco-0.6.la' is not a valid libtool archive make[6]: *** [gb.gtk.la] Error 1 -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From gambas at ...1... Thu Jun 26 21:25:50 2014 From: gambas at ...1... (=?UTF-8?B?QmVub8OudCBNaW5pc2luaQ==?=) Date: Thu, 26 Jun 2014 21:25:50 +0200 Subject: [Gambas-user] X11Systray+GB.QT4+DrawingArea In-Reply-To: References: Message-ID: <53AC73BE.6020602@...1...> Le 26/06/2014 18:51, herberth guzman a ?crit : > Hi Benoit > > I know Gambas3.6 is under development, But the idea is to help improve > Gambas3. > > I was watching these days on the error, the same Example of gambas3 systray > have error. > > 1 - With gb.gui and gb.gtk3 component and the systray does not work and > when you switch to gb.qt4 works well. > > 2 - If you change the form.transparent = true property you will realize > that does not work, gives error "Violation of section 11" and gambas3 stops. > > 3 - I'm not sure that the problem is in integrating the form.transparent = > true and when DrawingArea X11Systray use. > > 4 - Y form.transparent=true the same application using libreoffice + scroll > mouse gives the same error: > Violation of segment 11 and gambas3 stops. > > It is unusual and very rare. > > > How I can fix these little problems? > > Thanks and Regards. > > Herberth Guzm?n Strange, as apparently some things that worked before do not work anymore, and sometimes crash. I will investigate. By the way, don't expect to put your systrem tray directly inside a transaprent window, it won't work. Because "transparent" windows and "normal" windows are not compatible on X11. As system tray icons are created outside of the system tray (by the application owner), they are "normal" windows. So they refuse to be embedded inside a "transparent" window. To workaround that, you can have one transparent form for your panel, one normal form for your system tray. The system tray window will have no border at all, and will be put on top of the panel form, so that you think it is embedded inside. But it won't. Another point: the "nm-applet" does not use the old system tray icon standard, so the Gambas system tray won't see it. Maybe it works if there is no application that manages the new standard, like the KDE panel. I don't know, I didn't check. Regards, -- Beno?t Minisini From gambas at ...1... Thu Jun 26 22:06:05 2014 From: gambas at ...1... (=?UTF-8?B?QmVub8OudCBNaW5pc2luaQ==?=) Date: Thu, 26 Jun 2014 22:06:05 +0200 Subject: [Gambas-user] X11Systray+GB.QT4+DrawingArea In-Reply-To: <53AC73BE.6020602@...1...> References: <53AC73BE.6020602@...1...> Message-ID: <53AC7D2D.8010802@...1...> Le 26/06/2014 21:25, Beno?t Minisini a ?crit : > Le 26/06/2014 18:51, herberth guzman a ?crit : >> Hi Benoit >> >> I know Gambas3.6 is under development, But the idea is to help improve >> Gambas3. >> >> I was watching these days on the error, the same Example of gambas3 >> systray >> have error. >> >> 1 - With gb.gui and gb.gtk3 component and the systray does not work and >> when you switch to gb.qt4 works well. >> >> 2 - If you change the form.transparent = true property you will realize >> that does not work, gives error "Violation of section 11" and gambas3 >> stops. >> >> 3 - I'm not sure that the problem is in integrating the >> form.transparent = >> true and when DrawingArea X11Systray use. >> >> 4 - Y form.transparent=true the same application using libreoffice + >> scroll >> mouse gives the same error: >> Violation of segment 11 and gambas3 stops. >> >> It is unusual and very rare. >> >> >> How I can fix these little problems? >> >> Thanks and Regards. >> >> Herberth Guzm?n > > Strange, as apparently some things that worked before do not work > anymore, and sometimes crash. I will investigate. > > By the way, don't expect to put your systrem tray directly inside a > transaprent window, it won't work. Because "transparent" windows and > "normal" windows are not compatible on X11. As system tray icons are > created outside of the system tray (by the application owner), they are > "normal" windows. So they refuse to be embedded inside a "transparent" > window. > > To workaround that, you can have one transparent form for your panel, > one normal form for your system tray. The system tray window will have > no border at all, and will be put on top of the panel form, so that you > think it is embedded inside. But it won't. > > Another point: the "nm-applet" does not use the old system tray icon > standard, so the Gambas system tray won't see it. Maybe it works if > there is no application that manages the new standard, like the KDE > panel. I don't know, I didn't check. > > Regards, > It should work better with the latest revision. -- Beno?t Minisini From gambas at ...2524... Thu Jun 26 22:07:10 2014 From: gambas at ...2524... (gambas at ...2524...) Date: Thu, 26 Jun 2014 20:07:10 +0000 Subject: [Gambas-user] Issue 531 in gambas: Gambas3 has a non-redistributable file (PHP license) In-Reply-To: <2-6813199134517018827-3522637678684863622-gambas=googlecode.com@...2524...> References: <2-6813199134517018827-3522637678684863622-gambas=googlecode.com@...2524...> <0-6813199134517018827-3522637678684863622-gambas=googlecode.com@...2524...> Message-ID: <3-6813199134517018827-3522637678684863622-gambas=googlecode.com@...2524...> Updates: Status: Fixed Comment #3 on issue 531 by benoit.m... at ...626...: Gambas3 has a non-redistributable file (PHP license) http://code.google.com/p/gambas/issues/detail?id=531 Fixed in revision #6344. -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From gambas at ...2524... Thu Jun 26 22:17:18 2014 From: gambas at ...2524... (gambas at ...2524...) Date: Thu, 26 Jun 2014 20:17:18 +0000 Subject: [Gambas-user] Issue 522 in gambas: Panels do not capture keypress events In-Reply-To: <2-6813199134517018827-8658170024389030899-gambas=googlecode.com@...2524...> References: <2-6813199134517018827-8658170024389030899-gambas=googlecode.com@...2524...> <0-6813199134517018827-8658170024389030899-gambas=googlecode.com@...2524...> Message-ID: <3-6813199134517018827-8658170024389030899-gambas=googlecode.com@...2524...> Comment #3 on issue 522 by benoit.m... at ...626...: Panels do not capture keypress events http://code.google.com/p/gambas/issues/detail?id=522 Apparently Panels cannot take the focus with GTK+... But they do with QT4. But why do you want a Panel to take the focus? It is not an input widget at all! -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From jussi.lahtinen at ...626... Thu Jun 26 22:48:19 2014 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Thu, 26 Jun 2014 23:48:19 +0300 Subject: [Gambas-user] Switch button Message-ID: Apparently you can switch state of switch button, when it is disabled. I expect it to be locked like normal buttons when they are not enabled. Is this correct behaviour? Tested with r6340. Jussi From jussi.lahtinen at ...626... Thu Jun 26 23:25:34 2014 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Fri, 27 Jun 2014 00:25:34 +0300 Subject: [Gambas-user] Valuebox change event? In-Reply-To: <513CC654.9000308@...1...> References: <513CC427.70900@...2382...> <513CC654.9000308@...1...> Message-ID: Really missing this feature... Any change to get it in next release? Jussi On Sun, Mar 10, 2013 at 7:43 PM, Beno?t Minisini < gambas at ...1...> wrote: > Le 10/03/2013 18:34, Jesus a ?crit : > > Hi all > > > > Since gambas2 I've not used Valuebox until now in Gambas3, but now I'm > > surprised it haven't a '_Change()' event. Anyone could tell about it, if > > you have got the need of this event or not? And how I supposedly could > > detect whether its content has changed? > > > > Of course, I always can inherit and implement a change event, but I was > > curious on why this widget lacks the change event natively. > > > > Thanks for your time > > > > Best regards > > > > Mmm... You're right, a Change event would be useful... I will see if I > can add it... > > As a workaround, you can create an observer on the first inner child of > the control to catch it. > > hObs = New Observer(TheValueBox.Children[0]) As "TheValueBox" > ... > Public Sub TheValueBox_Change() > ... > End > > But beware that you must do it just after having set the Type property > (because it recreates the inner widget each time you change the ValueBox > type). > > Regards, > > -- > Beno?t Minisini > > > ------------------------------------------------------------------------------ > Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester > Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the > endpoint security space. For insight on selecting the right partner to > tackle endpoint security challenges, access the full report. > http://p.sf.net/sfu/symantec-dev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From jussi.lahtinen at ...626... Fri Jun 27 00:01:35 2014 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Fri, 27 Jun 2014 01:01:35 +0300 Subject: [Gambas-user] Crash with r6340 Message-ID: [13] Null object. FOutput.edtOutput_MouseMove.440 I have no clue what happened! I was going to change tab. Jussi From gambas at ...1... Fri Jun 27 00:50:26 2014 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Fri, 27 Jun 2014 00:50:26 +0200 Subject: [Gambas-user] Crash with r6340 In-Reply-To: References: Message-ID: <53ACA3B2.9000008@...1...> Le 27/06/2014 00:01, Jussi Lahtinen a ?crit : > [13] Null object. > FOutput.edtOutput_MouseMove.440 > > > I have no clue what happened! I was going to change tab. > > > > Jussi Try the latest revision. -- Beno?t Minisini From bbruen at ...2308... Fri Jun 27 01:17:52 2014 From: bbruen at ...2308... (B Bruen) Date: Fri, 27 Jun 2014 08:47:52 +0930 Subject: [Gambas-user] how to override opengl pkg-config requirements??? building gambas from trunk In-Reply-To: <53AC6F3D.4010808@...1...> References: <53AC6F3D.4010808@...1...> Message-ID: <20140627084752.b1f0ed82adc5c93519f45e4e@...2308...> On Thu, 26 Jun 2014 21:06:37 +0200 Beno?t Minisini wrote: > Le 26/06/2014 20:53, PICCORO McKAY Lenz a ?crit : > > i already compiled gambas 3.2 opengl module for lenny xorg 7.4 in > > past, but now in 3.5 trunk seems gambas need pkg-config files to find > > opengl requirements.. > > > > i mean, if i have opengl and xorg on a custom setup as example... > > > > how can i override configure script to supply the opengl requirements? > > due i got this on debian lenny (venenux 0.8): > > > > configure: WARNING: Unable to met pkg-config requirement: gl > > configure: WARNING: gb.opengl is disabled > > no > > configure: WARNING: Unable to met pkg-config requirement: gl > > configure: WARNING: gb.opengl.glsl is disabled > > no > > configure: WARNING: Unable to met pkg-config requirement: glu > > configure: WARNING: gb.opengl.glu is disabled > > no > > configure: WARNING: Unable to met pkg-config requirement: gl > > configure: WARNING: gb.opengl.sge is disabled > > > > || > > || Unable to met pkg-config requirement: gl > > || gb.opengl is disabled > > || Unable to met pkg-config requirement: gl > > || gb.opengl.glsl is disabled > > || Unable to met pkg-config requirement: glu > > || gb.opengl.glu is disabled > > || Unable to met pkg-config requirement: gl > > || gb.opengl.sge is disabled > > || > > > > > > > > Why don't you have the pkg-config files for the OpenGL library if you > have pkg-config? > > -- > Beno?t Minisini > Elsewhere I received advice to delete ALL the pkg-config files on the system in order to get a non-gambas application to build properly. Since I did that I have had no problems, neither with gambas3 nor other source builds. There is information regarding the "pains" of pkg-config in various places on the internet, check first for some related to your distro. hth Bruce -- B Bruen From gambas at ...1... Fri Jun 27 02:43:26 2014 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Fri, 27 Jun 2014 02:43:26 +0200 Subject: [Gambas-user] Switch button In-Reply-To: References: Message-ID: <53ACBE2E.8090308@...1...> Le 26/06/2014 22:48, Jussi Lahtinen a ?crit : > Apparently you can switch state of switch button, when it is disabled. I > expect it to be locked like normal buttons when they are not enabled. Is > this correct behaviour? > > Tested with r6340. > > > Jussi Fixed in revision #6345. Regards, -- Beno?t Minisini From jussi.lahtinen at ...626... Fri Jun 27 02:48:07 2014 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Fri, 27 Jun 2014 03:48:07 +0300 Subject: [Gambas-user] Switch button In-Reply-To: <53ACBE2E.8090308@...1...> References: <53ACBE2E.8090308@...1...> Message-ID: Thanks! Jussi On Fri, Jun 27, 2014 at 3:43 AM, Beno?t Minisini < gambas at ...1...> wrote: > Le 26/06/2014 22:48, Jussi Lahtinen a ?crit : > > Apparently you can switch state of switch button, when it is disabled. I > > expect it to be locked like normal buttons when they are not enabled. Is > > this correct behaviour? > > > > Tested with r6340. > > > > > > Jussi > > Fixed in revision #6345. > > Regards, > > -- > Beno?t Minisini > > > ------------------------------------------------------------------------------ > Open source business process management suite built on Java and Eclipse > Turn processes into business applications with Bonita BPM Community Edition > Quickly connect people, data, and systems into organized workflows > Winner of BOSSIE, CODIE, OW2 and Gartner awards > http://p.sf.net/sfu/Bonitasoft > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From jussi.lahtinen at ...626... Fri Jun 27 02:49:33 2014 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Fri, 27 Jun 2014 03:49:33 +0300 Subject: [Gambas-user] Crash with r6340 In-Reply-To: <53ACA3B2.9000008@...1...> References: <53ACA3B2.9000008@...1...> Message-ID: Seems to work. However I'm not sure exactly what even caused it. Jussi On Fri, Jun 27, 2014 at 1:50 AM, Beno?t Minisini < gambas at ...1...> wrote: > Le 27/06/2014 00:01, Jussi Lahtinen a ?crit : > > [13] Null object. > > FOutput.edtOutput_MouseMove.440 > > > > > > I have no clue what happened! I was going to change tab. > > > > > > > > Jussi > > Try the latest revision. > > -- > Beno?t Minisini > > > ------------------------------------------------------------------------------ > Open source business process management suite built on Java and Eclipse > Turn processes into business applications with Bonita BPM Community Edition > Quickly connect people, data, and systems into organized workflows > Winner of BOSSIE, CODIE, OW2 and Gartner awards > http://p.sf.net/sfu/Bonitasoft > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From bbruen at ...2308... Fri Jun 27 03:41:12 2014 From: bbruen at ...2308... (B Bruen) Date: Fri, 27 Jun 2014 11:11:12 +0930 Subject: [Gambas-user] The Class keyword Message-ID: <20140627111112.6353a962ef2383e5d154d9b0@...2308...> As in : CLASS Identifier Declares to the compiler that Identifier can be used as a class name. I am unsure of what this keyword really achieves. Specifically, I am having trouble understanding the help paragraph: "This keyword can be useful if you want to write some optional code in a component that needs a class from a component that is not necessarily loaded by the main project using this component." -- B Bruen From fabianfloresvadell at ...626... Fri Jun 27 04:21:18 2014 From: fabianfloresvadell at ...626... (=?UTF-8?Q?Fabi=C3=A1n_Flores_Vadell?=) Date: Thu, 26 Jun 2014 23:21:18 -0300 Subject: [Gambas-user] Request for the Gambas IDE: a way to query the help in an offline mode In-Reply-To: References: Message-ID: +1 2014-06-24 15:16 GMT-03:00 Julio Sanchez : > Request for the Gambas IDE: a way to query the help in an offline mode. > Perhaps a path where Gambas look for local web pages or better, a way to > download the wikigambas website and accessing the help without internet. > > Regards > > ------------------------------------------------------------------------------ > Open source business process management suite built on Java and Eclipse > Turn processes into business applications with Bonita BPM Community Edition > Quickly connect people, data, and systems into organized workflows > Winner of BOSSIE, CODIE, OW2 and Gartner awards > http://p.sf.net/sfu/Bonitasoft > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Fabi?n Flores Vadell www.comoprogramarcongambas.blogspot.com www.speedbooksargentina.blogspot.com From gambas at ...2524... Fri Jun 27 10:53:15 2014 From: gambas at ...2524... (gambas at ...2524...) Date: Fri, 27 Jun 2014 08:53:15 +0000 Subject: [Gambas-user] Issue 522 in gambas: Panels do not capture keypress events In-Reply-To: <3-6813199134517018827-8658170024389030899-gambas=googlecode.com@...2524...> References: <3-6813199134517018827-8658170024389030899-gambas=googlecode.com@...2524...> <0-6813199134517018827-8658170024389030899-gambas=googlecode.com@...2524...> Message-ID: <4-6813199134517018827-8658170024389030899-gambas=googlecode.com@...2524...> Comment #4 on issue 522 by computer... at ...626...: Panels do not capture keypress events http://code.google.com/p/gambas/issues/detail?id=522 I would like to press Insert on my form (=panel) to add a new item to a listbox, which is equivalent to the button Add (it uses an InputBox). However, I would like to have a shortcut to do that. I know I can do it with a hidden context menu, but is there some other way? -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From gambas at ...2524... Fri Jun 27 11:01:27 2014 From: gambas at ...2524... (gambas at ...2524...) Date: Fri, 27 Jun 2014 09:01:27 +0000 Subject: [Gambas-user] Issue 531 in gambas: Gambas3 has a non-redistributable file (PHP license) In-Reply-To: <3-6813199134517018827-3522637678684863622-gambas=googlecode.com@...2524...> References: <3-6813199134517018827-3522637678684863622-gambas=googlecode.com@...2524...> <0-6813199134517018827-3522637678684863622-gambas=googlecode.com@...2524...> Message-ID: <4-6813199134517018827-3522637678684863622-gambas=googlecode.com@...2524...> Comment #4 on issue 531 by gianfran... at ...3351...: Gambas3 has a non-redistributable file (PHP license) http://code.google.com/p/gambas/issues/detail?id=531 Thanks for the quick fix, can I apply it on top of 3.5.3? BTW I just took modifications of /gambas/trunk/main/lib/image/image_stat.c and /gambas/trunk/main/lib/image/image_stat.h I hope this is ok for you! thanks a ton -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From gambas at ...2524... Fri Jun 27 11:02:47 2014 From: gambas at ...2524... (gambas at ...2524...) Date: Fri, 27 Jun 2014 09:02:47 +0000 Subject: [Gambas-user] Issue 533 in gambas: please apply some debian patches Message-ID: <0-6813199134517018827-11589675237126885119-gambas=googlecode.com@...2524...> Status: New Owner: ---- Labels: Version Type-Bug Priority-Medium OpSys-Any Dist-Any Arch-Any Desktop-Any GUI-Any New issue 533 by gianfran... at ...3351...: please apply some debian patches http://code.google.com/p/gambas/issues/detail?id=533 http://anonscm.debian.org/gitweb/?p=pkg-gambas/gambas3.git;a=tree;f=debian/patches;h=da90a272b70b5b988f235ff33b7222057c0a5b8f;hb=ab207297e821d3c5c67d9f7c7eebdb2132bc5e6c Some patches should be applied upstream. e.g. detect_browser_debian find_postgresql_headers fix_typos kfreebsd_support what do you think about? thanks -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From gambas at ...2524... Fri Jun 27 11:19:12 2014 From: gambas at ...2524... (gambas at ...2524...) Date: Fri, 27 Jun 2014 09:19:12 +0000 Subject: [Gambas-user] Issue 531 in gambas: Gambas3 has a non-redistributable file (PHP license) In-Reply-To: <4-6813199134517018827-3522637678684863622-gambas=googlecode.com@...2524...> References: <4-6813199134517018827-3522637678684863622-gambas=googlecode.com@...2524...> <0-6813199134517018827-3522637678684863622-gambas=googlecode.com@...2524...> Message-ID: <5-6813199134517018827-3522637678684863622-gambas=googlecode.com@...2524...> Comment #5 on issue 531 by costamag... at ...626...: Gambas3 has a non-redistributable file (PHP license) http://code.google.com/p/gambas/issues/detail?id=531 Thanks for the quick fix, can I apply it on top of 3.5.3? BTW I just took modifications of /gambas/trunk/main/lib/image/image_stat.c and /gambas/trunk/main/lib/image/image_stat.h I hope this is ok for you! thanks a ton -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From taboege at ...626... Fri Jun 27 11:42:06 2014 From: taboege at ...626... (Tobias Boege) Date: Fri, 27 Jun 2014 11:42:06 +0200 Subject: [Gambas-user] The Class keyword In-Reply-To: <20140627111112.6353a962ef2383e5d154d9b0@...2308...> References: <20140627111112.6353a962ef2383e5d154d9b0@...2308...> Message-ID: <20140627094206.GA823@...2774...> On Fri, 27 Jun 2014, B Bruen wrote: > As in : > CLASS Identifier > Declares to the compiler that Identifier can be used as a class name. > > I am unsure of what this keyword really achieves. Specifically, I am having trouble understanding the help paragraph: > "This keyword can be useful if you want to write some optional code in a component that needs a class from a component that is not necessarily loaded by the main project using this component." > Suppose you implement a Graph class in gb.data which uses an adjacency matrix. So you have the normal graph stuff in the interface but also maybe a Matrix property that is specific to the Graph implementation via an adjacency matrix - and this property returns that matrix. This is actually useful because you may want to do arithmetic on this matrix to find connected components, the number of triangles in the graph, etc.. However, you would want the datatype of the Matrix property to be the Matrix class of gb.gsl or the like so that users can readily operate on it. But you may also notice that some users don't really care about the matrix - they just want *some* graph or adjacency matrices scale well in their application - and are bothered by the dependency of gb.gsl you have just imposed. Therefore, leave gb.gsl out and use "Class Matrix" in your Graph class. Those users who want to use the Matrix property will have to load gb.gsl themselves and everyone is happy. Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From gambas at ...2524... Fri Jun 27 12:38:35 2014 From: gambas at ...2524... (gambas at ...2524...) Date: Fri, 27 Jun 2014 10:38:35 +0000 Subject: [Gambas-user] Issue 534 in gambas: Missing Project > Translate menu Message-ID: <0-6813199134517018827-4947760273242125217-gambas=googlecode.com@...2524...> Status: New Owner: ---- Labels: Version-3.1.0 Type-Bug Priority-Medium OpSys-Linux Dist-Ubuntu Arch-Any Desktop-Gnome GUI-Any New issue 534 by arif_rah... at ...2488...: Missing Project > Translate menu http://code.google.com/p/gambas/issues/detail?id=534 I couldn't find Project > Translate menu in Ubuntu 14.10. Was it moved? [System] OperatingSystem=Linux Kernel=3.13.0-24-generic Architecture=i686 Memory=1014672 kB DistributionVendor=Ubuntu DistributionRelease="Ubuntu 14.04 LTS" Desktop=Gnome [Gambas 3] Version=3.1.1 Path=/usr/bin/gbx3 [Libraries] Qt4=libQtCore.so.4.8.6 GTK+=libgtk-x11-2.0.so.0.2400.23 Attachments: Project.jpg 262 KB -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From gambas at ...2524... Fri Jun 27 12:40:46 2014 From: gambas at ...2524... (gambas at ...2524...) Date: Fri, 27 Jun 2014 10:40:46 +0000 Subject: [Gambas-user] Issue 534 in gambas: Missing Project > Translate menu In-Reply-To: <0-6813199134517018827-4947760273242125217-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-4947760273242125217-gambas=googlecode.com@...2524...> Message-ID: <1-6813199134517018827-4947760273242125217-gambas=googlecode.com@...2524...> Comment #1 on issue 534 by arif_rah... at ...2488...: Missing Project > Translate menu http://code.google.com/p/gambas/issues/detail?id=534 I meant Ubuntu 14.04. -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From wig at ...1809... Fri Jun 27 13:36:15 2014 From: wig at ...1809... (wig) Date: Fri, 27 Jun 2014 13:36:15 +0200 Subject: [Gambas-user] =?utf-8?q?TableView1=5FDrop_on_which_row/col=3F?= Message-ID: <7b6d08882ccf760f13d78879c5c8787f@...1809...> I try to drag the text from a textlabel to a cell on my TableView. How to determine the cell where the drop happened? Public Sub TableView1_Drop() Debug TableView1.Row Debug TableView1.Column ' TableView1[Row, Column].Text = Drag.Data End This Debug gives me -1 for each, so that's not the way. I didn't find an example or an answer in mailinglist search, documentation. Thanks for giving me a clue.. WiG From gambas at ...2524... Fri Jun 27 14:26:11 2014 From: gambas at ...2524... (gambas at ...2524...) Date: Fri, 27 Jun 2014 12:26:11 +0000 Subject: [Gambas-user] Issue 522 in gambas: Panels do not capture keypress events In-Reply-To: <4-6813199134517018827-8658170024389030899-gambas=googlecode.com@...2524...> References: <4-6813199134517018827-8658170024389030899-gambas=googlecode.com@...2524...> <0-6813199134517018827-8658170024389030899-gambas=googlecode.com@...2524...> Message-ID: <5-6813199134517018827-8658170024389030899-gambas=googlecode.com@...2524...> Comment #5 on issue 522 by benoit.m... at ...626...: Panels do not capture keypress events http://code.google.com/p/gambas/issues/detail?id=522 Panel can't have focus (except in Qt4, but I think this is my mistake), but Form catch all key events sent to any of its children controls, before they get them. That way, you can implement window-global shortcuts without having to create an hidden menu. Regards, -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From gambas at ...2524... Fri Jun 27 14:27:22 2014 From: gambas at ...2524... (gambas at ...2524...) Date: Fri, 27 Jun 2014 12:27:22 +0000 Subject: [Gambas-user] Issue 533 in gambas: please apply some debian patches In-Reply-To: <0-6813199134517018827-11589675237126885119-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-11589675237126885119-gambas=googlecode.com@...2524...> Message-ID: <1-6813199134517018827-11589675237126885119-gambas=googlecode.com@...2524...> Updates: Status: Accepted Labels: -Version Version-TRUNK Comment #1 on issue 533 by benoit.m... at ...626...: please apply some debian patches http://code.google.com/p/gambas/issues/detail?id=533 I was not aware of these patches. I will look at them, but I see no reason to not apply them. -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From gambas at ...2524... Fri Jun 27 14:28:22 2014 From: gambas at ...2524... (gambas at ...2524...) Date: Fri, 27 Jun 2014 12:28:22 +0000 Subject: [Gambas-user] Issue 531 in gambas: Gambas3 has a non-redistributable file (PHP license) In-Reply-To: <5-6813199134517018827-3522637678684863622-gambas=googlecode.com@...2524...> References: <5-6813199134517018827-3522637678684863622-gambas=googlecode.com@...2524...> <0-6813199134517018827-3522637678684863622-gambas=googlecode.com@...2524...> Message-ID: <6-6813199134517018827-3522637678684863622-gambas=googlecode.com@...2524...> Comment #6 on issue 531 by benoit.m... at ...626...: Gambas3 has a non-redistributable file (PHP license) http://code.google.com/p/gambas/issues/detail?id=531 Then I will apply them to 3.5.4 that is not officially released. -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From gambas at ...2524... Fri Jun 27 14:29:33 2014 From: gambas at ...2524... (gambas at ...2524...) Date: Fri, 27 Jun 2014 12:29:33 +0000 Subject: [Gambas-user] Issue 534 in gambas: Missing Project > Translate menu In-Reply-To: <1-6813199134517018827-4947760273242125217-gambas=googlecode.com@...2524...> References: <1-6813199134517018827-4947760273242125217-gambas=googlecode.com@...2524...> <0-6813199134517018827-4947760273242125217-gambas=googlecode.com@...2524...> Message-ID: <2-6813199134517018827-4947760273242125217-gambas=googlecode.com@...2524...> Comment #2 on issue 534 by benoit.m... at ...626...: Missing Project > Translate menu http://code.google.com/p/gambas/issues/detail?id=534 Did you enable internationalization in your project settings? -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From gambas.fr at ...626... Fri Jun 27 15:23:32 2014 From: gambas.fr at ...626... (Fabien Bodard) Date: Fri, 27 Jun 2014 15:23:32 +0200 Subject: [Gambas-user] Something not simple : Message-ID: cmbMode.List.Find[Settings["Mode"]] This entry (error of braket) give the error FR: Objet attendu I think it is not easy to understand.... -- Fabien Bodard From gambas at ...2524... Fri Jun 27 16:03:05 2014 From: gambas at ...2524... (gambas at ...2524...) Date: Fri, 27 Jun 2014 14:03:05 +0000 Subject: [Gambas-user] Issue 534 in gambas: Missing Project > Translate menu In-Reply-To: <2-6813199134517018827-4947760273242125217-gambas=googlecode.com@...2524...> References: <2-6813199134517018827-4947760273242125217-gambas=googlecode.com@...2524...> <0-6813199134517018827-4947760273242125217-gambas=googlecode.com@...2524...> Message-ID: <3-6813199134517018827-4947760273242125217-gambas=googlecode.com@...2524...> Comment #3 on issue 534 by arif_rah... at ...2488...: Missing Project > Translate menu http://code.google.com/p/gambas/issues/detail?id=534 Thanks again. Things like this should be added to the documentation. http://gambasdoc.org/help/howto/translate -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From mckaygerhard at ...626... Fri Jun 27 16:29:16 2014 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Fri, 27 Jun 2014 09:59:16 -0430 Subject: [Gambas-user] how to override opengl pkg-config requirements??? Message-ID: Date: Thu, 26 Jun 2014 21:06:37 +0200 > From: Beno?t Minisini > Why don't you have the pkg-config files for the OpenGL library if you > have pkg-config? > > Cos i used a powered more faster xorg version (7.2) rather than the slower 7.15 of today! and my mesa files are version 7.2 rather than the gallium slower mesa 9.1 of today! in any case, take in consideration alternative install of xorg system, must have that option to override that settings! by example, port gambas to othre embebed systems that do not have possibility (due performance) to use recent xorg and mesa files (such daruma pc's, or acer eepc older releases) From mckaygerhard at ...626... Fri Jun 27 16:34:26 2014 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Fri, 27 Jun 2014 10:04:26 -0430 Subject: [Gambas-user] how to override opengl pkg-config requirements??? In-Reply-To: References: Message-ID: Date: Fri, 27 Jun 2014 08:47:52 +0930 From: B Bruen > Elsewhere I received advice to delete ALL the pkg-config files on the system in order to get a non-gambas >application to build properly. Since I did that I have had no problems, neither with gambas3 nor other source builds. >There is information regarding the "pains" of pkg-config in various places on the internet, check first for some >related to your distro. that's not the case bruce, i used a older version of xorg that do not provide pkg-config files, so i must parse all linker and includes manually, how i can do that? i cannot see in configure script before run autopoint Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com From wig at ...1809... Fri Jun 27 16:58:33 2014 From: wig at ...1809... (wig) Date: Fri, 27 Jun 2014 16:58:33 +0200 Subject: [Gambas-user] TableView1_Drop on which row/col? In-Reply-To: <53AD6455.8080405@...1...> References: <7b6d08882ccf760f13d78879c5c8787f@...1809...> <53AD6455.8080405@...1...> Message-ID: > Le 27/06/2014 13:36, wig a ?crit : >> >> >> I try to drag the text from a textlabel to a cell on my TableView. >> >> How to determine the cell where the drop happened? >> >> Public Sub TableView1_Drop() >> >> Debug TableView1.Row >> >> Debug TableView1.Column >> >> ' TableView1[Row, Column].Text = Drag.Data >> >> End >> >> This Debug gives me -1 for each, so that's not the way. >> >> I didn't find an example or an answer in mailinglist search, >> documentation. >> >> Thanks for giving me a clue.. >> >> WiG >> > Re: [Gambas-user] TableView1_Drop on which ro > You must use the RowAt() and ColumnAt() methods. They should take the > mouse position directly. > > -- > Beno?t Minisini > I tried TableView1.RowAt() with Mouse.X as parameter I get values that I cannot interprete and even not reproduce with several drag and drops. So I looked first at the value of Mouse.X and Mouse.Y in TableView1_Drop, but I don't understand the values I get. I compared with MouseDown and MouseUp, these give reasonable values. Probably I just miss the understanding of some concept. -------------- next part -------------- A non-text attachment was scrubbed... Name: TestTableViewDrop-0.0.1.tar.gz Type: application/x-gzip Size: 5432 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: DragDropTableView1.png Type: image/png Size: 50321 bytes Desc: not available URL: From bbruen at ...2308... Sat Jun 28 01:29:31 2014 From: bbruen at ...2308... (B Bruen) Date: Sat, 28 Jun 2014 08:59:31 +0930 Subject: [Gambas-user] how to override opengl pkg-config requirements??? In-Reply-To: References: Message-ID: <20140628085931.a2699da59a96ef7aa8bf4888@...2308...> On Fri, 27 Jun 2014 10:04:26 -0430 PICCORO McKAY Lenz wrote: > Date: Fri, 27 Jun 2014 08:47:52 +0930 > From: B Bruen > > > Elsewhere I received advice to delete ALL the pkg-config files on the system in order to get a non-gambas > >application to build properly. Since I did that I have had no problems, neither with gambas3 nor other source builds. > >There is information regarding the "pains" of pkg-config in various places on the internet, check first for some > >related to your distro. > that's not the case bruce, i used a older version of xorg that do not > provide pkg-config files, > This is, if I recall correctly, where the problem starts. The pkg-config files for other libraries are what causes the problem. I can't say that I really understand what actually happens, but what I THINK is your gb.xyz configure (as built by the auto... tools) attempts to check via pkg-config for the direct requirements of your gb.xyz library and then cascades through each of the required libraries specified in that library's .pc (???) file and checks for them etc etc. But just because gb.xyz needs libabc (which resolves to libabc.so.1.2.3 or whatever, which is nicely installled and dynamically linkable) then in the libabc.pc file it says they require libOzarquon - which you dont have. So the build fails! Also I THINK that the error gets "incorrectly" reported as can't find libabc.so which is actually there. If you delete the libabc.pc file from your system, the cascasing checks don't get invoked. This gb.xyz builds properly ( and links to libabc properly as well). So I suspect that somewhere on your system, there is a .pc file that thinks it requires some libXfordprefect library or something. Now - how the toolchain works is dependant on your distro. So you need to find any help on this (known) pkg-config issue specific for your distro and go from there. I believe the pkg-config spec files are generally suffixed ".pc" and tend to live in /lib/pkg-config but again this maybe distro specific. Here, I deleted all the .pc files and magically could make the non-gambas app successfully. When I next maked the gambas3 development version about n-thousand warnings disappeared and the overall build took about half the time (and the gb.sdl components all suddenly worked, which I could never get to happen before). > so i must parse all linker and includes manually, how i can do that? i > cannot see in configure script before run autopoint That's my point, you would have to inspect all the .pc files for the entire dependency tree specified therein to find the anomaly (or anomalies!). Manually. i.e. not a good idea. If deleting these files scares you (as it did me the first time) then just backup the pkg-config dir somewhere as they (the .pc files) are actually just text files containing the specifications to "help" the dynamic linker. Then delete all those files (leaving the /lib/pkg-config dir "almost" empty). Then try the gambas build again. If the result is still failure then just copy all those .pc files back in and look elsewhere for the problem. hth Bruce > > Lenz McKAY Gerardo (PICCORO) > http://qgqlochekone.blogspot.com > p.s. Oh and googling for "What are .pc files" is a BAD idea. You will get a LOT of disinformation. Better to start with something like " pkg-config fail" and got from there. -- B Bruen From bbruen at ...2308... Sat Jun 28 02:14:00 2014 From: bbruen at ...2308... (B Bruen) Date: Sat, 28 Jun 2014 09:44:00 +0930 Subject: [Gambas-user] creating gb.qt4.webkit pages using gb.markdown etc (quick question) Message-ID: <20140628094400.332f0d785a4bd23818316684@...2308...> OK, I've got the markdown to html bit under control and can generate the inner html for nicely for our "appinfo" text files. The next step is to generate the full html text for an entire web page, including the section with a css reference and applying some "class" attributes to parts of the html text. Looking through the IDE code that makes the various help texts it looks like this is being done "manually" with a lot of literal strings being used? My goal is to build a gb.qt4.webkit based project (component) that will display web pages with information about our applications from some text files we include in .hidden in the source project. (I can get these files out of the executable archive OK). Sort of like the IDE help but a bit different. My question is what is the best way for me to go next? a) follow the IDE "hammer and chisel" method b) look at the new wiki code, or c) is there something blatantly obvious that I am not seeing here? tia Bruce -- B Bruen From bbruen at ...2308... Sat Jun 28 06:02:56 2014 From: bbruen at ...2308... (B Bruen) Date: Sat, 28 Jun 2014 13:32:56 +0930 Subject: [Gambas-user] creating gb.qt4.webkit pages using gb.markdown etc (quick question) In-Reply-To: <20140628094400.332f0d785a4bd23818316684@...2308...> References: <20140628094400.332f0d785a4bd23818316684@...2308...> Message-ID: <20140628133256.38949df6e9ea4c48cdc05db5@...2308...> On Sat, 28 Jun 2014 09:44:00 +0930 B Bruen wrote: > some stuff that was probably not well expressed. So I will try again. What we have is: * some text files in many of our projects that describe "how to" do something in that application - by "how to" I mean stepwise descriptions of what actions need to be done to complete a "business" level activity that is supported by the application. These activities are not capable of, say, being driven by a wizard control or similar as they involve external parties and may take hours, days, ... to complete. The text files are there to provide (and this is really the best description I can give them) an aide-m?moire for the user's to go through the entire business activity. * up till now we have used these doc files internally to reply to user queries on these things, i.e. we reply by phone, fax or email with a "these are the things that have to be done" message. What I want to do is provide a do-it-yourself solution so the users can access the aide-m?moire files themselves. So it's sort of like a gambas help browser thing I am trying to build. The aide-m?moire "pages" are fairly simple. A topic, a title and a list of the steps needed. As an example, to change the ownership of a registered racing thoroughbred, which is required by the "rules" here in Australia, the registered trainer must submit a paper or fax form of up to 20 pages length to the national registry organisation. To prepare this paperwork could take the trainer an hour or so. Our gambas application does this in a few seconds. The steps (manual) are: 1) prepare the ownership change form 2) submit the form to the registry 3) wait ... .... ... until the registry confirms that the change has been approved and registered, or denied, or queried ... 4) file the ownership papers appropriately. Our application takes care of 1,2 and 4. But looks more like: 1) use menu item blah to prepare and submit ownership change documents to registry * the horse owners records will be updated, but marked as "pending" 2) when the change confirmation is received, use menu item blah2 to update owner records * the pending status will be removed and emails to the (changed) owners will be sent automatically. * the new ownership schedule will be printed so you can file it appropriately. 3) if the change is denied or queried by the registry see the following how-tos: * etc And this is one of the simplest (haha) things one could imagine for the arcane and bureaucratic ways things are run here. (You dont want to see other examples.) So: I want to build a how-to form in our trainer application that (simply) has an index page and a set of dynamically generated pages (based) on some simple text files. The index page will be static with just a set of links that access the topic page. I don't need or want anything fancier than that... yet. We are doing the following: * these files are being actively converted to the gambas "markdown" syntax. Very simple, but time consuming due to the number of them (~300) * trying to figure out the best way to build the "how-to" form. This last bit is what I am asking about. I am "wishing" that there is a really easy way to achieve the goals outlined above without having to re-invent the wheel so to speak. Any input will be (really) gratefully recieved. tia Bruce -- B Bruen From rmorgan62 at ...626... Sat Jun 28 07:15:14 2014 From: rmorgan62 at ...626... (Randall Morgan) Date: Fri, 27 Jun 2014 23:15:14 -0600 Subject: [Gambas-user] creating gb.qt4.webkit pages using gb.markdown etc (quick question) In-Reply-To: <20140628133256.38949df6e9ea4c48cdc05db5@...2308...> References: <20140628094400.332f0d785a4bd23818316684@...2308...> <20140628133256.38949df6e9ea4c48cdc05db5@...2308...> Message-ID: I am not quit sure I understand what you mean the best way to build the how to form. I use a web editor like Dreamweaver, Aptana Studio, etc. to create template pages. These pages are stored in the project folder. I then load the data needed to complete the page from a database, text or xml file. An entire page of content can be loaded this way. I hope this helps On Fri, Jun 27, 2014 at 10:02 PM, B Bruen wrote: > On Sat, 28 Jun 2014 09:44:00 +0930 > B Bruen wrote: > > > some stuff that was probably not well expressed. > > So I will try again. What we have is: > * some text files in many of our projects that describe "how to" do > something in that application > - by "how to" I mean stepwise descriptions of what actions need to be > done to complete a "business" level activity that is supported by the > application. These activities are not capable of, say, being driven by a > wizard control or similar as they involve external parties and may take > hours, days, ... to complete. The text files are there to provide (and > this is really the best description I can give them) an aide-m?moire for > the user's to go through the entire business activity. > * up till now we have used these doc files internally to reply to user > queries on these things, i.e. we reply by phone, fax or email with a "these > are the things that have to be done" message. > > What I want to do is provide a do-it-yourself solution so the users can > access the aide-m?moire files themselves. So it's sort of like a gambas > help browser thing I am trying to build. The aide-m?moire "pages" are > fairly simple. A topic, a title and a list of the steps needed. As an > example, to change the ownership of a registered racing thoroughbred, which > is required by the "rules" here in Australia, the registered trainer must > submit a paper or fax form of up to 20 pages length to the national > registry organisation. To prepare this paperwork could take the trainer an > hour or so. Our gambas application does this in a few seconds. The steps > (manual) are: > 1) prepare the ownership change form > 2) submit the form to the registry > 3) wait ... .... ... until the registry confirms that the change has been > approved and registered, or denied, or queried ... > 4) file the ownership papers appropriately. > Our application takes care of 1,2 and 4. But looks more like: > 1) use menu item blah to prepare and submit ownership change documents to > registry > * the horse owners records will be updated, but marked as "pending" > 2) when the change confirmation is received, use menu item blah2 to update > owner records > * the pending status will be removed and emails to the (changed) owners > will be sent automatically. > * the new ownership schedule will be printed so you can file it > appropriately. > 3) if the change is denied or queried by the registry see the following > how-tos: > * etc > > And this is one of the simplest (haha) things one could imagine for the > arcane and bureaucratic ways things are run here. (You dont want to see > other examples.) > > So: > I want to build a how-to form in our trainer application that (simply) has > an index page and a set of dynamically generated pages (based) on some > simple text files. The index page will be static with just a set of links > that access the topic page. I don't need or want anything fancier than > that... yet. > We are doing the following: > * these files are being actively converted to the gambas "markdown" > syntax. Very simple, but time consuming due to the number of them (~300) > * trying to figure out the best way to build the "how-to" form. > > This last bit is what I am asking about. I am "wishing" that there is a > really easy way to achieve the goals outlined above without having to > re-invent the wheel so to speak. > > Any input will be (really) gratefully recieved. > > tia > Bruce > > -- > B Bruen > > > ------------------------------------------------------------------------------ > Open source business process management suite built on Java and Eclipse > Turn processes into business applications with Bonita BPM Community Edition > Quickly connect people, data, and systems into organized workflows > Winner of BOSSIE, CODIE, OW2 and Gartner awards > http://p.sf.net/sfu/Bonitasoft > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- If you ask me if it can be done. The answer is YES, it can always be done. The correct questions however are... What will it cost, and how long will it take? From lists at ...2828... Sat Jun 28 07:49:11 2014 From: lists at ...2828... (CJ) Date: Sat, 28 Jun 2014 07:49:11 +0200 Subject: [Gambas-user] Gambas3 and ZeroMQ? Message-ID: <000001cf9294$b9c515f0$0f00a8c0@...2829...> Anyone using ZeroMQ (a.k.a ?MQ/0MQ/zmq) with Gambas3? Looks like a nice way doing inproc, IPC, RPC... http://zeromq.org Below is a nice introduction... http://nichol.as/zeromq-an-introduction /CJ From jscops at ...11... Sat Jun 28 14:50:54 2014 From: jscops at ...11... (Jack) Date: Sat, 28 Jun 2014 14:50:54 +0200 Subject: [Gambas-user] Clock In-Reply-To: <000001cf9294$b9c515f0$0f00a8c0@...2829...> References: <000001cf9294$b9c515f0$0f00a8c0@...2829...> Message-ID: <53AEBA2E.8090202@...11...> hi... here you will find a clock that does not give time but that makes tick-tock ;) http://www.gambasforge.org/code-117-pendule.html -- Cordialement Jacky Tripoteau From gambas at ...1... Sat Jun 28 17:29:54 2014 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Sat, 28 Jun 2014 17:29:54 +0200 Subject: [Gambas-user] how to override opengl pkg-config requirements??? building gambas from trunk In-Reply-To: References: Message-ID: <53AEDF72.4050609@...1...> Le 26/06/2014 20:53, PICCORO McKAY Lenz a ?crit : > i already compiled gambas 3.2 opengl module for lenny xorg 7.4 in > past, but now in 3.5 trunk seems gambas need pkg-config files to find > opengl requirements.. > > i mean, if i have opengl and xorg on a custom setup as example... > > how can i override configure script to supply the opengl requirements? > due i got this on debian lenny (venenux 0.8): > > configure: WARNING: Unable to met pkg-config requirement: gl > configure: WARNING: gb.opengl is disabled > no > configure: WARNING: Unable to met pkg-config requirement: gl > configure: WARNING: gb.opengl.glsl is disabled > no > configure: WARNING: Unable to met pkg-config requirement: glu > configure: WARNING: gb.opengl.glu is disabled > no > configure: WARNING: Unable to met pkg-config requirement: gl > configure: WARNING: gb.opengl.sge is disabled > > || > || Unable to met pkg-config requirement: gl > || gb.opengl is disabled > || Unable to met pkg-config requirement: gl > || gb.opengl.glsl is disabled > || Unable to met pkg-config requirement: glu > || gb.opengl.glu is disabled > || Unable to met pkg-config requirement: gl > || gb.opengl.sge is disabled > || > This is actually foreseen, but the 'configure.ac' file of the 'gb.opengl' components must be modified to explicitely use the 'GB_COMPONENT_SEARCH' macro instead of 'GB_COMPONENT_PKG_CONFIG'. That macro just uses 'GB_COMPONENT_PKG_CONFIG' first, and if it fails, uses the 'GB_COMPONENT' macro that browses the file system. Regards, -- Beno?t Minisini From gambas.fr at ...626... Sat Jun 28 19:10:24 2014 From: gambas.fr at ...626... (Fabien Bodard) Date: Sat, 28 Jun 2014 19:10:24 +0200 Subject: [Gambas-user] Gambas3 and ZeroMQ? In-Reply-To: <000001cf9294$b9c515f0$0f00a8c0@...2829...> References: <000001cf9294$b9c515f0$0f00a8c0@...2829...> Message-ID: Seem interresting ! 2014-06-28 7:49 GMT+02:00 CJ : > > Anyone using ZeroMQ (a.k.a ?MQ/0MQ/zmq) with Gambas3? Looks like a nice way > doing inproc, IPC, RPC... > > http://zeromq.org > > Below is a nice introduction... > > http://nichol.as/zeromq-an-introduction > > /CJ > > > > ------------------------------------------------------------------------------ > Open source business process management suite built on Java and Eclipse > Turn processes into business applications with Bonita BPM Community Edition > Quickly connect people, data, and systems into organized workflows > Winner of BOSSIE, CODIE, OW2 and Gartner awards > http://p.sf.net/sfu/Bonitasoft > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -- Fabien Bodard From mckaygerhard at ...626... Sat Jun 28 21:02:08 2014 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Sat, 28 Jun 2014 14:32:08 -0430 Subject: [Gambas-user] how to override opengl pkg-config requirements??? building gambas from trunk In-Reply-To: References: Message-ID: From: Beno?t Minisini >This is actually foreseen, but the 'configure.ac' file of the >'gb.opengl' components must be modified to explicitely use the >'GB_COMPONENT_SEARCH' macro instead of 'GB_COMPONENT_PKG_CONFIG'. this are present in configure script to modifiy or i have to complety chanhge the script generation? >That macro just uses 'GB_COMPONENT_PKG_CONFIG' first, and if it fails, >uses the 'GB_COMPONENT' macro that browses the file system. if that are present as u said, does not work for lenny, xorg in 7.3 version does nothign about? in squeeze there's no problem, xorg 7.6 provides pkg-config files how can i do then?, to manually provide the linker, flags and include paths? From linux at ...3345... Sat Jun 28 22:32:07 2014 From: linux at ...3345... (Orionis) Date: Sat, 28 Jun 2014 13:32:07 -0700 (PDT) Subject: [Gambas-user] GB3 Editor: how to elaborate Editor.Lines (and CSTR behaviour) Message-ID: <1403987527669-47192.post@...3046...> Hi, I'm starting to investigate this control. This is my first question, but more will follow I have an Editor called 'edit' loaded with some text; I want to recover each single line to parse them. This is an example of code: [code] Dim lineObj As Variant Dim sRow As String For cnt = 0 To edit.lines.Count - 1 lineObj = edit.Lines[cnt] sRow = CStr(lineObj) Next [/code] I get an "Type mismatch errror: wanted String, got .Editor.Line instead" at line 'sRow =...' First question: why the CStr, which should accept a Variant, complies on this value? Later; In the documentation I found this example: [code] Dim hEditor As Editor Dim hEditorLine As .Editor.Line hEditorLine = hEditor.Lines [ Line As Integer ] [/code] This is completely wrong from my test: *Dim hEditorLine As .Editor.Line* gives an "Unexpected . " Removing the initial dot (so, *As Editor.Line*) does not recognize the type At the end: how can I get a single line as string from the Editor? Thanks -- View this message in context: http://gambas.8142.n7.nabble.com/GB3-Editor-how-to-elaborate-Editor-Lines-and-CSTR-behaviour-tp47192.html Sent from the gambas-user mailing list archive at Nabble.com. From gambas.fr at ...626... Sat Jun 28 23:32:18 2014 From: gambas.fr at ...626... (Fabien Bodard) Date: Sat, 28 Jun 2014 23:32:18 +0200 Subject: [Gambas-user] GB3 Editor: how to elaborate Editor.Lines (and CSTR behaviour) In-Reply-To: <1403987527669-47192.post@...3046...> References: <1403987527669-47192.post@...3046...> Message-ID: Dim hEditor As Editor Dim hEditorLine As Object hEditorLine = hEditor.Lines [ Line As Integer ] 2014-06-28 22:32 GMT+02:00 Orionis : > Hi, I'm starting to investigate this control. This is my first question, but > more will follow > I have an Editor called 'edit' loaded with some text; I want to recover each > single line to parse them. > > This is an example of code: > [code] > Dim lineObj As Variant > Dim sRow As String > > For cnt = 0 To edit.lines.Count - 1 > lineObj = edit.Lines[cnt] > sRow = CStr(lineObj) > Next > [/code] > I get an "Type mismatch errror: wanted String, got .Editor.Line instead" at > line 'sRow =...' > First question: why the CStr, which should accept a Variant, complies on > this value? > > Later; > In the documentation I found this example: > [code] > Dim hEditor As Editor > Dim hEditorLine As .Editor.Line > hEditorLine = hEditor.Lines [ Line As Integer ] > [/code] > This is completely wrong from my test: > *Dim hEditorLine As .Editor.Line* gives an "Unexpected . " > Removing the initial dot (so, *As Editor.Line*) does not recognize the type > > At the end: how can I get a single line as string from the Editor? > > Thanks > > > > > > > > > -- > View this message in context: http://gambas.8142.n7.nabble.com/GB3-Editor-how-to-elaborate-Editor-Lines-and-CSTR-behaviour-tp47192.html > Sent from the gambas-user mailing list archive at Nabble.com. > > ------------------------------------------------------------------------------ > Open source business process management suite built on Java and Eclipse > Turn processes into business applications with Bonita BPM Community Edition > Quickly connect people, data, and systems into organized workflows > Winner of BOSSIE, CODIE, OW2 and Gartner awards > http://p.sf.net/sfu/Bonitasoft > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -- Fabien Bodard From shanep1967 at ...169... Sun Jun 29 05:14:17 2014 From: shanep1967 at ...169... (Shane) Date: Sun, 29 Jun 2014 13:14:17 +1000 Subject: [Gambas-user] menu error Message-ID: <53AF8489.6000201@...169...> I get the attached error when trying to insert a menu to an existing project form build 6343 [System] Gambas=3.5.90 OperatingSystem=Linux Kernel=3.8.0-35-generic Architecture=x86_64 Distribution=Linux Mint 15 Olivia Desktop=GNOME Theme=QGtk Language=en_AU.UTF-8 Memory=3808M [Libraries] Cairo=libcairo.so.2.11200.14 Curl=libcurl.so.4.3.0 DBus=libdbus-1.so.3.7.2 GStreamer=libgstreamer-0.10.so.0.30.0 GStreamer=libgstreamer-1.0.so.0.6.0 GTK+3=libgtk-3.so.0.600.4 GTK+=libgtk-x11-2.0.so.0.2400.17 OpenGL=libGL.so.1.2.0 Poppler=libpoppler.so.28.0.0 Qt4=libQtCore.so.4.8.4 SDL=libSDL-1.2.so.0.11.4 -------------- next part -------------- A non-text attachment was scrubbed... Name: Screenshot from 2014-06-29 13:09:24.png Type: image/png Size: 17564 bytes Desc: not available URL: From pata.karlsson at ...626... Sun Jun 29 10:05:24 2014 From: pata.karlsson at ...626... (Patrik Karlsson) Date: Sun, 29 Jun 2014 10:05:24 +0200 Subject: [Gambas-user] menu error In-Reply-To: <53AF8489.6000201@...169...> References: <53AF8489.6000201@...169...> Message-ID: My guess is that you have to subtract one from your menu index. http://en.wikipedia.org/wiki/Off-by-one_error 2014-06-29 5:14 GMT+02:00 Shane : > I get the attached error when trying to insert a menu to an existing > project form > > build 6343 > > [System] > Gambas=3.5.90 > OperatingSystem=Linux > Kernel=3.8.0-35-generic > Architecture=x86_64 > Distribution=Linux Mint 15 Olivia > Desktop=GNOME > Theme=QGtk > Language=en_AU.UTF-8 > Memory=3808M > [Libraries] > Cairo=libcairo.so.2.11200.14 > Curl=libcurl.so.4.3.0 > DBus=libdbus-1.so.3.7.2 > GStreamer=libgstreamer-0.10.so.0.30.0 > GStreamer=libgstreamer-1.0.so.0.6.0 > GTK+3=libgtk-3.so.0.600.4 > GTK+=libgtk-x11-2.0.so.0.2400.17 > OpenGL=libGL.so.1.2.0 > Poppler=libpoppler.so.28.0.0 > Qt4=libQtCore.so.4.8.4 > SDL=libSDL-1.2.so.0.11.4 > > > ------------------------------------------------------------------------------ > Open source business process management suite built on Java and Eclipse > Turn processes into business applications with Bonita BPM Community Edition > Quickly connect people, data, and systems into organized workflows > Winner of BOSSIE, CODIE, OW2 and Gartner awards > http://p.sf.net/sfu/Bonitasoft > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > From shanep1967 at ...169... Sun Jun 29 10:14:59 2014 From: shanep1967 at ...169... (Shane) Date: Sun, 29 Jun 2014 18:14:59 +1000 Subject: [Gambas-user] menu error In-Reply-To: References: <53AF8489.6000201@...169...> Message-ID: <53AFCB03.8010003@...169...> ummm maybe i should have said i was using the ide to do this On 29/06/14 18:05, Patrik Karlsson wrote: > My guess is that you have to subtract one from your menu index. > http://en.wikipedia.org/wiki/Off-by-one_error > > > > 2014-06-29 5:14 GMT+02:00 Shane : > >> I get the attached error when trying to insert a menu to an existing >> project form >> >> build 6343 >> >> [System] >> Gambas=3.5.90 >> OperatingSystem=Linux >> Kernel=3.8.0-35-generic >> Architecture=x86_64 >> Distribution=Linux Mint 15 Olivia >> Desktop=GNOME >> Theme=QGtk >> Language=en_AU.UTF-8 >> Memory=3808M >> [Libraries] >> Cairo=libcairo.so.2.11200.14 >> Curl=libcurl.so.4.3.0 >> DBus=libdbus-1.so.3.7.2 >> GStreamer=libgstreamer-0.10.so.0.30.0 >> GStreamer=libgstreamer-1.0.so.0.6.0 >> GTK+3=libgtk-3.so.0.600.4 >> GTK+=libgtk-x11-2.0.so.0.2400.17 >> OpenGL=libGL.so.1.2.0 >> Poppler=libpoppler.so.28.0.0 >> Qt4=libQtCore.so.4.8.4 >> SDL=libSDL-1.2.so.0.11.4 >> >> >> ------------------------------------------------------------------------------ >> Open source business process management suite built on Java and Eclipse >> Turn processes into business applications with Bonita BPM Community Edition >> Quickly connect people, data, and systems into organized workflows >> Winner of BOSSIE, CODIE, OW2 and Gartner awards >> http://p.sf.net/sfu/Bonitasoft >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> >> > ------------------------------------------------------------------------------ > Open source business process management suite built on Java and Eclipse > Turn processes into business applications with Bonita BPM Community Edition > Quickly connect people, data, and systems into organized workflows > Winner of BOSSIE, CODIE, OW2 and Gartner awards > http://p.sf.net/sfu/Bonitasoft > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > From gambas.fr at ...626... Sun Jun 29 11:21:44 2014 From: gambas.fr at ...626... (Fabien Bodard) Date: Sun, 29 Jun 2014 11:21:44 +0200 Subject: [Gambas-user] menu error In-Reply-To: <53AFCB03.8010003@...169...> References: <53AF8489.6000201@...169...> <53AFCB03.8010003@...169...> Message-ID: you must to provide a project that show the problem and the way to et this error... this is the minimal things to correct a bug :-) 2014-06-29 10:14 GMT+02:00 Shane : > ummm maybe i should have said i was using the ide to do this > > On 29/06/14 18:05, Patrik Karlsson wrote: >> My guess is that you have to subtract one from your menu index. >> http://en.wikipedia.org/wiki/Off-by-one_error >> >> >> >> 2014-06-29 5:14 GMT+02:00 Shane : >> >>> I get the attached error when trying to insert a menu to an existing >>> project form >>> >>> build 6343 >>> >>> [System] >>> Gambas=3.5.90 >>> OperatingSystem=Linux >>> Kernel=3.8.0-35-generic >>> Architecture=x86_64 >>> Distribution=Linux Mint 15 Olivia >>> Desktop=GNOME >>> Theme=QGtk >>> Language=en_AU.UTF-8 >>> Memory=3808M >>> [Libraries] >>> Cairo=libcairo.so.2.11200.14 >>> Curl=libcurl.so.4.3.0 >>> DBus=libdbus-1.so.3.7.2 >>> GStreamer=libgstreamer-0.10.so.0.30.0 >>> GStreamer=libgstreamer-1.0.so.0.6.0 >>> GTK+3=libgtk-3.so.0.600.4 >>> GTK+=libgtk-x11-2.0.so.0.2400.17 >>> OpenGL=libGL.so.1.2.0 >>> Poppler=libpoppler.so.28.0.0 >>> Qt4=libQtCore.so.4.8.4 >>> SDL=libSDL-1.2.so.0.11.4 >>> >>> >>> ------------------------------------------------------------------------------ >>> Open source business process management suite built on Java and Eclipse >>> Turn processes into business applications with Bonita BPM Community Edition >>> Quickly connect people, data, and systems into organized workflows >>> Winner of BOSSIE, CODIE, OW2 and Gartner awards >>> http://p.sf.net/sfu/Bonitasoft >>> _______________________________________________ >>> Gambas-user mailing list >>> Gambas-user at lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>> >>> >> ------------------------------------------------------------------------------ >> Open source business process management suite built on Java and Eclipse >> Turn processes into business applications with Bonita BPM Community Edition >> Quickly connect people, data, and systems into organized workflows >> Winner of BOSSIE, CODIE, OW2 and Gartner awards >> http://p.sf.net/sfu/Bonitasoft >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> >> > > > ------------------------------------------------------------------------------ > Open source business process management suite built on Java and Eclipse > Turn processes into business applications with Bonita BPM Community Edition > Quickly connect people, data, and systems into organized workflows > Winner of BOSSIE, CODIE, OW2 and Gartner awards > http://p.sf.net/sfu/Bonitasoft > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -- Fabien Bodard From deysonthome at ...626... Sun Jun 29 16:43:38 2014 From: deysonthome at ...626... (Deyson Thome) Date: Sun, 29 Jun 2014 11:43:38 -0300 Subject: [Gambas-user] Translate user interface Message-ID: Hello I'm use Gambas in english, no problem ... but in Brazil any users ask me how to translate the Gambas Interface to portuguese, It's incredible my dear, but I don't know how can I do this. If you have a little time to help me, please .... send me a little tutorial. And I put the instructions in our site. Thanks for all Thom? www.brgambas.com *--------------------------------------------------------------------------------------------------------------------------------------------------------------------------Desenvolvimento de Sites - Hospedagem - Marketing Web com AdWords Visite www.dbtsites.com Contato: +55 (21) 98103-1652 -- deysonthome at ...626... -------------------------------------------------------------------------------------------------Linux User :# 417.434Ubuntu User # 34081-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------* *" O pre?o a pagar pela tua n?o participa??o na pol?tica? ser governado por algu?m inferior a voc? " Plat?o ( 428 ~ 347 AC )* From willy at ...2734... Sun Jun 29 17:10:41 2014 From: willy at ...2734... (Willy Raets) Date: Sun, 29 Jun 2014 17:10:41 +0200 Subject: [Gambas-user] Translate user interface In-Reply-To: References: Message-ID: <1404054641.2332.40.camel@...3024...> On zo, 2014-06-29 at 11:43 -0300, Deyson Thome wrote: > Hello > > I'm use Gambas in english, no problem ... but in Brazil any users ask me > how to translate the Gambas Interface to portuguese, It's incredible my > dear, but I don't know how can I do this. > If you have a little time to help me, please .... send me a little > tutorial. And I put the instructions in our site. > > Thanks for all > > Thom? > www.brgambas.com > Hello Thom?, Instructions for translating Gambas are found here: http://gambaswiki.org/wiki/howto/translate It comes down to: 1. downloading Gambas source code (use svn or download tar.gz and unpack to folder) 2. Start Gambas and select 'Open project' 3. Browse to folder where source code is located (either svn download folder or folder where tar.gz was unpacked) In this folder you will find several Gambas parts that need translation: In app/src you find gambas3 (the IDE), the most important one to translate. In comp/src you find all gambas written components (they need translation as well) All Gambas written parts will have an icon when opening from Gambas. See attached screenshot Hope this will get you started. -- Kind regards, Willy (aka gbWilly) http://gambasshowcase.org/ http://howtogambas.org http://gambos.org -------------- next part -------------- A non-text attachment was scrubbed... Name: Screenshot-3.png Type: image/png Size: 193730 bytes Desc: not available URL: From taboege at ...626... Sun Jun 29 20:06:27 2014 From: taboege at ...626... (Tobias Boege) Date: Sun, 29 Jun 2014 20:06:27 +0200 Subject: [Gambas-user] GB3 Editor: how to elaborate Editor.Lines (and CSTR behaviour) In-Reply-To: <1403987527669-47192.post@...3046...> References: <1403987527669-47192.post@...3046...> Message-ID: <20140629180627.GC515@...2774...> On Sat, 28 Jun 2014, Orionis wrote: > Hi, I'm starting to investigate this control. This is my first question, but > more will follow > I have an Editor called 'edit' loaded with some text; I want to recover each > single line to parse them. > > This is an example of code: > [code] > Dim lineObj As Variant > Dim sRow As String > > For cnt = 0 To edit.lines.Count - 1 > lineObj = edit.Lines[cnt] > sRow = CStr(lineObj) > Next > [/code] > I get an "Type mismatch errror: wanted String, got .Editor.Line instead" at > line 'sRow =...' > First question: why the CStr, which should accept a Variant, complies on > this value? > .Editor.Line is a virtual class which means that it does not represent a distinct object but merely a state of another object. (This is totally different from the "virtual" keyword in C++!) You cannot hold a reference to virtual objects, so you cannot put them into Variant reliably either or convert them, etc.. > Later; > In the documentation I found this example: > [code] > Dim hEditor As Editor > Dim hEditorLine As .Editor.Line > hEditorLine = hEditor.Lines [ Line As Integer ] > [/code] > This is completely wrong from my test: > *Dim hEditorLine As .Editor.Line* gives an "Unexpected . " > Removing the initial dot (so, *As Editor.Line*) does not recognize the type > Your interpretation is not the way in which the documentation should be read. As I said above, virtual objects cannot be referenced, so you cannot declare a variable of a virtual class type (as you have noticed). The documentation syntax above just tells you what type the return value is and thereby provides a link to its documentation. I agree that the fact that it indeed declares a variable of that type (of which you cannot declare variables actually) is a bit confusing but once you've seen this pattern, you're in the know. Virtual class names, by convention, start with the "." character. > At the end: how can I get a single line as string from the Editor? > Virtual objects mimic the way real objects work, i.e. they have properties and methods. (Virtual objects are never single values because in this case, there would not be a virtual class in the first place.) In this particular case you get the text of the i-th line by: edit.Lines[i].Text Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From gambas at ...1... Sun Jun 29 22:11:28 2014 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Sun, 29 Jun 2014 22:11:28 +0200 Subject: [Gambas-user] menu error In-Reply-To: <53AF8489.6000201@...169...> References: <53AF8489.6000201@...169...> Message-ID: <53B072F0.8010305@...1...> Le 29/06/2014 05:14, Shane a ?crit : > I get the attached error when trying to insert a menu to an existing > project form > > build 6343 > It should be fixed in revision #6349. Regards, -- Beno?t Minisini From linux at ...3345... Sun Jun 29 22:17:14 2014 From: linux at ...3345... (Orionis) Date: Sun, 29 Jun 2014 13:17:14 -0700 (PDT) Subject: [Gambas-user] [SOLVED]: GB3 Editor: how to elaborate Editor.Lines (and CSTR behaviour) In-Reply-To: <20140629180627.GC515@...2774...> References: <1403987527669-47192.post@...3046...> <20140629180627.GC515@...2774...> Message-ID: <1404073034579-47206.post@...3046...> Thanks Tobias, it took half an hour at least to analyze your answer since this concept is quite obscure to me, but at the end I succeded and this is precious for all the situations were 'virtual class' are involved. The documentation should possibly be rewritten to make it clear to all. -- View this message in context: http://gambas.8142.n7.nabble.com/GB3-Editor-how-to-elaborate-Editor-Lines-and-CSTR-behaviour-tp47192p47206.html Sent from the gambas-user mailing list archive at Nabble.com. From taboege at ...626... Sun Jun 29 22:23:22 2014 From: taboege at ...626... (Tobias Boege) Date: Sun, 29 Jun 2014 22:23:22 +0200 Subject: [Gambas-user] [SOLVED]: GB3 Editor: how to elaborate Editor.Lines (and CSTR behaviour) In-Reply-To: <1404073034579-47206.post@...3046...> References: <1403987527669-47192.post@...3046...> <20140629180627.GC515@...2774...> <1404073034579-47206.post@...3046...> Message-ID: <20140629202322.GJ515@...2774...> On Sun, 29 Jun 2014, Orionis wrote: > Thanks Tobias, > it took half an hour at least to analyze your answer since this concept is > quite obscure to me, but at the end I succeded and this is precious for all > the situations were 'virtual class' are involved. > The documentation should possibly be rewritten to make it clear to all. > Hmm, sometimes I ask myself where I got my information from... In this case, I found a page in the wiki to support my answer: [0]. :-) Regards, Tobi [0] http://gambaswiki.org/wiki/def/virtual -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From shanep1967 at ...169... Mon Jun 30 04:22:06 2014 From: shanep1967 at ...169... (Shane) Date: Mon, 30 Jun 2014 12:22:06 +1000 Subject: [Gambas-user] making 6349 Message-ID: <53B0C9CE.40705@...169...> i get this error when trying to make version 6349 make[4]: Entering directory `/home/shane/trunk/gb.desktop.x11/src' CC gb_desktop_x11_la-main.lo CC gb_desktop_x11_la-x11.lo CC gb_desktop_x11_la-c_x11systray.lo CC systray/gb_desktop_x11_la-systray.lo rm: cannot remove 'systray/.libs/gb_desktop_x11_la-systray.o': Permission denied Assembler messages: Fatal error: can't create systray/.libs/gb_desktop_x11_la-systray.o: Permission denied make[4]: *** [systray/gb_desktop_x11_la-systray.lo] Error 1 make[4]: Leaving directory `/home/shane/trunk/gb.desktop.x11/src' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/home/shane/trunk/gb.desktop.x11' make[2]: *** [all] Error 2 make[2]: Leaving directory `/home/shane/trunk/gb.desktop.x11' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/shane/trunk' make: *** [all] Error 2 From bbruen at ...2308... Mon Jun 30 07:00:13 2014 From: bbruen at ...2308... (B Bruen) Date: Mon, 30 Jun 2014 14:30:13 +0930 Subject: [Gambas-user] making 6349 In-Reply-To: <53B0C9CE.40705@...169...> References: <53B0C9CE.40705@...169...> Message-ID: <20140630143013.f698323f616eecdf383ec8a1@...2308...> Interesting. It "just worked" here. Did you go though the entire "./reconf-all; ./configure -C; make" circus? Bruce On Mon, 30 Jun 2014 12:22:06 +1000 Shane wrote: > i get this error when trying to make version 6349 > > make[4]: Entering directory `/home/shane/trunk/gb.desktop.x11/src' > CC gb_desktop_x11_la-main.lo > CC gb_desktop_x11_la-x11.lo > CC gb_desktop_x11_la-c_x11systray.lo > CC systray/gb_desktop_x11_la-systray.lo > rm: cannot remove 'systray/.libs/gb_desktop_x11_la-systray.o': > Permission denied > Assembler messages: > Fatal error: can't create systray/.libs/gb_desktop_x11_la-systray.o: > Permission denied > make[4]: *** [systray/gb_desktop_x11_la-systray.lo] Error 1 > make[4]: Leaving directory `/home/shane/trunk/gb.desktop.x11/src' > make[3]: *** [all-recursive] Error 1 > make[3]: Leaving directory `/home/shane/trunk/gb.desktop.x11' > make[2]: *** [all] Error 2 > make[2]: Leaving directory `/home/shane/trunk/gb.desktop.x11' > make[1]: *** [all-recursive] Error 1 > make[1]: Leaving directory `/home/shane/trunk' > make: *** [all] Error 2 > > > > ------------------------------------------------------------------------------ > Open source business process management suite built on Java and Eclipse > Turn processes into business applications with Bonita BPM Community Edition > Quickly connect people, data, and systems into organized workflows > Winner of BOSSIE, CODIE, OW2 and Gartner awards > http://p.sf.net/sfu/Bonitasoft > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -- B Bruen From wig at ...1809... Mon Jun 30 10:09:29 2014 From: wig at ...1809... (wig) Date: Mon, 30 Jun 2014 10:09:29 +0200 Subject: [Gambas-user] Translate user interface In-Reply-To: References: Message-ID: <07c63c336f4a18db80e1f319e6ea1ad2.squirrel@...3221...> > Hello > > I'm use Gambas in english, no problem ... but in Brazil any users ask me > how to translate the Gambas Interface to portuguese, It's incredible my > dear, but I don't know how can I do this. > If you have a little time to help me, please .... send me a little > tutorial. And I put the instructions in our site. > > Thanks for all > > Thom?? > www.brgambas.com > Deyson Thome: As the Gambas interface is written in Gambas itself, translate just like any Gambas project: - check project properties, Options: Project is translatable: YES (keep default language as is) - ps: in a new project you would tick the option "Internationalisation" to get translatable activated. - Menu Project, Translate (flags icon) gives Project translation screen. - In the left column you see the existing language. Choose "New" button, that gives you a list of languages, choose e.g. Portuguese (Brazil). - You see the list of untranslated texts, choose one. - You see the lower empty box without title or tooltip; put the translation there. Save often. - to check the translation to work, run the project on a Portuguese-installed desktop. Gambas uses the language of the environment. To see yours, in the Gambas console, type ? system.language gives me: en_US.UTF-8 - For your own projects, you can let the user select the language, and keep it in a setting, eg "General/Language". At start of your app, call it with System.Language = Settings["General/Language"] It will only be active for the windows (form) opened afterwards, so you might want to call it before any forms are opened. I use MMain as startup class, do initialisations, then call FMain from there. As far as I know, the translations themselves are stored as *.po and/or *.mo files in the .lang directory (at least in gb2). success, WiG From wig at ...1809... Mon Jun 30 11:21:30 2014 From: wig at ...1809... (wig) Date: Mon, 30 Jun 2014 11:21:30 +0200 Subject: [Gambas-user] TableView1_Drop on which row/col? Ok: Drop.X In-Reply-To: References: <7b6d08882ccf760f13d78879c5c8787f@...1809...> <53AD6455.8080405@...1...> Message-ID: >> Le 27/06/2014 13:36, wig a ?crit : >>> >>> >>> I try to drag the text from a textlabel to a cell on my TableView. >>> >>> How to determine the cell where the drop happened? >>> >>> Public Sub TableView1_Drop() >>> >>> Debug TableView1.Row >>> >>> Debug TableView1.Column >>> >>> ' TableView1[Row, Column].Text = Drag.Data >>> >>> End >>> >>> This Debug gives me -1 for each, so that's not the way. >>> >>> I didn't find an example or an answer in mailinglist search, >>> documentation. >>> >>> Thanks for giving me a clue.. >>> >>> WiG >>> >> Re: [Gambas-user] TableView1_Drop on which ro >> You must use the RowAt() and ColumnAt() methods. They should take the >> mouse position directly. >> >> -- >> Beno?t Minisini >> > > I tried TableView1.RowAt() with Mouse.X as parameter > > I get values that I cannot interprete and even not reproduce with several > drag and drops. > > So I looked first at the value of Mouse.X and Mouse.Y in TableView1_Drop, > but I don't understand the values I get. > > I compared with MouseDown and MouseUp, these give reasonable values. > > Probably I just miss the understanding of some concept. > > > ---------------------------------------------------------------------------- Ok, I think not the Mouse.X but the Drop.X and Drop.Y seem to work! From jussi.lahtinen at ...626... Mon Jun 30 14:47:31 2014 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Mon, 30 Jun 2014 15:47:31 +0300 Subject: [Gambas-user] making 6349 In-Reply-To: <53B0C9CE.40705@...169...> References: <53B0C9CE.40705@...169...> Message-ID: "rm: cannot remove 'systray/.libs/gb_desktop_x11_la-systray.o': Permission denied" Check permissions of ~/trunk/gb.desktop.x11/src/systray. Is it possible that you have changed them somehow..? Jussi On Mon, Jun 30, 2014 at 5:22 AM, Shane wrote: > i get this error when trying to make version 6349 > > make[4]: Entering directory `/home/shane/trunk/gb.desktop.x11/src' > CC gb_desktop_x11_la-main.lo > CC gb_desktop_x11_la-x11.lo > CC gb_desktop_x11_la-c_x11systray.lo > CC systray/gb_desktop_x11_la-systray.lo > rm: cannot remove 'systray/.libs/gb_desktop_x11_la-systray.o': > Permission denied > Assembler messages: > Fatal error: can't create systray/.libs/gb_desktop_x11_la-systray.o: > Permission denied > make[4]: *** [systray/gb_desktop_x11_la-systray.lo] Error 1 > make[4]: Leaving directory `/home/shane/trunk/gb.desktop.x11/src' > make[3]: *** [all-recursive] Error 1 > make[3]: Leaving directory `/home/shane/trunk/gb.desktop.x11' > make[2]: *** [all] Error 2 > make[2]: Leaving directory `/home/shane/trunk/gb.desktop.x11' > make[1]: *** [all-recursive] Error 1 > make[1]: Leaving directory `/home/shane/trunk' > make: *** [all] Error 2 > > > > > ------------------------------------------------------------------------------ > Open source business process management suite built on Java and Eclipse > Turn processes into business applications with Bonita BPM Community Edition > Quickly connect people, data, and systems into organized workflows > Winner of BOSSIE, CODIE, OW2 and Gartner awards > http://p.sf.net/sfu/Bonitasoft > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From linux at ...3345... Mon Jun 30 15:14:49 2014 From: linux at ...3345... (Orionis) Date: Mon, 30 Jun 2014 06:14:49 -0700 (PDT) Subject: [Gambas-user] [SOLVED]: GB3 Editor: how to elaborate Editor.Lines (and CSTR behaviour) In-Reply-To: <20140629202322.GJ515@...2774...> References: <1403987527669-47192.post@...3046...> <20140629180627.GC515@...2774...> <1404073034579-47206.post@...3046...> <20140629202322.GJ515@...2774...> Message-ID: <1404134089537-47212.post@...3046...> For sure your English understanding is much better than mine Thanks for your link; I did not find it before, but now, after having red it, I can confirm that your answer is clearer than the wiki. What is important is that when understood once it is learned forever, I hope -- View this message in context: http://gambas.8142.n7.nabble.com/GB3-Editor-how-to-elaborate-Editor-Lines-and-CSTR-behaviour-tp47192p47212.html Sent from the gambas-user mailing list archive at Nabble.com. From jprovan at ...626... Mon Jun 30 19:43:18 2014 From: jprovan at ...626... (Jim Provan) Date: Mon, 30 Jun 2014 12:43:18 -0500 Subject: [Gambas-user] IDE Hint color washed out Message-ID: I am on Ubuntu 14.04. The hint color is a beige or yellow with white lettering. It isn't readable. Has anyone else experienced this and if so, how did you correct it ? Jim Provan From spikethecat73 at ...626... Mon Jun 30 19:46:58 2014 From: spikethecat73 at ...626... (David Robertson) Date: Mon, 30 Jun 2014 18:46:58 +0100 Subject: [Gambas-user] IDE Hint color washed out In-Reply-To: References: Message-ID: Also using Ubuntu 14.04 (Unity), and have the same issue. David Robertson On 30 Jun 2014 18:44, "Jim Provan" wrote: > I am on Ubuntu 14.04. The hint color is a beige or yellow with white > lettering. It isn't readable. Has anyone else experienced this and if so, > how did you correct it ? > > Jim Provan > > ------------------------------------------------------------------------------ > Open source business process management suite built on Java and Eclipse > Turn processes into business applications with Bonita BPM Community Edition > Quickly connect people, data, and systems into organized workflows > Winner of BOSSIE, CODIE, OW2 and Gartner awards > http://p.sf.net/sfu/Bonitasoft > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...2524... Mon Jun 30 22:23:08 2014 From: gambas at ...2524... (gambas at ...2524...) Date: Mon, 30 Jun 2014 20:23:08 +0000 Subject: [Gambas-user] Issue 535 in gambas: Tableview.Rows.Insert sometimes causes the horizontal ruler to appear Message-ID: <0-6813199134517018827-6552235666010758802-gambas=googlecode.com@...2524...> Status: New Owner: ---- Labels: Version Type-Bug Priority-Medium OpSys-Any Dist-Any Arch-Any Desktop-Any GUI-Any New issue 535 by uAle... at ...626...: Tableview.Rows.Insert sometimes causes the horizontal ruler to appear http://code.google.com/p/gambas/issues/detail?id=535 1) Describe the problem. When creating a tableview and adding rows to it, works fine. The horizontal and vertical only appear when they are applicable. Only if the TableView.Rows.Insert action is called and the number of inserted rows don't fall in the visible rows anymore, a horizontal ruler appears. When adding more rows again, the horizontal rules disappears again (as expected). 2) Give information about your system. Use the 'System information' menu in the Gambas IDE, and paste the result there. [System] Gambas=3.5.3 OperatingSystem=Linux Kernel=3.13.0-24-generic Architecture=x86_64 Distribution=Ubuntu 14.04 LTS Desktop=GNOME Theme=QGtk Language=en_US.UTF-8 Memory=987M [Libraries] Cairo=libcairo.so.2.11301.0 Curl=libcurl.so.4.3.0 DBus=libdbus-1.so.3.7.6 GStreamer=libgstreamer-0.10.so.0.30.0 GStreamer=libgstreamer-1.0.so.0.204.0 GTK+=libgtk-x11-2.0.so.0.2400.23 OpenGL=libGL.so.1.2.0 Poppler=libpoppler.so.44.0.0 Qt4=libQtCore.so.4.8.6 SDL=libSDL-1.2.so.0.11.4 3) Provide a little project that reproduces the bug or the crash. Project is attached, with 2 rows and a button to insert 10 rows to show the appearances of the horizontal ruler. Also attached a screenshot with the ruler circled. 4) If your project needs a database, try to provide it, or part of it. 5) Explain clearly how to reproduce the bug or the crash. See the example project and description. 6) By doing that carefully, you have done 50% of the bug fix job! IMPORTANT NOTE: If you encounter several different problems or bugs, (for example, a bug in your project, and an interpreter crash while debugging it), please create distinct issues! ANOTHER NOTE: Don't create an issue if you have a compilation problem on the development version. Send a mail to the mailing-list instead, thanks. Attachments: TestTableView.tar.gz 5.5 KB Show-Horizontal.png 23.9 KB -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From ualex73 at ...626... Mon Jun 30 22:25:56 2014 From: ualex73 at ...626... (Alexie) Date: Mon, 30 Jun 2014 22:25:56 +0200 Subject: [Gambas-user] Pre-release of gambas 3.5.4 In-Reply-To: References: <53A741D1.3070208@...1...> Message-ID: Hi Benoit, When i download the pre-release, the "gambas3 -V" output still shows 3.5.2: domo at ...3352...:~$ gbc3 -V 3.5.4 domo at ...3352...:~$ gbx3 -V 3.5.4 domo at ...3352...:~$ gambas3 -V 3.5.2 Regards, Alex 2014-06-23 3:36 GMT+02:00 Olivier Cruilles : > Hello, > > I compiled the pre-release 3.5.4 as asked by you. > All the compilation is ok without any problem. > > But when tried to start the IDE, I took this error: > > Gtk-Message: (for origin information, set GTK_DEBUG): failed to retrieve > property `GtkTreeView::odd-row-color' of type `GdkColor' from rc file > value "((GString*) 0x98d3980)" of type `GString' > /usr/bin/gambas3: symbol lookup error: /usr/lib/gambas3/gb.qt4.so: > undefined symbol: _Z22CCONTAINER_draw_borderP8QPaintercP7QWidget > > [System] > OperatingSystem=Linux > Kernel=2.6.43.8-1.fc15.i686 > Architecture=x86 > Distribution=redhat Fedora release 14 (Laughlin) > Desktop=GNOME > Theme=QGtk > Language=fr_FR.UTF-8 > Memory=3284M > [Libraries] > Cairo=libcairo.so.0.0.0 > Cairo=libcairo.so.2.11000.2 > Curl=libcurl.so.4.2.0 > DBus=libdbus-1.so.3.5.2 > GStreamer=libgstreamer-0.10.so.0.27.0 > GTK+=libgtk-x11-2.0.so.0.2200.0 > Poppler=libpoppler.so.7.0.0 > Qt4=libQtCore.so.4.7.4 > SDL=libSDL-1.2.so.0.11.3 > > > > * But I use the latest SVN version and all is OK > > Do I need to give you more informations ? > > > Cordialement, > > Olivier Cruilles > EMail: olivier.cruilles at ...614... > Portable: +01 514 431 2960 > > Le 22 juin 2014 ? 16:51, Beno?t Minisini a > ?crit : > > > Hi, > > > > I have made a pre-release of the gambas 3.5.4 package at: > > > > > http://sourceforge.net/projects/gambas/files/gambas3/gambas3-3.5.4.tar.bz2/download > > > > Please test it and report any problem before I make the release official. > > > > Thanks! > > > > -- > > Beno?t Minisini > > > > > ------------------------------------------------------------------------------ > > HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions > > Find What Matters Most in Your Big Data with HPCC Systems > > Open Source. Fast. Scalable. Simple. Ideal for Dirty Data. > > Leverages Graph Analysis for Fast Processing & Easy Data Exploration > > http://p.sf.net/sfu/hpccsystems > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > ------------------------------------------------------------------------------ > HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions > Find What Matters Most in Your Big Data with HPCC Systems > Open Source. Fast. Scalable. Simple. Ideal for Dirty Data. > Leverages Graph Analysis for Fast Processing & Easy Data Exploration > http://p.sf.net/sfu/hpccsystems > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Mon Jun 30 23:23:41 2014 From: gambas at ...1... (=?UTF-8?B?QmVub8OudCBNaW5pc2luaQ==?=) Date: Mon, 30 Jun 2014 23:23:41 +0200 Subject: [Gambas-user] Pre-release of gambas 3.5.4 In-Reply-To: References: <53A741D1.3070208@...1...> Message-ID: <53B1D55D.9020103@...1...> Le 30/06/2014 22:25, Alexie a ?crit : > Hi Benoit, > > When i download the pre-release, the "gambas3 -V" output still shows 3.5.2: > > domo at ...3352...:~$ gbc3 -V > > 3.5.4 > > domo at ...3352...:~$ gbx3 -V > > 3.5.4 > > domo at ...3352...:~$ gambas3 -V > > 3.5.2 > > Regards, > Alex > Are you sure that you compiled and installed correctly? -- Beno?t Minisini