From gambas at ...1... Tue Nov 1 13:54:20 2011 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Tue, 01 Nov 2011 13:54:20 +0100 Subject: [Gambas-user] Release of Gambas 3 RC6 Message-ID: <4EAFEBFC.6060506@...1...> Hi, I have released the sixth Gambas 3 release candidate. There were enough bug fixes in many places, and especially in the interpreter, to justify a new release candidate. All the details about this release is on the web site. Please use and check as usual! Regards, -- Beno?t Minisini From gambas at ...2524... Tue Nov 1 22:18:18 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Tue, 01 Nov 2011 21:18:18 +0000 Subject: [Gambas-user] Issue 138 in gambas: Bug with long constant declaration In-Reply-To: <1-6813199134517018827-2115458615409850634-gambas=googlecode.com@...2524...> References: <1-6813199134517018827-2115458615409850634-gambas=googlecode.com@...2524...> <0-6813199134517018827-2115458615409850634-gambas=googlecode.com@...2524...> Message-ID: <2-6813199134517018827-2115458615409850634-gambas=googlecode.com@...2524...> Comment #2 on issue 138 by jussi.la... at ...626...: Bug with long constant declaration http://code.google.com/p/gambas/issues/detail?id=138 I reloaded and compiled the sources, but still the same problem. Compile logs attached. ( ./reconf-all && ./configure -C && make ) > output.txt 2>&1 ( sudo make install ) > output2.txt 2>&1 Attachments: output.txt 703 KB output2.txt 132 KB From gambas at ...2524... Tue Nov 1 22:30:09 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Tue, 01 Nov 2011 21:30:09 +0000 Subject: [Gambas-user] Issue 138 in gambas: Bug with long constant declaration In-Reply-To: <2-6813199134517018827-2115458615409850634-gambas=googlecode.com@...2524...> References: <2-6813199134517018827-2115458615409850634-gambas=googlecode.com@...2524...> <0-6813199134517018827-2115458615409850634-gambas=googlecode.com@...2524...> Message-ID: <3-6813199134517018827-2115458615409850634-gambas=googlecode.com@...2524...> Comment #3 on issue 138 by jussi.la... at ...626...: Bug with long constant declaration http://code.google.com/p/gambas/issues/detail?id=138 BTW. Following declarations works fine: Public Const LowestLong As Long = -9223372036854775807 Public Const LowestLong As Long = 9223372036854775807 However, this causes same error message: Public Const LowestLong As Long = 9223372036854775808 From gambas at ...2524... Tue Nov 1 23:08:42 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Tue, 01 Nov 2011 22:08:42 +0000 Subject: [Gambas-user] Issue 138 in gambas: Bug with long constant declaration In-Reply-To: <3-6813199134517018827-2115458615409850634-gambas=googlecode.com@...2524...> References: <3-6813199134517018827-2115458615409850634-gambas=googlecode.com@...2524...> <0-6813199134517018827-2115458615409850634-gambas=googlecode.com@...2524...> Message-ID: <4-6813199134517018827-2115458615409850634-gambas=googlecode.com@...2524...> Updates: Status: Accepted Labels: -Version Version-TRUNK Comment #4 on issue 138 by benoit.m... at ...626...: Bug with long constant declaration http://code.google.com/p/gambas/issues/detail?id=138 (No comment was entered for this change.) From gambas at ...2524... Wed Nov 2 00:57:23 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Tue, 01 Nov 2011 23:57:23 +0000 Subject: [Gambas-user] Issue 138 in gambas: Bug with long constant declaration In-Reply-To: <4-6813199134517018827-2115458615409850634-gambas=googlecode.com@...2524...> References: <4-6813199134517018827-2115458615409850634-gambas=googlecode.com@...2524...> <0-6813199134517018827-2115458615409850634-gambas=googlecode.com@...2524...> Message-ID: <5-6813199134517018827-2115458615409850634-gambas=googlecode.com@...2524...> Updates: Status: Fixed Comment #5 on issue 138 by benoit.m... at ...626...: Bug with long constant declaration http://code.google.com/p/gambas/issues/detail?id=138 Fixed in revision #4230. From kevinfishburne at ...1887... Wed Nov 2 05:47:29 2011 From: kevinfishburne at ...1887... (Kevin Fishburne) Date: Wed, 02 Nov 2011 00:47:29 -0400 Subject: [Gambas-user] gb3: changing the active font Message-ID: <4EB0CB61.3050405@...1887...> I'm looking through the docs trying to find out how to change the active font but am not having much luck. Anyone know how to do it? I can change the size and color, but not the font being used. -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sales at ...1887... phone: (770) 853-6271 From bbruen at ...2308... Wed Nov 2 06:24:47 2011 From: bbruen at ...2308... (Bruce Bruen) Date: Wed, 02 Nov 2011 15:54:47 +1030 Subject: [Gambas-user] gb3: changing the active font In-Reply-To: <4EB0CB61.3050405@...1887...> References: <4EB0CB61.3050405@...1887...> Message-ID: <1320211487.32064.5.camel@...2688...> On Wed, 2011-11-02 at 00:47 -0400, Kevin Fishburne wrote: > I'm looking through the docs trying to find out how to change the active > font but am not having much luck. Anyone know how to do it? I can change > the size and color, but not the font being used. > The active font of a what? To set the font via code for a text control in a form use the following as examples MyControl.Font = Font["Bitstream Vera Serif,Bold,10"] or even MyControl.Font=Font["Monospace,Bold,Italic,Underline,Strikeout,+4"] Bruce From kevinfishburne at ...1887... Wed Nov 2 06:47:05 2011 From: kevinfishburne at ...1887... (Kevin Fishburne) Date: Wed, 02 Nov 2011 01:47:05 -0400 Subject: [Gambas-user] gb3: changing the active font In-Reply-To: <1320211487.32064.5.camel@...2688...> References: <4EB0CB61.3050405@...1887...> <1320211487.32064.5.camel@...2688...> Message-ID: <4EB0D959.40308@...1887...> On 11/02/2011 01:24 AM, Bruce Bruen wrote: > On Wed, 2011-11-02 at 00:47 -0400, Kevin Fishburne wrote: > >> I'm looking through the docs trying to find out how to change the active >> font but am not having much luck. Anyone know how to do it? I can change >> the size and color, but not the font being used. >> > > The active font of a what? > > To set the font via code for a text control in a form use the following > as examples > > MyControl.Font = Font["Bitstream Vera Serif,Bold,10"] > or even > MyControl.Font=Font["Monospace,Bold,Italic,Underline,Strikeout,+4"] > I'm using SDL and OpenGL. Normal routines for drawing fonts in a DrawingArea work fine; I didn't have to change my code after switching from GTK/Qt. This code works: ' Draw dialogue buffer. Draw.Font.Size = sheight / 32 Draw.Foreground = Color.Black Draw.Text(Client.Dialogue, 31, sheight - 15 - sheight / 32) Draw.Foreground = Color.Yellow Draw.Text(Client.Dialogue, 32, sheight - 16 - sheight / 32) So there is no control, just a draw event procedure "Screen_Draw" and whatever procedures I call inside it. Maybe I should do "Font = Font["..."] inside the procedure? -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sales at ...1887... phone: (770) 853-6271 From bbruen at ...2308... Wed Nov 2 07:54:08 2011 From: bbruen at ...2308... (Bruce Bruen) Date: Wed, 02 Nov 2011 17:24:08 +1030 Subject: [Gambas-user] gb3: changing the active font In-Reply-To: <4EB0D959.40308@...1887...> References: <4EB0CB61.3050405@...1887...> <1320211487.32064.5.camel@...2688...> <4EB0D959.40308@...1887...> Message-ID: <1320216848.32064.10.camel@...2688...> On Wed, 2011-11-02 at 01:47 -0400, Kevin Fishburne wrote: > I'm using SDL and OpenGL. Normal routines for drawing fonts in a > DrawingArea work fine; I didn't have to change my code after > switching > from GTK/Qt. This code works: > > ' Draw dialogue buffer. > Draw.Font.Size = sheight / 32 > Draw.Foreground = Color.Black > Draw.Text(Client.Dialogue, 31, sheight - 15 - sheight / 32) > Draw.Foreground = Color.Yellow > Draw.Text(Client.Dialogue, 32, sheight - 16 - sheight / 32) > > So there is no control, just a draw event procedure "Screen_Draw" and > whatever procedures I call inside it. Maybe I should do "Font = > Font["..."] inside the procedure? You've still got me confused Kevin. DrawingArea is a control and has a Font property. I know little of OpenGL or SDL but it looks like the SDL Draw class has an undocumented Font property so I'd still give the previous a go and hope. From rterry at ...1823... Thu Nov 3 05:07:59 2011 From: rterry at ...1823... (richard terry) Date: Thu, 3 Nov 2011 15:07:59 +1100 Subject: [Gambas-user] Weird non firing textbox_keypress event Message-ID: <201111031507.59537.rterry@...1823...> This is really weird. I havn't upgraded gambas since version 4152, upgraded yesterday to 4230. On one of my forms (only 1 I've noticed so far, the key_press event is not being triggered in a textbox. The Key_Release event is, the got focus and lost focus is. So... none of the text I'm typing is entered into the box. Somewhat problematically as this is my document inbox filing form. Same code/form works on 4 other boxes in the office running under 4152. In the interim can someone tell me how to re-compile an older version. Thanks. Richard From kevinfishburne at ...1887... Thu Nov 3 05:20:44 2011 From: kevinfishburne at ...1887... (Kevin Fishburne) Date: Thu, 03 Nov 2011 00:20:44 -0400 Subject: [Gambas-user] gb3: changing the active font In-Reply-To: <1320216848.32064.10.camel@...2688...> References: <4EB0CB61.3050405@...1887...> <1320211487.32064.5.camel@...2688...> <4EB0D959.40308@...1887...> <1320216848.32064.10.camel@...2688...> Message-ID: <4EB2169C.2030307@...1887...> On 11/02/2011 02:54 AM, Bruce Bruen wrote: > On Wed, 2011-11-02 at 01:47 -0400, Kevin Fishburne wrote: > >> I'm using SDL and OpenGL. Normal routines for drawing fonts in a >> DrawingArea work fine; I didn't have to change my code after >> switching >> from GTK/Qt. This code works: >> >> ' Draw dialogue buffer. >> Draw.Font.Size = sheight / 32 >> Draw.Foreground = Color.Black >> Draw.Text(Client.Dialogue, 31, sheight - 15 - sheight / 32) >> Draw.Foreground = Color.Yellow >> Draw.Text(Client.Dialogue, 32, sheight - 16 - sheight / 32) >> >> So there is no control, just a draw event procedure "Screen_Draw" and >> whatever procedures I call inside it. Maybe I should do "Font = >> Font["..."] inside the procedure? > > You've still got me confused Kevin. DrawingArea is a control and has a > Font property. I know little of OpenGL or SDL but it looks like the SDL > Draw class has an undocumented Font property so I'd still give the > previous a go and hope. With a DrawingArea you'd have a block like this: Draw.Begin(DrawingArea) Draw.Font.Size = 10 Draw.Text(...) Draw.End With SDL/OpenGL you have a procedure that is the draw event: Public Sub Screen_Draw() Draw.Font.Size = 10 Draw.Text(...) End The SDL draw event procedure seems to behave the same way as a Draw.Begin ... Draw.End block. I tried this: Draw.Font.Load("/home/kevinfishburne/Desktop/Sanctimonia, Server/Images/Font/Avatar.ttf") It doesn't throw an error, but doesn't change the font either. At some point after that for no apparent reason it then throws the error "gb.sdl error: Couldn't open /usr/local/share/gambas3/gb.sdl/DejaVuSans.ttf in Render 834". If I use just "Font.Load("...")" it exhibits the same behavior but the error message reflects the Avatar.ttf font instead of DejaVuSans. Weird. -- Kevin Fishburne Eight Virtues www:http://sales.eightvirtues.com e-mail:sales at ...1887... phone: (770) 853-6271 From gambas.fr at ...626... Thu Nov 3 06:14:59 2011 From: gambas.fr at ...626... (Fabien Bodard) Date: Thu, 3 Nov 2011 06:14:59 +0100 Subject: [Gambas-user] gb3: changing the active font In-Reply-To: <4EB2169C.2030307@...1887...> References: <4EB0CB61.3050405@...1887...> <1320211487.32064.5.camel@...2688...> <4EB0D959.40308@...1887...> <1320216848.32064.10.camel@...2688...> <4EB2169C.2030307@...1887...> Message-ID: Have you tried : Draw.Font = Draw.Font.Load("/home/kevinfishburne/Desktop/Sanctimonia, because draw.font.load normally not assignate a font to draw.font but just return an object handle to a font object > Server/Images/Font/Avatar.ttf") 2011/11/3 Kevin Fishburne : > On 11/02/2011 02:54 AM, Bruce Bruen wrote: >> On Wed, 2011-11-02 at 01:47 -0400, Kevin Fishburne wrote: >> >>> I'm using SDL and OpenGL. Normal routines for drawing fonts in a >>> DrawingArea work fine; I didn't have to change my code after >>> switching >>> from GTK/Qt. This code works: >>> >>> ? ? ' Draw dialogue buffer. >>> ? ? Draw.Font.Size = sheight / 32 >>> ? ? Draw.Foreground = Color.Black >>> ? ? Draw.Text(Client.Dialogue, 31, sheight - 15 - sheight / 32) >>> ? ? Draw.Foreground = Color.Yellow >>> ? ? Draw.Text(Client.Dialogue, 32, sheight - 16 - sheight / 32) >>> >>> So there is no control, just a draw event procedure "Screen_Draw" and >>> whatever procedures I call inside it. Maybe I should do "Font = >>> Font["..."] inside the procedure? >> >> You've still got me confused Kevin. DrawingArea is a control and has a >> Font property. ?I know little of OpenGL or SDL but it looks like the SDL >> Draw class has an undocumented Font property so I'd still give the >> previous a go and hope. > > With a DrawingArea you'd have a block like this: > > Draw.Begin(DrawingArea) > ? Draw.Font.Size = 10 > ? Draw.Text(...) > Draw.End > > With SDL/OpenGL you have a procedure that is the draw event: > > Public Sub Screen_Draw() > > ? Draw.Font.Size = 10 > ? Draw.Text(...) > > End > > The SDL draw event procedure seems to behave the same way as a > Draw.Begin ... Draw.End block. I tried this: > > Draw.Font.Load("/home/kevinfishburne/Desktop/Sanctimonia, > Server/Images/Font/Avatar.ttf") > > It doesn't throw an error, but doesn't change the font either. At some > point after that for no apparent reason it then throws the error "gb.sdl > error: Couldn't open /usr/local/share/gambas3/gb.sdl/DejaVuSans.ttf in > Render 834". If I use just "Font.Load("...")" it exhibits the same > behavior but the error message reflects the Avatar.ttf font instead of > DejaVuSans. Weird. > > > -- > Kevin Fishburne > Eight Virtues > www:http://sales.eightvirtues.com > e-mail:sales at ...1887... > phone: (770) 853-6271 > > > ------------------------------------------------------------------------------ > RSA(R) Conference 2012 > Save $700 by Nov 18 > Register now > http://p.sf.net/sfu/rsa-sfdev2dev1 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Fabien Bodard From Gambas at ...1950... Thu Nov 3 08:19:09 2011 From: Gambas at ...1950... (Caveat) Date: Thu, 03 Nov 2011 08:19:09 +0100 Subject: [Gambas-user] Weird non firing textbox_keypress event In-Reply-To: <201111031507.59537.rterry@...1823...> References: <201111031507.59537.rterry@...1823...> Message-ID: <1320304749.6500.15.camel@...2150...> Hi Richard, Can't help much with the original problem, but here's the workaround to get back to rev 4152... $ mkdir rev4152 $ svn checkout -r 4152 https://gambas.svn.sourceforge.net/svnroot/gambas/gambas/trunk/ rev4152 You should see a long list of files, ending with something like: ... A rev4152/examples/examples/Games/GameOfLife/.icon.png A rev4152/examples/examples/Games/GameOfLife/glob2-icon-48x48.png A rev4152/examples/examples/Games/GameOfLife/.settings Checked out revision 4152. $ cd rev4152 $ ./reconf-all $ make clean $ make $ sudo make install (you most likely don't need all the reconf-all and make and make clean etc. every time but it shouldn't do much harm) Kind regards, Caveat On Thu, 2011-11-03 at 15:07 +1100, richard terry wrote: > This is really weird. > > I havn't upgraded gambas since version 4152, upgraded yesterday to > 4230. > > On one of my forms (only 1 I've noticed so far, the key_press event is not > being triggered in a textbox. > > The Key_Release event is, the got focus and lost focus is. > > So... none of the text I'm typing is entered into the box. Somewhat > problematically as this is my document inbox filing form. > > Same code/form works on 4 other boxes in the office running under 4152. > > In the interim can someone tell me how to re-compile an older version. > > Thanks. > > Richard > > ------------------------------------------------------------------------------ > RSA(R) Conference 2012 > Save $700 by Nov 18 > Register now > http://p.sf.net/sfu/rsa-sfdev2dev1 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From gambas at ...1... Thu Nov 3 09:04:52 2011 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Thu, 03 Nov 2011 09:04:52 +0100 Subject: [Gambas-user] Weird non firing textbox_keypress event In-Reply-To: <201111031507.59537.rterry@...1823...> References: <201111031507.59537.rterry@...1823...> Message-ID: <4EB24B24.7060702@...1...> Le 03/11/2011 05:07, richard terry a ?crit : > This is really weird. > > I havn't upgraded gambas since version 4152, upgraded yesterday to > 4230. > > On one of my forms (only 1 I've noticed so far, the key_press event is not > being triggered in a textbox. > > The Key_Release event is, the got focus and lost focus is. > > So... none of the text I'm typing is entered into the box. Somewhat > problematically as this is my document inbox filing form. > > Same code/form works on 4 other boxes in the office running under 4152. > > In the interim can someone tell me how to re-compile an older version. > > Thanks. > > Richard > Is it a true native TextBox? Do you use gb.gtk or gb.qt4? -- Beno?t Minisini From gambas.fr at ...626... Thu Nov 3 15:01:20 2011 From: gambas.fr at ...626... (Fabien Bodard) Date: Thu, 3 Nov 2011 15:01:20 +0100 Subject: [Gambas-user] Weird non firing textbox_keypress event In-Reply-To: <4EB24B24.7060702@...1...> References: <201111031507.59537.rterry@...1823...> <4EB24B24.7060702@...1...> Message-ID: Le 3 novembre 2011 09:04, Beno?t Minisini a ?crit : > Le 03/11/2011 05:07, richard terry a ?crit : >> This is really weird. >> >> I havn't upgraded gambas since version 4152, upgraded yesterday to >> 4230. >> >> On one of my forms (only 1 I've noticed so far, the key_press event is not >> being triggered in a textbox. >> >> The Key_Release event is, the got focus and lost focus is. >> >> So... none of the text I'm typing is entered into the box. Somewhat >> problematically as this is my document inbox filing form. >> >> Same code/form works on 4 other boxes in the office running under 4152. >> >> In the interim can someone tell me how to re-compile an older version. >> >> Thanks. >> >> Richard >> > > Is it a true native TextBox? Do you use gb.gtk or gb.qt4? or gb.gui and in this case on what desktop manager are you ? > > -- > Beno?t Minisini > > ------------------------------------------------------------------------------ > RSA(R) Conference 2012 > Save $700 by Nov 18 > Register now > http://p.sf.net/sfu/rsa-sfdev2dev1 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Fabien Bodard From fabianfloresvadell at ...626... Thu Nov 3 16:58:28 2011 From: fabianfloresvadell at ...626... (=?ISO-8859-1?Q?Fabi=E1n_Flores_Vadell?=) Date: Thu, 3 Nov 2011 12:58:28 -0300 Subject: [Gambas-user] Possible Gambas 3 bug: program pauses without error message Message-ID: Attached is a project (from a member of the Hispanic community) written with Gambas 2.23 and converted to Gambas 2.99.6. The program pauses its running, pointing to a specific line of code without any message. Program pauses in: file: enlace (class) line: 17 code: Draw Begin (a) When I try continue the execution step by step, nothing happens. I don't get an error message either. The program works fine with Gambas 2.23. Someone can check it? [System] OperatingSystem=Linux Kernel=2.6.38-11-generic Architecture=i686 Memory=2050904 kB DistributionVendor=Ubuntu DistributionRelease="Ubuntu 11.04" Desktop=KDE4 [Gambas 3] Version=2.99.6 Path=/usr/local/bin/gbx3 [Libraries] Qt4=libQtCore.so.4.7.2 GTK+=libgtk-x11-2.0.so.0.2400.4 Regards. -- Fabi?n Flores Vadell www.comoprogramarcongambas.blogspot.com www.speedbooksargentina.blogspot.com -------------- next part -------------- A non-text attachment was scrubbed... Name: ObservarDibujo.tar.gz Type: application/x-gzip Size: 41111 bytes Desc: not available URL: From kevinfishburne at ...1887... Thu Nov 3 20:06:22 2011 From: kevinfishburne at ...1887... (Kevin Fishburne) Date: Thu, 03 Nov 2011 15:06:22 -0400 Subject: [Gambas-user] gb3: changing the active font In-Reply-To: References: <4EB0CB61.3050405@...1887...> <1320211487.32064.5.camel@...2688...> <4EB0D959.40308@...1887...> <1320216848.32064.10.camel@...2688...> <4EB2169C.2030307@...1887...> Message-ID: <4EB2E62E.8010802@...1887...> On 11/03/2011 01:14 AM, Fabien Bodard wrote: > Have you tried : > > Draw.Font = Draw.Font.Load("/home/kevinfishburne/Desktop/Sanctimonia, > > because draw.font.load normally not assignate a font to draw.font but > just return an object handle to a font object > Nice, that actually works. What's odd is that after some period of time it still halts with the error "gb.sdl error: Couldn't open /usr/local/share/gambas3/gb.sdl/DejaVuSans.ttf in Render 834". I checked the value of Draw.Font after the crash and it reports the Name property as being "DejaVuSans.ttf", even though I've only been setting it to "Avatar.ttf". I changed the line to this: If Draw.Font.Name <> "Avatar.ttf" Then Draw.Font = Draw.Font.Load("/home/kevinfishburne/Desktop/Sanctimonia, Server/Images/Font/Avatar.ttf") and it still crashes. Somehow Draw.Font.Name is being reset to "DejaVuSans.ttf". I searched the entire project for "Draw.Font" and nothing else is modifying it. Sounds like a bug. I'm using revision 4229. -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sales at ...1887... phone: (770) 853-6271 From gambas at ...1... Thu Nov 3 20:21:10 2011 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Thu, 03 Nov 2011 20:21:10 +0100 Subject: [Gambas-user] Possible Gambas 3 bug: program pauses without error message In-Reply-To: References: Message-ID: <4EB2E9A6.1090207@...1...> Le 03/11/2011 16:58, Fabi?n Flores Vadell a ?crit : > Attached is a project (from a member of the Hispanic community) written > with Gambas 2.23 and converted to Gambas 2.99.6. The program pauses its > running, pointing to a specific line of code without any message. > > Program pauses in: > > file: enlace (class) > line: 17 > code: Draw Begin (a) > > When I try continue the execution step by step, nothing happens. I don't > get an error message either. > > The program works fine with Gambas 2.23. > > Someone can check it? > > The bug was in the IDE that was not able to display the error message because the class name (enlace) was not written with the same case everywhere. This has been fixed in revision #4232. Regards, -- Beno?t Minisini From lordheavym at ...626... Thu Nov 3 20:21:21 2011 From: lordheavym at ...626... (Laurent Carlier) Date: Thu, 03 Nov 2011 20:21:21 +0100 Subject: [Gambas-user] gb3: changing the active font In-Reply-To: <4EB2E62E.8010802@...1887...> References: <4EB0CB61.3050405@...1887...> <4EB2E62E.8010802@...1887...> Message-ID: <1761899.8WIAggVdHi@...2592...> Le jeudi 3 novembre 2011 15:06:22, Kevin Fishburne a ?crit : > On 11/03/2011 01:14 AM, Fabien Bodard wrote: > > Have you tried : > > > > Draw.Font = Draw.Font.Load("/home/kevinfishburne/Desktop/Sanctimonia, > > > > because draw.font.load normally not assignate a font to draw.font but > > just return an object handle to a font object > > Nice, that actually works. > > What's odd is that after some period of time it still halts with the > error "gb.sdl error: Couldn't open > /usr/local/share/gambas3/gb.sdl/DejaVuSans.ttf in Render 834". I checked > the value of Draw.Font after the crash and it reports the Name property > as being "DejaVuSans.ttf", even though I've only been setting it to > "Avatar.ttf". I changed the line to this: > > If Draw.Font.Name <> "Avatar.ttf" Then Draw.Font = > Draw.Font.Load("/home/kevinfishburne/Desktop/Sanctimonia, > Server/Images/Font/Avatar.ttf") > > and it still crashes. Somehow Draw.Font.Name is being reset to > "DejaVuSans.ttf". I searched the entire project for "Draw.Font" and > nothing else is modifying it. Sounds like a bug. I'm using revision 4229. Sorry for the late reply but i've totaly missed it Font class act partially like qt's or gtk's one; you cannot use system fonts. ---8<---- Public Sub FooMethod() DIM myfont AS FONT myFont = Font.Load("/path/to/my/font.ttf") Font.Size = 20 Font.Bold = True Draw.Begin(screen) Draw.Font = myFont blablabla Draw.End() --->8---- Regards From rterry at ...1823... Thu Nov 3 23:24:19 2011 From: rterry at ...1823... (richard terry) Date: Fri, 4 Nov 2011 09:24:19 +1100 Subject: [Gambas-user] Weird non firing textbox_keypress event In-Reply-To: <4EB24B24.7060702@...1...> References: <201111031507.59537.rterry@...1823...> <4EB24B24.7060702@...1...> Message-ID: <201111040924.19076.rterry@...1823...> On Thursday 03 November 2011 19:04:52 Beno?t Minisini wrote: > Le 03/11/2011 05:07, richard terry a ?crit : > > This is really weird. > > > > I havn't upgraded gambas since version 4152, upgraded yesterday to > > 4230. > > > > On one of my forms (only 1 I've noticed so far, the key_press event is > > not being triggered in a textbox. > > > > The Key_Release event is, the got focus and lost focus is. > > > > So... none of the text I'm typing is entered into the box. Somewhat > > problematically as this is my document inbox filing form. > > > > Same code/form works on 4 other boxes in the office running under 4152. > > > > In the interim can someone tell me how to re-compile an older version. > > > > Thanks. > > > > Richard > > Is it a true native TextBox? Do you use gb.gtk or gb.qt4? > gb QT4, kde on kubuntu 9 From kevinfishburne at ...1887... Fri Nov 4 04:13:48 2011 From: kevinfishburne at ...1887... (Kevin Fishburne) Date: Thu, 03 Nov 2011 23:13:48 -0400 Subject: [Gambas-user] gb3: changing the active font In-Reply-To: <1761899.8WIAggVdHi@...2592...> References: <4EB0CB61.3050405@...1887...> <4EB2E62E.8010802@...1887...> <1761899.8WIAggVdHi@...2592...> Message-ID: <4EB3586C.3090709@...1887...> On 11/03/2011 03:21 PM, Laurent Carlier wrote: > Le jeudi 3 novembre 2011 15:06:22, Kevin Fishburne a ?crit : >> On 11/03/2011 01:14 AM, Fabien Bodard wrote: >>> Have you tried : >>> >>> Draw.Font = Draw.Font.Load("/home/kevinfishburne/Desktop/Sanctimonia, >>> >>> because draw.font.load normally not assignate a font to draw.font but >>> just return an object handle to a font object >> Nice, that actually works. >> >> What's odd is that after some period of time it still halts with the >> error "gb.sdl error: Couldn't open >> /usr/local/share/gambas3/gb.sdl/DejaVuSans.ttf in Render 834". I checked >> the value of Draw.Font after the crash and it reports the Name property >> as being "DejaVuSans.ttf", even though I've only been setting it to >> "Avatar.ttf". I changed the line to this: >> >> If Draw.Font.Name<> "Avatar.ttf" Then Draw.Font = >> Draw.Font.Load("/home/kevinfishburne/Desktop/Sanctimonia, >> Server/Images/Font/Avatar.ttf") >> >> and it still crashes. Somehow Draw.Font.Name is being reset to >> "DejaVuSans.ttf". I searched the entire project for "Draw.Font" and >> nothing else is modifying it. Sounds like a bug. I'm using revision 4229. > Sorry for the late reply but i've totaly missed it > > Font class act partially like qt's or gtk's one; you cannot use system fonts. > > > ---8<---- > > Public Sub FooMethod() > > DIM myfont AS FONT > > myFont = Font.Load("/path/to/my/font.ttf") > Font.Size = 20 > Font.Bold = True > > Draw.Begin(screen) > Draw.Font = myFont > blablabla > Draw.End() > > --->8---- Fantastic! That works like a champion. Fonts in SDL are a bit tricky I see. Thanks everyone for your help. -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sales at ...1887... phone: (770) 853-6271 From rterry at ...1823... Fri Nov 4 08:51:28 2011 From: rterry at ...1823... (richard terry) Date: Fri, 4 Nov 2011 18:51:28 +1100 Subject: [Gambas-user] Weird non firing textbox_keypress event - a clue In-Reply-To: <4EB24B24.7060702@...1...> References: <201111031507.59537.rterry@...1823...> <4EB24B24.7060702@...1...> Message-ID: <201111041851.28926.rterry@...1823...> On Thursday 03 November 2011 19:04:52 Beno?t Minisini wrote: Benoit, I checked all my machines (I've 5 machines in my surgery running EasyGP and gambas networked). There was (by luck) one machine in the office I'd not updated gambas - it was stuck on version 4152 (kubuntu 10). I rolled back the version of gambas on a machine where the textbox_keypress event was not firing (gambas version = 4205 kubuntu 10) to version 4152 > re- compiled and it now works. Ditto, I just rolled it back to 4152 from my latest gambas version on my laptop (kubuntu 9.0) > now works - the event fires. Not sure how to proceed with this. I guess I could just 'go up some versions' and try and track which one causes problems Anway, getting late, been at work now 11.5 hours!!!! so am going home. Regards richard > Le 03/11/2011 05:07, richard terry a ?crit : > > This is really weird. > > > > I havn't upgraded gambas since version 4152, upgraded yesterday to > > 4230. > > > > On one of my forms (only 1 I've noticed so far, the key_press event is > > not being triggered in a textbox. > > > > The Key_Release event is, the got focus and lost focus is. > > > > So... none of the text I'm typing is entered into the box. Somewhat > > problematically as this is my document inbox filing form. > > > > Same code/form works on 4 other boxes in the office running under 4152. > > > > In the interim can someone tell me how to re-compile an older version. > > > > Thanks. > > > > Richard > > Is it a true native TextBox? Do you use gb.gtk or gb.qt4? > From rterry at ...1823... Fri Nov 4 10:59:47 2011 From: rterry at ...1823... (richard terry) Date: Fri, 4 Nov 2011 20:59:47 +1100 Subject: [Gambas-user] Really stupid question about making/running a gambas exe Message-ID: <201111042059.47412.rterry@...1823...> Hi List Have run for long time just in the gambas ide, so wanted to just excute the executable for the project. made the executable to run it I seem to have to type ./executable-name If I just drag/n drop to my task bar, it's opened like a text file. ?any advice to be able to just click on it and run. I tried associating it the gbx3 to no avail. Richard From Gambas at ...1950... Fri Nov 4 11:28:25 2011 From: Gambas at ...1950... (Caveat) Date: Fri, 04 Nov 2011 11:28:25 +0100 Subject: [Gambas-user] Really stupid question about making/running a gambas exe In-Reply-To: <201111042059.47412.rterry@...1823...> References: <201111042059.47412.rterry@...1823...> Message-ID: <1320402505.6500.24.camel@...2150...> Just copy it to your Desktop folder...(works for Ubuntu with Gnome) Caveat On Fri, 2011-11-04 at 20:59 +1100, richard terry wrote: > Hi List > > Have run for long time just in the gambas ide, so wanted to just excute the > executable for the project. > > made the executable > > to run it I seem to have to type ./executable-name > > If I just drag/n drop to my task bar, it's opened like a text file. > > ?any advice to be able to just click on it and run. I tried associating it the > gbx3 to no avail. > > Richard > > ------------------------------------------------------------------------------ > RSA(R) Conference 2012 > Save $700 by Nov 18 > Register now > http://p.sf.net/sfu/rsa-sfdev2dev1 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From johny.provoost at ...27... Fri Nov 4 11:52:18 2011 From: johny.provoost at ...27... (Johny Provoost) Date: Fri, 04 Nov 2011 11:52:18 +0100 Subject: [Gambas-user] Really stupid question about making/running a gambas exe In-Reply-To: <201111042059.47412.rterry@...1823...> References: <201111042059.47412.rterry@...1823...> Message-ID: <4EB3C3E2.6070505@...27...> Op 04-11-11 10:59, richard terry schreef: > Hi List > > Have run for long time just in the gambas ide, so wanted to just excute the > executable for the project. > > made the executable > > to run it I seem to have to type ./executable-name > > If I just drag/n drop to my task bar, it's opened like a text file. > > ?any advice to be able to just click on it and run. I tried associating it the > gbx3 to no avail. > > Richard > > ------------------------------------------------------------------------------ > RSA(R) Conference 2012 > Save $700 by Nov 18 > Register now > http://p.sf.net/sfu/rsa-sfdev2dev1 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > I Always make a new starter on the desktop, or on the menu. It's just works there. In a Terminal you're right, you must type ./ before the executalble Greetings, Johny Provoost From eilert-sprachen at ...221... Fri Nov 4 12:03:11 2011 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Fri, 04 Nov 2011 12:03:11 +0100 Subject: [Gambas-user] File date (and time) / Gambas2 Message-ID: <4EB3C66F.5040507@...221...> Hi folks, I know I solved this somewhere in my projects a long time ago, but I don't remember how... :-) So could you help me: How to find out a file's date and time? I would expect a File.Date or something, but there isn't... Thanks for your hints! Rolf From rterry at ...1823... Fri Nov 4 12:27:55 2011 From: rterry at ...1823... (richard terry) Date: Fri, 4 Nov 2011 22:27:55 +1100 Subject: [Gambas-user] Really stupid question about making/running a gambas exe In-Reply-To: <1320402505.6500.24.camel@...2150...> References: <201111042059.47412.rterry@...1823...> <1320402505.6500.24.camel@...2150...> Message-ID: <201111042227.55178.rterry@...1823...> On Friday 04 November 2011 21:28:25 Caveat wrote: > Just copy it to your Desktop folder...(works for Ubuntu with Gnome) > dosn't work for me, maybe some file association problem, only ./executable-name works. Richard > Caveat > > On Fri, 2011-11-04 at 20:59 +1100, richard terry wrote: > > Hi List > > > > Have run for long time just in the gambas ide, so wanted to just excute > > the executable for the project. > > > > made the executable > > > > to run it I seem to have to type ./executable-name > > > > If I just drag/n drop to my task bar, it's opened like a text file. > > > > ?any advice to be able to just click on it and run. I tried associating > > it the gbx3 to no avail. > > > > Richard > > > > ------------------------------------------------------------------------- > >----- RSA(R) Conference 2012 > > Save $700 by Nov 18 > > Register now > > http://p.sf.net/sfu/rsa-sfdev2dev1 > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > --------------------------------------------------------------------------- > --- RSA(R) Conference 2012 > Save $700 by Nov 18 > Register now > http://p.sf.net/sfu/rsa-sfdev2dev1 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From bbruen at ...2308... Fri Nov 4 12:36:48 2011 From: bbruen at ...2308... (Bruce Bruen) Date: Fri, 04 Nov 2011 22:06:48 +1030 Subject: [Gambas-user] File date (and time) / Gambas2 In-Reply-To: <4EB3C66F.5040507@...221...> References: <4EB3C66F.5040507@...221...> Message-ID: <1320406608.25542.0.camel@...2688...> On Fri, 2011-11-04 at 12:03 +0100, Rolf-Werner Eilert wrote: > Hi folks, > > I know I solved this somewhere in my projects a long time ago, but I > don't remember how... :-) So could you help me: How to find out a file's > date and time? > > I would expect a File.Date or something, but there isn't... > > Thanks for your hints! > > Rolf > Stat class in gb Bruce From gambas.fr at ...626... Fri Nov 4 13:40:22 2011 From: gambas.fr at ...626... (Fabien Bodard) Date: Fri, 4 Nov 2011 13:40:22 +0100 Subject: [Gambas-user] Really stupid question about making/running a gambas exe In-Reply-To: <201111042227.55178.rterry@...1823...> References: <201111042059.47412.rterry@...1823...> <1320402505.6500.24.camel@...2150...> <201111042227.55178.rterry@...1823...> Message-ID: well it was a problem before the rev #4178.because the compiler add a sapce ine the exec name in the binary archive ... be sur you use a rev more recent ! http://gambas.svn.sourceforge.net/viewvc/gambas?view=revision&revision=4178 2011/11/4 richard terry : > On Friday 04 November 2011 21:28:25 Caveat wrote: >> Just copy it to your Desktop folder...(works for Ubuntu with Gnome) >> > dosn't work for me, maybe some file association problem, only ./executable-name > works. > > Richard > >> Caveat >> >> On Fri, 2011-11-04 at 20:59 +1100, richard terry wrote: >> > Hi List >> > >> > Have run for long time just in the gambas ide, so wanted to just excute >> > the executable for the project. >> > >> > made the executable >> > >> > to run it I seem to have to type ./executable-name >> > >> > If I just drag/n drop to my task bar, it's opened like a text file. >> > >> > ?any advice to be able to just click on it and run. I tried associating >> > it the gbx3 to no avail. >> > >> > Richard >> > >> > ------------------------------------------------------------------------- >> >----- RSA(R) Conference 2012 >> > Save $700 by Nov 18 >> > Register now >> > http://p.sf.net/sfu/rsa-sfdev2dev1 >> > _______________________________________________ >> > Gambas-user mailing list >> > Gambas-user at lists.sourceforge.net >> > https://lists.sourceforge.net/lists/listinfo/gambas-user >> >> --------------------------------------------------------------------------- >> --- RSA(R) Conference 2012 >> Save $700 by Nov 18 >> Register now >> http://p.sf.net/sfu/rsa-sfdev2dev1 >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > ------------------------------------------------------------------------------ > RSA(R) Conference 2012 > Save $700 by Nov 18 > Register now > http://p.sf.net/sfu/rsa-sfdev2dev1 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Fabien Bodard From gambas.fr at ...626... Fri Nov 4 13:42:20 2011 From: gambas.fr at ...626... (Fabien Bodard) Date: Fri, 4 Nov 2011 13:42:20 +0100 Subject: [Gambas-user] Weird non firing textbox_keypress event In-Reply-To: <201111040924.19076.rterry@...1823...> References: <201111031507.59537.rterry@...1823...> <4EB24B24.7060702@...1...> <201111040924.19076.rterry@...1823...> Message-ID: can you make a short demo of what go wrong ? 2011/11/3 richard terry : > On Thursday 03 November 2011 19:04:52 Beno?t Minisini wrote: >> Le 03/11/2011 05:07, richard terry a ?crit : >> > This is really weird. >> > >> > I havn't upgraded gambas since version 4152, upgraded yesterday to >> > 4230. >> > >> > On one of my forms (only 1 I've noticed so far, the key_press event is >> > not being triggered in a textbox. >> > >> > The Key_Release event is, the got focus and lost focus is. >> > >> > So... none of the text I'm typing is entered into the box. Somewhat >> > problematically as this is my document inbox filing form. >> > >> > Same code/form works on 4 other boxes in the office running under 4152. >> > >> > In the interim can someone tell me how to re-compile an older version. >> > >> > Thanks. >> > >> > Richard >> >> Is it a true native TextBox? Do you use gb.gtk or gb.qt4? >> > gb QT4, kde on kubuntu 9 > > ------------------------------------------------------------------------------ > RSA(R) Conference 2012 > Save $700 by Nov 18 > Register now > http://p.sf.net/sfu/rsa-sfdev2dev1 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Fabien Bodard From gambas.fr at ...626... Fri Nov 4 13:45:57 2011 From: gambas.fr at ...626... (Fabien Bodard) Date: Fri, 4 Nov 2011 13:45:57 +0100 Subject: [Gambas-user] File date (and time) / Gambas2 In-Reply-To: <1320406608.25542.0.camel@...2688...> References: <4EB3C66F.5040507@...221...> <1320406608.25542.0.camel@...2688...> Message-ID: dim hFileinfo as FileInfo hFileInfo = Stat(user.home &/ "myfile") Print hFileInfo.LastModified http://gambasdoc.org/help/lang/stat http://gambasdoc.org/help/comp/gb/stat 2011/11/4 Bruce Bruen : > On Fri, 2011-11-04 at 12:03 +0100, Rolf-Werner Eilert wrote: > >> Hi folks, >> >> I know I solved this somewhere in my projects a long time ago, but I >> don't remember how... :-) So could you help me: How to find out a file's >> date and time? >> >> I would expect a File.Date or something, but there isn't... >> >> Thanks for your hints! >> >> Rolf >> > > Stat class in gb > > Bruce > > > > ------------------------------------------------------------------------------ > RSA(R) Conference 2012 > Save $700 by Nov 18 > Register now > http://p.sf.net/sfu/rsa-sfdev2dev1 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Fabien Bodard From strict.ix at ...734... Sat Nov 5 16:16:00 2011 From: strict.ix at ...734... (strict.ix at ...734...) Date: Sat, 5 Nov 2011 15:16:00 +0000 (UTC) Subject: [Gambas-user] gb3: changing the active font In-Reply-To: Message-ID: <1407435107.1740841.1320506160017.JavaMail.root@...2710...> ----- Original Message ----- >Nice, that actually works.> > >What's odd is that after some period of time it still halts with the >error "gb.sdl error: Couldn't open >/usr/local/share/gambas3/gb.sdl/DejaVuSans.ttf in Render 834". I checked >the value of Draw.Font after the crash and it reports the Name property >as being "DejaVuSans.ttf", even though I've only been setting it to >"Avatar.ttf". I changed the line to this: > >If Draw.Font.Name <> "Avatar.ttf" Then Draw.Font = >Draw.Font.Load("/home/kevinfishburne/Desktop/Sanctimonia, >Server/Images/Font/Avatar.ttf") > >and it still crashes. Somehow Draw.Font.Name is being reset to >"DejaVuSans.ttf". I searched the entire project for "Draw.Font" and >nothing else is modifying it. Sounds like a bug. I'm using revision 4229. --------------------------------------------- Hmm. I've found that I encounter the same "DejaVuSans.ttf" error even when trying to simply run the included StarField example. I even looked through the code and didn't find one reference to 'font' anywhere in the project. I am just starting out on learning gambas so I wrote it off at first, but after reading the discussion here I thought I would at least mention my findings. Hope that it is helpful in some way to track down what is happening. From and.bertini at ...626... Sat Nov 5 19:30:08 2011 From: and.bertini at ...626... (Andrea Bertini) Date: Sat, 05 Nov 2011 19:30:08 +0100 Subject: [Gambas-user] Voice recording Message-ID: <4EB580B0.2030300@...626...> I want to do a software that records the voice, with which program can I use with shell? Other solution? Thx -- Andrea Bertini From gambas at ...1... Sat Nov 5 19:35:17 2011 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Sat, 05 Nov 2011 19:35:17 +0100 Subject: [Gambas-user] Weird non firing textbox_keypress event - a clue In-Reply-To: <201111041851.28926.rterry@...1823...> References: <201111031507.59537.rterry@...1823...> <4EB24B24.7060702@...1...> <201111041851.28926.rterry@...1823...> Message-ID: <4EB581E5.4000001@...1...> Le 04/11/2011 08:51, richard terry a ?crit : > On Thursday 03 November 2011 19:04:52 Beno?t Minisini wrote: > > Benoit, > > I checked all my machines (I've 5 machines in my surgery running EasyGP and > gambas networked). > > There was (by luck) one machine in the office I'd not updated gambas - it was > stuck on version 4152 (kubuntu 10). > > I rolled back the version of gambas on a machine where the textbox_keypress > event was not firing (gambas version = 4205 kubuntu 10) to version 4152> re- > compiled and it now works. Ditto, I just rolled it back to 4152 from my latest > gambas version on my laptop (kubuntu 9.0)> now works - the event fires. > > Not sure how to proceed with this. I guess I could just 'go up some versions' > and try and track which one causes problems > > Anway, getting late, been at work now 11.5 hours!!!! so am going home. > > Regards > > richard > I can't help you if you don't give any source code. Regards, -- Beno?t Minisini From rterry at ...1823... Sun Nov 6 00:21:41 2011 From: rterry at ...1823... (richard terry) Date: Sun, 6 Nov 2011 10:21:41 +1100 Subject: [Gambas-user] Weird non firing textbox_keypress event - a clue In-Reply-To: <4EB581E5.4000001@...1...> References: <201111031507.59537.rterry@...1823...> <201111041851.28926.rterry@...1823...> <4EB581E5.4000001@...1...> Message-ID: <201111061021.42024.rterry@...1823...> On Sunday 06 November 2011 05:35:17 Beno?t Minisini wrote: > Le 04/11/2011 08:51, richard terry a ?crit : > > On Thursday 03 November 2011 19:04:52 Beno?t Minisini wrote: > > > > Benoit, > > > > I checked all my machines (I've 5 machines in my surgery running EasyGP > > and gambas networked). > > > > There was (by luck) one machine in the office I'd not updated gambas - it > > was stuck on version 4152 (kubuntu 10). > > > > I rolled back the version of gambas on a machine where the > > textbox_keypress event was not firing (gambas version = 4205 kubuntu 10) > > to version 4152> re- compiled and it now works. Ditto, I just rolled it > > back to 4152 from my latest gambas version on my laptop (kubuntu 9.0)> > > now works - the event fires. > > > > Not sure how to proceed with this. I guess I could just 'go up some > > versions' and try and track which one causes problems > > > > Anway, getting late, been at work now 11.5 hours!!!! so am going home. > > > > Regards > > > > richard > > I can't help you if you don't give any source code. > > Regards, > That would be extremely complex Benoit unfortunately, as you'd have to build out entire database, set up the database, have downloaded HL7 and scanned pdf's to file in the inbox. Unless you could tell me how to dump something which would help you in its current state? I've narrrowed it down a little. I have the same form embeddedd into another part of my program and it seems the event is firing in another context. As I've rolled back gambas I can survive in that mode for a while and maybe next time I update if its not gone I'll try and do a mini-project, but cannot now. Regards Richard From gambas at ...1... Sun Nov 6 00:30:19 2011 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Sun, 06 Nov 2011 00:30:19 +0100 Subject: [Gambas-user] Weird non firing textbox_keypress event - a clue In-Reply-To: <201111061021.42024.rterry@...1823...> References: <201111031507.59537.rterry@...1823...> <201111041851.28926.rterry@...1823...> <4EB581E5.4000001@...1...> <201111061021.42024.rterry@...1823...> Message-ID: <4EB5C70B.3010906@...1...> Le 06/11/2011 00:21, richard terry a ?crit : > On Sunday 06 November 2011 05:35:17 Beno?t Minisini wrote: >> Le 04/11/2011 08:51, richard terry a ?crit : >>> On Thursday 03 November 2011 19:04:52 Beno?t Minisini wrote: >>> >>> Benoit, >>> >>> I checked all my machines (I've 5 machines in my surgery running EasyGP >>> and gambas networked). >>> >>> There was (by luck) one machine in the office I'd not updated gambas - it >>> was stuck on version 4152 (kubuntu 10). >>> >>> I rolled back the version of gambas on a machine where the >>> textbox_keypress event was not firing (gambas version = 4205 kubuntu 10) >>> to version 4152> re- compiled and it now works. Ditto, I just rolled it >>> back to 4152 from my latest gambas version on my laptop (kubuntu 9.0)> >>> now works - the event fires. >>> >>> Not sure how to proceed with this. I guess I could just 'go up some >>> versions' and try and track which one causes problems >>> >>> Anway, getting late, been at work now 11.5 hours!!!! so am going home. >>> >>> Regards >>> >>> richard >> >> I can't help you if you don't give any source code. >> >> Regards, >> > That would be extremely complex Benoit unfortunately, as you'd have to build > out entire database, set up the database, have downloaded HL7 and scanned > pdf's to file in the inbox. > > Unless you could tell me how to dump something which would help you in its > current state? You should try to isolate the problem, as your description is not clear enough. There were changes recently in keyboard event management so that the form keypress event handler always get the keyboard events before any control located in that form. But without seeing what you are doing exactly with your keypress event handlers, I can't know if this is related, and how. Regards, -- Beno?t Minisini From rterry at ...1823... Sun Nov 6 00:54:05 2011 From: rterry at ...1823... (richard terry) Date: Sun, 6 Nov 2011 10:54:05 +1100 Subject: [Gambas-user] simple feature request Message-ID: <201111061054.05638.rterry@...1823...> Hi benoit, simple request which would improve accessing help. When the properties box in the IDE is open, the on-line help pops up for the control, over which at the moment there is a popup menu go back, go forward or reload. Would it be possible to have these options added to the menu: 1) open in browser 2) Copy URL? (Mind you I personally then won't be able to access this till I've found the keypress bug in my program... sigh.....) Regards Richard From rterry at ...1823... Sun Nov 6 02:03:54 2011 From: rterry at ...1823... (richard terry) Date: Sun, 6 Nov 2011 12:03:54 +1100 Subject: [Gambas-user] Weird non firing textbox_keypress event - a clue In-Reply-To: <4EB5C70B.3010906@...1...> References: <201111031507.59537.rterry@...1823...> <201111061021.42024.rterry@...1823...> <4EB5C70B.3010906@...1...> Message-ID: <201111061203.54160.rterry@...1823...> On Sunday 06 November 2011 10:30:19 Beno?t Minisini wrote: > Le 06/11/2011 00:21, richard terry a ?crit : > > On Sunday 06 November 2011 05:35:17 Beno?t Minisini wrote: > >> Le 04/11/2011 08:51, richard terry a ?crit : > >>> On Thursday 03 November 2011 19:04:52 Beno?t Minisini wrote: > >>> > >>> Benoit, > >>> > >>> I checked all my machines (I've 5 machines in my surgery running EasyGP > >>> and gambas networked). > >>> > >>> There was (by luck) one machine in the office I'd not updated gambas - > >>> it was stuck on version 4152 (kubuntu 10). > >>> > >>> I rolled back the version of gambas on a machine where the > >>> textbox_keypress event was not firing (gambas version = 4205 kubuntu > >>> 10) to version 4152> re- compiled and it now works. Ditto, I just > >>> rolled it back to 4152 from my latest gambas version on my laptop > >>> (kubuntu 9.0)> now works - the event fires. > >>> > >>> Not sure how to proceed with this. I guess I could just 'go up some > >>> versions' and try and track which one causes problems > >>> > >>> Anway, getting late, been at work now 11.5 hours!!!! so am going home. > >>> > >>> Regards > >>> > >>> richard > >> > >> I can't help you if you don't give any source code. > >> > >> Regards, > > > > That would be extremely complex Benoit unfortunately, as you'd have to > > build out entire database, set up the database, have downloaded HL7 and > > scanned pdf's to file in the inbox. > > > > Unless you could tell me how to dump something which would help you in > > its current state? > > You should try to isolate the problem, as your description is not clear > enough. > > There were changes recently in keyboard event management so that the > form keypress event handler always get the keyboard events before any > control located in that form. > > But without seeing what you are doing exactly with your keypress event > handlers, I can't know if this is related, and how. Must be the problem - ok, gives me somewhere to look, I'll get back to you hopefully within the week. Richard > > Regards, > From bbruen at ...2308... Sun Nov 6 07:56:51 2011 From: bbruen at ...2308... (Bruce Bruen) Date: Sun, 06 Nov 2011 17:26:51 +1030 Subject: [Gambas-user] Virtuality of TextArea.Selection Message-ID: <1320562611.21985.7.camel@...2688...> Damn and blast! How do I "devirtualize" it? The TextArea.Selection is exactly the structure that I want to pass off to another class. The other class needs to know the start (mandatory, I need to handle the beginning of the string) , length (handy) and obviously the text. Do I have to create a class of exactly the same structure, populate it and on the update, repopulate the original virtual? Foiled again! Bruce From gambas.fr at ...626... Sun Nov 6 10:37:06 2011 From: gambas.fr at ...626... (Fabien Bodard) Date: Sun, 6 Nov 2011 10:37:06 +0100 Subject: [Gambas-user] Virtuality of TextArea.Selection In-Reply-To: <1320562611.21985.7.camel@...2688...> References: <1320562611.21985.7.camel@...2688...> Message-ID: 2011/11/6 Bruce Bruen : > Damn and blast! > > How do I "devirtualize" it? > The TextArea.Selection is exactly the structure that I want to pass off > to another class. > The other class needs to know the start (mandatory, I need to handle the > beginning of the string) , length (handy) and obviously the text. > Do I have to create a class of exactly the same structure, populate it > and on the update, repopulate the original virtual? yes ! > > Foiled again! > Bruce > > > ------------------------------------------------------------------------------ > RSA(R) Conference 2012 > Save $700 by Nov 18 > Register now > http://p.sf.net/sfu/rsa-sfdev2dev1 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Fabien Bodard From ron at ...1740... Sun Nov 6 11:22:54 2011 From: ron at ...1740... (Ron) Date: Sun, 6 Nov 2011 11:22:54 +0100 Subject: [Gambas-user] TextEdit and linefeeds Message-ID: Hi all, In my project I replaced the txtArea for readlonly TextEdit objects so I can color the text I want to emphasize, this works good. But how can I just do a single line wrap, until now I only got a blank line in between lines, or all lines concatenated together ;-( It must be something simple, see attached Gambas2 object to see what I mean. Thanks for any pointers in the right direction... Regards, Ron_2nd, -------------- next part -------------- A non-text attachment was scrubbed... Name: TextEditTest-0.0.1.tar.gz Type: application/x-gzip Size: 7782 bytes Desc: not available URL: From gambas.fr at ...626... Sun Nov 6 15:07:49 2011 From: gambas.fr at ...626... (Fabien Bodard) Date: Sun, 6 Nov 2011 15:07:49 +0100 Subject: [Gambas-user] TextEdit and linefeeds In-Reply-To: References: Message-ID: I not really understand what you want ... :/ ' display text in mainlog textarea '~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ PUBLIC SUB WriteLog(sText AS String, OPTIONAL bStrip AS Boolean) IF NOT bStrip THEN sText &= "
" sText = Format$(Now, "yyyy/mm/dd hh:nn:ss") & " " & sText FMain.txtMainLog.EnsureVisible FMain.txtMainLog.Text &= sText PRINT sText; END 2011/11/6 Ron : > Hi all, > > In my project I replaced the txtArea for readlonly TextEdit objects so I > can color the text I want to emphasize, this works good. > > But how can I just do a single line wrap, until now I only got a blank line > in between lines, or all lines concatenated together ;-( > > It must be something simple, see attached Gambas2 object to see what I mean. > > Thanks for any pointers in the right direction... > > Regards, > Ron_2nd, > > ------------------------------------------------------------------------------ > RSA(R) Conference 2012 > Save $700 by Nov 18 > Register now > http://p.sf.net/sfu/rsa-sfdev2dev1 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > -- Fabien Bodard From ron at ...1740... Sun Nov 6 16:10:17 2011 From: ron at ...1740... (Ron) Date: Sun, 6 Nov 2011 16:10:17 +0100 Subject: [Gambas-user] TextEdit and linefeeds In-Reply-To: References: Message-ID: I just want it to display the lines without blank the lines in between, see screenshot. Your code doesn't do it either... why?? A TextArea does it flawless with the same code. If I leave out the \n in my code, it prints all lines together, if I only add a \r same,
again... Regards, Ron_2nd. 2011/11/6 Fabien Bodard > I not really understand what you want ... :/ > ' display text in mainlog textarea > '~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > PUBLIC SUB WriteLog(sText AS String, OPTIONAL bStrip AS Boolean) > > IF NOT bStrip THEN sText &= "
" > > sText = Format$(Now, "yyyy/mm/dd hh:nn:ss") & " " & sText > FMain.txtMainLog.EnsureVisible > FMain.txtMainLog.Text &= sText > PRINT sText; > > END > > 2011/11/6 Ron : > > Hi all, > > > > In my project I replaced the txtArea for readlonly TextEdit objects so I > > can color the text I want to emphasize, this works good. > > > > But how can I just do a single line wrap, until now I only got a blank > line > > in between lines, or all lines concatenated together ;-( > > > > It must be something simple, see attached Gambas2 object to see what I > mean. > > > > Thanks for any pointers in the right direction... > > > > Regards, > > Ron_2nd, > > > > > ------------------------------------------------------------------------------ > > RSA(R) Conference 2012 > > Save $700 by Nov 18 > > Register now > > http://p.sf.net/sfu/rsa-sfdev2dev1 > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > > -- > Fabien Bodard > > > ------------------------------------------------------------------------------ > RSA(R) Conference 2012 > Save $700 by Nov 18 > Register now > http://p.sf.net/sfu/rsa-sfdev2dev1 > _______________________________________________ > 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 at 2011-11-06 16:06:46.png Type: image/png Size: 19175 bytes Desc: not available URL: From gambas.fr at ...626... Sun Nov 6 18:46:27 2011 From: gambas.fr at ...626... (Fabien Bodard) Date: Sun, 6 Nov 2011 18:46:27 +0100 Subject: [Gambas-user] TextEdit and linefeeds In-Reply-To: References: Message-ID: yes it's a good question .. and i've not the answer... 2011/11/6 Ron : > I just want it to display the lines without blank the lines in between, see > screenshot. > Your code doesn't do it either... why?? > A TextArea does it flawless with the same code. > > If I leave out the \n in my code, it prints all lines together, if I only > add a \r same,
again... > > Regards, > Ron_2nd. > > 2011/11/6 Fabien Bodard > >> I not really understand what you want ... :/ >> ' display text in mainlog textarea >> '~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >> PUBLIC SUB WriteLog(sText AS String, OPTIONAL bStrip AS Boolean) >> >> ?IF NOT bStrip THEN sText &= "
" >> >> ?sText = Format$(Now, "yyyy/mm/dd hh:nn:ss") & " " & sText >> ?FMain.txtMainLog.EnsureVisible >> ?FMain.txtMainLog.Text &= sText >> ?PRINT sText; >> >> END >> >> 2011/11/6 Ron : >> > Hi all, >> > >> > In my project I replaced the txtArea for readlonly TextEdit objects so I >> > can color the text I want to emphasize, this works good. >> > >> > But how can I just do a single line wrap, until now I only got a blank >> line >> > in between lines, or all lines concatenated together ;-( >> > >> > It must be something simple, see attached Gambas2 object to see what I >> mean. >> > >> > Thanks for any pointers in the right direction... >> > >> > Regards, >> > Ron_2nd, >> > >> > >> ------------------------------------------------------------------------------ >> > RSA(R) Conference 2012 >> > Save $700 by Nov 18 >> > Register now >> > http://p.sf.net/sfu/rsa-sfdev2dev1 >> > _______________________________________________ >> > Gambas-user mailing list >> > Gambas-user at lists.sourceforge.net >> > https://lists.sourceforge.net/lists/listinfo/gambas-user >> > >> > >> >> >> >> -- >> Fabien Bodard >> >> >> ------------------------------------------------------------------------------ >> RSA(R) Conference 2012 >> Save $700 by Nov 18 >> Register now >> http://p.sf.net/sfu/rsa-sfdev2dev1 >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > ------------------------------------------------------------------------------ > RSA(R) Conference 2012 > Save $700 by Nov 18 > Register now > http://p.sf.net/sfu/rsa-sfdev2dev1 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > -- Fabien Bodard From rterry at ...1823... Sun Nov 6 22:18:06 2011 From: rterry at ...1823... (richard terry) Date: Mon, 7 Nov 2011 08:18:06 +1100 Subject: [Gambas-user] TextEdit and linefeeds In-Reply-To: References: Message-ID: <201111070818.06625.rterry@...1823...> On Sunday 06 November 2011 21:22:54 Ron wrote: > Hi all, > > In my project I replaced the txtArea for readlonly TextEdit objects so I > can color the text I want to emphasize, this works good. > > But how can I just do a single line wrap, until now I only got a blank line > in between lines, or all lines concatenated together ;-( > > It must be something simple, see attached Gambas2 object to see what I > mean. > > Thanks for any pointers in the right direction... > > Regards, > Ron_2nd, > Hi I've read the thread and will take a look at your project - I've very sucessfully used the textEdit in my medical records project so have quite a bit of experience fiddling with it. Have you examined the underlying html it generates? It tends to be a bit weird. I seem to remember that when we save the html back to the database that Ian Haywood wrote some reg-ex expressions to strip some of the line feeds and associated crud. Will try and find time to take a look. richard From ron at ...1740... Sun Nov 6 22:22:34 2011 From: ron at ...1740... (Ron) Date: Sun, 6 Nov 2011 22:22:34 +0100 Subject: [Gambas-user] TextEdit and linefeeds In-Reply-To: <201111070818.06625.rterry@...1823...> References: <201111070818.06625.rterry@...1823...> Message-ID: I want to use it as a logview window. I did that with textareas until now but i want to be able to color lines based on error level. So im not reading in a file to display, i want to add lines or parts of text to it while my program runs. Regards, Ron_2nd Op 6 nov. 2011 22:18 schreef "richard terry" het volgende: > On Sunday 06 November 2011 21:22:54 Ron wrote: > > Hi all, > > > > In my project I replaced the txtArea for readlonly TextEdit objects so I > > can color the text I want to emphasize, this works good. > > > > But how can I just do a single line wrap, until now I only got a blank > line > > in between lines, or all lines concatenated together ;-( > > > > It must be something simple, see attached Gambas2 object to see what I > > mean. > > > > Thanks for any pointers in the right direction... > > > > Regards, > > Ron_2nd, > > > Hi > > I've read the thread and will take a look at your project - I've very > sucessfully used the textEdit in my medical records project so have quite a > bit of experience fiddling with it. > > Have you examined the underlying html it generates? It tends to be a bit > weird. I seem to remember that when we save the html back to the database > that > Ian Haywood wrote some reg-ex expressions to strip some of the line feeds > and > associated crud. > > Will try and find time to take a look. > > richard > > > ------------------------------------------------------------------------------ > RSA(R) Conference 2012 > Save $700 by Nov 18 > Register now > http://p.sf.net/sfu/rsa-sfdev2dev1 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From bbruen at ...2308... Mon Nov 7 05:29:09 2011 From: bbruen at ...2308... (Bruce Bruen) Date: Mon, 07 Nov 2011 14:59:09 +1030 Subject: [Gambas-user] GB3 Custom controls Message-ID: <1320640149.19962.23.camel@...2688...> I thought I had figured out all the secrets, but no. This is about custom controls (hereafter "CC") written in gambas. What I've found out so far 1) Declaring one of the hidden constants with the value set to the default causes problems, e.g. _IsContainer=False 2) (Related) Don't use the _DrawWith constant without care as it will crash the IDE if the form is left open. 3) The Controls directory containing the icons now has to go under the Project directory and migrating a GB2 project doesn't move them. 4) It would be really, really nice if IsContainer was a RO property exposed by all controls 5) It would be really, really, really nice if all controls had a AcceptFocus property (IDE visible) so things like Picture boxes can be skipped in custom navigation code 6) The IDE now makes testing a custom control library project really easy, except: a) it doesn't display the controls like they would appear in the finished product. b) the gb problem of having to reload the project if a new CC class is added still seems to exist. 7) Issue # 123 GUI dependencies in library projects not exposing any gui dependency is a real pain. ...and about a gazillion things about the differences in behaviour between gtk and qt4 (but they are not gambas problems). So I have now partially converted my first level CC library from gb2 to gb3 and its real good! But what do I do now? How do I make it useable in the IDE? (Apart from 7 above I don't consider any of these to be gambas 3 issues.) I have figured out that I can see the CC's in a form (*) in the IDE if I add the CC component to the IDE and recompile it (well actually, ran it inside itself). And they look real good and are displayed as they will in the finished product (allowing for the visual difference b/n QT4 and GTK). But the controls don't show up in the toolbox?? (*) Done by importing a GB2 project "mocked up" to use the GB3 CC library control names I have tried sticking the library executable and the library.component file in /usr/local/gambas3 but that achieves nothing. I have tried sticking the library executable in /usr/bin with no joy. Would some of you nice people tell me what it is that I haven't done, please. I have attached a mockup of (part of) the library. But I don't think I have missed anything in the code??? Bruce -------------- next part -------------- A non-text attachment was scrubbed... Name: phCCDemo-0.0.100.tar.gz Type: application/x-compressed-tar Size: 58246 bytes Desc: not available URL: From gambas.fr at ...626... Mon Nov 7 11:01:15 2011 From: gambas.fr at ...626... (Fabien Bodard) Date: Mon, 7 Nov 2011 11:01:15 +0100 Subject: [Gambas-user] GB3 Custom controls In-Reply-To: <1320640149.19962.23.camel@...2688...> References: <1320640149.19962.23.camel@...2688...> Message-ID: well your controls are in the toobar ! in the paddy's hill tab Public Const _Group As String = "Paddys-Hill" 2011/11/7 Bruce Bruen : > I thought I had figured out all the secrets, but no. > > This is about custom controls (hereafter "CC") written in gambas. > > What I've found out so far > 1) Declaring one of the hidden constants with the value set to the > default causes problems, e.g. _IsContainer=False > 2) (Related) Don't use the _DrawWith constant without care as it will > crash the IDE if the form is left open. > 3) The Controls directory containing the icons now has to go under the > Project directory and migrating a GB2 project doesn't move them. > 4) It would be really, really nice if IsContainer was a RO property > exposed by all controls > 5) It would be really, really, really nice if all controls had a > AcceptFocus property (IDE visible) so things like Picture boxes can be > skipped in custom navigation code > 6) The IDE now makes testing a custom control library project really > easy, except: > ? ?a) it doesn't display the controls like they would appear in the > finished product. > ? ?b) the gb problem of having to reload the project if a new CC class > is added still seems to exist. > 7) Issue # 123 GUI dependencies in library projects not exposing any gui > dependency is a real pain. > ...and about a gazillion things about the differences in behaviour > between gtk and qt4 (but they are not gambas problems). > > So I have now partially converted my first level CC library from gb2 to > gb3 and its real good! > But what do I do now? ?How do I make it useable in the IDE? > (Apart from 7 above I don't consider any of these to be gambas 3 > issues.) > > I have figured out that I can see the CC's in a form (*) in the IDE if I > add the CC component to the IDE and recompile it (well actually, ran it > inside itself). ?And they look real good and are displayed as they will > in the finished product (allowing for the visual difference b/n QT4 and > GTK). ?But the controls don't show up in the toolbox?? > > (*) Done by importing a GB2 project "mocked up" to use the GB3 CC > library control names > > I have tried sticking the library executable and the library.component > file in /usr/local/gambas3 but that achieves nothing. > I have tried sticking the library executable in /usr/bin with no joy. > > Would some of you nice people tell me what it is that I haven't done, > please. > > I have attached a mockup of (part of) the library. But I don't think I > have missed anything in the code??? > > Bruce > > ------------------------------------------------------------------------------ > RSA(R) Conference 2012 > Save $700 by Nov 18 > Register now > http://p.sf.net/sfu/rsa-sfdev2dev1 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > -- Fabien Bodard -------------- next part -------------- A non-text attachment was scrubbed... Name: Capture du 2011-11-07 10:59:49.png Type: image/png Size: 163621 bytes Desc: not available URL: From adamnt42 at ...626... Mon Nov 7 11:55:11 2011 From: adamnt42 at ...626... (GMail) Date: Mon, 07 Nov 2011 21:25:11 +1030 Subject: [Gambas-user] GB3 Custom controls In-Reply-To: References: <1320640149.19962.23.camel@...2688...> Message-ID: <1320663311.19962.45.camel@...2688...> On Mon, 2011-11-07 at 11:01 +0100, Fabien Bodard wrote: > well your controls are in the toobar ! in the paddy's hill tab > > > Public Const _Group As String = "Paddys-Hill" > Yes, they are (and on the proper tab) In the demo. But I am asking about how to deploy that "library" so that other projects can use it. For instance, make it an executable and then try to include "phCCDemo" as a library in another project. tia Bruce From eilert-sprachen at ...221... Mon Nov 7 16:39:18 2011 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Mon, 07 Nov 2011 16:39:18 +0100 Subject: [Gambas-user] File date (and time) / Gambas2 In-Reply-To: References: <4EB3C66F.5040507@...221...> <1320406608.25542.0.camel@...2688...> Message-ID: <4EB7FBA6.2070008@...221...> Thank you, Fabien and Bruce, on my Gambas FileInfo is unknown, so I used Stat(...).LastModified That works fine. Rolf Am 04.11.2011 13:45, schrieb Fabien Bodard: > dim hFileinfo as FileInfo > > hFileInfo = Stat(user.home&/ "myfile") > > Print hFileInfo.LastModified > > http://gambasdoc.org/help/lang/stat > http://gambasdoc.org/help/comp/gb/stat > > 2011/11/4 Bruce Bruen: >> On Fri, 2011-11-04 at 12:03 +0100, Rolf-Werner Eilert wrote: >> >>> Hi folks, >>> >>> I know I solved this somewhere in my projects a long time ago, but I >>> don't remember how... :-) So could you help me: How to find out a file's >>> date and time? >>> >>> I would expect a File.Date or something, but there isn't... >>> >>> Thanks for your hints! >>> >>> Rolf >>> >> >> Stat class in gb >> >> Bruce >> >> >> >> ------------------------------------------------------------------------------ >> RSA(R) Conference 2012 >> Save $700 by Nov 18 >> Register now >> http://p.sf.net/sfu/rsa-sfdev2dev1 >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > > From dag.jarle.johansen at ...626... Mon Nov 7 19:42:38 2011 From: dag.jarle.johansen at ...626... (Dag-Jarle Johansen) Date: Mon, 7 Nov 2011 19:42:38 +0100 Subject: [Gambas-user] something to do Message-ID: Hi all of you. I am not very happy with my life at this time. I have a lot time to spare, but I am neither a C- nor anything-else-programmer - just VB - old-fashonied. And a little Gambas of course. If I can be any help anywhere, tell me, I would like to help were I can- My favourites are spedition, logistigs, what you need to survive in a little or middle company (billings, orders and so on) Great DJJ From gambas.fr at ...626... Mon Nov 7 19:55:42 2011 From: gambas.fr at ...626... (Fabien Bodard) Date: Mon, 7 Nov 2011 19:55:42 +0100 Subject: [Gambas-user] something to do In-Reply-To: References: Message-ID: Hi jarle, What you can do for me is to test gb.report... Understand it ... and maybe document it :) This is a true piece needed for management, logistic programs Then tell me about bugs and what you need on it or if you have some ideas to improve it . 2011/11/7 Dag-Jarle Johansen : > Hi all of you. > > I am not very happy with my life at this time. I have a lot time to spare, > but I am neither a C- nor anything-else-programmer - just VB - > old-fashonied. And a little Gambas of course. If I can be any help > anywhere, tell me, I would like to help were I can- My favourites are > spedition, logistigs, what you need to survive in a little or middle > company (billings, orders and so on) > > Great > DJJ > ------------------------------------------------------------------------------ > RSA(R) Conference 2012 > Save $700 by Nov 18 > Register now > http://p.sf.net/sfu/rsa-sfdev2dev1 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Fabien Bodard From dag.jarle.johansen at ...626... Mon Nov 7 20:33:09 2011 From: dag.jarle.johansen at ...626... (Dag-Jarle Johansen) Date: Mon, 7 Nov 2011 20:33:09 +0100 Subject: [Gambas-user] something to do In-Reply-To: References: Message-ID: Great idea, Fabien, reports have always been a misbeheviour along mangegement. I will see what I can do, including reports, of course, Really s great idea for me, thanks. Dag-Jarle 2011/11/7 Fabien Bodard > Hi jarle, > > What you can do for me is to test gb.report... Understand it ... and > maybe document it :) > > This is a true piece needed for management, logistic programs > > > Then tell me about bugs and what you need on it or if you have some > ideas to improve it . > > 2011/11/7 Dag-Jarle Johansen : > > Hi all of you. > > > > I am not very happy with my life at this time. I have a lot time to > spare, > > but I am neither a C- nor anything-else-programmer - just VB - > > old-fashonied. And a little Gambas of course. If I can be any help > > anywhere, tell me, I would like to help were I can- My favourites are > > spedition, logistigs, what you need to survive in a little or middle > > company (billings, orders and so on) > > > > Great > > DJJ > > > ------------------------------------------------------------------------------ > > RSA(R) Conference 2012 > > Save $700 by Nov 18 > > Register now > > http://p.sf.net/sfu/rsa-sfdev2dev1 > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > -- > Fabien Bodard > > > ------------------------------------------------------------------------------ > RSA(R) Conference 2012 > Save $700 by Nov 18 > Register now > http://p.sf.net/sfu/rsa-sfdev2dev1 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From dag.jarle.johansen at ...626... Mon Nov 7 20:55:08 2011 From: dag.jarle.johansen at ...626... (Dag-Jarle Johansen) Date: Mon, 7 Nov 2011 20:55:08 +0100 Subject: [Gambas-user] something to do In-Reply-To: References: Message-ID: I have to simulate some situations, of course, what would you rather have, some simulation of one firm, or the simulation of one concern, or the simulation of wall street (hehe no posssible) G DJJ 2011/11/7 Dag-Jarle Johansen > Great idea, Fabien, > > reports have always been a misbeheviour along mangegement. > I will see what I can do, including reports, of course, > > Really s great idea for me, thanks. > > Dag-Jarle > > > > 2011/11/7 Fabien Bodard > >> Hi jarle, >> >> What you can do for me is to test gb.report... Understand it ... and >> maybe document it :) >> >> This is a true piece needed for management, logistic programs >> >> >> Then tell me about bugs and what you need on it or if you have some >> ideas to improve it . >> >> 2011/11/7 Dag-Jarle Johansen : >> > Hi all of you. >> > >> > I am not very happy with my life at this time. I have a lot time to >> spare, >> > but I am neither a C- nor anything-else-programmer - just VB - >> > old-fashonied. And a little Gambas of course. If I can be any help >> > anywhere, tell me, I would like to help were I can- My favourites are >> > spedition, logistigs, what you need to survive in a little or middle >> > company (billings, orders and so on) >> > >> > Great >> > DJJ >> > >> ------------------------------------------------------------------------------ >> > RSA(R) Conference 2012 >> > Save $700 by Nov 18 >> > Register now >> > http://p.sf.net/sfu/rsa-sfdev2dev1 >> > _______________________________________________ >> > Gambas-user mailing list >> > Gambas-user at lists.sourceforge.net >> > https://lists.sourceforge.net/lists/listinfo/gambas-user >> > >> >> >> >> -- >> Fabien Bodard >> >> >> ------------------------------------------------------------------------------ >> RSA(R) Conference 2012 >> Save $700 by Nov 18 >> Register now >> http://p.sf.net/sfu/rsa-sfdev2dev1 >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > From ron at ...1740... Mon Nov 7 21:03:59 2011 From: ron at ...1740... (Ron) Date: Mon, 7 Nov 2011 21:03:59 +0100 Subject: [Gambas-user] something to do In-Reply-To: References: Message-ID: Maybe I have a nice testcase, I need an gambas app which imports a csv file into an sql table, and a creates monthly billing report for set of originating numbers from another table... so a small billing app... We now get one big csv with all a-b numbers with call duration and callcost in it, we need to sum up call costs for specific sets of a numbers... Or is this far fetched? Regards, Ron. 2011/11/7 Dag-Jarle Johansen > I have to simulate some situations, of course, > what would you rather have, some simulation of one firm, or the simulation > of one concern, or the simulation of wall street (hehe no posssible) > > G > DJJ > > > > 2011/11/7 Dag-Jarle Johansen > > > Great idea, Fabien, > > > > reports have always been a misbeheviour along mangegement. > > I will see what I can do, including reports, of course, > > > > Really s great idea for me, thanks. > > > > Dag-Jarle > > > > > > > > 2011/11/7 Fabien Bodard > > > >> Hi jarle, > >> > >> What you can do for me is to test gb.report... Understand it ... and > >> maybe document it :) > >> > >> This is a true piece needed for management, logistic programs > >> > >> > >> Then tell me about bugs and what you need on it or if you have some > >> ideas to improve it . > >> > >> 2011/11/7 Dag-Jarle Johansen : > >> > Hi all of you. > >> > > >> > I am not very happy with my life at this time. I have a lot time to > >> spare, > >> > but I am neither a C- nor anything-else-programmer - just VB - > >> > old-fashonied. And a little Gambas of course. If I can be any help > >> > anywhere, tell me, I would like to help were I can- My favourites are > >> > spedition, logistigs, what you need to survive in a little or middle > >> > company (billings, orders and so on) > >> > > >> > Great > >> > DJJ > >> > > >> > ------------------------------------------------------------------------------ > >> > RSA(R) Conference 2012 > >> > Save $700 by Nov 18 > >> > Register now > >> > http://p.sf.net/sfu/rsa-sfdev2dev1 > >> > _______________________________________________ > >> > Gambas-user mailing list > >> > Gambas-user at lists.sourceforge.net > >> > https://lists.sourceforge.net/lists/listinfo/gambas-user > >> > > >> > >> > >> > >> -- > >> Fabien Bodard > >> > >> > >> > ------------------------------------------------------------------------------ > >> RSA(R) Conference 2012 > >> Save $700 by Nov 18 > >> Register now > >> http://p.sf.net/sfu/rsa-sfdev2dev1 > >> _______________________________________________ > >> Gambas-user mailing list > >> Gambas-user at lists.sourceforge.net > >> https://lists.sourceforge.net/lists/listinfo/gambas-user > >> > > > > > > ------------------------------------------------------------------------------ > RSA(R) Conference 2012 > Save $700 by Nov 18 > Register now > http://p.sf.net/sfu/rsa-sfdev2dev1 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From dag.jarle.johansen at ...626... Mon Nov 7 21:05:38 2011 From: dag.jarle.johansen at ...626... (Dag-Jarle Johansen) Date: Mon, 7 Nov 2011 21:05:38 +0100 Subject: [Gambas-user] something to do In-Reply-To: References: Message-ID: You could give me, fexs.Oracle, why do they have OpenOffice, Or Sun why do they have MySql looking at forwards-going models (without blond hairs) That would be a good example of a structured mangament. I will do my very best DJJ 2011/11/7 Dag-Jarle Johansen > I have to simulate some situations, of course, > what would you rather have, some simulation of one firm, or the simulation > of one concern, or the simulation of wall street (hehe no posssible) > > G > DJJ > > > > > 2011/11/7 Dag-Jarle Johansen > >> Great idea, Fabien, >> >> reports have always been a misbeheviour along mangegement. >> I will see what I can do, including reports, of course, >> >> Really s great idea for me, thanks. >> >> Dag-Jarle >> >> >> >> 2011/11/7 Fabien Bodard >> >>> Hi jarle, >>> >>> What you can do for me is to test gb.report... Understand it ... and >>> maybe document it :) >>> >>> This is a true piece needed for management, logistic programs >>> >>> >>> Then tell me about bugs and what you need on it or if you have some >>> ideas to improve it . >>> >>> 2011/11/7 Dag-Jarle Johansen : >>> > Hi all of you. >>> > >>> > I am not very happy with my life at this time. I have a lot time to >>> spare, >>> > but I am neither a C- nor anything-else-programmer - just VB - >>> > old-fashonied. And a little Gambas of course. If I can be any help >>> > anywhere, tell me, I would like to help were I can- My favourites are >>> > spedition, logistigs, what you need to survive in a little or middle >>> > company (billings, orders and so on) >>> > >>> > Great >>> > DJJ >>> > >>> ------------------------------------------------------------------------------ >>> > RSA(R) Conference 2012 >>> > Save $700 by Nov 18 >>> > Register now >>> > http://p.sf.net/sfu/rsa-sfdev2dev1 >>> > _______________________________________________ >>> > Gambas-user mailing list >>> > Gambas-user at lists.sourceforge.net >>> > https://lists.sourceforge.net/lists/listinfo/gambas-user >>> > >>> >>> >>> >>> -- >>> Fabien Bodard >>> >>> >>> ------------------------------------------------------------------------------ >>> RSA(R) Conference 2012 >>> Save $700 by Nov 18 >>> Register now >>> http://p.sf.net/sfu/rsa-sfdev2dev1 >>> _______________________________________________ >>> Gambas-user mailing list >>> Gambas-user at lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>> >> >> > From dag.jarle.johansen at ...626... Mon Nov 7 21:10:44 2011 From: dag.jarle.johansen at ...626... (Dag-Jarle Johansen) Date: Mon, 7 Nov 2011 21:10:44 +0100 Subject: [Gambas-user] something to do In-Reply-To: References: Message-ID: That is no problem, please, easy, in fact whatever I have a interess but i farer interess for you, I would build a database, not relying on CVS-files DJJ 2011/11/7 Ron > Maybe I have a nice testcase, I need an gambas app which imports a csv file > into an sql table, and a creates monthly billing report for set of > originating numbers from another table... so a small billing app... > > We now get one big csv with all a-b numbers with call duration and callcost > in it, we need to sum up call costs for specific sets of a numbers... > > Or is this far fetched? > > Regards, > Ron. > > 2011/11/7 Dag-Jarle Johansen > > > I have to simulate some situations, of course, > > what would you rather have, some simulation of one firm, or the > simulation > > of one concern, or the simulation of wall street (hehe no posssible) > > > > G > > DJJ > > > > > > > > 2011/11/7 Dag-Jarle Johansen > > > > > Great idea, Fabien, > > > > > > reports have always been a misbeheviour along mangegement. > > > I will see what I can do, including reports, of course, > > > > > > Really s great idea for me, thanks. > > > > > > Dag-Jarle > > > > > > > > > > > > 2011/11/7 Fabien Bodard > > > > > >> Hi jarle, > > >> > > >> What you can do for me is to test gb.report... Understand it ... and > > >> maybe document it :) > > >> > > >> This is a true piece needed for management, logistic programs > > >> > > >> > > >> Then tell me about bugs and what you need on it or if you have some > > >> ideas to improve it . > > >> > > >> 2011/11/7 Dag-Jarle Johansen : > > >> > Hi all of you. > > >> > > > >> > I am not very happy with my life at this time. I have a lot time to > > >> spare, > > >> > but I am neither a C- nor anything-else-programmer - just VB - > > >> > old-fashonied. And a little Gambas of course. If I can be any help > > >> > anywhere, tell me, I would like to help were I can- My favourites > are > > >> > spedition, logistigs, what you need to survive in a little or middle > > >> > company (billings, orders and so on) > > >> > > > >> > Great > > >> > DJJ > > >> > > > >> > > > ------------------------------------------------------------------------------ > > >> > RSA(R) Conference 2012 > > >> > Save $700 by Nov 18 > > >> > Register now > > >> > http://p.sf.net/sfu/rsa-sfdev2dev1 > > >> > _______________________________________________ > > >> > Gambas-user mailing list > > >> > Gambas-user at lists.sourceforge.net > > >> > https://lists.sourceforge.net/lists/listinfo/gambas-user > > >> > > > >> > > >> > > >> > > >> -- > > >> Fabien Bodard > > >> > > >> > > >> > > > ------------------------------------------------------------------------------ > > >> RSA(R) Conference 2012 > > >> Save $700 by Nov 18 > > >> Register now > > >> http://p.sf.net/sfu/rsa-sfdev2dev1 > > >> _______________________________________________ > > >> Gambas-user mailing list > > >> Gambas-user at lists.sourceforge.net > > >> https://lists.sourceforge.net/lists/listinfo/gambas-user > > >> > > > > > > > > > > > ------------------------------------------------------------------------------ > > RSA(R) Conference 2012 > > Save $700 by Nov 18 > > Register now > > http://p.sf.net/sfu/rsa-sfdev2dev1 > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > ------------------------------------------------------------------------------ > RSA(R) Conference 2012 > Save $700 by Nov 18 > Register now > http://p.sf.net/sfu/rsa-sfdev2dev1 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Mon Nov 7 21:26:43 2011 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Mon, 07 Nov 2011 21:26:43 +0100 Subject: [Gambas-user] GB3 Custom controls In-Reply-To: <1320640149.19962.23.camel@...2688...> References: <1320640149.19962.23.camel@...2688...> Message-ID: <4EB83F03.3060201@...1...> Le 07/11/2011 05:29, Bruce Bruen a ?crit : > I thought I had figured out all the secrets, but no. > > This is about custom controls (hereafter "CC") written in gambas. > > What I've found out so far > 1) Declaring one of the hidden constants with the value set to the > default causes problems, e.g. _IsContainer=False Mmm. What are you talking about exactly ? > 2) (Related) Don't use the _DrawWith constant without care as it will > crash the IDE if the form is left open. _DrawWith works only if you specify a control used by the IDE project (it must be in gb.qt4, gb.qt4.ext, gb.form or gb.form.mdi). > 3) The Controls directory containing the icons now has to go under the > Project directory and migrating a GB2 project doesn't move them. Indeed. > 4) It would be really, really nice if IsContainer was a RO property > exposed by all controls To know if a control is a container, use the "IS" operator: If MyControl Is Container Then ... The difference is when a control actually inherits UserControl. It is a container, but it must be used as a control. So the test you need is: If MyControl Is Container And If Not MyControl Is UserControl Then ... > 5) It would be really, really, really nice if all controls had a > AcceptFocus property (IDE visible) so things like Picture boxes can be > skipped in custom navigation code Normally PictureBox is a read-only control, so it should not get the focus (do you use gb.qt or gb.gtk?). DrawingArea has a "Focus" property. I admit it may be useful to put that property in every control, but I'm not sure it is a good idea at the moment. > 6) The IDE now makes testing a custom control library project really > easy, except: > a) it doesn't display the controls like they would appear in the > finished product. It should. Please give more details. > b) the gb problem of having to reload the project if a new CC class > is added still seems to exist. What are you talking about exactly? Please give some details. > 7) Issue # 123 GUI dependencies in library projects not exposing any gui > dependency is a real pain. Yes. Not fixed at the moment... > ...and about a gazillion things about the differences in behaviour > between gtk and qt4 (but they are not gambas problems). Please report all of them as possible. The goal is to erase all these differences as much as possible. > > So I have now partially converted my first level CC library from gb2 to > gb3 and its real good! > But what do I do now? How do I make it useable in the IDE? > (Apart from 7 above I don't consider any of these to be gambas 3 > issues.) > > I have figured out that I can see the CC's in a form (*) in the IDE if I > add the CC component to the IDE and recompile it (well actually, ran it > inside itself). And they look real good and are displayed as they will > in the finished product (allowing for the visual difference b/n QT4 and > GTK). But the controls don't show up in the toolbox?? > > (*) Done by importing a GB2 project "mocked up" to use the GB3 CC > library control names > > I have tried sticking the library executable and the library.component > file in /usr/local/gambas3 but that achieves nothing. > I have tried sticking the library executable in /usr/bin with no joy. > > Would some of you nice people tell me what it is that I haven't done, > please. You must make a binary package of your component project. Normally this package should install the component in the same place as the other components located in the Gambas 3 source code, and should become as usable as them. Regards, -- Beno?t Minisini From dag.jarle.johansen at ...626... Mon Nov 7 21:33:02 2011 From: dag.jarle.johansen at ...626... (Dag-Jarle Johansen) Date: Mon, 7 Nov 2011 21:33:02 +0100 Subject: [Gambas-user] GB3 Custom controls In-Reply-To: <4EB83F03.3060201@...1...> References: <1320640149.19962.23.camel@...2688...> <4EB83F03.3060201@...1...> Message-ID: wow 2011/11/7 Beno?t Minisini > Le 07/11/2011 05:29, Bruce Bruen a ?crit : > > I thought I had figured out all the secrets, but no. > > > > This is about custom controls (hereafter "CC") written in gambas. > > > > What I've found out so far > > 1) Declaring one of the hidden constants with the value set to the > > default causes problems, e.g. _IsContainer=False > > Mmm. What are you talking about exactly ? > > > 2) (Related) Don't use the _DrawWith constant without care as it will > > crash the IDE if the form is left open. > > _DrawWith works only if you specify a control used by the IDE project > (it must be in gb.qt4, gb.qt4.ext, gb.form or gb.form.mdi). > > > 3) The Controls directory containing the icons now has to go under the > > Project directory and migrating a GB2 project doesn't move them. > > Indeed. > > > 4) It would be really, really nice if IsContainer was a RO property > > exposed by all controls > > To know if a control is a container, use the "IS" operator: > > If MyControl Is Container Then ... > > The difference is when a control actually inherits UserControl. It is a > container, but it must be used as a control. > > So the test you need is: > > If MyControl Is Container And If Not MyControl Is UserControl Then ... > > > 5) It would be really, really, really nice if all controls had a > > AcceptFocus property (IDE visible) so things like Picture boxes can be > > skipped in custom navigation code > > Normally PictureBox is a read-only control, so it should not get the > focus (do you use gb.qt or gb.gtk?). > > DrawingArea has a "Focus" property. I admit it may be useful to put that > property in every control, but I'm not sure it is a good idea at the > moment. > > > 6) The IDE now makes testing a custom control library project really > > easy, except: > > a) it doesn't display the controls like they would appear in the > > finished product. > > It should. Please give more details. > > > b) the gb problem of having to reload the project if a new CC class > > is added still seems to exist. > > What are you talking about exactly? Please give some details. > > > 7) Issue # 123 GUI dependencies in library projects not exposing any gui > > dependency is a real pain. > > Yes. Not fixed at the moment... > > > ...and about a gazillion things about the differences in behaviour > > between gtk and qt4 (but they are not gambas problems). > > Please report all of them as possible. The goal is to erase all these > differences as much as possible. > > > > > So I have now partially converted my first level CC library from gb2 to > > gb3 and its real good! > > But what do I do now? How do I make it useable in the IDE? > > (Apart from 7 above I don't consider any of these to be gambas 3 > > issues.) > > > > I have figured out that I can see the CC's in a form (*) in the IDE if I > > add the CC component to the IDE and recompile it (well actually, ran it > > inside itself). And they look real good and are displayed as they will > > in the finished product (allowing for the visual difference b/n QT4 and > > GTK). But the controls don't show up in the toolbox?? > > > > (*) Done by importing a GB2 project "mocked up" to use the GB3 CC > > library control names > > > > I have tried sticking the library executable and the library.component > > file in /usr/local/gambas3 but that achieves nothing. > > I have tried sticking the library executable in /usr/bin with no joy. > > > > Would some of you nice people tell me what it is that I haven't done, > > please. > > You must make a binary package of your component project. Normally this > package should install the component in the same place as the other > components located in the Gambas 3 source code, and should become as > usable as them. > > Regards, > > -- > Beno?t Minisini > > > ------------------------------------------------------------------------------ > RSA(R) Conference 2012 > Save $700 by Nov 18 > Register now > http://p.sf.net/sfu/rsa-sfdev2dev1 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From rterry at ...1823... Mon Nov 7 22:08:45 2011 From: rterry at ...1823... (richard terry) Date: Tue, 8 Nov 2011 08:08:45 +1100 Subject: [Gambas-user] something to do In-Reply-To: References: Message-ID: <201111080808.45259.rterry@...1823...> On Tuesday 08 November 2011 05:42:38 Dag-Jarle Johansen wrote: > Hi all of you. > > I am not very happy with my life at this time. I have a lot time to spare, > but I am neither a C- nor anything-else-programmer - just VB - > old-fashonied. And a little Gambas of course. If I can be any help > anywhere, tell me, I would like to help were I can- My favourites are > spedition, logistigs, what you need to survive in a little or middle > company (billings, orders and so on) > > Great > DJJ > --------------------------------------------------------------------------- > --- RSA(R) Conference 2012 > Save $700 by Nov 18 > Register now > http://p.sf.net/sfu/rsa-sfdev2dev1 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > Ah, just the project for you - join easy gp.... medical records project (currently for Australia but could be internationalised). Still a long... way to go but functional. You can download the svn. svn co svn://ozdocit.org/easygp It would take quite a bit to get going as we've not dumped the database for eons, but if anyone is really interested we could do so. Ian Haywood is just about to start on billing. Regards Richard From gambas.fr at ...626... Mon Nov 7 22:36:34 2011 From: gambas.fr at ...626... (Fabien Bodard) Date: Mon, 7 Nov 2011 22:36:34 +0100 Subject: [Gambas-user] something to do In-Reply-To: References: Message-ID: Well Gambas knwo how to import cvs :-) Just use the connexion You must for that select the gb.db component then right click on connexion and add a new connexion to a sgdbr then select import I must prvent you ... gb.report is not a standart report generator ... it's a frame style one ... so you must to study how it work. It's really different than the sections report generator. It's like using containers in Ide. And when you select gb.report in components, the ide allow you to create reports... like forms. But for the time report filling must be doing by hand. There is an example in the Gambas3 examples. And many bugs to resolve :) From bbruen at ...2308... Mon Nov 7 23:32:17 2011 From: bbruen at ...2308... (Bruce Bruen) Date: Tue, 08 Nov 2011 09:02:17 +1030 Subject: [Gambas-user] GB3 Custom controls In-Reply-To: <4EB83F03.3060201@...1...> References: <1320640149.19962.23.camel@...2688...> <4EB83F03.3060201@...1...> Message-ID: <1320705137.19962.72.camel@...2688...> On Mon, 2011-11-07 at 21:26 +0100, Beno?t Minisini wrote: > > 1) Declaring one of the hidden constants with the value set to the > > default causes problems, e.g. _IsContainer=False > > Mmm. What are you talking about exactly ? Sorry, my mistake. It's _IsMultiContainer=False. In the IDE using the previously attached sample: 1) ensure that LabelTextBox is the only open file. 2) uncomment the _IsMultiContainer declaration (line 41??) 3) make Executable. 4) open the FTest1 form ==> should get a "Cannot open file" error 5) exit the IDE (leaving the FTest1 form open) and then restart it and open the sample project ==> should get a "Cannot open file" error Bruce From bbruen at ...2308... Mon Nov 7 23:40:38 2011 From: bbruen at ...2308... (Bruce Bruen) Date: Tue, 08 Nov 2011 09:10:38 +1030 Subject: [Gambas-user] GB3 Custom controls In-Reply-To: <4EB83F03.3060201@...1...> References: <1320640149.19962.23.camel@...2688...> <4EB83F03.3060201@...1...> Message-ID: <1320705638.19962.78.camel@...2688...> On Mon, 2011-11-07 at 21:26 +0100, Beno?t Minisini wrote: > > 2) (Related) Don't use the _DrawWith constant without care as it > will > > crash the IDE if the form is left open. > > _DrawWith works only if you specify a control used by the IDE project > (it must be in gb.qt4, gb.qt4.ext, gb.form or gb.form.mdi). In IDE, ensure only the LabelTextBox class is open In my LabelTextBox class 1) Uncomment the _DrawWith declaration (line 40-something) - Note I am using a native control i.e. textbox 2) Make executable 3) Open the FTest1 form ==> should get a "cannot open file" error 4) Exit the IDE, leaving the form open 5) restart the IDE and open the project ==> should get the "must abort" error Bruce From bbruen at ...2308... Mon Nov 7 23:48:11 2011 From: bbruen at ...2308... (Bruce Bruen) Date: Tue, 08 Nov 2011 09:18:11 +1030 Subject: [Gambas-user] GB3 Custom controls In-Reply-To: <4EB83F03.3060201@...1...> References: <1320640149.19962.23.camel@...2688...> <4EB83F03.3060201@...1...> Message-ID: <1320706091.19962.79.camel@...2688...> On Mon, 2011-11-07 at 21:26 +0100, Beno?t Minisini wrote: > > 4) It would be really, really nice if IsContainer was a RO property > > exposed by all controls > > To know if a control is a container, use the "IS" operator: > > If MyControl Is Container Then ... > > The difference is when a control actually inherits UserControl. It is > a > container, but it must be used as a control. > > So the test you need is: > > If MyControl Is Container And If Not MyControl Is UserControl > Then ... Ah! Thank you that. Don't know why I didn't think of it. B From bbruen at ...2308... Tue Nov 8 00:06:55 2011 From: bbruen at ...2308... (Bruce Bruen) Date: Tue, 08 Nov 2011 09:36:55 +1030 Subject: [Gambas-user] GB3 Custom controls In-Reply-To: <4EB83F03.3060201@...1...> References: <1320640149.19962.23.camel@...2688...> <4EB83F03.3060201@...1...> Message-ID: <1320707215.19962.89.camel@...2688...> On Mon, 2011-11-07 at 21:26 +0100, Beno?t Minisini wrote: > > 5) It would be really, really, really nice if all controls had a > > AcceptFocus property (IDE visible) so things like Picture boxes can > be > > skipped in custom navigation code > > Normally PictureBox is a read-only control, so it should not get the > focus It's to do with the custom navigation code. Demo by commenting out line 58 in MUtil.NextActiveControl and put a breakpoint at the end of InnerText_KeyPress (line 439?) and then run the project. In the Horse Code box press Enter, debug Application.ActiveControl shows that focus(?) is on the picture box. Do this in QT4 first. In GTK the behaviour is harder to catch. > (do you use gb.qt or gb.gtk?). Both :-) in fact this whole affair started because I have remote users with different guis and wanted to get both of them working the same so phone support is easier. > DrawingArea has a "Focus" property. I admit it may be useful to put > that > property in every control, but I'm not sure it is a good idea at the > moment. Cool. Just a suggestion. Bruce From bbruen at ...2308... Tue Nov 8 00:16:12 2011 From: bbruen at ...2308... (Bruce Bruen) Date: Tue, 08 Nov 2011 09:46:12 +1030 Subject: [Gambas-user] GB3 Custom controls In-Reply-To: <4EB83F03.3060201@...1...> References: <1320640149.19962.23.camel@...2688...> <4EB83F03.3060201@...1...> Message-ID: <1320707772.19962.94.camel@...2688...> On Mon, 2011-11-07 at 21:26 +0100, Beno?t Minisini wrote: > > a) it doesn't display the controls like they would appear in > the > > finished product. > > It should. Please give more details. => dev.png This is what I see for FTest1 in the IDE (i.e. when I am developing phCCDemo) => ide.png This is what I see if I add this compiled library to the IDE libraries and run it and open phCCDemo. B -------------- next part -------------- A non-text attachment was scrubbed... Name: dev.png Type: image/png Size: 42673 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: ide.png Type: image/png Size: 59266 bytes Desc: not available URL: From bbruen at ...2308... Tue Nov 8 00:28:32 2011 From: bbruen at ...2308... (Bruce Bruen) Date: Tue, 08 Nov 2011 09:58:32 +1030 Subject: [Gambas-user] GB3 Custom controls In-Reply-To: <4EB83F03.3060201@...1...> References: <1320640149.19962.23.camel@...2688...> <4EB83F03.3060201@...1...> Message-ID: <1320708512.19962.99.camel@...2688...> On Mon, 2011-11-07 at 21:26 +0100, Beno?t Minisini wrote: > > b) the gb problem of having to reload the project if a new CC > class > > is added still seems to exist. > > What are you talking about exactly? Please give some details. Sorry, I am wrong on this one. Make executable does reload the IDE toolbox. :"-) B -------------- next part -------------- A non-text attachment was scrubbed... Name: face-embarrassed.png Type: image/png Size: 1067 bytes Desc: not available URL: From bbruen at ...2308... Tue Nov 8 00:57:46 2011 From: bbruen at ...2308... (Bruce Bruen) Date: Tue, 08 Nov 2011 10:27:46 +1030 Subject: [Gambas-user] GB3 Custom controls In-Reply-To: <4EB83F03.3060201@...1...> References: <1320640149.19962.23.camel@...2688...> <4EB83F03.3060201@...1...> Message-ID: <1320710266.19962.106.camel@...2688...> On Mon, 2011-11-07 at 21:26 +0100, Beno?t Minisini wrote: > You must make a binary package of your component project. Normally > this > package should install the component in the same place as the other > components located in the Gambas 3 source code, and should become as > usable as them. > OK I tried that using autotools. After decompressing I ran the normal install sequence. Here's the output: [bb at ...2711... phCCDemo-0.0]$ ./configure checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking for gambas3 binaries... Ok checking for gambas3 components path... Ok checking for gb.image component... Ok checking for gb.gui component... Ok checking for gb.form component... Ok checking for gb.desktop component... Ok configure: creating ./config.status config.status: creating Makefile [bb at ...2711... phCCDemo-0.0]$ make Building phCCDemo component... OK [bb at ...2711... phCCDemo-0.0]$ su Password: [root at ...2711... phCCDemo-0.0]# make install make[1]: Entering directory `/home/bb/phCCDemo-0.0' Installing phCCDemo.gambas in /usr/local/lib/gambas3 Installing phCCDemo.component in /usr/local/lib/gambas3 Installing phCCDemo.info in /usr/local/share/gambas3/info /usr/bin/install: cannot create directory `.info': File exists Installing phCCDemo.list in /usr/local/share/gambas3/info make[1]: Nothing to be done for `install-data-am'. make[1]: Leaving directory `/home/bb/phCCDemo-0.0' [root at ...2711... phCCDemo-0.0]# That all looks good, so then : [bb at ...2711... gambas3]$ cd /usr/local/lib/gambas3/ [bb at ...2711... gambas3]$ ls -a *ph* ls: cannot access *ph*: No such file or directory [bb at ...2711... gambas3]$ cd /usr/local/share/gambas3/info/ [bb at ...2711... info]$ ls -a *ph* ls: cannot access *ph*: No such file or directory [bb at ...2711... info]$ So nothing got put into these targets? (and the library (which if I understand correctly is now a Component) is still not available in the IDE) Help! Bruce From gambas at ...1... Tue Nov 8 01:01:22 2011 From: gambas at ...1... (=?UTF-8?B?QmVub8OudCBNaW5pc2luaQ==?=) Date: Tue, 08 Nov 2011 01:01:22 +0100 Subject: [Gambas-user] GB3 Custom controls In-Reply-To: <1320710266.19962.106.camel@...2688...> References: <1320640149.19962.23.camel@...2688...> <4EB83F03.3060201@...1...> <1320710266.19962.106.camel@...2688...> Message-ID: <4EB87152.7080709@...1...> Le 08/11/2011 00:57, Bruce Bruen a ?crit : > On Mon, 2011-11-07 at 21:26 +0100, Beno?t Minisini wrote: > >> You must make a binary package of your component project. Normally >> this >> package should install the component in the same place as the other >> components located in the Gambas 3 source code, and should become as >> usable as them. >> > > > OK I tried that using autotools. After decompressing I ran the normal > install sequence. Here's the output: > > [bb at ...2711... phCCDemo-0.0]$ ./configure > checking for a BSD-compatible install... /usr/bin/install -c > checking whether build environment is sane... yes > checking for a thread-safe mkdir -p... /bin/mkdir -p > checking for gawk... gawk > checking whether make sets $(MAKE)... yes > checking for gambas3 binaries... Ok > checking for gambas3 components path... Ok > checking for gb.image component... Ok > checking for gb.gui component... Ok > checking for gb.form component... Ok > checking for gb.desktop component... Ok > configure: creating ./config.status > config.status: creating Makefile > [bb at ...2711... phCCDemo-0.0]$ make > Building phCCDemo component... > OK > [bb at ...2711... phCCDemo-0.0]$ su > Password: > [root at ...2711... phCCDemo-0.0]# make install > make[1]: Entering directory `/home/bb/phCCDemo-0.0' > Installing phCCDemo.gambas in /usr/local/lib/gambas3 > Installing phCCDemo.component in /usr/local/lib/gambas3 > Installing phCCDemo.info in /usr/local/share/gambas3/info > /usr/bin/install: cannot create directory `.info': File exists > Installing phCCDemo.list in /usr/local/share/gambas3/info > make[1]: Nothing to be done for `install-data-am'. > make[1]: Leaving directory `/home/bb/phCCDemo-0.0' > [root at ...2711... phCCDemo-0.0]# > > That all looks good, so then : > > [bb at ...2711... gambas3]$ cd /usr/local/lib/gambas3/ > [bb at ...2711... gambas3]$ ls -a *ph* > ls: cannot access *ph*: No such file or directory > [bb at ...2711... gambas3]$ cd /usr/local/share/gambas3/info/ > [bb at ...2711... info]$ ls -a *ph* > ls: cannot access *ph*: No such file or directory > [bb at ...2711... info]$ > > So nothing got put into these targets? (and the library (which if I > understand correctly is now a Component) is still not available in the > IDE) > > Help! > > Bruce Laurent Carlier made the autotools packager, and I'm not sure that is supports packaging components. Can you try with a true binary package? -- Beno?t Minisini From bbruen at ...2308... Tue Nov 8 01:05:03 2011 From: bbruen at ...2308... (Bruce Bruen) Date: Tue, 08 Nov 2011 10:35:03 +1030 Subject: [Gambas-user] GB3 Custom controls In-Reply-To: <1320710266.19962.106.camel@...2688...> References: <1320640149.19962.23.camel@...2688...> <4EB83F03.3060201@...1...> <1320710266.19962.106.camel@...2688...> Message-ID: <1320710703.19962.108.camel@...2688...> On Tue, 2011-11-08 at 10:27 +1030, Bruce Bruen wrote: > On Mon, 2011-11-07 at 21:26 +0100, Beno?t Minisini wrote: > > > You must make a binary package of your component project. Normally > > this > > package should install the component in the same place as the other > > components located in the Gambas 3 source code, and should become as > > usable as them. > > > > > OK I tried that using autotools. After decompressing I ran the normal > install sequence. Here's the output: > > [bb at ...2711... phCCDemo-0.0]$ ./configure > checking for a BSD-compatible install... /usr/bin/install -c > checking whether build environment is sane... yes > checking for a thread-safe mkdir -p... /bin/mkdir -p > checking for gawk... gawk > checking whether make sets $(MAKE)... yes > checking for gambas3 binaries... Ok > checking for gambas3 components path... Ok > checking for gb.image component... Ok > checking for gb.gui component... Ok > checking for gb.form component... Ok > checking for gb.desktop component... Ok > configure: creating ./config.status > config.status: creating Makefile > [bb at ...2711... phCCDemo-0.0]$ make > Building phCCDemo component... > OK > [bb at ...2711... phCCDemo-0.0]$ su > Password: > [root at ...2711... phCCDemo-0.0]# make install > make[1]: Entering directory `/home/bb/phCCDemo-0.0' > Installing phCCDemo.gambas in /usr/local/lib/gambas3 > Installing phCCDemo.component in /usr/local/lib/gambas3 > Installing phCCDemo.info in /usr/local/share/gambas3/info > /usr/bin/install: cannot create directory `.info': File exists > Installing phCCDemo.list in /usr/local/share/gambas3/info > make[1]: Nothing to be done for `install-data-am'. > make[1]: Leaving directory `/home/bb/phCCDemo-0.0' > [root at ...2711... phCCDemo-0.0]# > > That all looks good, so then : > > [bb at ...2711... gambas3]$ cd /usr/local/lib/gambas3/ > [bb at ...2711... gambas3]$ ls -a *ph* > ls: cannot access *ph*: No such file or directory > [bb at ...2711... gambas3]$ cd /usr/local/share/gambas3/info/ > [bb at ...2711... info]$ ls -a *ph* > ls: cannot access *ph*: No such file or directory > [bb at ...2711... info]$ > > So nothing got put into these targets? (and the library (which if I > understand correctly is now a Component) is still not available in the > IDE) > > Help! > > Bruce FORGET THIS ONE! I found my problem - I had included phCCDemo as a library in the project I was using to see if the new component was available. and thanks Beno?t for your attention on all this. regards Bruce From bbruen at ...2308... Tue Nov 8 01:34:35 2011 From: bbruen at ...2308... (Bruce Bruen) Date: Tue, 08 Nov 2011 11:04:35 +1030 Subject: [Gambas-user] GB3 Custom controls In-Reply-To: <1320710703.19962.108.camel@...2688...> References: <1320640149.19962.23.camel@...2688...> <4EB83F03.3060201@...1...> <1320710266.19962.106.camel@...2688...> <1320710703.19962.108.camel@...2688...> Message-ID: <1320712475.19962.120.camel@...2688...> On Tue, 2011-11-08 at 10:35 +1030, Bruce Bruen wrote: > FORGET THIS ONE! I found my problem - I had included phCCDemo as a > library in the project I was using to see if the new component was > available. No, I spoke too soon... :-( Tried with a new project and the Paddys-Hill tab is definitely not in the toolbox. So, I manually copied the compiled project files as follows: phCCDemo.gambas -> /usr/local/lib/gambas3 .component -> /usr/local/lib/phCCDemo.component .info -> /usr/local/share/gambas3/info/phCCDemo.info .list -> /usr/local/share/gambas3/info/phCCDemo.list all the control icons into /usr/local/share/gambas3/control/phCCDemo And TADA! everthing seems OK so far! So it looks like the autotools scripts don't work (on my distro, that is.) The only outstanding item is getting the controls to look in the IDE like how they will appear in the product. I think I have to compile the component into the IDE itself? Bruce -------------- next part -------------- A non-text attachment was scrubbed... Name: face-sad.png Type: image/png Size: 1057 bytes Desc: not available URL: From adamnt42 at ...626... Tue Nov 8 01:53:28 2011 From: adamnt42 at ...626... (GMail) Date: Tue, 08 Nov 2011 11:23:28 +1030 Subject: [Gambas-user] GB3 Custom controls In-Reply-To: <4EB87152.7080709@...1...> References: <1320640149.19962.23.camel@...2688...> <4EB83F03.3060201@...1...> <1320710266.19962.106.camel@...2688...> <4EB87152.7080709@...1...> Message-ID: <1320713608.19962.123.camel@...2688...> On Tue, 2011-11-08 at 01:01 +0100, Beno?t Minisini wrote: > Can you try with a true binary package? Beno?t, I wasn't sure what you meant there, so I just went the manual route. Bruce From eilert-sprachen at ...221... Tue Nov 8 09:10:15 2011 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Tue, 08 Nov 2011 09:10:15 +0100 Subject: [Gambas-user] TextEdit and linefeeds In-Reply-To: References: Message-ID: <4EB8E3E7.1070805@...221...> Am 06.11.2011 11:22, schrieb Ron: > Hi all, > > In my project I replaced the txtArea for readlonly TextEdit objects so I > can color the text I want to emphasize, this works good. Good idea by the way... :-) > > But how can I just do a single line wrap, until now I only got a blank line > in between lines, or all lines concatenated together ;-( After having fiddled around with your example a bit and comparing the TextEdit with a TextLabel behaviour, I had the idea that a "\n" newline actually is interpreted as "new paragraph" which would mean "leave a blank line". The "\n" I guess produces a Chr$(10) because this shows the same effect. So you would need a "make a new line only but stay in the paragraph" (like Shift-Return in a word processor for instance). There should be a code for that. Now I have a question: This TextEdit should be able to accept formatting, but I didn't find out how. I tried to make the dates bold, how would I achieve that? Somewhere I have used an object that is able to interpret simple HTML codes, but I don't remember its name or where I got it from (it's like a TextLabel with editing). Do you know what I mean? Rolf From eilert-sprachen at ...221... Tue Nov 8 11:25:01 2011 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Tue, 08 Nov 2011 11:25:01 +0100 Subject: [Gambas-user] TextEdit and linefeeds In-Reply-To: References: Message-ID: <4EB9037D.4080800@...221...> Ron, I guess I got it :-) I found my old project where I used it, and now read this: It depends on whether TextEdit is ReadOnly AND you shouldn't use .Insert but concatenate TextEdit.Text (oh my goodness...). If ReadOnly = True, it reacts like TextLabel, i. e. "\n" is ignored and only HTML tags are interpreted. If ReadOnly = False, it looks for a Return = chr$(10) = "\n" (which could be pressed by the user) and starts a new paragraph. As you need it for reading only, set it accordingly and change "\n" to "
" - this should do it. PUBLIC SUB WriteLog(sText AS String, OPTIONAL bStrip AS Boolean) IF NOT bStrip THEN sText &= "
" sText = "" & Format$(Now, "yyyy/mm/dd hh:nn:ss") & " " & sText FMain.txtMainLog.EnsureVisible FMain.txtMainLog.Text &= sText 'This runs better 'FMain.txtMainLog.Insert(sText) 'This will mess it up PRINT sText; END Hope it helps! Rolf Am 06.11.2011 11:22, schrieb Ron: > Hi all, > > In my project I replaced the txtArea for readlonly TextEdit objects so I > can color the text I want to emphasize, this works good. > > But how can I just do a single line wrap, until now I only got a blank line > in between lines, or all lines concatenated together ;-( > > It must be something simple, see attached Gambas2 object to see what I mean. > > Thanks for any pointers in the right direction... > > Regards, > Ron_2nd, > > > > ------------------------------------------------------------------------------ > RSA(R) Conference 2012 > Save $700 by Nov 18 > Register now > http://p.sf.net/sfu/rsa-sfdev2dev1 > > > > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From ron at ...1740... Tue Nov 8 11:27:14 2011 From: ron at ...1740... (Ron) Date: Tue, 08 Nov 2011 11:27:14 +0100 Subject: [Gambas-user] TextEdit and linefeeds In-Reply-To: <4EB9037D.4080800@...221...> References: <4EB9037D.4080800@...221...> Message-ID: <4EB90402.9080502@...1740...> Rolf, This is what Fabian also mailed me, but it didn't work, will look into it again, I had ReadOnly is true already set. Thanks. Regards, Ron. > Ron, > > I guess I got it :-) I found my old project where I used it, and now > read this: > > It depends on whether TextEdit is ReadOnly AND you shouldn't use .Insert > but concatenate TextEdit.Text (oh my goodness...). > > If ReadOnly = True, it reacts like TextLabel, i. e. "\n" is ignored and > only HTML tags are interpreted. > > If ReadOnly = False, it looks for a Return = chr$(10) = "\n" (which > could be pressed by the user) and starts a new paragraph. > > As you need it for reading only, set it accordingly and change "\n" to > "
" - this should do it. > > PUBLIC SUB WriteLog(sText AS String, OPTIONAL bStrip AS Boolean) > > IF NOT bStrip THEN sText&= "
" > > sText = ""& Format$(Now, "yyyy/mm/dd hh:nn:ss")& " "& sText > FMain.txtMainLog.EnsureVisible > FMain.txtMainLog.Text&= sText 'This runs better > 'FMain.txtMainLog.Insert(sText) 'This will mess it up > PRINT sText; > > END > > > Hope it helps! > > Rolf > > > Am 06.11.2011 11:22, schrieb Ron: >> Hi all, >> >> In my project I replaced the txtArea for readlonly TextEdit objects so I >> can color the text I want to emphasize, this works good. >> >> But how can I just do a single line wrap, until now I only got a blank line >> in between lines, or all lines concatenated together ;-( >> >> It must be something simple, see attached Gambas2 object to see what I mean. >> >> Thanks for any pointers in the right direction... >> >> Regards, >> Ron_2nd, >> >> >> >> ------------------------------------------------------------------------------ >> RSA(R) Conference 2012 >> Save $700 by Nov 18 >> Register now >> http://p.sf.net/sfu/rsa-sfdev2dev1 >> >> >> >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user > > ------------------------------------------------------------------------------ > RSA(R) Conference 2012 > Save $700 by Nov 18 > Register now > http://p.sf.net/sfu/rsa-sfdev2dev1 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From eilert-sprachen at ...221... Tue Nov 8 12:46:45 2011 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Tue, 08 Nov 2011 12:46:45 +0100 Subject: [Gambas-user] TextEdit and linefeeds In-Reply-To: <4EB90402.9080502@...1740...> References: <4EB9037D.4080800@...221...> <4EB90402.9080502@...1740...> Message-ID: <4EB916A5.5080706@...221...> Ok, and then you will have to do without Insert but simply concatenate the text as in my example. Those two work here in combination. Am 08.11.2011 11:27, schrieb Ron: > Rolf, > > This is what Fabian also mailed me, but it didn't work, will look into > it again, I had ReadOnly is true already set. > Thanks. > > Regards, > Ron. >> Ron, >> >> I guess I got it :-) I found my old project where I used it, and now >> read this: >> >> It depends on whether TextEdit is ReadOnly AND you shouldn't use .Insert >> but concatenate TextEdit.Text (oh my goodness...). >> >> If ReadOnly = True, it reacts like TextLabel, i. e. "\n" is ignored and >> only HTML tags are interpreted. >> >> If ReadOnly = False, it looks for a Return = chr$(10) = "\n" (which >> could be pressed by the user) and starts a new paragraph. >> >> As you need it for reading only, set it accordingly and change "\n" to >> "
" - this should do it. >> >> PUBLIC SUB WriteLog(sText AS String, OPTIONAL bStrip AS Boolean) >> >> IF NOT bStrip THEN sText&= "
" >> >> sText = ""& Format$(Now, "yyyy/mm/dd hh:nn:ss")& " "& sText >> FMain.txtMainLog.EnsureVisible >> FMain.txtMainLog.Text&= sText 'This runs better >> 'FMain.txtMainLog.Insert(sText) 'This will mess it up >> PRINT sText; >> >> END >> >> >> Hope it helps! >> >> Rolf >> >> >> Am 06.11.2011 11:22, schrieb Ron: >>> Hi all, >>> >>> In my project I replaced the txtArea for readlonly TextEdit objects so I >>> can color the text I want to emphasize, this works good. >>> >>> But how can I just do a single line wrap, until now I only got a blank line >>> in between lines, or all lines concatenated together ;-( >>> >>> It must be something simple, see attached Gambas2 object to see what I mean. >>> >>> Thanks for any pointers in the right direction... >>> >>> Regards, >>> Ron_2nd, >>> >>> >>> >>> ------------------------------------------------------------------------------ >>> RSA(R) Conference 2012 >>> Save $700 by Nov 18 >>> Register now >>> http://p.sf.net/sfu/rsa-sfdev2dev1 >>> >>> >>> >>> _______________________________________________ >>> Gambas-user mailing list >>> Gambas-user at lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/gambas-user >> >> ------------------------------------------------------------------------------ >> RSA(R) Conference 2012 >> Save $700 by Nov 18 >> Register now >> http://p.sf.net/sfu/rsa-sfdev2dev1 >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user > > > ------------------------------------------------------------------------------ > RSA(R) Conference 2012 > Save $700 by Nov 18 > Register now > http://p.sf.net/sfu/rsa-sfdev2dev1 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas.fr at ...626... Tue Nov 8 14:22:45 2011 From: gambas.fr at ...626... (Fabien Bodard) Date: Tue, 8 Nov 2011 14:22:45 +0100 Subject: [Gambas-user] TextEdit and linefeeds In-Reply-To: <4EB916A5.5080706@...221...> References: <4EB9037D.4080800@...221...> <4EB90402.9080502@...1740...> <4EB916A5.5080706@...221...> Message-ID: yes insert is to add normal text without interpretation From ron at ...1740... Tue Nov 8 17:05:31 2011 From: ron at ...1740... (Ron) Date: Tue, 8 Nov 2011 17:05:31 +0100 Subject: [Gambas-user] TextEdit and linefeeds In-Reply-To: References: <4EB9037D.4080800@...221...> <4EB90402.9080502@...1740...> <4EB916A5.5080706@...221...> Message-ID: All works, expect one thing. When I was using the .Insert() I could set forecolor before and after the insert to color only this line, like so: FLogFiles.txtMainLog.ForeColor = Color.Gray FLogFiles.txtMainLog.Insert(sText) FLogFiles.txtMainLog.ForeColor = Color.Black If I now issue a FLogFiles.txtMainLog.ForeColor = Color.Gray, all the text in the TextArea turns black. So the main reason to switch to TextArea is the only part still not working :LOL Is there another way to color a line or part of a text? I hoped "" sText & "" worked since works, but alas... Regards, Ron_2nd. 2011/11/8 Fabien Bodard > yes insert is to add normal text without interpretation > > > ------------------------------------------------------------------------------ > RSA(R) Conference 2012 > Save $700 by Nov 18 > Register now > http://p.sf.net/sfu/rsa-sfdev2dev1 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...2524... Tue Nov 8 17:05:47 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Tue, 08 Nov 2011 16:05:47 +0000 Subject: [Gambas-user] Issue 140 in gambas: Optional argument parser not good enough. Message-ID: <0-6813199134517018827-5036567284073029207-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 140 by emil.len... at ...626...: Optional argument parser not good enough. http://code.google.com/p/gambas/issues/detail?id=140 1) Describe the problem. The parser that parses optional arguments in function declarations is a bit strange. This is OK: Public arr As New Integer[2] Public Sub Func(Optional i As Integer = arr[0]) End But this is a syntax error according to the parser: Public arr As New Integer[2, 2] Public Sub Func(Optional i As Integer = arr[0, 0]) End This is not ok either: Public Sub Func(Optional i As Integer = getSomeValue()) End However, the interpreter seems to be ready to handle that kind of code, so it is strange that the parser fails. (And if it is meant that it should only be possible to pass "simple" values, this has already failed because the first valid array syntax can be used on any class that has the _get method which also can have side effects.) 2) GIVE THE FOLLOWING INFORMATIONS (if they are appropriate): Version: TRUNK Revision: r4236 From gambas at ...2524... Tue Nov 8 18:07:19 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Tue, 08 Nov 2011 17:07:19 +0000 Subject: [Gambas-user] Issue 141 in gambas: Default/Case Else can be executed even if it matched a Case in a Select Statement. Message-ID: <0-6813199134517018827-1899680364634353539-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 141 by emil.len... at ...626...: Default/Case Else can be executed even if it matched a Case in a Select Statement. http://code.google.com/p/gambas/issues/detail?id=141 1) Describe the problem. The documentation for Select Statement says "If no CASE statement matches, the DEFAULT or CASE ELSE statement is executed." It says nowhere that the Default/Case Else must be the last case in the list, and for the moment the compiler accepts it to be anywhere. But if you have a testcase after the Case Else/Default it will be matched to, the Case Else/Default case will also be executed. 2) GIVE THE FOLLOWING INFORMATIONS (if they are appropriate): Version: TRUNK or BRANCHES/2.0 or 2.22.0 Revision: r4236 3) Provide a little project that reproduces the bug or the crash. Select Case 0 Default Print "default" Case 0 Print "0" Case 1 Print "1" Case 2 Print "2" End Select will print: default 0 when only "0" is the expected output. From rmorgan62 at ...626... Tue Nov 8 20:29:06 2011 From: rmorgan62 at ...626... (Randall Morgan) Date: Tue, 8 Nov 2011 11:29:06 -0800 Subject: [Gambas-user] TextEdit and linefeeds In-Reply-To: References: <4EB9037D.4080800@...221...> <4EB90402.9080502@...1740...> <4EB916A5.5080706@...221...> Message-ID: Well, I don't know if this works but since you're html tags the tag should read some text On Tue, Nov 8, 2011 at 8:05 AM, Ron wrote: > All works, expect one thing. > > When I was using the .Insert() I could set forecolor before and after the > insert to color only this line, like so: > > FLogFiles.txtMainLog.ForeColor = Color.Gray > FLogFiles.txtMainLog.Insert(sText) > FLogFiles.txtMainLog.ForeColor = Color.Black > > If I now issue a FLogFiles.txtMainLog.ForeColor = Color.Gray, all the text > in the TextArea turns black. > > So the main reason to switch to TextArea is the only part still not working > :LOL > Is there another way to color a line or part of a text? > > I hoped "" sText & "" worked since works, > but alas... > > Regards, > Ron_2nd. > > 2011/11/8 Fabien Bodard > > > yes insert is to add normal text without interpretation > > > > > > > ------------------------------------------------------------------------------ > > RSA(R) Conference 2012 > > Save $700 by Nov 18 > > Register now > > http://p.sf.net/sfu/rsa-sfdev2dev1 > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > ------------------------------------------------------------------------------ > RSA(R) Conference 2012 > Save $700 by Nov 18 > Register now > http://p.sf.net/sfu/rsa-sfdev2dev1 > _______________________________________________ > 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 ea7dfh at ...2382... Tue Nov 8 20:41:28 2011 From: ea7dfh at ...2382... (Jesus) Date: Tue, 08 Nov 2011 20:41:28 +0100 Subject: [Gambas-user] TextEdit and linefeeds In-Reply-To: References: <4EB9037D.4080800@...221...> <4EB90402.9080502@...1740...> <4EB916A5.5080706@...221...> Message-ID: <4EB985E8.3040004@...2382...> El 08/11/11 17:05, Ron escribi?: > All works, expect one thing. > Is there another way to color a line or part of a text? > > I hoped "" sText & "" worked since works, > but alas... > > Regards, > Ron_2nd. Randal Morgan wrote > Well, I don't know if this works but since you're html tags the tag should > read some text If you're using TextArea in Gambas3 the Raldal's example should work only if you use .RichText property, instead of .Text. Regards -- Jesus Guardon From ea7dfh at ...2382... Tue Nov 8 20:51:13 2011 From: ea7dfh at ...2382... (Jesus) Date: Tue, 08 Nov 2011 20:51:13 +0100 Subject: [Gambas-user] TextEdit and linefeeds In-Reply-To: <4EB985E8.3040004@...2382...> References: <4EB9037D.4080800@...221...> <4EB90402.9080502@...1740...> <4EB916A5.5080706@...221...> <4EB985E8.3040004@...2382...> Message-ID: <4EB98831.8070400@...2382...> El 08/11/11 20:41, Jesus escribi?: > > If you're using TextArea in Gambas3 the Randall's example should work > only if you use .RichText property, instead of .Text. > > Regards > Ooops, my mistake. I meant *TextEdit*, not Textarea. And sorry for misspelling your name, Randall. Regards -- Jesus Guardon From gambas at ...2524... Tue Nov 8 22:16:21 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Tue, 08 Nov 2011 21:16:21 +0000 Subject: [Gambas-user] Issue 142 in gambas: Graphical bug with labels. Message-ID: <0-6813199134517018827-15905778346027353566-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 142 by jussi.la... at ...626...: Graphical bug with labels. http://code.google.com/p/gambas/issues/detail?id=142 1) Describe the problem. Randomly changing color errors with transparent labels. 2) GIVE THE FOLLOWING INFORMATIONS (if they are appropriate): Version: TRUNK Revision: r4236 Operating system: Linux Distribution: Xubuntu Architecture: x86_64 GUI component: QT4 and GTK+ Desktop used: XFCE See attachments. Attachments: graphicalbug.png 7.7 KB GraphBug-0.0.1.tar.gz 4.7 KB From rmorgan62 at ...626... Tue Nov 8 23:34:00 2011 From: rmorgan62 at ...626... (Randall Morgan) Date: Tue, 8 Nov 2011 14:34:00 -0800 Subject: [Gambas-user] TextEdit and linefeeds In-Reply-To: <4EB98831.8070400@...2382...> References: <4EB9037D.4080800@...221...> <4EB90402.9080502@...1740...> <4EB916A5.5080706@...221...> <4EB985E8.3040004@...2382...> <4EB98831.8070400@...2382...> Message-ID: Not a problem. If you're like me when you have many things going you tend to mis-type. I do it all the tmie LOL On Tue, Nov 8, 2011 at 11:51 AM, Jesus wrote: > El 08/11/11 20:41, Jesus escribi?: > > > > > If you're using TextArea in Gambas3 the Randall's example should work > > only if you use .RichText property, instead of .Text. > > > > Regards > > > > Ooops, my mistake. I meant *TextEdit*, not Textarea. > And sorry for misspelling your name, Randall. > > Regards > > -- > Jesus Guardon > > > ------------------------------------------------------------------------------ > RSA(R) Conference 2012 > Save $700 by Nov 18 > Register now > http://p.sf.net/sfu/rsa-sfdev2dev1 > _______________________________________________ > 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 adamnt42 at ...626... Wed Nov 9 00:28:07 2011 From: adamnt42 at ...626... (GMail) Date: Wed, 09 Nov 2011 09:58:07 +1030 Subject: [Gambas-user] GB3 Custom controls In-Reply-To: <4EB87152.7080709@...1...> References: <1320640149.19962.23.camel@...2688...> <4EB83F03.3060201@...1...> <1320710266.19962.106.camel@...2688...> <4EB87152.7080709@...1...> Message-ID: <1320794887.19962.140.camel@...2688...> On Tue, 2011-11-08 at 01:01 +0100, Beno?t Minisini wrote: > Laurent Carlier made the autotools packager, and I'm not sure that is > supports packaging components. Can you try with a true binary package? > > -- > Beno?t Minisini Good morning Beno?t, (and any others watching) re the automake scripts: I have hacked the Makefile generated from the install package to echo each command before it is executed when "make install" is run. First up there is definitely code intended for handling Components. But there appears to be a bug in the target paths. Here is the output: make[1]: Entering directory `/home/bb/test_gb3packages/phControls3-0.0' make install IS using hacked Makefile script Installing phControls3.gambas in /usr/local/lib/gambas3 Command 1 is: /usr/bin/install -c -d /usr/local//usr/local/lib/gambas3 Command 2 is : /usr/bin/install -c phControls3.gambas /usr/local//usr/local/lib/gambas3 Installing phControls3.component in /usr/local/lib/gambas3 Command 3 is : /usr/bin/install -c -d /usr/local//usr/local/lib/gambas3 Command 4 is : /usr/bin/install -c .component /usr/local//usr/local/lib/gambas3/ Command 5 is : chmod a-x /usr/local//usr/local/lib/gambas3/phControls3.component Installing phControls3.info in /usr/local/share/gambas3/info Command 6 is : /usr/bin/install -c -d .info /usr/local//usr/local/share/gambas3/info /usr/bin/install: cannot create directory `.info': File exists Command 7 is : /usr/bin/install -c .info /usr/local//usr/local/share/gambas3/info/phControls3.info Command 8 is :chmod a-x /usr/local//usr/local/share/gambas3/info/phControls3.info Installing phControls3.list in /usr/local/share/gambas3/info Command 9 is : /usr/bin/install -c .list /usr/local//usr/local/share/gambas3/info/phControls3.list Command 10 is : chmod a-x /usr/local//usr/local/share/gambas3/info/phControls3.list make[1]: Nothing to be done for `install-data-am'. make[1]: Leaving directory `/home/bb/test_gb3packages/phControls3-0.0' The target paths appear to be meaningless, e.g. "/usr/local//usr/local/lib/gambas3" After a bit more hacking I see: Command 1 is: /usr/bin/install -c -d /usr/local//usr/local/lib/gambas3 Command 1 code is $(INSTALL) -d $(DESTDIR)$(prefix)/$(GBLIBRARY_path) INSTALL is /usr/bin/install -c DESTDIR is prefix is /usr/local GBLIBRARY_path is /usr/local/lib/gambas3 So the actual code for the first command should be " $(INSTALL) -d $(GBLIBRARY_path)" (Which will just create the /usr/local/lib/gambas3 dir if it does not exist). If you point me to the place in the trunk source where the "Make Installation Package" lives I will track this down further. Oh, by the way in install the "-c" option appears to be ignored these days. Maybe just a hangover from days-gone-by? regards Bruce From rmorgan62 at ...626... Wed Nov 9 00:41:30 2011 From: rmorgan62 at ...626... (Randall Morgan) Date: Tue, 8 Nov 2011 15:41:30 -0800 Subject: [Gambas-user] GB3 Custom controls In-Reply-To: <1320794887.19962.140.camel@...2688...> References: <1320640149.19962.23.camel@...2688...> <4EB83F03.3060201@...1...> <1320710266.19962.106.camel@...2688...> <4EB87152.7080709@...1...> <1320794887.19962.140.camel@...2688...> Message-ID: I think that should be an upper case "C" which may be why it is being ignored. *nix is case sensitive. On Tue, Nov 8, 2011 at 3:28 PM, GMail wrote: > On Tue, 2011-11-08 at 01:01 +0100, Beno?t Minisini wrote: > > > Laurent Carlier made the autotools packager, and I'm not sure that is > > supports packaging components. Can you try with a true binary package? > > > > -- > > Beno?t Minisini > > > Good morning Beno?t, (and any others watching) > > re the automake scripts: > > I have hacked the Makefile generated from the install package to echo > each command before it is executed when "make install" is run. > First up there is definitely code intended for handling Components. > But there appears to be a bug in the target paths. > Here is the output: > > make[1]: Entering directory `/home/bb/test_gb3packages/phControls3-0.0' > make install IS using hacked Makefile script > Installing phControls3.gambas in /usr/local/lib/gambas3 > Command 1 is: /usr/bin/install -c -d /usr/local//usr/local/lib/gambas3 > Command 2 is : /usr/bin/install -c > phControls3.gambas /usr/local//usr/local/lib/gambas3 > Installing phControls3.component in /usr/local/lib/gambas3 > Command 3 is : /usr/bin/install -c -d /usr/local//usr/local/lib/gambas3 > Command 4 is : /usr/bin/install > -c .component /usr/local//usr/local/lib/gambas3/ > Command 5 is : chmod > a-x /usr/local//usr/local/lib/gambas3/phControls3.component > Installing phControls3.info in /usr/local/share/gambas3/info > Command 6 is : /usr/bin/install -c > -d .info /usr/local//usr/local/share/gambas3/info > /usr/bin/install: cannot create directory `.info': File exists > Command 7 is : /usr/bin/install > -c .info /usr/local//usr/local/share/gambas3/info/phControls3.info > Command 8 is :chmod > a-x /usr/local//usr/local/share/gambas3/info/phControls3.info > Installing phControls3.list in /usr/local/share/gambas3/info > Command 9 is : /usr/bin/install > -c .list /usr/local//usr/local/share/gambas3/info/phControls3.list > Command 10 is : chmod > a-x /usr/local//usr/local/share/gambas3/info/phControls3.list > make[1]: Nothing to be done for `install-data-am'. > make[1]: Leaving directory `/home/bb/test_gb3packages/phControls3-0.0' > > The target paths appear to be meaningless, e.g. > "/usr/local//usr/local/lib/gambas3" > After a bit more hacking I see: > > Command 1 is: /usr/bin/install -c -d /usr/local//usr/local/lib/gambas3 > Command 1 code is $(INSTALL) -d $(DESTDIR)$(prefix)/$(GBLIBRARY_path) > INSTALL is /usr/bin/install -c > DESTDIR is > prefix is /usr/local > GBLIBRARY_path is /usr/local/lib/gambas3 > > So the actual code for the first command should be " $(INSTALL) -d > $(GBLIBRARY_path)" > (Which will just create the /usr/local/lib/gambas3 dir if it does not > exist). > > If you point me to the place in the trunk source where the "Make > Installation Package" lives I will track this down further. > > Oh, by the way in install the "-c" option appears to be ignored these > days. Maybe just a hangover from days-gone-by? > > regards > Bruce > > > > ------------------------------------------------------------------------------ > RSA(R) Conference 2012 > Save $700 by Nov 18 > Register now > http://p.sf.net/sfu/rsa-sfdev2dev1 > _______________________________________________ > 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 bbruen at ...2308... Wed Nov 9 01:20:19 2011 From: bbruen at ...2308... (Bruce Bruen) Date: Wed, 09 Nov 2011 10:50:19 +1030 Subject: [Gambas-user] GB3 Custom controls In-Reply-To: References: <1320640149.19962.23.camel@...2688...> <4EB83F03.3060201@...1...> <1320710266.19962.106.camel@...2688...> <4EB87152.7080709@...1...> <1320794887.19962.140.camel@...2688...> Message-ID: <1320798019.19962.143.camel@...2688...> On Tue, 2011-11-08 at 15:41 -0800, Randall Morgan wrote: > I think that should be an upper case "C" which may be why it is being > ignored. *nix is case sensitive. > Oops, I wasn't being clear enough. > > Oh, by the way in install the "-c" option appears to be ignored these > > days. Maybe just a hangover from days-gone-by? > > > > regards > > Bruce "install" in the above refers to the ELF /usr/bin/install which is called by make (when you issue the "make install" command). I was not talking about "./configure -C" Bruce From gambas at ...2524... Wed Nov 9 04:07:37 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Wed, 09 Nov 2011 03:07:37 +0000 Subject: [Gambas-user] Issue 143 in gambas: Changes for automake for GB3 Message-ID: <0-6813199134517018827-588645384737477774-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 143 by adamn... at ...626...: Changes for automake for GB3 http://code.google.com/p/gambas/issues/detail?id=143 1) Describe the problem. Benoit, I have tracked down two problems with the automake scripts generated by Make Installation Package for automake for components. a) changing of the location of the icon Control directory to .hidden has not been carried through to the scripts. The diff is in diff1.txt attached. This change is mandatory. b) as noted in my forum post, the paths generated by the scripts are incorrect. For my "distro", which I believe uses a common layout the diff needed is in diff2 attached. This one should be checked before committing. Is the chap who wrote the originals available? regards Bruce 2) GIVE THE FOLLOWING INFORMATIONS (if they are appropriate): Version: TRUNK Revision: whatever - recent Operating system: Linux Distribution: mine Architecture: x86 GUI component: QT4 / GTK+ Desktop used: LXDE (irrelevant here) 3) Provide a little project that reproduces the bug or the crash. n/a 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. n/a Attachments: diff1.txt 869 bytes diff2.txt 3.2 KB From bbruen at ...2308... Wed Nov 9 04:39:35 2011 From: bbruen at ...2308... (Bruce Bruen) Date: Wed, 09 Nov 2011 14:09:35 +1030 Subject: [Gambas-user] Setting a controls Font back to "Normal" in a frame Message-ID: <1320809975.19962.148.camel@...2688...> Setting the font property in a Frame control changes the fonts of all the contained controls. AAAAARRGH! I just want to make the frame title bold. However, try what I may, I can't find a way to set the contained controls back to the Normal mode. I can underline them, change the Font itself, the size etc but as soon as I change the font name back to the same as the frame they all go bold again. Any clues? Bruce From admhardsoft at ...253... Wed Nov 9 05:04:42 2011 From: admhardsoft at ...253... (=?iso-8859-1?Q?Tom=E1s_Rodriguez?=) Date: Tue, 8 Nov 2011 20:04:42 -0800 (PST) Subject: [Gambas-user] This Kit changed all my life! Message-ID: <1320811482.31373.androidMobile@...2713...>

Hola!
nobody was much help to me I decided to just dive right into this ive finally reached the top you are cut out for this
http://pt.aragornsystems.com/JonathanGordon11.html
see you later

From gambas at ...2524... Wed Nov 9 10:02:02 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Wed, 09 Nov 2011 09:02:02 +0000 Subject: [Gambas-user] Issue 144 in gambas: GB3 Context menu paste into a maskbox illegally Message-ID: <0-6813199134517018827-3603198277878161993-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 144 by adamn... at ...626...: GB3 Context menu paste into a maskbox illegally http://code.google.com/p/gambas/issues/detail?id=144 1) Describe the problem. By using the context menu Paste in a MaskBox, the mask "laws" are broken and application aborts. 2) GIVE THE FOLLOWING INFORMATIONS (if they are appropriate): Version: TRUNK Revision: Somewhere recent Operating system: Linux Distribution: mine Architecture: x86 GUI component: QT4 / GTK+ Desktop used: LXDE 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. a) In the IDE i) Run the project ii) Use the context menu to Copy the contents of the TextBox iii) Right click on the MaskBox and Paste ===> Out of bounds error b) Running the executable i) Make Executable and run it ii) Repeat above ==> Uh oh. 6) Suggest either a lot of effort in mask handling :-( or getting rid of the Paste option in the MaskBox context menu. By the way, this doesn't happen with Ctrl+C/Ctrl+V Attachments: maskpaste-0.0.3.tar.gz 5.1 KB From rterry at ...1823... Wed Nov 9 22:23:21 2011 From: rterry at ...1823... (richard terry) Date: Thu, 10 Nov 2011 08:23:21 +1100 Subject: [Gambas-user] Weird non firing textbox_keypress event - a clue In-Reply-To: <4EB5C70B.3010906@...1...> References: <201111031507.59537.rterry@...1823...> <201111061021.42024.rterry@...1823...> <4EB5C70B.3010906@...1...> Message-ID: <201111100823.21511.rterry@...1823...> On Sunday 06 November 2011 10:30:19 Beno?t Minisini wrote: > Le 06/11/2011 00:21, richard terry a ?crit : > > On Sunday 06 November 2011 05:35:17 Beno?t Minisini wrote: > >> Le 04/11/2011 08:51, richard terry a ?crit : > >>> On Thursday 03 November 2011 19:04:52 Beno?t Minisini wrote: > >>> > >>> Benoit, > >>> > >>> I checked all my machines (I've 5 machines in my surgery running EasyGP > >>> and gambas networked). > >>> > >>> There was (by luck) one machine in the office I'd not updated gambas - > >>> it was stuck on version 4152 (kubuntu 10). > >>> > >>> I rolled back the version of gambas on a machine where the > >>> textbox_keypress event was not firing (gambas version = 4205 kubuntu > >>> 10) to version 4152> re- compiled and it now works. Ditto, I just > >>> rolled it back to 4152 from my latest gambas version on my laptop > >>> (kubuntu 9.0)> now works - the event fires. > >>> > >>> Not sure how to proceed with this. I guess I could just 'go up some > >>> versions' and try and track which one causes problems > >>> > >>> Anway, getting late, been at work now 11.5 hours!!!! so am going home. > >>> > >>> Regards > >>> > >>> richard > >> > >> I can't help you if you don't give any source code. > >> > >> Regards, > > > > That would be extremely complex Benoit unfortunately, as you'd have to > > build out entire database, set up the database, have downloaded HL7 and > > scanned pdf's to file in the inbox. > > > > Unless you could tell me how to dump something which would help you in > > its current state? > > You should try to isolate the problem, as your description is not clear > enough. > > There were changes recently in keyboard event management so that the > form keypress event handler always get the keyboard events before any > control located in that form. > > But without seeing what you are doing exactly with your keypress event > handlers, I can't know if this is related, and how. > > Regards, Hi Benoit, I find the problem in my code - so it is at my end - whatever changes you made obviously precipitated it. The text box on the form not firing was embedded in a form which itself was embedded in anther form and I'd some time ago been tinkering with the form_key_press to detect ctrl key combinations and I had a stop event in there which caused the grief. I've upgraded to the latest svn. Richard From dag.jarle.johansen at ...626... Wed Nov 9 23:08:35 2011 From: dag.jarle.johansen at ...626... (Dag-Jarle Johansen) Date: Wed, 9 Nov 2011 23:08:35 +0100 Subject: [Gambas-user] something to do In-Reply-To: <201111080808.45259.rterry@...1823...> References: <201111080808.45259.rterry@...1823...> Message-ID: Hi Richard, sounds good. I will need some time to tune my system and so on, then next download the svn. You will hear from me soon Greetings, Dag-Jarle 2011/11/7 richard terry > On Tuesday 08 November 2011 05:42:38 Dag-Jarle Johansen wrote: > > Hi all of you. > > > > I am not very happy with my life at this time. I have a lot time to > spare, > > but I am neither a C- nor anything-else-programmer - just VB - > > old-fashonied. And a little Gambas of course. If I can be any help > > anywhere, tell me, I would like to help were I can- My favourites are > > spedition, logistigs, what you need to survive in a little or middle > > company (billings, orders and so on) > > > > Great > > DJJ > > > --------------------------------------------------------------------------- > > --- RSA(R) Conference 2012 > > Save $700 by Nov 18 > > Register now > > http://p.sf.net/sfu/rsa-sfdev2dev1 > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > Ah, just the project for you - join easy gp.... medical records project > (currently for Australia but could be internationalised). Still a long... > way > to go but functional. > > You can download the svn. > > svn co svn://ozdocit.org/easygp > > It would take quite a bit to get going as we've not dumped the database for > eons, but if anyone is really interested we could do so. > > Ian Haywood is just about to start on billing. > > Regards > > Richard > > > ------------------------------------------------------------------------------ > RSA(R) Conference 2012 > Save $700 by Nov 18 > Register now > http://p.sf.net/sfu/rsa-sfdev2dev1 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From dag.jarle.johansen at ...626... Wed Nov 9 23:11:01 2011 From: dag.jarle.johansen at ...626... (Dag-Jarle Johansen) Date: Wed, 9 Nov 2011 23:11:01 +0100 Subject: [Gambas-user] something to do In-Reply-To: References: Message-ID: Fabien, sounds like a tittle challenge, but what would life be without them. It seems now, already have enough to care about :-) Greetings, Daa-Jarle 2011/11/7 Fabien Bodard > Well Gambas knwo how to import cvs :-) > > > Just use the connexion > You must for that select the gb.db component > then right click on connexion and add a new connexion to a sgdbr > then select import > > I must prvent you ... gb.report is not a standart report generator ... > it's a frame style one ... so you must to study how it work. > > It's really different than the sections report generator. It's like > using containers in Ide. > > And when you select gb.report in components, the ide allow you to > create reports... like forms. But for the time report filling must be > doing by hand. There is an example in the Gambas3 examples. And many > bugs to resolve :) > > > ------------------------------------------------------------------------------ > RSA(R) Conference 2012 > Save $700 by Nov 18 > Register now > http://p.sf.net/sfu/rsa-sfdev2dev1 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From rterry at ...1823... Wed Nov 9 23:45:00 2011 From: rterry at ...1823... (richard terry) Date: Thu, 10 Nov 2011 09:45:00 +1100 Subject: [Gambas-user] something to do In-Reply-To: References: <201111080808.45259.rterry@...1823...> Message-ID: <201111100945.00580.rterry@...1823...> On Thursday 10 November 2011 09:08:35 Dag-Jarle Johansen wrote: > Hi Richard, > > sounds good. > > I will need some time to tune my system and so on, then next download the > svn. > You will hear from me soon Let me know, it will take a bit of doing to build the database, the wizard is old and you'd need to do some manual stuff. I did send some instructions to someone else on our list on how to get it going. I did this myself the other night - only 1 current problem the icD10 codes were not installed I'll take a look. I'll send you the email I sent to john to help him build the database. What would be really cool to start would be get the database building scripts and install wizard working so that others could join in. Richard > > Greetings, > Dag-Jarle > > 2011/11/7 richard terry > > > On Tuesday 08 November 2011 05:42:38 Dag-Jarle Johansen wrote: > > > Hi all of you. > > > > > > I am not very happy with my life at this time. I have a lot time to > > > > spare, > > > > > but I am neither a C- nor anything-else-programmer - just VB - > > > old-fashonied. And a little Gambas of course. If I can be any help > > > anywhere, tell me, I would like to help were I can- My favourites are > > > spedition, logistigs, what you need to survive in a little or middle > > > company (billings, orders and so on) > > > > > > Great > > > DJJ > > > > ------------------------------------------------------------------------- > >-- > > > > > --- RSA(R) Conference 2012 > > > Save $700 by Nov 18 > > > Register now > > > http://p.sf.net/sfu/rsa-sfdev2dev1 > > > _______________________________________________ > > > Gambas-user mailing list > > > Gambas-user at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > Ah, just the project for you - join easy gp.... medical records project > > (currently for Australia but could be internationalised). Still a long... > > way > > to go but functional. > > > > You can download the svn. > > > > svn co svn://ozdocit.org/easygp > > > > It would take quite a bit to get going as we've not dumped the database > > for eons, but if anyone is really interested we could do so. > > > > Ian Haywood is just about to start on billing. > > > > Regards > > > > Richard > > > > > > ------------------------------------------------------------------------- > >----- RSA(R) Conference 2012 > > Save $700 by Nov 18 > > Register now > > http://p.sf.net/sfu/rsa-sfdev2dev1 > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > --------------------------------------------------------------------------- > --- RSA(R) Conference 2012 > Save $700 by Nov 18 > Register now > http://p.sf.net/sfu/rsa-sfdev2dev1 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...2524... Thu Nov 10 00:35:59 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Wed, 09 Nov 2011 23:35:59 +0000 Subject: [Gambas-user] Issue 141 in gambas: Default/Case Else can be executed even if it matched a Case in a Select Statement. In-Reply-To: <0-6813199134517018827-1899680364634353539-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-1899680364634353539-gambas=googlecode.com@...2524...> Message-ID: <1-6813199134517018827-1899680364634353539-gambas=googlecode.com@...2524...> Updates: Status: Accepted Labels: -Version Version-TRUNK Comment #1 on issue 141 by benoit.m... at ...626...: Default/Case Else can be executed even if it matched a Case in a Select Statement. http://code.google.com/p/gambas/issues/detail?id=141 (No comment was entered for this change.) From gambas at ...2524... Thu Nov 10 02:52:16 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Thu, 10 Nov 2011 01:52:16 +0000 Subject: [Gambas-user] Issue 140 in gambas: Optional argument parser not good enough. In-Reply-To: <0-6813199134517018827-5036567284073029207-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-5036567284073029207-gambas=googlecode.com@...2524...> Message-ID: <1-6813199134517018827-5036567284073029207-gambas=googlecode.com@...2524...> Updates: Status: Accepted Labels: -Version Version-TRUNK Comment #1 on issue 140 by benoit.m... at ...626...: Optional argument parser not good enough. http://code.google.com/p/gambas/issues/detail?id=140 (No comment was entered for this change.) From gambas at ...2524... Thu Nov 10 02:56:22 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Thu, 10 Nov 2011 01:56:22 +0000 Subject: [Gambas-user] Issue 140 in gambas: Optional argument parser not good enough. In-Reply-To: <1-6813199134517018827-5036567284073029207-gambas=googlecode.com@...2524...> References: <1-6813199134517018827-5036567284073029207-gambas=googlecode.com@...2524...> <0-6813199134517018827-5036567284073029207-gambas=googlecode.com@...2524...> Message-ID: <2-6813199134517018827-5036567284073029207-gambas=googlecode.com@...2524...> Updates: Status: Fixed Comment #2 on issue 140 by benoit.m... at ...626...: Optional argument parser not good enough. http://code.google.com/p/gambas/issues/detail?id=140 Fixed in revision #4238. From gambas at ...2524... Thu Nov 10 10:47:31 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Thu, 10 Nov 2011 09:47:31 +0000 Subject: [Gambas-user] Issue 145 in gambas: SIGSEGV (#11) Message-ID: <0-6813199134517018827-4991766879890075589-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 145 by geniv.radek at ...626...: SIGSEGV (#11) http://code.google.com/p/gambas/issues/detail?id=145 1) if translate any project. I write any char and then several squeezed button Backspace. Gambas crashed with signal #11. 2) [System] OperatingSystem=Linux Kernel=2.6.32-35-generic Architecture=i686 Memory=2052408 kB DistributionVendor=Ubuntu DistributionRelease="Ubuntu 10.04.3 LTS" Desktop=Gnome [Gambas 2] Version=2.22.0 Path=/usr/local/bin/gbx2 [Gambas 3] Version=2.99.6 Path=/usr/local/bin/gbx3 [Libraries] Qt4=libQtCore.so.4.6.2 GTK+=libgtk-x11-2.0.so.0.2000.1 From gambas at ...2524... Thu Nov 10 10:54:38 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Thu, 10 Nov 2011 09:54:38 +0000 Subject: [Gambas-user] Issue 145 in gambas: SIGSEGV (#11) In-Reply-To: <0-6813199134517018827-4991766879890075589-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-4991766879890075589-gambas=googlecode.com@...2524...> Message-ID: <1-6813199134517018827-4991766879890075589-gambas=googlecode.com@...2524...> Updates: Status: NeedsInfo Labels: -Version -Type-Bug Version-TRUNK Type-Crash Comment #1 on issue 145 by benoit.m... at ...626...: SIGSEGV (#11) http://code.google.com/p/gambas/issues/detail?id=145 Please provide a project that allows me to reproduce the bug AND/OR proceed as explained on the "reporting a problem" page on the web site to get information about the crash. From gambas at ...2524... Thu Nov 10 10:58:40 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Thu, 10 Nov 2011 09:58:40 +0000 Subject: [Gambas-user] Issue 144 in gambas: GB3 Context menu paste into a maskbox illegally In-Reply-To: <0-6813199134517018827-3603198277878161993-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-3603198277878161993-gambas=googlecode.com@...2524...> Message-ID: <1-6813199134517018827-3603198277878161993-gambas=googlecode.com@...2524...> Updates: Status: Accepted Labels: -Version Version-TRUNK Comment #1 on issue 144 by benoit.m... at ...626...: GB3 Context menu paste into a maskbox illegally http://code.google.com/p/gambas/issues/detail?id=144 (No comment was entered for this change.) From gambas at ...2524... Thu Nov 10 11:09:50 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Thu, 10 Nov 2011 10:09:50 +0000 Subject: [Gambas-user] Issue 141 in gambas: Default/Case Else can be executed even if it matched a Case in a Select Statement. In-Reply-To: <1-6813199134517018827-1899680364634353539-gambas=googlecode.com@...2524...> References: <1-6813199134517018827-1899680364634353539-gambas=googlecode.com@...2524...> <0-6813199134517018827-1899680364634353539-gambas=googlecode.com@...2524...> Message-ID: <2-6813199134517018827-1899680364634353539-gambas=googlecode.com@...2524...> Comment #2 on issue 141 by benoit.m... at ...626...: Default/Case Else can be executed even if it matched a Case in a Select Statement. http://code.google.com/p/gambas/issues/detail?id=141 Fixed in revision #4239. From gambas at ...2524... Thu Nov 10 11:13:56 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Thu, 10 Nov 2011 10:13:56 +0000 Subject: [Gambas-user] Issue 141 in gambas: Default/Case Else can be executed even if it matched a Case in a Select Statement. In-Reply-To: <2-6813199134517018827-1899680364634353539-gambas=googlecode.com@...2524...> References: <2-6813199134517018827-1899680364634353539-gambas=googlecode.com@...2524...> <0-6813199134517018827-1899680364634353539-gambas=googlecode.com@...2524...> Message-ID: <3-6813199134517018827-1899680364634353539-gambas=googlecode.com@...2524...> Updates: Status: Fixed Comment #3 on issue 141 by benoit.m... at ...626...: Default/Case Else can be executed even if it matched a Case in a Select Statement. http://code.google.com/p/gambas/issues/detail?id=141 (No comment was entered for this change.) From gambas at ...2524... Thu Nov 10 11:18:04 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Thu, 10 Nov 2011 10:18:04 +0000 Subject: [Gambas-user] Issue 143 in gambas: Changes for automake for GB3 In-Reply-To: <0-6813199134517018827-588645384737477774-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-588645384737477774-gambas=googlecode.com@...2524...> Message-ID: <1-6813199134517018827-588645384737477774-gambas=googlecode.com@...2524...> Updates: Status: Accepted Labels: -Version Version-TRUNK Comment #1 on issue 143 by benoit.m... at ...626...: Changes for automake for GB3 http://code.google.com/p/gambas/issues/detail?id=143 (No comment was entered for this change.) From gambas at ...2524... Thu Nov 10 11:22:07 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Thu, 10 Nov 2011 10:22:07 +0000 Subject: [Gambas-user] Issue 143 in gambas: Changes for automake for GB3 In-Reply-To: <1-6813199134517018827-588645384737477774-gambas=googlecode.com@...2524...> References: <1-6813199134517018827-588645384737477774-gambas=googlecode.com@...2524...> <0-6813199134517018827-588645384737477774-gambas=googlecode.com@...2524...> Message-ID: <2-6813199134517018827-588645384737477774-gambas=googlecode.com@...2524...> Comment #2 on issue 143 by benoit.m... at ...626...: Changes for automake for GB3 http://code.google.com/p/gambas/issues/detail?id=143 The first diff will be merge. As for the second, I'm not sure at the moment, I must investigate... You should have created two issues for the two problems! From gambas at ...2524... Thu Nov 10 11:31:16 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Thu, 10 Nov 2011 10:31:16 +0000 Subject: [Gambas-user] Issue 145 in gambas: SIGSEGV (#11) In-Reply-To: <1-6813199134517018827-4991766879890075589-gambas=googlecode.com@...2524...> References: <1-6813199134517018827-4991766879890075589-gambas=googlecode.com@...2524...> <0-6813199134517018827-4991766879890075589-gambas=googlecode.com@...2524...> Message-ID: <2-6813199134517018827-4991766879890075589-gambas=googlecode.com@...2524...> Comment #2 on issue 145 by geniv.radek at ...626...: SIGSEGV (#11) http://code.google.com/p/gambas/issues/detail?id=145 eg project gambas... From gambas at ...2524... Thu Nov 10 11:36:23 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Thu, 10 Nov 2011 10:36:23 +0000 Subject: [Gambas-user] Issue 145 in gambas: SIGSEGV (#11) In-Reply-To: <2-6813199134517018827-4991766879890075589-gambas=googlecode.com@...2524...> References: <2-6813199134517018827-4991766879890075589-gambas=googlecode.com@...2524...> <0-6813199134517018827-4991766879890075589-gambas=googlecode.com@...2524...> Message-ID: <3-6813199134517018827-4991766879890075589-gambas=googlecode.com@...2524...> Comment #3 on issue 145 by benoit.m... at ...626...: SIGSEGV (#11) http://code.google.com/p/gambas/issues/detail?id=145 I cannot reproduce the crash with the IDE project, so I need you to make a project that crashes on your machine. And as I think that it won't crash on mine, can you proceed as explained on the "report a problem" web page to get a crash backtrace? Thanks in advance! From gambas at ...2524... Thu Nov 10 21:23:04 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Thu, 10 Nov 2011 20:23:04 +0000 Subject: [Gambas-user] Issue 146 in gambas: Gambas 3 r4239 doesn't compile Message-ID: <0-6813199134517018827-15994205856403329273-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 146 by jussi.la... at ...626...: Gambas 3 r4239 doesn't compile http://code.google.com/p/gambas/issues/detail?id=146 1) Describe the problem. Gambas 3 r4239 doesn't compile 2) GIVE THE FOLLOWING INFORMATIONS (if they are appropriate): Version: TRUNK Revision: r4239 Operating system: Linux Distribution: Xubuntu Architecture: x86_64 Desktop used: XFCE 5) Explain clearly how to reproduce the bug or the crash. || || Unable to compile gb.form || Unable to compile gb.form.dialog || Unable to compile gb.form.mdi || Unable to compile gb.db.form || Unable to compile gb.report || Unable to compile gb.chart || Unable to compile gambas3 || See compile.log for details. Attachments: compile.log.tar.gz 43.7 KB From gambas at ...2524... Thu Nov 10 21:30:15 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Thu, 10 Nov 2011 20:30:15 +0000 Subject: [Gambas-user] Issue 146 in gambas: Gambas 3 r4239 doesn't compile In-Reply-To: <0-6813199134517018827-15994205856403329273-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-15994205856403329273-gambas=googlecode.com@...2524...> Message-ID: <1-6813199134517018827-15994205856403329273-gambas=googlecode.com@...2524...> Comment #1 on issue 146 by jussi.la... at ...626...: Gambas 3 r4239 doesn't compile http://code.google.com/p/gambas/issues/detail?id=146 From logs: Compiling gb.form... FMain.class:8: error: Unknown identifier: SpinBox1 From gambas at ...2524... Thu Nov 10 21:34:18 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Thu, 10 Nov 2011 20:34:18 +0000 Subject: [Gambas-user] Issue 146 in gambas: Gambas 3 r4239 doesn't compile In-Reply-To: <1-6813199134517018827-15994205856403329273-gambas=googlecode.com@...2524...> References: <1-6813199134517018827-15994205856403329273-gambas=googlecode.com@...2524...> <0-6813199134517018827-15994205856403329273-gambas=googlecode.com@...2524...> Message-ID: <2-6813199134517018827-15994205856403329273-gambas=googlecode.com@...2524...> Updates: Status: Fixed Labels: -Version Version-TRUNK Comment #2 on issue 146 by benoit.m... at ...626...: Gambas 3 r4239 doesn't compile http://code.google.com/p/gambas/issues/detail?id=146 Fixed in revision #4240. From gambas.fr at ...626... Thu Nov 10 21:38:59 2011 From: gambas.fr at ...626... (Fabien Bodard) Date: Thu, 10 Nov 2011 21:38:59 +0100 Subject: [Gambas-user] something to do In-Reply-To: <201111100945.00580.rterry@...1823...> References: <201111080808.45259.rterry@...1823...> <201111100945.00580.rterry@...1823...> Message-ID: Well gambas3 is a good thing for you Richard ... what an enormous project !!! ... From jussi.lahtinen at ...626... Thu Nov 10 21:49:16 2011 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Thu, 10 Nov 2011 22:49:16 +0200 Subject: [Gambas-user] Issue 140 in gambas: Optional argument parser not good enough. In-Reply-To: <2-6813199134517018827-5036567284073029207-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-5036567284073029207-gambas=googlecode.com@...2524...> <1-6813199134517018827-5036567284073029207-gambas=googlecode.com@...2524...> <2-6813199134517018827-5036567284073029207-gambas=googlecode.com@...2524...> Message-ID: Still not completely OK. Public Sub Func(Optional i As Integer = Func2()) Yields error message: Unknown identifier, if Func2 is declared to have also optional argument. Jussi On Thu, Nov 10, 2011 at 03:56, wrote: > Updates: > Status: Fixed > > Comment #2 on issue 140 by benoit.m... at ...626...: Optional argument parser > not good enough. > http://code.google.com/p/gambas/issues/detail?id=140 > > Fixed in revision #4238. > > > > ------------------------------------------------------------------------------ > RSA(R) Conference 2012 > Save $700 by Nov 18 > Register now > http://p.sf.net/sfu/rsa-sfdev2dev1 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From rterry at ...1823... Thu Nov 10 22:26:03 2011 From: rterry at ...1823... (richard terry) Date: Fri, 11 Nov 2011 08:26:03 +1100 Subject: [Gambas-user] something to do In-Reply-To: References: <201111100945.00580.rterry@...1823...> Message-ID: <201111110826.03378.rterry@...1823...> On Friday 11 November 2011 07:38:59 Fabien Bodard wrote: > Well gambas3 is a good thing for you Richard ... what an enormous > project !!! ... > > --------------------------------------------------------------------------- > --- RSA(R) Conference 2012 > Save $700 by Nov 18 > Register now > http://p.sf.net/sfu/rsa-sfdev2dev1 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > did you download the svn and take a look? From gambas.fr at ...626... Thu Nov 10 23:00:45 2011 From: gambas.fr at ...626... (Fabien Bodard) Date: Thu, 10 Nov 2011 23:00:45 +0100 Subject: [Gambas-user] something to do In-Reply-To: <201111110826.03378.rterry@...1823...> References: <201111100945.00580.rterry@...1823...> <201111110826.03378.rterry@...1823...> Message-ID: 2011/11/10 richard terry : > On Friday 11 November 2011 07:38:59 Fabien Bodard wrote: >> Well gambas3 is a good thing for you Richard ... what an enormous >> project !!! ... >> >> --------------------------------------------------------------------------- >> --- RSA(R) Conference 2012 >> Save $700 by Nov 18 >> Register now >> http://p.sf.net/sfu/rsa-sfdev2dev1 >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > did you download the svn and take a look? of course :)... i'm curious From jacontreras at ...2715... Fri Nov 11 04:57:31 2011 From: jacontreras at ...2715... (Avenger) Date: Thu, 10 Nov 2011 19:57:31 -0800 (PST) Subject: [Gambas-user] Please help me Message-ID: <32823502.post@...1379...> Hi, I made my gambas2 project but somebody stole my computer and backup it i only have the .gambas file, Is there any way to decompile that project and recover my source code? Thank you very much. -- View this message in context: http://old.nabble.com/Please-help-me-tp32823502p32823502.html Sent from the gambas-user mailing list archive at Nabble.com. From gambas.fr at ...626... Fri Nov 11 06:08:26 2011 From: gambas.fr at ...626... (Fabien Bodard) Date: Fri, 11 Nov 2011 06:08:26 +0100 Subject: [Gambas-user] Please help me In-Reply-To: <32823502.post@...1379...> References: <32823502.post@...1379...> Message-ID: 2011/11/11 Avenger : > > Hi, I made my gambas2 project but somebody stole my computer and backup it i > only have the .gambas file, Is there any way to decompile that project and > recover my source code? Yes, but no :) there is no existing tools to do that, but technically it's possible. > > Thank you very much. > > > -- > View this message in context: http://old.nabble.com/Please-help-me-tp32823502p32823502.html > Sent from the gambas-user mailing list archive at Nabble.com. > > > ------------------------------------------------------------------------------ > RSA(R) Conference 2012 > Save $700 by Nov 18 > Register now > http://p.sf.net/sfu/rsa-sfdev2dev1 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Fabien Bodard From rterry at ...1823... Fri Nov 11 07:40:59 2011 From: rterry at ...1823... (richard terry) Date: Fri, 11 Nov 2011 17:40:59 +1100 Subject: [Gambas-user] something to do In-Reply-To: References: <201111110826.03378.rterry@...1823...> Message-ID: <201111111740.59800.rterry@...1823...> On Friday 11 November 2011 09:00:45 Fabien Bodard wrote: > 2011/11/10 richard terry : > > On Friday 11 November 2011 07:38:59 Fabien Bodard wrote: > >> Well gambas3 is a good thing for you Richard ... what an enormous > >> project !!! ... > >> > >> ------------------------------------------------------------------------ > >>--- --- RSA(R) Conference 2012 > >> Save $700 by Nov 18 > >> Register now > >> http://p.sf.net/sfu/rsa-sfdev2dev1 > >> _______________________________________________ > >> Gambas-user mailing list > >> Gambas-user at lists.sourceforge.net > >> https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > did you download the svn and take a look? > > of course :)... i'm curious A tribute to gambas and its makers. I'm a pretty shitty programmer and its still work in progress, but getting there ... slowly..... would be nice to have others in the project. Ian Haywood on the other hand write good code but time has prevented him doing much richard > --------------------------------------------------------------------------- > --- RSA(R) Conference 2012 > Save $700 by Nov 18 > Register now > http://p.sf.net/sfu/rsa-sfdev2dev1 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From ron at ...1740... Fri Nov 11 09:20:46 2011 From: ron at ...1740... (Ron) Date: Fri, 11 Nov 2011 09:20:46 +0100 Subject: [Gambas-user] vb ENUMS Message-ID: <4EBCDADE.9050104@...1740...> I'm porting a vb project and it uses a lot of ENUM definitions, I cannot find a similar way to use them in Gambas2/3. They get referred to with: SECURITY2.packettype ENUM SECURITY2 AS Integer packetlength = 0 packettype = 1 subtype = 2 seqnbr = 3 id1 = 4 id2 = 5 id3 = 6 status = 7 END ENUM Any pointers or ideas? Regards, Ron_2nd. From gambas.fr at ...626... Fri Nov 11 09:36:54 2011 From: gambas.fr at ...626... (Fabien Bodard) Date: Fri, 11 Nov 2011 09:36:54 +0100 Subject: [Gambas-user] something to do In-Reply-To: <201111111740.59800.rterry@...1823...> References: <201111110826.03378.rterry@...1823...> <201111111740.59800.rterry@...1823...> Message-ID: 2011/11/11 richard terry : > On Friday 11 November 2011 09:00:45 Fabien Bodard wrote: >> 2011/11/10 richard terry : >> > On Friday 11 November 2011 07:38:59 Fabien Bodard wrote: >> >> Well gambas3 is a good thing for you Richard ... what an enormous >> >> project !!! ... >> >> >> >> ------------------------------------------------------------------------ >> >>--- --- RSA(R) Conference 2012 >> >> Save $700 by Nov 18 >> >> Register now >> >> http://p.sf.net/sfu/rsa-sfdev2dev1 >> >> _______________________________________________ >> >> Gambas-user mailing list >> >> Gambas-user at lists.sourceforge.net >> >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > >> > did you download the svn and take a look? >> >> of course :)... i'm curious > > A tribute to gambas and its makers. I'm a pretty shitty programmer and its > still work in progress, but getting there ... slowly..... would be nice to > have others in the project. Ian Haywood on the other hand write good code but > time has prevented him doing much i've the same problem ... i'm a winegrower, with many vine and person to manage ... so i've not many times to offert to my loved project (gambas) > > richard > >> --------------------------------------------------------------------------- >> --- RSA(R) Conference 2012 >> Save $700 by Nov 18 >> Register now >> http://p.sf.net/sfu/rsa-sfdev2dev1 >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > ------------------------------------------------------------------------------ > RSA(R) Conference 2012 > Save $700 by Nov 18 > Register now > http://p.sf.net/sfu/rsa-sfdev2dev1 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Fabien Bodard From gambas.fr at ...626... Fri Nov 11 09:40:17 2011 From: gambas.fr at ...626... (Fabien Bodard) Date: Fri, 11 Nov 2011 09:40:17 +0100 Subject: [Gambas-user] vb ENUMS In-Reply-To: <4EBCDADE.9050104@...1740...> References: <4EBCDADE.9050104@...1740...> Message-ID: yes create a class SECURITY2 public enum packetlength = 0, packettype = 1, etc actually enum is not fully implemented in gambas :/ maybe for the 4.0 2011/11/11 Ron : > I'm porting a vb project and it uses a lot of ENUM definitions, I cannot > find a similar way to use them in Gambas2/3. > > They get referred to with: > > SECURITY2.packettype > > ENUM SECURITY2 AS Integer > ? ? packetlength = 0 > ? ? packettype = 1 > ? ? subtype = 2 > ? ? seqnbr = 3 > ? ? id1 = 4 > ? ? id2 = 5 > ? ? id3 = 6 > ? ? status = 7 > END ENUM > > Any pointers or ideas? > > Regards, > Ron_2nd. > > ------------------------------------------------------------------------------ > RSA(R) Conference 2012 > Save $700 by Nov 18 > Register now > http://p.sf.net/sfu/rsa-sfdev2dev1 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Fabien Bodard From ron at ...1740... Fri Nov 11 09:59:07 2011 From: ron at ...1740... (Ron) Date: Fri, 11 Nov 2011 09:59:07 +0100 Subject: [Gambas-user] vb ENUMS In-Reply-To: References: <4EBCDADE.9050104@...1740...> Message-ID: <4EBCE3DB.6080407@...1740...> Ok, thanks! > yes create a class SECURITY2 > > public enum packetlength = 0, packettype = 1, etc > > actually enum is not fully implemented in gambas :/ maybe for the 4.0 > > 2011/11/11 Ron: >> I'm porting a vb project and it uses a lot of ENUM definitions, I cannot >> find a similar way to use them in Gambas2/3. >> >> They get referred to with: >> >> SECURITY2.packettype >> >> ENUM SECURITY2 AS Integer >> packetlength = 0 >> packettype = 1 >> subtype = 2 >> seqnbr = 3 >> id1 = 4 >> id2 = 5 >> id3 = 6 >> status = 7 >> END ENUM >> >> Any pointers or ideas? >> >> Regards, >> Ron_2nd. >> >> ------------------------------------------------------------------------------ >> RSA(R) Conference 2012 >> Save $700 by Nov 18 >> Register now >> http://p.sf.net/sfu/rsa-sfdev2dev1 >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > From eilert-sprachen at ...221... Fri Nov 11 10:04:43 2011 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Fri, 11 Nov 2011 10:04:43 +0100 Subject: [Gambas-user] vb ENUMS In-Reply-To: <4EBCE3DB.6080407@...1740...> References: <4EBCDADE.9050104@...1740...> <4EBCE3DB.6080407@...1740...> Message-ID: <4EBCE52B.8060002@...221...> I'm just curious: What are enums good for? Never heard of it... Rolf Am 11.11.2011 09:59, schrieb Ron: > Ok, thanks! > >> yes create a class SECURITY2 >> >> public enum packetlength = 0, packettype = 1, etc >> >> actually enum is not fully implemented in gambas :/ maybe for the 4.0 >> >> 2011/11/11 Ron: >>> I'm porting a vb project and it uses a lot of ENUM definitions, I cannot >>> find a similar way to use them in Gambas2/3. >>> >>> They get referred to with: >>> >>> SECURITY2.packettype >>> >>> ENUM SECURITY2 AS Integer >>> packetlength = 0 >>> packettype = 1 >>> subtype = 2 >>> seqnbr = 3 >>> id1 = 4 >>> id2 = 5 >>> id3 = 6 >>> status = 7 >>> END ENUM >>> >>> Any pointers or ideas? >>> >>> Regards, >>> Ron_2nd. >>> >>> ------------------------------------------------------------------------------ >>> RSA(R) Conference 2012 >>> Save $700 by Nov 18 >>> Register now >>> http://p.sf.net/sfu/rsa-sfdev2dev1 >>> _______________________________________________ >>> Gambas-user mailing list >>> Gambas-user at lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>> >> >> > > > ------------------------------------------------------------------------------ > RSA(R) Conference 2012 > Save $700 by Nov 18 > Register now > http://p.sf.net/sfu/rsa-sfdev2dev1 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From eilert-sprachen at ...221... Fri Nov 11 10:09:55 2011 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Fri, 11 Nov 2011 10:09:55 +0100 Subject: [Gambas-user] Counting characters Message-ID: <4EBCE663.6040300@...221...> Hi all, just a short question: Is there a function which simply counts how many times a character appears within a string? I vaguely remember a long time ago I used such a thing, but it may as well have been in another context. The only way I have found yet was using Split() and then count the number of resulting parts -1 IF it is more than 0. Any better way? Rolf From ron at ...1740... Fri Nov 11 10:15:12 2011 From: ron at ...1740... (Ron) Date: Fri, 11 Nov 2011 10:15:12 +0100 Subject: [Gambas-user] vb ENUMS In-Reply-To: <4EBCE52B.8060002@...221...> References: <4EBCDADE.9050104@...1740...> <4EBCE3DB.6080407@...1740...> <4EBCE52B.8060002@...221...> Message-ID: <4EBCE7A0.3000703@...1740...> In this project they are used to refer to byte positions in a byte[] array I think it makes it just more clear what that positions is used for. So instead of using RecBuf[1] to refer to a position, you can use RecBuf[SECURITY2.packettype] with the defined ENUM below. Regards, Ron_2nd. > I'm just curious: What are enums good for? Never heard of it... > > Rolf > > Am 11.11.2011 09:59, schrieb Ron: >> Ok, thanks! >> >>> yes create a class SECURITY2 >>> >>> public enum packetlength = 0, packettype = 1, etc >>> >>> actually enum is not fully implemented in gambas :/ maybe for the 4.0 >>> >>> 2011/11/11 Ron: >>>> I'm porting a vb project and it uses a lot of ENUM definitions, I cannot >>>> find a similar way to use them in Gambas2/3. >>>> >>>> They get referred to with: >>>> >>>> SECURITY2.packettype >>>> >>>> ENUM SECURITY2 AS Integer >>>> packetlength = 0 >>>> packettype = 1 >>>> subtype = 2 >>>> seqnbr = 3 >>>> id1 = 4 >>>> id2 = 5 >>>> id3 = 6 >>>> status = 7 >>>> END ENUM >>>> >>>> Any pointers or ideas? >>>> >>>> Regards, >>>> Ron_2nd. >>>> >>>> ------------------------------------------------------------------------------ >>>> RSA(R) Conference 2012 >>>> Save $700 by Nov 18 >>>> Register now >>>> http://p.sf.net/sfu/rsa-sfdev2dev1 >>>> _______________________________________________ >>>> Gambas-user mailing list >>>> Gambas-user at lists.sourceforge.net >>>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>>> >>> >> >> ------------------------------------------------------------------------------ >> RSA(R) Conference 2012 >> Save $700 by Nov 18 >> Register now >> http://p.sf.net/sfu/rsa-sfdev2dev1 >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > ------------------------------------------------------------------------------ > RSA(R) Conference 2012 > Save $700 by Nov 18 > Register now > http://p.sf.net/sfu/rsa-sfdev2dev1 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From eilert-sprachen at ...221... Fri Nov 11 10:58:20 2011 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Fri, 11 Nov 2011 10:58:20 +0100 Subject: [Gambas-user] vb ENUMS In-Reply-To: <4EBCE7A0.3000703@...1740...> References: <4EBCDADE.9050104@...1740...> <4EBCE3DB.6080407@...1740...> <4EBCE52B.8060002@...221...> <4EBCE7A0.3000703@...1740...> Message-ID: <4EBCF1BC.2060400@...221...> Aaah ok, I got it. Thank you! :-) Am 11.11.2011 10:15, schrieb Ron: > In this project they are used to refer to byte positions in a byte[] array > I think it makes it just more clear what that positions is used for. > > So instead of using RecBuf[1] to refer to a position, you can use > RecBuf[SECURITY2.packettype] with the defined ENUM below. > > Regards, > Ron_2nd. >> I'm just curious: What are enums good for? Never heard of it... >> >> Rolf >> >> Am 11.11.2011 09:59, schrieb Ron: >>> Ok, thanks! >>> >>>> yes create a class SECURITY2 >>>> >>>> public enum packetlength = 0, packettype = 1, etc >>>> >>>> actually enum is not fully implemented in gambas :/ maybe for the 4.0 >>>> >>>> 2011/11/11 Ron: >>>>> I'm porting a vb project and it uses a lot of ENUM definitions, I cannot >>>>> find a similar way to use them in Gambas2/3. >>>>> >>>>> They get referred to with: >>>>> >>>>> SECURITY2.packettype >>>>> >>>>> ENUM SECURITY2 AS Integer >>>>> packetlength = 0 >>>>> packettype = 1 >>>>> subtype = 2 >>>>> seqnbr = 3 >>>>> id1 = 4 >>>>> id2 = 5 >>>>> id3 = 6 >>>>> status = 7 >>>>> END ENUM >>>>> >>>>> Any pointers or ideas? >>>>> >>>>> Regards, >>>>> Ron_2nd. >>>>> >>>>> ------------------------------------------------------------------------------ >>>>> RSA(R) Conference 2012 >>>>> Save $700 by Nov 18 >>>>> Register now >>>>> http://p.sf.net/sfu/rsa-sfdev2dev1 >>>>> _______________________________________________ >>>>> Gambas-user mailing list >>>>> Gambas-user at lists.sourceforge.net >>>>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>>>> >>>> >>> >>> ------------------------------------------------------------------------------ >>> RSA(R) Conference 2012 >>> Save $700 by Nov 18 >>> Register now >>> http://p.sf.net/sfu/rsa-sfdev2dev1 >>> _______________________________________________ >>> Gambas-user mailing list >>> Gambas-user at lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>> >> >> ------------------------------------------------------------------------------ >> RSA(R) Conference 2012 >> Save $700 by Nov 18 >> Register now >> http://p.sf.net/sfu/rsa-sfdev2dev1 >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user > > > ------------------------------------------------------------------------------ > RSA(R) Conference 2012 > Save $700 by Nov 18 > Register now > http://p.sf.net/sfu/rsa-sfdev2dev1 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas.fr at ...626... Fri Nov 11 15:58:17 2011 From: gambas.fr at ...626... (Fabien Bodard) Date: Fri, 11 Nov 2011 15:58:17 +0100 Subject: [Gambas-user] Counting characters In-Reply-To: <4EBCE663.6040300@...221...> References: <4EBCE663.6040300@...221...> Message-ID: maybe with gb.pcre : regexp or Public Function CountChar(sValue as string, sChar as string) as integer dim i, iRet as integer for i =1 to len (sValue)+1 if mid(sValue,i,1)=sChar then inc iRet next return iRet end print CountChar("coucou ?a va ?", "a") $ 2 Or a super version thet remember a position: Public Function GetCharPos(sValue as string, sChar as string) as integer[] dim i as integer dim aRet as new integer[] for i =1 to len (sValue)+1 if mid(sValue,i,1)=sChar then aRet.add(i) next return aRet end print GetCharPos("Hello how are you", "e").Count 2011/11/11 Rolf-Werner Eilert : > Hi all, > > just a short question: Is there a function which simply counts how many > times a character appears within a string? I vaguely remember a long > time ago I used such a thing, but it may as well have been in another > context. > > The only way I have found yet was using Split() and then count the > number of resulting parts -1 IF it is more than 0. > > Any better way? > > Rolf > > ------------------------------------------------------------------------------ > RSA(R) Conference 2012 > Save $700 by Nov 18 > Register now > http://p.sf.net/sfu/rsa-sfdev2dev1 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Fabien Bodard From 3dwarp at ...626... Fri Nov 11 17:48:40 2011 From: 3dwarp at ...626... (JC S) Date: Fri, 11 Nov 2011 11:48:40 -0500 Subject: [Gambas-user] Getting Feedback from EXEC Message-ID: Hello all. I want to use exec to run xterm and a bash script and I want to store the returned information a some form of string. something like: EXEC ["xterm, " - hold ", " - e ", " #! / Bin / bash; MYFCpid = $(ps ux | awk '/game-engine/ && !/awk/ {print $2}'); if [[ -n $MYFCpid ]]; then ps -p $MYFCpid -o %cpu | sed -n 2p; else echo \"game-engine instance not found running.\"; fi "] This *should* return the average CPU use of game-engine as well, in the form of: " pc at ...121...$ BashScript 24 $ " Which means that it might have line terminating characters as well, eg. "\n" , but I'm not entirely sure. Thanks! From gambas at ...2524... Fri Nov 11 22:51:27 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Fri, 11 Nov 2011 21:51:27 +0000 Subject: [Gambas-user] Issue 147 in gambas: Cannot resize embedder Message-ID: <0-6813199134517018827-5757012384985182543-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 147 by joshigg... at ...626...: Cannot resize embedder http://code.google.com/p/gambas/issues/detail?id=147 Cannot resize embedder in Gambas 2.99.6 using gb.gtk or gb.qt 2) GIVE THE FOLLOWING INFORMATIONS (if they are appropriate): [System] OperatingSystem=Linux Kernel=3.0.0-12-generic Architecture=i686 Memory=2061128 kB DistributionVendor=Ubuntu DistributionRelease="Ubuntu 11.10" Desktop=LXDE [Gambas 3] Version=2.99.6 Path=/usr/bin/gbx3 5) Explain clearly how to reproduce the bug or the crash. Add an embedder to a form ;) Attached a screenshot - parameter list shows two X and two Y settings, where height and width should be. Attachments: gb embedder bug.png 63.8 KB From gambas at ...2524... Fri Nov 11 23:01:38 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Fri, 11 Nov 2011 22:01:38 +0000 Subject: [Gambas-user] Issue 148 in gambas: gb.desktop DesktopWindow.SkipTaskbar type mismatch Message-ID: <0-6813199134517018827-16186249971928347126-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 148 by joshigg... at ...626...: gb.desktop DesktopWindow.SkipTaskbar type mismatch http://code.google.com/p/gambas/issues/detail?id=148 1) Describe the problem. Using gb.desktop on gambas 2.99.6 Trying to use DesktopWindow.SkipTaskbar causes Type Mismatch error, wanted Integer got String instead 2) GIVE THE FOLLOWING INFORMATIONS (if they are appropriate): [System] OperatingSystem=Linux Kernel=3.0.0-12-generic Architecture=i686 Memory=2061128 kB DistributionVendor=Ubuntu DistributionRelease="Ubuntu 11.10" Desktop=LXDE [Gambas 3] Version=2.99.6 Path=/usr/bin/gbx3 3) Provide a little project that reproduces the bug or the crash. Dim dWindow As DesktopWindow For Each dWindow In Desktop.Windows If dWindow.SkipTaskbar = True Then Print "skip" Else Print dWindow.Name Endif Next From jacontreras at ...2715... Sat Nov 12 02:01:21 2011 From: jacontreras at ...2715... (Avenger) Date: Fri, 11 Nov 2011 17:01:21 -0800 (PST) Subject: [Gambas-user] Please help me In-Reply-To: References: <32823502.post@...1379...> Message-ID: <32829524.post@...1379...> Fabien Bodard-4 wrote: > > 2011/11/11 Avenger : >> >> Hi, I made my gambas2 project but somebody stole my computer and backup >> it i >> only have the .gambas file, Is there any way to decompile that project >> and >> recover my source code? > Yes, but no :) > > there is no existing tools to do that, but technically it's possible. > >> >> Thank you very much. >> >> >> -- >> View this message in context: >> http://old.nabble.com/Please-help-me-tp32823502p32823502.html >> Sent from the gambas-user mailing list archive at Nabble.com. >> >> >> ------------------------------------------------------------------------------ >> RSA(R) Conference 2012 >> Save $700 by Nov 18 >> Register now >> http://p.sf.net/sfu/rsa-sfdev2dev1 >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > > > -- > Fabien Bodard > > ------------------------------------------------------------------------------ > RSA(R) Conference 2012 > Save $700 by Nov 18 > Register now > http://p.sf.net/sfu/rsa-sfdev2dev1 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > Thank you Fabien, do you know a way to do that? or where i could find a way to decompile my .gambas file? Thanks again Alfonso -- View this message in context: http://old.nabble.com/Please-help-me-tp32823502p32829524.html Sent from the gambas-user mailing list archive at Nabble.com. From support at ...2529... Sat Nov 12 03:06:32 2011 From: support at ...2529... (John Spikowski) Date: Fri, 11 Nov 2011 18:06:32 -0800 Subject: [Gambas-user] Please help me In-Reply-To: <32829524.post@...1379...> References: <32823502.post@...1379...> <32829524.post@...1379...> Message-ID: <1321063592.2157.22.camel@...1833...> On Fri, 2011-11-11 at 17:01 -0800, Avenger wrote: > > Thank you Fabien, do you know a way to do that? or where i could find a way > to decompile my .gambas file? As I understand it, the .gambas file is nothing more than a compressed version of the project the extracts itself at runtime. If this is true, then there should be tool or command line switch that uncompresses the project to disk. From jacontreras at ...2715... Sat Nov 12 04:11:43 2011 From: jacontreras at ...2715... (Avenger) Date: Fri, 11 Nov 2011 19:11:43 -0800 (PST) Subject: [Gambas-user] Please help me In-Reply-To: <1321063592.2157.22.camel@...1833...> References: <32823502.post@...1379...> <32829524.post@...1379...> <1321063592.2157.22.camel@...1833...> Message-ID: <32829825.post@...1379...> John Spikowski-3 wrote: > > On Fri, 2011-11-11 at 17:01 -0800, Avenger wrote: >> > >> Thank you Fabien, do you know a way to do that? or where i could find a >> way >> to decompile my .gambas file? > > As I understand it, the .gambas file is nothing more than a compressed > version of the project the extracts itself at runtime. If this is true, > then there should be tool or command line switch that uncompresses the > project to disk. > > > ------------------------------------------------------------------------------ > RSA(R) Conference 2012 > Save $700 by Nov 18 > Register now > http://p.sf.net/sfu/rsa-sfdev2dev1 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > Any suggestions to uncompress that .gambas file John? -- View this message in context: http://old.nabble.com/Please-help-me-tp32823502p32829825.html Sent from the gambas-user mailing list archive at Nabble.com. From keithclark at ...2185... Sat Nov 12 04:38:29 2011 From: keithclark at ...2185... (Keith Clark) Date: Fri, 11 Nov 2011 22:38:29 -0500 Subject: [Gambas-user] Install Gambas 3 Message-ID: <4EBDEA35.3040905@...2185...> I'm going to install Gambas 3 on my Ubuntu 11.10 computer and was wondering if I should remove the already installed Gambas 2.2 first? Thanks, Keith From support at ...2529... Sat Nov 12 05:37:07 2011 From: support at ...2529... (John Spikowski) Date: Fri, 11 Nov 2011 20:37:07 -0800 Subject: [Gambas-user] Please help me In-Reply-To: <32829825.post@...1379...> References: <32823502.post@...1379...> <32829524.post@...1379...> <1321063592.2157.22.camel@...1833...> <32829825.post@...1379...> Message-ID: <1321072627.2157.24.camel@...1833...> On Fri, 2011-11-11 at 19:11 -0800, Avenger wrote: > Any suggestions to uncompress that .gambas file John? > Finally, the archiver is a program that creates a Gambas executable from a Gambas project directory. Note that a Gambas executable is just an uncompressed archive of a project. It can include any type of file, not just compiled bytecode, and it is internally accessed by the interpreter like a file system. > From girardhenri at ...67... Sat Nov 12 09:27:25 2011 From: girardhenri at ...67... (girardhenri at ...67...) Date: Sat, 12 Nov 2011 09:27:25 +0100 Subject: [Gambas-user] Install Gambas 3 In-Reply-To: <4EBDEA35.3040905@...2185...> References: <4EBDEA35.3040905@...2185...> Message-ID: Le 12/11/2011 04:38, Keith Clark a ?crit : > I'm going to install Gambas 3 on my Ubuntu 11.10 computer and was > wondering if I should remove the already installed Gambas 2.2 first? > > Thanks, > > Keith > > > ------------------------------------------------------------------------------ > RSA(R) Conference 2012 > Save $700 by Nov 18 > Register now > http://p.sf.net/sfu/rsa-sfdev2dev1 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > Absolutly not... Better is to add : ppa:ricotz ppa:gnome3-team Yesterday I compiled gambas3 in the next 12.4 (which is even not alpha) and everything is working fine. But I don't recommand you to do it if you are in production !! From gambas.fr at ...626... Sat Nov 12 10:20:18 2011 From: gambas.fr at ...626... (Fabien Bodard) Date: Sat, 12 Nov 2011 10:20:18 +0100 Subject: [Gambas-user] Please help me In-Reply-To: <1321072627.2157.24.camel@...1833...> References: <32823502.post@...1379...> <32829524.post@...1379...> <1321063592.2157.22.camel@...1833...> <32829825.post@...1379...> <1321072627.2157.24.camel@...1833...> Message-ID: 2011/11/12 John Spikowski : > On Fri, 2011-11-11 at 19:11 -0800, Avenger wrote: > >> Any suggestions to uncompress that .gambas file John? > >> > Finally, the archiver is a program that creates a Gambas executable from > a Gambas project directory. > > Note that a Gambas executable is just an uncompressed archive of a > project. It can include any type of file, not just compiled bytecode, > and it is internally accessed by the interpreter like a file system. not totally ,... the source are before compiled in a bytecode or opcode that why it is difficult to retreive the original source !... but not impossible ... (without all classes names or var name i think) > > > > > ------------------------------------------------------------------------------ > RSA(R) Conference 2012 > Save $700 by Nov 18 > Register now > http://p.sf.net/sfu/rsa-sfdev2dev1 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Fabien Bodard From gambas.fr at ...626... Sat Nov 12 10:31:54 2011 From: gambas.fr at ...626... (Fabien Bodard) Date: Sat, 12 Nov 2011 10:31:54 +0100 Subject: [Gambas-user] Fwd: Standart output In-Reply-To: References: Message-ID: ---------- Forwarded message ---------- From: Fabien Bodard Date: 2011/11/12 Subject: Standart output To: gambas-user at lists.sourceforge.net This is two screenshot that show pacman (arch package manager) output ... when the output is on the standart one , no problem i can read the progress bar... but if i catch the standart output and the error output the progressbar is not here ... How can i catch the progressbar ?... what is the way used by pacman to show theses bar ??? -- Fabien Bodard -- Fabien Bodard -------------- next part -------------- A non-text attachment was scrubbed... Name: Capture du 2011-11-12 10:18:15.png Type: image/png Size: 134285 bytes Desc: not available URL: From gambas.fr at ...626... Sat Nov 12 10:31:33 2011 From: gambas.fr at ...626... (Fabien Bodard) Date: Sat, 12 Nov 2011 10:31:33 +0100 Subject: [Gambas-user] Fwd: Standart output In-Reply-To: References: Message-ID: ---------- Forwarded message ---------- From: Fabien Bodard Date: 2011/11/12 Subject: Standart output To: gambas-user at lists.sourceforge.net This is two screenshot that show pacman (arch package manager) output ... when the output is on the standart one , no problem i can read the progress bar... but if i catch the standart output and the error output the progressbar is not here ... How can i catch the progressbar ?... what is the way used by pacman to show theses bar ??? -- Fabien Bodard -- Fabien Bodard -------------- next part -------------- A non-text attachment was scrubbed... Name: Capture du 2011-11-12 10:17:38.png Type: image/png Size: 134218 bytes Desc: not available URL: From Karl.Reinl at ...2345... Sat Nov 12 12:04:19 2011 From: Karl.Reinl at ...2345... (Charlie Reinl) Date: Sat, 12 Nov 2011 12:04:19 +0100 Subject: [Gambas-user] Install Gambas 3 In-Reply-To: <4EBDEA35.3040905@...2185...> References: <4EBDEA35.3040905@...2185...> Message-ID: <1321095859.6369.5.camel@...40...> Am Freitag, den 11.11.2011, 22:38 -0500 schrieb Keith Clark: > I'm going to install Gambas 3 on my Ubuntu 11.10 computer and was > wondering if I should remove the already installed Gambas 2.2 first? > Salut Keith, no problem to install, update and use the two versions on one box (I run also gambas1 on mine) -- Amicalement Charlie From gambas.fr at ...626... Sat Nov 12 12:08:09 2011 From: gambas.fr at ...626... (Fabien Bodard) Date: Sat, 12 Nov 2011 12:08:09 +0100 Subject: [Gambas-user] Standart output In-Reply-To: References: Message-ID: this is the code that produce the progressbar /* refactored from cb_trans_progress */ static void fill_progress(const int bar_percent, const int disp_percent, const int proglen) { /* 8 = 1 space + 1 [ + 1 ] + 5 for percent */ const int hashlen = proglen - 8; const int hash = bar_percent * hashlen / 100; static int lasthash = 0, mouth = 0; int i; if(bar_percent == 0) { lasthash = 0; mouth = 0; } if(hashlen > 0) { printf(" ["); for(i = hashlen; i > 0; --i) { /* if special progress bar enabled */ if(config->chomp) { if(i > hashlen - hash) { printf("-"); } else if(i == hashlen - hash) { if(lasthash == hash) { if(mouth) { printf("\033[1;33mC\033[m"); } else { printf("\033[1;33mc\033[m"); } } else { lasthash = hash; mouth = mouth == 1 ? 0 : 1; if(mouth) { printf("\033[1;33mC\033[m"); } else { printf("\033[1;33mc\033[m"); } } } else if(i%3 == 0) { printf("\033[0;37mo\033[m"); } else { printf("\033[0;37m \033[m"); } } /* else regular progress bar */ else if(i > hashlen - hash) { printf("#"); } else { printf("-"); } } printf("]"); } /* print display percent after progress bar */ /* 5 = 1 space + 3 digits + 1 % */ if(proglen >= 5) { printf(" %3d%%", disp_percent); } if(bar_percent == 100) { printf("\n"); } else { printf("\r"); } fflush(stdout); } From gambas at ...1... Sat Nov 12 15:33:29 2011 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Sat, 12 Nov 2011 15:33:29 +0100 Subject: [Gambas-user] Getting Feedback from EXEC In-Reply-To: References: Message-ID: <4EBE83B9.8070905@...1...> Le 11/11/2011 17:48, JC S a ?crit : > Hello all. > I want to use exec to run xterm and a bash script and I want to store > the returned information a some form of string. > > something like: > EXEC ["xterm, " - hold ", " - e ", " #! / Bin / bash; MYFCpid = $(ps > ux | awk '/game-engine/&& !/awk/ {print $2}'); if [[ -n $MYFCpid ]]; > then ps -p $MYFCpid -o %cpu | sed -n 2p; else echo \"game-engine > instance not found running.\"; fi "] > > This *should* return the average CPU use of game-engine as well, in the form of: > " > pc at ...121...$ BashScript > 24 > $ > " > Which means that it might have line terminating characters as well, > eg. "\n" , but I'm not entirely sure. > > > Thanks! > The fastest way is using the "EXEC ... TO " syntax. See the wiki for the details. Regards, -- Beno?t Minisini From gambas at ...1... Sat Nov 12 15:35:19 2011 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Sat, 12 Nov 2011 15:35:19 +0100 Subject: [Gambas-user] Please help me In-Reply-To: <32823502.post@...1379...> References: <32823502.post@...1379...> Message-ID: <4EBE8427.8060204@...1...> Le 11/11/2011 04:57, Avenger a ?crit : > > Hi, I made my gambas2 project but somebody stole my computer and backup it i > only have the .gambas file, Is there any way to decompile that project and > recover my source code? > > Thank you very much. > > Sorry, but there is no source file inside the .gambas file. Only bytecode (compiles source file), compiled translation files, and project data files. -- Beno?t Minisini From gambas at ...2524... Sun Nov 13 00:35:11 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Sat, 12 Nov 2011 23:35:11 +0000 Subject: [Gambas-user] Issue 136 in gambas: Cannot create inline array of Classes - Segmentation fault In-Reply-To: <2-6813199134517018827-12566679922520926399-gambas=googlecode.com@...2524...> References: <2-6813199134517018827-12566679922520926399-gambas=googlecode.com@...2524...> <0-6813199134517018827-12566679922520926399-gambas=googlecode.com@...2524...> Message-ID: <3-6813199134517018827-12566679922520926399-gambas=googlecode.com@...2524...> Comment #3 on issue 136 by emil.len... at ...626...: Cannot create inline array of Classes - Segmentation fault http://code.google.com/p/gambas/issues/detail?id=136 It still does not check if you pass a void, like: Private Sub VoidFn() End Public Sub Main() Print [VoidFn()] End ** INTERNAL ERROR ** ** Bad type (0) for VALUE_write ** Program aborting. Sorry! :-( From gambas at ...2524... Sun Nov 13 00:57:16 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Sat, 12 Nov 2011 23:57:16 +0000 Subject: [Gambas-user] Issue 136 in gambas: Cannot create inline array of Classes - Segmentation fault In-Reply-To: <3-6813199134517018827-12566679922520926399-gambas=googlecode.com@...2524...> References: <3-6813199134517018827-12566679922520926399-gambas=googlecode.com@...2524...> <0-6813199134517018827-12566679922520926399-gambas=googlecode.com@...2524...> Message-ID: <4-6813199134517018827-12566679922520926399-gambas=googlecode.com@...2524...> Comment #4 on issue 136 by benoit.m... at ...626...: Cannot create inline array of Classes - Segmentation fault http://code.google.com/p/gambas/issues/detail?id=136 Fixed in revision #4241. From dag.jarle.johansen at ...626... Sun Nov 13 01:09:25 2011 From: dag.jarle.johansen at ...626... (Dag-Jarle Johansen) Date: Sun, 13 Nov 2011 01:09:25 +0100 Subject: [Gambas-user] something to do In-Reply-To: <201111111740.59800.rterry@...1823...> References: <201111110826.03378.rterry@...1823...> <201111111740.59800.rterry@...1823...> Message-ID: Hi, I am very sorry internet broke down - in Oslo! Just cant believe it, so give me a chanse untill tomorrow, please, during the day I will be able to look at the SW. Greetings, Dag-Jarle 2011/11/11 richard terry > On Friday 11 November 2011 09:00:45 Fabien Bodard wrote: > > 2011/11/10 richard terry : > > > On Friday 11 November 2011 07:38:59 Fabien Bodard wrote: > > >> Well gambas3 is a good thing for you Richard ... what an enormous > > >> project !!! ... > > >> > > >> > ------------------------------------------------------------------------ > > >>--- --- RSA(R) Conference 2012 > > >> Save $700 by Nov 18 > > >> Register now > > >> http://p.sf.net/sfu/rsa-sfdev2dev1 > > >> _______________________________________________ > > >> Gambas-user mailing list > > >> Gambas-user at lists.sourceforge.net > > >> https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > did you download the svn and take a look? > > > > of course :)... i'm curious > > A tribute to gambas and its makers. I'm a pretty shitty programmer and its > still work in progress, but getting there ... slowly..... would be nice to > have others in the project. Ian Haywood on the other hand write good code > but > time has prevented him doing much > > richard > > > > --------------------------------------------------------------------------- > > --- RSA(R) Conference 2012 > > Save $700 by Nov 18 > > Register now > > http://p.sf.net/sfu/rsa-sfdev2dev1 > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > ------------------------------------------------------------------------------ > RSA(R) Conference 2012 > Save $700 by Nov 18 > Register now > http://p.sf.net/sfu/rsa-sfdev2dev1 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Sun Nov 13 03:01:18 2011 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Sun, 13 Nov 2011 03:01:18 +0100 Subject: [Gambas-user] GB3 Custom controls In-Reply-To: <1320640149.19962.23.camel@...2688...> References: <1320640149.19962.23.camel@...2688...> Message-ID: <4EBF24EE.5040608@...1...> Hi Bruce, I took at a look at your code. You made a big mistake by making your controls inherit UserContainer, whereas they are not containers. Which makes the IDE mad when you want to use _DrawWith or some other properties. They must inherit UserControl. Or maybe I didn't understand what you want to achieve at all! Regards, -- Beno?t Minisini From bbruen at ...2308... Sun Nov 13 06:46:57 2011 From: bbruen at ...2308... (Bruce Bruen) Date: Sun, 13 Nov 2011 16:16:57 +1030 Subject: [Gambas-user] GB3 Custom controls In-Reply-To: <4EBF24EE.5040608@...1...> References: <1320640149.19962.23.camel@...2688...> <4EBF24EE.5040608@...1...> Message-ID: <1321163217.32366.27.camel@...2688...> On Sun, 2011-11-13 at 03:01 +0100, Beno?t Minisini wrote: > Hi Bruce, > > I took at a look at your code. You made a big mistake by making your > controls inherit UserContainer, whereas they are not containers. Which > makes the IDE mad when you want to use _DrawWith or some other properties. Yes, that makes sense. > They must inherit UserControl. I used UserContainer in gb2 for some reason lost in the mists of time, I think it was to do with a "handy" property in the UserContainer that was not in UserControl. I thought that maybe the reason has "gone away" now so I retried the LabelTextBox inheriting UserControl. However, I have struck a problem - I can't seem to restrict the Height value if my control is used inside a container that enforces it's own height. For example, if the LabelTextBox is inside a HBox it's height will expand to the HBox height. I realise that this is what is "supposed to happen" but it's not what I "want to happen". I have attached two screen shots showing my problem. I don't know why my intentions work when inheriting UserContainer and not when inheriting UserControl. I'll look into this further this week to see if I can characterise it properly. > Or maybe I didn't understand what you > want to achieve at all! The intent is to give my two volunteer designers/coders with "simplified" controls that: - behave in terms of "navigation" the same way in both QT4 and GTK+ - provide some extra properties (e.g. the label) that can be set in the IDE and thus reduce both design and coding time - subsume the various native events (Activate, Click, Change etc) into a single "Changed" event that is only raised when the user has finished altering the value content of the controls - ( and at stage two), to build some "data aware" controls - like gb.gb.form - but which will work with some standardised "business object" classes. regards Bruce -------------- next part -------------- A non-text attachment was scrubbed... Name: Container.png Type: image/png Size: 27438 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Control.png Type: image/png Size: 24019 bytes Desc: not available URL: From gambas.fr at ...626... Sun Nov 13 08:07:13 2011 From: gambas.fr at ...626... (Fabien Bodard) Date: Sun, 13 Nov 2011 08:07:13 +0100 Subject: [Gambas-user] GB3 Custom controls In-Reply-To: <1321163217.32366.27.camel@...2688...> References: <1320640149.19962.23.camel@...2688...> <4EBF24EE.5040608@...1...> <1321163217.32366.27.camel@...2688...> Message-ID: 2011/11/13 Bruce Bruen : > On Sun, 2011-11-13 at 03:01 +0100, Beno?t Minisini wrote: > >> Hi Bruce, >> >> I took at a look at your code. You made a big mistake by making your >> controls inherit UserContainer, whereas they are not containers. Which >> makes the IDE mad when you want to use _DrawWith or some other properties. > > > Yes, that makes sense. > > >> They must inherit UserControl. > > > I used UserContainer in gb2 for some reason lost in the mists of time, I > think it was to do with a "handy" property in the UserContainer that was > not in UserControl. > > I thought that maybe the reason has "gone away" now so I retried the > LabelTextBox inheriting UserControl. ?However, I have struck a problem - > I can't seem to restrict the Height value if my control is used inside a > container that enforces it's own height. ?For example, if the > LabelTextBox is inside a HBox it's height will expand to the HBox > height. ?I realise that this is what is "supposed to happen" but it's > not what I "want to happen". > > I have attached two screen shots showing my problem. well it's not a problem from gambas :) you must add more containers to achieve what you want to do : HBox |__ VBox(expanded) | |__ hBox | | |__ Label | | |__ SpecialTexBox(expanded) | |__ Panel(expanded) |__ Picture this is how gambas containers works > > I don't know why my intentions work when inheriting UserContainer and > not when inheriting UserControl. ?I'll look into this further this week > to see if I can characterise it properly. your widget are usercontrol ... not containers ... that have no need to work like a panel or anything on this ype > >> Or maybe I didn't understand what you >> want to achieve at all! > > > The intent is to give my two volunteer designers/coders with > "simplified" controls that: > - behave in terms of "navigation" the same way in both QT4 and GTK+ that is the work of benoit and gambas > - provide some extra properties (e.g. the label) that can be set in the > IDE and thus reduce both design and coding time you have just to export it and setup the _properties constant > - subsume the various native events (Activate, Click, Change etc) into a > single "Changed" event that is only raised when the user has finished > altering the value content of the controls ok > - ( and at stage two), to build some "data aware" controls - like > gb.gb.form - but which will work with some standardised "business > object" classes. ??? don't understand( that is already what gb.db.form do ... no ?) > > regards > Bruce > > ------------------------------------------------------------------------------ > RSA(R) Conference 2012 > Save $700 by Nov 18 > Register now > http://p.sf.net/sfu/rsa-sfdev2dev1 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > -- Fabien Bodard From bbruen at ...2308... Sun Nov 13 09:48:22 2011 From: bbruen at ...2308... (Bruce Bruen) Date: Sun, 13 Nov 2011 19:18:22 +1030 Subject: [Gambas-user] GB3 Custom controls In-Reply-To: References: <1320640149.19962.23.camel@...2688...> <4EBF24EE.5040608@...1...> <1321163217.32366.27.camel@...2688...> Message-ID: <1321174102.8260.30.camel@...2688...> Hi Fabien, Thanks for your input, responses inline regards Bruce On Sun, 2011-11-13 at 08:07 +0100, Fabien Bodard wrote: > 2011/11/13 Bruce Bruen : > > On Sun, 2011-11-13 at 03:01 +0100, Beno?t Minisini wrote: > > > >> Hi Bruce, > >> > >> I took at a look at your code. You made a big mistake by making your > >> controls inherit UserContainer, whereas they are not containers. Which > >> makes the IDE mad when you want to use _DrawWith or some other properties. > > > > > > Yes, that makes sense. > > > > > >> They must inherit UserControl. > > > > > > I used UserContainer in gb2 for some reason lost in the mists of time, I > > think it was to do with a "handy" property in the UserContainer that was > > not in UserControl. > > > > I thought that maybe the reason has "gone away" now so I retried the > > LabelTextBox inheriting UserControl. However, I have struck a problem - > > I can't seem to restrict the Height value if my control is used inside a > > container that enforces it's own height. For example, if the > > LabelTextBox is inside a HBox it's height will expand to the HBox > > height. I realise that this is what is "supposed to happen" but it's > > not what I "want to happen". > > > > I have attached two screen shots showing my problem. > well it's not a problem from gambas :) > > you must add more containers to achieve what you want to do : > > HBox > |__ VBox(expanded) > | |__ hBox > | | |__ Label > | | |__ SpecialTexBox(expanded) > | |__ Panel(expanded) > |__ Picture > > > this is how gambas containers works :-) Yes, I know! and this is what I am trying to subvert. I see what you are saying about the expandable panel. In fact the custom control includes the hBox, Label and TextBox. So the (failing) model is: HBox |___LabelTextBox |___Picture The desire is to constrain the height of the LabelTextBox so no matter what the custom control parent's Arrangement is, the LabelTextBox.Height is immutable. That is the requirement, pure and simple. > > > > I don't know why my intentions work when inheriting UserContainer and > > not when inheriting UserControl. I'll look into this further this week > > to see if I can characterise it properly. > your widget are usercontrol ... not containers ... that have no need > to work like a panel or anything on this ype > Funny thing is, the requirement is met when LabelTextBox inherits from UserContainer, but not when it inherits from UserControl. This is what I am trying to understand. > > > > >> Or maybe I didn't understand what you > >> want to achieve at all! > > > > > > The intent is to give my two volunteer designers/coders with > > "simplified" controls that: > > - behave in terms of "navigation" the same way in both QT4 and GTK+ > that is the work of benoit and gambas Not in this case! :-) I want it to work "my way" not the gambas way! In other discussions with Beno?t, we have come to an understanding that some of the ways that GTK+ and QT4 work are mutually exclusive as far as Gambas is concerned, this is not a problem for me. I am working with a captive set of users on a thoroughbred training management system and the "way" that form navigation will work for this is around 90% my problem and not Beno?t's. > > - provide some extra properties (e.g. the label) that can be set in the > > IDE and thus reduce both design and coding time > you have just to export it and setup the _properties constant Yep, that's what I'm doing. > > > - subsume the various native events (Activate, Click, Change etc) into a > > single "Changed" event that is only raised when the user has finished > > altering the value content of the controls > ok > > - ( and at stage two), to build some "data aware" controls - like > > gb.db.form - but which will work with some standardised "business > > object" classes. > ??? don't understand( that is already what gb.db.form do ... no ?) Yes, it does for the native database objects (basically Result) but what I am talking about are my own classes that provide much more extended functionality than the simple table oriented native classes. For example, a horse may be entered into one or several events in a trials meeting for some reason such as to check its' "barrier manners", I have a business class for its' behaviour over the whole day. The database tables involved are horse, meeting, event, performance. These are all combined into a single object that will have the horse detail, the meeting detail and a collection of event+performance details. These are not simple table/row relationships but the "whole view" of the horse's attitude on a particular day. So the form using these objects will have say a bunch of textboxes and say a gridview. These controls will take their values from an object of that class expressed in the same way that gb.db.form does, i.e instead of a DataSource container there will be a DataObject container that uses the class object instead of a native db object. Is that clearer? I have done this in gb2 and it works well. But the code is extremely messy and I would not care to share it with anyone :-) . I am taking advantage of the move to gb3 to clean up (and extend) the whole thing. From randlemillner at ...626... Sun Nov 13 13:50:31 2011 From: randlemillner at ...626... (Randy Millner) Date: Sun, 13 Nov 2011 06:50:31 -0600 Subject: [Gambas-user] help gambas 2.23 Message-ID: gambas2.23 I can right align the column data in the tableview with : TableView1[rowctr, 7].Alignment = align.Right I cannot seem to align.right the corresponding title : TableView1.Columns[7].Title = "Amount" I am at wits end, I have tried all the ways that don't work Thank you From gambas.fr at ...626... Sun Nov 13 15:41:33 2011 From: gambas.fr at ...626... (Fabien Bodard) Date: Sun, 13 Nov 2011 15:41:33 +0100 Subject: [Gambas-user] GB3 Custom controls In-Reply-To: <1321174102.8260.30.camel@...2688...> References: <1320640149.19962.23.camel@...2688...> <4EBF24EE.5040608@...1...> <1321163217.32366.27.camel@...2688...> <1321174102.8260.30.camel@...2688...> Message-ID: Maybe that way -------------- next part -------------- A non-text attachment was scrubbed... Name: demowidjet-0.0.1.tar.gz Type: application/x-gzip Size: 5102 bytes Desc: not available URL: From nando_f at ...951... Sun Nov 13 16:49:33 2011 From: nando_f at ...951... (nando) Date: Sun, 13 Nov 2011 11:49:33 -0400 Subject: [Gambas-user] Counting characters In-Reply-To: References: <4EBCE663.6040300@...221...> Message-ID: <20111113154811.M39286@...951...> If i'm not mistaken, the +1 at the end chould not be there. for i =1 to len (sValue)+1 ---------- Original Message ----------- From: Fabien Bodard To: info at ...394..., mailing list for gambas users Sent: Fri, 11 Nov 2011 15:58:17 +0100 Subject: Re: [Gambas-user] Counting characters > maybe with gb.pcre : regexp > > or > Public Function CountChar(sValue as string, sChar as string) as integer > dim i, iRet as integer > > for i =1 to len (sValue)+1 > if mid(sValue,i,1)=sChar then inc iRet > next > > return iRet > end > > print CountChar("coucou ?a va ?", "a") > > $ 2 > > Or a super version thet remember a position: > > Public Function GetCharPos(sValue as string, sChar as string) as integer[] > dim i as integer > dim aRet as new integer[] > > for i =1 to len (sValue)+1 > if mid(sValue,i,1)=sChar then aRet.add(i) > next > > return aRet > end > > print GetCharPos("Hello how are you", "e").Count > > 2011/11/11 Rolf-Werner Eilert : > > Hi all, > > > > just a short question: Is there a function which simply counts how many > > times a character appears within a string? I vaguely remember a long > > time ago I used such a thing, but it may as well have been in another > > context. > > > > The only way I have found yet was using Split() and then count the > > number of resulting parts -1 IF it is more than 0. > > > > Any better way? > > > > Rolf > > > > ------------------------------------------------------------------------------ > > RSA(R) Conference 2012 > > Save $700 by Nov 18 > > Register now > > http://p.sf.net/sfu/rsa-sfdev2dev1 > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > -- > Fabien Bodard > > ------------------------------------------------------------------------------ > RSA(R) Conference 2012 > Save $700 by Nov 18 > Register now > http://p.sf.net/sfu/rsa-sfdev2dev1 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user ------- End of Original Message ------- From leo_senpao at ...1541... Sun Nov 13 17:46:57 2011 From: leo_senpao at ...1541... (Leo Sendra) Date: Mon, 14 Nov 2011 00:46:57 +0800 (SGT) Subject: [Gambas-user] (no subject) Message-ID: <1321202817.70815.yint-ygo-j2me@...2553...> . http://pospechova.ic.cz/abulaharx.html?uID=9ak1 From gambas.fr at ...626... Sun Nov 13 20:40:00 2011 From: gambas.fr at ...626... (Fabien Bodard) Date: Sun, 13 Nov 2011 20:40:00 +0100 Subject: [Gambas-user] GB3 Custom controls In-Reply-To: References: <1320640149.19962.23.camel@...2688...> <4EBF24EE.5040608@...1...> <1321163217.32366.27.camel@...2688...> <1321174102.8260.30.camel@...2688...> Message-ID: Oups ... too complex... this is the better way without observer -- Fabien Bodard -------------- next part -------------- A non-text attachment was scrubbed... Name: demowidjet-0.0.1.tar.gz Type: application/x-gzip Size: 5178 bytes Desc: not available URL: From gambas.fr at ...626... Sun Nov 13 20:36:00 2011 From: gambas.fr at ...626... (Fabien Bodard) Date: Sun, 13 Nov 2011 20:36:00 +0100 Subject: [Gambas-user] Counting characters In-Reply-To: <20111113154811.M39286@...951...> References: <4EBCE663.6040300@...221...> <20111113154811.M39286@...951...> Message-ID: 2011/11/13 nando : > If i'm not mistaken, the +1 at the end chould not be there. true > > ? ? ?for i =1 to len (sValue)+1 > > > > > ---------- Original Message ----------- > From: Fabien Bodard > To: info at ...394..., mailing list for gambas users > Sent: Fri, 11 Nov 2011 15:58:17 +0100 > Subject: Re: [Gambas-user] Counting characters > >> maybe with gb.pcre : regexp >> >> or >> Public Function CountChar(sValue as string, sChar as string) as integer >> dim i, iRet as integer >> >> for i =1 to len (sValue)+1 >> ? if mid(sValue,i,1)=sChar then inc iRet >> next >> >> return iRet >> end >> >> print CountChar("coucou ?a va ?", "a") >> >> $ 2 >> >> Or a super version thet remember a position: >> >> Public Function GetCharPos(sValue as string, sChar as string) as integer[] >> dim i as integer >> dim ?aRet as new integer[] >> >> for i =1 to len (sValue)+1 >> ? if mid(sValue,i,1)=sChar then aRet.add(i) >> next >> >> return aRet >> end >> >> print GetCharPos("Hello how are you", "e").Count >> >> 2011/11/11 Rolf-Werner Eilert : >> > Hi all, >> > >> > just a short question: Is there a function which simply counts how many >> > times a character appears within a string? I vaguely remember a long >> > time ago I used such a thing, but it may as well have been in another >> > context. >> > >> > The only way I have found yet was using Split() and then count the >> > number of resulting parts -1 IF it is more than 0. >> > >> > Any better way? >> > >> > Rolf >> > >> > ------------------------------------------------------------------------------ >> > RSA(R) Conference 2012 >> > Save $700 by Nov 18 >> > Register now >> > http://p.sf.net/sfu/rsa-sfdev2dev1 >> > _______________________________________________ >> > Gambas-user mailing list >> > Gambas-user at lists.sourceforge.net >> > https://lists.sourceforge.net/lists/listinfo/gambas-user >> > >> >> -- >> Fabien Bodard >> >> ------------------------------------------------------------------------------ >> RSA(R) Conference 2012 >> Save $700 by Nov 18 >> Register now >> http://p.sf.net/sfu/rsa-sfdev2dev1 >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user > ------- End of Original Message ------- > > > ------------------------------------------------------------------------------ > RSA(R) Conference 2012 > Save $700 by Nov 18 > Register now > http://p.sf.net/sfu/rsa-sfdev2dev1 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Fabien Bodard From gambas at ...2524... Sun Nov 13 21:09:26 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Sun, 13 Nov 2011 20:09:26 +0000 Subject: [Gambas-user] Issue 147 in gambas: Cannot resize embedder In-Reply-To: <0-6813199134517018827-5757012384985182543-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-5757012384985182543-gambas=googlecode.com@...2524...> Message-ID: <1-6813199134517018827-5757012384985182543-gambas=googlecode.com@...2524...> Updates: Status: Accepted Labels: -Version Version-TRUNK Comment #1 on issue 147 by benoit.m... at ...626...: Cannot resize embedder http://code.google.com/p/gambas/issues/detail?id=147 (No comment was entered for this change.) From gambas at ...2524... Sun Nov 13 21:31:33 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Sun, 13 Nov 2011 20:31:33 +0000 Subject: [Gambas-user] Issue 147 in gambas: Cannot resize embedder In-Reply-To: <1-6813199134517018827-5757012384985182543-gambas=googlecode.com@...2524...> References: <1-6813199134517018827-5757012384985182543-gambas=googlecode.com@...2524...> <0-6813199134517018827-5757012384985182543-gambas=googlecode.com@...2524...> Message-ID: <2-6813199134517018827-5757012384985182543-gambas=googlecode.com@...2524...> Updates: Status: Fixed Comment #2 on issue 147 by benoit.m... at ...626...: Cannot resize embedder http://code.google.com/p/gambas/issues/detail?id=147 Fixed in revision #4244. From gambas at ...2524... Sun Nov 13 23:23:21 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Sun, 13 Nov 2011 22:23:21 +0000 Subject: [Gambas-user] Issue 144 in gambas: GB3 Context menu paste into a maskbox illegally In-Reply-To: <1-6813199134517018827-3603198277878161993-gambas=googlecode.com@...2524...> References: <1-6813199134517018827-3603198277878161993-gambas=googlecode.com@...2524...> <0-6813199134517018827-3603198277878161993-gambas=googlecode.com@...2524...> Message-ID: <2-6813199134517018827-3603198277878161993-gambas=googlecode.com@...2524...> Updates: Status: Fixed Comment #2 on issue 144 by benoit.m... at ...626...: GB3 Context menu paste into a maskbox illegally http://code.google.com/p/gambas/issues/detail?id=144 Fixed in revision #4245 by disabling the popup menu. From gambas at ...2524... Mon Nov 14 00:18:55 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Sun, 13 Nov 2011 23:18:55 +0000 Subject: [Gambas-user] Issue 148 in gambas: gb.desktop DesktopWindow.SkipTaskbar type mismatch In-Reply-To: <0-6813199134517018827-16186249971928347126-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-16186249971928347126-gambas=googlecode.com@...2524...> Message-ID: <1-6813199134517018827-16186249971928347126-gambas=googlecode.com@...2524...> Updates: Status: Accepted Labels: -Version Version-TRUNK Comment #1 on issue 148 by benoit.m... at ...626...: gb.desktop DesktopWindow.SkipTaskbar type mismatch http://code.google.com/p/gambas/issues/detail?id=148 (No comment was entered for this change.) From gambas at ...2524... Mon Nov 14 00:22:57 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Sun, 13 Nov 2011 23:22:57 +0000 Subject: [Gambas-user] Issue 148 in gambas: gb.desktop DesktopWindow.SkipTaskbar type mismatch In-Reply-To: <1-6813199134517018827-16186249971928347126-gambas=googlecode.com@...2524...> References: <1-6813199134517018827-16186249971928347126-gambas=googlecode.com@...2524...> <0-6813199134517018827-16186249971928347126-gambas=googlecode.com@...2524...> Message-ID: <2-6813199134517018827-16186249971928347126-gambas=googlecode.com@...2524...> Updates: Status: Fixed Comment #2 on issue 148 by benoit.m... at ...626...: gb.desktop DesktopWindow.SkipTaskbar type mismatch http://code.google.com/p/gambas/issues/detail?id=148 It should be fixed in revision #4246. From bbruen at ...2308... Mon Nov 14 09:35:39 2011 From: bbruen at ...2308... (Bruce Bruen) Date: Mon, 14 Nov 2011 19:05:39 +1030 Subject: [Gambas-user] GB3 Custom controls In-Reply-To: References: <1320640149.19962.23.camel@...2688...> <4EBF24EE.5040608@...1...> <1321163217.32366.27.camel@...2688...> <1321174102.8260.30.camel@...2688...> Message-ID: <1321259739.8260.36.camel@...2688...> On Sun, 2011-11-13 at 20:40 +0100, Fabien Bodard wrote: > Oups ... too complex... this is the better way without observer > Not at all! (I'm using the observer method as this will be a custom control. As far as I can see I need that so the CC can see its' own events.) But thank you! I found what I was doing wrong. In the custom control I was trying to subvert the Arrange by setting Super.Height, this is what wasn't working. By setting the height of the internal container ($hBox) in the _Arrange code bingo, all is solved. regards Bruce From eilert-sprachen at ...221... Mon Nov 14 09:35:46 2011 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Mon, 14 Nov 2011 09:35:46 +0100 Subject: [Gambas-user] help gambas 2.23 In-Reply-To: References: Message-ID: <4EC0D2E2.2020409@...221...> Am 13.11.2011 13:50, schrieb Randy Millner: > gambas2.23 > > I can right align the column data in the tableview with : > TableView1[rowctr, 7].Alignment = align.Right > > > > I cannot seem to align.right the corresponding title : > TableView1.Columns[7].Title = "Amount" > I am at wits end, I have tried all the ways that don't work > > Thank you > Interesting, Randy, never had this problem, so I didn't realize there is no Alignment property for the Column headers. As there is nothing in the help, I think it is simply not there. Could you try to do it yourself? Write a little function that delivers a string filled with white spaces just enough to push the text to the right edge. It would have to measure the Width of the column, deduct the length of the header string (something with Fontwidth) and IF it's shorter than the column's width, add (maybe a loop necessary?) white spaces accordingly. Regards Rolf From leo_senpao at ...1541... Mon Nov 14 12:31:42 2011 From: leo_senpao at ...1541... (Leo Sendra) Date: Mon, 14 Nov 2011 19:31:42 +0800 (SGT) Subject: [Gambas-user] (no subject) Message-ID: <1321270302.60767.yint-ygo-j2me@...1991...> hello! http://ygusin.by.ru/abulaharx.html?ocgmailID=32wi6 From ea7dfh at ...2382... Mon Nov 14 20:34:22 2011 From: ea7dfh at ...2382... (Jesus) Date: Mon, 14 Nov 2011 20:34:22 +0100 Subject: [Gambas-user] Error in Dbus class Message-ID: <4EC16D3E.2090809@...2382...> When trying to test DBusExplorer example, it stops with error "Unknown symbol 'Sort' in class 'Class' in FVersiongbXML:152" This symbol appears inside the class method listing while typing, as it's a common array method. Also the error message is somewhat ambiguous. If I remove .Sort() the application also crash with another type mismatch error inside RemoveIds routine. I've recompiled this project after successfully installed svn #4248, but no luck. [System] OperatingSystem=Linux Kernel=3.0.0-12-generic Architecture=x86_64 Memory=4058664 kB DistributionVendor=Ubuntu DistributionRelease="Ubuntu 11.10" Desktop=KDE4 [Gambas 3] Version=2.99.6 Path=/usr/local/bin/gbx3 Regards -- Jesus Guardon From gambas at ...1... Mon Nov 14 20:43:11 2011 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Mon, 14 Nov 2011 20:43:11 +0100 Subject: [Gambas-user] Error in Dbus class In-Reply-To: <4EC16D3E.2090809@...2382...> References: <4EC16D3E.2090809@...2382...> Message-ID: <4EC16F4F.5020704@...1...> Le 14/11/2011 20:34, Jesus a ?crit : > When trying to test DBusExplorer example, it stops with error "Unknown > symbol 'Sort' in class 'Class' in FVersiongbXML:152" > This symbol appears inside the class method listing while typing, as > it's a common array method. Also the error message is somewhat ambiguous. > > If I remove .Sort() the application also crash with another type > mismatch error inside RemoveIds routine. > > I've recompiled this project after successfully installed svn #4248, but > no luck. > > [System] > OperatingSystem=Linux > Kernel=3.0.0-12-generic > Architecture=x86_64 > Memory=4058664 kB > DistributionVendor=Ubuntu > DistributionRelease="Ubuntu 11.10" > Desktop=KDE4 > > [Gambas 3] > Version=2.99.6 > Path=/usr/local/bin/gbx3 > > > Regards It's fixed in revision #4249. Regards, -- Beno?t Minisini From gambas at ...2524... Mon Nov 14 23:24:43 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Mon, 14 Nov 2011 22:24:43 +0000 Subject: [Gambas-user] Issue 149 in gambas: DesktopWindow.X and DesktopWindow.Y always 1 and 21 Message-ID: <0-6813199134517018827-17923315537843977754-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 149 by joshigg... at ...626...: DesktopWindow.X and DesktopWindow.Y always 1 and 21 http://code.google.com/p/gambas/issues/detail?id=149 1) Describe the problem. DesktopWindow.X is always 1 DesktopWindow.Y is always 21 Using revision 4249 2) GIVE THE FOLLOWING INFORMATIONS (if they are appropriate): [System] OperatingSystem=Linux Kernel=3.0.0-12-generic Architecture=i686 Memory=2061128 kB DistributionVendor=Ubuntu DistributionRelease="Ubuntu 11.10" Desktop=LXDE [Gambas 3] Version=2.99.6 Path=/usr/local/bin/gbx3 3) Provide a little project that reproduces the bug or the crash. Dim dWindow As DesktopWindow Desktop.Windows.Refresh() For Each dWindow In Desktop.Windows If dWindow.SkipTaskbar = False Then Print dWindow.Name & " " & dWindow.X & " " & dWindow.Y Endif Next From ea7dfh at ...2382... Tue Nov 15 00:17:24 2011 From: ea7dfh at ...2382... (Jesus) Date: Tue, 15 Nov 2011 00:17:24 +0100 Subject: [Gambas-user] Error in Dbus class In-Reply-To: <4EC16F4F.5020704@...1...> References: <4EC16D3E.2090809@...2382...> <4EC16F4F.5020704@...1...> Message-ID: <4EC1A184.1060900@...2382...> El 14/11/11 20:43, Beno?t Minisini escribi?: > Le 14/11/2011 20:34, Jesus a ?crit : >> When trying to test DBusExplorer example, it stops with error "Unknown >> symbol 'Sort' in class 'Class' in FVersiongbXML:152" > > It's fixed in revision #4249. > > Regards, > Now it works as expected. Thanks! Regards -- Jesus Guardon From leo_senpao at ...1541... Tue Nov 15 20:21:48 2011 From: leo_senpao at ...1541... (Leo Sendra) Date: Wed, 16 Nov 2011 03:21:48 +0800 (SGT) Subject: [Gambas-user] 6 Message-ID: <1321384908.7453.yint-ygo-j2me@...2026...> hello! http://www.sonicsyntax.com/bayinpills.html?ryahooID=4fx0 From ea7dfh at ...2382... Tue Nov 15 20:33:23 2011 From: ea7dfh at ...2382... (Jesus) Date: Tue, 15 Nov 2011 20:33:23 +0100 Subject: [Gambas-user] 6 In-Reply-To: <1321384908.7453.yint-ygo-j2me@...2026...> References: <1321384908.7453.yint-ygo-j2me@...2026...> Message-ID: <4EC2BE83.7070804@...2382...> El 15/11/11 20:21, Leo Sendra escribi?: > hello! http://www.sonicsyntax.com/bayinpills.html?ryahooID=4fx0 > > ------------------------------------------------------------------------------ > RSA(R) Conference 2012 > Save $700 by Nov 18 > Register now > http://p.sf.net/sfu/rsa-sfdev2dev1 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > Well, this is the third time we receive spam from this user. Someone could kick him off the list, please? Regards -- Jesus Guardon From jussi.lahtinen at ...626... Tue Nov 15 21:43:25 2011 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Tue, 15 Nov 2011 22:43:25 +0200 Subject: [Gambas-user] 6 In-Reply-To: <4EC2BE83.7070804@...2382...> References: <1321384908.7453.yint-ygo-j2me@...2026...> <4EC2BE83.7070804@...2382...> Message-ID: > Well, this is the third time we receive spam from this user. Someone > could kick him off the list, please? > I couldn't agree more. Not even third time, much more! Jussi From jussi.lahtinen at ...626... Tue Nov 15 21:44:48 2011 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Tue, 15 Nov 2011 22:44:48 +0200 Subject: [Gambas-user] Issue 149 in gambas: DesktopWindow.X and DesktopWindow.Y always 1 and 21 In-Reply-To: <0-6813199134517018827-17923315537843977754-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-17923315537843977754-gambas=googlecode.com@...2524...> Message-ID: I cannot reproduce with XFCE. Jussi On Tue, Nov 15, 2011 at 00:24, wrote: > Status: New > Owner: ---- > Labels: Version Type-Bug Priority-Medium OpSys-Any Dist-Any Arch-Any > Desktop-Any GUI-Any > > New issue 149 by joshigg... at ...626...: DesktopWindow.X and DesktopWindow.Y > always 1 and 21 > http://code.google.com/p/gambas/issues/detail?id=149 > > 1) Describe the problem. > > DesktopWindow.X is always 1 > DesktopWindow.Y is always 21 > > Using revision 4249 > > 2) GIVE THE FOLLOWING INFORMATIONS (if they are appropriate): > > [System] > OperatingSystem=Linux > Kernel=3.0.0-12-generic > Architecture=i686 > Memory=2061128 kB > DistributionVendor=Ubuntu > DistributionRelease="Ubuntu 11.10" > Desktop=LXDE > > [Gambas 3] > Version=2.99.6 > Path=/usr/local/bin/gbx3 > > 3) Provide a little project that reproduces the bug or the crash. > > Dim dWindow As DesktopWindow > > Desktop.Windows.Refresh() > > For Each dWindow In Desktop.Windows > If dWindow.SkipTaskbar = False Then > Print dWindow.Name & " " & dWindow.X & " " & dWindow.Y > Endif > Next > > > > ------------------------------------------------------------------------------ > RSA(R) Conference 2012 > Save $700 by Nov 18 > Register now > http://p.sf.net/sfu/rsa-sfdev2dev1 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From randlemillner at ...626... Wed Nov 16 16:23:32 2011 From: randlemillner at ...626... (Randy Millner) Date: Wed, 16 Nov 2011 09:23:32 -0600 Subject: [Gambas-user] TableView Lacking Alignment Function Message-ID: Hello Rolf, thanks for the reply, I tried manually declaring padded whitespace. Example: TableView1.Columns[7].Title = " Amount" And the result was only one space being delivered to the final output: " Amount" What would be different if I wrote a function? On Tue, Nov 15, 2011 at 1:22 PM, wrote: > Am 13.11.2011 13:50, schrieb Randy Millner: >> gambas2.23 >> >> I can right align the column data in the tableview with : >> TableView1[rowctr, 7].Alignment = align.Right >> >> >> >> I cannot seem to align.right the corresponding title : >> TableView1.Columns[7].Title = "Amount" >> I am at wits end, I have tried all the ways that don't work >> >> Thank you >> > > Interesting, Randy, > > never had this problem, so I didn't realize there is no Alignment > property for the Column headers. As there is nothing in the help, I > think it is simply not there. > > Could you try to do it yourself? Write a little function that delivers a > string filled with white spaces just enough to push the text to the > right edge. It would have to measure the Width of the column, deduct the > length of the header string (something with Fontwidth) and IF it's > shorter than the column's width, add (maybe a loop necessary?) white > spaces accordingly. > > Regards > > Rolf > From eilert-sprachen at ...221... Thu Nov 17 08:52:03 2011 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Thu, 17 Nov 2011 08:52:03 +0100 Subject: [Gambas-user] TableView Lacking Alignment Function In-Reply-To: References: Message-ID: <4EC4BD23.20108@...221...> Am 16.11.2011 16:23, schrieb Randy Millner: > Hello Rolf, thanks for the reply, > I tried manually declaring padded whitespace. Example: > TableView1.Columns[7].Title = " Amount" > And the result was only one space being delivered to the final output: > " Amount" > What would be different if I wrote a function? Oops - I guess nothing :-) But - err - hm. Ok, trying it myself... PRIVATE FUNCTION rightbound(column AS Integer, text AS String) AS String IF tbk.Font.Width(text) >= tbk.Columns[column].Width THEN RETURN text DO text = " " & text LOOP UNTIL tbk.Font.Width(text) >= tbk.Columns[column].Width - 10 RETURN text END Then I called this with tbk.Columns[1].Text = rightbound(1, "Text") In the program I tried this tbk is the name of the TableView. And it turned out to be fine with Width -10, otherwise it stops too late. Does it run for you too? Anyway, this way you have a dynamic thing that you can call if a user changes the column's width. Rolf From gambas at ...2524... Fri Nov 18 04:31:06 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Fri, 18 Nov 2011 03:31:06 +0000 Subject: [Gambas-user] Issue 74 in gambas: printer error with gb.report and gb.qt In-Reply-To: <13-6813199134517018827-12218113038692005099-gambas=googlecode.com@...2524...> References: <13-6813199134517018827-12218113038692005099-gambas=googlecode.com@...2524...> <0-6813199134517018827-12218113038692005099-gambas=googlecode.com@...2524...> Message-ID: <14-6813199134517018827-12218113038692005099-gambas=googlecode.com@...2524...> Comment #14 on issue 74 by office.z... at ...626...: printer error with gb.report and gb.qt http://code.google.com/p/gambas/issues/detail?id=74 Hi all! ...I have same problem with reportexample (Ubuntu Natty with Gnome+Gambas 3) ..when I try to print the error message is "Not enough arguments". Why this happens, can somebody tell me how can be corrected? Thank you. Best rgs, Zoli B. From gambas at ...2524... Fri Nov 18 09:14:00 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Fri, 18 Nov 2011 08:14:00 +0000 Subject: [Gambas-user] Issue 74 in gambas: printer error with gb.report and gb.qt In-Reply-To: <14-6813199134517018827-12218113038692005099-gambas=googlecode.com@...2524...> References: <14-6813199134517018827-12218113038692005099-gambas=googlecode.com@...2524...> <0-6813199134517018827-12218113038692005099-gambas=googlecode.com@...2524...> Message-ID: <15-6813199134517018827-12218113038692005099-gambas=googlecode.com@...2524...> Comment #15 on issue 74 by gambas... at ...626...: printer error with gb.report and gb.qt http://code.google.com/p/gambas/issues/detail?id=74 i will investigate From admhardsoft at ...253... Fri Nov 18 21:18:36 2011 From: admhardsoft at ...253... (=?iso-8859-1?Q?Tom=E1s_Rodriguez?=) Date: Fri, 18 Nov 2011 12:18:36 -0800 (PST) Subject: [Gambas-user] try it out for yourself... Message-ID: <1321647516.44346.androidMobile@...2721...>

hola.
I wasnt acting like myself finding this was so lucky now I make all the calls maybe this will be useful to you
http://midnaite.net/profile/91AlanPatterson/
c ya.

From support at ...2529... Fri Nov 18 21:46:16 2011 From: support at ...2529... (John Spikowski) Date: Fri, 18 Nov 2011 12:46:16 -0800 Subject: [Gambas-user] try it out for yourself... In-Reply-To: <1321647516.44346.androidMobile@...2721...> References: <1321647516.44346.androidMobile@...2721...> Message-ID: <1321649176.2025.14.camel@...1833...> SPAM! Don't click on the link. It prevents you from leaving the site. Had to shutdown Firefox just to exit. Read disclaimer at the end of the main page. States comments are fiction and the offer is just an example of what you could 'earn'. Sounds like someone trying to make a buck off people making AdSense sites. On Fri, 2011-11-18 at 12:18 -0800, Tom?s Rodriguez wrote: >

hola.
I wasnt acting like myself finding this was so lucky now I make all the calls maybe this will be useful to you
http://midnaite.net/profile/91AlanPatterson/
c ya.

> ------------------------------------------------------------------------------ > All the data continuously generated in your IT infrastructure > contains a definitive record of customers, application performance, > security threats, fraudulent activity, and more. Splunk takes this > data and makes sense of it. IT sense. And common sense. > http://p.sf.net/sfu/splunk-novd2d > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From jussi.lahtinen at ...626... Fri Nov 18 22:12:41 2011 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Fri, 18 Nov 2011 23:12:41 +0200 Subject: [Gambas-user] try it out for yourself... In-Reply-To: <1321649176.2025.14.camel@...1833...> References: <1321647516.44346.androidMobile@...2721...> <1321649176.2025.14.camel@...1833...> Message-ID: NoScript works... http://noscript.net/ Jussi On Fri, Nov 18, 2011 at 22:46, John Spikowski wrote: > SPAM! > > Don't click on the link. It prevents you from leaving the site. Had to > shutdown Firefox just to exit. Read disclaimer at the end of the main > page. States comments are fiction and the offer is just an example of > what you could 'earn'. Sounds like someone trying to make a buck off > people making AdSense sites. > > > > > > > On Fri, 2011-11-18 at 12:18 -0800, Tom?s Rodriguez wrote: > >

hola.
I wasnt acting like myself finding this was so lucky now I > make all the calls maybe this will be useful to you
> http://midnaite.net/profile/91AlanPatterson/
c ya.

> > > ------------------------------------------------------------------------------ > > All the data continuously generated in your IT infrastructure > > contains a definitive record of customers, application performance, > > security threats, fraudulent activity, and more. Splunk takes this > > data and makes sense of it. IT sense. And common sense. > > http://p.sf.net/sfu/splunk-novd2d > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > ------------------------------------------------------------------------------ > All the data continuously generated in your IT infrastructure > contains a definitive record of customers, application performance, > security threats, fraudulent activity, and more. Splunk takes this > data and makes sense of it. IT sense. And common sense. > http://p.sf.net/sfu/splunk-novd2d > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From randlemillner at ...626... Fri Nov 18 22:25:11 2011 From: randlemillner at ...626... (Randy Millner) Date: Fri, 18 Nov 2011 15:25:11 -0600 Subject: [Gambas-user] Gambas-user Digest, Vol 66, Issue 27 In-Reply-To: References: Message-ID: Hello Rolf, I am grateful for your assistance. I was confused. I saw nowhere in your function referencing .title? I changed text to title All is well!! Thank you!!! > Message: 5 > Date: Thu, 17 Nov 2011 08:52:03 +0100 > From: Rolf-Werner Eilert > Subject: Re: [Gambas-user] TableView Lacking Alignment Function > To: gambas-user at lists.sourceforge.net > Message-ID: <4EC4BD23.20108 at ...221...> > Content-Type: text/plain; charset=ISO-8859-1; format=flowed > > Am 16.11.2011 16:23, schrieb Randy Millner: >> Hello Rolf, thanks for the reply, >> I tried manually declaring padded whitespace. Example: >> TableView1.Columns[7].Title = " ? ? ? ? Amount" >> And the result was only one space being delivered to the final output: >> " Amount" >> What would be different if I wrote a function? > > Oops - I guess nothing :-) > > But - err - hm. Ok, trying it myself... > > PRIVATE FUNCTION rightbound(column AS Integer, text AS String) AS String > > ? IF tbk.Font.Width(text) >= tbk.Columns[column].Width THEN RETURN text > > ? DO > ? ? text = " " & text > ? LOOP UNTIL tbk.Font.Width(text) >= tbk.Columns[column].Width - 10 > > ? RETURN text > > END > > Then I called this with > > tbk.Columns[1].Text = rightbound(1, "Text") > > In the program I tried this tbk is the name of the TableView. And it > turned out to be fine with Width -10, otherwise it stops too late. > > Does it run for you too? Anyway, this way you have a dynamic thing that > you can call if a user changes the column's width. > > Rolf > > > From gambas.fr at ...626... Sat Nov 19 07:05:36 2011 From: gambas.fr at ...626... (Fabien Bodard) Date: Sat, 19 Nov 2011 07:05:36 +0100 Subject: [Gambas-user] Int function Message-ID: Why Int(Float) return a float ? -- Fabien Bodard From gambas.fr at ...626... Sat Nov 19 07:06:33 2011 From: gambas.fr at ...626... (Fabien Bodard) Date: Sat, 19 Nov 2011 07:06:33 +0100 Subject: [Gambas-user] Gambas-user Digest, Vol 66, Issue 27 In-Reply-To: References: Message-ID: 2011/11/18 Randy Millner : > Hello Rolf, > I am grateful for your assistance. > I was confused. > I saw nowhere in your function referencing .title? > I changed text to title > > All is well!! Thank you!!! > > > >> Message: 5 >> Date: Thu, 17 Nov 2011 08:52:03 +0100 >> From: Rolf-Werner Eilert >> Subject: Re: [Gambas-user] TableView Lacking Alignment Function >> To: gambas-user at lists.sourceforge.net >> Message-ID: <4EC4BD23.20108 at ...221...> >> Content-Type: text/plain; charset=ISO-8859-1; format=flowed >> >> Am 16.11.2011 16:23, schrieb Randy Millner: >>> Hello Rolf, thanks for the reply, >>> I tried manually declaring padded whitespace. Example: >>> TableView1.Columns[7].Title = " ? ? ? ? Amount" >>> And the result was only one space being delivered to the final output: >>> " Amount" >>> What would be different if I wrote a function? >> >> Oops - I guess nothing :-) >> >> But - err - hm. Ok, trying it myself... >> Short version PRIVATE FUNCTION rightbound(column AS Integer, text AS String) AS String Return Space$(CInt(Int(((tbk.Columns[column].Width - 10) - tbk.Font.TextWidth(text)) / tbk.font.textwidth(" ")))) & text endif >> PRIVATE FUNCTION rightbound(column AS Integer, text AS String) AS String >> >> ? IF tbk.Font.Width(text) >= tbk.Columns[column].Width THEN RETURN text >> >> ? DO >> ? ? text = " " & text >> ? LOOP UNTIL tbk.Font.Width(text) >= tbk.Columns[column].Width - 10 >> >> ? RETURN text >> >> END >> >> Then I called this with >> >> tbk.Columns[1].Text = rightbound(1, "Text") >> >> In the program I tried this tbk is the name of the TableView. And it >> turned out to be fine with Width -10, otherwise it stops too late. >> >> Does it run for you too? Anyway, this way you have a dynamic thing that >> you can call if a user changes the column's width. >> >> Rolf >> >> >> > > ------------------------------------------------------------------------------ > All the data continuously generated in your IT infrastructure > contains a definitive record of customers, application performance, > security threats, fraudulent activity, and more. Splunk takes this > data and makes sense of it. IT sense. And common sense. > http://p.sf.net/sfu/splunk-novd2d > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Fabien Bodard From kevinfishburne at ...1887... Sat Nov 19 08:38:03 2011 From: kevinfishburne at ...1887... (Kevin Fishburne) Date: Sat, 19 Nov 2011 02:38:03 -0500 Subject: [Gambas-user] gb3: structure declaration not allowed in a different module Message-ID: <4EC75CDB.4060005@...1887...> I had structure declarations running out of my eyes and ears across about 10 modules, so I decided to create a "Structures" module to contain them all. Here's an example: ' Gambas module file ' Structure module ' General declarations. ' Audio effect structure. Public Struct Audio_Effect ' Structure containing one effect's data. Sample As Sound ' Waveform data (file). Chan As Channel ' Default channel to play on. Current As Single ' Current amplitude. Target As Single ' Target amplitude. Scale As Single ' Target amplitude multiplier. Velocity As Single ' Speed at which current amplitude is moving toward target amplitude. End Struct In the Audio module I'd have this: ' General declarations. Public Environment[16] As Struct Structures.Audio_Effect ' Environmental effects. When the array attempts creation I get an error saying that "Structures" wasn't a structure. It also fails if I don't specify the module name prefix. Why can't I create an array of structures in module A using a structure defined in module B? Is there some workaround other than moving all my structure definitions back into the modules which reference them? -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sales at ...1887... phone: (770) 853-6271 From gambas.fr at ...626... Sat Nov 19 08:42:32 2011 From: gambas.fr at ...626... (Fabien Bodard) Date: Sat, 19 Nov 2011 08:42:32 +0100 Subject: [Gambas-user] gb3: structure declaration not allowed in a different module In-Reply-To: <4EC75CDB.4060005@...1887...> References: <4EC75CDB.4060005@...1887...> Message-ID: 2011/11/19 Kevin Fishburne : > I had structure declarations running out of my eyes and ears across > about 10 modules, so I decided to create a "Structures" module to > contain them all. Here's an example: > > ' Gambas module file > > ' Structure module > > ' General declarations. > > ' Audio effect structure. > Public Struct Audio_Effect ?' Structure containing one effect's data. > ? Sample As Sound ? ? ' Waveform data (file). > ? Chan As Channel ? ? ' Default channel to play on. > ? Current As Single ? ' Current amplitude. > ? Target As Single ? ?' Target amplitude. > ? Scale As Single ? ? ' Target amplitude multiplier. > ? Velocity As Single ?' Speed at which current amplitude is moving > toward target amplitude. > End Struct > > In the Audio module I'd have this: > > ' General declarations. > Public Environment[16] As Struct Structures.Audio_Effect ' Environmental > effects. > > When the array attempts creation I get an error saying that "Structures" > wasn't a structure. It also fails if I don't specify the module name prefix. > > Why can't I create an array of structures in module A using a structure > defined in module B? Is there some workaround other than moving all my > structure definitions back into the modules which reference them? no... structure are dependent to the module http://gambasdoc.org/help/lang/structdecl?v3 > -- > Kevin Fishburne > Eight Virtues > www: http://sales.eightvirtues.com > e-mail: sales at ...1887... > phone: (770) 853-6271 > > > ------------------------------------------------------------------------------ > All the data continuously generated in your IT infrastructure > contains a definitive record of customers, application performance, > security threats, fraudulent activity, and more. Splunk takes this > data and makes sense of it. IT sense. And common sense. > http://p.sf.net/sfu/splunk-novd2d > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Fabien Bodard From kevinfishburne at ...1887... Sat Nov 19 08:47:47 2011 From: kevinfishburne at ...1887... (Kevin Fishburne) Date: Sat, 19 Nov 2011 02:47:47 -0500 Subject: [Gambas-user] gb3: structure declaration not allowed in a different module In-Reply-To: References: <4EC75CDB.4060005@...1887...> Message-ID: <4EC75F23.4080407@...1887...> On 11/19/2011 02:42 AM, Fabien Bodard wrote: > 2011/11/19 Kevin Fishburne: >> I had structure declarations running out of my eyes and ears across >> about 10 modules, so I decided to create a "Structures" module to >> contain them all. Here's an example: >> >> ' Gambas module file >> >> ' Structure module >> >> ' General declarations. >> >> ' Audio effect structure. >> Public Struct Audio_Effect ' Structure containing one effect's data. >> Sample As Sound ' Waveform data (file). >> Chan As Channel ' Default channel to play on. >> Current As Single ' Current amplitude. >> Target As Single ' Target amplitude. >> Scale As Single ' Target amplitude multiplier. >> Velocity As Single ' Speed at which current amplitude is moving >> toward target amplitude. >> End Struct >> >> In the Audio module I'd have this: >> >> ' General declarations. >> Public Environment[16] As Struct Structures.Audio_Effect ' Environmental >> effects. >> >> When the array attempts creation I get an error saying that "Structures" >> wasn't a structure. It also fails if I don't specify the module name prefix. >> >> Why can't I create an array of structures in module A using a structure >> defined in module B? Is there some workaround other than moving all my >> structure definitions back into the modules which reference them? > no... structure are dependent to the module > > http://gambasdoc.org/help/lang/structdecl?v3 > That is super shitty. I'm assuming there's a good reason for that beyond my understanding since I've read that page so many times. What's worse is that I didn't back up my project prior to migrating the structure declarations, so I have to manually undo everything. Damn... -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sales at ...1887... phone: (770) 853-6271 From rmorgan62 at ...626... Sat Nov 19 10:06:07 2011 From: rmorgan62 at ...626... (Randall Morgan) Date: Sat, 19 Nov 2011 01:06:07 -0800 Subject: [Gambas-user] gb3: structure declaration not allowed in a different module In-Reply-To: <4EC75CDB.4060005@...1887...> References: <4EC75CDB.4060005@...1887...> Message-ID: Couldn't you simply change this to a class with only properties and get the functionality you're looking for? On Fri, Nov 18, 2011 at 11:38 PM, Kevin Fishburne < kevinfishburne at ...1887...> wrote: > I had structure declarations running out of my eyes and ears across > about 10 modules, so I decided to create a "Structures" module to > contain them all. Here's an example: > > ' Gambas module file > > ' Structure module > > ' General declarations. > > ' Audio effect structure. > Public Struct Audio_Effect ' Structure containing one effect's data. > Sample As Sound ' Waveform data (file). > Chan As Channel ' Default channel to play on. > Current As Single ' Current amplitude. > Target As Single ' Target amplitude. > Scale As Single ' Target amplitude multiplier. > Velocity As Single ' Speed at which current amplitude is moving > toward target amplitude. > End Struct > > In the Audio module I'd have this: > > ' General declarations. > Public Environment[16] As Struct Structures.Audio_Effect ' Environmental > effects. > > When the array attempts creation I get an error saying that "Structures" > wasn't a structure. It also fails if I don't specify the module name > prefix. > > Why can't I create an array of structures in module A using a structure > defined in module B? Is there some workaround other than moving all my > structure definitions back into the modules which reference them? > > -- > Kevin Fishburne > Eight Virtues > www: http://sales.eightvirtues.com > e-mail: sales at ...1887... > phone: (770) 853-6271 > > > > ------------------------------------------------------------------------------ > All the data continuously generated in your IT infrastructure > contains a definitive record of customers, application performance, > security threats, fraudulent activity, and more. Splunk takes this > data and makes sense of it. IT sense. And common sense. > http://p.sf.net/sfu/splunk-novd2d > _______________________________________________ > 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 gambas.fr at ...626... Sat Nov 19 10:49:49 2011 From: gambas.fr at ...626... (Fabien Bodard) Date: Sat, 19 Nov 2011 10:49:49 +0100 Subject: [Gambas-user] gb3: structure declaration not allowed in a different module In-Reply-To: References: <4EC75CDB.4060005@...1887...> Message-ID: 2011/11/19 Randall Morgan : > Couldn't you simply change this to a class with only properties and get the > functionality you're looking for? yep ... structure in gambas are quite different than the vb ones. In fact they are internal range value. To use structure in gambas like in vb you need to use a class like in java. Name it TClass in gambas3 you have the possibility to arrange the classes in directories ... use a special dir to put the TClasses in it. Structure are only for use in stream or external api call. Maybe in the future this way change, maybe not. Gambas evoluate slowly since 10 years so be patient. (slowly but we are always here :) ) for us since the start a Type struct is : 'Gambas Class Public sVar as string Public iVal as Integer the use Dim hMyType as new MyType hMyType.sVar = "toto" hMyType.iVal = 2 etc, etc if this explanation is not enougth please tel me exactly what yau want to do.... There is not many things not possible in gb > > On Fri, Nov 18, 2011 at 11:38 PM, Kevin Fishburne < > kevinfishburne at ...1887...> wrote: > >> I had structure declarations running out of my eyes and ears across >> about 10 modules, so I decided to create a "Structures" module to >> contain them all. Here's an example: >> >> ' Gambas module file >> >> ' Structure module >> >> ' General declarations. >> >> ' Audio effect structure. >> Public Struct Audio_Effect ?' Structure containing one effect's data. >> ? Sample As Sound ? ? ' Waveform data (file). >> ? Chan As Channel ? ? ' Default channel to play on. >> ? Current As Single ? ' Current amplitude. >> ? Target As Single ? ?' Target amplitude. >> ? Scale As Single ? ? ' Target amplitude multiplier. >> ? Velocity As Single ?' Speed at which current amplitude is moving >> toward target amplitude. >> End Struct >> >> In the Audio module I'd have this: >> >> ' General declarations. >> Public Environment[16] As Struct Structures.Audio_Effect ' Environmental >> effects. >> >> When the array attempts creation I get an error saying that "Structures" >> wasn't a structure. It also fails if I don't specify the module name >> prefix. >> >> Why can't I create an array of structures in module A using a structure >> defined in module B? Is there some workaround other than moving all my >> structure definitions back into the modules which reference them? >> >> -- >> Kevin Fishburne >> Eight Virtues >> www: http://sales.eightvirtues.com >> e-mail: sales at ...1887... >> phone: (770) 853-6271 >> >> >> >> ------------------------------------------------------------------------------ >> All the data continuously generated in your IT infrastructure >> contains a definitive record of customers, application performance, >> security threats, fraudulent activity, and more. Splunk takes this >> data and makes sense of it. IT sense. And common sense. >> http://p.sf.net/sfu/splunk-novd2d >> _______________________________________________ >> 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? > ------------------------------------------------------------------------------ > All the data continuously generated in your IT infrastructure > contains a definitive record of customers, application performance, > security threats, fraudulent activity, and more. Splunk takes this > data and makes sense of it. IT sense. And common sense. > http://p.sf.net/sfu/splunk-novd2d > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Fabien Bodard From gambas at ...1... Sat Nov 19 13:20:07 2011 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Sat, 19 Nov 2011 13:20:07 +0100 Subject: [Gambas-user] gb3: structure declaration not allowed in a different module In-Reply-To: <4EC75F23.4080407@...1887...> References: <4EC75CDB.4060005@...1887...> <4EC75F23.4080407@...1887...> Message-ID: <4EC79EF7.9070708@...1...> Le 19/11/2011 08:47, Kevin Fishburne a ?crit : > > That is super shitty. I'm assuming there's a good reason for that beyond > my understanding since I've read that page so many times. What's worse > is that I didn't back up my project prior to migrating the structure > declarations, so I have to manually undo everything. Damn... > > Sorry for that. Structures should be used only when: - You need to call an external C function that requires a C structure. - You want to send a bunch of structured bytes to a stream, or receive it. In all other cases, use a class. At the moment, structure declaration cannot be shared, because all source files must be compilable independently. This may change in the future as soon as I find a good way to do that. Regards, -- Beno?t Minisini From gambas at ...1... Sat Nov 19 13:25:08 2011 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Sat, 19 Nov 2011 13:25:08 +0100 Subject: [Gambas-user] Int function In-Reply-To: References: Message-ID: <4EC7A024.8080201@...1...> Le 19/11/2011 07:05, Fabien Bodard a ?crit : > Why Int(Float) return a float ? > For logical reason : it is a member of the floating point arithmetical functions. -- Beno?t Minisini From craig at ...2722... Sat Nov 19 22:50:00 2011 From: craig at ...2722... (Boyd, Craig) Date: Sat, 19 Nov 2011 15:50:00 -0600 Subject: [Gambas-user] MP3 Tags Message-ID: <4EC82488.7010805@...2722...> Hello All, I am not new to programming, but I am VERY new to Gambas. I found the example sound project and was able to play an MP3 ~ very easy & cool! So my first question to you guys is: Is it possible to use Gambas to retrieve MP3 tags and if so, how? Thanks, Craig From tobiasboe1 at ...20... Sat Nov 19 23:01:30 2011 From: tobiasboe1 at ...20... (tobias) Date: Sat, 19 Nov 2011 23:01:30 +0100 Subject: [Gambas-user] MP3 Tags In-Reply-To: <4EC82488.7010805@...2722...> References: <4EC82488.7010805@...2722...> Message-ID: <4EC8273A.1070607@...20...> hi, > Hello All, > > I am not new to programming, but I am VERY new to Gambas. I found the > example sound project and was able to play an MP3 ~ very easy& cool! > So my first question to you guys is: Is it possible to use Gambas to > retrieve MP3 tags and if so, how? > > Thanks, > > Craig you may want to check this from the doc: http://gambasdoc.org/help/lang/read (see "Example" which reads info from a wav file) and there has to be a specification of the meta data in mp3 files. (isn't it id3?) regards, tobi From gambas at ...1... Sun Nov 20 01:17:50 2011 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Sun, 20 Nov 2011 01:17:50 +0100 Subject: [Gambas-user] MP3 Tags In-Reply-To: <4EC82488.7010805@...2722...> References: <4EC82488.7010805@...2722...> Message-ID: <4EC8472E.60605@...1...> Le 19/11/2011 22:50, Boyd, Craig a ?crit : > Hello All, > > I am not new to programming, but I am VERY new to Gambas. I found the > example sound project and was able to play an MP3 ~ very easy& cool! > So my first question to you guys is: Is it possible to use Gambas to > retrieve MP3 tags and if so, how? > > Thanks, > > Craig > I'm sure there is some command-line tool that can do that for you and you will just have to call it from Gambas and get the result. I just don't know its name! :-) Regards, -- Beno?t Minisini From ea7dfh at ...2382... Sun Nov 20 01:37:20 2011 From: ea7dfh at ...2382... (Jesus) Date: Sun, 20 Nov 2011 01:37:20 +0100 Subject: [Gambas-user] MP3 Tags In-Reply-To: <4EC8472E.60605@...1...> References: <4EC82488.7010805@...2722...> <4EC8472E.60605@...1...> Message-ID: <4EC84BC0.7070705@...2382...> El 20/11/11 01:17, Beno?t Minisini escribi?: > Le 19/11/2011 22:50, Boyd, Craig a ?crit : >> Hello All, >> >> I am not new to programming, but I am VERY new to Gambas. I found the >> example sound project and was able to play an MP3 ~ very easy& cool! >> So my first question to you guys is: Is it possible to use Gambas to >> retrieve MP3 tags and if so, how? >> >> Thanks, >> >> Craig >> > > I'm sure there is some command-line tool that can do that for you and > you will just have to call it from Gambas and get the result. > > I just don't know its name! :-) > > Regards, > Yes. This is the same advice I gave the other day to a guy. I have successfully tested "id3info" command from "libid3-tools" package. Now, it's a matter of calling it from gambas using shell or exec. Regards -- Jesus Guardon From rmorgan62 at ...626... Sun Nov 20 01:57:51 2011 From: rmorgan62 at ...626... (Randall Morgan) Date: Sat, 19 Nov 2011 16:57:51 -0800 Subject: [Gambas-user] Using External Libraries Message-ID: Hi All, First, I have read, reread, and re-re-re-read the page at: http://gambasdoc.org/help/howto/extern?v3 and I still seem to be missing something... I am trying to use TidyLib in Gambas 3. I have been able to create documents and buffers but seem to be unable to use the buffers I create with Tidy. Tidy uses the C functions alloc and realloc internally for memory allocation. It stores information in structures of various types and returns a pointer to the structures it creates (often these structures are not much more than grouped pointers to other objects). In theory, I should be able to accept a pointer to a structure and then pass that pointer to other tidy functions just as i would in C. My file is quit long so I am only posting the relevant code here. If I define a pointer to a buffer and then pass the pointer to tidyInitBuf(myptr) I get a success return code and printing the pointer value reveals the pointer is no longer null. However, any attempt to pass the pointer back to one of tidy's other functions results in a SEG Fault error when the buffer is used. What am I missing here? '====================================== ' Gambas class file '' @Class: HTMLTidy '' @File: HTMLTidy.class '' @Ver: 0.1.0 '' @Date: '' @ Desc: A wrapper for HtmlTidy's libtidy c library '' '' @Note: Not yet ready for prime time... '===================================== Export Library "libtidy" ' Declare external library ' --- Tidy Types Defines --- ' Some of these Defs are just for reference and may not be used ' in the application ' -- Tidy Buffers Public Struct TidyBufferType allocator As Pointer ' Memory allocator bp As Pointer ' Pointer To bytes size As Integer ' #bytes currently In use allocated As Integer ' #bytes allocated tNext As Integer ' Offset Of current Input position End Struct ' -- Tidy Nodes Public Struct NodeType nparent As Pointer ' tree structure nprev As Pointer nnext As Pointer ncontent As Pointer nlast As Pointer attributes As Pointer ' pointer to attribute value structure nwas As Pointer ' Old tag before it was changed ntag As Pointer ' tag's dictionary definition element As Pointer ' name (NULL for text nodes) nstart As Integer ' start of span into text array nend As Integer ' end of span onto text array ntype As Integer ' TextNode, StartTag, EndTag, etc... nline As Integer ' Current line of document ncolumn As Integer ' current column of document nclosed As Boolean ' true if closed by explicit end tag nimplicit As Boolean ' true if inferred nlinebreak As Boolean ' true if followed by a line break otext As String ' Used on with TIDY_STORE_ORIGINAL_TEXT End Struct ' --- Tidy Memory and Structure Allocation methods --- ' TidyDoc tidyCreate(void) Extern tidyCreate() As Pointer ' Initialize Buffer Extern tidyBufInit(buf As Pointer) ' Free Ouptut and error buffers Extern tidyBufFree(pOutput As Pointer) ' Capture diagnostics in error buffer ' tidySetErrorBuffer( tdoc, &errbuf ); Capture diagnostics Extern tidySetErrorBuffer(tdoc As Pointer, errbuf As Pointer) As Integer '-- Tidy Set Option methods --- ' Set Boolean Option value ' tidyOptSetBool( tdoc, TidyXhtmlOut, yes ); // Convert to XHTML Extern tidyOptSetBool(tdoc As Pointer, Option As Pointer, value As Boolean) As Boolean '--- Tidy Document methods --- ' Parse the Input ' tidyParseString( tdoc, input ); Parse the input Extern tidyParseString(tdoc As Pointer, sInput As Pointer) As Integer ' Tidy it up! Extern tidyCleanAndRepair(tdoc As Pointer) As Integer ' Get Error Codes, if any Extern tidyRunDiagnostics(tdoc As Pointer) As Integer ' Pretty Print Extern tidySaveBuffer(tdoc As Pointer, pOutput As Pointer) As Integer Public pTidyDoc As Pointer Public pErrBuf As Pointer pTidyDoc = tidyCreate() pErrBuff = tidyInitBuf(VarPtr(pErrBuf)) ' tidy should be allocating memory and returning a pointer to a buffer structure. In fact tidy does return a success code. ' However the following line results in a Severe Error code being returned by tidy. tidySetErrorBuf(pTidyDoc, pErrBuff) 'After this call all further calls to any tidy function that makes use of the error buffer results in a segment fault. ' If I allow tidy to create and manage it's own error buffer( which it does using the same functions I called manually, then everything runs smoothly. ' So what have I missed in the use of the pointer? Lastly, in order to read data from a structure that I have obtained a pointer to from a tidy function, do I need to use READ? For example, the tidyGetRoot() method returns a pointer to a TidyNode structure that tidy has created in memory. How can I best access the various elements in the node structure and make them avaliable as a Gambas 3 variable. Perhaps members of a Gambas class or structure. Sorry for the lengthy post and thanks to anyone who can provide a little insight for me... -- 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 gambas at ...2524... Sun Nov 20 02:11:33 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Sun, 20 Nov 2011 01:11:33 +0000 Subject: [Gambas-user] Issue 150 in gambas: Container property inconsistency Message-ID: <0-6813199134517018827-4785460213341692956-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 150 by jussi.la... at ...626...: Container property inconsistency http://code.google.com/p/gambas/issues/detail?id=150 1) Describe the problem. " Property Spacing As Boolean Returns or sets the number of pixels that separates children controls. " Property is boolean type, but help text suggest to integer type. Problem applies to at least to VPanel, HPanel, VBox and HBox. 2) GIVE THE FOLLOWING INFORMATIONS (if they are appropriate): Version: TRUNK Revision: r4250 Operating system: Linux Distribution: Xubuntu Architecture: x86_64 GUI component: QT4 and GTK+ Desktop used: XFCE From gambas at ...2524... Sun Nov 20 02:55:40 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Sun, 20 Nov 2011 01:55:40 +0000 Subject: [Gambas-user] Issue 150 in gambas: Container property inconsistency In-Reply-To: <0-6813199134517018827-4785460213341692956-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-4785460213341692956-gambas=googlecode.com@...2524...> Message-ID: <1-6813199134517018827-4785460213341692956-gambas=googlecode.com@...2524...> Updates: Status: Fixed Labels: -Version Version-TRUNK Comment #1 on issue 150 by benoit.m... at ...626...: Container property inconsistency http://code.google.com/p/gambas/issues/detail?id=150 the documentation should be fixed now. From craig at ...2722... Sun Nov 20 03:15:35 2011 From: craig at ...2722... (Boyd, Craig) Date: Sat, 19 Nov 2011 20:15:35 -0600 Subject: [Gambas-user] MP3 Tags In-Reply-To: <4EC84BC0.7070705@...2382...> References: <4EC82488.7010805@...2722...> <4EC8472E.60605@...1...> <4EC84BC0.7070705@...2382...> Message-ID: <4EC862C7.5070909@...2722...> id3info is VERY helpful! Thanks everyone for your input/reply! Craig On 11/19/2011 06:37 PM, Jesus wrote: > El 20/11/11 01:17, Beno?t Minisini escribi?: >> Le 19/11/2011 22:50, Boyd, Craig a ?crit : >>> Hello All, >>> >>> I am not new to programming, but I am VERY new to Gambas. I found the >>> example sound project and was able to play an MP3 ~ very easy& cool! >>> So my first question to you guys is: Is it possible to use Gambas to >>> retrieve MP3 tags and if so, how? >>> >>> Thanks, >>> >>> Craig >>> >> I'm sure there is some command-line tool that can do that for you and >> you will just have to call it from Gambas and get the result. >> >> I just don't know its name! :-) >> >> Regards, >> > > Yes. This is the same advice I gave the other day to a guy. > > I have successfully tested "id3info" command from "libid3-tools" package. > > Now, it's a matter of calling it from gambas using shell or exec. > > Regards From rmorgan62 at ...626... Sun Nov 20 05:42:11 2011 From: rmorgan62 at ...626... (Randall Morgan) Date: Sat, 19 Nov 2011 20:42:11 -0800 Subject: [Gambas-user] Memory Stream Help Message-ID: Hi All, Can someone give me a sample of using memory streams to read and write data to/from memory. I am needing to read data from a C structure allocated by the external library (tidy) with the pointer returned to Gambas. I read the page on external libraries many times before learning the Gambas 3 does not allow the use of READ on pointers any longer. This should be updated on the how to use external libraries page in the section "More on Pointers" Still, with the given documentation for Gambas3 I am unable to get my program to compile. So a sample of reading from memory using a pointer would be very helpful. Thanks! -- 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... Sun Nov 20 15:17:08 2011 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Sun, 20 Nov 2011 16:17:08 +0200 Subject: [Gambas-user] Memory Stream Help In-Reply-To: References: Message-ID: I don't have any simple runnable example right now, so I hope this helps: Dim pPointer As Pointer Dim hStream As Stream Dim iYourData As Integer Dim ii As Integer Dim iNumberOfDataPoints As Integer = x Dim itmp As Integer pPointer = Alloc(SizeOf(gb.Integer), iNumberOfDataPoints) ExternalFunction(pPointer) ''Function takes pointer for output as parameter. hStream = Memory pPolku For Read For ii = 1 To iNumberOfDataPoints itmp = Read #hStream As Integer iYourData.Add(itmp) Next Close #hStream Jussi On Sun, Nov 20, 2011 at 06:42, Randall Morgan wrote: > Hi All, > > Can someone give me a sample of using memory streams to read and write data > to/from memory. > > I am needing to read data from a C structure allocated by the external > library (tidy) with the pointer returned to Gambas. > > I read the page on external libraries many times before learning the Gambas > 3 does not allow the use of READ on pointers any longer. > This should be updated on the how to use external libraries page in the > section "More on Pointers" > > Still, with the given documentation for Gambas3 I am unable to get my > program to compile. So a sample of reading from memory using a pointer > would be very helpful. > > Thanks! > > -- > 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? > > ------------------------------------------------------------------------------ > All the data continuously generated in your IT infrastructure > contains a definitive record of customers, application performance, > security threats, fraudulent activity, and more. Splunk takes this > data and makes sense of it. IT sense. And common sense. > http://p.sf.net/sfu/splunk-novd2d > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From jussi.lahtinen at ...626... Sun Nov 20 15:19:00 2011 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Sun, 20 Nov 2011 16:19:00 +0200 Subject: [Gambas-user] Memory Stream Help In-Reply-To: References: Message-ID: Sorry, hStream = Memory pPointer For Read Jussi On Sun, Nov 20, 2011 at 16:17, Jussi Lahtinen wrote: > I don't have any simple runnable example right now, so I hope this helps: > > Dim pPointer As Pointer > Dim hStream As Stream > Dim iYourData As Integer > Dim ii As Integer > Dim iNumberOfDataPoints As Integer = x > Dim itmp As Integer > > pPointer = Alloc(SizeOf(gb.Integer), iNumberOfDataPoints) > > ExternalFunction(pPointer) ''Function takes pointer for output as > parameter. > > hStream = Memory pPolku For Read > > For ii = 1 To iNumberOfDataPoints > itmp = Read #hStream As Integer > iYourData.Add(itmp) > Next > > Close #hStream > > > Jussi > > > > > On Sun, Nov 20, 2011 at 06:42, Randall Morgan wrote: > >> Hi All, >> >> Can someone give me a sample of using memory streams to read and write >> data >> to/from memory. >> >> I am needing to read data from a C structure allocated by the external >> library (tidy) with the pointer returned to Gambas. >> >> I read the page on external libraries many times before learning the >> Gambas >> 3 does not allow the use of READ on pointers any longer. >> This should be updated on the how to use external libraries page in the >> section "More on Pointers" >> >> Still, with the given documentation for Gambas3 I am unable to get my >> program to compile. So a sample of reading from memory using a pointer >> would be very helpful. >> >> Thanks! >> >> -- >> 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? >> >> ------------------------------------------------------------------------------ >> All the data continuously generated in your IT infrastructure >> contains a definitive record of customers, application performance, >> security threats, fraudulent activity, and more. Splunk takes this >> data and makes sense of it. IT sense. And common sense. >> http://p.sf.net/sfu/splunk-novd2d >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > From rmorgan62 at ...626... Sun Nov 20 18:33:12 2011 From: rmorgan62 at ...626... (Randall Morgan) Date: Sun, 20 Nov 2011 09:33:12 -0800 Subject: [Gambas-user] Memory Stream Help In-Reply-To: References: Message-ID: Thanks, I worked out my issue was I was passing a null pointer to the memory function and then calling my external function. The error I kept getting was a type mismatch and did not make sense to me as the docs led me to believe that the Memory steam was a declaration, not a function on an actual pointer. It was late here and I may have misread the docs. A sample in the documentation would be great as well as adding a note to the page on using external libraries on how to Read and write to memory streams from Gambas 3. That document has other note about using Gambas 3 but does not mention that Gambas 3 can no longer use pointers to read from memory as the example shows. I only found that information while reading through the stream documentation. Thank you for your response! On Sun, Nov 20, 2011 at 6:19 AM, Jussi Lahtinen wrote: > Sorry, > hStream = Memory pPointer For Read > > Jussi > > > > On Sun, Nov 20, 2011 at 16:17, Jussi Lahtinen >wrote: > > > I don't have any simple runnable example right now, so I hope this helps: > > > > Dim pPointer As Pointer > > Dim hStream As Stream > > Dim iYourData As Integer > > Dim ii As Integer > > Dim iNumberOfDataPoints As Integer = x > > Dim itmp As Integer > > > > pPointer = Alloc(SizeOf(gb.Integer), iNumberOfDataPoints) > > > > ExternalFunction(pPointer) ''Function takes pointer for output as > > parameter. > > > > hStream = Memory pPolku For Read > > > > For ii = 1 To iNumberOfDataPoints > > itmp = Read #hStream As Integer > > iYourData.Add(itmp) > > Next > > > > Close #hStream > > > > > > Jussi > > > > > > > > > > On Sun, Nov 20, 2011 at 06:42, Randall Morgan > wrote: > > > >> Hi All, > >> > >> Can someone give me a sample of using memory streams to read and write > >> data > >> to/from memory. > >> > >> I am needing to read data from a C structure allocated by the external > >> library (tidy) with the pointer returned to Gambas. > >> > >> I read the page on external libraries many times before learning the > >> Gambas > >> 3 does not allow the use of READ on pointers any longer. > >> This should be updated on the how to use external libraries page in the > >> section "More on Pointers" > >> > >> Still, with the given documentation for Gambas3 I am unable to get my > >> program to compile. So a sample of reading from memory using a pointer > >> would be very helpful. > >> > >> Thanks! > >> > >> -- > >> 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? > >> > >> > ------------------------------------------------------------------------------ > >> All the data continuously generated in your IT infrastructure > >> contains a definitive record of customers, application performance, > >> security threats, fraudulent activity, and more. Splunk takes this > >> data and makes sense of it. IT sense. And common sense. > >> http://p.sf.net/sfu/splunk-novd2d > >> _______________________________________________ > >> Gambas-user mailing list > >> Gambas-user at lists.sourceforge.net > >> https://lists.sourceforge.net/lists/listinfo/gambas-user > >> > > > > > > ------------------------------------------------------------------------------ > All the data continuously generated in your IT infrastructure > contains a definitive record of customers, application performance, > security threats, fraudulent activity, and more. Splunk takes this > data and makes sense of it. IT sense. And common sense. > http://p.sf.net/sfu/splunk-novd2d > _______________________________________________ > 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 johny.provoost at ...27... Sun Nov 20 20:01:15 2011 From: johny.provoost at ...27... (Johny Provoost) Date: Sun, 20 Nov 2011 20:01:15 +0100 Subject: [Gambas-user] MP3 Tags In-Reply-To: <4EC862C7.5070909@...2722...> References: <4EC82488.7010805@...2722...> <4EC8472E.60605@...1...> <4EC84BC0.7070705@...2382...> <4EC862C7.5070909@...2722...> Message-ID: <4EC94E7B.3060003@...27...> Op 20-11-11 03:15, Boyd, Craig schreef: > id3info is VERY helpful! Thanks everyone for your input/reply! > > Craig > > On 11/19/2011 06:37 PM, Jesus wrote: >> El 20/11/11 01:17, Beno?t Minisini escribi?: >>> Le 19/11/2011 22:50, Boyd, Craig a ?crit : >>>> Hello All, >>>> >>>> I am not new to programming, but I am VERY new to Gambas. I found the >>>> example sound project and was able to play an MP3 ~ very easy& cool! >>>> So my first question to you guys is: Is it possible to use Gambas to >>>> retrieve MP3 tags and if so, how? >>>> >>>> Thanks, >>>> >>>> Craig >>>> >>> I'm sure there is some command-line tool that can do that for you and >>> you will just have to call it from Gambas and get the result. >>> >>> I just don't know its name! :-) >>> >>> Regards, >>> >> Yes. This is the same advice I gave the other day to a guy. >> >> I have successfully tested "id3info" command from "libid3-tools" package. >> >> Now, it's a matter of calling it from gambas using shell or exec. >> >> Regards exiftool is also interesting In Gambas2 SHELL "exiftool " & "\"" & vFile & "\"" & " >" & "/home/johny/tagstmp " WAIT where vfile is the mp3 file and /home/johny/tagstmp is the file where all the tags are written to. if you put a picture in the mp3 file as a cover you can get it with SHELL "exiftool -b -Picture " & "\"" & vfile & "\"" & " >" & FMain.EigenDir & "/home/johny/cover.jpg " WAIT From rterry at ...1823... Mon Nov 21 22:13:04 2011 From: rterry at ...1823... (richard terry) Date: Tue, 22 Nov 2011 08:13:04 +1100 Subject: [Gambas-user] Question - how to just run part of ones larger program Message-ID: <201111220813.04877.rterry@...1823...> Not sure I know how to phrase this question. My program is rather large. The secretarial staff wanted me to 'split off' the appointments module, so they can just run it side/by/side with the rest of the medical program, ie in separate window, so they don't have to flick back to the appointments module all the time when doing other things. Any ideas Thanks RIchard From bbruen at ...2308... Mon Nov 21 22:28:45 2011 From: bbruen at ...2308... (Bruce Bruen) Date: Tue, 22 Nov 2011 07:58:45 +1030 Subject: [Gambas-user] Question - how to just run part of ones larger program In-Reply-To: <201111220813.04877.rterry@...1823...> References: <201111220813.04877.rterry@...1823...> Message-ID: <1321910925.18865.0.camel@...2688...> On Tue, 2011-11-22 at 08:13 +1100, richard terry wrote: > Not sure I know how to phrase this question. > > My program is rather large. > > The secretarial staff wanted me to 'split off' the appointments module, so they > can just run it side/by/side with the rest of the medical program, ie in > separate window, so they don't have to flick back to the appointments module > all the time when doing other things. > > Any ideas > > Thanks > > RIchard > Tell them to start the app twice and leave one open at the appointments window??? From support at ...2529... Mon Nov 21 23:11:40 2011 From: support at ...2529... (John Spikowski) Date: Mon, 21 Nov 2011 14:11:40 -0800 Subject: [Gambas-user] Question - how to just run part of ones larger program In-Reply-To: <201111220813.04877.rterry@...1823...> References: <201111220813.04877.rterry@...1823...> Message-ID: <1321913500.2302.8.camel@...1833...> On Tue, 2011-11-22 at 08:13 +1100, richard terry wrote: > Not sure I know how to phrase this question. > > My program is rather large. > > The secretarial staff wanted me to 'split off' the appointments module, so they > can just run it side/by/side with the rest of the medical program, ie in > separate window, so they don't have to flick back to the appointments module > all the time when doing other things. > > Any ideas I like the dashboard concept in easyGP but the MDI is limiting. I think you should launch separate standalone windows for tasks one might want to keep open on their desktop. Only when the launcher/dashboard is closed will all child windows be closed also. (should ask user first and allow an abort option to the application close process) I would like to see easyGP adapt a plug-in / extension module concept. As each practice is similar so are they unique. (GP / Urology / ...) This would allow a broader adaption to the package with plug-ins to make it unique. From gambas at ...1... Mon Nov 21 23:54:05 2011 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Mon, 21 Nov 2011 23:54:05 +0100 Subject: [Gambas-user] Memory Stream Help In-Reply-To: References: Message-ID: <4ECAD68D.1030405@...1...> Le 20/11/2011 05:42, Randall Morgan a ?crit : > Hi All, > > Can someone give me a sample of using memory streams to read and write data > to/from memory. > > I am needing to read data from a C structure allocated by the external > library (tidy) with the pointer returned to Gambas. > > I read the page on external libraries many times before learning the Gambas > 3 does not allow the use of READ on pointers any longer. > This should be updated on the how to use external libraries page in the > section "More on Pointers" > > Still, with the given documentation for Gambas3 I am unable to get my > program to compile. So a sample of reading from memory using a pointer > would be very helpful. > > Thanks! > If you have the definition of the C structure, you should use a Gambas structure to read or write it. -- Beno?t Minisini From rterry at ...1823... Tue Nov 22 00:28:37 2011 From: rterry at ...1823... (richard terry) Date: Tue, 22 Nov 2011 10:28:37 +1100 Subject: [Gambas-user] Question - how to just run part of ones larger program In-Reply-To: <1321913500.2302.8.camel@...1833...> References: <201111220813.04877.rterry@...1823...> <1321913500.2302.8.camel@...1833...> Message-ID: <201111221028.37109.rterry@...1823...> On Tuesday 22 November 2011 09:11:40 John Spikowski wrote: > On Tue, 2011-11-22 at 08:13 +1100, richard terry wrote: > > Not sure I know how to phrase this question. > > > > My program is rather large. > > > > The secretarial staff wanted me to 'split off' the appointments module, > > so they can just run it side/by/side with the rest of the medical > > program, ie in separate window, so they don't have to flick back to the > > appointments module all the time when doing other things. > > > > Any ideas > > I like the dashboard concept in easyGP but the MDI is limiting. Can you explain this. > I think > you should launch separate standalone windows for tasks one might want > to keep open on their desktop. Only when the launcher/dashboard is > closed will all child windows be closed also. (should ask user first and > allow an abort option to the application close process) > > I would like to see easyGP adapt a plug-in / extension module concept. > As each practice is similar so are they unique. (GP / Urology / ...) > This would allow a broader adaption to the package with plug-ins to make > it unique. Agree with that, but (sigh) would need developers. Richard > > > > > --------------------------------------------------------------------------- > --- All the data continuously generated in your IT infrastructure > contains a definitive record of customers, application performance, > security threats, fraudulent activity, and more. Splunk takes this > data and makes sense of it. IT sense. And common sense. > http://p.sf.net/sfu/splunk-novd2d > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From rterry at ...1823... Tue Nov 22 00:29:55 2011 From: rterry at ...1823... (richard terry) Date: Tue, 22 Nov 2011 10:29:55 +1100 Subject: [Gambas-user] Question - how to just run part of ones larger program In-Reply-To: <1321910925.18865.0.camel@...2688...> References: <201111220813.04877.rterry@...1823...> <1321910925.18865.0.camel@...2688...> Message-ID: <201111221029.55120.rterry@...1823...> On Tuesday 22 November 2011 08:28:45 Bruce Bruen wrote: > On Tue, 2011-11-22 at 08:13 +1100, richard terry wrote: > > Not sure I know how to phrase this question. > > > > My program is rather large. > > > > The secretarial staff wanted me to 'split off' the appointments module, > > so they can just run it side/by/side with the rest of the medical > > program, ie in separate window, so they don't have to flick back to the > > appointments module all the time when doing other things. > > > > Any ideas > > > > Thanks > > > > RIchard > > Tell them to start the app twice and leave one open at the appointments > window??? No, will need slightly different design, sure there must be a way to just use part of the exe. Richard > --------------------------------------------------------------------------- > --- All the data continuously generated in your IT infrastructure > contains a definitive record of customers, application performance, > security threats, fraudulent activity, and more. Splunk takes this > data and makes sense of it. IT sense. And common sense. > http://p.sf.net/sfu/splunk-novd2d > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From nando_f at ...951... Tue Nov 22 07:32:22 2011 From: nando_f at ...951... (nando) Date: Tue, 22 Nov 2011 02:32:22 -0400 Subject: [Gambas-user] Question - how to just run part of ones larger program In-Reply-To: <201111221029.55120.rterry@...1823...> References: <201111220813.04877.rterry@...1823...> <1321910925.18865.0.camel@...2688...> <201111221029.55120.rterry@...1823...> Message-ID: <20111122063006.M77233@...951...> You could run a second copy from the first. Place a specific word on the command line as a parameter so that the copy will understand to show the specific screen desired and perhaps hide other menus. You can tailor startup to do something specific based on command line parameter(s). -Nando ---------- Original Message ----------- From: richard terry To: mailing list for gambas users Sent: Tue, 22 Nov 2011 10:29:55 +1100 Subject: Re: [Gambas-user] Question - how to just run part of ones larger program > On Tuesday 22 November 2011 08:28:45 Bruce Bruen wrote: > > On Tue, 2011-11-22 at 08:13 +1100, richard terry wrote: > > > Not sure I know how to phrase this question. > > > > > > My program is rather large. > > > > > > The secretarial staff wanted me to 'split off' the appointments module, > > > so they can just run it side/by/side with the rest of the medical > > > program, ie in separate window, so they don't have to flick back to the > > > appointments module all the time when doing other things. > > > > > > Any ideas > > > > > > Thanks > > > > > > RIchard > > > > Tell them to start the app twice and leave one open at the appointments > > window??? > No, will need slightly different design, sure there must be a way to just use > part of the exe. > > Richard > > > --------------------------------------------------------------------------- > > --- All the data continuously generated in your IT infrastructure > > contains a definitive record of customers, application performance, > > security threats, fraudulent activity, and more. Splunk takes this > > data and makes sense of it. IT sense. And common sense. > > http://p.sf.net/sfu/splunk-novd2d > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > ------------------------------------------------------------------------------ > All the data continuously generated in your IT infrastructure > contains a definitive record of customers, application performance, > security threats, fraudulent activity, and more. Splunk takes this > data and makes sense of it. IT sense. And common sense. > http://p.sf.net/sfu/splunk-novd2d > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user ------- End of Original Message ------- From rterry at ...1823... Tue Nov 22 08:02:42 2011 From: rterry at ...1823... (richard terry) Date: Tue, 22 Nov 2011 18:02:42 +1100 Subject: [Gambas-user] Question - how to just run part of ones larger program In-Reply-To: <20111122063006.M77233@...951...> References: <201111220813.04877.rterry@...1823...> <201111221029.55120.rterry@...1823...> <20111122063006.M77233@...951...> Message-ID: <201111221802.42440.rterry@...1823...> On Tuesday 22 November 2011 17:32:22 nando wrote: > You could run a second copy from the first. Place a specific word on the > command line as a parameter so that the copy will understand to show the > specific screen desired and perhaps hide other menus. You can tailor > startup to do something specific based on command line parameter(s). I'm sure there was something on the list a year or so ago, which meant you could start off from somewhere, maybe benoit will reply. richard > -Nando > > > ---------- Original Message ----------- > From: richard terry > To: mailing list for gambas users > Sent: Tue, 22 Nov 2011 10:29:55 +1100 > Subject: Re: [Gambas-user] Question - how to just run part of ones larger > program > > > On Tuesday 22 November 2011 08:28:45 Bruce Bruen wrote: > > > On Tue, 2011-11-22 at 08:13 +1100, richard terry wrote: > > > > Not sure I know how to phrase this question. > > > > > > > > My program is rather large. > > > > > > > > The secretarial staff wanted me to 'split off' the appointments > > > > module, so they can just run it side/by/side with the rest of the > > > > medical program, ie in separate window, so they don't have to flick > > > > back to the appointments module all the time when doing other things. > > > > > > > > Any ideas > > > > > > > > Thanks > > > > > > > > RIchard > > > > > > Tell them to start the app twice and leave one open at the appointments > > > window??? > > > > No, will need slightly different design, sure there must be a way to just > > use part of the exe. > > > > Richard > > > > > ----------------------------------------------------------------------- > > >---- --- All the data continuously generated in your IT infrastructure > > > contains a definitive record of customers, application performance, > > > security threats, fraudulent activity, and more. Splunk takes this data > > > and makes sense of it. IT sense. And common sense. > > > http://p.sf.net/sfu/splunk-novd2d > > > _______________________________________________ > > > Gambas-user mailing list > > > Gambas-user at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > ------------------------------------------------------------------------- > >----- All the data continuously generated in your IT infrastructure > > contains a definitive record of customers, application performance, > > security threats, fraudulent activity, and more. Splunk takes this > > data and makes sense of it. IT sense. And common sense. > > http://p.sf.net/sfu/splunk-novd2d > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > ------- End of Original Message ------- > > > --------------------------------------------------------------------------- > --- All the data continuously generated in your IT infrastructure > contains a definitive record of customers, application performance, > security threats, fraudulent activity, and more. Splunk takes this > data and makes sense of it. IT sense. And common sense. > http://p.sf.net/sfu/splunk-novd2d > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From eilert-sprachen at ...221... Tue Nov 22 08:38:10 2011 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Tue, 22 Nov 2011 08:38:10 +0100 Subject: [Gambas-user] Question - how to just run part of ones larger program In-Reply-To: <20111122063006.M77233@...951...> References: <201111220813.04877.rterry@...1823...> <1321910925.18865.0.camel@...2688...> <201111221029.55120.rterry@...1823...> <20111122063006.M77233@...951...> Message-ID: <4ECB5162.8060802@...221...> Am 22.11.2011 07:32, schrieb nando: > You could run a second copy from the first. Place a specific word on the command line as a > parameter so that the copy will understand to show the specific screen desired > and perhaps hide other menus. You can tailor startup to do something specific > based on command line parameter(s). > -Nando > Basically I think this is a good idea. There are two things, however, which have to be considered here. First, if your program writes configuration data e. g. via the gb.settings, only one of them must be able to do so when you close the program. I wouldn't know how to solve this with gb.settings. When you use your own function for it, you will be able to set a flag that keeps it from writing twice. The main program must block its calendar part as long as the calendar part runs stand-alone. The calendar part must block the other functions on his side. Otherwise you might run into problems if some of the users think "oh now I don't feel to click back to this function on that screen, just do it here...". Users do so. Believe me :-) Rolf From ext4 at ...1661... Tue Nov 22 09:10:18 2011 From: ext4 at ...1661... (Ext4) Date: Tue, 22 Nov 2011 09:10:18 +0100 (CET) Subject: [Gambas-user] Report with Gambas 3 Message-ID: <16679282.3082.1321949418120.JavaMail.www@...2723...> Hi all, I'm new in gambas (6 months) and I'm writing a small application that manages data in a MySQL database. I started my apprenticeship with Gambas3 and I encountered a problem I can not solve alone. For prints I saw that there were two solutions. The component Gb.report and class PdfWriter (http://www.gambas-it.org/wp/?page_id=21). Gb.report seems more complete, but is more difficult to use. PDFWriter is very easy to use. The two solutions are they perennial? What do you recommend, knowing that I'm not very good with Gambas3? Thank you for your advice. From gambas at ...1... Tue Nov 22 09:18:19 2011 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Tue, 22 Nov 2011 09:18:19 +0100 Subject: [Gambas-user] Question - how to just run part of ones larger program In-Reply-To: <201111221802.42440.rterry@...1823...> References: <201111220813.04877.rterry@...1823...> <201111221029.55120.rterry@...1823...> <20111122063006.M77233@...951...> <201111221802.42440.rterry@...1823...> Message-ID: <4ECB5ACB.20206@...1...> Le 22/11/2011 08:02, richard terry a ?crit : > On Tuesday 22 November 2011 17:32:22 nando wrote: >> You could run a second copy from the first. Place a specific word on the >> command line as a parameter so that the copy will understand to show the >> specific screen desired and perhaps hide other menus. You can tailor >> startup to do something specific based on command line parameter(s). > I'm sure there was something on the list a year or so ago, which meant you > could start off from somewhere, maybe benoit will reply. > > richard > I don't understand what you need exactly. Can you elaborate? -- Beno?t Minisini From Karl.Reinl at ...2345... Tue Nov 22 10:42:15 2011 From: Karl.Reinl at ...2345... (Charlie Reinl) Date: Tue, 22 Nov 2011 10:42:15 +0100 Subject: [Gambas-user] Report with Gambas 3 In-Reply-To: <16679282.3082.1321949418120.JavaMail.www@...2723...> References: <16679282.3082.1321949418120.JavaMail.www@...2723...> Message-ID: <1321954935.6388.2.camel@...40...> Am Dienstag, den 22.11.2011, 09:10 +0100 schrieb Ext4: > Hi all, > > I'm new in gambas (6 months) and I'm writing a small application that manages data in a MySQL database. > I started my apprenticeship with Gambas3 and I encountered a problem I can not solve alone. > For prints I saw that there were two solutions. The component Gb.report and class PdfWriter (http://www.gambas-it.org/wp/?page_id=21). > Gb.report seems more complete, but is more difficult to use. > PDFWriter is very easy to use. > The two solutions are they perennial? > What do you recommend, knowing that I'm not very good with Gambas3? > > Thank you for your advice. Salut, the PDFWriter is for gambas2, so it is not said, it will work for gambas3 -- Amicalement Charlie From rterry at ...1823... Tue Nov 22 11:11:24 2011 From: rterry at ...1823... (richard terry) Date: Tue, 22 Nov 2011 21:11:24 +1100 Subject: [Gambas-user] Question - how to just run part of ones larger program In-Reply-To: <4ECB5ACB.20206@...1...> References: <201111220813.04877.rterry@...1823...> <201111221802.42440.rterry@...1823...> <4ECB5ACB.20206@...1...> Message-ID: <201111222111.24285.rterry@...1823...> On Tuesday 22 November 2011 19:18:19 Beno?t Minisini wrote: > Le 22/11/2011 08:02, richard terry a ?crit : > > On Tuesday 22 November 2011 17:32:22 nando wrote: > >> You could run a second copy from the first. Place a specific word on the > >> command line as a parameter so that the copy will understand to show > >> the specific screen desired and perhaps hide other menus. You can > >> tailor startup to do something specific based on command line > >> parameter(s). > > > > I'm sure there was something on the list a year or so ago, which meant > > you could start off from somewhere, maybe benoit will reply. > > > > richard > > I don't understand what you need exactly. Can you elaborate? > ok, thanks for replying, not sure this will make sense In my project, I have a file I just called modStartup. This brings up a logon- screen and provided the user types in a valid adress/database name, username and password it logs on to the program. What happens then depends on the 'role' of the user, for example in my role as a clinical user the interface options presented are different from the clerical user. The clerical staff, get an outlook style menu on the left side, and each 'section' lets them do things , eg allocate scanned documents, enter details into the patient database, use the document finder if a patient rings up and wants to know if something is back, or to make an appointment using the appointments module. Now, what they don't like is having to switch to a different tab of their main program to use the appointment module - they want this to be a 'stand alone' program which they can resize, and then just sit side by side on their wide- screen, along with the rest of their clerical tasks, which they are happy to flick back and forth between, but as their day consists of being on the phone on/off making appointments, they want that visually available to them at all times. I could re-design the gui but for various reasons don't want to. I could just change the code slightly, make an executable just presenting the appointments module, then change it back when developing the main program. So the question is, if it makes any sense at all, (aside from making a different project tree, or a 'different executable with changed code) is there anyway of telling gambas to arbitrarily execute one particular bit of code or another, or form according to (as someone suggested) some sort of flag - in this case just pointing to the appointments module and 'hiding everything else'. Still don't think that will make much sense, but we'll see. thanks. richard From gambas at ...1... Tue Nov 22 11:14:41 2011 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Tue, 22 Nov 2011 11:14:41 +0100 Subject: [Gambas-user] Question - how to just run part of ones larger program In-Reply-To: <201111222111.24285.rterry@...1823...> References: <201111220813.04877.rterry@...1823...> <201111221802.42440.rterry@...1823...> <4ECB5ACB.20206@...1...> <201111222111.24285.rterry@...1823...> Message-ID: <4ECB7611.8050809@...1...> Le 22/11/2011 11:11, richard terry a ?crit : > On Tuesday 22 November 2011 19:18:19 Beno?t Minisini wrote: >> Le 22/11/2011 08:02, richard terry a ?crit : >>> On Tuesday 22 November 2011 17:32:22 nando wrote: >>>> You could run a second copy from the first. Place a specific word on the >>>> command line as a parameter so that the copy will understand to show >>>> the specific screen desired and perhaps hide other menus. You can >>>> tailor startup to do something specific based on command line >>>> parameter(s). >>> >>> I'm sure there was something on the list a year or so ago, which meant >>> you could start off from somewhere, maybe benoit will reply. >>> >>> richard >> >> I don't understand what you need exactly. Can you elaborate? >> > > ok, thanks for replying, not sure this will make sense > > In my project, I have a file I just called modStartup. This brings up a logon- > screen and provided the user types in a valid adress/database name, username > and password it logs on to the program. > > What happens then depends on the 'role' of the user, for example in my role as > a clinical user the interface options presented are different from the clerical > user. > > The clerical staff, get an outlook style menu on the left side, and each > 'section' lets them do things , eg allocate scanned documents, enter details > into the patient database, use the document finder if a patient rings up and > wants to know if something is back, or to make an appointment using the > appointments module. > > Now, what they don't like is having to switch to a different tab of their main > program to use the appointment module - they want this to be a 'stand alone' > program which they can resize, and then just sit side by side on their wide- > screen, along with the rest of their clerical tasks, which they are happy to > flick back and forth between, but as their day consists of being on the phone > on/off making appointments, they want that visually available to them at all > times. > > I could re-design the gui but for various reasons don't want to. I could just > change the code slightly, make an executable just presenting the appointments > module, then change it back when developing the main program. > > So the question is, if it makes any sense at all, (aside from making a > different project tree, or a 'different executable with changed code) is there > anyway of telling gambas to arbitrarily execute one particular bit of code or > another, or form according to (as someone suggested) some sort of flag - in > this case just pointing to the appointments module and 'hiding everything > else'. > > Still don't think that will make much sense, but we'll see. > > thanks. > > richard > I don't see why showing the appointment GUI in its own window instead being embedded in the main window should be a problem. -- Beno?t Minisini From rterry at ...1823... Tue Nov 22 11:19:08 2011 From: rterry at ...1823... (richard terry) Date: Tue, 22 Nov 2011 21:19:08 +1100 Subject: [Gambas-user] Question - how to just run part of ones larger program In-Reply-To: <4ECB7611.8050809@...1...> References: <201111220813.04877.rterry@...1823...> <201111222111.24285.rterry@...1823...> <4ECB7611.8050809@...1...> Message-ID: <201111222119.08450.rterry@...1823...> On Tuesday 22 November 2011 21:14:41 Beno?t Minisini wrote: > Le 22/11/2011 11:11, richard terry a ?crit : > > On Tuesday 22 November 2011 19:18:19 Beno?t Minisini wrote: > >> Le 22/11/2011 08:02, richard terry a ?crit : > >>> On Tuesday 22 November 2011 17:32:22 nando wrote: > >>>> You could run a second copy from the first. Place a specific word on > >>>> the command line as a parameter so that the copy will understand to > >>>> show the specific screen desired and perhaps hide other menus. You > >>>> can tailor startup to do something specific based on command line > >>>> parameter(s). > >>> > >>> I'm sure there was something on the list a year or so ago, which meant > >>> you could start off from somewhere, maybe benoit will reply. > >>> > >>> richard > >> > >> I don't understand what you need exactly. Can you elaborate? > > > > ok, thanks for replying, not sure this will make sense > > > > In my project, I have a file I just called modStartup. This brings up a > > logon- screen and provided the user types in a valid adress/database > > name, username and password it logs on to the program. > > > > What happens then depends on the 'role' of the user, for example in my > > role as a clinical user the interface options presented are different > > from the clerical user. > > > > The clerical staff, get an outlook style menu on the left side, and each > > 'section' lets them do things , eg allocate scanned documents, enter > > details into the patient database, use the document finder if a patient > > rings up and wants to know if something is back, or to make an > > appointment using the appointments module. > > > > Now, what they don't like is having to switch to a different tab of their > > main program to use the appointment module - they want this to be a > > 'stand alone' program which they can resize, and then just sit side by > > side on their wide- screen, along with the rest of their clerical tasks, > > which they are happy to flick back and forth between, but as their day > > consists of being on the phone on/off making appointments, they want that > > visually available to them at all times. > > > > I could re-design the gui but for various reasons don't want to. I could > > just change the code slightly, make an executable just presenting the > > appointments module, then change it back when developing the main > > program. > > > > So the question is, if it makes any sense at all, (aside from making a > > different project tree, or a 'different executable with changed code) is > > there anyway of telling gambas to arbitrarily execute one particular bit > > of code or another, or form according to (as someone suggested) some > > sort of flag - in this case just pointing to the appointments module and > > 'hiding everything else'. > > > > Still don't think that will make much sense, but we'll see. > > > > thanks. > > > > richard > > I don't see why showing the appointment GUI in its own window instead > being embedded in the main window should be a problem. Obviously lots of ways around it, obviously my question made no intelligent sense I guess. Thanks. > From eilert-sprachen at ...221... Tue Nov 22 11:53:23 2011 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Tue, 22 Nov 2011 11:53:23 +0100 Subject: [Gambas-user] Question - how to just run part of ones larger program In-Reply-To: <201111222119.08450.rterry@...1823...> References: <201111220813.04877.rterry@...1823...> <201111222111.24285.rterry@...1823...> <4ECB7611.8050809@...1...> <201111222119.08450.rterry@...1823...> Message-ID: <4ECB7F23.7070900@...221...> Am 22.11.2011 11:19, schrieb richard terry: > On Tuesday 22 November 2011 21:14:41 Beno?t Minisini wrote: >> Le 22/11/2011 11:11, richard terry a ?crit : >>> On Tuesday 22 November 2011 19:18:19 Beno?t Minisini wrote: >>>> Le 22/11/2011 08:02, richard terry a ?crit : >>>>> On Tuesday 22 November 2011 17:32:22 nando wrote: >>>>>> You could run a second copy from the first. Place a specific word on >>>>>> the command line as a parameter so that the copy will understand to >>>>>> show the specific screen desired and perhaps hide other menus. You >>>>>> can tailor startup to do something specific based on command line >>>>>> parameter(s). >>>>> >>>>> I'm sure there was something on the list a year or so ago, which meant >>>>> you could start off from somewhere, maybe benoit will reply. >>>>> >>>>> richard >>>> >>>> I don't understand what you need exactly. Can you elaborate? >>> >>> ok, thanks for replying, not sure this will make sense >>> >>> In my project, I have a file I just called modStartup. This brings up a >>> logon- screen and provided the user types in a valid adress/database >>> name, username and password it logs on to the program. >>> >>> What happens then depends on the 'role' of the user, for example in my >>> role as a clinical user the interface options presented are different >>> from the clerical user. >>> >>> The clerical staff, get an outlook style menu on the left side, and each >>> 'section' lets them do things , eg allocate scanned documents, enter >>> details into the patient database, use the document finder if a patient >>> rings up and wants to know if something is back, or to make an >>> appointment using the appointments module. >>> >>> Now, what they don't like is having to switch to a different tab of their >>> main program to use the appointment module - they want this to be a >>> 'stand alone' program which they can resize, and then just sit side by >>> side on their wide- screen, along with the rest of their clerical tasks, >>> which they are happy to flick back and forth between, but as their day >>> consists of being on the phone on/off making appointments, they want that >>> visually available to them at all times. >>> >>> I could re-design the gui but for various reasons don't want to. I could >>> just change the code slightly, make an executable just presenting the >>> appointments module, then change it back when developing the main >>> program. >>> >>> So the question is, if it makes any sense at all, (aside from making a >>> different project tree, or a 'different executable with changed code) is >>> there anyway of telling gambas to arbitrarily execute one particular bit >>> of code or another, or form according to (as someone suggested) some >>> sort of flag - in this case just pointing to the appointments module and >>> 'hiding everything else'. >>> >>> Still don't think that will make much sense, but we'll see. >>> >>> thanks. >>> >>> richard >> >> I don't see why showing the appointment GUI in its own window instead >> being embedded in the main window should be a problem. > > Obviously lots of ways around it, obviously my question made no intelligent > sense I guess. > To me, it does. Another idea: what do you need to show the appointment module? Is there a container that keeps all the necessary parts such as TableView, ComboBoxes, Buttons or whatever you need? That would make it easy to produce a copy of them within their own window and have the code (the events part of code) decide whether to cope with them or with those in the main window. You could simply set a button into the main window allowing the user to choose if she/he wants to have the separate appointment window. If you kept all important code out of the event SUBs, it should be easy to jump to it from the additional window. All you need is a central place for these routines that do the job and a flag that tells them the additional window is there or not. Hope you understand what I mean... Rolf From ext4 at ...1661... Tue Nov 22 13:44:45 2011 From: ext4 at ...1661... (Ext4) Date: Tue, 22 Nov 2011 13:44:45 +0100 (CET) Subject: [Gambas-user] Report with Gambas 3 In-Reply-To: <1321954935.6388.2.camel@...40...> References: <16679282.3082.1321949418120.JavaMail.www@...2723...> <1321954935.6388.2.camel@...40...> Message-ID: <825290986.9401.1321965885109.JavaMail.www@...2724...> > > Hi all, > > > > I'm new in gambas (6 months) and I'm writing a small application that manages data in a MySQL database. > > I started my apprenticeship with Gambas3 and I encountered a problem I can not solve alone. > > For prints I saw that there were two solutions. The component Gb.report and class PdfWriter (http://www.gambas-it.org/wp/?page_id=21). > > Gb.report seems more complete, but is more difficult to use. > > PDFWriter is very easy to use. > > The two solutions are they perennial? > > What do you recommend, knowing that I'm not very good with Gambas3? > > > > Thank you for your advice. > > Salut, > > the PDFWriter is for gambas2, so it is not said, it will work for > gambas3 Pdfwriter works fine with Gambas3. Just need to convert it. From rmorgan62 at ...626... Tue Nov 22 18:56:22 2011 From: rmorgan62 at ...626... (Randall Morgan) Date: Tue, 22 Nov 2011 09:56:22 -0800 Subject: [Gambas-user] Memory Stream Help In-Reply-To: <4ECAD68D.1030405@...1...> References: <4ECAD68D.1030405@...1...> Message-ID: I do the C structures defined. But the functions return pointers to the structures created by Tidy. So I have to Read the data into my local copy using the pointer returned. Which I feel is very inefficient. I have just started to play around with defining offset values for each location in the structure returned by tidy and simply accessing tidy's structures directly. I feel this is more efficient that making local copies of the structures. I am new to Gambas but not programming in general. So any pointer on how best to work with external libraries would be helpful. Once I have a well defined interface to the external library I want to package it as a component. There other external libraries I'd like to package as components as well. So this is just my first attempted. I've had some minor successes so far. But I want to make the library wrapper as useful as possible by including at least a reasonable subset of Tidy's capabilities. I would love to see some Gambas 3 samples code for reading and writing c-structures using pointers.... 2011/11/21 Beno?t Minisini > Le 20/11/2011 05:42, Randall Morgan a ?crit : > > Hi All, > > > > Can someone give me a sample of using memory streams to read and write > data > > to/from memory. > > > > I am needing to read data from a C structure allocated by the external > > library (tidy) with the pointer returned to Gambas. > > > > I read the page on external libraries many times before learning the > Gambas > > 3 does not allow the use of READ on pointers any longer. > > This should be updated on the how to use external libraries page in the > > section "More on Pointers" > > > > Still, with the given documentation for Gambas3 I am unable to get my > > program to compile. So a sample of reading from memory using a pointer > > would be very helpful. > > > > Thanks! > > > > If you have the definition of the C structure, you should use a Gambas > structure to read or write it. > > -- > Beno?t Minisini > > > ------------------------------------------------------------------------------ > All the data continuously generated in your IT infrastructure > contains a definitive record of customers, application performance, > security threats, fraudulent activity, and more. Splunk takes this > data and makes sense of it. IT sense. And common sense. > http://p.sf.net/sfu/splunk-novd2d > _______________________________________________ > 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 rterry at ...1823... Tue Nov 22 21:46:46 2011 From: rterry at ...1823... (richard terry) Date: Wed, 23 Nov 2011 07:46:46 +1100 Subject: [Gambas-user] Question - how to just run part of ones larger program In-Reply-To: <4ECB7F23.7070900@...221...> References: <201111220813.04877.rterry@...1823...> <201111222119.08450.rterry@...1823...> <4ECB7F23.7070900@...221...> Message-ID: <201111230746.46502.rterry@...1823...> On Tuesday 22 November 2011 21:53:23 Rolf-Werner Eilert wrote: > Am 22.11.2011 11:19, schrieb richard terry: > > On Tuesday 22 November 2011 21:14:41 Beno?t Minisini wrote: > >> Le 22/11/2011 11:11, richard terry a ?crit : > >>> On Tuesday 22 November 2011 19:18:19 Beno?t Minisini wrote: > >>>> Le 22/11/2011 08:02, richard terry a ?crit : > >>>>> On Tuesday 22 November 2011 17:32:22 nando wrote: > >>>>>> You could run a second copy from the first. Place a specific word on > >>>>>> the command line as a parameter so that the copy will understand to > >>>>>> show the specific screen desired and perhaps hide other menus. You > >>>>>> can tailor startup to do something specific based on command line > >>>>>> parameter(s). > >>>>> > >>>>> I'm sure there was something on the list a year or so ago, which > >>>>> meant you could start off from somewhere, maybe benoit will reply. > >>>>> > >>>>> richard > >>>> > >>>> I don't understand what you need exactly. Can you elaborate? > >>> > >>> ok, thanks for replying, not sure this will make sense > >>> > >>> In my project, I have a file I just called modStartup. This brings up a > >>> logon- screen and provided the user types in a valid adress/database > >>> name, username and password it logs on to the program. > >>> > >>> What happens then depends on the 'role' of the user, for example in my > >>> role as a clinical user the interface options presented are different > >>> from the clerical user. > >>> > >>> The clerical staff, get an outlook style menu on the left side, and > >>> each 'section' lets them do things , eg allocate scanned documents, > >>> enter details into the patient database, use the document finder if a > >>> patient rings up and wants to know if something is back, or to make an > >>> appointment using the appointments module. > >>> > >>> Now, what they don't like is having to switch to a different tab of > >>> their main program to use the appointment module - they want this to be > >>> a 'stand alone' program which they can resize, and then just sit side > >>> by side on their wide- screen, along with the rest of their clerical > >>> tasks, which they are happy to flick back and forth between, but as > >>> their day consists of being on the phone on/off making appointments, > >>> they want that visually available to them at all times. > >>> > >>> I could re-design the gui but for various reasons don't want to. I > >>> could just change the code slightly, make an executable just presenting > >>> the appointments module, then change it back when developing the main > >>> program. > >>> > >>> So the question is, if it makes any sense at all, (aside from making a > >>> different project tree, or a 'different executable with changed code) > >>> is there anyway of telling gambas to arbitrarily execute one particular > >>> bit of code or another, or form according to (as someone suggested) > >>> some sort of flag - in this case just pointing to the appointments > >>> module and 'hiding everything else'. > >>> > >>> Still don't think that will make much sense, but we'll see. > >>> > >>> thanks. > >>> > >>> richard > >> > >> I don't see why showing the appointment GUI in its own window instead > >> being embedded in the main window should be a problem. > > > > Obviously lots of ways around it, obviously my question made no > > intelligent sense I guess. > > To me, it does. Another idea: what do you need to show the appointment > module? Is there a container that keeps all the necessary parts such as > TableView, ComboBoxes, Buttons or whatever you need? That would make it > easy to produce a copy of them within their own window and have the code > (the events part of code) decide whether to cope with them or with those > in the main window. > > You could simply set a button into the main window allowing the user to > choose if she/he wants to have the separate appointment window. If you > kept all important code out of the event SUBs, it should be easy to jump > to it from the additional window. All you need is a central place for > these routines that do the job and a flag that tells them the additional > window is there or not. > > Hope you understand what I mean... Thanks, yes this would be possible, I'll have a think about this over the next week or so and report back richard > > Rolf > > --------------------------------------------------------------------------- > --- All the data continuously generated in your IT infrastructure > contains a definitive record of customers, application performance, > security threats, fraudulent activity, and more. Splunk takes this > data and makes sense of it. IT sense. And common sense. > http://p.sf.net/sfu/splunk-novd2d > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas.fr at ...626... Wed Nov 23 15:14:06 2011 From: gambas.fr at ...626... (Fabien Bodard) Date: Wed, 23 Nov 2011 15:14:06 +0100 Subject: [Gambas-user] Report with Gambas 3 In-Reply-To: <825290986.9401.1321965885109.JavaMail.www@...2724...> References: <16679282.3082.1321949418120.JavaMail.www@...2723...> <1321954935.6388.2.camel@...40...> <825290986.9401.1321965885109.JavaMail.www@...2724...> Message-ID: 2011/11/22 Ext4 : > > >> > Hi all, >> > >> > I'm new in gambas (6 months) and I'm writing a small application that manages data in a MySQL database. >> > I started my apprenticeship with Gambas3 and I encountered a problem I can not solve alone. >> > For prints I saw that there were two solutions. The component Gb.report and class PdfWriter (http://www.gambas-it.org/wp/?page_id=21). >> > Gb.report seems more complete, but is more difficult to use. >> > PDFWriter is very easy to use. >> > The two solutions are they perennial? >> > What do you recommend, knowing that I'm not very good with Gambas3? >> > >> > Thank you for your advice. >> >> Salut, >> >> the PDFWriter is for gambas2, so it is not said, it will work for >> gambas3 gambas report work fine too ..; i need really to make some doc :/ -- Fabien Bodard From rterry at ...1823... Wed Nov 23 22:24:55 2011 From: rterry at ...1823... (richard terry) Date: Thu, 24 Nov 2011 08:24:55 +1100 Subject: [Gambas-user] Report with Gambas 3 In-Reply-To: References: <16679282.3082.1321949418120.JavaMail.www@...2723...> <825290986.9401.1321965885109.JavaMail.www@...2724...> Message-ID: <201111240824.55938.rterry@...1823...> On Thursday 24 November 2011 01:14:06 Fabien Bodard wrote: > 2011/11/22 Ext4 : > >> > Hi all, > >> > > >> > I'm new in gambas (6 months) and I'm writing a small application that > >> > manages data in a MySQL database. I started my apprenticeship with > >> > Gambas3 and I encountered a problem I can not solve alone. For prints > >> > I saw that there were two solutions. The component Gb.report and class > >> > PdfWriter (http://www.gambas-it.org/wp/?page_id=21). Gb.report seems > >> > more complete, but is more difficult to use. > >> > PDFWriter is very easy to use. > >> > The two solutions are they perennial? > >> > What do you recommend, knowing that I'm not very good with Gambas3? > >> > > >> > Thank you for your advice. > >> > >> Salut, > >> > >> the PDFWriter is for gambas2, so it is not said, it will work for > >> gambas3 > > gambas report work fine too ..; i need really to make some doc :/ > What is it you are trying to print? LaTex is really good Richard From ext4 at ...1661... Thu Nov 24 16:32:21 2011 From: ext4 at ...1661... (Ext4) Date: Thu, 24 Nov 2011 16:32:21 +0100 (CET) Subject: [Gambas-user] (no subject) Message-ID: <16047778.12716.1322148741654.JavaMail.www@...2725...> > gambas report work fine too ..; i need really to make some doc :/ > -- > Fabien Bodard Yes Fabien, documentation is missing for Gb.report. It's too hard for me to use it :( >What is it you are trying to print? >LaTex is really good > Richard I learned Latex at university 10 years ago :) It's true that I thought no more. Latex should be a good track. Thank you From ext4 at ...1661... Thu Nov 24 16:34:55 2011 From: ext4 at ...1661... (Ext4) Date: Thu, 24 Nov 2011 16:34:55 +0100 (CET) Subject: [Gambas-user] Report with Gambas 3 Message-ID: <5062664.12776.1322148895623.JavaMail.www@...2725...> > gambas report work fine too ..; i need really to make some doc :/ > -- > Fabien Bodard Yes Fabien, documentation is missing for Gb.report. It's too hard for me to use it :( >What is it you are trying to print? >LaTex is really good > Richard I learned Latex at university 10 years ago :) It's true that I thought no more. Latex should be a good track. Thank you From Karl.Reinl at ...2345... Thu Nov 24 23:25:44 2011 From: Karl.Reinl at ...2345... (Charlie Reinl) Date: Thu, 24 Nov 2011 23:25:44 +0100 Subject: [Gambas-user] Report with Gambas 3 In-Reply-To: <5062664.12776.1322148895623.JavaMail.www@...2725...> References: <5062664.12776.1322148895623.JavaMail.www@...2725...> Message-ID: <1322173544.6497.9.camel@...40...> Am Donnerstag, den 24.11.2011, 16:34 +0100 schrieb Ext4: > > gambas report work fine too ..; i need really to make some doc :/ > > -- > > Fabien Bodard > > Yes Fabien, documentation is missing for Gb.report. It's too hard for me to use it :( > > >What is it you are trying to print? > > >LaTex is really good > > > Richard > > I learned Latex at university 10 years ago :) It's true that I thought no more. > Latex should be a good track. > > Thank you Salut, there is not yet a gambas3 version ready, but did you have a look at http://dbreport.sourceforge.net/ . You need gambas2 on your box. For using it in you application you can call it with SHELL or EXEC. -- Amicalement Charlie From nando_f at ...951... Fri Nov 25 07:33:48 2011 From: nando_f at ...951... (nando) Date: Fri, 25 Nov 2011 02:33:48 -0400 Subject: [Gambas-user] Bug drawing_area Message-ID: <20111125061248.M23899@...951...> Benoit, I have a drawing_area and I draw a line from 0,0 to 150,200 and I slowly move the drawing area off the left of the screen. The line does not continue with the drawing area off screen. Instead, it stops at the left of FMain and does not continue staying at (0,0) of drawing area _Draw is called from a timer to slide it off the left of the FMain -Fernando PUBLIC SUB DrawingArea1_Draw() Draw.Image(hImage2, 100, 100) DrawingArea1.x = DrawingArea1.x - 1 Draw.Begin(DrawingArea1) Draw.LineWidth = 20 Draw.ForeColor = Color.Red Draw.Line(0, 0, 200, 150) '<-problem starts when DrawingArea1.x is < 0 Draw.End END From eilert-sprachen at ...221... Fri Nov 25 08:08:33 2011 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Fri, 25 Nov 2011 08:08:33 +0100 Subject: [Gambas-user] Bug drawing_area In-Reply-To: <20111125061248.M23899@...951...> References: <20111125061248.M23899@...951...> Message-ID: <4ECF3EF1.5050407@...221...> Am 25.11.2011 07:33, schrieb nando: > Benoit, > > I have a drawing_area and I draw a line from 0,0 to 150,200 > and I slowly move the drawing area off the left of the screen. > > The line does not continue with the drawing area off screen. > Instead, it stops at the left of FMain and does not continue > staying at (0,0) of drawing area > > _Draw is called from a timer to slide it off the left of the FMain > > -Fernando > > > PUBLIC SUB DrawingArea1_Draw() > > Draw.Image(hImage2, 100, 100) > > DrawingArea1.x = DrawingArea1.x - 1 > > Draw.Begin(DrawingArea1) > Draw.LineWidth = 20 > Draw.ForeColor = Color.Red > Draw.Line(0, 0, 200, 150) '<-problem starts when DrawingArea1.x is< 0 > Draw.End > > END > Have you set the DrawingArea or the Form to Persistent = TRUE? That might help. Rolf From wally at ...2037... Fri Nov 25 11:50:44 2011 From: wally at ...2037... (wally) Date: Fri, 25 Nov 2011 11:50:44 +0100 Subject: [Gambas-user] svn update conflict problem Message-ID: <201111251150.44527.wally@...2037...> svn update Conflict discovered in 'comp/src/gb.eval.highlight/.startup'. Select: (p) postpone, (df) diff-full, (e) edit, (mc) mine-conflict, (tc) theirs-conflict, (s) show all options: what to do ? From gambas at ...1... Fri Nov 25 14:08:11 2011 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Fri, 25 Nov 2011 14:08:11 +0100 Subject: [Gambas-user] svn update conflict problem In-Reply-To: <201111251150.44527.wally@...2037...> References: <201111251150.44527.wally@...2037...> Message-ID: <4ECF933B.1080902@...1...> Le 25/11/2011 11:50, wally a ?crit : > svn update > Conflict discovered in 'comp/src/gb.eval.highlight/.startup'. > Select: (p) postpone, (df) diff-full, (e) edit, > (mc) mine-conflict, (tc) theirs-conflict, > (s) show all options: > > what to do ? > Normally you should type "tc" (theirs-conflict) to get the file from subversion instead of yours. It is not dramatic, as the ".startup" file is automatically generated by the compiler. So if you have any problem, you just have to recompile the gb.eval.highlight component. Regards, -- Beno?t Minisini From jussi.lahtinen at ...626... Fri Nov 25 16:21:18 2011 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Fri, 25 Nov 2011 17:21:18 +0200 Subject: [Gambas-user] svn update conflict problem In-Reply-To: <201111251150.44527.wally@...2037...> References: <201111251150.44527.wally@...2037...> Message-ID: If you don't want to save any modification you have done to Gambas source code, then easiest option is tf. Otherwise you may have to answer several more questions. (tf) theirs-full - accept their version of entire file Jussi On Fri, Nov 25, 2011 at 12:50, wally wrote: > svn update > Conflict discovered in 'comp/src/gb.eval.highlight/.startup'. > Select: (p) postpone, (df) diff-full, (e) edit, > (mc) mine-conflict, (tc) theirs-conflict, > (s) show all options: > > what to do ? > > > ------------------------------------------------------------------------------ > All the data continuously generated in your IT infrastructure > contains a definitive record of customers, application performance, > security threats, fraudulent activity, and more. Splunk takes this > data and makes sense of it. IT sense. And common sense. > http://p.sf.net/sfu/splunk-novd2d > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From nando_f at ...951... Fri Nov 25 19:05:33 2011 From: nando_f at ...951... (nando) Date: Fri, 25 Nov 2011 14:05:33 -0400 Subject: [Gambas-user] Bug drawing_area In-Reply-To: <4ECF3EF1.5050407@...221...> References: <20111125061248.M23899@...951...> <4ECF3EF1.5050407@...221...> Message-ID: <20111125180132.M24915@...951...> Bug isn't about the form. Persistent T/F has no effect. The issue is the line does not start at (0,0) in the drawing_area when the area is partly off the screen to the left. The line actually starts at FMain x=0, not Drawing_Area x=0. The FMain x is irrelevant. -F ---------- Original Message ----------- From: Rolf-Werner Eilert To: gambas-user at lists.sourceforge.net Sent: Fri, 25 Nov 2011 08:08:33 +0100 Subject: Re: [Gambas-user] Bug drawing_area > Am 25.11.2011 07:33, schrieb nando: > > Benoit, > > > > I have a drawing_area and I draw a line from 0,0 to 150,200 > > and I slowly move the drawing area off the left of the screen. > > > > The line does not continue with the drawing area off screen. > > Instead, it stops at the left of FMain and does not continue > > staying at (0,0) of drawing area > > > > _Draw is called from a timer to slide it off the left of the FMain > > > > -Fernando > > > > > > PUBLIC SUB DrawingArea1_Draw() > > > > Draw.Image(hImage2, 100, 100) > > > > DrawingArea1.x = DrawingArea1.x - 1 > > > > Draw.Begin(DrawingArea1) > > Draw.LineWidth = 20 > > Draw.ForeColor = Color.Red > > Draw.Line(0, 0, 200, 150) '<-problem starts when DrawingArea1.x is< 0 > > Draw.End > > > > END > > > > Have you set the DrawingArea or the Form to Persistent = TRUE? That > might help. > > Rolf > > ------------------------------------------------------------------------------ > All the data continuously generated in your IT infrastructure > contains a definitive record of customers, application performance, > security threats, fraudulent activity, and more. Splunk takes this > data and makes sense of it. IT sense. And common sense. > http://p.sf.net/sfu/splunk-novd2d > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user ------- End of Original Message ------- From gambas at ...1... Fri Nov 25 19:14:03 2011 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Fri, 25 Nov 2011 19:14:03 +0100 Subject: [Gambas-user] Bug drawing_area In-Reply-To: <20111125180132.M24915@...951...> References: <20111125061248.M23899@...951...> <4ECF3EF1.5050407@...221...> <20111125180132.M24915@...951...> Message-ID: <4ECFDAEB.3030207@...1...> Le 25/11/2011 19:05, nando a ?crit : > Bug isn't about the form. Persistent T/F has no effect. > The issue is the line does not start at (0,0) in the drawing_area > when the area is partly off the screen to the left. > The line actually starts at FMain x=0, not Drawing_Area x=0. > The FMain x is irrelevant. > -F > Do you have a little project that shows the bug? -- Beno?t Minisini From gambas at ...1... Fri Nov 25 23:32:09 2011 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Fri, 25 Nov 2011 23:32:09 +0100 Subject: [Gambas-user] Memory Stream Help In-Reply-To: References: <4ECAD68D.1030405@...1...> Message-ID: <4ED01769.4020502@...1...> Le 22/11/2011 18:56, Randall Morgan a ?crit : > I do the C structures defined. But the functions return pointers to the > structures created by Tidy. So I have to Read the data into my local copy > using the pointer returned. Which I feel is very inefficient. I have just > started to play around with defining offset values for each location in the > structure returned by tidy and simply accessing tidy's structures directly. > I feel this is more efficient that making local copies of the structures. > > I am new to Gambas but not programming in general. So any pointer on how > best to work with external libraries would be helpful. Once I have a well > defined interface to the external library I want to package it as a > component. There other external libraries I'd like to package as components > as well. So this is just my first attempted. I've had some minor successes > so far. But I want to make the library wrapper as useful as possible by > including at least a reasonable subset of Tidy's capabilities. > > I would love to see some Gambas 3 samples code for reading and writing > c-structures using pointers.... > > Hi, In revision #4257, I have added support for extern functions that return a pointer to a C structure. So... To send a structure pointer to an extern function, do that: --8<----------------------------------------------------------------- Public Struct StructTm tm_sec As Integer tm_min As Integer tm_hour As Integer tm_mday As Integer tm_mon As Integer tm_year As Integer tm_wday As Integer tm_yday As Integer tm_isdst As Integer End Struct Private Extern asctime(tm As StructTm) As String In "libc:6" --8<----------------------------------------------------------------- And to get a structure pointer from an extern function, do that: --8<----------------------------------------------------------------- Public Struct StructTm tm_sec As Integer tm_min As Integer tm_hour As Integer tm_mday As Integer tm_mon As Integer tm_year As Integer tm_wday As Integer tm_yday As Integer tm_isdst As Integer End Struct Private Extern localtime(timep As Pointer) As StructTm In "libc:6" --8<----------------------------------------------------------------- A temporary Gambas structure object is allocated each time the localtime() is called. It stores the return value, but it does not copy the structure data, it just points at it. So the pointed structure must not be freed while you are using it! Does it fit your needs? -- Beno?t Minisini From gambas at ...1... Fri Nov 25 23:36:29 2011 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Fri, 25 Nov 2011 23:36:29 +0100 Subject: [Gambas-user] Memory Stream Help In-Reply-To: <4ED01769.4020502@...1...> References: <4ECAD68D.1030405@...1...> <4ED01769.4020502@...1...> Message-ID: <4ED0186D.5080503@...1...> > > Hi, > > In revision #4257, I have added support for extern functions that return > a pointer to a C structure. > > ... Note that passing or receiving structures by value is not supported. -- Beno?t Minisini From rmorgan62 at ...626... Sat Nov 26 03:08:39 2011 From: rmorgan62 at ...626... (Randall Morgan) Date: Fri, 25 Nov 2011 18:08:39 -0800 Subject: [Gambas-user] Memory Stream Help In-Reply-To: <4ED0186D.5080503@...1...> References: <4ECAD68D.1030405@...1...> <4ED01769.4020502@...1...> <4ED0186D.5080503@...1...> Message-ID: Thanks Benoit, This should help. Randy 2011/11/25 Beno?t Minisini > > > > Hi, > > > > In revision #4257, I have added support for extern functions that return > > a pointer to a C structure. > > > > ... > > Note that passing or receiving structures by value is not supported. > > -- > Beno?t Minisini > > > ------------------------------------------------------------------------------ > All the data continuously generated in your IT infrastructure > contains a definitive record of customers, application performance, > security threats, fraudulent activity, and more. Splunk takes this > data and makes sense of it. IT sense. And common sense. > http://p.sf.net/sfu/splunk-novd2d > _______________________________________________ > 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 nando_f at ...951... Sat Nov 26 07:16:07 2011 From: nando_f at ...951... (nando) Date: Sat, 26 Nov 2011 02:16:07 -0400 Subject: [Gambas-user] Bug drawing_area In-Reply-To: <4ECFDAEB.3030207@...1...> References: <20111125061248.M23899@...951...> <4ECF3EF1.5050407@...221...> <20111125180132.M24915@...951...> <4ECFDAEB.3030207@...1...> Message-ID: <20111126061421.M76312@...951...> Thank you Benoit, A project archive is attached with a simple example -Fernando ---------- Original Message ----------- From: Beno?t Minisini To: nando_f at ...951..., mailing list for gambas users Sent: Fri, 25 Nov 2011 19:14:03 +0100 Subject: Re: [Gambas-user] Bug drawing_area > Le 25/11/2011 19:05, nando a ?crit : > > Bug isn't about the form. Persistent T/F has no effect. > > The issue is the line does not start at (0,0) in the drawing_area > > when the area is partly off the screen to the left. > > The line actually starts at FMain x=0, not Drawing_Area x=0. > > The FMain x is irrelevant. > > -F > > > > Do you have a little project that shows the bug? > > -- > Beno?t Minisini > > ------------------------------------------------------------------------------ > All the data continuously generated in your IT infrastructure > contains a definitive record of customers, application performance, > security threats, fraudulent activity, and more. Splunk takes this > data and makes sense of it. IT sense. And common sense. > http://p.sf.net/sfu/splunk-novd2d > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user ------- End of Original Message ------- -------------- next part -------------- A non-text attachment was scrubbed... Name: Presentor-0.0.1.tar.gz Type: application/x-gzip Size: 52581 bytes Desc: not available URL: From ron at ...1740... Sat Nov 26 11:15:00 2011 From: ron at ...1740... (Ron) Date: Sat, 26 Nov 2011 11:15:00 +0100 Subject: [Gambas-user] Moviebox with animated gif, need tranparent background Message-ID: I display movieboxes with an animated gifs, and have it use a transparent background, the gifs are already transparant. I can do this for TextLabel with property .Transparant, but how can I do this for MovieBoxes? Small code: WITH hMovieBox TRY .Path = "/some/animated.gif" .Height = 20 .Width = 20 .X = X .Y = Y .Playing = TRUE END WITH If it can't be done with a MovieBox, how do you do it with a PictureBox? Gambas2, qt. Thanks for any pointers! Regards, Ron_2nd. From gambas at ...1... Sat Nov 26 11:22:14 2011 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Sat, 26 Nov 2011 11:22:14 +0100 Subject: [Gambas-user] Moviebox with animated gif, need tranparent background In-Reply-To: References: Message-ID: <4ED0BDD6.1020106@...1...> Le 26/11/2011 11:15, Ron a ?crit : > I display movieboxes with an animated gifs, and have it use a transparent > background, the gifs are already transparant. > > I can do this for TextLabel with property .Transparant, but how can I do > this for MovieBoxes? > > Small code: > > WITH hMovieBox > TRY .Path = "/some/animated.gif" > .Height = 20 > .Width = 20 > .X = X > .Y = Y > .Playing = TRUE > END WITH > > If it can't be done with a MovieBox, how do you do it with a PictureBox? > > Gambas2, qt. > > Thanks for any pointers! > > Regards, > Ron_2nd. It's not possible with Gambas 2 and QT 3. Regards, -- Beno?t Minisini From mohareve at ...626... Sat Nov 26 13:13:04 2011 From: mohareve at ...626... (M. Cs.) Date: Sat, 26 Nov 2011 13:13:04 +0100 Subject: [Gambas-user] Install gambas3 on Oneiric Message-ID: Hi, I would like to install Gambas3 on Oneiric 64bit, but using Haywood's PPA for Natty I couldn't fulfill the task. Are there packages for this release? Thanks! From ea7dfh at ...2382... Sat Nov 26 14:10:36 2011 From: ea7dfh at ...2382... (Jesus) Date: Sat, 26 Nov 2011 14:10:36 +0100 Subject: [Gambas-user] Install gambas3 on Oneiric In-Reply-To: References: Message-ID: <4ED0E54C.4020708@...2382...> El 26/11/11 13:13, M. Cs. escribi?: > Hi, I would like to install Gambas3 on Oneiric 64bit, but using > Haywood's PPA for Natty I couldn't fulfill the task. Are there > packages for this release? > > Thanks! > > ------------------------------------------------------------------------------ > All the data continuously generated in your IT infrastructure > contains a definitive record of customers, application performance, > security threats, fraudulent activity, and more. Splunk takes this > data and makes sense of it. IT sense. And common sense. > http://p.sf.net/sfu/splunk-novd2d > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > Hi I think it doesn't exist yet, but you could run my automated script to easily install Gambas3 in almost every Ubuntu version. I'm using it successfully from the very beginning with 32 and 64 bits systems, Gnome or KDE... The script only automates what you would do manually in a terminal, but with a bit of cosmetic. File is attached, untar and execute in a terminal as a *normal user* (root passwd is asked later in the script). Hope this helps, regards -- Jesus Guardon -------------- next part -------------- A non-text attachment was scrubbed... Name: install_gambas3.sh.tar.gz Type: application/gzip Size: 1764 bytes Desc: not available URL: From jussi.lahtinen at ...626... Sat Nov 26 14:11:45 2011 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Sat, 26 Nov 2011 15:11:45 +0200 Subject: [Gambas-user] Install gambas3 on Oneiric In-Reply-To: References: Message-ID: I don't have packages, but compiling the source is not difficult. 1. First install essential packages you need to compile: *sudo apt-get install build-essential autoconf libbz2-dev libfbclient2 libmysqlclient-dev unixodbc-dev libpq-dev libsqlite0-dev libsqlite3-dev libgtk2.0-dev libldap2-dev libcurl4-gnutls-dev libgtkglext1-dev libpcre3-dev libsdl-sound1.2-dev libsdl-mixer1.2-dev libsdl-image1.2-dev libsage-dev libxml2-dev libxslt1-dev libbonobo2-dev libcos4-dev libomniorb4-dev librsvg2-dev libpoppler-dev libpoppler-glib-dev libasound2-dev libesd0-dev libdirectfb-dev libaa1-dev libxtst-dev libffi-dev kdelibs4-dev firebird2.1-dev libqt4-dev libglew1.5-dev libimlib2-dev libv4l-dev libsdl-ttf2.0-dev libgnome-keyring-dev libgdk-pixbuf2.0-dev linux-libc-dev * 2. Commands to get sources to ~/trunk folder: *cd ~/ svn checkout https://gambas.svn.sourceforge.net/svnroot/gambas/gambas/trunk/ * 3. Script to compile (or recompile), just copy this to text editor, save it as whatever.sh and open file properties to give privileges for execution: *#!/bin/sh sudo rm -f /usr/local/bin/gbx3 /usr/local/bin/gbc3 /usr/local/bin/gba3 /usr/local/bin/gbi3 sudo rm -rf /usr/local/lib/gambas3 sudo rm -rf /usr/local/share/gambas3 cd ~/trunk echo "Old installation cleaned!" ( ./reconf-all && ./configure -C && make && sudo make install ) > ~/Desktop/compile.log 2>&1 sudo -k echo "Done!"* Or look at the official help for compiling: http://gambasdoc.org/help/install?en&view Jussi On Sat, Nov 26, 2011 at 14:13, M. Cs. wrote: > Hi, I would like to install Gambas3 on Oneiric 64bit, but using > Haywood's PPA for Natty I couldn't fulfill the task. Are there > packages for this release? > > Thanks! > > > ------------------------------------------------------------------------------ > All the data continuously generated in your IT infrastructure > contains a definitive record of customers, application performance, > security threats, fraudulent activity, and more. Splunk takes this > data and makes sense of it. IT sense. And common sense. > http://p.sf.net/sfu/splunk-novd2d > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...2524... Sat Nov 26 15:47:52 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Sat, 26 Nov 2011 14:47:52 +0000 Subject: [Gambas-user] Issue 151 in gambas: Gambas3 Quick Variable View in debugging has strange colour Message-ID: <0-6813199134517018827-16788830591403126409-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 151 by ron.mcin... at ...626...: Gambas3 Quick Variable View in debugging has strange colour http://code.google.com/p/gambas/issues/detail?id=151 1) Describe the problem. When debugging and you doubleclick a variable there is a popup tooltip like text box with its value which stays up for ~5 seconds (as opposed to the balloon text pf Gambas2). Whilst I prefer this approach - under Nvidia and ubuntu 11.04 (and onwards) it appears as a yellowish box (see attachment). 2) GIVE THE FOLLOWING INFORMATIONS (if they are appropriate): Version: Gambas3 2.99.6 Operating system: Linux Distribution: Ubuntu 11.04 (and 11.10) Architecture: x86 GUI component: GB Desktop used: Gnome 3) Provide a little project that reproduces the bug or the crash. Any project will do (honest) 4) If your project needs a database, try to provide it, or part of it. None 5) Explain clearly how to reproduce the bug or the crash. - Run any project with a breakpoint - Under debugger doubleclick any simple variable (text, integer...) - Tooltip is blocked out (as per attachment) There are known issues around the latest Ubuntu and Nvidia and this may well be one of them however there is a relatively easy fix (easy to say when you don't have to do the change) which would also add value for people with color sight issues - I did spend a lot of time looking for an option to change the debug text display colour and I suspect that if it was available then it would resolve the issue. At the risk of stating the obvious - happy to do any testing. Best Regards Ron McInally Attachments: gambas3.png 16.7 KB From mohareve at ...626... Sat Nov 26 20:23:22 2011 From: mohareve at ...626... (M. Cs.) Date: Sat, 26 Nov 2011 20:23:22 +0100 Subject: [Gambas-user] Install gambas3 on Oneiric In-Reply-To: References: Message-ID: THANKS! Csaba 2011/11/26, Jussi Lahtinen : > I don't have packages, but compiling the source is not difficult. > > > 1. First install essential packages you need to compile: > > *sudo apt-get install build-essential autoconf libbz2-dev libfbclient2 > libmysqlclient-dev unixodbc-dev libpq-dev libsqlite0-dev > libsqlite3-dev libgtk2.0-dev libldap2-dev libcurl4-gnutls-dev > libgtkglext1-dev libpcre3-dev libsdl-sound1.2-dev libsdl-mixer1.2-dev > libsdl-image1.2-dev libsage-dev libxml2-dev libxslt1-dev > libbonobo2-dev libcos4-dev libomniorb4-dev librsvg2-dev libpoppler-dev > libpoppler-glib-dev libasound2-dev libesd0-dev libdirectfb-dev > libaa1-dev libxtst-dev libffi-dev kdelibs4-dev firebird2.1-dev > libqt4-dev libglew1.5-dev libimlib2-dev libv4l-dev libsdl-ttf2.0-dev > libgnome-keyring-dev libgdk-pixbuf2.0-dev linux-libc-dev > * > > > 2. Commands to get sources to ~/trunk folder: > > *cd ~/ > svn checkout https://gambas.svn.sourceforge.net/svnroot/gambas/gambas/trunk/ > * > > > 3. Script to compile (or recompile), just copy this to text editor, save it > as whatever.sh and open file properties to give privileges for execution: > > *#!/bin/sh > sudo rm -f /usr/local/bin/gbx3 /usr/local/bin/gbc3 /usr/local/bin/gba3 > /usr/local/bin/gbi3 > sudo rm -rf /usr/local/lib/gambas3 > sudo rm -rf /usr/local/share/gambas3 > cd ~/trunk > echo "Old installation cleaned!" > ( ./reconf-all && ./configure -C && make && sudo make install ) > > ~/Desktop/compile.log 2>&1 > sudo -k > echo "Done!"* > > > Or look at the official help for compiling: > http://gambasdoc.org/help/install?en&view > > Jussi > > > > > On Sat, Nov 26, 2011 at 14:13, M. Cs. wrote: > >> Hi, I would like to install Gambas3 on Oneiric 64bit, but using >> Haywood's PPA for Natty I couldn't fulfill the task. Are there >> packages for this release? >> >> Thanks! >> >> >> ------------------------------------------------------------------------------ >> All the data continuously generated in your IT infrastructure >> contains a definitive record of customers, application performance, >> security threats, fraudulent activity, and more. Splunk takes this >> data and makes sense of it. IT sense. And common sense. >> http://p.sf.net/sfu/splunk-novd2d >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > ------------------------------------------------------------------------------ > All the data continuously generated in your IT infrastructure > contains a definitive record of customers, application performance, > security threats, fraudulent activity, and more. Splunk takes this > data and makes sense of it. IT sense. And common sense. > http://p.sf.net/sfu/splunk-novd2d > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From mohareve at ...626... Sat Nov 26 20:25:33 2011 From: mohareve at ...626... (M. Cs.) Date: Sat, 26 Nov 2011 20:25:33 +0100 Subject: [Gambas-user] Form.Screen is incorrectly overridden in class FMain Message-ID: What could that mean? I'm trying to port a G2 project to G3, but this error is shown upon program start. Thanks! Csaba From gambas at ...1... Sat Nov 26 20:26:39 2011 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Sat, 26 Nov 2011 20:26:39 +0100 Subject: [Gambas-user] Form.Screen is incorrectly overridden in class FMain In-Reply-To: References: Message-ID: <4ED13D6F.5050100@...1...> Le 26/11/2011 20:25, M. Cs. a ?crit : > What could that mean? > I'm trying to port a G2 project to G3, but this error is shown upon > program start. > Thanks! > > Csaba > Form.Screen is a new property in Gambas 3. So you must use another name for your own use. Regards, -- Beno?t Minisini From mohareve at ...626... Sat Nov 26 20:56:40 2011 From: mohareve at ...626... (M. Cs.) Date: Sat, 26 Nov 2011 20:56:40 +0100 Subject: [Gambas-user] Form.Screen is incorrectly overridden in class FMain In-Reply-To: <4ED13D6F.5050100@...1...> References: <4ED13D6F.5050100@...1...> Message-ID: Thanks! Gambas 3 did really improve in the last 6 months! I've tried to port the same app then, but there were many problems which are simply solved now! 2011/11/26, Beno?t Minisini : > Le 26/11/2011 20:25, M. Cs. a ?crit : >> What could that mean? >> I'm trying to port a G2 project to G3, but this error is shown upon >> program start. >> Thanks! >> >> Csaba >> > > Form.Screen is a new property in Gambas 3. So you must use another name > for your own use. > > Regards, > > -- > Beno?t Minisini > > ------------------------------------------------------------------------------ > All the data continuously generated in your IT infrastructure > contains a definitive record of customers, application performance, > security threats, fraudulent activity, and more. Splunk takes this > data and makes sense of it. IT sense. And common sense. > http://p.sf.net/sfu/splunk-novd2d > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From leo_senpao at ...1541... Sat Nov 26 23:55:10 2011 From: leo_senpao at ...1541... (Leo Sendra) Date: Sun, 27 Nov 2011 06:55:10 +0800 (SGT) Subject: [Gambas-user] (no subject) Message-ID: <1322348110.38983.yint-ygo-j2me@...1985...> .. http://www.supersaw.us/winterpharm.html?lelinkFriend=9xaf2 From mohareve at ...626... Sun Nov 27 18:04:06 2011 From: mohareve at ...626... (M. Cs.) Date: Sun, 27 Nov 2011 18:04:06 +0100 Subject: [Gambas-user] Menu icons are not displayed Message-ID: Hello all! I have a problem. While around 90% of the ported project works well on G3, my menu images are not visible. They are present in the project's root folder just as they were there in G2. Any idea? Csaba From gambas at ...1... Sun Nov 27 18:08:33 2011 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Sun, 27 Nov 2011 18:08:33 +0100 Subject: [Gambas-user] Menu icons are not displayed In-Reply-To: References: Message-ID: <4ED26E91.9030408@...1...> Le 27/11/2011 18:04, M. Cs. a ?crit : > Hello all! > I have a problem. While around 90% of the ported project works well on > G3, my menu images are not visible. They are present in the project's > root folder just as they were there in G2. Any idea? > > Csaba > Let me guess: you are using Ubuntu or the Ubuntu Qt4 style that does not display icons in menus? -- Beno?t Minisini From mohareve at ...626... Sun Nov 27 18:28:26 2011 From: mohareve at ...626... (M. Cs.) Date: Sun, 27 Nov 2011 18:28:26 +0100 Subject: [Gambas-user] Menu icons are not displayed In-Reply-To: <4ED26E91.9030408@...1...> References: <4ED26E91.9030408@...1...> Message-ID: I'm using Xubuntu 11.10, and the images on startmenu items are displayed well. I'll check it under LXDE. 2011/11/27, Beno?t Minisini : > Le 27/11/2011 18:04, M. Cs. a ?crit : >> Hello all! >> I have a problem. While around 90% of the ported project works well on >> G3, my menu images are not visible. They are present in the project's >> root folder just as they were there in G2. Any idea? >> >> Csaba >> > > Let me guess: you are using Ubuntu or the Ubuntu Qt4 style that does not > display icons in menus? > > -- > Beno?t Minisini > > ------------------------------------------------------------------------------ > All the data continuously generated in your IT infrastructure > contains a definitive record of customers, application performance, > security threats, fraudulent activity, and more. Splunk takes this > data and makes sense of it. IT sense. And common sense. > http://p.sf.net/sfu/splunk-novd2d > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From mohareve at ...626... Sun Nov 27 18:32:22 2011 From: mohareve at ...626... (M. Cs.) Date: Sun, 27 Nov 2011 18:32:22 +0100 Subject: [Gambas-user] Menu icons are not displayed In-Reply-To: References: <4ED26E91.9030408@...1...> Message-ID: Yes, you got it! The menu icons are displayed correctly when I use LXDE desktop. So this may be issue with XFCE style. Thanks! 2011/11/27, M. Cs. : > I'm using Xubuntu 11.10, and the images on startmenu items are displayed > well. > I'll check it under LXDE. > > 2011/11/27, Beno?t Minisini : >> Le 27/11/2011 18:04, M. Cs. a ?crit : >>> Hello all! >>> I have a problem. While around 90% of the ported project works well on >>> G3, my menu images are not visible. They are present in the project's >>> root folder just as they were there in G2. Any idea? >>> >>> Csaba >>> >> >> Let me guess: you are using Ubuntu or the Ubuntu Qt4 style that does not >> display icons in menus? >> >> -- >> Beno?t Minisini >> >> ------------------------------------------------------------------------------ >> All the data continuously generated in your IT infrastructure >> contains a definitive record of customers, application performance, >> security threats, fraudulent activity, and more. Splunk takes this >> data and makes sense of it. IT sense. And common sense. >> http://p.sf.net/sfu/splunk-novd2d >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > From gambas at ...2524... Sun Nov 27 19:56:37 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Sun, 27 Nov 2011 18:56:37 +0000 Subject: [Gambas-user] Issue 152 in gambas: Minor bug with help texts. Message-ID: <0-6813199134517018827-1043921039689062273-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 152 by jussi.la... at ...626...: Minor bug with help texts. http://code.google.com/p/gambas/issues/detail?id=152 1) Describe the problem. See attached screenshot. 2) GIVE THE FOLLOWING INFORMATIONS (if they are appropriate): Version: TRUNK Revision: r4257 Operating system: Linux Distribution: Xubuntu Architecture: x86_64 GUI component: GTK+ Desktop used: XFCE 3) Provide a little project that reproduces the bug or the crash. Attached. Attachments: helptextbug.jpg 47.6 KB HelpTestBug-0.0.1.tar.gz 4.4 KB From geaplanet at ...397... Mon Nov 28 10:17:31 2011 From: geaplanet at ...397... (Maria) Date: Mon, 28 Nov 2011 09:17:31 +0000 (GMT) Subject: [Gambas-user] Drag & drop files Message-ID: <1322471851.54141.YahooMailNeo@...2727...> Hi! I was trying drag&drop posibilities in Gambas and I was wondering if you could help me with a problem I found. I create a button with the DROP property TRUE. Then I write this: PUBLIC SUB button_Drop() DIM a AS String ??a = Drag.Paste() ??a = RTrim(a) ??EXEC ["gedit", a] END This works.? Drag.Paste get the file I droped, but in an horrible html format, with %20 in spaces and other characters like ? ?????, etc... AND starting with "file://" Gedit works because untherstand this format, butmust commands do not understand this format. AND it finishes with a strange character that I have to cut with RTrim otherwise I would not work. Now the questions: How to get a lot of files droped into the button? How to get real and good path for all applications can untherstand it? I would like to get a simple application for massive treatment of files, for example, to use with "convert" for converting png into jpg, resizing images, rotating, etc... or for using with "lame" for mp3 converting, etc... I? normally use in a terminal bash with $@ for getting all files like parameters, and I do something like this: for i in "$@"; do ??????convert -rotate -90 "$i" "$i" ;done How to do this in Gambas? Thanks. From eilert-sprachen at ...221... Mon Nov 28 12:24:20 2011 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Mon, 28 Nov 2011 12:24:20 +0100 Subject: [Gambas-user] Editor with tooltips (Gambas 2) Message-ID: <4ED36F64.5040000@...221...> As I am using the editor at several places in my projects now, I would be happy if it was possible to give tooltips to the user. Don't know if you call them different, I mean the yellow helpline which gives an idea of the parameters you can state, e. g. Add(Value AS String [,Index AS Integer]) as soon as you type the ( after .Add Is that functionality already there? Or does someone have an idea how to implement it? Thanks for your hints! Rolf From Karl.Reinl at ...2345... Mon Nov 28 14:27:06 2011 From: Karl.Reinl at ...2345... (Charlie Reinl) Date: Mon, 28 Nov 2011 14:27:06 +0100 Subject: [Gambas-user] Editor with tooltips (Gambas 2) In-Reply-To: <4ED36F64.5040000@...221...> References: <4ED36F64.5040000@...221...> Message-ID: <1322486826.6295.5.camel@...40...> Am Montag, den 28.11.2011, 12:24 +0100 schrieb Rolf-Werner Eilert: > As I am using the editor at several places in my projects now, I would > be happy if it was possible to give tooltips to the user. > > Don't know if you call them different, I mean the yellow helpline which > gives an idea of the parameters you can state, e. g. > > Add(Value AS String [,Index AS Integer]) > > as soon as you type the ( after .Add > > Is that functionality already there? Or does someone have an idea how to > implement it? > > Thanks for your hints! > > Rolf > Salut Rolf, you should look at CheckCompletion in FEditor, in the gambas2 project (the gambas2 IDE) . Think that's what you'r looking for -- Amicalement Charlie From eilert-sprachen at ...221... Mon Nov 28 16:34:20 2011 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Mon, 28 Nov 2011 16:34:20 +0100 Subject: [Gambas-user] Editor with tooltips (Gambas 2) In-Reply-To: <1322486826.6295.5.camel@...40...> References: <4ED36F64.5040000@...221...> <1322486826.6295.5.camel@...40...> Message-ID: <4ED3A9FC.4080107@...221...> Am 28.11.2011 14:27, schrieb Charlie Reinl: > Am Montag, den 28.11.2011, 12:24 +0100 schrieb Rolf-Werner Eilert: >> As I am using the editor at several places in my projects now, I would >> be happy if it was possible to give tooltips to the user. >> >> Don't know if you call them different, I mean the yellow helpline which >> gives an idea of the parameters you can state, e. g. >> >> Add(Value AS String [,Index AS Integer]) >> >> as soon as you type the ( after .Add >> >> Is that functionality already there? Or does someone have an idea how to >> implement it? >> >> Thanks for your hints! >> >> Rolf >> > Salut Rolf, > > you should look at CheckCompletion in FEditor, in the gambas2 project > (the gambas2 IDE) . > > Think that's what you'r looking for Thank you very much, but I think this is the drop-down list of suggestions that appears when you type "." for instance. What I was looking for is the small yellow "window" under my current code line that has what can be typed into a () for some function (system or own ones). It appears when you type "(" and looks like a tooltip of some kind. Or is it in there? Then I didn't find it. From Karl.Reinl at ...2345... Mon Nov 28 18:51:18 2011 From: Karl.Reinl at ...2345... (Charlie Reinl) Date: Mon, 28 Nov 2011 18:51:18 +0100 Subject: [Gambas-user] Editor with tooltips (Gambas 2) In-Reply-To: <4ED3A9FC.4080107@...221...> References: <4ED36F64.5040000@...221...> <1322486826.6295.5.camel@...40...> <4ED3A9FC.4080107@...221...> Message-ID: <1322502678.6422.4.camel@...40...> Am Montag, den 28.11.2011, 16:34 +0100 schrieb Rolf-Werner Eilert: > Am 28.11.2011 14:27, schrieb Charlie Reinl: > > Am Montag, den 28.11.2011, 12:24 +0100 schrieb Rolf-Werner Eilert: > >> As I am using the editor at several places in my projects now, I would > >> be happy if it was possible to give tooltips to the user. > >> > >> Don't know if you call them different, I mean the yellow helpline which > >> gives an idea of the parameters you can state, e. g. > >> > >> Add(Value AS String [,Index AS Integer]) > >> > >> as soon as you type the ( after .Add > >> > >> Is that functionality already there? Or does someone have an idea how to > >> implement it? > >> > >> Thanks for your hints! > >> > >> Rolf > >> > > Salut Rolf, > > > > you should look at CheckCompletion in FEditor, in the gambas2 project > > (the gambas2 IDE) . > > > > Think that's what you'r looking for > > Thank you very much, but I think this is the drop-down list of > suggestions that appears when you type "." for instance. > > What I was looking for is the small yellow "window" under my current > code line that has what can be typed into a () for some function (system > or own ones). It appears when you type "(" and looks like a tooltip of > some kind. Or is it in there? Then I didn't find it. Salut Rolf, ok, if it is not this one, it has to be in FEditor it starts in GetExpressionSignature and find you yellow Window in FSignature (between is a long (debug) way) -- Amicalement Charlie From rterry at ...1823... Mon Nov 28 22:09:34 2011 From: rterry at ...1823... (richard terry) Date: Tue, 29 Nov 2011 08:09:34 +1100 Subject: [Gambas-user] scroll bar question (in webview) Message-ID: <201111290809.34848.rterry@...1823...> I wondered if there was anyway in code to set the scroll bar to be as far down as possible, so the user dosn't have to manually grab this and drag it all the way down the side of the scroll bar. REgards Richard From admhardsoft at ...253... Mon Nov 28 23:39:19 2011 From: admhardsoft at ...253... (=?iso-8859-1?Q?Tom=E1s_Rodriguez?=) Date: Mon, 28 Nov 2011 14:39:19 -0800 (PST) Subject: [Gambas-user] this has been how to start your new life... Message-ID: <1322519959.94457.androidMobile@...2729...>

Hola Friend.
id finally hit rock bottom this allows me to spend my paycheck the way I want to now people turn to me for financial advice just wanted to help out a friend
http://www.athenaconstruction.net/profile/45MartinCarter/
talk to you later.

From robert1juhasz at ...626... Tue Nov 29 10:42:57 2011 From: robert1juhasz at ...626... (JUHASZ Robert) Date: Tue, 29 Nov 2011 10:42:57 +0100 Subject: [Gambas-user] problems after ubuntu 11.04 update Message-ID: <1322559777.1998.11.camel@...2425...> Hello, I updated my gambas2 to the latest revision 2 days ago and was perfectly happy as the eval function works again. This morning an automatic update of my OS (Ubuntu 11.04, 32bit) was performed which was a "big" update (with an updated kernel to 2.6.38-13). After the update my programs (developed in gambas2 and installed - so not running from the IDE) again don't work properly, especially the eval function. I tried to check the error from the IDE but the gambas IDE doesn't start. The error message is "ERROR: #27: Cannot load component 'gb.form.dialog': cannot find library file". I reconfigured and recompiled gambas but it didn't help. I also updated to the latest revision from svn, reconfigured, reinstalled but it didn't solve the issue. Can you please help in this matter. Did anyone else meet the same problem? Thx, Robi From eilert-sprachen at ...221... Tue Nov 29 12:07:04 2011 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Tue, 29 Nov 2011 12:07:04 +0100 Subject: [Gambas-user] Editor with tooltips (Gambas 2) In-Reply-To: <1322502678.6422.4.camel@...40...> References: <4ED36F64.5040000@...221...> <1322486826.6295.5.camel@...40...> <4ED3A9FC.4080107@...221...> <1322502678.6422.4.camel@...40...> Message-ID: <4ED4BCD8.7080300@...221...> Am 28.11.2011 18:51, schrieb Charlie Reinl: > Am Montag, den 28.11.2011, 16:34 +0100 schrieb Rolf-Werner Eilert: >> Am 28.11.2011 14:27, schrieb Charlie Reinl: >>> Am Montag, den 28.11.2011, 12:24 +0100 schrieb Rolf-Werner Eilert: >>>> As I am using the editor at several places in my projects now, I would >>>> be happy if it was possible to give tooltips to the user. >>>> >>>> Don't know if you call them different, I mean the yellow helpline which >>>> gives an idea of the parameters you can state, e. g. >>>> >>>> Add(Value AS String [,Index AS Integer]) >>>> >>>> as soon as you type the ( after .Add >>>> >>>> Is that functionality already there? Or does someone have an idea how to >>>> implement it? >>>> >>>> Thanks for your hints! >>>> >>>> Rolf >>>> >>> Salut Rolf, >>> >>> you should look at CheckCompletion in FEditor, in the gambas2 project >>> (the gambas2 IDE) . >>> >>> Think that's what you'r looking for >> >> Thank you very much, but I think this is the drop-down list of >> suggestions that appears when you type "." for instance. >> >> What I was looking for is the small yellow "window" under my current >> code line that has what can be typed into a () for some function (system >> or own ones). It appears when you type "(" and looks like a tooltip of >> some kind. Or is it in there? Then I didn't find it. > > Salut Rolf, > > ok, if it is not this one, it has to be in FEditor it starts in > GetExpressionSignature and find you yellow Window in FSignature (between > is a long (debug) way) > Salut, bonjour... Aaah ok, I found it. Hm. No voodoo... Easy thing... I'll need something own, something simpler, however, but it is good to see how it has to be done if you need it so comfortable. Ok, I'll start and we'll see what happens :-) Merci beaucoup! Rolf From eilert-sprachen at ...221... Tue Nov 29 13:16:36 2011 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Tue, 29 Nov 2011 13:16:36 +0100 Subject: [Gambas-user] Editor with tooltips (Gambas 2) In-Reply-To: <1322502678.6422.4.camel@...40...> References: <4ED36F64.5040000@...221...> <1322486826.6295.5.camel@...40...> <4ED3A9FC.4080107@...221...> <1322502678.6422.4.camel@...40...> Message-ID: <4ED4CD24.7010502@...221...> Am 28.11.2011 18:51, schrieb Charlie Reinl: > Am Montag, den 28.11.2011, 16:34 +0100 schrieb Rolf-Werner Eilert: >> Am 28.11.2011 14:27, schrieb Charlie Reinl: >>> Am Montag, den 28.11.2011, 12:24 +0100 schrieb Rolf-Werner Eilert: >>>> As I am using the editor at several places in my projects now, I would >>>> be happy if it was possible to give tooltips to the user. >>>> >>>> Don't know if you call them different, I mean the yellow helpline which >>>> gives an idea of the parameters you can state, e. g. >>>> >>>> Add(Value AS String [,Index AS Integer]) >>>> >>>> as soon as you type the ( after .Add >>>> >>>> Is that functionality already there? Or does someone have an idea how to >>>> implement it? >>>> >>>> Thanks for your hints! >>>> >>>> Rolf >>>> >>> Salut Rolf, >>> >>> you should look at CheckCompletion in FEditor, in the gambas2 project >>> (the gambas2 IDE) . >>> >>> Think that's what you'r looking for >> >> Thank you very much, but I think this is the drop-down list of >> suggestions that appears when you type "." for instance. >> >> What I was looking for is the small yellow "window" under my current >> code line that has what can be typed into a () for some function (system >> or own ones). It appears when you type "(" and looks like a tooltip of >> some kind. Or is it in there? Then I didn't find it. > > Salut Rolf, > > ok, if it is not this one, it has to be in FEditor it starts in > GetExpressionSignature and find you yellow Window in FSignature (between > is a long (debug) way) > Have been trying around for a while... Do you know how to get the current cursor position, maybe within the current line? As soon as the user types "(", I have to give the beginning of the line to find the command standing left of the "(". And I'm not sure if I find it within FEditor. Rolf From jussi.lahtinen at ...626... Tue Nov 29 16:32:40 2011 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Tue, 29 Nov 2011 17:32:40 +0200 Subject: [Gambas-user] problems after ubuntu 11.04 update In-Reply-To: <1322559777.1998.11.camel@...2425...> References: <1322559777.1998.11.camel@...2425...> Message-ID: Not sure what is going on, but I have had similar problems. 1. Stop all gambas processes, and run these commands: sudo rm -f /usr/local/bin/gbx2 /usr/local/bin/gbc2 /usr/local/bin/gba2 /usr/local/bin/gbi2 sudo rm -rf /usr/local/lib/gambas2 sudo rm -rf /usr/local/share/gambas2 2. Delete old sources and download new ones to make sure you have non-corrupted sources. 3. Compile: ( ./reconf-all && ./configure -C && make && sudo make install ) > ~/Desktop/compile.log 2>&1 4. If problem persist send packed compile.log (tar.gz) to the list. Jussi On Tue, Nov 29, 2011 at 11:42, JUHASZ Robert wrote: > Hello, > > I updated my gambas2 to the latest revision 2 days ago and was perfectly > happy as the eval function works again. > This morning an automatic update of my OS (Ubuntu 11.04, 32bit) was > performed which was a "big" update (with an updated kernel to > 2.6.38-13). > > After the update my programs (developed in gambas2 and installed - so > not running from the IDE) again don't work properly, especially the eval > function. > I tried to check the error from the IDE but the gambas IDE doesn't > start. The error message is "ERROR: #27: Cannot load component > 'gb.form.dialog': cannot find library file". > > I reconfigured and recompiled gambas but it didn't help. > I also updated to the latest revision from svn, reconfigured, > reinstalled but it didn't solve the issue. > > Can you please help in this matter. Did anyone else meet the same > problem? > > Thx, > Robi > > > ------------------------------------------------------------------------------ > All the data continuously generated in your IT infrastructure > contains a definitive record of customers, application performance, > security threats, fraudulent activity, and more. Splunk takes this > data and makes sense of it. IT sense. And common sense. > http://p.sf.net/sfu/splunk-novd2d > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From eilert-sprachen at ...221... Tue Nov 29 16:54:47 2011 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Tue, 29 Nov 2011 16:54:47 +0100 Subject: [Gambas-user] Editor with tooltips (Gambas 2) In-Reply-To: <1322502678.6422.4.camel@...40...> References: <4ED36F64.5040000@...221...> <1322486826.6295.5.camel@...40...> <4ED3A9FC.4080107@...221...> <1322502678.6422.4.camel@...40...> Message-ID: <4ED50047.20006@...221...> Am 28.11.2011 18:51, schrieb Charlie Reinl: > Am Montag, den 28.11.2011, 16:34 +0100 schrieb Rolf-Werner Eilert: >> Am 28.11.2011 14:27, schrieb Charlie Reinl: >>> Am Montag, den 28.11.2011, 12:24 +0100 schrieb Rolf-Werner Eilert: >>>> As I am using the editor at several places in my projects now, I would >>>> be happy if it was possible to give tooltips to the user. >>>> >>>> Don't know if you call them different, I mean the yellow helpline which >>>> gives an idea of the parameters you can state, e. g. >>>> >>>> Add(Value AS String [,Index AS Integer]) >>>> >>>> as soon as you type the ( after .Add >>>> >>>> Is that functionality already there? Or does someone have an idea how to >>>> implement it? >>>> >>>> Thanks for your hints! >>>> >>>> Rolf >>>> >>> Salut Rolf, >>> >>> you should look at CheckCompletion in FEditor, in the gambas2 project >>> (the gambas2 IDE) . >>> >>> Think that's what you'r looking for >> >> Thank you very much, but I think this is the drop-down list of >> suggestions that appears when you type "." for instance. >> >> What I was looking for is the small yellow "window" under my current >> code line that has what can be typed into a () for some function (system >> or own ones). It appears when you type "(" and looks like a tooltip of >> some kind. Or is it in there? Then I didn't find it. > > Salut Rolf, > > ok, if it is not this one, it has to be in FEditor it starts in > GetExpressionSignature and find you yellow Window in FSignature (between > is a long (debug) way) > Salut, bonsoir Charlie, This is my third answer :-) In the FEditor source I found how to pick out text parts: Editor[Lines] lets you get the contents of a specific line, and Editor.Line and Editor.Column point to the cursor position. Easy as cake... if you know it ;-) Regards Rolf From wally at ...2037... Tue Nov 29 18:23:14 2011 From: wally at ...2037... (wally) Date: Tue, 29 Nov 2011 18:23:14 +0100 Subject: [Gambas-user] creasting a timer in module Message-ID: <201111291823.14387.wally@...2037...> How can i create a Timer in module and use the Timer_Timer event in this module without putting a controlwidget on the main Form. Can i do the same with SerialPort and SerialPort_Read event ? thx wally From gambas.fr at ...626... Tue Nov 29 18:39:48 2011 From: gambas.fr at ...626... (Fabien Bodard) Date: Tue, 29 Nov 2011 18:39:48 +0100 Subject: [Gambas-user] creasting a timer in module In-Reply-To: <201111291823.14387.wally@...2037...> References: <201111291823.14387.wally@...2037...> Message-ID: Private hTimer as timer() Public sub Main() hTimer= new timer as "MyTimer" hTimer.Delay =1000 hTimer.Start end Public sub MyTimer_Timer() Print "hello" end 2011/11/29 wally : > How can i create a Timer in module and use the Timer_Timer event in this > module without putting a controlwidget on the main Form. > Can i do the same with SerialPort and SerialPort_Read event ? > > thx wally > > ------------------------------------------------------------------------------ > All the data continuously generated in your IT infrastructure > contains a definitive record of customers, application performance, > security threats, fraudulent activity, and more. Splunk takes this > data and makes sense of it. IT sense. And common sense. > http://p.sf.net/sfu/splunk-novd2d > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Fabien Bodard From Karl.Reinl at ...2345... Tue Nov 29 21:25:43 2011 From: Karl.Reinl at ...2345... (Charlie Reinl) Date: Tue, 29 Nov 2011 21:25:43 +0100 Subject: [Gambas-user] Editor with tooltips (Gambas 2) In-Reply-To: <4ED50047.20006@...221...> References: <4ED36F64.5040000@...221...> <1322486826.6295.5.camel@...40...> <4ED3A9FC.4080107@...221...> <1322502678.6422.4.camel@...40...> <4ED50047.20006@...221...> Message-ID: <1322598343.6435.8.camel@...40...> Am Dienstag, den 29.11.2011, 16:54 +0100 schrieb Rolf-Werner Eilert: > Am 28.11.2011 18:51, schrieb Charlie Reinl: > > Am Montag, den 28.11.2011, 16:34 +0100 schrieb Rolf-Werner Eilert: > >> Am 28.11.2011 14:27, schrieb Charlie Reinl: > >>> Am Montag, den 28.11.2011, 12:24 +0100 schrieb Rolf-Werner Eilert: > >>>> As I am using the editor at several places in my projects now, I would > >>>> be happy if it was possible to give tooltips to the user. > >>>> > >>>> Don't know if you call them different, I mean the yellow helpline which > >>>> gives an idea of the parameters you can state, e. g. > >>>> > >>>> Add(Value AS String [,Index AS Integer]) > >>>> > >>>> as soon as you type the ( after .Add > >>>> > >>>> Is that functionality already there? Or does someone have an idea how to > >>>> implement it? > >>>> > >>>> Thanks for your hints! > >>>> > >>>> Rolf > >>>> > >>> Salut Rolf, > >>> > >>> you should look at CheckCompletion in FEditor, in the gambas2 project > >>> (the gambas2 IDE) . > >>> > >>> Think that's what you'r looking for > >> > >> Thank you very much, but I think this is the drop-down list of > >> suggestions that appears when you type "." for instance. > >> > >> What I was looking for is the small yellow "window" under my current > >> code line that has what can be typed into a () for some function (system > >> or own ones). It appears when you type "(" and looks like a tooltip of > >> some kind. Or is it in there? Then I didn't find it. > > > > Salut Rolf, > > > > ok, if it is not this one, it has to be in FEditor it starts in > > GetExpressionSignature and find you yellow Window in FSignature (between > > is a long (debug) way) > > > > Salut, bonsoir Charlie, > > This is my third answer :-) In the FEditor source I found how to pick > out text parts: > > Editor[Lines] lets you get the contents of a specific line, and > Editor.Line and Editor.Column point to the cursor position. Easy as > cake... if you know it ;-) > > Regards > > Rolf Hi Rolf, all I know, comes from debugging. All happened in FEditor. Startes with 'Editor_KeyPress' is parsed by 'CheckCompletion' and sent to 'GetExpressionSignature' With this background you should be able to to find out where Beno?t took the information's. good luck Charlie From rterry at ...1823... Wed Nov 30 04:48:29 2011 From: rterry at ...1823... (richard terry) Date: Wed, 30 Nov 2011 14:48:29 +1100 Subject: [Gambas-user] gambas3 on oneric Message-ID: <201111301448.29640.rterry@...1823...> Does gambas 3 run on this. I've just attempted a compile and the ./reconf-all dies Any help appreciated. Richard From Gambas at ...1950... Wed Nov 30 08:48:48 2011 From: Gambas at ...1950... (Caveat) Date: Wed, 30 Nov 2011 08:48:48 +0100 Subject: [Gambas-user] gambas3 on oneric In-Reply-To: <201111301448.29640.rterry@...1823...> References: <201111301448.29640.rterry@...1823...> Message-ID: <1322639328.8100.53.camel@...2150...> > Any help appreciated. LOL... only from the psychic members of the mailing list! Any information would be appreciated... error message perhaps, copy of the output...don't leave us all guessing! Regards, Caveat On Wed, 2011-11-30 at 14:48 +1100, richard terry wrote: > Does gambas 3 run on this. > > I've just attempted a compile and the ./reconf-all dies > > Any help appreciated. > > > Richard > > ------------------------------------------------------------------------------ > All the data continuously generated in your IT infrastructure > contains a definitive record of customers, application performance, > security threats, fraudulent activity, and more. Splunk takes this > data and makes sense of it. IT sense. And common sense. > http://p.sf.net/sfu/splunk-novd2d > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From robert1juhasz at ...626... Wed Nov 30 10:28:59 2011 From: robert1juhasz at ...626... (JUHASZ Robert) Date: Wed, 30 Nov 2011 10:28:59 +0100 Subject: [Gambas-user] problems after ubuntu 11.04 update In-Reply-To: References: <1322559777.1998.11.camel@...2425...> Message-ID: <1322645339.2052.61.camel@...2425...> Thanks for your instructions Jussi, I tried to follow them. However I still receive the same error message as before. I attached the log file. Thanks for any help. Robi -----Original Message----- From: Jussi Lahtinen Reply-to: mailing list for gambas users To: mailing list for gambas users Subject: Re: [Gambas-user] problems after ubuntu 11.04 update Date: Tue, 29 Nov 2011 17:32:40 +0200 Not sure what is going on, but I have had similar problems. 1. Stop all gambas processes, and run these commands: sudo rm -f /usr/local/bin/gbx2 /usr/local/bin/gbc2 /usr/local/bin/gba2 /usr/local/bin/gbi2 sudo rm -rf /usr/local/lib/gambas2 sudo rm -rf /usr/local/share/gambas2 2. Delete old sources and download new ones to make sure you have non-corrupted sources. 3. Compile: ( ./reconf-all && ./configure -C && make && sudo make install ) > ~/Desktop/compile.log 2>&1 4. If problem persist send packed compile.log (tar.gz) to the list. Jussi On Tue, Nov 29, 2011 at 11:42, JUHASZ Robert wrote: > Hello, > > I updated my gambas2 to the latest revision 2 days ago and was perfectly > happy as the eval function works again. > This morning an automatic update of my OS (Ubuntu 11.04, 32bit) was > performed which was a "big" update (with an updated kernel to > 2.6.38-13). > > After the update my programs (developed in gambas2 and installed - so > not running from the IDE) again don't work properly, especially the eval > function. > I tried to check the error from the IDE but the gambas IDE doesn't > start. The error message is "ERROR: #27: Cannot load component > 'gb.form.dialog': cannot find library file". > > I reconfigured and recompiled gambas but it didn't help. > I also updated to the latest revision from svn, reconfigured, > reinstalled but it didn't solve the issue. > > Can you please help in this matter. Did anyone else meet the same > problem? > > Thx, > Robi > > > ------------------------------------------------------------------------------ > All the data continuously generated in your IT infrastructure > contains a definitive record of customers, application performance, > security threats, fraudulent activity, and more. Splunk takes this > data and makes sense of it. IT sense. And common sense. > http://p.sf.net/sfu/splunk-novd2d > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > ------------------------------------------------------------------------------ All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-novd2d _______________________________________________ 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: compile.log.tar.gz Type: application/x-compressed-tar Size: 14677 bytes Desc: not available URL: From sevoir75 at ...626... Wed Nov 30 10:49:57 2011 From: sevoir75 at ...626... (=?ISO-8859-1?Q?Norbert_Szenogr=E1di?=) Date: Wed, 30 Nov 2011 10:49:57 +0100 Subject: [Gambas-user] problems after ubuntu 11.04 update In-Reply-To: <1322645339.2052.61.camel@...2425...> References: <1322559777.1998.11.camel@...2425...> <1322645339.2052.61.camel@...2425...> Message-ID: <4ED5FC45.5000606@...626...> Hello Robert, You can try Kendek's ppa repository: https://launchpad.net/~nemh/+ppa-packages I hope this help for your problem. Robi: pr?b?ld meg Kendek ppa t?rol?j?t, rem?lem megoldja a probl?m?d :-) ?dv.: Sevoir 2011-11-30 10:28 keltez?ssel, JUHASZ Robert ?rta: > Thanks for your instructions Jussi, I tried to follow them. > However I still receive the same error message as before. > > I attached the log file. > > Thanks for any help. > > Robi > > -----Original Message----- > From: Jussi Lahtinen > Reply-to: mailing list for gambas users > > To: mailing list for gambas users > Subject: Re: [Gambas-user] problems after ubuntu 11.04 update > Date: Tue, 29 Nov 2011 17:32:40 +0200 > > > Not sure what is going on, but I have had similar problems. > > 1. Stop all gambas processes, and run these commands: > sudo rm -f /usr/local/bin/gbx2 /usr/local/bin/gbc2 /usr/local/bin/gba2 > /usr/local/bin/gbi2 > sudo rm -rf /usr/local/lib/gambas2 > sudo rm -rf /usr/local/share/gambas2 > > 2. Delete old sources and download new ones to make sure you have > non-corrupted sources. > > 3. Compile: > ( ./reconf-all&& ./configure -C&& make&& sudo make install )> > ~/Desktop/compile.log 2>&1 > > 4. If problem persist send packed compile.log (tar.gz) to the list. > > Jussi > > > > > On Tue, Nov 29, 2011 at 11:42, JUHASZ Robertwrote: > >> Hello, >> >> I updated my gambas2 to the latest revision 2 days ago and was perfectly >> happy as the eval function works again. >> This morning an automatic update of my OS (Ubuntu 11.04, 32bit) was >> performed which was a "big" update (with an updated kernel to >> 2.6.38-13). >> >> After the update my programs (developed in gambas2 and installed - so >> not running from the IDE) again don't work properly, especially the eval >> function. >> I tried to check the error from the IDE but the gambas IDE doesn't >> start. The error message is "ERROR: #27: Cannot load component >> 'gb.form.dialog': cannot find library file". >> >> I reconfigured and recompiled gambas but it didn't help. >> I also updated to the latest revision from svn, reconfigured, >> reinstalled but it didn't solve the issue. >> >> Can you please help in this matter. Did anyone else meet the same >> problem? >> >> Thx, >> Robi >> >> >> ------------------------------------------------------------------------------ >> All the data continuously generated in your IT infrastructure >> contains a definitive record of customers, application performance, >> security threats, fraudulent activity, and more. Splunk takes this >> data and makes sense of it. IT sense. And common sense. >> http://p.sf.net/sfu/splunk-novd2d >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > ------------------------------------------------------------------------------ > All the data continuously generated in your IT infrastructure > contains a definitive record of customers, application performance, > security threats, fraudulent activity, and more. Splunk takes this > data and makes sense of it. IT sense. And common sense. > http://p.sf.net/sfu/splunk-novd2d > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > ------------------------------------------------------------------------------ > All the data continuously generated in your IT infrastructure > contains a definitive record of customers, application performance, > security threats, fraudulent activity, and more. Splunk takes this > data and makes sense of it. IT sense. And common sense. > http://p.sf.net/sfu/splunk-novd2d > > > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From rterry at ...1823... Wed Nov 30 11:20:13 2011 From: rterry at ...1823... (richard terry) Date: Wed, 30 Nov 2011 21:20:13 +1100 Subject: [Gambas-user] gambas3 on oneric In-Reply-To: <1322639328.8100.53.camel@...2150...> References: <201111301448.29640.rterry@...1823...> <1322639328.8100.53.camel@...2150...> Message-ID: <201111302120.13813.rterry@...1823...> On Wednesday 30 November 2011 18:48:48 Caveat wrote: Ok, bad hair day, yes very ambiguous. What I meant was that the gambas web site has no listing of needed dependencies. Anway I found this at http://www.domotiga.nl/projects/domotiga/wiki/Install Ubuntu Oneiric Ocelot 11.10 sudo apt-get install build-essential autoconf subversion libbz2-dev libfbclient2 libmysqlclient-dev unixodbc-dev libpq-dev \ libsqlite0-dev libsqlite3-dev libgtk2.0-dev libldap2-dev libcurl4-gnutls-dev libgtkglext1-dev libpcre3-dev \ libsdl-sound1.2-dev libsdl-mixer1.2-dev libsdl-image1.2-dev libsage-dev libxml2-dev libxslt1-dev libbonobo2-dev \ libcos4-dev libomniorb4-dev librsvg2-dev libpoppler-dev libpoppler-glib-dev libasound2-dev libesd0-dev \ libdirectfb-dev libaa1-dev libxtst-dev libffi-dev firebird2.1-dev libqt4-dev libglew1.5-dev \ libimlib2-dev libv4l-dev libsdl-ttf2.0-dev libgnome-keyring-dev libgdk- pixbuf2.0-dev mysql-client-core-5.1 mysql-server \ libc6 libqt3-mt-dev libqt3-mt libstdc++6 libqt3-headers This worked fine. Benoit I wonder if this could be put on the gambas web site if you think it is accurate - worked on the laptop I was working on . Regards Richard > > Any help appreciated. > > LOL... only from the psychic members of the mailing list! > > Any information would be appreciated... error message perhaps, copy of > the output...don't leave us all guessing! > > Regards, > Caveat > > On Wed, 2011-11-30 at 14:48 +1100, richard terry wrote: > > Does gambas 3 run on this. > > > > I've just attempted a compile and the ./reconf-all dies > > > > Any help appreciated. > > > > > > Richard > > > > ------------------------------------------------------------------------- > >----- All the data continuously generated in your IT infrastructure > > contains a definitive record of customers, application performance, > > security threats, fraudulent activity, and more. Splunk takes this > > data and makes sense of it. IT sense. And common sense. > > http://p.sf.net/sfu/splunk-novd2d > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > --------------------------------------------------------------------------- > --- All the data continuously generated in your IT infrastructure > contains a definitive record of customers, application performance, > security threats, fraudulent activity, and more. Splunk takes this > data and makes sense of it. IT sense. And common sense. > http://p.sf.net/sfu/splunk-novd2d > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From rterry at ...1823... Wed Nov 30 11:22:57 2011 From: rterry at ...1823... (richard terry) Date: Wed, 30 Nov 2011 21:22:57 +1100 Subject: [Gambas-user] Locale question and gambas and dates. Message-ID: <201111302122.57749.rterry@...1823...> I have had the occasion to install my svn and get it up/running on kubuntu 11, god what a pain. Anway when I ran the program, virtualy nothing would save, because: IsDate(textbox1.text) always returned false for a correct date (AU). I looked and found that he had the locale set to America. I changed it back to Australia, but to no avail, still won't save. If I put the dates in american (eg 11/30/11) then it saves ok. I tried re-compiling gambas once I'd changed the locale, to no avail. ?any suggestions - must be some sort of setting regards Richard From gambas at ...1... Wed Nov 30 11:33:55 2011 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Wed, 30 Nov 2011 11:33:55 +0100 Subject: [Gambas-user] Locale question and gambas and dates. In-Reply-To: <201111302122.57749.rterry@...1823...> References: <201111302122.57749.rterry@...1823...> Message-ID: <4ED60693.1050903@...1...> Le 30/11/2011 11:22, richard terry a ?crit : > I have had the occasion to install my svn and get it up/running on kubuntu 11, > god what a pain. > > Anway when I ran the program, virtualy nothing would save, because: > > IsDate(textbox1.text) always returned false for a correct date (AU). > > I looked and found that he had the locale set to America. > > I changed it back to Australia, but to no avail, still won't save. If I put > the dates in american (eg 11/30/11) then it saves ok. > > I tried re-compiling gambas once I'd changed the locale, to no avail. > > ?any suggestions - must be some sort of setting > > regards > > Richard > Can you elaborate? I am not australian, I don't know how dates should be written in australian. To check how australian dates are configured by the C library, just give me the result of: Print Format(Now, gb.GeneralDate) Regards, -- Beno?t Minisini From gambas at ...1... Wed Nov 30 11:34:42 2011 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Wed, 30 Nov 2011 11:34:42 +0100 Subject: [Gambas-user] gambas3 on oneric In-Reply-To: <201111302120.13813.rterry@...1823...> References: <201111301448.29640.rterry@...1823...> <1322639328.8100.53.camel@...2150...> <201111302120.13813.rterry@...1823...> Message-ID: <4ED606C2.5050607@...1...> Le 30/11/2011 11:20, richard terry a ?crit : > On Wednesday 30 November 2011 18:48:48 Caveat wrote: > > Ok, bad hair day, yes very ambiguous. > > What I meant was that the gambas web site has no listing of needed > dependencies. > > Anway I found this at http://www.domotiga.nl/projects/domotiga/wiki/Install > > Ubuntu Oneiric Ocelot 11.10 > > sudo apt-get install build-essential autoconf subversion libbz2-dev > libfbclient2 libmysqlclient-dev unixodbc-dev libpq-dev \ > libsqlite0-dev libsqlite3-dev libgtk2.0-dev libldap2-dev libcurl4-gnutls-dev > libgtkglext1-dev libpcre3-dev \ > libsdl-sound1.2-dev libsdl-mixer1.2-dev libsdl-image1.2-dev libsage-dev > libxml2-dev libxslt1-dev libbonobo2-dev \ > libcos4-dev libomniorb4-dev librsvg2-dev libpoppler-dev libpoppler-glib-dev > libasound2-dev libesd0-dev \ > libdirectfb-dev libaa1-dev libxtst-dev libffi-dev firebird2.1-dev libqt4-dev > libglew1.5-dev \ > libimlib2-dev libv4l-dev libsdl-ttf2.0-dev libgnome-keyring-dev libgdk- > pixbuf2.0-dev mysql-client-core-5.1 mysql-server \ > libc6 libqt3-mt-dev libqt3-mt libstdc++6 libqt3-headers > > This worked fine. > > Benoit I wonder if this could be put on the gambas web site if you think it is > accurate - worked on the laptop I was working on . > > Regards > > Richard > Of course it can. Moreover, anybody having a write access to the wiki can do that! -- Beno?t Minisini From rterry at ...1823... Wed Nov 30 11:48:29 2011 From: rterry at ...1823... (richard terry) Date: Wed, 30 Nov 2011 21:48:29 +1100 Subject: [Gambas-user] Locale question and gambas and dates. In-Reply-To: <4ED60693.1050903@...1...> References: <201111302122.57749.rterry@...1823...> <4ED60693.1050903@...1...> Message-ID: <201111302148.29698.rterry@...1823...> On Wednesday 30 November 2011 21:33:55 Beno?t Minisini wrote: > Le 30/11/2011 11:22, richard terry a ?crit : > > I have had the occasion to install my svn and get it up/running on > > kubuntu 11, god what a pain. > > > > Anway when I ran the program, virtualy nothing would save, because: > > > > IsDate(textbox1.text) always returned false for a correct date (AU). > > > > I looked and found that he had the locale set to America. > > > > I changed it back to Australia, but to no avail, still won't save. If I > > put the dates in american (eg 11/30/11) then it saves ok. > > > > I tried re-compiling gambas once I'd changed the locale, to no avail. > > > > ?any suggestions - must be some sort of setting > > > > regards > > > > Richard > > Can you elaborate? I am not australian, I don't know how dates should be > written in australian. dd/mm/yyyy > > To check how australian dates are configured by the C library, just give > me the result of: Print Format(Now, gb.GeneralDate) 30/11/2011 21:39:14 (on my laptop) with AU locale. The other one with locate (apparently according to the system set to AU) 11/30/2011 21:39:14 > > Regards, > From dag.jarle.johansen at ...626... Wed Nov 30 14:32:50 2011 From: dag.jarle.johansen at ...626... (Dag-Jarle Johansen) Date: Wed, 30 Nov 2011 14:32:50 +0100 Subject: [Gambas-user] something to do - once again Message-ID: to you who responded on my first request, I have to appoligage. I have changed my location - about 16.000 kms - and here we have WIFI in house. but I bought the wrong stick, it seams, I can't get it work with linux. and then using some kind of SVN is not easy - MS ist shit here, and I have to change harddisks all the way, so it got too heavy for me at the moment. I still want to do something, and for those who are interessed stay in touch - just have to get a stick which works with ubuntu regards, Dag-Jarle From dag.jarle.johansen at ...626... Wed Nov 30 14:39:33 2011 From: dag.jarle.johansen at ...626... (Dag-Jarle Johansen) Date: Wed, 30 Nov 2011 14:39:33 +0100 Subject: [Gambas-user] Locale question and gambas and dates. In-Reply-To: <201111302148.29698.rterry@...1823...> References: <201111302122.57749.rterry@...1823...> <4ED60693.1050903@...1...> <201111302148.29698.rterry@...1823...> Message-ID: hi, looks like the same format as the american to me, so I rather think this is a linuxbug rather than a gambas-bug. my humble opinion. Regards, Dag-Jarle 2011/11/30 richard terry > On Wednesday 30 November 2011 21:33:55 Beno?t Minisini wrote: > > Le 30/11/2011 11:22, richard terry a ?crit : > > > I have had the occasion to install my svn and get it up/running on > > > kubuntu 11, god what a pain. > > > > > > Anway when I ran the program, virtualy nothing would save, because: > > > > > > IsDate(textbox1.text) always returned false for a correct date (AU). > > > > > > I looked and found that he had the locale set to America. > > > > > > I changed it back to Australia, but to no avail, still won't save. If I > > > put the dates in american (eg 11/30/11) then it saves ok. > > > > > > I tried re-compiling gambas once I'd changed the locale, to no avail. > > > > > > ?any suggestions - must be some sort of setting > > > > > > regards > > > > > > Richard > > > > Can you elaborate? I am not australian, I don't know how dates should be > > written in australian. > > dd/mm/yyyy > > > > > To check how australian dates are configured by the C library, just give > > me the result of: Print Format(Now, gb.GeneralDate) > > 30/11/2011 21:39:14 (on my laptop) with AU locale. > > The other one with locate (apparently according to the system set to AU) > > 11/30/2011 21:39:14 > > > > Regards, > > > > > ------------------------------------------------------------------------------ > All the data continuously generated in your IT infrastructure > contains a definitive record of customers, application performance, > security threats, fraudulent activity, and more. Splunk takes this > data and makes sense of it. IT sense. And common sense. > http://p.sf.net/sfu/splunk-novd2d > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From dag.jarle.johansen at ...626... Wed Nov 30 15:21:51 2011 From: dag.jarle.johansen at ...626... (Dag-Jarle Johansen) Date: Wed, 30 Nov 2011 15:21:51 +0100 Subject: [Gambas-user] Locale question and gambas and dates. In-Reply-To: References: <201111302122.57749.rterry@...1823...> <4ED60693.1050903@...1...> <201111302148.29698.rterry@...1823...> Message-ID: ups, just opposite dd/mm/yyyy is in fact european and if you see that if you go to your calendar in Kubuntu it should be ok. If you need to convert the datestring, write a little sub, I do have something lying around here, if you want to. I am used to convert almost every date to MySql-formats and back regards Dag-Jarle 2011/11/30 Dag-Jarle Johansen > hi, > > looks like the same format as the american to me, so I rather think this > is a linuxbug rather than a gambas-bug. > my humble opinion. > > Regards, > Dag-Jarle > > > 2011/11/30 richard terry > >> On Wednesday 30 November 2011 21:33:55 Beno?t Minisini wrote: >> > Le 30/11/2011 11:22, richard terry a ?crit : >> > > I have had the occasion to install my svn and get it up/running on >> > > kubuntu 11, god what a pain. >> > > >> > > Anway when I ran the program, virtualy nothing would save, because: >> > > >> > > IsDate(textbox1.text) always returned false for a correct date (AU). >> > > >> > > I looked and found that he had the locale set to America. >> > > >> > > I changed it back to Australia, but to no avail, still won't save. If >> I >> > > put the dates in american (eg 11/30/11) then it saves ok. >> > > >> > > I tried re-compiling gambas once I'd changed the locale, to no avail. >> > > >> > > ?any suggestions - must be some sort of setting >> > > >> > > regards >> > > >> > > Richard >> > >> > Can you elaborate? I am not australian, I don't know how dates should be >> > written in australian. >> >> dd/mm/yyyy >> >> > >> > To check how australian dates are configured by the C library, just give >> > me the result of: Print Format(Now, gb.GeneralDate) >> >> 30/11/2011 21:39:14 (on my laptop) with AU locale. >> >> The other one with locate (apparently according to the system set to AU) >> >> 11/30/2011 21:39:14 >> > >> > Regards, >> > >> >> >> ------------------------------------------------------------------------------ >> All the data continuously generated in your IT infrastructure >> contains a definitive record of customers, application performance, >> security threats, fraudulent activity, and more. Splunk takes this >> data and makes sense of it. IT sense. And common sense. >> http://p.sf.net/sfu/splunk-novd2d >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > From soleilpqd at ...626... Wed Nov 30 16:15:23 2011 From: soleilpqd at ...626... (=?UTF-8?B?UGjhuqFtIFF1YW5nIETGsMahbmc=?=) Date: Wed, 30 Nov 2011 22:15:23 +0700 Subject: [Gambas-user] Drag & drop files In-Reply-To: <1322471851.54141.YahooMailNeo@...2727...> References: <1322471851.54141.YahooMailNeo@...2727...> Message-ID: Hi, For 1 of your questions, try (require gvfs library): Library "libgvfscommon:0" Private Extern g_object_unref(gObject As Pointer) Private Extern g_file_new_for_uri(fUri As Pointer) As Pointer Private Extern g_file_get_path(gFile As Pointer) As String Public Function pathFromURI(uri As String) As String Dim pGFile As Pointer Dim s As String s = uri pGFile = g_file_new_for_uri(VarPtr(s)) s = g_file_get_path(pGFile) g_object_unref(pGFile) Return s End No matter file exists or not. 2011/11/28 Maria > Hi! > > I was trying drag&drop posibilities in Gambas and I was wondering if you > could help me with a problem I found. > > I create a button with the DROP property TRUE. Then I write this: > > PUBLIC SUB button_Drop() > > DIM a AS String > > a = Drag.Paste() > a = RTrim(a) > EXEC ["gedit", a] > END > > > This works. Drag.Paste get the file I droped, but in an horrible html > format, with %20 in spaces and other > characters like ? ?????, etc... AND starting with "file://" > Gedit works because untherstand this format, butmust commands do not > understand this format. AND it finishes with a strange character that I > have to cut with RTrim otherwise I would not work. > > Now the questions: > > How to get a lot of files droped into the button? > How to get real and good path for all applications can untherstand it? > > I would like to get a simple application for massive treatment of files, > for example, to use with "convert" for converting png into jpg, resizing > images, rotating, etc... or for using with "lame" for mp3 converting, > etc... > > I normally use in a terminal bash with $@ for getting all files like > parameters, and I do something like this: > > for i in "$@"; do > > convert -rotate -90 "$i" "$i" > > ;done > > > > How to do this in Gambas? > > Thanks. > > ------------------------------------------------------------------------------ > All the data continuously generated in your IT infrastructure > contains a definitive record of customers, application performance, > security threats, fraudulent activity, and more. Splunk takes this > data and makes sense of it. IT sense. And common sense. > http://p.sf.net/sfu/splunk-novd2d > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From soleilpqd at ...626... Wed Nov 30 16:27:40 2011 From: soleilpqd at ...626... (=?UTF-8?B?UGjhuqFtIFF1YW5nIETGsMahbmc=?=) Date: Wed, 30 Nov 2011 22:27:40 +0700 Subject: [Gambas-user] What's faster: RegExp or String function Message-ID: Hi all, I want to remove all substring marked with '<>'. I have 2 functions: Dim rEx As New Regexp rEx.Compile("<.*>") rEx.Exec(s) While rEx.Offset >= 0 s = Replace(s, rEx.Text, "") rEx.Exec(s) Wend And i=Instr(s,"<") while i > 0 j=InStr(s,">", i) cut out from s the substring from i to j i=Instr(s,"<") wend Which one should I choose? Thank you :) From jussi.lahtinen at ...626... Wed Nov 30 18:43:37 2011 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Wed, 30 Nov 2011 19:43:37 +0200 Subject: [Gambas-user] problems after ubuntu 11.04 update In-Reply-To: <1322645339.2052.61.camel@...2425...> References: <1322559777.1998.11.camel@...2425...> <1322645339.2052.61.camel@...2425...> Message-ID: Strange, AFAIK everything seems to be OK. "gb.form.dialog" seems to be compiled and installed. Maybe the update bring up some incompatible library version... I hope Benoit can say something more helpful. Jussi On Wed, Nov 30, 2011 at 11:28, JUHASZ Robert wrote: > Thanks for your instructions Jussi, I tried to follow them. > However I still receive the same error message as before. > > I attached the log file. > > Thanks for any help. > > Robi > > -----Original Message----- > From: Jussi Lahtinen > Reply-to: mailing list for gambas users > > To: mailing list for gambas users > Subject: Re: [Gambas-user] problems after ubuntu 11.04 update > Date: Tue, 29 Nov 2011 17:32:40 +0200 > > > Not sure what is going on, but I have had similar problems. > > 1. Stop all gambas processes, and run these commands: > sudo rm -f /usr/local/bin/gbx2 /usr/local/bin/gbc2 /usr/local/bin/gba2 > /usr/local/bin/gbi2 > sudo rm -rf /usr/local/lib/gambas2 > sudo rm -rf /usr/local/share/gambas2 > > 2. Delete old sources and download new ones to make sure you have > non-corrupted sources. > > 3. Compile: > ( ./reconf-all && ./configure -C && make && sudo make install ) > > ~/Desktop/compile.log 2>&1 > > 4. If problem persist send packed compile.log (tar.gz) to the list. > > Jussi > > > > > On Tue, Nov 29, 2011 at 11:42, JUHASZ Robert >wrote: > > > Hello, > > > > I updated my gambas2 to the latest revision 2 days ago and was perfectly > > happy as the eval function works again. > > This morning an automatic update of my OS (Ubuntu 11.04, 32bit) was > > performed which was a "big" update (with an updated kernel to > > 2.6.38-13). > > > > After the update my programs (developed in gambas2 and installed - so > > not running from the IDE) again don't work properly, especially the eval > > function. > > I tried to check the error from the IDE but the gambas IDE doesn't > > start. The error message is "ERROR: #27: Cannot load component > > 'gb.form.dialog': cannot find library file". > > > > I reconfigured and recompiled gambas but it didn't help. > > I also updated to the latest revision from svn, reconfigured, > > reinstalled but it didn't solve the issue. > > > > Can you please help in this matter. Did anyone else meet the same > > problem? > > > > Thx, > > Robi > > > > > > > ------------------------------------------------------------------------------ > > All the data continuously generated in your IT infrastructure > > contains a definitive record of customers, application performance, > > security threats, fraudulent activity, and more. Splunk takes this > > data and makes sense of it. IT sense. And common sense. > > http://p.sf.net/sfu/splunk-novd2d > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > ------------------------------------------------------------------------------ > All the data continuously generated in your IT infrastructure > contains a definitive record of customers, application performance, > security threats, fraudulent activity, and more. Splunk takes this > data and makes sense of it. IT sense. And common sense. > http://p.sf.net/sfu/splunk-novd2d > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > ------------------------------------------------------------------------------ > All the data continuously generated in your IT infrastructure > contains a definitive record of customers, application performance, > security threats, fraudulent activity, and more. Splunk takes this > data and makes sense of it. IT sense. And common sense. > http://p.sf.net/sfu/splunk-novd2d > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > From jussi.lahtinen at ...626... Wed Nov 30 18:53:35 2011 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Wed, 30 Nov 2011 19:53:35 +0200 Subject: [Gambas-user] What's faster: RegExp or String function In-Reply-To: References: Message-ID: Why don't you run benchmarks to find out? Dim ff As Float Dim ii As Integer ff = Timer For ii = 1 To SomeNumber FunctionToTest() Next Print "Time to run: " & CStr(Timer - ff) Choose value for "SomeNumber" so that run time is significant enough to give reasonably reliable measurement, in other words run time should be 10 seconds or more. Jussi 2011/11/30 Ph?m Quang D??ng > Hi all, > > I want to remove all substring marked with '<>'. I have 2 functions: > > Dim rEx As New Regexp > rEx.Compile("<.*>") > rEx.Exec(s) > While rEx.Offset >= 0 > s = Replace(s, rEx.Text, "") > rEx.Exec(s) > Wend > > And > > i=Instr(s,"<") > while i > 0 > j=InStr(s,">", i) > cut out from s the substring from i to j > i=Instr(s,"<") > wend > > Which one should I choose? > Thank you :) > > ------------------------------------------------------------------------------ > All the data continuously generated in your IT infrastructure > contains a definitive record of customers, application performance, > security threats, fraudulent activity, and more. Splunk takes this > data and makes sense of it. IT sense. And common sense. > http://p.sf.net/sfu/splunk-novd2d > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user >