From leonardo at ...1237... Tue Jun 1 10:08:38 2010 From: leonardo at ...1237... (Leonardo Miliani) Date: Tue, 01 Jun 2010 10:08:38 +0200 Subject: [Gambas-user] Gambas3:draw.begin(printer) In-Reply-To: References: <28732431.post@...1379...> Message-ID: <1275379718.6582.4.camel@"hp_host"> Il giorno lun, 31/05/2010 alle 18.51 +0200, Fabien Bodard ha scritto: > 2010/5/31 charlesg : > > > > Hi > > > > Converting Gambas2 to Gambas3 using QT. > > > > draw.begin(printer) now says that printer is 'not a drawable object' > > printer.name reports correctly. > yes it's true as printer do not use, draw any now, but paint. > > so you have to draw the page in the _draw event of the printer > > > http://gambasdoc.org/help/comp/gb.qt4/printer?v3 > > > http://gambasdoc.org/help/comp/gb.qt4/printer/.draw?v3 > Is the use of Printer still limited to Qt or is there a chance to see this object supported under GTK too? ;-) -- Leonardo Miliani www.leonardomiliani.com Webmaster e co-fondatore di www.gambas-it.org Il portale di riferimento per i programmatori Gambas italiani From gambas.fr at ...626... Tue Jun 1 13:15:39 2010 From: gambas.fr at ...626... (Fabien Bodard) Date: Tue, 1 Jun 2010 13:15:39 +0200 Subject: [Gambas-user] Gambas3:draw.begin(printer) In-Reply-To: <5181126288127266698@...714...> References: <28732431.post@...1379...> <5181126288127266698@...714...> Message-ID: 2010/6/1 Leonardo Miliani : > Il giorno lun, 31/05/2010 alle 18.51 +0200, Fabien Bodard ha scritto: >> 2010/5/31 charlesg : >> > >> > Hi >> > >> > Converting Gambas2 to Gambas3 using QT. >> > >> > draw.begin(printer) now says that printer is 'not a drawable object' >> > printer.name reports correctly. >> yes it's true as printer do not use, draw any now, but paint. >> >> so you have to draw the page in the _draw event of the printer >> >> >> http://gambasdoc.org/help/comp/gb.qt4/printer?v3 >> >> >> http://gambasdoc.org/help/comp/gb.qt4/printer/.draw?v3 >> > > Is the use of Printer still limited to Qt or is there a chance to see > this object supported under GTK too? ;-) > Leo, it's supported by Qt AND GTK ! :-) the doc page about gb.gtk is not up to date :) From fabianfloresvadell at ...626... Tue Jun 1 15:40:01 2010 From: fabianfloresvadell at ...626... (=?ISO-8859-1?Q?Fabi=E1n_Flores_Vadell?=) Date: Tue, 1 Jun 2010 10:40:01 -0300 Subject: [Gambas-user] Event in Form Class Message-ID: I been writing a class and I found this problem when a event is raised. I wrote my class in a form class to take advantage of visual design (my class just does visual things). I wrote an event in the form class and when the event is raised the problem appears: apparently the form self captures the event. So, when I create an object from this class, I can't catch the event unless I use Object.Attach: 'Inside the form class "myClass" Event myEvent ... Raise myEvent 'Inside a form Private myObject = myClass Public Sub _New() myObject = New MyClass(Me) AS "myObject" End Public myObject_MyEvent() 'Nothing to do here, the event doesn't reach here End But if: Public Sub _New() myObject = New MyClass(Me) Object.Attach(myObject ,Me, "myObject") End Then, the problem is gone. I think than if I use an Observer this should work too. Anyway, I think that problem occurs because the form class catchs their own event (form is their own observer). I think that I could workaround this by creating a second class (not a form class) and by using the form class like as one of its members, but seems to me than form class should have a way to avoid your own observer. Am I right? -- Fabi?n Flores Vadell www.speedbooksargentina.blogspot.com From charles at ...1784... Tue Jun 1 19:40:16 2010 From: charles at ...1784... (charlesg) Date: Tue, 1 Jun 2010 10:40:16 -0700 (PDT) Subject: [Gambas-user] Gambas3:draw.begin(printer) In-Reply-To: References: <28732431.post@...1379...> Message-ID: <28745130.post@...1379...> Thanks Fabien for your reply. After much struggle I still cannot get a result and include the following for the amusement of all. :) prnter is not aware of events begin and draw. Rsult is T and thus a failure. The program does spit an empty sheet from the printer. If someone could correct the code (maybe even start again?) I would be grateful rgds > ' Gambas class file > Public prnter As New Printer > '------------------------------------ > Public Sub Button1_Click() > Dim rsult As Boolean > > prnter.count = 1 > rsult = prnter.Print() > Print "result:" & rsult > End > '------------------------------------ > Public Sub prnter_begin() > Print "begin" > End > '------------------------------------ > Public Sub prnter_draw() > Print "draw" > > Paint.Begin(prnter) > Paint.Text("hello", 100, 100) > Paint.End > End > '------------------------------------ > > > -- View this message in context: http://old.nabble.com/Gambas3%3Adraw.begin%28printer%29-tp28732431p28745130.html Sent from the gambas-user mailing list archive at Nabble.com. From gambas at ...1... Tue Jun 1 19:46:44 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Tue, 1 Jun 2010 19:46:44 +0200 Subject: [Gambas-user] Gambas3:draw.begin(printer) In-Reply-To: <28745130.post@...1379...> References: <28732431.post@...1379...> <28745130.post@...1379...> Message-ID: <201006011946.44265.gambas@...1...> > Thanks Fabien for your reply. After much struggle I still cannot get a > result and include the following for the amusement of all. :) > > prnter is not aware of events begin and draw. Rsult is T and thus a > failure. The program does spit an empty sheet from the printer. If someone > could correct the code (maybe even start again?) I would be grateful > > rgds > Printer instances are Gambas objects, and as any other Gambas objects, you must provide an event name, otherwise you cannot catch their events. See the documentation on NEW in the wiki for the details. Regards, -- Beno?t Minisini From karl.reinl at ...9... Tue Jun 1 23:00:05 2010 From: karl.reinl at ...9... (Karl Reinl) Date: Tue, 01 Jun 2010 23:00:05 +0200 Subject: [Gambas-user] gambas3->create new->{anything}->existing Message-ID: <1275426005.6499.20.camel@...40...> Salut, gambas3 IDE->create new->{anything}->existing Since /.src hides the code, this is not good solved! Would be better to switch on the "SHOW HIDDEN" option. Or better, after having selected a gambas3 directory, entering into /.src automatically. -- Amicalement Charlie From gambas at ...1... Tue Jun 1 23:07:55 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Tue, 1 Jun 2010 23:07:55 +0200 Subject: [Gambas-user] gambas3->create new->{anything}->existing In-Reply-To: <1275426005.6499.20.camel@...40...> References: <1275426005.6499.20.camel@...40...> Message-ID: <201006012307.55629.gambas@...1...> > Salut, > > gambas3 IDE->create new->{anything}->existing > > Since /.src hides the code, this is not good solved! > > Would be better to switch on the "SHOW HIDDEN" option. > Or better, after having selected a gambas3 directory, entering > into /.src automatically. Indeed... -- Beno?t Minisini From joe1962 at ...626... Wed Jun 2 14:34:45 2010 From: joe1962 at ...626... (Jose J. Rodriguez) Date: Wed, 2 Jun 2010 08:34:45 -0400 Subject: [Gambas-user] Gambas3 build issues Message-ID: So I finally decided to check out Gambas3 from svn and give it a go, right after the new structure implemention announcement. However, I first had to download and build the latest versions of libtool, autoconf and automake, before reconf-all worked. Still, after all that, make fails, seemingly on something gtk related. I am using VectorLinux 6 SOHO Beta 4, which has gtk+2-2.12.9, does it need to be a newer version too? After attempting the more complicated build script we use, I tried a simple "./configure --prefix=/usr", then "make".Here's the tail of the make log, just in case: In file included from gprinter.h:26, from cprinter.h:28, from cpaint_impl.cpp:37: ./gtkprinter.h:94: error: expected ';' before '(' token cpaint_impl.cpp: In function 'void draw_text(GB_PAINT*, bool, const char*, int, float, float, int)': cpaint_impl.cpp:621: warning: dereferencing type-punned pointer will break strict-aliasing rules cpaint_impl.cpp: In function 'void get_text_extents(GB_PAINT*, bool, const char*, int, GB_EXTENTS*)': cpaint_impl.cpp:661: warning: dereferencing type-punned pointer will break strict-aliasing rules make[5]: *** [cpaint_impl.lo] Error 1 make[5]: Leaving directory `/home/joe1962/packaging/VL60/0-sbbuilder/gambas3/2970/src/gambas3-2970/gb.gtk/src' make[4]: *** [all-recursive] Error 1 make[4]: Leaving directory `/home/joe1962/packaging/VL60/0-sbbuilder/gambas3/2970/src/gambas3-2970/gb.gtk/src' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/home/joe1962/packaging/VL60/0-sbbuilder/gambas3/2970/src/gambas3-2970/gb.gtk' make[2]: *** [all] Error 2 make[2]: Leaving directory `/home/joe1962/packaging/VL60/0-sbbuilder/gambas3/2970/src/gambas3-2970/gb.gtk' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/joe1962/packaging/VL60/0-sbbuilder/gambas3/2970/src/gambas3-2970' make: *** [all] Error 2 Regards, Joe1962 From leonardo at ...1237... Wed Jun 2 15:49:35 2010 From: leonardo at ...1237... (Leonardo Miliani) Date: Wed, 02 Jun 2010 15:49:35 +0200 Subject: [Gambas-user] Gambas3:draw.begin(printer) In-Reply-To: References: <28732431.post@...1379...> <5181126288127266698@...714...> Message-ID: <1275486575.3268.1.camel@"hp_host"> Il giorno mar, 01/06/2010 alle 13.15 +0200, Fabien Bodard ha scritto: > 2010/6/1 Leonardo Miliani : > > Il giorno lun, 31/05/2010 alle 18.51 +0200, Fabien Bodard ha scritto: > >> 2010/5/31 charlesg : > >> > > >> > Hi > >> > > >> > Converting Gambas2 to Gambas3 using QT. > >> > > >> > draw.begin(printer) now says that printer is 'not a drawable object' > >> > printer.name reports correctly. > >> yes it's true as printer do not use, draw any now, but paint. > >> > >> so you have to draw the page in the _draw event of the printer > >> > >> > >> http://gambasdoc.org/help/comp/gb.qt4/printer?v3 > >> > >> > >> http://gambasdoc.org/help/comp/gb.qt4/printer/.draw?v3 > >> > > > > Is the use of Printer still limited to Qt or is there a chance to see > > this object supported under GTK too? ;-) > > > > Leo, it's supported by Qt AND GTK ! :-) > > the doc page about gb.gtk is not up to date :) > > ------------------------------------------------------------------------------ > > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user VERY nice new XD I'll try it as soon as possible. -- Leonardo Miliani www.leonardomiliani.com Webmaster e co-fondatore di www.gambas-it.org Il portale di riferimento per i programmatori Gambas italiani From leandrosansilva at ...626... Wed Jun 2 16:33:07 2010 From: leandrosansilva at ...626... (Leandro Santiago) Date: Wed, 2 Jun 2010 11:33:07 -0300 Subject: [Gambas-user] Why is MyMainWindow inheriting from QWidget (gb.qt4, CWindow width)? Message-ID: Hello, I'm looking at gb.qt4 code (I'm not a very good C++ programmer :-) ) and I saw that the gambas3 main window (MyMainWindow) has QWidget as parent class, but QMainWindow serves exactly to this. It's because gambas applications don't have full integration with other qt applications. For example, I use KDE with bespin theme. There is a plasmoid called xbar and it implements a global menu, like in OS X. All native qt4 applications can use this resource, but gambas apps can't. There is a method in QMainWindow called setMenuBar that set a menubar as native menubar. So I just changed MyMainWindow parent to QMenuWindow and added setMenuBar(menuBar) at MyMainWindow::configure() method. Simple applications (with menubar) I created work fine with globalmenu integration, but now gambas IDE is separated in a lot of windows, each one with a component (text editor, toolbar, widgets hierarch, etc), but uses globalmenu, at least :-) I think if gambas wants to be ported to other plataforms (like Mac and Windows), has a native and integred look is really important. What do the main developers think about this? ps: where can I find a small "guideline" to write gambas components like gb.qt, gb.gtk, etc? Sorry for my bad English. From leandrosansilva at ...626... Wed Jun 2 16:51:47 2010 From: leandrosansilva at ...626... (Leandro Santiago) Date: Wed, 2 Jun 2010 11:51:47 -0300 Subject: [Gambas-user] Why is MyMainWindow inheriting from QWidget (gb.qt4, CWindow width)? In-Reply-To: References: Message-ID: Ow, a diff file is very util :-) 2010/6/2 Leandro Santiago : > Hello, I'm looking at gb.qt4 code (I'm not a very good C++ programmer > :-) ) and I saw that the gambas3 main window (MyMainWindow) has > QWidget as parent class, but QMainWindow serves exactly to this. > > It's because gambas applications don't have full integration with > other qt applications. For example, I use KDE with bespin theme. There > is a plasmoid called xbar and it implements a global menu, like in OS > X. All native qt4 applications can use this resource, but gambas apps > can't. > > There is a method in QMainWindow called setMenuBar that set a menubar > as native menubar. So I just changed MyMainWindow parent to > QMenuWindow and added setMenuBar(menuBar) at MyMainWindow::configure() > method. Simple applications (with menubar) I created work fine with > globalmenu integration, but now gambas IDE is separated in a lot of > windows, each one with a component (text editor, toolbar, widgets > hierarch, etc), but uses globalmenu, at least :-) > > I think if gambas wants to be ported to other plataforms (like Mac and > Windows), has a native and integred look is really important. > > What do the main developers think about this? > > ps: where can I find a small "guideline" to write gambas components > like gb.qt, gb.gtk, etc? > > Sorry for my bad English. > -------------- next part -------------- A non-text attachment was scrubbed... Name: qmainwindow.diff Type: text/x-patch Size: 973 bytes Desc: not available URL: From gambas.fr at ...626... Wed Jun 2 18:45:16 2010 From: gambas.fr at ...626... (Fabien Bodard) Date: Wed, 2 Jun 2010 18:45:16 +0200 Subject: [Gambas-user] Gambas3 build issues In-Reply-To: References: Message-ID: hum... what is your version of gcc ? struct _GtkPrinter { GObject parent_instance; GtkPrinterPrivate *GSEAL (priv); }; it seem that the compilator don't like the '(priv)' 2010/6/2 Jose J. Rodriguez : > So I finally decided to check out Gambas3 from svn and give it a go, > right after the new structure implemention announcement. However, I > first had to download and build the latest versions of libtool, > autoconf and automake, before reconf-all worked. Still, after all > that, make fails, seemingly on something gtk related. I am using > VectorLinux 6 SOHO Beta 4, which has gtk+2-2.12.9, does it need to be > a newer version too? > > After attempting the more complicated build script we use, I tried a > simple "./configure --prefix=/usr", then "make".Here's the tail of the > make log, just in case: > > > In file included from gprinter.h:26, > ? ? ? ? ? ? ? ? from cprinter.h:28, > ? ? ? ? ? ? ? ? from cpaint_impl.cpp:37: > ./gtkprinter.h:94: error: expected ';' before '(' token > cpaint_impl.cpp: In function 'void draw_text(GB_PAINT*, bool, const > char*, int, float, float, int)': > cpaint_impl.cpp:621: warning: dereferencing type-punned pointer will > break strict-aliasing rules > cpaint_impl.cpp: In function 'void get_text_extents(GB_PAINT*, bool, > const char*, int, GB_EXTENTS*)': > cpaint_impl.cpp:661: warning: dereferencing type-punned pointer will > break strict-aliasing rules > make[5]: *** [cpaint_impl.lo] Error 1 > make[5]: Leaving directory > `/home/joe1962/packaging/VL60/0-sbbuilder/gambas3/2970/src/gambas3-2970/gb.gtk/src' > make[4]: *** [all-recursive] Error 1 > make[4]: Leaving directory > `/home/joe1962/packaging/VL60/0-sbbuilder/gambas3/2970/src/gambas3-2970/gb.gtk/src' > make[3]: *** [all-recursive] Error 1 > make[3]: Leaving directory > `/home/joe1962/packaging/VL60/0-sbbuilder/gambas3/2970/src/gambas3-2970/gb.gtk' > make[2]: *** [all] Error 2 > make[2]: Leaving directory > `/home/joe1962/packaging/VL60/0-sbbuilder/gambas3/2970/src/gambas3-2970/gb.gtk' > make[1]: *** [all-recursive] Error 1 > make[1]: Leaving directory > `/home/joe1962/packaging/VL60/0-sbbuilder/gambas3/2970/src/gambas3-2970' > make: *** [all] Error 2 > > > Regards, > Joe1962 > > ------------------------------------------------------------------------------ > > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From joe1962 at ...626... Wed Jun 2 19:14:32 2010 From: joe1962 at ...626... (Jose J. Rodriguez) Date: Wed, 2 Jun 2010 13:14:32 -0400 Subject: [Gambas-user] Gambas3 build issues In-Reply-To: References: Message-ID: On 6/2/10, Fabien Bodard wrote: > hum... what is your version of gcc ? > 4.2.3 Regards, Joe1962 From gambas.fr at ...626... Wed Jun 2 21:28:54 2010 From: gambas.fr at ...626... (Fabien Bodard) Date: Wed, 2 Jun 2010 21:28:54 +0200 Subject: [Gambas-user] Gambas3 build issues In-Reply-To: References: Message-ID: i've 4.4.3 ..; is there a change between this two version ... 2010/6/2 Jose J. Rodriguez : > On 6/2/10, Fabien Bodard wrote: >> hum... what is your version of gcc ? >> > > 4.2.3 > > Regards, > Joe1962 > > ------------------------------------------------------------------------------ > > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From joe1962 at ...626... Wed Jun 2 21:35:44 2010 From: joe1962 at ...626... (Jose J. Rodriguez) Date: Wed, 2 Jun 2010 15:35:44 -0400 Subject: [Gambas-user] Gambas3 build issues In-Reply-To: References: Message-ID: On 6/2/10, Fabien Bodard wrote: > i've 4.4.3 ..; is there a change between this two version ... > No idea, hopefully we will hear from others about what gcc versions have worked for them or not. Regards, Joe1962 > > 2010/6/2 Jose J. Rodriguez : > > > On 6/2/10, Fabien Bodard wrote: > >> hum... what is your version of gcc ? > >> > > > > 4.2.3 > > > > Regards, > > Joe1962 > > > From Karl.Reinl at ...2345... Wed Jun 2 23:16:11 2010 From: Karl.Reinl at ...2345... (Charlie Reinl) Date: Wed, 02 Jun 2010 23:16:11 +0200 Subject: [Gambas-user] Gambas3 build issues In-Reply-To: References: Message-ID: <1275513372.6615.9.camel@...40...> Am Mittwoch, den 02.06.2010, 21:28 +0200 schrieb Fabien Bodard: > i've 4.4.3 ..; is there a change between this two version ... > > 2010/6/2 Jose J. Rodriguez : > > On 6/2/10, Fabien Bodard wrote: > >> hum... what is your version of gcc ? > >> > > > > 4.2.3 > > > > Regards, > > Joe1962 > > here i'v 4.2.4 on Ubuntu 8.04 LTS but gambas3 fails because libtool has not the newer version. on Mandriva 2010.0 gcc 4.4.1 and on Ubuntu 10.04 LTS gcc 4.4.3, both compile without problems. -- Amicalement Charlie From joe1962 at ...626... Wed Jun 2 23:40:54 2010 From: joe1962 at ...626... (Jose J. Rodriguez) Date: Wed, 2 Jun 2010 17:40:54 -0400 Subject: [Gambas-user] Gambas3 build issues In-Reply-To: <1275513372.6615.9.camel@...40...> References: <1275513372.6615.9.camel@...40...> Message-ID: On 6/2/10, Charlie Reinl wrote: > Am Mittwoch, den 02.06.2010, 21:28 +0200 schrieb Fabien Bodard: > > > i've 4.4.3 ..; is there a change between this two version ... > > > > 2010/6/2 Jose J. Rodriguez : > > > On 6/2/10, Fabien Bodard wrote: > > >> hum... what is your version of gcc ? > > >> > > > > > > 4.2.3 > > > > > > Regards, > > > Joe1962 > > > > > here i'v 4.2.4 on Ubuntu 8.04 LTS but gambas3 fails because libtool has > not the newer version. > > on Mandriva 2010.0 gcc 4.4.1 and on Ubuntu 10.04 LTS gcc 4.4.3, both > compile without problems. > Well, if it takes a gcc update then I'm toast, that's pretty dangerous and entails recompiling other stuff with the new gcc, I think (like the kernel, for instance). Regards, Joe1962 From admhardsoft at ...253... Wed Jun 2 23:41:04 2010 From: admhardsoft at ...253... (admhardsoft at ...253...) Date: Wed, 2 Jun 2010 21:41:04 +0000 Subject: [Gambas-user] Gambas3 build issues In-Reply-To: References: Message-ID: <607597865-1275514865-cardhu_decombobulator_blackberry.rim.net-1124063958-@...2405...> Hi How can I insert a for within other form in gamba2? Somebody can help me with it?. Best regards Tomas Sent on the TELUS Mobility network with BlackBerry -----Original Message----- From: "Jose J. Rodriguez" Date: Wed, 2 Jun 2010 15:35:44 To: mailing list for gambas users Subject: Re: [Gambas-user] Gambas3 build issues On 6/2/10, Fabien Bodard wrote: > i've 4.4.3 ..; is there a change between this two version ... > No idea, hopefully we will hear from others about what gcc versions have worked for them or not. Regards, Joe1962 > > 2010/6/2 Jose J. Rodriguez : > > > On 6/2/10, Fabien Bodard wrote: > >> hum... what is your version of gcc ? > >> > > > > 4.2.3 > > > > Regards, > > Joe1962 > > > ------------------------------------------------------------------------------ ThinkGeek and WIRED's GeekDad team up for the Ultimate GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the lucky parental unit. See the prize list and enter to win: http://p.sf.net/sfu/thinkgeek-promo _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From rterry at ...1946... Thu Jun 3 00:44:50 2010 From: rterry at ...1946... (richard terry) Date: Thu, 3 Jun 2010 08:44:50 +1000 Subject: [Gambas-user] Auto-resize of controls Message-ID: <201006030844.50177.rterry@...1946...> I wondered if there was any way that gambas could have an auto-resize property to controls other than labels/buttons?, for example check boxes/options buttons etc Would be ***really **** handy. Regards Richard From admhardsoft at ...253... Thu Jun 3 04:14:31 2010 From: admhardsoft at ...253... (Tomas Rodriguez) Date: Wed, 2 Jun 2010 22:14:31 -0400 Subject: [Gambas-user] insert a form inside other form Message-ID: Hi body. my doubt is about , How can I insert a form( with controls), inside other form( in gambas 2)? somebody have any idea or expierence. thanks tomas From rterry at ...1946... Thu Jun 3 04:59:18 2010 From: rterry at ...1946... (richard terry) Date: Thu, 3 Jun 2010 12:59:18 +1000 Subject: [Gambas-user] insert a form inside other form In-Reply-To: References: Message-ID: <201006031259.18249.rterry@...1946...> On Thursday 03 June 2010 12:14:31 Tomas Rodriguez wrote: > Hi body. > > my doubt is about , How can I insert a form( with controls), inside other > form( in gambas 2)? somebody have any idea or expierence. > > thanks > tomas > > > > --------------------------------------------------------------------------- > --- ThinkGeek and WIRED's GeekDad team up for the Ultimate > GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the > lucky parental unit. See the prize list and enter to win: > http://p.sf.net/sfu/thinkgeek-promo > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > Done off the top of my head, but this should work. 1) Create the form you want to load into a form and call it - lets say MyForm 2) Create another form say FMain and in the IDE put a container on it, say a VBox, call it Vbox_For_MyForm or whatever At the top of FMain in the declarations part of the code: Dim Form2Insert as MyForm Type in this: public Sub Form_Open() Form2Insert = New MyForm(Vbox_For_MyForm) end This should embed ok, if not I'll write you an example and mail it to you. Regards Richard From gambas at ...1... Thu Jun 3 10:11:28 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Thu, 3 Jun 2010 10:11:28 +0200 Subject: [Gambas-user] Auto-resize of controls In-Reply-To: <201006030844.50177.rterry@...1946...> References: <201006030844.50177.rterry@...1946...> Message-ID: <201006031011.28293.gambas@...1...> > I wondered if there was any way that gambas could have an auto-resize > property to controls other than labels/buttons?, for example check > boxes/options buttons etc > > Would be ***really **** handy. > > Regards > > Richard > CheckBox and RadioButton have an AutoResize property in Gambas 3. -- Beno?t Minisini From gambas at ...1... Thu Jun 3 10:13:34 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Thu, 3 Jun 2010 10:13:34 +0200 Subject: [Gambas-user] Gambas3 build issues In-Reply-To: References: Message-ID: <201006031013.34180.gambas@...1...> > hum... what is your version of gcc ? > > struct _GtkPrinter > { > GObject parent_instance; > > GtkPrinterPrivate *GSEAL (priv); > }; > > it seem that the compilator don't like the '(priv)' > I would have said that gtk+ version is too old instead. Regards, -- Beno?t Minisini From eilert-sprachen at ...221... Thu Jun 3 10:24:34 2010 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Thu, 03 Jun 2010 10:24:34 +0200 Subject: [Gambas-user] My module for simple console output Message-ID: <4C0766C2.7070205@...221...> Referring to another thread I had here, I'd just like to show my (simple) solution for console output. I was looking for some attributes and CLS and so on. If you want to have smarter solutions, there is ncurses, but for the quick and dirty project my way might do. All these consoles in Linux simulate at least a VT100 terminal which knows a set of simple escape codes to control the output. I found this wonderful site http://ascii-table.com/ansi-escape-sequences-vt-100.php having everything I needed. What I made is a module named "Screen" with the code quoted hereunder. In FMain I made a loop with LINE INPUT and a simple SELECT CASE for the user to type in commands for testing purposes. Within this SELECT CASE thing, the returned strings are printed and so on, rather simple. This is not a complete application yet. What I miss is a way to read single keystrokes instantly, but that's tricky as Benoit said. So this is my Screen module: ' Gambas module file PRIVATE esc AS String = Chr$(27) & "[" PUBLIC CONST Black AS String = "0" PUBLIC CONST Red AS String = "1" PUBLIC CONST Green AS String = "2" PUBLIC CONST Yellow AS String = "3" PUBLIC CONST Blue AS String = "4" PUBLIC CONST Magenta AS String = "5" PUBLIC CONST Cyan AS String = "6" PUBLIC CONST White AS String = "7" PUBLIC CONST Foreground AS String = "3" PUBLIC CONST Background AS String = "4" PUBLIC FUNCTION Cls() AS String RETURN esc & "2J" & esc & "H" END PUBLIC FUNCTION Normal() AS String RETURN esc & "0m" END PUBLIC FUNCTION Bold() AS String RETURN esc & "1m" END PUBLIC FUNCTION Gray() AS String RETURN esc & "2m" END PUBLIC FUNCTION Underline() AS String RETURN esc & "4m" END PUBLIC FUNCTION Blink() AS String RETURN esc & "5m" END PUBLIC FUNCTION Reverse() AS String RETURN esc & "7m" END PUBLIC FUNCTION MoveTo(row AS Integer, col AS Integer) AS String IF row < 1 THEN row = 1 IF row > 25 THEN row = 25 IF col < 1 THEN col = 1 IF col > 80 THEN col = 80 RETURN esc & CStr(row) & ";" & CStr(col) & "f" END PUBLIC FUNCTION Color(FgBg AS String, Colorvalue AS String) AS String RETURN esc & FgBg & Colorvalue & "m" END First trials with it show it's working, so if you can use it make the best out of it and tell me what you think :-) Regards Rolf From eilert-sprachen at ...221... Thu Jun 3 10:30:39 2010 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Thu, 03 Jun 2010 10:30:39 +0200 Subject: [Gambas-user] Application_Read Message-ID: <4C07682F.4060700@...221...> Hi Benoit, hi all I tried to do as you said using Application_Read() for catching keystrokes in a console program, but sorry, I just don't know how to receive the key into a string variable to be able to process it any further. What I found out is that the mere existence of an Application_Read() keeps the program from falling out of FMain() and terminating by just looping within (or into) Application_Read(). Every key is mirrored by the console (i. e. the program maybe even doesn't receive anything, or standard input is directly connected to standard output). The program can still be terminated by Ctrl-C. You said it's tricky, but a bit more information would be greatly appreciated :-) Thank you for any hint. Regards Rolf From gambas at ...1... Thu Jun 3 10:44:11 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Thu, 3 Jun 2010 10:44:11 +0200 Subject: [Gambas-user] Application_Read In-Reply-To: <4C07682F.4060700@...221...> References: <4C07682F.4060700@...221...> Message-ID: <201006031044.11739.gambas@...1...> > Hi Benoit, hi all > > I tried to do as you said using Application_Read() for catching > keystrokes in a console program, but sorry, I just don't know how to > receive the key into a string variable to be able to process it any > further. Read the standard input with the Read instruction: Public Application_Read() Dim Keys As String ' Read up to (so the negative sign) 256 characters from the standard input Keys = Read -256 ... End > > What I found out is that the mere existence of an Application_Read() > keeps the program from falling out of FMain() and terminating by just > looping within (or into) Application_Read(). If you don't read the standard input, the Application_Read will be called again and again, as there is always something to read! > Every key is mirrored by > the console (i. e. the program maybe even doesn't receive anything, or > standard input is directly connected to standard output). The program > can still be terminated by Ctrl-C. > Read (again?) the mail I wrote about a component based on the ncurses library. Only that library has all the features to deal with terminal output and "real- time" terminal input. And I suggest you read all documentation you find on Linux/Unix terminal management, and look at the "stty" shell command. Regards, -- Beno?t Minisini From rterry at ...1946... Thu Jun 3 11:15:01 2010 From: rterry at ...1946... (richard terry) Date: Thu, 3 Jun 2010 19:15:01 +1000 Subject: [Gambas-user] Auto-resize of controls In-Reply-To: <201006031011.28293.gambas@...1...> References: <201006030844.50177.rterry@...1946...> <201006031011.28293.gambas@...1...> Message-ID: <201006031915.01872.rterry@...1946...> On Thursday 03 June 2010 18:11:28 Beno?t Minisini wrote: > > I wondered if there was any way that gambas could have an auto-resize > > property to controls other than labels/buttons?, for example check > > boxes/options buttons etc > > > > Would be ***really **** handy. > > > > Regards > > > > Richard > > CheckBox and RadioButton have an AutoResize property in Gambas 3. > I've been using gambas3 as you know for a long.........long time, and cannot find any such property. Is it listed in the IDE?. Can't get it to come up in auto-complete either. What could be wrong? I've not updated the gambas source code for several weeks, could that be a new development? Regards Richard From eilert-sprachen at ...221... Thu Jun 3 11:35:15 2010 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Thu, 03 Jun 2010 11:35:15 +0200 Subject: [Gambas-user] Application_Read In-Reply-To: <201006031044.11739.gambas@...1...> References: <4C07682F.4060700@...221...> <201006031044.11739.gambas@...1...> Message-ID: <4C077753.4010301@...221...> > > Public Application_Read() > > Dim Keys As String > > ' Read up to (so the negative sign) 256 characters from the standard input > Keys = Read -256 > ... > > End > Sorry, if I do it like this, I get "Unexpected READ". What I did before was: READ #LAST Keys, -256 This doesn't produce an error, but it doesn't return any value either... Regards Rolf From admhardsoft at ...253... Thu Jun 3 13:47:40 2010 From: admhardsoft at ...253... (admhardsoft at ...253...) Date: Thu, 3 Jun 2010 11:47:40 +0000 Subject: [Gambas-user] insert a form inside other form In-Reply-To: <201006031259.18249.rterry@...1946...> References: <201006031259.18249.rterry@...1946...> Message-ID: <700952380-1275565662-cardhu_decombobulator_blackberry.rim.net-1106757187-@...2405...> Thanks work fine with your idea. Thanks again Tomas Sent on the TELUS Mobility network with BlackBerry -----Original Message----- From: richard terry Date: Thu, 3 Jun 2010 12:59:18 To: mailing list for gambas users Subject: Re: [Gambas-user] insert a form inside other form On Thursday 03 June 2010 12:14:31 Tomas Rodriguez wrote: > Hi body. > > my doubt is about , How can I insert a form( with controls), inside other > form( in gambas 2)? somebody have any idea or expierence. > > thanks > tomas > > > > --------------------------------------------------------------------------- > --- ThinkGeek and WIRED's GeekDad team up for the Ultimate > GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the > lucky parental unit. See the prize list and enter to win: > http://p.sf.net/sfu/thinkgeek-promo > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > Done off the top of my head, but this should work. 1) Create the form you want to load into a form and call it - lets say MyForm 2) Create another form say FMain and in the IDE put a container on it, say a VBox, call it Vbox_For_MyForm or whatever At the top of FMain in the declarations part of the code: Dim Form2Insert as MyForm Type in this: public Sub Form_Open() Form2Insert = New MyForm(Vbox_For_MyForm) end This should embed ok, if not I'll write you an example and mail it to you. Regards Richard ------------------------------------------------------------------------------ ThinkGeek and WIRED's GeekDad team up for the Ultimate GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the lucky parental unit. See the prize list and enter to win: http://p.sf.net/sfu/thinkgeek-promo _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From rterry at ...1946... Fri Jun 4 01:51:44 2010 From: rterry at ...1946... (richard terry) Date: Fri, 4 Jun 2010 09:51:44 +1000 Subject: [Gambas-user] [Gambas-devel] Building Components In-Reply-To: References: Message-ID: <201006040951.44459.rterry@...1946...> Fabian, I just updated to 2989 of gambas, tried to include my component and got the message "does not export any class" or something similar. Could you explain/assist Thanks Richard On Tuesday 01 June 2010 21:11:54 Fabien Bodard wrote: > Old Mail >>>> > > Hi, > > In the last revision, I added the implementation of "libraries" in Gambas > 3. That libraries completely replace the "user components" concept of > Gambas 2. > > How does it work? > > You have a new tab named "libraries" in the IDE project property dialog. In > that tab, you can define a list of gambas executables (*.gambas files) that > will be used as libraries. > > When adding a library to a project, the IDE will extract from it all the > information needed for the automatic completion, as for the normal > components. > > These libraries will be loaded at program startup by the interpreter > exactly like any component written in Gambas. > > When your project in run in debugging mode, i.e. from the IDE, the > libraries are located by using the absolute path specified in the project > property dialog. > > But when running the project normally, the library is searched in the > following directory only: > - The same directory as the project. > - /usr/bin > - /bin > > So, a Gambas executable that must act as a library for another program must > be installed in /bin, /usr/bin, or in the same directory as the program > using it. > > Now I'm waiting for your comments about this new feature! > > Regards, > > > <<<<< > This is the mail recently sended by benoit, that explain how to use > the new component process. > > --------------------------------------------------------------------------- > --- > > _______________________________________________ > Gambas-devel mailing list > Gambas-devel at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-devel > From gambas.fr at ...626... Fri Jun 4 10:34:01 2010 From: gambas.fr at ...626... (Fabien Bodard) Date: Fri, 4 Jun 2010 10:34:01 +0200 Subject: [Gambas-user] Gambas3 build issues In-Reply-To: <201006031013.34180.gambas@...1...> References: <201006031013.34180.gambas@...1...> Message-ID: Le 3 juin 2010 10:13, Beno?t Minisini a ?crit : >> hum... what is your version of gcc ? >> >> struct _GtkPrinter >> { >> ? GObject parent_instance; >> >> ? GtkPrinterPrivate *GSEAL (priv); >> }; >> >> it seem that the compilator don't like the '(priv)' >> > > I would have said that gtk+ version is too old instead. > > Regards, > > -- > Beno?t Minisini :) i'm not a good c dev :) > > ------------------------------------------------------------------------------ > ThinkGeek and WIRED's GeekDad team up for the Ultimate > GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the > lucky parental unit. ?See the prize list and enter to win: > http://p.sf.net/sfu/thinkgeek-promo > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas.fr at ...626... Fri Jun 4 12:49:35 2010 From: gambas.fr at ...626... (Fabien Bodard) Date: Fri, 4 Jun 2010 12:49:35 +0200 Subject: [Gambas-user] Auto-resize of controls In-Reply-To: <201006031915.01872.rterry@...1946...> References: <201006030844.50177.rterry@...1946...> <201006031011.28293.gambas@...1...> <201006031915.01872.rterry@...1946...> Message-ID: Revision 2906 - (view) (download) (annotate) - [select for diffs] Modified Wed Apr 21 01:25:19 2010 UTC (6 weeks, 2 days ago) by gambas File length: 4242 byte(s) Diff to previous 2241 [GB.GTK] * NEW: RadioButton.AutoResize is a new property that makes the RadioButton horizontally fits its contents when set. * NEW: CheckBox.AutoResize is a new property that makes the CheckBox horizontally fits its contents when set. [GB.QT4] * NEW: RadioButton.AutoResize is a new property that makes the RadioButton horizontally fits its contents when set. * NEW: CheckBox.AutoResize is a new property that makes the CheckBox horizontally fits its contents when set. From gambas.fr at ...626... Fri Jun 4 23:27:51 2010 From: gambas.fr at ...626... (Fabien Bodard) Date: Fri, 4 Jun 2010 23:27:51 +0200 Subject: [Gambas-user] Application_Read In-Reply-To: <4C077753.4010301@...221...> References: <4C07682F.4060700@...221...> <201006031044.11739.gambas@...1...> <4C077753.4010301@...221...> Message-ID: READ #LAST, Keys, -256 2010/6/3 Rolf-Werner Eilert : > >> >> Public Application_Read() >> >> ? ?Dim Keys As String >> >> ? ?' Read up to (so the negative sign) 256 characters from the standard input >> ? ?Keys = Read -256 >> ? ?... >> >> End >> > > Sorry, if I do it like this, I get "Unexpected READ". > > What I did before was: > > READ #LAST Keys, -256 > > This doesn't produce an error, but it doesn't return any value either... > > Regards > > Rolf > > > ------------------------------------------------------------------------------ > ThinkGeek and WIRED's GeekDad team up for the Ultimate > GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the > lucky parental unit. ?See the prize list and enter to win: > http://p.sf.net/sfu/thinkgeek-promo > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas.fr at ...626... Fri Jun 4 23:28:45 2010 From: gambas.fr at ...626... (Fabien Bodard) Date: Fri, 4 Jun 2010 23:28:45 +0200 Subject: [Gambas-user] Application_Read In-Reply-To: References: <4C07682F.4060700@...221...> <201006031044.11739.gambas@...1...> <4C077753.4010301@...221...> Message-ID: Public Application_Read() Dim Keys As String ' Read up to (so the negative sign) 256 characters from the standard input Keys = Read, -256 ... End From gambas at ...1... Sat Jun 5 00:23:28 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sat, 5 Jun 2010 00:23:28 +0200 Subject: [Gambas-user] Application_Read In-Reply-To: References: <4C07682F.4060700@...221...> Message-ID: <201006050023.28716.gambas@...1...> > Public Application_Read() > > Dim Keys As String > > ' Read up to (so the negative sign) 256 characters from the standard input > Keys = Read, -256 > ... > > End > I may have done a bug in the compiler, as normally it should be just "Read -256", which is equivalent to "Read #File.In, -256". Regards, -- Beno?t Minisini From ihaywood at ...1979... Sat Jun 5 07:31:01 2010 From: ihaywood at ...1979... (Ian Haywood) Date: Sat, 5 Jun 2010 15:31:01 +1000 Subject: [Gambas-user] libtool issues Message-ID: I am trying to compile the latest SVN (r2992) on Ubuntu karmic, libtool is version 2.2.6a-4 I get the following error: /bin/bash ../libtool --tag=CC --mode=link gcc -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe -Wall -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os -I../share -o gbc3 gbc3-gb_error.o gbc3-gb_alloc.o gbc3-gb_array.o gbc3-gbc_read.o gbc3-gbc_reserved.o gbc3-gbc_compile.o gbc3-gbc_type.o gbc3-gb_buffer.o gbc3-gbc_dump.o gbc3-gbc_class.o gbc3-gbc_code.o gbc3-gbc_trans.o gbc3-gbc_header.o gbc3-gbc_trans_code.o gbc3-gbc_trans_expr.o gbc3-gbc_trans_tree.o gbc3-gbc_trans_ctrl.o gbc3-gbc_trans_subr.o gbc3-gbc_output.o gbc3-gbc_pcode.o gbc3-gb_file.o gbc3-gbc_form.o gbc3-gb_str.o gbc3-gbc_chown.o gbc3-gb_common.o gbc3-gbc.o libgbcopt.la -lm libtool: link: gcc -DGAMBAS_PATH=\"/usr/local/bin\" -pipe -Wall -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os -I../share -o gbc3 gbc3-gb_error.o gbc3-gb_alloc.o gbc3-gb_array.o gbc3-gbc_read.o gbc3-gbc_reserved.o gbc3-gbc_compile.o gbc3-gbc_type.o gbc3-gb_buffer.o gbc3-gbc_dump.o gbc3-gbc_class.o gbc3-gbc_code.o gbc3-gbc_trans.o gbc3-gbc_header.o gbc3-gbc_trans_code.o gbc3-gbc_trans_expr.o gbc3-gbc_trans_tree.o gbc3-gbc_trans_ctrl.o gbc3-gbc_trans_subr.o gbc3-gbc_output.o gbc3-gbc_pcode.o gbc3-gb_file.o gbc3-gbc_form.o gbc3-gb_str.o gbc3-gbc_chown.o gbc3-gb_common.o gbc3-gbc.o ./.libs/libgbcopt.a -lm gbc3-gbc_compile.o: In function `add_library_list_file': /home/ian/software/trunk/main/gbc/gbc_compile.c:146: undefined reference to `ARCH_open' /home/ian/software/trunk/main/gbc/gbc_compile.c:148: undefined reference to `ARCH_find' /home/ian/software/trunk/main/gbc/gbc_compile.c:151: undefined reference to `ARCH_close' Any ideas? Ian Haywood From mohareve at ...626... Sat Jun 5 22:57:32 2010 From: mohareve at ...626... (M. Cs.) Date: Sat, 5 Jun 2010 22:57:32 +0200 Subject: [Gambas-user] How to detect the song's over? Message-ID: Is there a way in Gambas2 to detect, the song played with Music.Play() is finished? From alerinaldi at ...2334... Sat Jun 5 22:59:45 2010 From: alerinaldi at ...2334... (Alessandro Rinaldi) Date: Sat, 5 Jun 2010 22:59:45 +0200 Subject: [Gambas-user] How to detect the song's over? In-Reply-To: References: Message-ID: I used as a workaround a timer to check Music.Pos... When it returns to 0, the song is finished. From admhardsoft at ...253... Sun Jun 6 15:32:14 2010 From: admhardsoft at ...253... (admhardsoft at ...253...) Date: Sun, 6 Jun 2010 13:32:14 +0000 Subject: [Gambas-user] insert a form inside other form In-Reply-To: <700952380-1275565662-cardhu_decombobulator_blackberry.rim.net-1106757187-@...2405...> References: <201006031259.18249.rterry@...1946...><700952380-1275565662-cardhu_decombobulator_blackberry.rim.net-1106757187-@...2405...> Message-ID: <1356094936-1275831135-cardhu_decombobulator_blackberry.rim.net-861014667-@...2405...> Hi but now I need to remove from a button and insert the new form belong to the option in that butoon, the idea is remove one and insert new one, all of this inside within a form. Thanks any help pls Tomas Sent on the TELUS Mobility network with BlackBerry -----Original Message----- From: admhardsoft at ...253... Date: Thu, 3 Jun 2010 11:47:40 To: mailing list for gambas users Subject: Re: [Gambas-user] insert a form inside other form Thanks work fine with your idea. Thanks again Tomas Sent on the TELUS Mobility network with BlackBerry -----Original Message----- From: richard terry Date: Thu, 3 Jun 2010 12:59:18 To: mailing list for gambas users Subject: Re: [Gambas-user] insert a form inside other form On Thursday 03 June 2010 12:14:31 Tomas Rodriguez wrote: > Hi body. > > my doubt is about , How can I insert a form( with controls), inside other > form( in gambas 2)? somebody have any idea or expierence. > > thanks > tomas > > > > --------------------------------------------------------------------------- > --- ThinkGeek and WIRED's GeekDad team up for the Ultimate > GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the > lucky parental unit. See the prize list and enter to win: > http://p.sf.net/sfu/thinkgeek-promo > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > Done off the top of my head, but this should work. 1) Create the form you want to load into a form and call it - lets say MyForm 2) Create another form say FMain and in the IDE put a container on it, say a VBox, call it Vbox_For_MyForm or whatever At the top of FMain in the declarations part of the code: Dim Form2Insert as MyForm Type in this: public Sub Form_Open() Form2Insert = New MyForm(Vbox_For_MyForm) end This should embed ok, if not I'll write you an example and mail it to you. Regards Richard ------------------------------------------------------------------------------ ThinkGeek and WIRED's GeekDad team up for the Ultimate GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the lucky parental unit. See the prize list and enter to win: http://p.sf.net/sfu/thinkgeek-promo _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user ------------------------------------------------------------------------------ ThinkGeek and WIRED's GeekDad team up for the Ultimate GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the lucky parental unit. See the prize list and enter to win: http://p.sf.net/sfu/thinkgeek-promo _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From jussi.lahtinen at ...626... Sun Jun 6 18:45:39 2010 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Sun, 6 Jun 2010 19:45:39 +0300 Subject: [Gambas-user] Internal compiler error: Bad stack drop! Message-ID: Hi! I run into error with Gambas3 rev 2994 on Ubuntu 10.04 64bit. Bug with byref command can be reproduced example with this code: Dim a As Integer nonsensesub(ByRef a) <--- error here! Public Sub nonsensesub(ByRef n As Integer) Inc n End Jussi From jussi.lahtinen at ...626... Sun Jun 6 19:00:44 2010 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Sun, 6 Jun 2010 20:00:44 +0300 Subject: [Gambas-user] GTK+ bug with transparent label. Message-ID: Hi! Empty transparent label doesn't be able to show any text, but if you put even one character (except space bar) to it from IDE, then it will work also at runtime. All works fine with Qt4. Gambas3 rev 2994 on Ubuntu 10.04 64bit. Jussi From gambas at ...1... Sun Jun 6 21:32:53 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sun, 6 Jun 2010 21:32:53 +0200 Subject: [Gambas-user] Internal compiler error: Bad stack drop! In-Reply-To: References: Message-ID: <201006062132.53575.gambas@...1...> > Hi! > I run into error with Gambas3 rev 2994 on Ubuntu 10.04 64bit. > Bug with byref command can be reproduced example with this code: > > Dim a As Integer > nonsensesub(ByRef a) <--- error here! > > Public Sub nonsensesub(ByRef n As Integer) > Inc n > End > > Jussi > Eeerk... I hate ByRef! -- Beno?t Minisini From gambas at ...1... Sun Jun 6 22:50:55 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sun, 6 Jun 2010 22:50:55 +0200 Subject: [Gambas-user] Internal compiler error: Bad stack drop! In-Reply-To: <201006062132.53575.gambas@...1...> References: <201006062132.53575.gambas@...1...> Message-ID: <201006062250.55603.gambas@...1...> > > Hi! > > I run into error with Gambas3 rev 2994 on Ubuntu 10.04 64bit. > > Bug with byref command can be reproduced example with this code: > > > > Dim a As Integer > > nonsensesub(ByRef a) <--- error here! > > > > Public Sub nonsensesub(ByRef n As Integer) > > Inc n > > End > > > > Jussi > > Eeerk... I hate ByRef! It is fixed in revision #2995. Regards, -- Beno?t Minisini From gambas at ...1... Sun Jun 6 23:47:17 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sun, 6 Jun 2010 23:47:17 +0200 Subject: [Gambas-user] GTK+ bug with transparent label. In-Reply-To: References: Message-ID: <201006062347.17928.gambas@...1...> > Hi! > Empty transparent label doesn't be able to show any text, > but if you put even one character (except space bar) to it from IDE, > then it will work also at runtime. > All works fine with Qt4. > > Gambas3 rev 2994 on Ubuntu 10.04 64bit. > > Jussi > Sorry, I don't understand what you depict. Can you explain it differently? -- Beno?t Minisini From rterry at ...1946... Mon Jun 7 00:14:30 2010 From: rterry at ...1946... (richard terry) Date: Mon, 7 Jun 2010 08:14:30 +1000 Subject: [Gambas-user] Menu dialog save > multiple "judders" Message-ID: <201006070814.30049.rterry@...1946...> Hi Benoit Upgraded gambas a couple of days ago and noticed that when one saves a menu, the IDE gui "judders", like the code is going through some sort of loop, and the IDE is being refreshed many many times . Dosn't seem to affect anything or do any damage. Regards Richard From gambas at ...1... Mon Jun 7 00:46:05 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Mon, 7 Jun 2010 00:46:05 +0200 Subject: [Gambas-user] Menu dialog save > multiple "judders" In-Reply-To: <201006070814.30049.rterry@...1946...> References: <201006070814.30049.rterry@...1946...> Message-ID: <201006070046.05791.gambas@...1...> > Hi Benoit > > Upgraded gambas a couple of days ago and noticed that when one saves a > menu, the IDE gui "judders", like the code is going through some sort of > loop, and the IDE is being refreshed many many times . Dosn't seem to > affect anything or do any damage. > > Regards > > Richard Do you see that on all forms? If not, can you send me a form that has the depicted behaviour when changing its menu? -- Beno?t Minisini From eilert-sprachen at ...221... Mon Jun 7 08:17:46 2010 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Mon, 07 Jun 2010 08:17:46 +0200 Subject: [Gambas-user] Application_Read In-Reply-To: References: <4C07682F.4060700@...221...> <201006031044.11739.gambas@...1...> <4C077753.4010301@...221...> Message-ID: <4C0C8F0A.6090006@...221...> It is accepted, but still doesn't give any result. Am 04.06.2010 23:27, schrieb Fabien Bodard: > READ #LAST, Keys, -256 > > 2010/6/3 Rolf-Werner Eilert: >> >>> >>> Public Application_Read() >>> >>> Dim Keys As String >>> >>> ' Read up to (so the negative sign) 256 characters from the standard input >>> Keys = Read -256 >>> ... >>> >>> End >>> >> >> Sorry, if I do it like this, I get "Unexpected READ". >> >> What I did before was: >> >> READ #LAST Keys, -256 >> >> This doesn't produce an error, but it doesn't return any value either... >> >> Regards >> >> Rolf >> >> >> ------------------------------------------------------------------------------ >> ThinkGeek and WIRED's GeekDad team up for the Ultimate >> GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the >> lucky parental unit. See the prize list and enter to win: >> http://p.sf.net/sfu/thinkgeek-promo >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > ------------------------------------------------------------------------------ > ThinkGeek and WIRED's GeekDad team up for the Ultimate > GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the > lucky parental unit. See the prize list and enter to win: > http://p.sf.net/sfu/thinkgeek-promo > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From jussi.lahtinen at ...626... Mon Jun 7 18:17:06 2010 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Mon, 7 Jun 2010 19:17:06 +0300 Subject: [Gambas-user] GTK+ bug with transparent label. In-Reply-To: <201006062347.17928.gambas@...1...> References: <201006062347.17928.gambas@...1...> Message-ID: OK, even better, here is my 5 minute project to measure reaction time. It should show your reaction time (time between background turns to white and you releasing button [clicking is more depended on speed of finger]). It will work only if you use IDE to set lblTulos.Text = "0" before running that program. If lblTulos.Text is leaved to "", it wont work. So, just very minor bug. Jussi 2010/6/7 Beno?t Minisini : >> Hi! >> Empty transparent label doesn't be able to show any text, >> but if you put even one character (except space bar) to it from IDE, >> then it will work also at runtime. >> All works fine with Qt4. >> >> Gambas3 rev 2994 on Ubuntu 10.04 64bit. >> >> Jussi >> > > Sorry, I don't understand what you depict. Can you explain it differently? > > -- > Beno?t Minisini > > ------------------------------------------------------------------------------ > ThinkGeek and WIRED's GeekDad team up for the Ultimate > GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the > lucky parental unit. ?See the prize list and enter to win: > http://p.sf.net/sfu/thinkgeek-promo > _______________________________________________ > 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: Reflex-0.0.8.tar.gz Type: application/x-gzip Size: 8817 bytes Desc: not available URL: From admhardsoft at ...253... Tue Jun 8 13:34:34 2010 From: admhardsoft at ...253... (admhardsoft at ...253...) Date: Tue, 8 Jun 2010 11:34:34 +0000 Subject: [Gambas-user] How can I remove a form inside other form? In-Reply-To: References: <201006062347.17928.gambas@...1...> Message-ID: <1764098719-1275996872-cardhu_decombobulator_blackberry.rim.net-368981347-@...2405...> Hi Somebody explain what should I do for insert a form inside other form, but now I wanna remove this form or close this form, for insert other one. Somebody can I help me? Thanks Tomas Sent on the TELUS Mobility network with BlackBerry -----Original Message----- From: Jussi Lahtinen Date: Mon, 7 Jun 2010 19:17:06 To: mailing list for gambas users Subject: Re: [Gambas-user] GTK+ bug with transparent label. OK, even better, here is my 5 minute project to measure reaction time. It should show your reaction time (time between background turns to white and you releasing button [clicking is more depended on speed of finger]). It will work only if you use IDE to set lblTulos.Text = "0" before running that program. If lblTulos.Text is leaved to "", it wont work. So, just very minor bug. Jussi 2010/6/7 Beno?t Minisini : >> Hi! >> Empty transparent label doesn't be able to show any text, >> but if you put even one character (except space bar) to it from IDE, >> then it will work also at runtime. >> All works fine with Qt4. >> >> Gambas3 rev 2994 on Ubuntu 10.04 64bit. >> >> Jussi >> > > Sorry, I don't understand what you depict. Can you explain it differently? > > -- > Beno?t Minisini > > ------------------------------------------------------------------------------ > ThinkGeek and WIRED's GeekDad team up for the Ultimate > GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the > lucky parental unit. ?See the prize list and enter to win: > http://p.sf.net/sfu/thinkgeek-promo >_______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From joe1962 at ...626... Tue Jun 8 15:34:20 2010 From: joe1962 at ...626... (Jose J. Rodriguez) Date: Tue, 8 Jun 2010 09:34:20 -0400 Subject: [Gambas-user] Gambas3 build issues In-Reply-To: <201006031013.34180.gambas@...1...> References: <201006031013.34180.gambas@...1...> Message-ID: On 6/3/10, Beno?t Minisini wrote: > > hum... what is your version of gcc ? > > > > struct _GtkPrinter > > { > > GObject parent_instance; > > > > GtkPrinterPrivate *GSEAL (priv); > > }; > > > > it seem that the compilator don't like the '(priv)' > > > > > I would have said that gtk+ version is too old instead. > That's what I would have figured, but I don't know any C either. Dang! A gtk+2 upgrade tends to break a lot of stuff. VL6SOHO is still in development, but follows Slackware 12.2, Slackware 13.0 comes with 2.14.7, I wonder if that would do it? I have installed Slack13 packages on VL6SOHO before with little trouble, but then a system library is something else altogether. Regards, Joe1962 From wdahn at ...1000... Tue Jun 8 15:51:56 2010 From: wdahn at ...1000... (Werner) Date: Tue, 08 Jun 2010 21:51:56 +0800 Subject: [Gambas-user] OpenGL PixelStore constants missing gambas3-2987 Message-ID: <4C0E4AFC.4010207@...1000...> specifically I need GL_UNPACK_ALIGNMENT but it seems all the others are missing, too. From mohareve at ...626... Tue Jun 8 17:22:35 2010 From: mohareve at ...626... (M. Cs.) Date: Tue, 8 Jun 2010 17:22:35 +0200 Subject: [Gambas-user] Hell of packages - Benoit Message-ID: Dear Benoit and others, this is a request and i think it is very resonable: can you just request uniformized package naming policy for the different distros? The point is, it is nearly impossible to write cross-distro applications in Gambas2, since each and every distro has its own packaging policy. For example, Ubuntu ships packages gambas2-gb-sdl and gambas2-gb-sdl-sound separately. In Suse it doesn't exist package gambas2-gb-sdl-sound. So if I compile a program in Ubuntu, there's 0% chances for it to install normally on Suse. Another example is the variety of gambas2-gb-db-sqlite packages. I simply cannot switch the driver on, because I'm writing my program (GamCat) simultaneously for all the major distros (Ubuntu, Fedora, Suse, Arch, Slackware...). Since you are the owner of the Gambas project, I ask you to do something to solve this disastrous situation. Gambas is so great, it would be a pity to let it go headless on! Please force a unified naming convention upon the packagers! Thank you! Csaba From jussi.lahtinen at ...626... Tue Jun 8 17:38:13 2010 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Tue, 8 Jun 2010 18:38:13 +0300 Subject: [Gambas-user] Signal 11, when calling external function Message-ID: Hi! I have use external function for certain tasks successfully, but I run into problems with recent revision of Gambas. In Gambas: Public Extern Aja_Mtrx(pk0 As Pointer, pk1 As Pointer, pk2 As Pointer) In "libMlpp" Public k0 As New Integer[31, 31] Public k1 As New Integer[31, 31] Public k2 As New Integer[31, 31] Aja_Mtrx(k0.Data, k1.Data, k2.Data) In C: void Aja_Mtrx(int (*k0)[31], int (*k1)[31], int (*k2)[31]) Gambas3 revision 2995 Ubuntu 10.04 64bit Jussi From gambas at ...1... Tue Jun 8 18:24:28 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Tue, 8 Jun 2010 18:24:28 +0200 Subject: [Gambas-user] Hell of packages - Benoit In-Reply-To: References: Message-ID: <201006081824.28204.gambas@...1...> > Dear Benoit and others, > this is a request and i think it is very resonable: can you just request > uniformized package naming policy for the different distros? The point is, > it is nearly impossible to write cross-distro applications in Gambas2, > since each and every distro has its own packaging policy. For example, > Ubuntu ships packages gambas2-gb-sdl and gambas2-gb-sdl-sound separately. > In Suse it doesn't exist package gambas2-gb-sdl-sound. So if I compile a > program in Ubuntu, there's 0% chances for it to install normally on Suse. > Another example is the variety of gambas2-gb-db-sqlite packages. I simply > cannot switch the driver on, because I'm writing my program (GamCat) > simultaneously for all the major distros (Ubuntu, Fedora, Suse, Arch, > Slackware...). Since you are the owner of the Gambas project, I ask you to > do something to solve this disastrous situation. Gambas is so great, it > would be a pity to let it go headless on! Please force a unified naming > convention upon the packagers! Thank you! > > Csaba I have explicitely requested that, in a document named "how to package Gambas" you can find on the wiki. I explained that to the Mandriva packager, and now everything is fine (I'm a Mandriva user). I think the specific users should report a bug to their distribution. As I am not a Ubuntu or a SuSE user, I'm not the better people to do that. And if, for example, a lot of Ubuntu users report and vote for that bug, and eventually send a mail to the packager, maybe the situation will become better in Ubuntu. Same thing for OpenSUSE or other distributions. In other words, I don't want to do that alone. I need the help of Gambas users. And one does not need to be a programmer to do that! -- Beno?t Minisini From lordheavym at ...626... Tue Jun 8 21:05:04 2010 From: lordheavym at ...626... (Laurent Carlier) Date: Tue, 8 Jun 2010 21:05:04 +0200 Subject: [Gambas-user] OpenGL PixelStore constants missing gambas3-2987 In-Reply-To: <4C0E4AFC.4010207@...1000...> References: <4C0E4AFC.4010207@...1000...> Message-ID: <201006082105.04940.lordheavym@...626...> Le mardi 08 juin 2010 15:51:56, Werner a ?crit : > specifically I need GL_UNPACK_ALIGNMENT but it seems all the others are > missing, too. > Ok, i will take a look at this shortly (tomorrow i guess) ++ From wdahn at ...1000... Wed Jun 9 09:36:53 2010 From: wdahn at ...1000... (Werner) Date: Wed, 09 Jun 2010 15:36:53 +0800 Subject: [Gambas-user] OpenGL gl.GL_CLAMP_TO_EDGE constant missing gambas3-2987 Message-ID: <4C0F4495.60609@...1000...> gl.CLAMP_TO_BORDER is in the code but not documented. Regards Werner From mike.crean at ...1940... Wed Jun 9 12:40:00 2010 From: mike.crean at ...1940... (Mike) Date: Wed, 9 Jun 2010 18:40:00 +0800 Subject: [Gambas-user] Video Message-ID: <8q0vh9$2f3qiq@...2199...> Hi Gang, Can anyone please list Gambas example code to implement web cam or video capture using gb.v4l. Unable to find any with a Google search. Thanks Mike From lordheavym at ...626... Wed Jun 9 16:08:13 2010 From: lordheavym at ...626... (Laurent Carlier) Date: Wed, 9 Jun 2010 16:08:13 +0200 Subject: [Gambas-user] OpenGL PixelStore constants missing gambas3-2987 In-Reply-To: <4C0E4AFC.4010207@...1000...> References: <4C0E4AFC.4010207@...1000...> Message-ID: <201006091608.13307.lordheavym@...626...> Le mardi 08 juin 2010 15:51:56, Werner a ?crit : > specifically I need GL_UNPACK_ALIGNMENT but it seems all the others are > missing, too. > > --------------------------------------------------------------------------- > --- ThinkGeek and WIRED's GeekDad team up for the Ultimate > GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the > lucky parental unit. See the prize list and enter to win: > http://p.sf.net/sfu/thinkgeek-promo > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user Should be fixed in rev 2997 ++ From wdahn at ...1000... Wed Jun 9 17:45:31 2010 From: wdahn at ...1000... (Werner) Date: Wed, 09 Jun 2010 23:45:31 +0800 Subject: [Gambas-user] OpenGL PixelStore constants missing gambas3-2987 In-Reply-To: <201006091608.13307.lordheavym@...626...> References: <4C0E4AFC.4010207@...1000...> <201006091608.13307.lordheavym@...626...> Message-ID: <4C0FB71B.5060209@...1000...> On 09/06/10 22:08, Laurent Carlier wrote: > Le mardi 08 juin 2010 15:51:56, Werner a ?crit : > >> specifically I need GL_UNPACK_ALIGNMENT but it seems all the others are >> missing, too. >> >> > Should be fixed in rev 2997 > Brilliant, thank you! Werner From gambas.fr at ...626... Wed Jun 9 19:04:24 2010 From: gambas.fr at ...626... (Fabien Bodard) Date: Wed, 9 Jun 2010 19:04:24 +0200 Subject: [Gambas-user] Video In-Reply-To: <8q0vh9$2f3qiq@...2199...> References: <8q0vh9$2f3qiq@...2199...> Message-ID: just open the exemples in the ide ... there is two exemple in the v2 and and 3 in the v3 2010/6/9 Mike : > Hi Gang, > > > > Can anyone please list Gambas example code to implement web cam or video > capture using gb.v4l. Unable to find any with a Google search. > > > > Thanks > > Mike > > ------------------------------------------------------------------------------ > ThinkGeek and WIRED's GeekDad team up for the Ultimate > GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the > lucky parental unit. ?See the prize list and enter to win: > http://p.sf.net/sfu/thinkgeek-promo > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From wdahn at ...1000... Thu Jun 10 08:37:16 2010 From: wdahn at ...1000... (Werner) Date: Thu, 10 Jun 2010 14:37:16 +0800 Subject: [Gambas-user] Optional and Param (Gambas 3) Message-ID: <4C10881C.8090301@...1000...> I'm trying to implement a simple class that creates a Float[3] array. I would like to give the user of the class an optional opportunity to fill the array with data when the class is instantiated. ---------------------------------------- ' Gambas class file ' Vector3f Class Public v As New Float[3] Public Sub _new(Optional x As Float, y As Float, z As Float) If Param.Count > 0 Then v[0] = x If Param.Count > 1 Then v[1] = y If Param.Count > 2 Then v[2] = z End --------------------------------------- The above does not work because Param.Count is always 0 no matter if parameter values are supplied or not. My guess is that's because Optional can only be used from the second parameter onwards (why?). How can I make this class do what it should? Thanks Werner Dahn From Karl.Reinl at ...2345... Thu Jun 10 09:38:03 2010 From: Karl.Reinl at ...2345... (Charlie Reinl) Date: Thu, 10 Jun 2010 09:38:03 +0200 Subject: [Gambas-user] Optional and Param (Gambas 3) In-Reply-To: <4C10881C.8090301@...1000...> References: <4C10881C.8090301@...1000...> Message-ID: <1276155483.6541.4.camel@...40...> Am Donnerstag, den 10.06.2010, 14:37 +0800 schrieb Werner: > I'm trying to implement a simple class that creates a Float[3] array. I > would like to give the user of the class an optional opportunity to fill > the array with data when the class is instantiated. > > ---------------------------------------- > ' Gambas class file > ' Vector3f Class > > Public v As New Float[3] > > Public Sub _new(Optional x As Float, y As Float, z As Float) > If Param.Count > 0 Then v[0] = x > If Param.Count > 1 Then v[1] = y > If Param.Count > 2 Then v[2] = z > End > --------------------------------------- > > The above does not work because Param.Count is always 0 no matter if > parameter values are supplied or not. My guess is that's because > Optional can only be used from the second parameter onwards (why?). > > How can I make this class do what it should? > > Thanks > Werner Dahn Salut Werner, where Param is filled? , what is Param ? an array? the class ? for Optional, I do not know if it can be chained like you do. But it can be used also on the first Parameter. -- Amicalement Charlie From wdahn at ...1000... Thu Jun 10 10:19:28 2010 From: wdahn at ...1000... (Werner) Date: Thu, 10 Jun 2010 16:19:28 +0800 Subject: [Gambas-user] Optional and Param (Gambas 3) In-Reply-To: <1276155483.6541.4.camel@...40...> References: <4C10881C.8090301@...1000...> <1276155483.6541.4.camel@...40...> Message-ID: <4C10A010.10802@...1000...> On 10/06/10 15:38, Charlie Reinl wrote: > Am Donnerstag, den 10.06.2010, 14:37 +0800 schrieb Werner: > >> I'm trying to implement a simple class that creates a Float[3] array. I >> would like to give the user of the class an optional opportunity to fill >> the array with data when the class is instantiated. >> >> ---------------------------------------- >> ' Gambas class file >> ' Vector3f Class >> >> Public v As New Float[3] >> >> Public Sub _new(Optional x As Float, y As Float, z As Float) >> If Param.Count > 0 Then v[0] = x >> If Param.Count > 1 Then v[1] = y >> If Param.Count > 2 Then v[2] = z >> End >> --------------------------------------- >> >> The above does not work because Param.Count is always 0 no matter if >> parameter values are supplied or not. My guess is that's because >> Optional can only be used from the second parameter onwards (why?). >> >> How can I make this class do what it should? >> >> Thanks >> Werner Dahn >> > Salut Werner, > > where Param is filled? , what is Param ? an array? the class ? > > for Optional, I do not know if it can be chained like you do. > But it can be used also on the first Parameter. > Param is a Gambas Class. It can be used to find out how many parameters are supplied to a routine. It's just the way my example is written it always gives a Count of zero, no matter how many parameters are actually supplied. http://gambasdoc.org/help/comp/gb/param Regards Werner From mike.crean at ...1940... Thu Jun 10 11:57:41 2010 From: mike.crean at ...1940... (Mike) Date: Thu, 10 Jun 2010 17:57:41 +0800 Subject: [Gambas-user] Video In-Reply-To: Message-ID: <8q10rj$2atge6@...2446...> Have tried the examples and Gambas hangs when the picturebox call is made I am running on Ubuntu 10.xx any other examples and can I remove the write protection off the example files. Regards Mike -----Original Message----- From: Fabien Bodard [mailto:gambas.fr at ...626...] Sent: Thursday, 10 June 2010 01:04 To: mailing list for gambas users Subject: Re: [Gambas-user] Video just open the exemples in the ide ... there is two exemple in the v2 and and 3 in the v3 2010/6/9 Mike : > Hi Gang, > > > > Can anyone please list Gambas example code to implement web cam or video > capture using gb.v4l. Unable to find any with a Google search. > > > > Thanks > > Mike > > ---------------------------------------------------------------------------- -- > ThinkGeek and WIRED's GeekDad team up for the Ultimate > GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the > lucky parental unit. ?See the prize list and enter to win: > http://p.sf.net/sfu/thinkgeek-promo > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > ---------------------------------------------------------------------------- -- ThinkGeek and WIRED's GeekDad team up for the Ultimate GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the lucky parental unit. See the prize list and enter to win: http://p.sf.net/sfu/thinkgeek-promo _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user No virus found in this incoming message. Checked by AVG - www.avg.com Version: 9.0.829 / Virus Database: 271.1.1/2927 - Release Date: 06/09/10 14:35:00 From Karl.Reinl at ...2345... Thu Jun 10 12:26:41 2010 From: Karl.Reinl at ...2345... (Charlie Reinl) Date: Thu, 10 Jun 2010 12:26:41 +0200 Subject: [Gambas-user] Video In-Reply-To: <8q10rj$2atge6@...2446...> References: <8q10rj$2atge6@...2446...> Message-ID: <1276165601.6541.12.camel@...40...> Am Donnerstag, den 10.06.2010, 17:57 +0800 schrieb Mike: > Have tried the examples and Gambas hangs when the picturebox call is made I > am running on Ubuntu 10.xx any other examples and can I remove the write > protection off the example files. > > Regards > Mike > ---------------8<-------------------- Salut Mike, load it into the IDE and save it with "Save as.." where you have rw rights. -- Amicalement Charlie From admhardsoft at ...253... Thu Jun 10 12:51:46 2010 From: admhardsoft at ...253... (admhardsoft at ...253...) Date: Thu, 10 Jun 2010 10:51:46 +0000 Subject: [Gambas-user] Gambas2+andlinux in windows In-Reply-To: <1276165601.6541.12.camel@...40...> References: <8q10rj$2atge6@...2446...><1276165601.6541.12.camel@...40...> Message-ID: <450884487-1276167099-cardhu_decombobulator_blackberry.rim.net-442181446-@...2405...> Hi I installed gambas2 in windows trought andlinux, but I wanna to conect my database remote to my web server, but I need to change ip address to andlinux, somebody have or had this experience before? My pc have access to internet because have a ip in the same network but andlinux have other one different to the network by this reason I need to change, somebody can help me with that problem? Thanks Sincerely Tomas Sent on the TELUS Mobility network with BlackBerry -----Original Message----- From: Charlie Reinl Date: Thu, 10 Jun 2010 12:26:41 To: mailing list for gambas users Subject: Re: [Gambas-user] Video Am Donnerstag, den 10.06.2010, 17:57 +0800 schrieb Mike: > Have tried the examples and Gambas hangs when the picturebox call is made I > am running on Ubuntu 10.xx any other examples and can I remove the write > protection off the example files. > > Regards > Mike > ---------------8<-------------------- Salut Mike, load it into the IDE and save it with "Save as.." where you have rw rights. -- Amicalement Charlie ------------------------------------------------------------------------------ ThinkGeek and WIRED's GeekDad team up for the Ultimate GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the lucky parental unit. See the prize list and enter to win: http://p.sf.net/sfu/thinkgeek-promo _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From doriano.blengino at ...1909... Thu Jun 10 14:06:28 2010 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Thu, 10 Jun 2010 14:06:28 +0200 Subject: [Gambas-user] Gambas2+andlinux in windows In-Reply-To: <450884487-1276167099-cardhu_decombobulator_blackberry.rim.net-442181446-@...2405...> References: <8q10rj$2atge6@...2446...><1276165601.6541.12.camel@...40...> <450884487-1276167099-cardhu_decombobulator_blackberry.rim.net-442181446-@...2405...> Message-ID: <4C10D544.8010205@...1909...> admhardsoft at ...253... ha scritto: > Hi > I installed gambas2 in windows trought andlinux, but I wanna to conect my database remote to my web server, but I need to change ip address to andlinux, somebody have or had this experience before? My pc have access to internet because have a ip in the same network but andlinux have other one different to the network by this reason I need to change, somebody can help me with that problem? > I have a fully functional andLinux which can access the internet, and I will describe my configuration in the hope it is useful. The andLinux system is hosted by a win2000 machine. Foreword. I have an adsl router which uses DHCP, but I didn't want to use it because I wanted fixed addresses in my local network. Moreover my win2000 machine, when directly connected to the internet, behaves very badly (viruses this m$ crap can find I don't know where). So, I use another machine, my server (a true linux machine), as a firewall. Its only true interface, eth0, is configured with DHCP from the router, and gets addresses like 28.226.xxx.xxx. Another virtual interface "eth0:0" is set-up with the fixed local network address 192.168.223.3. The final result is that, apart from my server, no other machines are connected directly to the internet; all of them have an address of the kind 192.168.223.xxx, and use the server as a gateway. This fact should not be important to you, anyway. What it counts, is that my gateway to the internet is a router which has address 192.168.223.3. The host machine has windows 2000 - it is somehow different from xp or seven. Anyway, it has a single ethernet interface, with fixed ip = 192.168.223.15 and the gateway is of course 192.168.223.3 (the server). Then there is another virtual interface, called TAP-Colinux, which I installed using the "TAP-Win32 Adapter V8" from the andLinux package. This interface has address 192.168.23.16; no other parameters are needed. Finally, coLinux is started using these settings (from "settings.txt"): ... eth0=tuntap eth1=slirp ... Inside the andLinux system, network interfaces are setup like this: iface eth1 inet static address 10.0.2.15 gateway 10.0.2.2 netmask 255.255.255.0 iface eth0 inet static address 192.168.23.18 netmask 255.255.255.0 The interface 10.0.2.2, I suppose, is the internal one simulated by coLinux; I am not sure because I can't remember the many tries I did. Given that setup, the command "route -n" gives: Destination Gateway Genmask Flags Metric Ref Use Iface 192.168.23.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 10.0.2.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1 0.0.0.0 10.0.2.2 0.0.0.0 UG 100 0 0 eth1 All that said, I can from inside andLinux go everywhere: in my local network or the internet. If I "ssh" into the server, the server sees the connection as if it was made from the win2000 machine (and it is true!) If I open a connection to the internet, the remote machine will see the connection as if it was made from my router, using its public external address. This is normal too. The only limit with my setup is that I can not open a connection from outside andLinux to "inside" andLinux. I mean, from windows I can not telnet or ssh into andLinux, nor I can from the server. This is quite normal, because every machine acts as a firewall. I am also sure that, if I really wanted it, I could have done it. There are different ways to implement interfaces in andLinux; I chose the simplest one (or the first one which worked?). One of those ways creates a virtual "real" interface (sorry for the funny words), but the documentation says it is slow. I suppose that, if you only want to connect to a remote database, this setup is enough. Regards, Doriano From gambas at ...1... Thu Jun 10 14:24:15 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Thu, 10 Jun 2010 14:24:15 +0200 Subject: [Gambas-user] Optional and Param (Gambas 3) In-Reply-To: <4C10A010.10802@...1000...> References: <4C10881C.8090301@...1000...> <1276155483.6541.4.camel@...40...> <4C10A010.10802@...1000...> Message-ID: <201006101424.15219.gambas@...1...> > On 10/06/10 15:38, Charlie Reinl wrote: > > Am Donnerstag, den 10.06.2010, 14:37 +0800 schrieb Werner: > >> I'm trying to implement a simple class that creates a Float[3] array. I > >> would like to give the user of the class an optional opportunity to fill > >> the array with data when the class is instantiated. > >> > >> ---------------------------------------- > >> ' Gambas class file > >> ' Vector3f Class > >> > >> Public v As New Float[3] > >> > >> Public Sub _new(Optional x As Float, y As Float, z As Float) > >> > >> If Param.Count > 0 Then v[0] = x > >> If Param.Count > 1 Then v[1] = y > >> If Param.Count > 2 Then v[2] = z > >> > >> End > >> --------------------------------------- > >> > >> The above does not work because Param.Count is always 0 no matter if > >> parameter values are supplied or not. My guess is that's because > >> Optional can only be used from the second parameter onwards (why?). > >> > >> How can I make this class do what it should? > >> > >> Thanks > >> Werner Dahn > > > > Salut Werner, > > > > where Param is filled? , what is Param ? an array? the class ? > > > > for Optional, I do not know if it can be chained like you do. > > But it can be used also on the first Parameter. > > Param is a Gambas Class. It can be used to find out how many parameters > are supplied to a routine. It's just the way my example is written it > always gives a Count of zero, no matter how many parameters are actually > supplied. > http://gambasdoc.org/help/comp/gb/param > > > Regards > Werner > Param is only useful inside a method that takes a "variable number of arguments", i.e. whose argument list ends with "...". You cannot use it for optional arguments. Maybe the documentation is not clear enough, as you thought that. Optional arguments that are not passed by the caller just take their default value. Regards, -- Beno?t Minisini From gambas at ...1... Thu Jun 10 15:24:35 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Thu, 10 Jun 2010 15:24:35 +0200 Subject: [Gambas-user] Signal 11, when calling external function In-Reply-To: References: Message-ID: <201006101524.35936.gambas@...1...> > Hi! > I have use external function for certain tasks successfully, but I run > into problems with recent revision of Gambas. > > In Gambas: > Public Extern Aja_Mtrx(pk0 As Pointer, pk1 As Pointer, pk2 As Pointer) > In "libMlpp" > > Public k0 As New Integer[31, 31] > Public k1 As New Integer[31, 31] > Public k2 As New Integer[31, 31] > > Aja_Mtrx(k0.Data, k1.Data, k2.Data) > > In C: > void Aja_Mtrx(int (*k0)[31], int (*k1)[31], int (*k2)[31]) > > > Gambas3 revision 2995 Ubuntu 10.04 64bit > > Jussi > I'm not sure that the extern declaration matches: An Integer[31, 31] in Gambas is a int [31 * 31] in C, not a int (*)[31]. Regards, -- Beno?t Minisini From jussi.lahtinen at ...626... Thu Jun 10 17:18:10 2010 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Thu, 10 Jun 2010 18:18:10 +0300 Subject: [Gambas-user] Signal 11, when calling external function In-Reply-To: <201006101524.35936.gambas@...1...> References: <201006101524.35936.gambas@...1...> Message-ID: Function declaration is from example code I found, I don't understand logic of that notation. BUT it works with Gambas2, and it worked fine with earlier revision of Gambas3. I'm not saying that it makes it correct way pass 2d arrays, but makes me puzzled... Jussi 2010/6/10 Beno?t Minisini : >> Hi! >> I have use external function for certain tasks successfully, but I run >> into problems with recent revision of Gambas. >> >> In Gambas: >> Public Extern Aja_Mtrx(pk0 As Pointer, pk1 As Pointer, pk2 As Pointer) >> In "libMlpp" >> >> Public k0 As New Integer[31, 31] >> Public k1 As New Integer[31, 31] >> Public k2 As New Integer[31, 31] >> >> Aja_Mtrx(k0.Data, k1.Data, k2.Data) >> >> In C: >> void Aja_Mtrx(int (*k0)[31], int (*k1)[31], int (*k2)[31]) >> >> >> Gambas3 revision 2995 ?Ubuntu 10.04 64bit >> >> Jussi >> > > I'm not sure that the extern declaration matches: An Integer[31, 31] in Gambas > is a int [31 * 31] in C, not a int (*)[31]. > > Regards, > > -- > Beno?t Minisini > > ------------------------------------------------------------------------------ > ThinkGeek and WIRED's GeekDad team up for the Ultimate > GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the > lucky parental unit. ?See the prize list and enter to win: > http://p.sf.net/sfu/thinkgeek-promo > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From jussi.lahtinen at ...626... Thu Jun 10 17:33:42 2010 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Thu, 10 Jun 2010 18:33:42 +0300 Subject: [Gambas-user] Signal 11, when calling external function In-Reply-To: References: <201006101524.35936.gambas@...1...> Message-ID: I changed code to (makes very much more sense to me): void Aja_Mtrx(int k0[][31], int k1[][31], int k2[][31]) But it still doesn't work with Gambas3. With Gambas2 everything is OK. Jussi On Thu, Jun 10, 2010 at 18:18, Jussi Lahtinen wrote: > Function declaration is from example code I found, I don't understand > logic of that notation. > BUT it works with Gambas2, and it worked fine with earlier revision of Gambas3. > I'm not saying that it makes it correct way pass 2d arrays, but makes > me puzzled... > > Jussi > > > 2010/6/10 Beno?t Minisini : >>> Hi! >>> I have use external function for certain tasks successfully, but I run >>> into problems with recent revision of Gambas. >>> >>> In Gambas: >>> Public Extern Aja_Mtrx(pk0 As Pointer, pk1 As Pointer, pk2 As Pointer) >>> In "libMlpp" >>> >>> Public k0 As New Integer[31, 31] >>> Public k1 As New Integer[31, 31] >>> Public k2 As New Integer[31, 31] >>> >>> Aja_Mtrx(k0.Data, k1.Data, k2.Data) >>> >>> In C: >>> void Aja_Mtrx(int (*k0)[31], int (*k1)[31], int (*k2)[31]) >>> >>> >>> Gambas3 revision 2995 ?Ubuntu 10.04 64bit >>> >>> Jussi >>> >> >> I'm not sure that the extern declaration matches: An Integer[31, 31] in Gambas >> is a int [31 * 31] in C, not a int (*)[31]. >> >> Regards, >> >> -- >> Beno?t Minisini >> >> ------------------------------------------------------------------------------ >> ThinkGeek and WIRED's GeekDad team up for the Ultimate >> GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the >> lucky parental unit. ?See the prize list and enter to win: >> http://p.sf.net/sfu/thinkgeek-promo >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > From jussi.lahtinen at ...626... Thu Jun 10 17:37:03 2010 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Thu, 10 Jun 2010 18:37:03 +0300 Subject: [Gambas-user] Optional and Param (Gambas 3) In-Reply-To: <201006101424.15219.gambas@...1...> References: <4C10881C.8090301@...1000...> <1276155483.6541.4.camel@...40...> <4C10A010.10802@...1000...> <201006101424.15219.gambas@...1...> Message-ID: I'm used to do this kind of things like this: Public Sub _new(Optional x As Float = -1, Optional y As Float = -1 ,Optional z As Float = -1) If x <> -1 Then v[0] = x If y <> -1 Then v[1] = y If z <> -1 Then v[2] = z End Jussi 2010/6/10 Beno?t Minisini : >> On 10/06/10 15:38, Charlie Reinl wrote: >> > Am Donnerstag, den 10.06.2010, 14:37 +0800 schrieb Werner: >> >> I'm trying to implement a simple class that creates a Float[3] array. I >> >> would like to give the user of the class an optional opportunity to fill >> >> the array with data when the class is instantiated. >> >> >> >> ---------------------------------------- >> >> ' Gambas class file >> >> ' Vector3f Class >> >> >> >> Public v As New Float[3] >> >> >> >> Public Sub _new(Optional x As Float, y As Float, z As Float) >> >> >> >> ? If Param.Count > 0 Then v[0] = x >> >> ? If Param.Count > 1 Then v[1] = y >> >> ? If Param.Count > 2 Then v[2] = z >> >> >> >> End >> >> --------------------------------------- >> >> >> >> The above does not work because Param.Count is always 0 no matter if >> >> parameter values are supplied or not. My guess is that's because >> >> Optional can only be used from the second parameter onwards (why?). >> >> >> >> How can I make this class do what it should? >> >> >> >> Thanks >> >> Werner Dahn >> > >> > Salut Werner, >> > >> > where Param is filled? , what is Param ? an array? the class ? >> > >> > for Optional, I do not know if it can be chained like you do. >> > But it can be used also on the first Parameter. >> >> Param is a Gambas Class. It can be used to find out how many parameters >> are supplied to a routine. It's just the way my example is written it >> always gives a Count of zero, no matter how many parameters are actually >> supplied. >> http://gambasdoc.org/help/comp/gb/param >> >> >> Regards >> Werner >> > > Param is only useful inside a method that takes a "variable number of > arguments", i.e. whose argument list ends with "...". > > You cannot use it for optional arguments. Maybe the documentation is not clear > enough, as you thought that. > > Optional arguments that are not passed by the caller just take their default > value. > > Regards, > > > -- > Beno?t Minisini > > ------------------------------------------------------------------------------ > ThinkGeek and WIRED's GeekDad team up for the Ultimate > GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the > lucky parental unit. ?See the prize list and enter to win: > http://p.sf.net/sfu/thinkgeek-promo > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From wdahn at ...1000... Thu Jun 10 19:28:49 2010 From: wdahn at ...1000... (Werner) Date: Fri, 11 Jun 2010 01:28:49 +0800 Subject: [Gambas-user] Optional and Param (Gambas 3) In-Reply-To: References: <4C10881C.8090301@...1000...> <1276155483.6541.4.camel@...40...> <4C10A010.10802@...1000...> <201006101424.15219.gambas@...1...> Message-ID: <4C1120D1.8060106@...1000...> On 10/06/10 23:37, Jussi Lahtinen wrote: > I'm used to do this kind of things like this: > > Public Sub _new(Optional x As Float = -1, Optional y As Float = -1 > ,Optional z As Float = -1) > If x <> -1 Then v[0] = x > If y <> -1 Then v[1] = y > If z <> -1 Then v[2] = z > End > > > Jussi > Thanks Jussi and everyone else who replied. My _new routine now looks like this and it does what it should do: ------------------ Public Sub _new(Optional x As Float = 0, Optional y As Float = 0, Optional z As Float = 0) v[0] = x v[1] = y v[2] = z End ------------------ Dirt simple, dirt cheap. I don't need to test the parameters any more because 0 is the default anyway. My problem was that I didn't know you need to specify Optional for each and every parameter. Come to think of it it does make sense. Regards Werner From richard.j.walker at ...247... Thu Jun 10 22:02:08 2010 From: richard.j.walker at ...247... (Richard) Date: Thu, 10 Jun 2010 21:02:08 +0100 Subject: [Gambas-user] Gambas2-Writing properties of classes to file. Message-ID: <201006102102.08327.richard.j.walker@...247...> Greetings to the list on a fine warm sunny evening in Belfast, But here I am, indoors, trying to find an "easy" way to make some data more persistent. In a small app I am writing for my brother I have a number of classes designed to hold information about video and audio clips. Some of the data is "expensive" to gather - it takes time to process MBytes-GBytes of video to find out, for example, how many frames have been captured and how many dropped. In C I might have used an array of structures, or somesuch. In Gambas I have implemented the data store as a collection of class instances. I am trying to find a way to write the property names and values to a file and I cannot seem to find anywhere in the documentation, or in my archive of this list, a reference to the method used by the IDE when it prints a table to the screen of a highlighted class instance name (in break mode of course). The only practical alternative I can see at the moment is to write a long procedure to write these names and values to a file but there is so much to copy it is quite daunting, and likely to be typing-error-prone. Since in debug mode Gambas already knows how to create tables of the data I want to save, can I not discover this and do it the same way? Perhaps some of you already know how. Here's Hoping! Richard From gambas at ...1... Fri Jun 11 03:09:08 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Fri, 11 Jun 2010 03:09:08 +0200 Subject: [Gambas-user] Optional and Param (Gambas 3) In-Reply-To: <4C1120D1.8060106@...1000...> References: <4C10881C.8090301@...1000...> <4C1120D1.8060106@...1000...> Message-ID: <201006110309.08239.gambas@...1...> > On 10/06/10 23:37, Jussi Lahtinen wrote: > > I'm used to do this kind of things like this: > > > > Public Sub _new(Optional x As Float = -1, Optional y As Float = -1 > > ,Optional z As Float = -1) > > > > If x <> -1 Then v[0] = x > > If y <> -1 Then v[1] = y > > If z <> -1 Then v[2] = z > > > > End > > > > > > Jussi > > Thanks Jussi and everyone else who replied. > > My _new routine now looks like this and it does what it should do: > > ------------------ > Public Sub _new(Optional x As Float = 0, Optional y As Float = 0, > Optional z As Float = 0) > v[0] = x > v[1] = y > v[2] = z > End > ------------------ > Dirt simple, dirt cheap. > I don't need to test the parameters any more because 0 is the default > anyway. My problem was that I didn't know you need to specify Optional > for each and every parameter. Come to think of it it does make sense. > > Regards > Werner > Actually you should have to only specify the first optional keyword, because as soon as one argument is optional, all the next are optional too. Regards, -- Beno?t Minisini From richard.j.walker at ...247... Fri Jun 11 03:31:43 2010 From: richard.j.walker at ...247... (Richard) Date: Fri, 11 Jun 2010 02:31:43 +0100 Subject: [Gambas-user] Gambas2-Writing properties of classes to file. In-Reply-To: <201006102102.08327.richard.j.walker@...247...> References: <201006102102.08327.richard.j.walker@...247...> Message-ID: <201006110231.43855.richard.j.walker@...247...> On Thursday 10 June 2010 21:02:08 Richard wrote: > Greetings to the list on a fine warm sunny evening in Belfast, > > But here I am, indoors, trying to find an "easy" way to make some data more > persistent. > > In a small app I am writing for my brother I have a number of classes > designed to hold information about video and audio clips. Some of the data > is "expensive" to gather - it takes time to process MBytes-GBytes of video > to find out, for example, how many frames have been captured and how many > dropped. > > In C I might have used an array of structures, or somesuch. In Gambas I > have implemented the data store as a collection of class instances. > > I am trying to find a way to write the property names and values to a file > and I cannot seem to find anywhere in the documentation, or in my archive > of this list, a reference to the method used by the IDE when it prints a > table to the screen of a highlighted class instance name (in break mode of > course). > > The only practical alternative I can see at the moment is to write a long > procedure to write these names and values to a file but there is so much to > copy it is quite daunting, and likely to be typing-error-prone. Since in > debug mode Gambas already knows how to create tables of the data I want to > save, can I not discover this and do it the same way? Perhaps some of you > already know how. Here's Hoping! > > Richard > > --------------------------------------------------------------------------- >--- ThinkGeek and WIRED's GeekDad team up for the Ultimate > GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the > lucky parental unit. See the prize list and enter to win: > http://p.sf.net/sfu/thinkgeek-promo > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user Never underestimate the power of the act of asking for help in concentrating the mind on a problem. I am embarrassed to admit that I have struggled with this one for months and now that I have discovered the answer I am even more embarrassed to admit I had not been reading the manual with enough care. In partial defence I have to say that the syntax examples for Class[] and Classes[] confused me. First off the illustration for Class (Class[]) doesn't work in my test program: DIM hClass AS Class DIM hSymbol AS .Symbol hSymbol = hClass [ Name AS String ] The declaration of hSymbol doesn't pass the parser's inspection; complaints about an unexpected "." and a failure to recognise .Symbol as a valid variable type mean that I had to change it to: DIM hSymbol AS Variant Secondly I repeatedly failed to grasp the difference between the uses of "[Name AS String]" in this and in the example for Classes[]: DIM hClass AS Class hClass = Classes [ Name AS String ] I now know that in the first case (Class[]) the Name refers to the name of a class symbol (property, method, event, etc) and in the second (Classes[]) it must be the quoted name of a Class. So, the solution to my problem goes something like this: PUBLIC SomeInstance AS NEW ClipAudio("Clip_Name.wav") PUBLIC SUB Action_Click() DIM fp AS stream fp = OPEN User.home &/ "myclassdata.test" FOR OUTPUT CREATE write_properties(fp, SomeInstance) CLOSE fp END PRIVATE PROCEDURE write_properties(ofile AS stream, instance AS Object) DIM hClass AS Class DIM hSymbol AS Variant DIM symbol_name AS String DIM prop_val AS String hClass = Object.Class(instance) FOR EACH symbol_name IN hClass.Symbols hSymbol = hClass[symbol_name] IF Class.Property = hClass[symbol_name].Kind THEN prop_val = Str(Object.GetProperty(instance, symbol_name)) PRINT #ofile, symbol_name & "=" & prop_val ENDIF NEXT END With a bit more hacking I will have section names like [SomeInstance] followed by property=value lines and I should be able to use gb.Settings to read the data back into the program on the next run. And so to bed... Richard From jussi.lahtinen at ...626... Fri Jun 11 16:30:29 2010 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Fri, 11 Jun 2010 17:30:29 +0300 Subject: [Gambas-user] Signal 11, when calling external function In-Reply-To: References: <201006101524.35936.gambas@...1...> Message-ID: Hope this helps... Program received signal SIGSEGV, Segmentation fault. 0x00007ffff7535f5e in ffi_call_unix64 () from /usr/lib/libffi.so.5 (gdb) bt #0 0x00007ffff7535f5e in ffi_call_unix64 () from /usr/lib/libffi.so.5 #1 0xff007ffff7535c84 in ?? () #2 0xffffffffffffffff in ?? () #3 0xffffffffffffffff in ?? () #4 0xffffffffffffffff in ?? () #5 0xffffffffffffffff in ?? () #6 0xffffffffffffffff in ?? () #7 0xffffffffffffffff in ?? () #8 0xffffffffffffffff in ?? () #9 0xffffffffffffffff in ?? () #10 0xffffffffffffffff in ?? () ... Jussi On Thu, Jun 10, 2010 at 18:33, Jussi Lahtinen wrote: > I changed code to (makes very much more sense to me): > void Aja_Mtrx(int k0[][31], int k1[][31], int k2[][31]) > > But it still doesn't work with Gambas3. > With Gambas2 everything is OK. > > Jussi > > > On Thu, Jun 10, 2010 at 18:18, Jussi Lahtinen wrote: >> Function declaration is from example code I found, I don't understand >> logic of that notation. >> BUT it works with Gambas2, and it worked fine with earlier revision of Gambas3. >> I'm not saying that it makes it correct way pass 2d arrays, but makes >> me puzzled... >> >> Jussi >> >> >> 2010/6/10 Beno?t Minisini : >>>> Hi! >>>> I have use external function for certain tasks successfully, but I run >>>> into problems with recent revision of Gambas. >>>> >>>> In Gambas: >>>> Public Extern Aja_Mtrx(pk0 As Pointer, pk1 As Pointer, pk2 As Pointer) >>>> In "libMlpp" >>>> >>>> Public k0 As New Integer[31, 31] >>>> Public k1 As New Integer[31, 31] >>>> Public k2 As New Integer[31, 31] >>>> >>>> Aja_Mtrx(k0.Data, k1.Data, k2.Data) >>>> >>>> In C: >>>> void Aja_Mtrx(int (*k0)[31], int (*k1)[31], int (*k2)[31]) >>>> >>>> >>>> Gambas3 revision 2995 ?Ubuntu 10.04 64bit >>>> >>>> Jussi >>>> >>> >>> I'm not sure that the extern declaration matches: An Integer[31, 31] in Gambas >>> is a int [31 * 31] in C, not a int (*)[31]. >>> >>> Regards, >>> >>> -- >>> Beno?t Minisini >>> >>> ------------------------------------------------------------------------------ >>> ThinkGeek and WIRED's GeekDad team up for the Ultimate >>> GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the >>> lucky parental unit. ?See the prize list and enter to win: >>> http://p.sf.net/sfu/thinkgeek-promo >>> _______________________________________________ >>> Gambas-user mailing list >>> Gambas-user at lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>> >> > From gambas at ...1... Fri Jun 11 16:37:25 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Fri, 11 Jun 2010 16:37:25 +0200 Subject: [Gambas-user] Signal 11, when calling external function In-Reply-To: References: Message-ID: <201006111637.25683.gambas@...1...> > Hope this helps... > > Program received signal SIGSEGV, Segmentation fault. > 0x00007ffff7535f5e in ffi_call_unix64 () from /usr/lib/libffi.so.5 > (gdb) bt > #0 0x00007ffff7535f5e in ffi_call_unix64 () from /usr/lib/libffi.so.5 > #1 0xff007ffff7535c84 in ?? () > #2 0xffffffffffffffff in ?? () > #3 0xffffffffffffffff in ?? () > #4 0xffffffffffffffff in ?? () > #5 0xffffffffffffffff in ?? () > #6 0xffffffffffffffff in ?? () > #7 0xffffffffffffffff in ?? () > #8 0xffffffffffffffff in ?? () > #9 0xffffffffffffffff in ?? () > #10 0xffffffffffffffff in ?? () > ... > > Jussi > Did you compile Gambas with debugging information enabled ? Otherwise you will have more useful information by running your program inside valgrind. -- Beno?t Minisini From jussi.lahtinen at ...626... Fri Jun 11 21:30:16 2010 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Fri, 11 Jun 2010 22:30:16 +0300 Subject: [Gambas-user] Signal 11, when calling external function In-Reply-To: <201006111637.25683.gambas@...1...> References: <201006111637.25683.gambas@...1...> Message-ID: > Did you compile Gambas with debugging information enabled ? Gambas is compiled with following steps: 1. ./reconf 2. ./configure -C 3. make 4. sudo make install Are debugging information enabled by default? > Otherwise you will have more useful information by running your program inside > valgrind. OK, I made very simple test project that will reproduce problem I described. It is as simple as possible and it doesn't do anything useful. I ran that project with valgrind (memcheck and callgrind). Ctest is source folder of shared test library (my IDE is Code::Blocks). ExtrnfBug is Gambas3 project source archive. Do you need anything else / can I help more with this issue? Jussi -------------- next part -------------- A non-text attachment was scrubbed... Name: Ctest.tar.gz Type: application/x-gzip Size: 3941 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: ExtrnfBug-0.0.1.tar.gz Type: application/x-gzip Size: 4864 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: valgrindlogs.tar.gz Type: application/x-gzip Size: 2170 bytes Desc: not available URL: From girardhenri at ...67... Sat Jun 12 11:44:21 2010 From: girardhenri at ...67... (Henri Girard) Date: Sat, 12 Jun 2010 09:44:21 +0000 Subject: [Gambas-user] =?iso-8859-1?q?base_de_donn=E9es_employees_avec_pho?= =?iso-8859-1?q?to_champ_blob?= In-Reply-To: References: , , , <201006111637.25683.gambas@...1...>, Message-ID: Salut, J'ai un formulaire employ?s qui affichent les champs, mais je ne sais pas comment afficher le champ photo dans une picturebox ? c'est la base northwind en sqlite3 J'ai essay? Picturebox3.Picturebox = rs!Photo mais ?a passe pas ? Merci d'avance Henri _________________________________________________________________ Installez gratuitement les nouvelles Emoch'ticones ! http://www.ilovemessenger.fr/emoticones/telecharger-emoticones-emochticones.aspx From wdahn at ...1000... Sat Jun 12 11:54:55 2010 From: wdahn at ...1000... (Werner) Date: Sat, 12 Jun 2010 17:54:55 +0800 Subject: [Gambas-user] =?iso-8859-1?q?base_de_donn=E9es_employees_avec_pho?= =?iso-8859-1?q?to_champ_blob?= In-Reply-To: References: , , , <201006111637.25683.gambas@...1...>, Message-ID: <4C13596F.2020100@...1000...> On 12/06/10 17:44, Henri Girard wrote: > Salut, > > J'ai un formulaire employ?s qui affichent les champs, mais je ne sais pas comment afficher le champ photo dans une picturebox ? > c'est la base northwind en sqlite3 > J'ai essay? Picturebox3.Picturebox = rs!Photo mais ?a passe pas ? > Merci d'avance > Henri > Salut Henri, try Picturebox3.Picture = rs!Photo ?a marche! Werner From girardhenri at ...67... Sat Jun 12 14:08:11 2010 From: girardhenri at ...67... (Henri Girard) Date: Sat, 12 Jun 2010 12:08:11 +0000 Subject: [Gambas-user] =?iso-8859-1?q?base_de_donn=E9es_employees_avec_pho?= =?iso-8859-1?q?to_champ_blob?= In-Reply-To: <4C13596F.2020100@...1000...> References: , , , , , , <201006111637.25683.gambas@...1...>, , , , <4C13596F.2020100@...1000...> Message-ID: Re : Ca marche pas car il veut un champ picture ? la place d'un champ blob Photo est de type blob, ?a pas l'air facile D?sol? > Date: Sat, 12 Jun 2010 17:54:55 +0800 > From: wdahn at ...1000... > To: gambas-user at lists.sourceforge.net > Subject: Re: [Gambas-user] base de donn?es employees avec photo champ blob > > On 12/06/10 17:44, Henri Girard wrote: > > Salut, > > > > J'ai un formulaire employ?s qui affichent les champs, mais je ne sais pas comment afficher le champ photo dans une picturebox ? > > c'est la base northwind en sqlite3 > > J'ai essay? Picturebox3.Picturebox = rs!Photo mais ?a passe pas ? > > Merci d'avance > > Henri > > > Salut Henri, > > try > > Picturebox3.Picture = rs!Photo > > ?a marche! > > Werner > > > ------------------------------------------------------------------------------ > ThinkGeek and WIRED's GeekDad team up for the Ultimate > GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the > lucky parental unit. See the prize list and enter to win: > http://p.sf.net/sfu/thinkgeek-promo > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user _________________________________________________________________ Installez gratuitement les nouvelles Emoch'ticones ! http://www.ilovemessenger.fr/emoticones/telecharger-emoticones-emochticones.aspx From wdahn at ...1000... Sat Jun 12 15:15:48 2010 From: wdahn at ...1000... (Werner) Date: Sat, 12 Jun 2010 21:15:48 +0800 Subject: [Gambas-user] =?iso-8859-1?q?base_de_donn=E9es_employees_avec_pho?= =?iso-8859-1?q?to_champ_blob?= In-Reply-To: References: , , , , , , <201006111637.25683.gambas@...1...>, , , , <4C13596F.2020100@...1000...> Message-ID: <4C138884.5020801@...1000...> On 12/06/10 20:08, Henri Girard wrote: > Re : > Ca marche pas car il veut un champ picture ? la place d'un champ blob > Photo est de type blob, ?a pas l'air facile > D?sol? > > > >> Date: Sat, 12 Jun 2010 17:54:55 +0800 >> From: wdahn at ...1000... >> To: gambas-user at lists.sourceforge.net >> Subject: Re: [Gambas-user] base de donn?es employees avec photo champ blob >> >> On 12/06/10 17:44, Henri Girard wrote: >> >>> Salut, >>> >>> J'ai un formulaire employ?s qui affichent les champs, mais je ne sais pas comment afficher le champ photo dans une picturebox ? >>> c'est la base northwind en sqlite3 >>> J'ai essay? Picturebox3.Picturebox = rs!Photo mais ?a passe pas ? >>> Merci d'avance >>> Henri >>> >>> >> Salut Henri, >> >> try >> >> Picturebox3.Picture = rs!Photo >> >> ?a marche! >> >> Werner >> Google has quite a few hits on "gambas blob". Among other, I found this: http://gambasdoc.org/help/comp/gb.db/blob?v3 Hope it helps. Regards Werner From mohareve at ...626... Sat Jun 12 22:46:14 2010 From: mohareve at ...626... (M. Cs.) Date: Sat, 12 Jun 2010 22:46:14 +0200 Subject: [Gambas-user] =?iso-8859-1?q?base_de_donn=E9es_employees_avec_pho?= =?iso-8859-1?q?to_champ_blob?= In-Reply-To: <4C138884.5020801@...1000...> References: <201006111637.25683.gambas@...1...> <4C13596F.2020100@...1000...> <4C138884.5020801@...1000...> Message-ID: Working with blobs isn't a fun: 1. You'll have to excerp the data of the blob: I think Image.Data=yourresult!image where Image is a String, 2. To save the data as a picture: File.Save(pathtoimage,Image) 3. To load the picture into a Picture=Picture["pathtoimage "] With a huge number of image it can be terrible slow. From gambas at ...1... Sun Jun 13 13:26:20 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sun, 13 Jun 2010 13:26:20 +0200 Subject: [Gambas-user] Signal 11, when calling external function In-Reply-To: References: <201006111637.25683.gambas@...1...> Message-ID: <201006131326.20587.gambas@...1...> > > Did you compile Gambas with debugging information enabled ? > > Gambas is compiled with following steps: > 1. ./reconf > 2. ./configure -C > 3. make > 4. sudo make install > > Are debugging information enabled by default? > > > Otherwise you will have more useful information by running your program > > inside valgrind. > > OK, I made very simple test project that will reproduce problem I > described. It is as simple as possible and it doesn't do anything useful. > I ran that project with valgrind (memcheck and callgrind). > Ctest is source folder of shared test library (my IDE is Code::Blocks). > ExtrnfBug is Gambas3 project source archive. > > Do you need anything else / can I help more with this issue? > > Jussi What happens if you declare Aja_Mtrx that way? void Aja_Mtrx(int k0[31][], int k1[31][], int k2[31][]) And that way? void Aja_Mtrx(int k0[31][31], int k1[31][31], int k2[31][31]) -- Beno?t Minisini From gambas at ...1... Sun Jun 13 14:12:41 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sun, 13 Jun 2010 14:12:41 +0200 Subject: [Gambas-user] GTK+ bug with transparent label. In-Reply-To: References: <201006062347.17928.gambas@...1...> Message-ID: <201006131412.41865.gambas@...1...> > OK, even better, here is my 5 minute project to measure reaction time. > It should show your reaction time (time between background turns to > white and you releasing button [clicking is more depended on speed of > finger]). > It will work only if you use IDE to set lblTulos.Text = "0" before > running that program. > If lblTulos.Text is leaved to "", it wont work. > > So, just very minor bug. > > Jussi > II have just tested, and it works perfectly there (Mandriva 2010.0). -- Beno?t Minisini From jussi.lahtinen at ...626... Sun Jun 13 15:51:27 2010 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Sun, 13 Jun 2010 16:51:27 +0300 Subject: [Gambas-user] Signal 11, when calling external function In-Reply-To: <201006131326.20587.gambas@...1...> References: <201006111637.25683.gambas@...1...> <201006131326.20587.gambas@...1...> Message-ID: > What happens if you declare Aja_Mtrx that way? > > ? ? ? ?void Aja_Mtrx(int k0[31][], int k1[31][], int k2[31][]) It trows error: "array type has incomplete element type" > And that way? > > ? ? ? ?void Aja_Mtrx(int k0[31][31], int k1[31][31], int k2[31][31]) Same, signal 11. Jussi From gambas at ...1... Sun Jun 13 15:56:31 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sun, 13 Jun 2010 15:56:31 +0200 Subject: [Gambas-user] Signal 11, when calling external function In-Reply-To: References: <201006131326.20587.gambas@...1...> Message-ID: <201006131556.31566.gambas@...1...> > > What happens if you declare Aja_Mtrx that way? > > > > void Aja_Mtrx(int k0[31][], int k1[31][], int k2[31][]) > > It trows error: "array type has incomplete element type" > > > And that way? > > > > void Aja_Mtrx(int k0[31][31], int k1[31][31], int k2[31][31]) > > Same, signal 11. > > Do you have the same valgrind memcheck output? Can you use the last subversion revision? -- Beno?t Minisini From jussi.lahtinen at ...626... Sun Jun 13 16:41:01 2010 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Sun, 13 Jun 2010 17:41:01 +0300 Subject: [Gambas-user] Signal 11, when calling external function In-Reply-To: <201006131556.31566.gambas@...1...> References: <201006131326.20587.gambas@...1...> <201006131556.31566.gambas@...1...> Message-ID: OK, I compiled revision 3003, still signal 11. But different valgrind output (see attachment). Jussi 2010/6/13 Beno?t Minisini : >> > What happens if you declare Aja_Mtrx that way? >> > >> > ? ? ? ?void Aja_Mtrx(int k0[31][], int k1[31][], int k2[31][]) >> >> It trows error: "array type has incomplete element type" >> >> > And that way? >> > >> > ? ? ? ?void Aja_Mtrx(int k0[31][31], int k1[31][31], int k2[31][31]) >> >> Same, signal 11. >> >> > > Do you have the same valgrind memcheck output? Can you use the last subversion > revision? > > -- > Beno?t Minisini > > ------------------------------------------------------------------------------ > ThinkGeek and WIRED's GeekDad team up for the Ultimate > GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the > lucky parental unit. ?See the prize list and enter to win: > http://p.sf.net/sfu/thinkgeek-promo > _______________________________________________ > 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: valgrind_mem_new.log Type: text/x-log Size: 5317 bytes Desc: not available URL: From jussi.lahtinen at ...626... Sun Jun 13 16:41:54 2010 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Sun, 13 Jun 2010 17:41:54 +0300 Subject: [Gambas-user] Signal 11, when calling external function In-Reply-To: References: <201006131326.20587.gambas@...1...> <201006131556.31566.gambas@...1...> Message-ID: Forgot to mention this valgrind output is made with declaration: void Aja_Mtrx(int k0[31][31], int k1[31][31], int k2[31][31]) Jussi On Sun, Jun 13, 2010 at 17:41, Jussi Lahtinen wrote: > OK, I compiled revision 3003, still signal 11. > But different valgrind output (see attachment). > > Jussi > > > 2010/6/13 Beno?t Minisini : >>> > What happens if you declare Aja_Mtrx that way? >>> > >>> > ? ? ? ?void Aja_Mtrx(int k0[31][], int k1[31][], int k2[31][]) >>> >>> It trows error: "array type has incomplete element type" >>> >>> > And that way? >>> > >>> > ? ? ? ?void Aja_Mtrx(int k0[31][31], int k1[31][31], int k2[31][31]) >>> >>> Same, signal 11. >>> >>> >> >> Do you have the same valgrind memcheck output? Can you use the last subversion >> revision? >> >> -- >> Beno?t Minisini >> >> ------------------------------------------------------------------------------ >> ThinkGeek and WIRED's GeekDad team up for the Ultimate >> GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the >> lucky parental unit. ?See the prize list and enter to win: >> http://p.sf.net/sfu/thinkgeek-promo >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > From jussi.lahtinen at ...626... Sun Jun 13 16:45:15 2010 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Sun, 13 Jun 2010 17:45:15 +0300 Subject: [Gambas-user] Signal 11, when calling external function In-Reply-To: References: <201006131326.20587.gambas@...1...> <201006131556.31566.gambas@...1...> Message-ID: ...but declaration: void Aja_Mtrx(int k0[][31], int k1[][31], int k2[][31]) Gives same valgrind output. Jussi On Sun, Jun 13, 2010 at 17:41, Jussi Lahtinen wrote: > Forgot to mention this valgrind output is made with declaration: > void Aja_Mtrx(int k0[31][31], int k1[31][31], int k2[31][31]) > > Jussi > > > On Sun, Jun 13, 2010 at 17:41, Jussi Lahtinen wrote: >> OK, I compiled revision 3003, still signal 11. >> But different valgrind output (see attachment). >> >> Jussi >> >> >> 2010/6/13 Beno?t Minisini : >>>> > What happens if you declare Aja_Mtrx that way? >>>> > >>>> > ? ? ? ?void Aja_Mtrx(int k0[31][], int k1[31][], int k2[31][]) >>>> >>>> It trows error: "array type has incomplete element type" >>>> >>>> > And that way? >>>> > >>>> > ? ? ? ?void Aja_Mtrx(int k0[31][31], int k1[31][31], int k2[31][31]) >>>> >>>> Same, signal 11. >>>> >>>> >>> >>> Do you have the same valgrind memcheck output? Can you use the last subversion >>> revision? >>> >>> -- >>> Beno?t Minisini >>> >>> ------------------------------------------------------------------------------ >>> ThinkGeek and WIRED's GeekDad team up for the Ultimate >>> GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the >>> lucky parental unit. ?See the prize list and enter to win: >>> http://p.sf.net/sfu/thinkgeek-promo >>> _______________________________________________ >>> Gambas-user mailing list >>> Gambas-user at lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>> >> > From gambas at ...1... Sun Jun 13 17:00:49 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sun, 13 Jun 2010 17:00:49 +0200 Subject: [Gambas-user] Signal 11, when calling external function In-Reply-To: References: Message-ID: <201006131700.49837.gambas@...1...> > ...but declaration: > void Aja_Mtrx(int k0[][31], int k1[][31], int k2[][31]) > > Gives same valgrind output. > > Jussi > OK, the bug should be fixed in revision #3004! Regards, -- Beno?t Minisini From jussi.lahtinen at ...626... Sun Jun 13 17:40:45 2010 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Sun, 13 Jun 2010 18:40:45 +0300 Subject: [Gambas-user] Signal 11, when calling external function In-Reply-To: <201006131700.49837.gambas@...1...> References: <201006131700.49837.gambas@...1...> Message-ID: It is working now! Thanks!! Jussi 2010/6/13 Beno?t Minisini : >> ...but declaration: >> void Aja_Mtrx(int k0[][31], int k1[][31], int k2[][31]) >> >> Gives same valgrind output. >> >> Jussi >> > > OK, the bug should be fixed in revision #3004! > > Regards, > > -- > Beno?t Minisini > > ------------------------------------------------------------------------------ > ThinkGeek and WIRED's GeekDad team up for the Ultimate > GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the > lucky parental unit. ?See the prize list and enter to win: > http://p.sf.net/sfu/thinkgeek-promo > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From girardhenri at ...67... Mon Jun 14 09:57:13 2010 From: girardhenri at ...67... (Henri Girard) Date: Mon, 14 Jun 2010 07:57:13 +0000 Subject: [Gambas-user] =?iso-8859-1?q?base_de_donn=E9es_employees_avec_pho?= =?iso-8859-1?q?to_champ_blob?= In-Reply-To: References: , , , <201006111637.25683.gambas@...1...>, , , <4C13596F.2020100@...1000...>, , <4C138884.5020801@...1000...>, Message-ID: Thanks for your answer :) Well it's not fun at all (more I am not an expert !) I try to remake pictureimage example because it's no more working in gb3, but I didn't success... I can't find the database... Few people told me it was heavy, but it's not a problem I have only 9 records. What I want it's to see it working as I am trying to reproduce Northwind database. In Sqliteman blob are displayed as image, so I am sure my database does work at least ! lol There are strange things happening in gambas3 (i know it's still early stage) When I connect to a database in the new database connection manager, tables which are working in gambas can't display : error having string wanting integer or thing like that ? I am trying your suggestion thanks > Date: Sat, 12 Jun 2010 22:46:14 +0200 > From: mohareve at ...626... > To: gambas-user at lists.sourceforge.net > Subject: Re: [Gambas-user] base de donn?es employees avec photo champ blob > > Working with blobs isn't a fun: > 1. You'll have to excerp the data of the blob: I think > Image.Data=yourresult!image > where Image is a String, > 2. To save the data as a picture: File.Save(pathtoimage,Image) > 3. To load the picture into a Picture=Picture["pathtoimage "] > With a huge number of image it can be terrible slow. > ------------------------------------------------------------------------------ > ThinkGeek and WIRED's GeekDad team up for the Ultimate > GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the > lucky parental unit. See the prize list and enter to win: > http://p.sf.net/sfu/thinkgeek-promo > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user _________________________________________________________________ Installez gratuitement les nouvelles Emoch'ticones ! http://www.ilovemessenger.fr/emoticones/telecharger-emoticones-emochticones.aspx From girardhenri at ...67... Mon Jun 14 11:21:43 2010 From: girardhenri at ...67... (Henri Girard) Date: Mon, 14 Jun 2010 09:21:43 +0000 Subject: [Gambas-user] =?iso-8859-1?q?FW=3A_=09base_de_donn=E9es_employees?= =?iso-8859-1?q?_avec_photo_champ_blob?= In-Reply-To: References: , , , <201006111637.25683.gambas@...1...>, , , <4C13596F.2020100@...1000...>, , <4C138884.5020801@...1000...>, Message-ID: Further analysis show me that if i fill the picturedatabase in gambas2 I can read it in gambas3 : But I can't make any change from it ! If I make a connection with the new connection wizard the database open but none of the table with blob ? Is it a bug ? I have this error message : Add database record error/error : too many arguments ? Any ideas ? Maybe Timothy knows ? From: girardhenri at ...67... To: gambas-user at lists.sourceforge.net Subject: RE: [Gambas-user] base de donn?es employees avec photo champ blob Date: Mon, 14 Jun 2010 07:57:13 +0000 Thanks for your answer :) Well it's not fun at all (more I am not an expert !) I try to remake pictureimage example because it's no more working in gb3, but I didn't success... I can't find the database... Few people told me it was heavy, but it's not a problem I have only 9 records. What I want it's to see it working as I am trying to reproduce Northwind database. In Sqliteman blob are displayed as image, so I am sure my database does work at least ! lol There are strange things happening in gambas3 (i know it's still early stage) When I connect to a database in the new database connection manager, tables which are working in gambas can't display : error having string wanting integer or thing like that ? I am trying your suggestion thanks > Date: Sat, 12 Jun 2010 22:46:14 +0200 > From: mohareve at ...626... > To: gambas-user at lists.sourceforge.net > Subject: Re: [Gambas-user] base de donn?es employees avec photo champ blob > > Working with blobs isn't a fun: > 1. You'll have to excerp the data of the blob: I think > Image.Data=yourresult!image > where Image is a String, > 2. To save the data as a picture: File.Save(pathtoimage,Image) > 3. To load the picture into a Picture=Picture["pathtoimage "] > With a huge number of image it can be terrible slow. > ------------------------------------------------------------------------------ > ThinkGeek and WIRED's GeekDad team up for the Ultimate > GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the > lucky parental unit. See the prize list and enter to win: > http://p.sf.net/sfu/thinkgeek-promo > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user Vous voulez prot?ger votre vie priv?e ? La solution avec Internet Explorer 8 _________________________________________________________________ Vous voulez regarder la TV directement depuis votre PC ? C'est tr?s simple avec Windows 7 http://clk.atdmt.com/FRM/go/229960614/direct/01/ From girardhenri at ...67... Mon Jun 14 11:33:49 2010 From: girardhenri at ...67... (Henri Girard) Date: Mon, 14 Jun 2010 09:33:49 +0000 Subject: [Gambas-user] =?iso-8859-1?q?base_de_donn=E9es_employees_avec_pho?= =?iso-8859-1?q?to_champ_blob?= In-Reply-To: References: , , , <201006111637.25683.gambas@...1...>, , , <4C13596F.2020100@...1000...>, , <4C138884.5020801@...1000...>, Message-ID: Sorry I answer to myself : I reopen picturedatabase and now the connection display table pictures, before it didn't but I still can't record or delete From: girardhenri at ...67... To: gambas-user at lists.sourceforge.net Subject: FW: [Gambas-user] base de donn?es employees avec photo champ blob Date: Mon, 14 Jun 2010 09:21:43 +0000 Further analysis show me that if i fill the picturedatabase in gambas2 I can read it in gambas3 : But I can't make any change from it ! If I make a connection with the new connection wizard the database open but none of the table with blob ? Is it a bug ? I have this error message : Add database record error/error : too many arguments ? Any ideas ? Maybe Timothy knows ? From: girardhenri at ...67... To: gambas-user at lists.sourceforge.net Subject: RE: [Gambas-user] base de donn?es employees avec photo champ blob Date: Mon, 14 Jun 2010 07:57:13 +0000 Thanks for your answer :) Well it's not fun at all (more I am not an expert !) I try to remake pictureimage example because it's no more working in gb3, but I didn't success... I can't find the database... Few people told me it was heavy, but it's not a problem I have only 9 records. What I want it's to see it working as I am trying to reproduce Northwind database. In Sqliteman blob are displayed as image, so I am sure my database does work at least ! lol There are strange things happening in gambas3 (i know it's still early stage) When I connect to a database in the new database connection manager, tables which are working in gambas can't display : error having string wanting integer or thing like that ? I am trying your suggestion thanks > Date: Sat, 12 Jun 2010 22:46:14 +0200 > From: mohareve at ...626... > To: gambas-user at lists.sourceforge.net > Subject: Re: [Gambas-user] base de donn?es employees avec photo champ blob > > Working with blobs isn't a fun: > 1. You'll have to excerp the data of the blob: I think > Image.Data=yourresult!image > where Image is a String, > 2. To save the data as a picture: File.Save(pathtoimage,Image) > 3. To load the picture into a Picture=Picture["pathtoimage "] > With a huge number of image it can be terrible slow. > ------------------------------------------------------------------------------ > ThinkGeek and WIRED's GeekDad team up for the Ultimate > GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the > lucky parental unit. See the prize list and enter to win: > http://p.sf.net/sfu/thinkgeek-promo > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user Vous voulez prot?ger votre vie priv?e ? La solution avec Internet Explorer 8 Envie de plus d'originalit? dans vos conversations ? T?l?chargez gratuitement les Emoch'ticones ! _________________________________________________________________ La bo?te mail NOW G?n?ration vous permet de r?unir toutes vos bo?tes mail dans Hotmail ! http://www.windowslive.fr/hotmail/nowgeneration/ From gambas at ...1... Mon Jun 14 18:19:09 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Mon, 14 Jun 2010 18:19:09 +0200 Subject: [Gambas-user] =?utf-8?q?base_de_donn=C3=A9es_employees_avec_photo?= =?utf-8?q?_champ_blob?= In-Reply-To: References: Message-ID: <201006141819.09764.gambas@...1...> > Thanks for your answer :) > Well it's not fun at all (more I am not an expert !) > I try to remake pictureimage example because it's no more working in gb3, > but I didn't success... I can't find the database... Few people told me it > was heavy, but it's not a problem I have only 9 records. What I want it's > to see it working as I am trying to reproduce Northwind database. In > Sqliteman blob are displayed as image, so I am sure my database does work > at least ! lol There are strange things happening in gambas3 (i know it's > still early stage) When I connect to a database in the new database > connection manager, tables which are working in gambas can't display : > error having string wanting integer or thing like that ? I am trying your > suggestion thanks > Can you send me your sqlite database? If it is too big, try to remove some records from it before sending it. Thanks in advance. Regards, -- Beno?t Minisini From rterry at ...1946... Tue Jun 15 00:39:39 2010 From: rterry at ...1946... (richard terry) Date: Tue, 15 Jun 2010 08:39:39 +1000 Subject: [Gambas-user] Docs for TextEdit Message-ID: <201006150839.39747.rterry@...1946...> Does anyone have/know where to find these: gb.qt4.ext This component implements a few more Graphical User Interface classes. It is based on the QT 4 library. Classes ./dial Editor Highlight ./lcdnumber ./textedit Specifically is there anyway of knowing the x/y pos of the cursor relative to the controls x/y. Regards Richard From jussi.lahtinen at ...626... Thu Jun 17 18:40:03 2010 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Thu, 17 Jun 2010 19:40:03 +0300 Subject: [Gambas-user] Gambas3 search window Message-ID: Hi! There is minor bug when using replace feature. If you click next button, you will see matching word highlighted. Then if you click replace, highlighted word doesn't change, but next matching word will. I think that bug is on FSearch.class in sub Run. DO_REPLACE should be handled before GO_anything. Jussi From jussi.lahtinen at ...626... Thu Jun 17 18:41:03 2010 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Thu, 17 Jun 2010 19:41:03 +0300 Subject: [Gambas-user] GTK+ bug with transparent label. In-Reply-To: <201006131412.41865.gambas@...1...> References: <201006062347.17928.gambas@...1...> <201006131412.41865.gambas@...1...> Message-ID: OK, anyone else? Please test this if it work on your system. Maybe the problem is in my box. Jussi 2010/6/13 Beno?t Minisini : >> OK, even better, here is my 5 minute project to measure reaction time. >> It should show your reaction time (time between background turns to >> white and you releasing button [clicking is more depended on speed of >> finger]). >> It will work only if you use IDE to set lblTulos.Text = "0" before >> running that program. >> If lblTulos.Text is leaved to "", it wont work. >> >> So, just very minor bug. >> >> Jussi >> > > II have just tested, and it works perfectly there (Mandriva 2010.0). > > -- > Beno?t Minisini > > ------------------------------------------------------------------------------ > ThinkGeek and WIRED's GeekDad team up for the Ultimate > GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the > lucky parental unit. ?See the prize list and enter to win: > http://p.sf.net/sfu/thinkgeek-promo > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From oceanosoftlapalma at ...626... Thu Jun 17 22:24:02 2010 From: oceanosoftlapalma at ...626... (=?ISO-8859-1?Q?Ricardo_D=EDaz_Mart=EDn?=) Date: Thu, 17 Jun 2010 22:24:02 +0200 Subject: [Gambas-user] GTK+ bug with transparent label. In-Reply-To: References: <201006062347.17928.gambas@...1...> <201006131412.41865.gambas@...1...> Message-ID: Works fine on ubuntu 10.04 86_x64 2010/6/17 Jussi Lahtinen > OK, anyone else? Please test this if it work on your system. > Maybe the problem is in my box. > > Jussi > > > 2010/6/13 Beno?t Minisini : > >> OK, even better, here is my 5 minute project to measure reaction time. > >> It should show your reaction time (time between background turns to > >> white and you releasing button [clicking is more depended on speed of > >> finger]). > >> It will work only if you use IDE to set lblTulos.Text = "0" before > >> running that program. > >> If lblTulos.Text is leaved to "", it wont work. > >> > >> So, just very minor bug. > >> > >> Jussi > >> > > > > II have just tested, and it works perfectly there (Mandriva 2010.0). > > > > -- > > Beno?t Minisini > > > > > ------------------------------------------------------------------------------ > > ThinkGeek and WIRED's GeekDad team up for the Ultimate > > GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the > > lucky parental unit. See the prize list and enter to win: > > http://p.sf.net/sfu/thinkgeek-promo > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > ------------------------------------------------------------------------------ > ThinkGeek and WIRED's GeekDad team up for the Ultimate > GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the > lucky parental unit. See the prize list and enter to win: > http://p.sf.net/sfu/thinkgeek-promo > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From jussi.lahtinen at ...626... Fri Jun 18 17:39:45 2010 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Fri, 18 Jun 2010 18:39:45 +0300 Subject: [Gambas-user] GTK+ bug with transparent label. In-Reply-To: References: <201006062347.17928.gambas@...1...> <201006131412.41865.gambas@...1...> Message-ID: Weird problem! I installed Ubuntu 10.04 64bit to virtualbox, and same thing, it does not work! I even tried different themes, but same thing. I can't even figure out what to test anymore... video card? Jussi 2010/6/17 Ricardo D?az Mart?n : > Works fine on ubuntu 10.04 86_x64 > > > 2010/6/17 Jussi Lahtinen > >> OK, anyone else? Please test this if it work on your system. >> Maybe the problem is in my box. >> >> Jussi >> >> >> 2010/6/13 Beno?t Minisini : >> >> OK, even better, here is my 5 minute project to measure reaction time. >> >> It should show your reaction time (time between background turns to >> >> white and you releasing button [clicking is more depended on speed of >> >> finger]). >> >> It will work only if you use IDE to set lblTulos.Text = "0" before >> >> running that program. >> >> If lblTulos.Text is leaved to "", it wont work. >> >> >> >> So, just very minor bug. >> >> >> >> Jussi >> >> >> > >> > II have just tested, and it works perfectly there (Mandriva 2010.0). >> > >> > -- >> > Beno?t Minisini >> > >> > >> ------------------------------------------------------------------------------ >> > ThinkGeek and WIRED's GeekDad team up for the Ultimate >> > GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the >> > lucky parental unit. ?See the prize list and enter to win: >> > http://p.sf.net/sfu/thinkgeek-promo >> > _______________________________________________ >> > Gambas-user mailing list >> > Gambas-user at lists.sourceforge.net >> > https://lists.sourceforge.net/lists/listinfo/gambas-user >> > >> >> >> ------------------------------------------------------------------------------ >> ThinkGeek and WIRED's GeekDad team up for the Ultimate >> GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the >> lucky parental unit. ?See the prize list and enter to win: >> http://p.sf.net/sfu/thinkgeek-promo >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > ------------------------------------------------------------------------------ > ThinkGeek and WIRED's GeekDad team up for the Ultimate > GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the > lucky parental unit. ?See the prize list and enter to win: > http://p.sf.net/sfu/thinkgeek-promo > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From dr_infoblock at ...67... Fri Jun 18 18:28:09 2010 From: dr_infoblock at ...67... (Information Block) Date: Fri, 18 Jun 2010 16:28:09 +0000 Subject: [Gambas-user] Gambas3 dont compile on Slackware 13.1 Message-ID: someone know why? _________________________________________________________________ ACESSE O MESSENGER DO SEU CELULAR AGORA MESMO. CLIQUE E VEJA AQUI UM PASSO A PASSO. http://celular.windowslive.com.br/messenger.asp?produto=Messenger&utm_source=Live_Hotmail&utm_medium=Tagline&utm_content=ACESSEOMES83&utm_campaign=MobileServices From wdahn at ...1000... Fri Jun 18 18:34:43 2010 From: wdahn at ...1000... (Werner) Date: Sat, 19 Jun 2010 00:34:43 +0800 Subject: [Gambas-user] Gambas3 dont compile on Slackware 13.1 In-Reply-To: References: Message-ID: <4C1BA023.6080301@...1000...> On 19/06/10 00:28, Information Block wrote: > someone know why? > It would be nice if you could provide some details as to what went wrong where. Thanks. From lordheavym at ...626... Fri Jun 18 18:39:03 2010 From: lordheavym at ...626... (Laurent Carlier) Date: Fri, 18 Jun 2010 18:39:03 +0200 Subject: [Gambas-user] Gambas3 dont compile on Slackware 13.1 In-Reply-To: References: Message-ID: <201006181839.03517.lordheavym@...626...> Le vendredi 18 juin 2010 18:28:09, Information Block a ?crit : > someone know why? > > _________________________________________________________________ > ACESSE O MESSENGER DO SEU CELULAR AGORA MESMO. CLIQUE E VEJA AQUI UM PASSO > A PASSO. > http://celular.windowslive.com.br/messenger.asp?produto=Messenger&utm_sour > ce=Live_Hotmail&utm_medium=Tagline&utm_content=ACESSEOMES83&utm_campaign=Mo > bileServices > -------------------------------------------------------------------------- > ---- ThinkGeek and WIRED's GeekDad team up for the Ultimate > GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the > lucky parental unit. See the prize list and enter to win: > http://p.sf.net/sfu/thinkgeek-promo > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user Did you get an output log ? See http://gambasdoc.org/help/readme (Troubleshooting) From dr_infoblock at ...67... Fri Jun 18 18:51:29 2010 From: dr_infoblock at ...67... (Information Block) Date: Fri, 18 Jun 2010 16:51:29 +0000 Subject: [Gambas-user] Gambas on Slackware Message-ID: I tried to compile it on Slackware 13.1 (x86_64), with multilib and compat32 installed dont work... then I tried in 32bits version of Slackware 13.1 dont work... In Slamd64 (lastest), Gambas2 can compile, then I used the compiled from Slamd64 and installed on Slackware 13.1 (x86_64) but Gambas3 dont work with this trick, I will try to compile it again now, I send the output log... thanks for fast answer _________________________________________________________________ QUER FICAR SEMPRE EM CONTATO COM SEUS AMIGOS? ACESSE O MESSENGER PELO SEU CELULAR. http://celular.windowslive.com.br/messenger.asp?produto=Messenger&utm_source=Live_Hotmail&utm_medium=Tagline&utm_content=QUERFICARS82&utm_campaign=MobileServices From dr_infoblock at ...67... Fri Jun 18 19:01:04 2010 From: dr_infoblock at ...67... (Information Block) Date: Fri, 18 Jun 2010 17:01:04 +0000 Subject: [Gambas-user] Gambas3 on Slackware 13.1 Message-ID: (x86_64) version with multilib, compat32, and some packages from Slamd64: ======================================================================== /usr/lib64/gcc/x86_64-slackware-linux/4.4.4/../../../../x86_64-slackware-linux/bin/ld: cannot find -lmikmod collect2: ld returned 1 exit status make[4]: ** [gb.sdl.sound.la] Erro 1 make[4]: Saindo do diret?rio `/home/slacku/temp/gambas3/trunk/gb.sdl.sound/src' make[3]: ** [all-recursive] Erro 1 make[3]: Saindo do diret?rio `/home/slacku/temp/gambas3/trunk/gb.sdl.sound' make[2]: ** [all] Erro 2 make[2]: Saindo do diret?rio `/home/slacku/temp/gambas3/trunk/gb.sdl.sound' make[1]: ** [all-recursive] Erro 1 make[1]: Saindo do diret?rio `/home/slacku/temp/gambas3/trunk' make: ** [all] Erro 2 ======================================================================== _________________________________________________________________ ACESSE O MESSENGER DO SEU CELULAR AGORA MESMO. CLIQUE E VEJA AQUI UM PASSO A PASSO. http://celular.windowslive.com.br/messenger.asp?produto=Messenger&utm_source=Live_Hotmail&utm_medium=Tagline&utm_content=ACESSEOMES83&utm_campaign=MobileServices From dr_infoblock at ...67... Fri Jun 18 19:43:21 2010 From: dr_infoblock at ...67... (Information Block) Date: Fri, 18 Jun 2010 17:43:21 +0000 Subject: [Gambas-user] Gambas3 log from Slack32 and Slamd64 Message-ID: slack32: =============================================== .libs/SDLosrender.o: could not read symbols: File in wrong format collect2: ld returned 1 exit status make[4]: *** [gb.sdl.la] Error 1 make[3]: *** [all-recursive] Error 1 make[2]: *** [all] Error 2 make[1]: *** [all-recursive] Error 1 make: *** [all] Error 2 =============================================== slamd64: =============================================== cpaint_impl.cpp: In function 'void draw_text(GB_PAINT*, bool, const char*, int, float, float, int)': cpaint_impl.cpp:621: warning: dereferencing type-punned pointer will break stric t-aliasing rules cpaint_impl.cpp: In function 'void get_text_extents(GB_PAINT*, bool, const char* , int, GB_EXTENTS*)': cpaint_impl.cpp:661: warning: dereferencing type-punned pointer will break stric t-aliasing rules make[5]: *** [cpaint_impl.lo] Error 1 make[4]: *** [all-recursive] Error 1 make[3]: *** [all-recursive] Error 1 make[2]: *** [all] Error 2 make[1]: *** [all-recursive] Error 1 make: *** [all] Error 2 =============================================== _________________________________________________________________ ACESSE O MESSENGER DO SEU CELULAR AGORA MESMO. CLIQUE E VEJA AQUI UM PASSO A PASSO. http://celular.windowslive.com.br/messenger.asp?produto=Messenger&utm_source=Live_Hotmail&utm_medium=Tagline&utm_content=ACESSEOMES83&utm_campaign=MobileServices From gambas at ...1... Fri Jun 18 23:46:15 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Fri, 18 Jun 2010 23:46:15 +0200 Subject: [Gambas-user] Gambas3 log from Slack32 and Slamd64 In-Reply-To: References: Message-ID: <201006182346.15701.gambas@...1...> > slack32: > =============================================== > .libs/SDLosrender.o: could not read symbols: File in wrong format > collect2: ld returned 1 exit status > make[4]: *** [gb.sdl.la] Error 1 > make[3]: *** [all-recursive] Error 1 > make[2]: *** [all] Error 2 > make[1]: *** [all-recursive] Error 1 > make: *** [all] Error 2 > =============================================== > > slamd64: > =============================================== > > cpaint_impl.cpp: In function 'void draw_text(GB_PAINT*, bool, const char*, > int, float, float, int)': > cpaint_impl.cpp:621: warning: dereferencing type-punned pointer will break > stric t-aliasing rules > cpaint_impl.cpp: In function 'void get_text_extents(GB_PAINT*, bool, const > char* , int, GB_EXTENTS*)': > cpaint_impl.cpp:661: warning: dereferencing type-punned pointer will break > stric t-aliasing rules > make[5]: *** [cpaint_impl.lo] Error 1 > make[4]: *** [all-recursive] Error 1 > make[3]: *** [all-recursive] Error 1 > make[2]: *** [all] Error 2 > make[1]: *** [all-recursive] Error 1 > make: *** [all] Error 2 > =============================================== > Please send the full output of './configure', 'make' and (if the previous commands succeeded) 'make install'. Otherwise that is useless! Regards, -- Beno?t Minisini From dr_infoblock at ...67... Sat Jun 19 00:18:04 2010 From: dr_infoblock at ...67... (Information Block) Date: Fri, 18 Jun 2010 22:18:04 +0000 Subject: [Gambas-user] Log files (Gambas3 on Slackware 13.1 x86_64) Message-ID: attached... If someone can help me... _________________________________________________________________ QUER FICAR SEMPRE EM CONTATO COM SEUS AMIGOS? ACESSE O MESSENGER PELO SEU CELULAR. http://celular.windowslive.com.br/messenger.asp?produto=Messenger&utm_source=Live_Hotmail&utm_medium=Tagline&utm_content=QUERFICARS82&utm_campaign=MobileServices -------------- next part -------------- A non-text attachment was scrubbed... Name: config.log Type: application/octet-stream Size: 12979 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: slack64make.log Type: application/octet-stream Size: 173210 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: stdout.log Type: application/octet-stream Size: 1119 bytes Desc: not available URL: From gambas at ...1... Sat Jun 19 00:34:02 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sat, 19 Jun 2010 00:34:02 +0200 Subject: [Gambas-user] Log files (Gambas3 on Slackware 13.1 x86_64) In-Reply-To: References: Message-ID: <201006190034.02776.gambas@...1...> > attached... > > If someone can help me... > > _________________________________________________________________ > QUER FICAR SEMPRE EM CONTATO COM SEUS AMIGOS? ACESSE O MESSENGER PELO SEU > CELULAR. > http://celular.windowslive.com.br/messenger.asp?produto=Messenger&utm_sour > ce=Live_Hotmail&utm_medium=Tagline&utm_content=QUERFICARS82&utm_campaign=Mo > bileServices The library named "libmikmod" is missing, but it should have been installed with the 'SDL_mixer' development packages, because the file 'libSDL_mixer.la' apparently references it (open it with a text editor to check that) I think this is a bug in the slackware dependencies: if the 'SDL_mixer' library needs the 'mikmod' library, then installing the first should install the second. So, install the development package of the mikmod library, and try again! Regards, -- Beno?t Minisini From gambas at ...1... Sat Jun 19 00:51:31 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sat, 19 Jun 2010 00:51:31 +0200 Subject: [Gambas-user] Gambas3 search window In-Reply-To: References: Message-ID: <201006190051.31575.gambas@...1...> > Hi! > There is minor bug when using replace feature. > If you click next button, you will see matching word highlighted. > Then if you click replace, highlighted word doesn't change, but next > matching word will. > > I think that bug is on FSearch.class in sub Run. > DO_REPLACE should be handled before GO_anything. > > Jussi > Is it better with revision #3015? -- Beno?t Minisini From dr_infoblock at ...67... Sat Jun 19 01:06:48 2010 From: dr_infoblock at ...67... (Information Block) Date: Fri, 18 Jun 2010 23:06:48 +0000 Subject: [Gambas-user] Thanks a lot, worked Message-ID: I just compiled and installed libmikmod, then tried to compiled Gambas3 Works now I can finally migrate from M$-VB to Gambas! thanks a lot Beno?t Minisini Mauro Lagoa Gouvea .....from Brazil _________________________________________________________________ QUER FICAR SEMPRE EM CONTATO COM SEUS AMIGOS? ACESSE O MESSENGER PELO SEU CELULAR. http://celular.windowslive.com.br/messenger.asp?produto=Messenger&utm_source=Live_Hotmail&utm_medium=Tagline&utm_content=QUERFICARS82&utm_campaign=MobileServices From jussi.lahtinen at ...626... Sat Jun 19 18:45:49 2010 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Sat, 19 Jun 2010 19:45:49 +0300 Subject: [Gambas-user] Gambas3 search window In-Reply-To: <201006190051.31575.gambas@...1...> References: <201006190051.31575.gambas@...1...> Message-ID: Yes, it works now! Jussi 2010/6/19 Beno?t Minisini : >> Hi! >> There is minor bug when using replace feature. >> If you click next button, you will see matching word highlighted. >> Then if you click replace, highlighted word doesn't change, but next >> matching word will. >> >> I think that bug is on FSearch.class in sub Run. >> DO_REPLACE should be handled before GO_anything. >> >> Jussi >> > > Is it better with revision #3015? > > -- > Beno?t Minisini > > ------------------------------------------------------------------------------ > ThinkGeek and WIRED's GeekDad team up for the Ultimate > GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the > lucky parental unit. ?See the prize list and enter to win: > http://p.sf.net/sfu/thinkgeek-promo > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From jussi.lahtinen at ...626... Sat Jun 19 18:56:19 2010 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Sat, 19 Jun 2010 19:56:19 +0300 Subject: [Gambas-user] Bug with external libraries Message-ID: Hi! Here is the problem: Declaration in C: void Lib_initr(void) (I also tested void Lib_initr() with same result) In Gambas: Public Extern Lib_initr() In "libMlpp" And this raises error: Lib_initr() Type mismatch: Wanted Void, got Integer instead Ubuntu 10.04 64bit, Gambas3 revision 3016 Jussi From vuott at ...325... Sat Jun 19 19:21:07 2010 From: vuott at ...325... (Ru Vuott) Date: Sat, 19 Jun 2010 10:21:07 -0700 (PDT) Subject: [Gambas-user] Printing a character in a Form Message-ID: <559918.76700.qm@...2447...> Hello, how do I can print a simple character (ex. letter: "a") in a Form at x , y position ? The character have not to be shown in a Label or in other text-Tools. Thanks From gambas.fr at ...626... Sat Jun 19 19:53:04 2010 From: gambas.fr at ...626... (Fabien Bodard) Date: Sat, 19 Jun 2010 19:53:04 +0200 Subject: [Gambas-user] Printing a character in a Form In-Reply-To: <559918.76700.qm@...2447...> References: <559918.76700.qm@...2447...> Message-ID: draw.begin(MyForm) draw.text("mytext",x,y) draw.end 2010/6/19 Ru Vuott : > Hello, > > how do I can print a simple character (ex. letter: "a") in a Form at ?x , y position ? > The character have not to be shown in a Label or in other text-Tools. > > Thanks > > > > > ------------------------------------------------------------------------------ > ThinkGeek and WIRED's GeekDad team up for the Ultimate > GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the > lucky parental unit. ?See the prize list and enter to win: > http://p.sf.net/sfu/thinkgeek-promo > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Sat Jun 19 20:49:15 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sat, 19 Jun 2010 20:49:15 +0200 Subject: [Gambas-user] Printing a character in a Form In-Reply-To: References: <559918.76700.qm@...2447...> Message-ID: <201006192049.16095.gambas@...1...> > draw.begin(MyForm) > > draw.text("mytext",x,y) > > > draw.end > This works only in Gambas 2. You can't draw directly on a control anymore in Gambas 3, except during the Draw event of a DrawingArea. Regards, -- Beno?t Minisini From gambas at ...1... Sat Jun 19 20:54:26 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sat, 19 Jun 2010 20:54:26 +0200 Subject: [Gambas-user] Bug with external libraries In-Reply-To: References: Message-ID: <201006192054.26588.gambas@...1...> > Hi! > Here is the problem: > > Declaration in C: > void Lib_initr(void) > (I also tested void Lib_initr() with same result) > > In Gambas: > Public Extern Lib_initr() In "libMlpp" > > And this raises error: > Lib_initr() > Type mismatch: Wanted Void, got Integer instead > > Ubuntu 10.04 64bit, Gambas3 revision 3016 > > > Jussi > Can you make a little project for me, with a library, that shows the error? Thanks in advance! Regards, -- Beno?t Minisini From gambas.fr at ...626... Sat Jun 19 23:30:16 2010 From: gambas.fr at ...626... (Fabien Bodard) Date: Sat, 19 Jun 2010 23:30:16 +0200 Subject: [Gambas-user] Printing a character in a Form In-Reply-To: <201006192049.16095.gambas@...1...> References: <559918.76700.qm@...2447...> <201006192049.16095.gambas@...1...> Message-ID: the doc is not up to date Le 19 juin 2010 20:49, Beno?t Minisini a ?crit : >> draw.begin(MyForm) >> >> draw.text("mytext",x,y) >> >> >> draw.end >> > > This works only in Gambas 2. You can't draw directly on a control anymore in > Gambas 3, except during the Draw event of a DrawingArea. > > Regards, > > -- > Beno?t Minisini > > ------------------------------------------------------------------------------ > ThinkGeek and WIRED's GeekDad team up for the Ultimate > GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the > lucky parental unit. ?See the prize list and enter to win: > http://p.sf.net/sfu/thinkgeek-promo > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas.fr at ...626... Sat Jun 19 23:32:00 2010 From: gambas.fr at ...626... (Fabien Bodard) Date: Sat, 19 Jun 2010 23:32:00 +0200 Subject: [Gambas-user] Printing a character in a Form In-Reply-To: References: <559918.76700.qm@...2447...> <201006192049.16095.gambas@...1...> Message-ID: 2010/6/19 Fabien Bodard : > the doc is not up to date > > > Le 19 juin 2010 20:49, Beno?t Minisini a ?crit : >>> draw.begin(MyForm) >>> >>> draw.text("mytext",x,y) >>> >>> >>> draw.end >>> >> >> This works only in Gambas 2. You can't draw directly on a control anymore in >> Gambas 3, except during the Draw event of a DrawingArea. >> So as a workaround you put a drawing area as children of the form and then put all the control inside it. >> Regards, >> >> -- >> Beno?t Minisini >> >> ------------------------------------------------------------------------------ >> ThinkGeek and WIRED's GeekDad team up for the Ultimate >> GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the >> lucky parental unit. ?See the prize list and enter to win: >> http://p.sf.net/sfu/thinkgeek-promo >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > From pinozollo at ...626... Sun Jun 20 18:39:48 2010 From: pinozollo at ...626... (Pino Zollo) Date: Sun, 20 Jun 2010 12:39:48 -0400 Subject: [Gambas-user] Stack overflow Message-ID: <201006201239.49408.pinozollo@...626...> GAMBAS 2.20 regularly crashes with [3] Stack Overflow when producing a Mandriva package after having licked on 'Communications' and then 'Other' on the panel 5.Voice of menu. regards Pino -- "In the universe there is no time existing as a physical reality, there is no past, no present and no future" "Time is a mind construction into which one experiences motion" "Time is a flow of irreversible material changes" -Davide Fiscaletti Key ID: 0xF6768208 Key fingerprint = B16D 0A7C 5B29 A334 CE6A 71F6 EAF8 3D88 F676 8208 Key server: hkp://wwwkeys.eu.pgp.net From jussi.lahtinen at ...626... Sun Jun 20 18:54:45 2010 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Sun, 20 Jun 2010 19:54:45 +0300 Subject: [Gambas-user] Bug with external libraries In-Reply-To: <201006192054.26588.gambas@...1...> References: <201006192054.26588.gambas@...1...> Message-ID: To my surprise this bug seems to need specific earlier conditions. I managed to isolate those conditions, see attachments. Jussi 2010/6/19 Beno?t Minisini : >> Hi! >> Here is the problem: >> >> Declaration in C: >> void Lib_initr(void) >> (I also tested void Lib_initr() with same result) >> >> In Gambas: >> Public Extern Lib_initr() In "libMlpp" >> >> And this raises error: >> Lib_initr() >> Type mismatch: Wanted Void, got Integer instead >> >> Ubuntu 10.04 64bit, Gambas3 revision 3016 >> >> >> Jussi >> > > Can you make a little project for me, with a library, that shows the error? > > Thanks in advance! > > Regards, > > -- > Beno?t Minisini > > ------------------------------------------------------------------------------ > ThinkGeek and WIRED's GeekDad team up for the Ultimate > GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the > lucky parental unit. ?See the prize list and enter to win: > http://p.sf.net/sfu/thinkgeek-promo > _______________________________________________ > 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: Ctestlib2.tar.gz Type: application/x-gzip Size: 4212 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: ExtrnfBug-0.0.2.tar.gz Type: application/x-gzip Size: 4932 bytes Desc: not available URL: From admhardsoft at ...253... Mon Jun 21 14:01:28 2010 From: admhardsoft at ...253... (admhardsoft at ...253...) Date: Mon, 21 Jun 2010 12:01:28 +0000 Subject: [Gambas-user] How can I syncronize two listbox or two gridview In-Reply-To: References: <201006192054.26588.gambas@...1...> Message-ID: <7782727-1277121685-cardhu_decombobulator_blackberry.rim.net-1210672112-@...2448...> Hi I wanna show an gridview or listbox one table from a mysql db and in other gridview or listbox all record belong to the principal key from the first gridview or listbox. I means to join two list or gridview dependable one from the other by the principal key. Somebody can help me with that problema for me. Thanks Tomas Sent on the TELUS Mobility network with BlackBerry -----Original Message----- From: Jussi Lahtinen Date: Sun, 20 Jun 2010 19:54:45 To: mailing list for gambas users Reply-To: mailing list for gambas users Subject: Re: [Gambas-user] Bug with external libraries To my surprise this bug seems to need specific earlier conditions. I managed to isolate those conditions, see attachments. Jussi 2010/6/19 Beno?t Minisini : >> Hi! >> Here is the problem: >> >> Declaration in C: >> void Lib_initr(void) >> (I also tested void Lib_initr() with same result) >> >> In Gambas: >> Public Extern Lib_initr() In "libMlpp" >> >> And this raises error: >> Lib_initr() >> Type mismatch: Wanted Void, got Integer instead >> >> Ubuntu 10.04 64bit, Gambas3 revision 3016 >> >> >> Jussi >> > > Can you make a little project for me, with a library, that shows the error? > > Thanks in advance! > > Regards, > > -- > Beno?t Minisini > > ------------------------------------------------------------------------------ > ThinkGeek and WIRED's GeekDad team up for the Ultimate > GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the > lucky parental unit. ?See the prize list and enter to win: > http://p.sf.net/sfu/thinkgeek-promo >_______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From wspinto at ...1405... Mon Jun 21 15:28:16 2010 From: wspinto at ...1405... (Wellington de Souza Pinto) Date: Mon, 21 Jun 2010 10:28:16 -0300 Subject: [Gambas-user] TableView.Edit Method Message-ID: <1277126895.4c1f68f00087f@...1539...> Hi! In TableView Edit method the object call the textbox or combobox control. How use the events for controls. Ex. In tableview.edit() call the textbox (The textbox events (GotFocus, lostfocus, ...)) In Tableview.edit(["a","b",...]) call the combobox control (The combobox events (got, lost, ...)) Any idea??? Reguards, PS.: My english is not very well. --------------------------------------------------------------- |||||/ Wellington de Souza Pinto C o o ] wspinto at ...1405... ^ -x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x- ___________________________________________________________________________________ Para fazer uma liga??o DDD pra perto ou pra longe, faz um 21. A Embratel tem tarifas muito baratas esperando por voc?. Aproveite! From leonardo at ...1237... Mon Jun 21 23:11:48 2010 From: leonardo at ...1237... (Leonardo Miliani) Date: Mon, 21 Jun 2010 23:11:48 +0200 Subject: [Gambas-user] Strange behaviour of LostFocus event Message-ID: <1277154708.4062.8.camel@"hp_host"> A friend of mine has written an application in which he has let the permission at the users to insert a text in the combobox textarea. Then, his code parses the text and, if there are errors, a message box is showed. The problem is that the LostFocus event is executed twice.... In fact, Gambas tries to show another message box, but that is impossible because only 1 modal form can appears on the screen at once. So the program terminates and Gambas visualizes the error "Message box already displayed". This is the portion of code: PUBLIC SUB CodiceVoceContabile_LostFocus() .........bla.....bla.....bla......................................... FOR EACH RecTab IF RecTab!NomeVoce = $_VoceConto THEN i_CoVoMov = RecTab!NumVoce '--Codice di CONTO, corrispondente alla Voce contabile primaria i_UltCtogrup = i_CoVoMov + 999 ENDIF IF i_CoVoMov > 0 THEN IF RecTab!NumVoce <= i_UltCtogrup THEN IF RecTab!NomeVoce = $_VoceSotCto i_CoVoMov = RecTab!NumVoce '-- Codice di SOTTOCONTO, corrispondente alla Voce contabile secondaria $_PartMovSiNo = RecTab!ContrPartSiNo BREAK ENDIF ELSE 'LabFrm2RicPiaCo: Message.Error("Attenzione! -> Record 'NON TROVATO'" & Chr(10) & Chr(10) & "durante la lettura della Tabella ContabFam.db!piancont'" & Chr(10) & Chr(10) & "in Form2.MovDigOk_Click.LabFrm2RicPiaCo" & Chr(10) & Chr(10) & " il programma verr? chiuso") QUIT ENDIF ENDIF NEXT -- Leonardo Miliani www.leonardomiliani.com Webmaster e co-fondatore di www.gambas-it.org Il portale di riferimento per i programmatori Gambas italiani From jussi.lahtinen at ...626... Tue Jun 22 16:07:11 2010 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Tue, 22 Jun 2010 17:07:11 +0300 Subject: [Gambas-user] Strange behaviour of LostFocus event In-Reply-To: <-1720260557724727546@...714...> References: <-1720260557724727546@...714...> Message-ID: Why lostfocus is executed twice..? Maybe something like this? Public IsInUse as Boolean Public Sub YourSub() If IsInUse = False then IsInUse = True 'Code here. IsInUse = False Endif End Jussi On Tue, Jun 22, 2010 at 00:11, Leonardo Miliani wrote: > A friend of mine has written an application in which he has let the > permission at the users to insert a text in the combobox textarea. Then, > his code parses the text and, if there are errors, a message box is > showed. > > The problem is that the LostFocus event is executed twice.... > In fact, Gambas tries to show another message box, but that is > impossible because only 1 modal form can appears on the screen at once. > So the program terminates and Gambas visualizes the error > "Message box already displayed". > > This is the portion of code: > PUBLIC SUB CodiceVoceContabile_LostFocus() > .........bla.....bla.....bla......................................... > FOR EACH RecTab > ?IF RecTab!NomeVoce = $_VoceConto THEN > ? ?i_CoVoMov = RecTab!NumVoce ? '--Codice di CONTO, corrispondente alla > Voce contabile primaria > ? ?i_UltCtogrup = i_CoVoMov + 999 > ?ENDIF > ?IF i_CoVoMov > 0 THEN > ? ?IF RecTab!NumVoce <= i_UltCtogrup THEN > ? ? ?IF RecTab!NomeVoce = $_VoceSotCto > ? ? ? ?i_CoVoMov = RecTab!NumVoce > ? ? ? ?'-- Codice di SOTTOCONTO, corrispondente alla Voce contabile > secondaria > ? ? ? ?$_PartMovSiNo = RecTab!ContrPartSiNo > ? ? ? ?BREAK > ? ? ?ENDIF > ? ?ELSE > ? ? ?'LabFrm2RicPiaCo: > ? ? ?Message.Error("Attenzione! -> ?Record ?'NON TROVATO'" & Chr(10) & > Chr(10) & "durante la lettura della Tabella ContabFam.db!piancont'" & > Chr(10) & Chr(10) & "in Form2.MovDigOk_Click.LabFrm2RicPiaCo" & Chr(10) > & Chr(10) & " il programma verr? chiuso") > ? ? ?QUIT > ? ?ENDIF > ?ENDIF > NEXT > > > -- > Leonardo Miliani > www.leonardomiliani.com > > Webmaster e co-fondatore di www.gambas-it.org > Il portale di riferimento per i programmatori Gambas italiani > > > ------------------------------------------------------------------------------ > ThinkGeek and WIRED's GeekDad team up for the Ultimate > GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the > lucky parental unit. ?See the prize list and enter to win: > http://p.sf.net/sfu/thinkgeek-promo > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From oceanosoftlapalma at ...626... Wed Jun 23 12:24:49 2010 From: oceanosoftlapalma at ...626... (=?ISO-8859-1?Q?Ricardo_D=EDaz_Mart=EDn?=) Date: Wed, 23 Jun 2010 12:24:49 +0200 Subject: [Gambas-user] gridview autoresize columns width by code Message-ID: Hi all, I wonder if there is a way to auto-resize a column in a grid view by code (the same when you double-cliked on run time to auto-size the width). I always save columns width in database and when form is loading set values for columns width. But now I need in one form to do this like if user double-clicked on border of columns. Thanks in advance, Ricardo From robert1juhasz at ...626... Wed Jun 23 15:44:04 2010 From: robert1juhasz at ...626... (JUHASZ Robert) Date: Wed, 23 Jun 2010 15:44:04 +0200 Subject: [Gambas-user] gridview autoresize columns width by code In-Reply-To: References: Message-ID: <1277300644.1686.7.camel@...2425...> Hello Ricardo, I use this function to display a result in a TableView. I just copy it as is, you may find out how do I adjust the column width. Maybe not the simplest but works well. For the Boolean I show the picture of a checkbox, I attached if you wanna try the code then add the pictures to your project or comment out the part uses them. Hope this helps. Robi '----------------------------------------------------------------------------------------------- PUBLIC FUNCTION fillTV(tv AS TableView, rs AS Result, OPTIONAL hideFirstCol AS Boolean = FALSE, OPTIONAL ignoreLastCols AS Integer = 0) AS Boolean 'to fill the tv tableview with the data of the rs result DIM k, j AS Long DIM iC AS Integer = 0 DIM c AS Long[2] DIM minW AS Integer, maxW AS Integer DIM colW AS NEW Integer[] DIM minH AS Integer, maxH AS Integer DIM colH AS NEW Integer[] DIM picF AS Picture = Picture.Load("picF.png") DIM picT AS Picture = Picture.Load("picT.png") minW = tv.Font.Width("X") * 5 maxW = minW * 30 minH = tv.Font.Height("H") maxH = minH * 10 c[0] = Color.White c[1] = Color.LightBackground tv.Clear tv.Rows.count = rs.Count tv.Columns.Count = rs.Fields.Count - ignoreLastCols tv.header = 3 FOR k = 0 TO tv.columns.count - 1 tv.Columns[k].Text = rs.Fields[k].name colW.Add(tv.Font.Width(tv.Columns[k].Text)) NEXT FOR j = 0 TO rs.count - 1 colH.Add(minH) FOR k = 0 TO tv.Columns.Count - 1 rs.MoveTo(j) IF rs.Fields[k].Type = db.Boolean THEN tv[j, k].Picture = IIf(rs[rs.Fields[k].name], picT, picF) ELSE IF rs[rs.Fields[k].name] = "00/00/00" THEN tv[j, k].text = "" ELSE tv[j, k].text = rs[rs.Fields[k].name] ENDIF tv[j, k].BackColor = c[iC] IF colW[k] < tv.Font.Width(tv[j, k].text) THEN colW[k] = tv.Font.Width(tv[j, k].text) IF colH[j] < tv.Font.Height(tv[j, k].text) THEN colH[j] = tv.Font.Height(tv[j, k].text) NEXT ic = 1 - ic NEXT FOR j = 0 TO tv.Rows.Count - 1 tv.Rows[j].H = Max(minH, Min(colH[j], maxH)) + 7 NEXT FOR k = 0 TO tv.Columns.Count - 1 tv.Columns[k].W = Max(minW, Min(colW[k], maxW)) + 15 NEXT IF hideFirstCol THEN tv.Columns[0].W = 0 tv.Columns[0].Resizable = FALSE ENDIF tv.Refresh RETURN TRUE CATCH RETURN FALSE END '----------------------------------------------------------------------------------------------- -----Original Message----- From: Ricardo D?az Mart?n Reply-to: mailing list for gambas users To: mailing list for gambas users Subject: [Gambas-user] gridview autoresize columns width by code Date: Wed, 23 Jun 2010 12:24:49 +0200 Hi all, I wonder if there is a way to auto-resize a column in a grid view by code (the same when you double-cliked on run time to auto-size the width). I always save columns width in database and when form is loading set values for columns width. But now I need in one form to do this like if user double-clicked on border of columns. Thanks in advance, Ricardo ------------------------------------------------------------------------------ ThinkGeek and WIRED's GeekDad team up for the Ultimate GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the lucky parental unit. See the prize list and enter to win: http://p.sf.net/sfu/thinkgeek-promo _______________________________________________ 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: picT.png Type: image/png Size: 262 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: picF.png Type: image/png Size: 157 bytes Desc: not available URL: From pablo at ...2449... Wed Jun 23 17:38:07 2010 From: pablo at ...2449... (Pablo Ontivero) Date: Wed, 23 Jun 2010 17:38:07 +0200 Subject: [Gambas-user] Gambas and ssh Message-ID: <1277307487.12284.9.camel@...2450...> Hi, i'm trying to make a app for connect to a pc with ssh, i can connect with the other system, but i don't know how to see all the process on a TextArea. PUBLIC conexion AS Process PUBLIC SUB Button1_Click() conexion = SHELL "ssh -l javier 192.168.1.92" FOR READ WRITE END PUBLIC SUB Button2_Click() WRITE #conexion, "ls" END PUBLIC SUB Button3_Click() conexion.Kill END With this code, when i click Button1, i connect to the other pc, with the button2 i write ls to the process, and with button3 o close the process so the conection close too. I see with netstat, the connection entablish and after press the button3 the connection close. I'm not sure if when i press the button2 i send the command, but i don't know how to see this. Please, anyone can help me? Thanks. From Karl.Reinl at ...2345... Wed Jun 23 18:53:31 2010 From: Karl.Reinl at ...2345... (Charlie Reinl) Date: Wed, 23 Jun 2010 18:53:31 +0200 Subject: [Gambas-user] Gambas and ssh In-Reply-To: <1277307487.12284.9.camel@...2450...> References: <1277307487.12284.9.camel@...2450...> Message-ID: <1277312011.6514.4.camel@...40...> Am Mittwoch, den 23.06.2010, 17:38 +0200 schrieb Pablo Ontivero: > Hi, i'm trying to make a app for connect to a pc with ssh, i can connect > with the other system, but i don't know how to see all the process on a > TextArea. > > PUBLIC conexion AS Process > > > PUBLIC SUB Button1_Click() > > conexion = SHELL "ssh -l javier 192.168.1.92" FOR READ WRITE > > END > > PUBLIC SUB Button2_Click() > > WRITE #conexion, "ls" > > END > > > PUBLIC SUB Button3_Click() > > conexion.Kill > > END > > With this code, when i click Button1, i connect to the other pc, with > the button2 i write ls to the process, and with button3 o close the > process so the conection close too. I see with netstat, the connection > entablish and after press the button3 the connection close. I'm not sure > if when i press the button2 i send the command, but i don't know how to > see this. Please, anyone can help me? Thanks. Salut Pablo, see more information about Process http://gambasdoc.org/help/lang/shell -- Amicalement Charlie From jussi.lahtinen at ...626... Wed Jun 23 19:50:26 2010 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Wed, 23 Jun 2010 20:50:26 +0300 Subject: [Gambas-user] Bug with external libraries In-Reply-To: References: <201006192054.26588.gambas@...1...> Message-ID: Valgrind doesn't tell much... Does strace, ltrace, or?, logs help you? Jussi On Sun, Jun 20, 2010 at 19:54, Jussi Lahtinen wrote: > To my surprise this bug seems to need specific earlier conditions. > I managed to isolate those conditions, see attachments. > > Jussi > > > 2010/6/19 Beno?t Minisini : >>> Hi! >>> Here is the problem: >>> >>> Declaration in C: >>> void Lib_initr(void) >>> (I also tested void Lib_initr() with same result) >>> >>> In Gambas: >>> Public Extern Lib_initr() In "libMlpp" >>> >>> And this raises error: >>> Lib_initr() >>> Type mismatch: Wanted Void, got Integer instead >>> >>> Ubuntu 10.04 64bit, Gambas3 revision 3016 >>> >>> >>> Jussi >>> >> >> Can you make a little project for me, with a library, that shows the error? >> >> Thanks in advance! >> >> Regards, >> >> -- >> Beno?t Minisini >> >> ------------------------------------------------------------------------------ >> ThinkGeek and WIRED's GeekDad team up for the Ultimate >> GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the >> lucky parental unit. ?See the prize list and enter to win: >> http://p.sf.net/sfu/thinkgeek-promo >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > From sourceforge-raindog2 at ...94... Wed Jun 23 19:53:07 2010 From: sourceforge-raindog2 at ...94... (Rob) Date: Wed, 23 Jun 2010 13:53:07 -0400 Subject: [Gambas-user] Gambas and ssh In-Reply-To: <1277307487.12284.9.camel@...2450...> References: <1277307487.12284.9.camel@...2450...> Message-ID: <201006231353.08038.sourceforge-raindog2@...94...> On Wednesday 23 June 2010 11:38 am, Pablo Ontivero wrote: > Hi, i'm trying to make a app for connect to a pc with ssh, i can connect > [...] > entablish and after press the button3 the connection close. I'm not sure > if when i press the button2 i send the command, but i don't know how to > see this. Please, anyone can help me? Thanks. I don't know if it's still the case, but ssh used to require a TTY and Gambas' SHELL command used to not provide one. I ended up writing a perl wrapper using a TTY simulator module that spawned ssh on a TTY, passing the command line arguments as well as handling bidirectional I/O between the two processes. I might have used the Expect module, not sure (it was for a client and I don't think I have the code anymore.) Rob From jussi.lahtinen at ...626... Wed Jun 23 20:23:10 2010 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Wed, 23 Jun 2010 21:23:10 +0300 Subject: [Gambas-user] Bug with external libraries In-Reply-To: References: <201006192054.26588.gambas@...1...> Message-ID: Sorry, I didn't notice new revision! Jussi On Wed, Jun 23, 2010 at 20:50, Jussi Lahtinen wrote: > Valgrind doesn't tell much... Does strace, ltrace, or?, logs help you? > > Jussi > > > On Sun, Jun 20, 2010 at 19:54, Jussi Lahtinen wrote: >> To my surprise this bug seems to need specific earlier conditions. >> I managed to isolate those conditions, see attachments. >> >> Jussi >> >> >> 2010/6/19 Beno?t Minisini : >>>> Hi! >>>> Here is the problem: >>>> >>>> Declaration in C: >>>> void Lib_initr(void) >>>> (I also tested void Lib_initr() with same result) >>>> >>>> In Gambas: >>>> Public Extern Lib_initr() In "libMlpp" >>>> >>>> And this raises error: >>>> Lib_initr() >>>> Type mismatch: Wanted Void, got Integer instead >>>> >>>> Ubuntu 10.04 64bit, Gambas3 revision 3016 >>>> >>>> >>>> Jussi >>>> >>> >>> Can you make a little project for me, with a library, that shows the error? >>> >>> Thanks in advance! >>> >>> Regards, >>> >>> -- >>> Beno?t Minisini >>> >>> ------------------------------------------------------------------------------ >>> ThinkGeek and WIRED's GeekDad team up for the Ultimate >>> GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the >>> lucky parental unit. ?See the prize list and enter to win: >>> http://p.sf.net/sfu/thinkgeek-promo >>> _______________________________________________ >>> Gambas-user mailing list >>> Gambas-user at lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>> >> > From oceanosoftlapalma at ...626... Wed Jun 23 21:13:04 2010 From: oceanosoftlapalma at ...626... (=?ISO-8859-1?Q?Ricardo_D=EDaz_Mart=EDn?=) Date: Wed, 23 Jun 2010 21:13:04 +0200 Subject: [Gambas-user] gridview autoresize columns width by code In-Reply-To: <1277300644.1686.7.camel@...2425...> References: <1277300644.1686.7.camel@...2425...> Message-ID: Thanks Robi for your reply. Look's like a good idea getting max size of a column while you're filling data. It's enough for me. It's also original the way you show booleans into the gridview. About this I usually put a X or a blank depending of value, or sometimes color a fixed colum in red or white background for this. Like you, I got only one sub FillTable() to fill data into a gridview. Data can be a SELECT or a string with values-;-separated. In this sub I pass some parameters (if I want colors, who booleans must be drew, etc) Regards, Ricardo 2010/6/23 JUHASZ Robert > Hello Ricardo, > > I use this function to display a result in a TableView. I just copy it > as is, you may find out how do I adjust the column width. Maybe not the > simplest but works well. > > For the Boolean I show the picture of a checkbox, I attached if you > wanna try the code then add the pictures to your project or comment out > the part uses them. > > Hope this helps. > > Robi > > > > '----------------------------------------------------------------------------------------------- > PUBLIC FUNCTION fillTV(tv AS TableView, rs AS Result, OPTIONAL > hideFirstCol AS Boolean = FALSE, OPTIONAL ignoreLastCols AS Integer = 0) > AS Boolean > 'to fill the tv tableview with the data of the rs result > > DIM k, j AS Long > DIM iC AS Integer = 0 > DIM c AS Long[2] > DIM minW AS Integer, maxW AS Integer > DIM colW AS NEW Integer[] > DIM minH AS Integer, maxH AS Integer > DIM colH AS NEW Integer[] > > DIM picF AS Picture = Picture.Load("picF.png") > DIM picT AS Picture = Picture.Load("picT.png") > > minW = tv.Font.Width("X") * 5 > maxW = minW * 30 > > minH = tv.Font.Height("H") > maxH = minH * 10 > > c[0] = Color.White > c[1] = Color.LightBackground > > tv.Clear > tv.Rows.count = rs.Count > tv.Columns.Count = rs.Fields.Count - ignoreLastCols > tv.header = 3 > > FOR k = 0 TO tv.columns.count - 1 > tv.Columns[k].Text = rs.Fields[k].name > colW.Add(tv.Font.Width(tv.Columns[k].Text)) > NEXT > > FOR j = 0 TO rs.count - 1 > colH.Add(minH) > FOR k = 0 TO tv.Columns.Count - 1 > rs.MoveTo(j) > IF rs.Fields[k].Type = db.Boolean THEN > tv[j, k].Picture = IIf(rs[rs.Fields[k].name], picT, picF) > ELSE IF rs[rs.Fields[k].name] = "00/00/00" THEN > tv[j, k].text = "" > ELSE > tv[j, k].text = rs[rs.Fields[k].name] > ENDIF > tv[j, k].BackColor = c[iC] > IF colW[k] < tv.Font.Width(tv[j, k].text) THEN colW[k] = > tv.Font.Width(tv[j, k].text) > IF colH[j] < tv.Font.Height(tv[j, k].text) THEN colH[j] = > tv.Font.Height(tv[j, k].text) > NEXT > ic = 1 - ic > NEXT > > FOR j = 0 TO tv.Rows.Count - 1 > tv.Rows[j].H = Max(minH, Min(colH[j], maxH)) + 7 > NEXT > > FOR k = 0 TO tv.Columns.Count - 1 > tv.Columns[k].W = Max(minW, Min(colW[k], maxW)) + 15 > NEXT > IF hideFirstCol THEN > tv.Columns[0].W = 0 > tv.Columns[0].Resizable = FALSE > ENDIF > tv.Refresh > RETURN TRUE > > CATCH > RETURN FALSE > END > > '----------------------------------------------------------------------------------------------- > > -----Original Message----- > From: Ricardo D?az Mart?n > Reply-to: mailing list for gambas users > > To: mailing list for gambas users > Subject: [Gambas-user] gridview autoresize columns width by code > Date: Wed, 23 Jun 2010 12:24:49 +0200 > > > Hi all, > > I wonder if there is a way to auto-resize a column in a grid view by code > (the same when you double-cliked on run time to auto-size the width). > > I always save columns width in database and when form is loading set values > for columns width. But now I need in one form to do this like if user > double-clicked on border of columns. > > Thanks in advance, > Ricardo > > ------------------------------------------------------------------------------ > ThinkGeek and WIRED's GeekDad team up for the Ultimate > GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the > lucky parental unit. See the prize list and enter to win: > http://p.sf.net/sfu/thinkgeek-promo > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > ------------------------------------------------------------------------------ > ThinkGeek and WIRED's GeekDad team up for the Ultimate > GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the > lucky parental unit. See the prize list and enter to win: > http://p.sf.net/sfu/thinkgeek-promo > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > From pablo at ...2449... Wed Jun 23 21:43:14 2010 From: pablo at ...2449... (Pablo Ontivero) Date: Wed, 23 Jun 2010 21:43:14 +0200 Subject: [Gambas-user] Gambas and ssh (Pablo Ontivero) In-Reply-To: References: Message-ID: <9A9499C3-7AE3-42A8-8D7E-4DB4F8D70571@...2449...> Well, thanks for all the answers, i don't have any idea of perl, so i don't know if i was able to make a app with that languaje. The ssh connect entablish with out problem, becouse gambas ask me for the password for the login. but the problem is.. i can't see the process on a TextArea, i think it is like a make a "tty" o gambas. How can i see the output of the process? becouse if i put TO "variable" i got a sintaxis error. From jscops at ...11... Wed Jun 23 22:02:41 2010 From: jscops at ...11... (Jack) Date: Wed, 23 Jun 2010 22:02:41 +0200 Subject: [Gambas-user] Gambas and ssh (Pablo Ontivero) In-Reply-To: <9A9499C3-7AE3-42A8-8D7E-4DB4F8D70571@...2449...> References: <9A9499C3-7AE3-42A8-8D7E-4DB4F8D70571@...2449...> Message-ID: <4C226861.2050703@...11...> Pablo Ontivero a ?crit : > > Well, thanks for all the answers, i don't have any idea of perl, so i don't know if i was able to make a app with that languaje. The ssh connect entablish with out problem, becouse gambas ask me for the password for the login. but the problem is.. i can't see the process on a TextArea, i think it is like a make a "tty" o gambas. How can i see the output of the process? becouse if i put TO "variable" i got a sintaxis error. > > Salut Pablo, you can see on Laurux how Marc Guillaume manages connections ssh. Look at fmenu program. It is brilliant. Cordialement. jack From sensorario at ...626... Sat Jun 26 11:33:04 2010 From: sensorario at ...626... (Simone Gentili) Date: Sat, 26 Jun 2010 11:33:04 +0200 Subject: [Gambas-user] hi all Message-ID: I started today to develop with Gambas!!! From mohareve at ...626... Sat Jun 26 14:21:20 2010 From: mohareve at ...626... (M. Cs.) Date: Sat, 26 Jun 2010 14:21:20 +0200 Subject: [Gambas-user] hi all In-Reply-To: References: Message-ID: Hello, and welcome! Csaba From linuxos at ...1896... Sat Jun 26 15:48:29 2010 From: linuxos at ...1896... (Olivier Cruilles) Date: Sat, 26 Jun 2010 15:48:29 +0200 Subject: [Gambas-user] hi all In-Reply-To: References: Message-ID: <07ECAAEF-555A-4FAF-955A-A43BF664DCE3@...1896...> Hello, Welcome and enjoy. Le 26 juin 2010 ? 11:33, Simone Gentili a ?crit : > > I started today to develop with Gambas!!! > ------------------------------------------------------------------------------ > This SF.net email is sponsored by Sprint > What will you do first with EVO, the first 4G phone? > Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > Olivier Cruilles Mail: linuxos at ...1896... From dosida at ...626... Sat Jun 26 16:31:19 2010 From: dosida at ...626... (Dimitris Anogiatis) Date: Sat, 26 Jun 2010 08:31:19 -0600 Subject: [Gambas-user] hi all In-Reply-To: References: Message-ID: Welcome to Gambas, Simone. Hopefully you'll love the language as much as we do Don't hesitate to give us a shout if you need help with anything. And above all :) Have fun :) Regards Dimitris On Sat, Jun 26, 2010 at 3:33 AM, Simone Gentili wrote: > I started today to develop with Gambas!!! > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by Sprint > What will you do first with EVO, the first 4G phone? > Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From dag.jarle.johansen at ...2312... Sat Jun 26 18:46:01 2010 From: dag.jarle.johansen at ...2312... (Dag Jarle Johansen) Date: Sat, 26 Jun 2010 13:46:01 -0300 Subject: [Gambas-user] hi all In-Reply-To: References: Message-ID: Am Samstag, den 26.06.2010, 11:33 +0200 schrieb Simone Gentili: > I started today to develop with Gambas!!! Hi, Simone A very good desiscion - please tell us what you used before. And also what your intentions are - in wich direction your issuses lays. I started with Gambas for about 3/4 of a year, and know a little bit of even the starting problems, so I would be glad to help - the other guys around here are the experts; knowing the sources like QT and what do I know - then they are better to ask. One suggestion for you - if you don't have to implement the software you write on other workstations at once, use the SVN. Gambas 2.99 aka 3.0 has a lot more of features than the 2.x versions. Velcome to the club and many reagards, Dag-Jarle Johansen > ------------------------------------------------------------------------------ > This SF.net email is sponsored by Sprint > What will you do first with EVO, the first 4G phone? > Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From sensorario at ...626... Sun Jun 27 09:45:07 2010 From: sensorario at ...626... (Simone Gentili) Date: Sun, 27 Jun 2010 09:45:07 +0200 Subject: [Gambas-user] hi all In-Reply-To: References: Message-ID: Well, I am a php developer. Next week I'll start a Job where we need to use VB6. =( So... I stared a search in google "Visual Basic on Linux" and Gambas is se result. I know tha Gambas Is Not Visual Basic!!! But I dont know, now, any pther language useful for develop on my ubuntu. So... I am trying now to develop a program for learn guitar stairs or improvise. Just a way to learn gambas and improve my guitar technique. Can anyone help me =)? Maybe we can start a sourceforge project. On Sat, Jun 26, 2010 at 6:46 PM, Dag Jarle Johansen < dag.jarle.johansen at ...2312...> wrote: > Am Samstag, den 26.06.2010, 11:33 +0200 schrieb Simone Gentili: > > I started today to develop with Gambas!!! > > Hi, Simone > > A very good desiscion - please tell us what you used before. And also > what your intentions are - in wich direction your issuses lays. I > started with Gambas for about 3/4 of a year, and know a little bit of > even the starting problems, so I would be glad to help - the other guys > around here are the experts; knowing the sources like QT and what do I > know - then they are better to ask. One suggestion for you - if you > don't have to implement the software you write on other workstations at > once, use the SVN. Gambas 2.99 aka 3.0 has a lot more of features than > the 2.x versions. > > Velcome to the club and many reagards, > Dag-Jarle Johansen > > > > > > ------------------------------------------------------------------------------ > > This SF.net email is sponsored by Sprint > > What will you do first with EVO, the first 4G phone? > > Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by Sprint > What will you do first with EVO, the first 4G phone? > Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- -demo Links: http://www.unodeitanti.com http://www.facebook.com/simone.gentili http://twitter.com/sensorario http://knottyboybox.blogspot.com/ http://www.travian.it/?uc=it10_5825 IM: skype: rastagnolo ICQ - 55493398 MSN - knottyboy at ...2452... From sensorario at ...626... Sun Jun 27 14:46:29 2010 From: sensorario at ...626... (Simone Gentili) Date: Sun, 27 Jun 2010 14:46:29 +0200 Subject: [Gambas-user] How can I move "public sub" in other separated files? Message-ID: This is my "main" program. PUBLIC SUB _new() disegnaLableChitarra() disegnaTastieraChitarra() END These are two subroutines but I want to have them in separated file. What I have to do? PUBLIC SUB disegnaLableChitarra() DIM lableChitarra AS Label lableChitarra = NEW Label(ME) AS "MiaLable" lableChitarra.Text = "La Chitarra" lableChitarra.Caption = "La Chitarra" lableChitarra.H = 33 lableChitarra.W = 44 END PUBLIC SUB disegnaTastieraChitarra() DIM hButton AS Button DIM i AS Integer DIM j AS Integer FOR i = 1 TO 24 FOR j = 1 TO 6 hButton = NEW Button(ME) AS "Ilmiopulsante" & i hButton.Top = 20 * j + 200 hButton.Left = 20 * i hButton.H = 20 hButton.W = 20 hButton.Caption = i NEXT NEXT END From richard.j.walker at ...247... Sun Jun 27 15:16:16 2010 From: richard.j.walker at ...247... (Richard) Date: Sun, 27 Jun 2010 14:16:16 +0100 Subject: [Gambas-user] How can I move "public sub" in other separated files? In-Reply-To: References: Message-ID: <201006271416.16516.richard.j.walker@...247...> On Sunday 27 June 2010 13:46:29 Simone Gentili wrote: > This is my "main" program. > > PUBLIC SUB _new() > disegnaLableChitarra() > disegnaTastieraChitarra() > END > > > These are two subroutines but I want to have them in separated file. What I > have to do? > PUBLIC SUB disegnaLableChitarra() > DIM lableChitarra AS Label > lableChitarra = NEW Label(ME) AS "MiaLable" > lableChitarra.Text = "La Chitarra" > lableChitarra.Caption = "La Chitarra" > lableChitarra.H = 33 > lableChitarra.W = 44 > END > > PUBLIC SUB disegnaTastieraChitarra() > DIM hButton AS Button > DIM i AS Integer > DIM j AS Integer > FOR i = 1 TO 24 > FOR j = 1 TO 6 > hButton = NEW Button(ME) AS "Ilmiopulsante" & i > hButton.Top = 20 * j + 200 > hButton.Left = 20 * i > hButton.H = 20 > hButton.W = 20 > hButton.Caption = i > NEXT > NEXT > END > --------------------------------------------------------------------------- >--- This SF.net email is sponsored by Sprint > What will you do first with EVO, the first 4G phone? > Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user Hi Simone, My guess is that you might want to use a separate Module file for routines or variables you want to group together. Other choices might include creating a Class file to organise bits which are logically related. Looking more closely at your code, it is perhaps most useful to use the Gambas IDE to build the widgets you need on a form and set all the relevant properties property sheet and tweak them in the form's class file. If it is your intention to dynamically alter widget properties as the program runs then any of these approaches should be usable, but bear in mind that "public" visibility of module symbols and form controls is a project-wide configuration available from the IDE Project->Properties menu; look at the "Options" tab. It is off by default for symbols and controls. Richard From Karl.Reinl at ...2345... Sun Jun 27 23:18:56 2010 From: Karl.Reinl at ...2345... (Charlie Reinl) Date: Sun, 27 Jun 2010 23:18:56 +0200 Subject: [Gambas-user] Gambas 3 rev 3023 on Ubuntu 10.04 LTS x86 Message-ID: <1277673536.2699.7.camel@...40...> Salut, I know, it is not the first time that I write this, but after an upgrade from 8.04 LTS to 10.04 LTS, now it works with libtoolize (GNU libtool) 2.2.6b , but reconf-all still failes. Any news about that. -- Amicalement Charlie -------------- next part -------------- A non-text attachment was scrubbed... Name: reconf-all.log Type: text/x-log Size: 1850 bytes Desc: not available URL: From sensorario at ...626... Sun Jun 27 23:20:20 2010 From: sensorario at ...626... (Simone Gentili) Date: Sun, 27 Jun 2010 23:20:20 +0200 Subject: [Gambas-user] How can I move "public sub" in other separated files? In-Reply-To: <201006271416.16516.richard.j.walker@...247...> References: <201006271416.16516.richard.j.walker@...247...> Message-ID: Thanks a lot!!! Now I've main file: ' Gambas class file PUBLIC SUB _new() Tastiera.disegnaLableChitarra(ME) Tastiera.disegnaTastieraChitarra(ME) END and a module named "tastiera" with these two sub ' Gambas module file PUBLIC SUB disegnaTastieraChitarra(form AS Form) DIM hButton AS Button DIM i AS Integer DIM j AS Integer FOR i = 1 TO 24 FOR j = 1 TO 6 hButton = NEW Button(form) AS "Ilmiopulsante" & i hButton.Top = 20 * j + 200 hButton.Left = 20 * i hButton.H = 20 hButton.W = 20 hButton.Caption = i NEXT NEXT END PUBLIC SUB disegnaLableChitarra(form AS Form) DIM lableChitarra AS Label lableChitarra = NEW Label(form) AS "MiaLable" lableChitarra.Text = "La Chitarra" lableChitarra.Caption = "La Chitarra" lableChitarra.H = 33 lableChitarra.W = 44 END On Sun, Jun 27, 2010 at 3:16 PM, Richard wrote: > On Sunday 27 June 2010 13:46:29 Simone Gentili wrote: > > This is my "main" program. > > > > PUBLIC SUB _new() > > disegnaLableChitarra() > > disegnaTastieraChitarra() > > END > > > > > > These are two subroutines but I want to have them in separated file. What > I > > have to do? > > PUBLIC SUB disegnaLableChitarra() > > DIM lableChitarra AS Label > > lableChitarra = NEW Label(ME) AS "MiaLable" > > lableChitarra.Text = "La Chitarra" > > lableChitarra.Caption = "La Chitarra" > > lableChitarra.H = 33 > > lableChitarra.W = 44 > > END > > > > PUBLIC SUB disegnaTastieraChitarra() > > DIM hButton AS Button > > DIM i AS Integer > > DIM j AS Integer > > FOR i = 1 TO 24 > > FOR j = 1 TO 6 > > hButton = NEW Button(ME) AS "Ilmiopulsante" & i > > hButton.Top = 20 * j + 200 > > hButton.Left = 20 * i > > hButton.H = 20 > > hButton.W = 20 > > hButton.Caption = i > > NEXT > > NEXT > > END > > > --------------------------------------------------------------------------- > >--- This SF.net email is sponsored by Sprint > > What will you do first with EVO, the first 4G phone? > > Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > Hi Simone, > My guess is that you might want to use a separate Module file for routines > or > variables you want to group together. > > Other choices might include creating a Class file to organise bits which > are > logically related. > > Looking more closely at your code, it is perhaps most useful to use the > Gambas > IDE to build the widgets you need on a form and set all the relevant > properties property sheet and tweak them in the form's class file. > > If it is your intention to dynamically alter widget properties as the > program > runs then any of these approaches should be usable, but bear in mind > that "public" visibility of module symbols and form controls is a > project-wide configuration available from the IDE Project->Properties menu; > look at the "Options" tab. It is off by default for symbols and controls. > > > Richard > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by Sprint > What will you do first with EVO, the first 4G phone? > Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- -demo Links: http://www.unodeitanti.com http://www.facebook.com/simone.gentili http://twitter.com/sensorario http://knottyboybox.blogspot.com/ http://www.travian.it/?uc=it10_5825 IM: skype: rastagnolo ICQ - 55493398 MSN - knottyboy at ...2452... From priastefano at ...2453... Mon Jun 28 13:15:23 2010 From: priastefano at ...2453... (Tim Stefano) Date: Mon, 28 Jun 2010 13:15:23 +0200 Subject: [Gambas-user] BUG: Multiple selection in listbox gtk Message-ID: <91AE6A70344F4F069B2D89CE228000C0@...2454...> Montelupo Fiorentino - Italy 28 June 2010 Hi, I found 2 trouble: On ASUS EEE Top All in one - Debian 2.30 - ICEWM - Gambas 2.20.2 with QT interface when I using click event on COMBOBOX with touch-screen (with mouse it's ok) everythings freeze and I need switch off the panel. with GTK multiple selection in listbox are all set TRUE when I check which is selected. Thank's for your help Distinti saluti - Best regards Stefano Pria From gambas.fr at ...626... Mon Jun 28 19:28:56 2010 From: gambas.fr at ...626... (Fabien Bodard) Date: Mon, 28 Jun 2010 19:28:56 +0200 Subject: [Gambas-user] Gambas 3 rev 3023 on Ubuntu 10.04 LTS x86 In-Reply-To: <1277673536.2699.7.camel@...40...> References: <1277673536.2699.7.camel@...40...> Message-ID: i think you need to delete and refresh your svn 2010/6/27 Charlie Reinl : > Salut, > > I know, it is not the first time that I write this, but after an upgrade > from 8.04 LTS to 10.04 LTS, now it works with libtoolize (GNU libtool) > 2.2.6b , but reconf-all still failes. > > Any news about that. > -- > Amicalement > Charlie > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by Sprint > What will you do first with EVO, the first 4G phone? > Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > From Karl.Reinl at ...2345... Mon Jun 28 21:52:35 2010 From: Karl.Reinl at ...2345... (Charlie Reinl) Date: Mon, 28 Jun 2010 21:52:35 +0200 Subject: [Gambas-user] Gambas 3 rev 3023 on Ubuntu 10.04 LTS x86 In-Reply-To: References: <1277673536.2699.7.camel@...40...> Message-ID: <1277754755.2193.5.camel@...40...> Am Montag, den 28.06.2010, 19:28 +0200 schrieb Fabien Bodard: > i think you need to delete and refresh your svn > > 2010/6/27 Charlie Reinl : > > Salut, > > > > I know, it is not the first time that I write this, but after an upgrade > > from 8.04 LTS to 10.04 LTS, now it works with libtoolize (GNU libtool) > > 2.2.6b , but reconf-all still failes. > > > > Any news about that. > > -- > > Amicalement > > Charlie Salut Fabien, this log is from a new created svn checkout, that's the problem. -- Amicalement Charlie From rterry at ...1946... Tue Jun 29 07:13:44 2010 From: rterry at ...1946... (richard terry) Date: Tue, 29 Jun 2010 15:13:44 +1000 Subject: [Gambas-user] gambas3 search/replace global - really inconvenient Message-ID: <201006291513.44109.rterry@...1946...> HI Benoit, I'm longing for a roll-back or change to your global search proceedures. Yes, the global search finds all the recurrences, but its slow and cumbersome. Couldn't you just add an extra checkbox on the ordinary search and replace which says 'global search', and then, as used to be the case, when the current module is searched, just move on to the next occurence, load the code on a tab to let the user interact with it, then move on. You could also add an option like 'close edited code panel' for users who don't want 100's of tabs open as the search progresses. What do others think. I find with a huge project, the current method really cumbersome. REgards Richard From gambas at ...1... Tue Jun 29 08:53:27 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Tue, 29 Jun 2010 08:53:27 +0200 Subject: [Gambas-user] gambas3 search/replace global - really inconvenient In-Reply-To: <201006291513.44109.rterry@...1946...> References: <201006291513.44109.rterry@...1946...> Message-ID: <201006290853.27242.gambas@...1...> > HI Benoit, > > I'm longing for a roll-back or change to your global search proceedures. > > Yes, the global search finds all the recurrences, but its slow and > cumbersome. > > Couldn't you just add an extra checkbox on the ordinary search and replace > which says 'global search', and then, as used to be the case, when the > current module is searched, just move on to the next occurence, load the > code on a tab to let the user interact with it, then move on. You could > also add an option like 'close edited code panel' for users who don't want > 100's of tabs open as the search progresses. > > What do others think. > > I find with a huge project, the current method really cumbersome. > > REgards > > Richard Why do you use "global search" then? Just use "next" and "previous" button, or F3 and SHIFT+F3 to search inside the current module! Or maybe I don't see what you are talking about? -- Beno?t Minisini From rterry at ...1946... Tue Jun 29 09:45:02 2010 From: rterry at ...1946... (richard terry) Date: Tue, 29 Jun 2010 17:45:02 +1000 Subject: [Gambas-user] gambas3 search/replace global - really inconvenient In-Reply-To: <201006290853.27242.gambas@...1...> References: <201006291513.44109.rterry@...1946...> <201006290853.27242.gambas@...1...> Message-ID: <201006291745.02461.rterry@...1946...> On Tuesday 29 June 2010 16:53:27 Beno?t Minisini wrote: > > HI Benoit, > > > > I'm longing for a roll-back or change to your global search proceedures. > > > > Yes, the global search finds all the recurrences, but its slow and > > cumbersome. > > > > Couldn't you just add an extra checkbox on the ordinary search and > > replace which says 'global search', and then, as used to be the case, > > when the current module is searched, just move on to the next occurence, > > load the code on a tab to let the user interact with it, then move on. > > You could also add an option like 'close edited code panel' for users who > > don't want 100's of tabs open as the search progresses. > > > > What do others think. > > > > I find with a huge project, the current method really cumbersome. > > > > REgards > > > > Richard > > Why do you use "global search" then? Just use "next" and "previous" button, > or F3 and SHIFT+F3 to search inside the current module! > > Or maybe I don't see what you are talking about? > I do use F3 etc within the module. I notice that after the global search is done it lists all the occurrences, and that one can just click on each line which then loads the code module. I guess what I'm suggesting is that within the same searchbox that pops up when you search a module, it has an option of 'search globally', and that then - F3 would just move to the next occurrence in the project, not just continue going and look for everything. In a large project like mine, if one starts the global search, there is no way to stop it apparently and if the svn tree contains many megs of files then it takes quite some time to complete. Regards From gambas.fr at ...626... Tue Jun 29 14:13:17 2010 From: gambas.fr at ...626... (Fabien Bodard) Date: Tue, 29 Jun 2010 14:13:17 +0200 Subject: [Gambas-user] Gambas 3 rev 3023 on Ubuntu 10.04 LTS x86 In-Reply-To: References: <1277673536.2699.7.camel@...40...> <1277754755.2193.5.camel@...40...> Message-ID: it can be the problem with upgrade ... that's why i often do a full reinstall with ubuntu From gambas.fr at ...626... Tue Jun 29 14:11:57 2010 From: gambas.fr at ...626... (Fabien Bodard) Date: Tue, 29 Jun 2010 14:11:57 +0200 Subject: [Gambas-user] Gambas 3 rev 3023 on Ubuntu 10.04 LTS x86 In-Reply-To: <1277754755.2193.5.camel@...40...> References: <1277673536.2699.7.camel@...40...> <1277754755.2193.5.camel@...40...> Message-ID: are you sure that there is not libtool or other in version 1.5.6 installed ? 2010/6/28 Charlie Reinl : > Am Montag, den 28.06.2010, 19:28 +0200 schrieb Fabien Bodard: >> i think you need to delete and refresh your svn >> >> 2010/6/27 Charlie Reinl : >> > Salut, >> > >> > I know, it is not the first time that I write this, but after an upgrade >> > from 8.04 LTS to 10.04 LTS, now it works with libtoolize (GNU libtool) >> > 2.2.6b , but reconf-all still failes. >> > >> > Any news about that. >> > -- >> > Amicalement >> > Charlie > > Salut Fabien, > > this log is from a new created svn checkout, that's the problem. > -- > Amicalement > Charlie > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by Sprint > What will you do first with EVO, the first 4G phone? > Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From jussi.lahtinen at ...626... Tue Jun 29 19:15:15 2010 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Tue, 29 Jun 2010 20:15:15 +0300 Subject: [Gambas-user] gambas3 search/replace global - really inconvenient In-Reply-To: <201006291745.02461.rterry@...1946...> References: <201006291513.44109.rterry@...1946...> <201006290853.27242.gambas@...1...> <201006291745.02461.rterry@...1946...> Message-ID: > I guess what I'm suggesting is that within the same searchbox that pops up > when you search a module, it has an option of 'search globally', and that then > - F3 would just move to the next occurrence in the project, not just continue > going and look for everything. I think that is good idea. Maybe list in browse tab should refresh, if something is changed in code and you click on that list. Otherwise clicking on occurrence doesn't make correct jump to code. Also some files should be able to exclude from global search. Example binary data files. BTW. Double clicking on binary file hangs IDE completely. Way to unf*ck that is to edit .settings in project folder with gedit etc. Jussi From pablo at ...2449... Tue Jun 29 22:35:04 2010 From: pablo at ...2449... (Pablo Ontivero) Date: Tue, 29 Jun 2010 22:35:04 +0200 Subject: [Gambas-user] Process output to TextArea Fail Message-ID: <565BF9AE-35F9-4684-B6F4-67DD14C3C823@...2449...> Hello, the question is, when i try to print the output of the process on a TextArea, i have good results but if the output have more of 255 results, the app fails. http://pastebin.com/Gyg4Ehhk That link have the output of the shell command. And the code is this http://pastebin.com/Guw4B9DN Thanks. From rterry at ...1946... Wed Jun 30 00:08:59 2010 From: rterry at ...1946... (richard terry) Date: Wed, 30 Jun 2010 08:08:59 +1000 Subject: [Gambas-user] Wizard: Skipping pages & Going Back Pages Message-ID: <201006300808.59698.rterry@...1946...> Hi List, I've a wizard, with several options on the first page, depending on which radiobutton is set I want to 'skip over' some pages. This is ok, as it seems if i use the Wizard1_BeforeChange() event, I can just set which page I want it to go to (forward direction) that is. However, as users need to be able to go backwards, I can't figure out how to do this in reverse, ie not show the unwanted pages that I've previously skipped over. Any help appreciated. REgards Richard From gambas.fr at ...626... Wed Jun 30 12:21:20 2010 From: gambas.fr at ...626... (Fabien Bodard) Date: Wed, 30 Jun 2010 12:21:20 +0200 Subject: [Gambas-user] Wizard: Skipping pages & Going Back Pages In-Reply-To: <201006300808.59698.rterry@...1946...> References: <201006300808.59698.rterry@...1946...> Message-ID: andif you make you own wizard ? just make an object array... witch contain structre elements with these varables : form as form, skipped as boolean, readed as boolean now with that you can walk on the wizard histroy and interact with it 2010/6/30 richard terry : > Hi List, > > I've a wizard, with several options on the first page, depending on which > radiobutton is set I want to 'skip over' some pages. This is ok, as ?it seems > if i use the Wizard1_BeforeChange() event, I can just set which page I want it > to go to (forward direction) that is. > > However, as users need to be able to go backwards, I can't figure out how to do > this in reverse, ie not show the unwanted pages that I've previously skipped > over. > > Any help appreciated. > > REgards > > Richard > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by Sprint > What will you do first with EVO, the first 4G phone? > Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From info at ...2455... Wed Jun 30 12:58:35 2010 From: info at ...2455... (info) Date: Wed, 30 Jun 2010 12:58:35 +0200 Subject: [Gambas-user] gambas2 - bug using the example Database project with oracle odbc Message-ID: Hi, I have some problems using the example of database project with an oracle database trough ODBC. ? I installed gambas 2.20.2 (the latest stable) on Ubuntu 10.4 Desktop. I installed UnixODBC? 2.2.11.21 using the ubuntu software center and installed the oracle 10.2.0.3 ODBC from oracle. I configured it and using isql from terminal, it works. When i try to use the database example, i use odbc connection and it works but when i try to run a simple query that return almost a row, gambas crashes with error #11 with this log:(gdb) runStarting program: /usr/local/bin/gbx2 -p[Thread debugging using libthread_db enabled]Program received signal SIGSEGV, Segmentation fault.0x01227a91 in SQLColAttributeW ()?? from /usr/lib/oracle/10.2.0.3/client/lib/libsqora.so.10.1(gdb) bt#0? 0x01227a91 in SQLColAttributeW ()?? from /usr/lib/oracle/10.2.0.3/client/lib/libsqora.so.10.1#1? 0x00feb5a4 in SQLColAttribute () from /usr/lib/libodbc.so.1#2? 0x00fdf698 in query_fill (db=0x825bba4, result=0x827ddc8, pos=0, ??? buffer=0x828ec88, next=0) at main.c:1179#3? 0x00fd63b7 in load_buffer (_object=0x82fe260, vpos=0) at CResult.c:145#4? 0x00fd6d08 in DB_MakeResult (conn=0x825bb98, mode=0, table_temp=0x0, ??? query=0x8299c58 "select * from mytable") at CResult.c:305#5? 0x00fd4037 in CCONNECTION_exec (_object=0x825bb98, _param=0x807f878)??? at CConnection.c:454#6? 0x0804e92c in EXEC_call_native (exec=0xfd3fd4 , ??? object=0x825bb98, type=135043168, param=0x807f878) at gbx_exec.c:844#7? 0x0804f230 in EXEC_native () at gbx_exec.c:962#8? 0x0806bbd8 in EXEC_loop () at gbx_exec_loop.c:1042#9? 0x0804f533 in EXEC_function_loop () at gbx_exec.c:703#10 0x0804f809 in EXEC_function_real () at gbx_exec.c:690#11 0x0805d54b in raise_event (observer=0x0, object=, ??? func_id=, nparam=0) at gbx_api.c:490#12 0x0805da63 in GB_Raise (object=0x824aaa8, event_id=16, nparam=0)??? at gbx_api.c:594#13 0x00353e44 in gb_raise_button_Click (sender=0x824aec0) at CButton.cpp:44#14 0x003324aa in gControl::emit (this=0xfdfba9, signal=0x0)??? at gcontrol.cpp:1482---Type to continue, or q to quit---#15 0x00337950 in bt_click (object=0x820da58, data=0x824aec0) at gbutton.cpp:58#16 0x00a7adcc in g_cclosure_marshal_VOID__VOID ()?? from /usr/lib/libgobject-2.0.so.0#17 0x00a6d252 in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0#18 0x00a8199d in ?? () from /usr/lib/libgobject-2.0.so.0#19 0x00a82db4 in g_signal_emit_valist () from /usr/lib/libgobject-2.0.so.0#20 0x00a83256 in g_signal_emit () from /usr/lib/libgobject-2.0.so.0#21 0x003f7c7a in gtk_button_clicked () from /usr/lib/libgtk-x11-2.0.so.0#22 0x003f9238 in ?? () from /usr/lib/libgtk-x11-2.0.so.0#23 0x00a7adcc in g_cclosure_marshal_VOID__VOID ()?? from /usr/lib/libgobject-2.0.so.0#24 0x00a6b8b9 in ?? () from /usr/lib/libgobject-2.0.so.0#25 0x00a6d252 in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0#26 0x00a8123a in ?? () from /usr/lib/libgobject-2.0.so.0#27 0x00a82db4 in g_signal_emit_valist () from /usr/lib/libgobject-2.0.so.0#28 0x00a83256 in g_signal_emit () from /usr/lib/libgobject-2.0.so.0#29 0x003f7d1a in gtk_button_released () from /usr/lib/libgtk-x11-2.0.so.0#30 0x003f7d63 in ?? () from /usr/lib/libgtk-x11-2.0.so.0#31 0x004b5424 in ?? () from /usr/lib/libgtk-x11-2.0.so.0#32 0x00a6b8b9 in ?? () from /usr/lib/libgobject-2.0.so.0#33 0x00a6d252 in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0#34 0x00a815e6 in ?? () from /usr/lib/libgobject-2.0.so.0#35 0x00a82c33 in g_signal_emit_valist () from /usr/lib/libgobject-2.0.so.0---Type to continue, or q to quit---#36 0x00a83256 in g_signal_emit () from /usr/lib/libgobject-2.0.so.0#37 0x005e2636 in ?? () from /usr/lib/libgtk-x11-2.0.so.0#38 0x004ada5d in gtk_propagate_event () from /usr/lib/libgtk-x11-2.0.so.0#39 0x004aee07 in gtk_main_do_event () from /usr/lib/libgtk-x11-2.0.so.0#40 0x00361b4d in gambas_handle_event (event=0x81236e8) at gapplication.cpp:532#41 0x007a339a in ?? () from /usr/lib/libgdk-x11-2.0.so.0#42 0x00af05e5 in g_main_context_dispatch () from /lib/libglib-2.0.so.0#43 0x00af42d8 in ?? () from /lib/libglib-2.0.so.0#44 0x00af44b8 in g_main_context_iteration () from /lib/libglib-2.0.so.0#45 0x004af1b3 in gtk_main_iteration_do () from /usr/lib/libgtk-x11-2.0.so.0#46 0x0035f6de in do_iteration (do_not_block=false, do_not_sleep=false)??? at main.cpp:470#47 0x0035fd15 in my_loop () at main.cpp:398#48 0x08061c36 in main (argc=Cannot access memory at address 0x1) at gbx.c:358(gdb) ? ? this is my odbc.ini[XXXX]Application Attributes??? ??? = TAttributes??? ??? = WBatchAutocommitMode??? ??? = IfAllSuccessfulBindAsFLOAT??? ??? = FCloseCursor??? ??? = FDisableDPM??? ??? = FDisableMTS??? ??? = TDriver??? ??? = Oracle 10g ODBC driverDSN??? ??? = XXXXEXECSchemaOpt??? ??? = EXECSyntax??? ??? = TFailover??? ??? = TFailoverDelay??? ??? = 10FailoverRetryCount??? ??? = 10FetchBufferSize??? ??? = 64000ForceWCHAR??? ??? = FLobs??? ??? = TLongs??? ??? = TMetadataIdDefault??? ??? = FQueryTimeout??? ??? = TResultSets??? ??? = TServerName??? ??? = XXXXXXXXXSQLGetData extensions??? ??? = FTranslation DLL??? ??? = Translation Option??? ??? = 0DisableRULEHint??? ??? = TUserID??? ??? = ? and odbcinst: [Oracle 10g ODBC driver]Description??? ??? = Oracle ODBC driver for Oracle 10gDriver??? ??? = /usr/lib/oracle/10.2.0.3/client/lib/libsqora.so.10.1Setup??? ??? = FileUsage??? ??? = CPTimeout??? ??? = CPReuse??? ??? = ? ? I replaced the database name for privacy but with isql t works: if i run select * from mytable i can see the data.the program crashes during the Exec method:PUBLIC SUB btnRun_Click()? DIM rData AS Result? DIM hForm AS FRequest? rData = $hConn.Exec(txtRequest.Text) ? ? Thx in advance for your support and apologize for my bad english. ? Stefano Balzani From Karl.Reinl at ...2345... Wed Jun 30 16:56:29 2010 From: Karl.Reinl at ...2345... (Charlie Reinl) Date: Wed, 30 Jun 2010 16:56:29 +0200 Subject: [Gambas-user] Gambas 3 rev 3023 on Ubuntu 10.04 LTS x86 In-Reply-To: References: <1277673536.2699.7.camel@...40...> <1277754755.2193.5.camel@...40...> Message-ID: <1277909789.2259.17.camel@...40...> Am Dienstag, den 29.06.2010, 14:13 +0200 schrieb Fabien Bodard: > it can be the problem with upgrade ... that's why i often do a full > reinstall with ubuntu Salut Fabien, yes that is/was it. First evolution killed some mail folders, then gambas3 didn't configure, after mysql didn't start and so on, a mess, a real mess. Also the language support has failed. But nothings lost, just de,-reinstall, but a lot of work. mysql and gambas3 now run, thanks -- Cordialement Charlie -- Das bei Computern oft heilbringende Aus- und Wiedereinschalten l?ste auch dieses Problem. From jussi.lahtinen at ...626... Wed Jun 30 17:47:50 2010 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Wed, 30 Jun 2010 18:47:50 +0300 Subject: [Gambas-user] Process output to TextArea Fail In-Reply-To: <565BF9AE-35F9-4684-B6F4-67DD14C3C823@...2449...> References: <565BF9AE-35F9-4684-B6F4-67DD14C3C823@...2449...> Message-ID: Please elaborate. You have noticed bug in textarea component? What is your gambas version and operating system? Are you using GTK+ or Qt? Jussi On Tue, Jun 29, 2010 at 23:35, Pablo Ontivero wrote: > Hello, the question is, when i try to print the output of the process on a TextArea, i have good results but if the output have more of 255 results, the app fails. > > http://pastebin.com/Gyg4Ehhk > > That link have the output of the shell command. > > And the code is this > > http://pastebin.com/Guw4B9DN > > Thanks. > ------------------------------------------------------------------------------ > This SF.net email is sponsored by Sprint > What will you do first with EVO, the first 4G phone? > Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Wed Jun 30 18:02:08 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Wed, 30 Jun 2010 18:02:08 +0200 Subject: [Gambas-user] gambas2 - bug using the example Database project with oracle odbc Message-ID: <201006301802.08352.gambas@...1...> > Hi, I have some problems using the example of database project with an > oracle database trough ODBC. I installed gambas 2.20.2 (the latest > stable) on Ubuntu 10.4 Desktop. I installed UnixODBC 2.2.11.21 using the > ubuntu software center and installed the oracle 10.2.0.3 ODBC from oracle. > I configured it and using isql from terminal, it works. When i try to use > the database example, i use odbc connection and it works but when i try to > run a simple query that return almost a row, gambas crashes with error #11 > with this log:(gdb) runStarting program: /usr/local/bin/gbx2 -p[Thread > debugging using libthread_db enabled]Program received signal SIGSEGV, > Segmentation fault.0x01227a91 in SQLColAttributeW () from > /usr/lib/oracle/10.2.0.3/client/lib/libsqora.so.10.1(gdb) bt#0 0x01227a91 > in SQLColAttributeW () from > /usr/lib/oracle/10.2.0.3/client/lib/libsqora.so.10.1#1 0x00feb5a4 in > SQLColAttribute () from /usr/lib/libodbc.so.1#2 0x00fdf698 in query_fill > (db=0x825bba4, result=0x827ddc8, pos=0, buffer=0x828ec88, next=0) at > main.c:1179#3 0x00fd63b7 in load_buffer (_object=0x82fe260, vpos=0) at > CResult.c:145#4 0x00fd6d08 in DB_MakeResult (conn=0x825bb98, mode=0, > table_temp=0x0, query=0x8299c58 "select * from mytable") at > CResult.c:305#5 0x00fd4037 in CCONNECTION_exec (_object=0x825bb98, > _param=0x807f878) at CConnection.c:454#6 0x0804e92c in > EXEC_call_native (exec=0xfd3fd4 , object=0x825bb98, > type=135043168, param=0x807f878) at gbx_exec.c:844#7 0x0804f230 in > EXEC_native () at gbx_exec.c:962#8 0x0806bbd8 in EXEC_loop () at > gbx_exec_loop.c:1042#9 0x0804f533 in EXEC_function_loop () at > gbx_exec.c:703#10 0x0804f809 in EXEC_function_real () at gbx_exec.c:690#11 > 0x0805d54b in raise_event (observer=0x0, object=, > func_id=, nparam=0) at gbx_api.c:490#12 0x0805da63 in > GB_Raise (object=0x824aaa8, event_id=16, nparam=0) at gbx_api.c:594#13 > 0x00353e44 in gb_raise_button_Click (sender=0x824aec0) at > CButton.cpp:44#14 0x003324aa in gControl::emit (this=0xfdfba9, > signal=0x0) at gcontrol.cpp:1482---Type to continue, or q > to quit---#15 0x00337950 in bt_click (object=0x820da58, > data=0x824aec0) at gbutton.cpp:58#16 0x00a7adcc in > g_cclosure_marshal_VOID__VOID () from /usr/lib/libgobject-2.0.so.0#17 > 0x00a6d252 in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0#18 > 0x00a8199d in ?? () from /usr/lib/libgobject-2.0.so.0#19 0x00a82db4 in > g_signal_emit_valist () from /usr/lib/libgobject-2.0.so.0#20 0x00a83256 in > g_signal_emit () from /usr/lib/libgobject-2.0.so.0#21 0x003f7c7a in > gtk_button_clicked () from /usr/lib/libgtk-x11-2.0.so.0#22 0x003f9238 in > ?? () from /usr/lib/libgtk-x11-2.0.so.0#23 0x00a7adcc in > g_cclosure_marshal_VOID__VOID () from /usr/lib/libgobject-2.0.so.0#24 > 0x00a6b8b9 in ?? () from /usr/lib/libgobject-2.0.so.0#25 0x00a6d252 in > g_closure_invoke () from /usr/lib/libgobject-2.0.so.0#26 0x00a8123a in ?? > () from /usr/lib/libgobject-2.0.so.0#27 0x00a82db4 in g_signal_emit_valist > () from /usr/lib/libgobject-2.0.so.0#28 0x00a83256 in g_signal_emit () > from /usr/lib/libgobject-2.0.so.0#29 0x003f7d1a in gtk_button_released () > from /usr/lib/libgtk-x11-2.0.so.0#30 0x003f7d63 in ?? () from > /usr/lib/libgtk-x11-2.0.so.0#31 0x004b5424 in ?? () from > /usr/lib/libgtk-x11-2.0.so.0#32 0x00a6b8b9 in ?? () from > /usr/lib/libgobject-2.0.so.0#33 0x00a6d252 in g_closure_invoke () from > /usr/lib/libgobject-2.0.so.0#34 0x00a815e6 in ?? () from > /usr/lib/libgobject-2.0.so.0#35 0x00a82c33 in g_signal_emit_valist () from > /usr/lib/libgobject-2.0.so.0---Type to continue, or q to > quit---#36 0x00a83256 in g_signal_emit () from > /usr/lib/libgobject-2.0.so.0#37 0x005e2636 in ?? () from > /usr/lib/libgtk-x11-2.0.so.0#38 0x004ada5d in gtk_propagate_event () from > /usr/lib/libgtk-x11-2.0.so.0#39 0x004aee07 in gtk_main_do_event () from > /usr/lib/libgtk-x11-2.0.so.0#40 0x00361b4d in gambas_handle_event > (event=0x81236e8) at gapplication.cpp:532#41 0x007a339a in ?? () from > /usr/lib/libgdk-x11-2.0.so.0#42 0x00af05e5 in g_main_context_dispatch () > from /lib/libglib-2.0.so.0#43 0x00af42d8 in ?? () from > /lib/libglib-2.0.so.0#44 0x00af44b8 in g_main_context_iteration () from > /lib/libglib-2.0.so.0#45 0x004af1b3 in gtk_main_iteration_do () from > /usr/lib/libgtk-x11-2.0.so.0#46 0x0035f6de in do_iteration > (do_not_block=false, do_not_sleep=false) at main.cpp:470#47 0x0035fd15 > in my_loop () at main.cpp:398#48 0x08061c36 in main (argc=Cannot access > memory at address 0x1) at gbx.c:358(gdb) > > this is my odbc.ini[XXXX]Application Attributes = TAttributes > = WBatchAutocommitMode = IfAllSuccessfulBindAsFLOAT = > FCloseCursor = FDisableDPM = FDisableMTS = TDriver > = Oracle 10g ODBC driverDSN = XXXXEXECSchemaOpt = > EXECSyntax = TFailover = TFailoverDelay = > 10FailoverRetryCount = 10FetchBufferSize = > 64000ForceWCHAR = FLobs = TLongs = > TMetadataIdDefault = FQueryTimeout = TResultSets = > TServerName = XXXXXXXXXSQLGetData extensions = FTranslation > DLL = Translation Option = 0DisableRULEHint = > TUserID = > and odbcinst: > [Oracle 10g ODBC driver]Description = Oracle ODBC driver for Oracle > 10gDriver = > /usr/lib/oracle/10.2.0.3/client/lib/libsqora.so.10.1Setup = > FileUsage = CPTimeout = CPReuse = > > I replaced the database name for privacy but with isql t works: if i run > select * from mytable i can see the data.the program crashes during the > Exec method:PUBLIC SUB btnRun_Click() DIM rData AS Result DIM hForm AS > FRequest rData = $hConn.Exec(txtRequest.Text) > > Thx in advance for your support and apologize for my bad english. > > Stefano Balzani > Oops, your mail is unreadable without any newline: can you try to post it again differently so that I can read it? -- Beno?t From gambas at ...1... Wed Jun 30 18:02:32 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Wed, 30 Jun 2010 18:02:32 +0200 Subject: [Gambas-user] gambas3 search/replace global - really inconvenient Message-ID: <201006301802.32410.gambas@...1...> > > I guess what I'm suggesting is that within the same searchbox that pops > > up when you search a module, it has an option of 'search globally', and > > that then - F3 would just move to the next occurrence in the project, > > not just continue going and look for everything. > > I think that is good idea. > Maybe list in browse tab should refresh, > if something is changed in code and you click on that list. > Otherwise clicking on occurrence doesn't make correct jump to code. I'm aware of the problem, but didn't find a good fix at the moment. > > Also some files should be able to exclude from global search. > Example binary data files. > > BTW. Double clicking on binary file hangs IDE completely. > Way to unf*ck that is to edit .settings in project folder with gedit etc. > > Jussi > Yes, but how can I detect a "binary" file? -- Beno?t Minisini From gambas at ...1... Wed Jun 30 18:02:41 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Wed, 30 Jun 2010 18:02:41 +0200 Subject: [Gambas-user] Wizard: Skipping pages & Going Back Pages Message-ID: <201006301802.41806.gambas@...1...> > Hi List, > > I've a wizard, with several options on the first page, depending on which > radiobutton is set I want to 'skip over' some pages. This is ok, as it > seems if i use the Wizard1_BeforeChange() event, I can just set which page > I want it to go to (forward direction) that is. > > However, as users need to be able to go backwards, I can't figure out how > to do this in reverse, ie not show the unwanted pages that I've previously > skipped over. > > Any help appreciated. > > REgards > > Richard > If you want the wizard to ignore a page, disable the page: MyWizard[x].Enabled = False Regards, -- Beno?t Minisini From jussi.lahtinen at ...626... Wed Jun 30 18:31:31 2010 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Wed, 30 Jun 2010 19:31:31 +0300 Subject: [Gambas-user] gambas3 search/replace global - really inconvenient In-Reply-To: <201006301802.32410.gambas@...1...> References: <201006301802.32410.gambas@...1...> Message-ID: > Yes, but how can I detect a "binary" file? I'm not sure what would be easy way to do it. Gedit gives following error message from binary files: "gedit has not been able to detect the character encoding. Please check that you are not trying to open a binary file. Select a character encoding from the menu and try again." So, maybe with "file" command? I think there should be some library for this, as so many programs needs this kind of functionality (Ubuntu Desktop, browsers, editors, ... ). Or, if file has ".dat" etc at end, it is considered as binary. I hope someone knows more about this. Jussi From ron at ...1740... Wed Jun 30 18:26:27 2010 From: ron at ...1740... (Ron) Date: Wed, 30 Jun 2010 18:26:27 +0200 Subject: [Gambas-user] gambas3 search/replace global - really inconvenient In-Reply-To: <201006301802.32410.gambas@...1...> References: <201006301802.32410.gambas@...1...> Message-ID: With 'file' command???? This e-mail is sent from my Google phone. Kind regards, Ron. On Jun 30, 2010 6:02 PM, "Beno?t Minisini" wrote: >> > I guess what I'm suggesting is that within the same searchbox that pops >> > up when you search a module, it has an option of 'search globally', and >> > that then - F3 would just move to the next occurrence in the project, >> > not just continue going and look for everything. >> >> I think that is good idea. >> Maybe list in browse tab should refresh, >> if something is changed in code and you click on that list. >> Otherwise clicking on occurrence doesn't make correct jump to code. > > I'm aware of the problem, but didn't find a good fix at the moment. > >> >> Also some files should be able to exclude from global search. >> Example binary data files. >> >> BTW. Double clicking on binary file hangs IDE completely. >> Way to unf*ck that is to edit .settings in project folder with gedit etc. >> >> Jussi >> > > Yes, but how can I detect a "binary" file? > > -- > Beno?t Minisini > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by Sprint > What will you do first with EVO, the first 4G phone? > Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From jussi.lahtinen at ...626... Wed Jun 30 19:33:25 2010 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Wed, 30 Jun 2010 20:33:25 +0300 Subject: [Gambas-user] gambas3 search/replace global - really inconvenient In-Reply-To: References: <201006301802.32410.gambas@...1...> Message-ID: Yes, quick and dirty, not good way, but it works. What was the question..? Jussi On Wed, Jun 30, 2010 at 19:26, Ron wrote: > With 'file' command???? > > This e-mail is sent from my Google phone. > > Kind regards, > Ron. > > On Jun 30, 2010 6:02 PM, "Beno?t Minisini" > wrote: >>> > I guess what I'm suggesting is that within the same searchbox that pops >>> > up when you search a module, it has an option of 'search globally', and >>> > that then - F3 would just move to the next occurrence in the project, >>> > not just continue going and look for everything. >>> >>> I think that is good idea. >>> Maybe list in browse tab should refresh, >>> if something is changed in code and you click on that list. >>> Otherwise clicking on occurrence doesn't make correct jump to code. >> >> I'm aware of the problem, but didn't find a good fix at the moment. >> >>> >>> Also some files should be able to exclude from global search. >>> Example binary data files. >>> >>> BTW. Double clicking on binary file hangs IDE completely. >>> Way to unf*ck that is to edit .settings in project folder with gedit etc. >>> >>> Jussi >>> >> >> Yes, but how can I detect a "binary" file? >> >> -- >> Beno?t Minisini >> >> > ------------------------------------------------------------------------------ >> This SF.net email is sponsored by Sprint >> What will you do first with EVO, the first 4G phone? >> Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user > ------------------------------------------------------------------------------ > This SF.net email is sponsored by Sprint > What will you do first with EVO, the first 4G phone? > Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From pablo at ...2449... Wed Jun 30 19:41:19 2010 From: pablo at ...2449... (Pablo Ontivero) Date: Wed, 30 Jun 2010 19:41:19 +0200 Subject: [Gambas-user] Process output to TextArea Fail In-Reply-To: References: Message-ID: <56F24248-2016-493C-AE34-614A12A4E5AE@...2449...> Well, my system is Ubuntu 10.04, the version of gambas is the last release version on Ubuntu repo (2.19.0-2). I try with the QT version and the GTK+ version, but the fails, i don't notice any bug for the component. This answer your questions? Please tell me if you need more information. Thanks. From jussi.lahtinen at ...626... Wed Jun 30 19:59:49 2010 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Wed, 30 Jun 2010 20:59:49 +0300 Subject: [Gambas-user] Process output to TextArea Fail In-Reply-To: <56F24248-2016-493C-AE34-614A12A4E5AE@...2449...> References: <56F24248-2016-493C-AE34-614A12A4E5AE@...2449...> Message-ID: You wrote app fails, how? In what way? There is more than 255 instances on that list, but not on textarea? Crash? Jussi On Wed, Jun 30, 2010 at 20:41, Pablo Ontivero wrote: > Well, my system is Ubuntu 10.04, the version of gambas is the last release version on Ubuntu repo (2.19.0-2). I try with the QT version and the GTK+ version, but the fails, i don't notice any bug for the component. This answer your questions? Please tell me if you need more information. Thanks. > ------------------------------------------------------------------------------ > This SF.net email is sponsored by Sprint > What will you do first with EVO, the first 4G phone? > Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From rterry at ...1946... Wed Jun 30 23:32:24 2010 From: rterry at ...1946... (richard terry) Date: Thu, 1 Jul 2010 07:32:24 +1000 Subject: [Gambas-user] Wizard: Skipping pages & Going Back Pages In-Reply-To: <201006301802.41806.gambas@...1...> References: <201006301802.41806.gambas@...1...> Message-ID: <201007010732.24058.rterry@...1946...> On Thursday 01 July 2010 02:02:41 Beno?t Minisini wrote: > > Hi List, > > > > I've a wizard, with several options on the first page, depending on which > > radiobutton is set I want to 'skip over' some pages. This is ok, as it > > seems if i use the Wizard1_BeforeChange() event, I can just set which > > page I want it to go to (forward direction) that is. > > > > However, as users need to be able to go backwards, I can't figure out how > > to do this in reverse, ie not show the unwanted pages that I've > > previously skipped over. > > > > Any help appreciated. > > > > REgards > > > > Richard > > If you want the wizard to ignore a page, disable the page: > > MyWizard[x].Enabled = False > > Regards, > Ah, thanks, that makes sense. LIke most things in gambas its obvious if your thoughts dont try and make it complicated. REgards Richard