From bill at ...2351... Fri Jan 1 00:15:03 2010 From: bill at ...2351... (Bill Richman) Date: Thu, 31 Dec 2009 17:15:03 -0600 Subject: [Gambas-user] GAMBAS rules! (And a couple of questions about listboxes and control "arrays") In-Reply-To: <6324a42a0912310933i46271902h42dc3d0ea4df3e9b@...627...> References: <4B3CCF89.70704@...2350...> <6324a42a0912310933i46271902h42dc3d0ea4df3e9b@...627...> Message-ID: <4B3D3077.7060505@...2350...> Well, the "list view" suggestion worked wonderfully! Thank you! I had wondered how a "list view" differed from a "list box". Now I know... X-) I had been using an SQL request to populate a list box; I just didn't realize that there was a control available that allowed you to keep track of another value in a way not visible to the user. I'm trying to implement an array of the button objects, but I'm a little confused. I need the array to be available to all of the SUBS in the class where they were created (I hope I'm using the right terminology - I need them to be visible to all of the subroutines associated with the form they were created on). If I try "PUBLIC aButtons[150] AS Object" at the top of the code, like I do for all my other variables shared within the class, I'm told "Arrays are forbidden here!". Is there something else I should be doing? Since the form controls are what are calling the subs, it seems like I can't pass the whole aButtons array to the sub triggered by the event (a button click) since the form won't know about it if it's declared only inside the sub where the buttons were first created, right? Bill Richman - Lincoln, Nebraska Tilter at windmills, maker of pies in the sky, & curmudgeon email: bill at ...2350... web: www.geektrap.com Fabien Bodard wrote: > 2009/12/31 Bill Richman : > > use an object array and store all the object in it. > > > For i = 0 to 144 > hButton = New Button(me) as "button" > hButton.Tag = i > aButtons.Add(hButton) > > Next > > > aButtons[40].Text > > #3) My ListBoxes roll smoothly up and down from one list item to > another, like movie credits rolling by, and it's really slow. If I were > the user, this would make me crazy. Is there a way to get them to "jump > scroll" instead of "smooth scroll"? :-$ > > > ????? > i think this not depend on Gambas but on qt or gtk > > How do I determine this? From doriano.blengino at ...1909... Fri Jan 1 09:46:13 2010 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Fri, 01 Jan 2010 09:46:13 +0100 Subject: [Gambas-user] GAMBAS rules! (And a couple of questions about listboxes and control "arrays") In-Reply-To: <4B3D3077.7060505@...2350...> References: <4B3CCF89.70704@...2350...> <6324a42a0912310933i46271902h42dc3d0ea4df3e9b@...627...> <4B3D3077.7060505@...2350...> Message-ID: <4B3DB655.3080204@...1909...> Bill Richman ha scritto: > Well, the "list view" suggestion worked wonderfully! Thank you! I had > wondered how a "list view" differed from a "list box". Now I know... > X-) I had been using an SQL request to populate a list box; I just > didn't realize that there was a control available that allowed you to > keep track of another value in a way not visible to the user. I'm > trying to implement an array of the button objects, but I'm a little > confused. I need the array to be available to all of the SUBS in the > class where they were created (I hope I'm using the right terminology - > I need them to be visible to all of the subroutines associated with the > form they were created on). If I try "PUBLIC aButtons[150] AS Object" > at the top of the code, like I do for all my other variables shared > within the class, I'm told "Arrays are forbidden here!". Is there > something else I should be doing? Since the form controls are what are > calling the subs, it seems like I can't pass the whole aButtons array to > the sub triggered by the event (a button click) since the form won't > know about it if it's declared only inside the sub where the buttons > were first created, right? > I understand your problem: you are coming from another programming language, and you are trying to use the other language's concepts. Gambas does not implement certain things, and does implement others. You have a lot of buttons, so it is better to create them from code, as Fabien suggested: > For i = 0 to 144 > > hButton = New Button(me) as "button" > > hButton.Tag = i > > aButtons.Add(hButton) > > > > Next > > > > > > aButtons[40].Text > > (note that in the code suggested 145 buttons are created, not 144...) To store the 144 handles you use an array of objects. In gambas you can not declare typed array of objects, only generic array (or lists). Put this declaration at the beginning of the class: private aButtons as new Object[] Note that "aButtons" is not an array, but an object, and as such you must instantiate it with NEW. Fortunately you can do it at the same time as the declaration. In the above cycle you will want to set other properties, like X, Y and Text. The Tag property will be handy later. Now, you want to assign event handlers to your buttons. When creating the buttons, each one is created with NEW and a strange clause "AS blahblahblah", in this case AS "button". This AS clause (which is not mandatory) tells gambas that events raised by the button will be named button_xxxxx, where xxxxx is the name of the event. To get your handler execute when a button is clicked, you write: public sub button_click() ... ... end Every time one of those buttons is clicked, the button_click subroutine is executed. But inside that subroutine you must know what button was clicked, if the buttons all do different things. Fortunately again, every time an event is fired a hidden variable named LAST is set: it contains a reference to the object which raised the event. So use things like this: public sub button_click() print "Clicked button #" & LAST.Tag print "The label of the button is " & LAST.Text ... end May be that you don't need at all to store the reference of the buttons (aButtons.add(...)), because in the text and tag properties of the buttons themselves you can put enough informations to do your job. But, if you want, you can use the tag property to get back to the handler of the button: we used the tag property to store the index of the button inside the array. Suppose that you want to remember, for later use, what was the last button clicked: private last_clicked_button as Button public sub button_click() print "Clicked button #" & LAST.Tag last_clicked_button = aButtons[LAST.Tag] ' Tag is an index inside the array ' but the following is the same... faster and cleaner last_clicked_button = LAST end Hope this is enough to get you started. A couple thing to better clarify: the array (or list) aButtons, and the variable LAST, are not strong typed. In gambas all the class identifiers are dynamic, so the compiler does not know exactly what such an object is. It will let you write things that will be checked only at runtime. So, in button_click(), you can write "LAST.NonExistent = false". The compiler will be happy about that, and you will get a run-time error. The Object[] class lets you store handlers for other objects, and you can mix several types of objects in the same array. This is useful, but it can lead to errors. The second thing is that LAST is the most easy and clear way to access an object inside an event handler. If you use LAST, you can change the name of your object and only have to change the name of the subroutine, not all the code inside it. Regards, -- Doriano Blengino "Listen twice before you speak. This is why we have two ears, but only one mouth." From doriano.blengino at ...1909... Fri Jan 1 09:52:58 2010 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Fri, 01 Jan 2010 09:52:58 +0100 Subject: [Gambas-user] GAMBAS rules! (And a couple of questions about listboxes and control "arrays") In-Reply-To: <4B3D3077.7060505@...2350...> References: <4B3CCF89.70704@...2350...> <6324a42a0912310933i46271902h42dc3d0ea4df3e9b@...627...> <4B3D3077.7060505@...2350...> Message-ID: <4B3DB7EA.2090600@...1909...> Bill Richman ha scritto: > >> #3) My ListBoxes roll smoothly up and down from one list item to >> another, like movie credits rolling by, and it's really slow. If I were >> the user, this would make me crazy. Is there a way to get them to "jump >> scroll" instead of "smooth scroll"? :-$ >> >> >> ????? >> i think this not depend on Gambas but on qt or gtk >> >> >> > How do I determine this? > Forgot to answer to the last question. Gambas can use both GTK and QT without changing a single line of code. Open the project properties window, at the tab Components. There you can choose to use gb.gtk or gb.qt. QT works better and faster; GTK is nicer and totally free, but lacks a few things and has some glitch. Given that it is so simple to switch from one to another, try both. There is also the switcher component, which chooses automatically QT or GTK, to have some fun. Regards, -- Doriano Blengino "Listen twice before you speak. This is why we have two ears, but only one mouth." From nospam.nospam.nospam at ...626... Fri Jan 1 14:51:03 2010 From: nospam.nospam.nospam at ...626... (Kadaitcha Man) Date: Sat, 2 Jan 2010 00:51:03 +1100 Subject: [Gambas-user] Socket Limitations Message-ID: gb3, qt4 on Ubuntu 9.10. Are there any known limits on the size of data that can be sent down a socket in one gulp? I have a proxy written in gb3 that uses Socket to communicate with a remote server and uses ServerSocket to get data from the client. ServerSocket seems to gag when given anything above 44k or so but it eventually recovers and retrieves the data being forced down it's throat. However Socket consistently fails between 41 and 47k and never ever recovers. I have proved that Socket is the issue and not ServerSocket by sending 41-47k chunks of data down Socket without ServerSocket being involved in the transaction. I know I can break the data up into multiple chunks before sending it through the socket but the proxy is already doing some very heavy-duty signalling, which proxies are wont to do, so I'm loathe to add even more signals into the proxy. I just want to know if there are known limits on Socket. I don't want to break up the data into multiple chunks for the reason I just mentioned so if I am forced to limit the size of data going down a socket then that's fine by me. It's a design decision I'll have to make. I merely want to know. Well, I want to know for sure because I certainly suspect it :) I am using Read# and Write# commands with Lof(), btw. Oh, I decided to post this to the user list rather than the developer list because I'm not convinced it's a gb3-specific issue. From gambas at ...1... Fri Jan 1 15:03:44 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Fri, 1 Jan 2010 15:03:44 +0100 Subject: [Gambas-user] Socket Limitations In-Reply-To: References: Message-ID: <201001011503.44598.gambas@...1...> > gb3, qt4 on Ubuntu 9.10. > > Are there any known limits on the size of data that can be sent down a > socket in one gulp? > > I have a proxy written in gb3 that uses Socket to communicate with a > remote server and uses ServerSocket to get data from the client. > ServerSocket seems to gag when given anything above 44k or so but it > eventually recovers and retrieves the data being forced down it's > throat. However Socket consistently fails between 41 and 47k and never > ever recovers. > > I have proved that Socket is the issue and not ServerSocket by sending > 41-47k chunks of data down Socket without ServerSocket being involved > in the transaction. > > I know I can break the data up into multiple chunks before sending it > through the socket but the proxy is already doing some very heavy-duty > signalling, which proxies are wont to do, so I'm loathe to add even > more signals into the proxy. I just want to know if there are known > limits on Socket. I don't want to break up the data into multiple > chunks for the reason I just mentioned so if I am forced to limit the > size of data going down a socket then that's fine by me. It's a design > decision I'll have to make. > > I merely want to know. Well, I want to know for sure because I > certainly suspect it :) > > I am using Read# and Write# commands with Lof(), btw. > > Oh, I decided to post this to the user list rather than the developer > list because I'm not convinced it's a gb3-specific issue. > Do you mean that if you write more than 41K of data on a Socket, it fails silently? Please provide the source code of the network communication, otherwise I can't see what you are doing exactly. Regards, -- Beno?t Minisini From nospam.nospam.nospam at ...626... Fri Jan 1 15:29:40 2010 From: nospam.nospam.nospam at ...626... (Kadaitcha Man) Date: Sat, 2 Jan 2010 01:29:40 +1100 Subject: [Gambas-user] Socket Limitations In-Reply-To: <201001011503.44598.gambas@...1...> References: <201001011503.44598.gambas@...1...> Message-ID: 2010/1/2 Beno?t Minisini : > Do you mean that if you write more than 41K of data on a Socket, it fails > silently? Yes, precisely. > Please provide the source code of the network communication, > otherwise I can't see what you are doing exactly. I will have to mock something up over the coming days as the project is now advanced enough to be using real client data, which I can't send you. Thanks for the reply. From bill at ...2351... Fri Jan 1 15:31:15 2010 From: bill at ...2351... (Bill Richman) Date: Fri, 01 Jan 2010 08:31:15 -0600 Subject: [Gambas-user] GAMBAS rules! (And a couple of questions about listboxes and control "arrays") In-Reply-To: <4B3DB655.3080204@...1909...> References: <4B3CCF89.70704@...2350...> <6324a42a0912310933i46271902h42dc3d0ea4df3e9b@...627...> <4B3D3077.7060505@...2350...> <4B3DB655.3080204@...1909...> Message-ID: <4B3E0733.1060303@...2350...> Hi. Thanks for taking the time to explain all of that. I actually had most of the code figured out and working already, but you've filled in some information about "why" it works that I wasn't sure about. I had the code creating the buttons, and the "button_click" sub with the "LAST" value being stored. I was having trouble getting the array declared in a way that would make it available to the entire class and still keep the compiler happy. Mostly through trial-and-error, I figured out that I could use: PUBLIC aButtons AS Object[150] to accomplish what I needed to. I don't have the "NEW" clause in there; I'm not sure if that will come back to bite me or not. I have a few things to clean up in the user interface and I think my project will be ready for use. I'll probably be back to bother you guys again, though. :-) P.S. - Happy New Year, everyone! -Bill Bill Richman - Lincoln, Nebraska Tilter at windmills, maker of pies in the sky, & curmudgeon email: bill at ...2350... web: www.geektrap.com From gambas at ...1... Fri Jan 1 15:47:58 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Fri, 1 Jan 2010 15:47:58 +0100 Subject: [Gambas-user] Corrupted Form In-Reply-To: <200912311327.11804.pinozollo@...626...> References: <200912311327.11804.pinozollo@...626...> Message-ID: <201001011547.58225.gambas@...1...> > Hi Benoit, > > I include a small project that gives a problem: > Whenever I modify the form in the IDE the form comes with an extra ) which > generates an error at executing the program. > > "), ("modem.get_name ")]) <----- the last ) is hurting > > The only solution by now is to edit Fmain.form with gedit and run again. > > Happy 2010 ! In gambaS ! > > Pino > Fixed in revision #2577. Only ListBox or ComboBox having exactly 31 items defined in the IDE got the bug. You are not lucky! :-) Regards, -- Beno?t Minisini From bill-lancaster at ...2231... Fri Jan 1 15:51:45 2010 From: bill-lancaster at ...2231... (Bill-Lancaster) Date: Fri, 1 Jan 2010 06:51:45 -0800 (PST) Subject: [Gambas-user] sdl.sound plays mp3 too fast Message-ID: <26985683.post@...1379...> Hello Some of my mp3 files play at the wrong speed using sdl.sound. They play correctly using commercial players . I notice that they are MPEG Version 2 files. Is this the cause? Any ideas? Regards Bill Lancaster -- View this message in context: http://old.nabble.com/sdl.sound-plays-mp3-too-fast-tp26985683p26985683.html Sent from the gambas-user mailing list archive at Nabble.com. From doriano.blengino at ...1909... Fri Jan 1 16:05:36 2010 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Fri, 01 Jan 2010 16:05:36 +0100 Subject: [Gambas-user] GAMBAS rules! (And a couple of questions about listboxes and control "arrays") In-Reply-To: <4B3E0733.1060303@...2350...> References: <4B3CCF89.70704@...2350...> <6324a42a0912310933i46271902h42dc3d0ea4df3e9b@...627...> <4B3D3077.7060505@...2350...> <4B3DB655.3080204@...1909...> <4B3E0733.1060303@...2350...> Message-ID: <4B3E0F40.3000706@...1909...> Bill Richman ha scritto: > Hi. Thanks for taking the time to explain all of that. I actually had > most of the code figured out and working already, but you've filled in > some information about "why" it works that I wasn't sure about. I had > the code creating the buttons, and the "button_click" sub with the > "LAST" value being stored. I was having trouble getting the array > declared in a way that would make it available to the entire class and > still keep the compiler happy. Mostly through trial-and-error, I > figured out that I could use: PUBLIC aButtons AS Object[150] to > accomplish what I needed to. I don't have the "NEW" clause in there; > I'm not sure if that will come back to bite me or not. I have a few > things to clean up in the user interface and I think my project will be > ready for use. I'll probably be back to bother you guys again, though. > :-) > > P.S. - Happy New Year, everyone! > Thanks for the whishes, and Happy New Year to you and everybody in this list. About the declaration, if the compiler accepts "PUBLIC aButtons AS Object[150]" I think it will not byte you... but at this point it's me that gets confused :-)... so I go for some experiment, and find the following. The first way I suggested, "new object[]", is a growing list of objects. The notation you use is a static array; i made some experiment, and found that there is no real differences between the two - your declaration is really a dynamic list containing already a number of elements. There is always something to learn... You insist on troubles having the array visible in the whole class, but it seems to me that there can be no troubles - when you declare variables in a class, there is no way to hide those variables from the class itself; you can only declare them PRIVATE to hide them from the outside. So, every declaration would get what you wanted. Anyway, it works - and this is good. Happy typing, -- Doriano Blengino "Listen twice before you speak. This is why we have two ears, but only one mouth." From ulusoyab at ...43... Fri Jan 1 16:54:03 2010 From: ulusoyab at ...43... (abdurrahman ulusoy) Date: Fri, 1 Jan 2010 07:54:03 -0800 (PST) Subject: [Gambas-user] Problem updating svn from revision 2209 In-Reply-To: <200908091723.35071.gambas@...1...> Message-ID: <766717.37439.qm@...2230...> when i "svn update" ?then "./reconf" ?error.? trunk $ ./reconf?Remember to add `AC_PROG_LIBTOOL' to `configure.ac'.You should update your `aclocal.m4' by running aclocal.autoreconf: Entering directory `.'autoreconf: configure.ac: not using Gettextautoreconf: running: aclocal/usr/share/aclocal/libgstroke.m4:29: warning: underquoted definition of smr_ARG_WITHLIB/usr/share/aclocal/libgstroke.m4:29: ? run info '(automake)Extending aclocal'/usr/share/aclocal/libgstroke.m4:29: ? or see http://sources.redhat.com/automake/automake.html#Extending-aclocalautoreconf: configure.ac: tracingautoreconf: configure.ac: adding subdirectory main to autoreconfautoreconf: Entering directory `main'autoreconf: running: aclocal -I m4 --install/usr/share/aclocal/libgstroke.m4:29: warning: underquoted definition of smr_ARG_WITHLIB/usr/share/aclocal/libgstroke.m4:29: ? run info '(automake)Extending aclocal'/usr/share/aclocal/libgstroke.m4:29: ? or see http://sources.redhat.com/automake/automake.html#Extending-aclocalautoreconf: configure.ac: not using Libtoolautoreconf: running: /usr/bin/autoconfautoreconf: running: /usr/bin/autoheaderautoreconf: running: automake --add-missing --copy --no-forcegbc/Makefile.am:5: Libtool library used but `LIBTOOL' is undefinedgbc/Makefile.am:5: ? The usual way to define `LIBTOOL' is to add `AC_PROG_LIBTOOL'gbc/Makefile.am:5: ? to `configure.ac' and run `aclocal' and `autoconf' again.gbc/Makefile.am:5: ? If `AC_PROG_LIBTOOL' is in `configure.ac', make suregbc/Makefile.am:5: ? its definition is in aclocal's search path.gbx/Makefile.am:5: library used but `RANLIB' is undefinedgbx/Makefile.am:5: ? The usual way to define `RANLIB' is to add `AC_PROG_RANLIB'gbx/Makefile.am:5: ? to `configure.ac' and run `autoconf' again.gbx/Makefile.am:6: Libtool library used but `LIBTOOL' is undefinedgbx/Makefile.am:6: ? The usual way to define `LIBTOOL' is to add `AC_PROG_LIBTOOL'gbx/Makefile.am:6: ? to `configure.ac' and run `aclocal' and `autoconf' again.gbx/Makefile.am:6: ? If `AC_PROG_LIBTOOL' is in `configure.ac', make suregbx/Makefile.am:6: ? its definition is in aclocal's search path.lib/compress/Makefile.am:4: Libtool library used but `LIBTOOL' is undefinedlib/compress/Makefile.am:4: ? The usual way to define `LIBTOOL' is to add `AC_PROG_LIBTOOL'lib/compress/Makefile.am:4: ? to `configure.ac' and run `aclocal' and `autoconf' again.lib/compress/Makefile.am:4: ? If `AC_PROG_LIBTOOL' is in `configure.ac', make surelib/compress/Makefile.am:4: ? its definition is in aclocal's search path.lib/db/Makefile.am:4: Libtool library used but `LIBTOOL' is undefinedlib/db/Makefile.am:4: ? The usual way to define `LIBTOOL' is to add `AC_PROG_LIBTOOL'lib/db/Makefile.am:4: ? to `configure.ac' and run `aclocal' and `autoconf' again.lib/db/Makefile.am:4: ? If `AC_PROG_LIBTOOL' is in `configure.ac', make surelib/db/Makefile.am:4: ? its definition is in aclocal's search path.lib/debug/Makefile.am:4: Libtool library used but `LIBTOOL' is undefinedlib/debug/Makefile.am:4: ? The usual way to define `LIBTOOL' is to add `AC_PROG_LIBTOOL'lib/debug/Makefile.am:4: ? to `configure.ac' and run `aclocal' and `autoconf' again.lib/debug/Makefile.am:4: ? If `AC_PROG_LIBTOOL' is in `configure.ac', make surelib/debug/Makefile.am:4: ? its definition is in aclocal's search path.lib/draw/Makefile.am:3: Libtool library used but `LIBTOOL' is undefinedlib/draw/Makefile.am:3: ? The usual way to define `LIBTOOL' is to add `AC_PROG_LIBTOOL'lib/draw/Makefile.am:3: ? to `configure.ac' and run `aclocal' and `autoconf' again.lib/draw/Makefile.am:3: ? If `AC_PROG_LIBTOOL' is in `configure.ac', make surelib/draw/Makefile.am:3: ? its definition is in aclocal's search path.lib/eval/Makefile.am:4: Libtool library used but `LIBTOOL' is undefinedlib/eval/Makefile.am:4: ? The usual way to define `LIBTOOL' is to add `AC_PROG_LIBTOOL'lib/eval/Makefile.am:4: ? to `configure.ac' and run `aclocal' and `autoconf' again.lib/eval/Makefile.am:4: ? If `AC_PROG_LIBTOOL' is in `configure.ac', make surelib/eval/Makefile.am:4: ? its definition is in aclocal's search path.lib/gui/Makefile.am:4: Libtool library used but `LIBTOOL' is undefinedlib/gui/Makefile.am:4: ? The usual way to define `LIBTOOL' is to add `AC_PROG_LIBTOOL'lib/gui/Makefile.am:4: ? to `configure.ac' and run `aclocal' and `autoconf' again.lib/gui/Makefile.am:4: ? If `AC_PROG_LIBTOOL' is in `configure.ac', make surelib/gui/Makefile.am:4: ? its definition is in aclocal's search path.lib/image.effect/Makefile.am:5: Libtool library used but `LIBTOOL' is undefinedlib/image.effect/Makefile.am:5: ? The usual way to define `LIBTOOL' is to add `AC_PROG_LIBTOOL'lib/image.effect/Makefile.am:5: ? to `configure.ac' and run `aclocal' and `autoconf' again.lib/image.effect/Makefile.am:5: ? If `AC_PROG_LIBTOOL' is in `configure.ac', make surelib/image.effect/Makefile.am:5: ? its definition is in aclocal's search path.lib/image/Makefile.am:5: Libtool library used but `LIBTOOL' is undefinedlib/image/Makefile.am:5: ? The usual way to define `LIBTOOL' is to add `AC_PROG_LIBTOOL'lib/image/Makefile.am:5: ? to `configure.ac' and run `aclocal' and `autoconf' again.lib/image/Makefile.am:5: ? If `AC_PROG_LIBTOOL' is in `configure.ac', make surelib/image/Makefile.am:5: ? its definition is in aclocal's search path.lib/option/Makefile.am:4: Libtool library used but `LIBTOOL' is undefinedlib/option/Makefile.am:4: ? The usual way to define `LIBTOOL' is to add `AC_PROG_LIBTOOL'lib/option/Makefile.am:4: ? to `configure.ac' and run `aclocal' and `autoconf' again.lib/option/Makefile.am:4: ? If `AC_PROG_LIBTOOL' is in `configure.ac', make surelib/option/Makefile.am:4: ? its definition is in aclocal's search path.lib/vb/Makefile.am:4: Libtool library used but `LIBTOOL' is undefinedlib/vb/Makefile.am:4: ? The usual way to define `LIBTOOL' is to add `AC_PROG_LIBTOOL'lib/vb/Makefile.am:4: ? to `configure.ac' and run `aclocal' and `autoconf' again.lib/vb/Makefile.am:4: ? If `AC_PROG_LIBTOOL' is in `configure.ac', make surelib/vb/Makefile.am:4: ? its definition is in aclocal's search path.autoreconf: automake failed with exit status: 1 ___________________________________________________________________ Yahoo! T?rkiye a??ld?! http://yahoo.com.tr ?nternet ?zerindeki en iyi i?eri?i Yahoo! T?rkiye sizlere sunuyor! From gambas.fr at ...626... Fri Jan 1 17:24:00 2010 From: gambas.fr at ...626... (Fabien Bodard) Date: Fri, 1 Jan 2010 17:24:00 +0100 Subject: [Gambas-user] GAMBAS rules! (And a couple of questions about listboxes and control "arrays") In-Reply-To: <4B3E0F40.3000706@...1909...> References: <4B3CCF89.70704@...2350...> <6324a42a0912310933i46271902h42dc3d0ea4df3e9b@...627...> <4B3D3077.7060505@...2350...> <4B3DB655.3080204@...1909...> <4B3E0733.1060303@...2350...> <4B3E0F40.3000706@...1909...> Message-ID: <6324a42a1001010824v321cdacfu85b0a46fe4a3731f@...627...> 2010/1/1 Doriano Blengino : > Bill Richman ha scritto: >> Hi. ?Thanks for taking the time to explain all of that. ?I actually had >> most of the code figured out and working already, but you've filled in >> some information about "why" it works that I wasn't sure about. ?I had >> the code creating the buttons, and the "button_click" sub with the >> "LAST" value being stored. ?I was having trouble getting the array >> declared in a way that would make it available to the entire class and >> still keep the compiler happy. ?Mostly through trial-and-error, I >> figured out that I could use: ?PUBLIC aButtons AS Object[150] to >> accomplish what I needed to. ?I don't have the "NEW" clause in there; >> I'm not sure if that will come back to bite me or not. ?I have a few >> things to clean up in the user interface and I think my project will be >> ready for use. ?I'll probably be back to bother you guys again, though. >> :-) >> >> P.S. ?- Happy New Year, everyone! >> > Thanks for the whishes, and Happy New Year to you and everybody in this > list. > > About the declaration, if the compiler accepts "PUBLIC aButtons AS > Object[150]" I think it will not byte you... but at this point it's me > that gets confused :-)... so I go for some experiment, and find the > following. > > The first way I suggested, "new object[]", is a growing list of objects. > The notation you use is a static array; no, a static array is defined like that : Public aButton[150] as Object This notation : PUBLIC aButtons AS Object[150] define a dynamic array but setup 150 entries http://gambasdoc.org/help/lang/arraydecl?show !!! Do not use static arrays as local variables. It works at the moment, but may be removed in the future. !!! i made some experiment, and > found that there is no real differences between the two - your > declaration is really a dynamic list containing already a number of > elements. There is always something to learn... > > You insist on troubles having the array visible in the whole class, but > it seems to me that there can be no troubles - when you declare > variables in a class, there is no way to hide those variables from the > class itself; you can only declare them PRIVATE to hide them from the > outside. So, every declaration would get what you wanted. > > Anyway, it works - and this is good. > > Happy typing, > > -- > Doriano Blengino > > "Listen twice before you speak. > This is why we have two ears, but only one mouth." > > > ------------------------------------------------------------------------------ > This SF.Net email is sponsored by the Verizon Developer Community > Take advantage of Verizon's best-in-class app development support > A streamlined, 14 day to market process makes app distribution fast and easy > Join now and get one step closer to millions of Verizon customers > http://p.sf.net/sfu/verizon-dev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From mohareve at ...626... Fri Jan 1 17:52:05 2010 From: mohareve at ...626... (M. Cs.) Date: Fri, 1 Jan 2010 17:52:05 +0100 Subject: [Gambas-user] Should i upgrade to gambas3 In-Reply-To: <4B3D0026.6070107@...1000...> References: <26979805.post@...1379...> <4B3CD58E.4060006@...1000...> <1262278596.25548.37.camel@...1936...> <26981179.post@...1379...> <4B3D0026.6070107@...1000...> Message-ID: >From the Lucid repositories, you can upgrade Gambas2 to the version 2.15. I'm on Karmic, but it should be working with Jaunty too. Use Gambas3 only if you're writing programs for your own use, because the Gambas3 is not a version available for end users. Happy New Year! From doriano.blengino at ...1909... Fri Jan 1 17:58:53 2010 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Fri, 01 Jan 2010 17:58:53 +0100 Subject: [Gambas-user] GAMBAS rules! (And a couple of questions about listboxes and control "arrays") In-Reply-To: <6324a42a1001010824v321cdacfu85b0a46fe4a3731f@...627...> References: <4B3CCF89.70704@...2350...> <6324a42a0912310933i46271902h42dc3d0ea4df3e9b@...627...> <4B3D3077.7060505@...2350...> <4B3DB655.3080204@...1909...> <4B3E0733.1060303@...2350...> <4B3E0F40.3000706@...1909...> <6324a42a1001010824v321cdacfu85b0a46fe4a3731f@...627...> Message-ID: <4B3E29CD.4070904@...1909...> Fabien Bodard ha scritto: > 2010/1/1 Doriano Blengino : > >> Bill Richman ha scritto: >> >>> Hi. Thanks for taking the time to explain all of that. I actually had >>> most of the code figured out and working already, but you've filled in >>> some information about "why" it works that I wasn't sure about. I had >>> the code creating the buttons, and the "button_click" sub with the >>> "LAST" value being stored. I was having trouble getting the array >>> declared in a way that would make it available to the entire class and >>> still keep the compiler happy. Mostly through trial-and-error, I >>> figured out that I could use: PUBLIC aButtons AS Object[150] to >>> accomplish what I needed to. I don't have the "NEW" clause in there; >>> I'm not sure if that will come back to bite me or not. I have a few >>> things to clean up in the user interface and I think my project will be >>> ready for use. I'll probably be back to bother you guys again, though. >>> :-) >>> >>> >> The first way I suggested, "new object[]", is a growing list of objects. >> The notation you use is a static array; >> > no, a static array is defined like that : > > Public aButton[150] as Object > > This notation : > PUBLIC aButtons AS Object[150] > > define a dynamic array but setup 150 entries > > http://gambasdoc.org/help/lang/arraydecl?show > > !!! Do not use static arrays as local variables. It works at the > moment, but may be removed in the future. !!! > For the second time today I must say there is always something to learn. Thanks. In about three weeks I will be able to distinguish the two cases... I am intelligent, did you know? :-) -- Doriano Blengino "Listen twice before you speak. This is why we have two ears, but only one mouth." From gambas.fr at ...626... Fri Jan 1 18:21:23 2010 From: gambas.fr at ...626... (Fabien Bodard) Date: Fri, 1 Jan 2010 18:21:23 +0100 Subject: [Gambas-user] I wish an happy new year to all the Gambas Users ! Message-ID: <6324a42a1001010921g69c9cefcv2fe1b39356052e3@...627...> From jussi.lahtinen at ...626... Fri Jan 1 18:53:32 2010 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Fri, 1 Jan 2010 19:53:32 +0200 Subject: [Gambas-user] Not sure about what type of project to use, pls advise In-Reply-To: References: <26957051.post@...1379...> <4B3A3A26.4090007@...1000...> <384d3900912301235s2211ebe9gb722f2fe15ff5731@...627...> Message-ID: <384d3901001010953m11375f5j2aad5cbd2599b878@...627...> Yes, they are issues to consider, if you are not willing to pay for license. Jussi On Thu, Dec 31, 2009 at 01:10, Kadaitcha Man wrote: > 2009/12/31 Jussi Lahtinen : >> License issues... >> I have understand that GTK+ is free, Qt3 is free only for >> non-proprietary software, >> and Qt4 is free for proprietary software also. > > If those are issues that anyone need consider then how can the likes > of ATI and nVidia create control panels for their proprietary drivers? > > ------------------------------------------------------------------------------ > This SF.Net email is sponsored by the Verizon Developer Community > Take advantage of Verizon's best-in-class app development support > A streamlined, 14 day to market process makes app distribution fast and easy > Join now and get one step closer to millions of Verizon customers > http://p.sf.net/sfu/verizon-dev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From jussi.lahtinen at ...626... Fri Jan 1 19:02:10 2010 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Fri, 1 Jan 2010 20:02:10 +0200 Subject: [Gambas-user] Not sure about what type of project to use, pls advise In-Reply-To: <384d3901001010953m11375f5j2aad5cbd2599b878@...627...> References: <26957051.post@...1379...> <4B3A3A26.4090007@...1000...> <384d3900912301235s2211ebe9gb722f2fe15ff5731@...627...> <384d3901001010953m11375f5j2aad5cbd2599b878@...627...> Message-ID: <384d3901001011002v71113ef3g62029e2883d32eef@...627...> About Qt3 commercial developer license. http://qt.nokia.com/products/licensing Jussi On Fri, Jan 1, 2010 at 19:53, Jussi Lahtinen wrote: > Yes, they are issues to consider, if you are not willing to pay for license. > > Jussi > > > On Thu, Dec 31, 2009 at 01:10, Kadaitcha Man > wrote: >> 2009/12/31 Jussi Lahtinen : >>> License issues... >>> I have understand that GTK+ is free, Qt3 is free only for >>> non-proprietary software, >>> and Qt4 is free for proprietary software also. >> >> If those are issues that anyone need consider then how can the likes >> of ATI and nVidia create control panels for their proprietary drivers? >> >> ------------------------------------------------------------------------------ >> This SF.Net email is sponsored by the Verizon Developer Community >> Take advantage of Verizon's best-in-class app development support >> A streamlined, 14 day to market process makes app distribution fast and easy >> Join now and get one step closer to millions of Verizon customers >> http://p.sf.net/sfu/verizon-dev2dev >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > From nospam.nospam.nospam at ...626... Sat Jan 2 01:42:04 2010 From: nospam.nospam.nospam at ...626... (Kadaitcha Man) Date: Sat, 2 Jan 2010 11:42:04 +1100 Subject: [Gambas-user] Not sure about what type of project to use, pls advise In-Reply-To: <384d3901001011002v71113ef3g62029e2883d32eef@...627...> References: <26957051.post@...1379...> <4B3A3A26.4090007@...1000...> <384d3900912301235s2211ebe9gb722f2fe15ff5731@...627...> <384d3901001010953m11375f5j2aad5cbd2599b878@...627...> <384d3901001011002v71113ef3g62029e2883d32eef@...627...> Message-ID: 2010/1/2 Jussi Lahtinen : > About Qt3 commercial developer license. > http://qt.nokia.com/products/licensing Interesting, however there is no mention of the different versions of Qt, nor of Qt4 being free for proprietary software, and purchasing the developer version is independent of writing non-free software if you need the additional drivers and features. From nospam.nospam.nospam at ...626... Sat Jan 2 06:08:32 2010 From: nospam.nospam.nospam at ...626... (Kadaitcha Man) Date: Sat, 2 Jan 2010 16:08:32 +1100 Subject: [Gambas-user] Socket Limitations In-Reply-To: References: <201001011503.44598.gambas@...1...> Message-ID: > 2010/1/2 Beno?t Minisini : >> Please provide the source code of the network communication, >> otherwise I can't see what you are doing exactly. Ok, here is some code that adequately reproduces the problem, and the exact same code with a smaller chunk of text that does not have the problem. SocketOK works. ChokeASocket is exactly 100% the same code except that it has a 48k file to transmit to the remote server. The remote server is already setup in the code so just run it. I recommend running SocketOK first. I have tried this with four independent servers and get the same result, SocketDeath. Regards, -------------- next part -------------- A non-text attachment was scrubbed... Name: SocketOK.tar.gz Type: application/x-gzip Size: 13429 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: ChokeASocket.tar.gz Type: application/x-gzip Size: 13177 bytes Desc: not available URL: From gambas at ...1... Sat Jan 2 18:57:05 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sat, 2 Jan 2010 18:57:05 +0100 Subject: [Gambas-user] Socket Limitations In-Reply-To: References: Message-ID: <201001021857.05639.gambas@...1...> > > 2010/1/2 Beno?t Minisini : > >> Please provide the source code of the network communication, > >> otherwise I can't see what you are doing exactly. > > Ok, here is some code that adequately reproduces the problem, and the > exact same code with a smaller chunk of text that does not have the > problem. > > SocketOK works. > > ChokeASocket is exactly 100% the same code except that it has a 48k > file to transmit to the remote server. > > The remote server is already setup in the code so just run it. I > recommend running SocketOK first. I have tried this with four > independent servers and get the same result, SocketDeath. > > Regards, > OK, I identified the problem: By default, Socket are in non-blocking mode (Blocking property set to False). So writing to it a big chunk fails. The bug is that instead of raising an error during the Write instruction, it fails silently. By having a blocking socket, your program works. So, two remarks: You should set the Blocking property to True in the Ready event. Maybe the Write instruction is silly: if the user wants to write a big chunk of bytes, we should temporarily enter blocking mode while writing. Or not? It is not evident, because you may want to write on the socket only during its Write event and need to never block. The problem is you can't know how many bytes to send without sending them, and Gambas at the moment does not tell how many bytes were successfully sent to the socket in one shot. Or maybe Socket must be blocking by default? Some thinking is needed there... -- Beno?t Minisini From doriano.blengino at ...1909... Sat Jan 2 19:43:31 2010 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Sat, 02 Jan 2010 19:43:31 +0100 Subject: [Gambas-user] Socket Limitations In-Reply-To: <201001021857.05639.gambas@...1...> References: <201001021857.05639.gambas@...1...> Message-ID: <4B3F93D3.6040803@...1909...> Beno?t Minisini ha scritto: >>> 2010/1/2 Beno?t Minisini : >>> >>>> Please provide the source code of the network communication, >>>> otherwise I can't see what you are doing exactly. >>>> >> Ok, here is some code that adequately reproduces the problem, and the >> exact same code with a smaller chunk of text that does not have the >> problem. >> >> SocketOK works. >> >> ChokeASocket is exactly 100% the same code except that it has a 48k >> file to transmit to the remote server. >> >> The remote server is already setup in the code so just run it. I >> recommend running SocketOK first. I have tried this with four >> independent servers and get the same result, SocketDeath. >> >> Regards, >> >> > > OK, I identified the problem: > > By default, Socket are in non-blocking mode (Blocking property set to False). > So writing to it a big chunk fails. The bug is that instead of raising an > error during the Write instruction, it fails silently. > > By having a blocking socket, your program works. > > So, two remarks: > > You should set the Blocking property to True in the Ready event. > > Maybe the Write instruction is silly: if the user wants to write a big chunk > of bytes, we should temporarily enter blocking mode while writing. Or not? > I could only say that "big chunk" is something very uncertain - may be 4096 bytes or 3. And that turning on or off the blocking mode should be, I think, never done automatically. May be that a timeout parameter could circumvent the problem, but again it is a bet. I mean, a timeout is a semi-blocking mode, but after a timeout occurs, one can only assume that the entire write has failed, even if, in fact, some data has been succefully written. > It is not evident, because you may want to write on the socket only during its > Write event and need to never block. The problem is you can't know how many > bytes to send without sending them, and Gambas at the moment does not tell how > many bytes were successfully sent to the socket in one shot. > > Or maybe Socket must be blocking by default? > > Some thinking is needed there... > > -- Doriano Blengino "Listen twice before you speak. This is why we have two ears, but only one mouth." From nospam.nospam.nospam at ...626... Sun Jan 3 01:09:27 2010 From: nospam.nospam.nospam at ...626... (Kadaitcha Man) Date: Sun, 3 Jan 2010 11:09:27 +1100 Subject: [Gambas-user] Socket Limitations In-Reply-To: <201001021857.05639.gambas@...1...> References: <201001021857.05639.gambas@...1...> Message-ID: 2010/1/3 Beno?t Minisini : >> > 2010/1/2 Beno?t Minisini : >> >> Please provide the source code of the network communication, >> >> otherwise I can't see what you are doing exactly. >> >> Ok, here is some code that adequately reproduces the problem, and the >> exact same code with a smaller chunk of text that does not have the >> problem. >> >> SocketOK works. >> >> ChokeASocket is exactly 100% the same code except that it has a 48k >> file to transmit to the remote server. >> >> The remote server is already setup in the code so just run it. I >> recommend running SocketOK first. I have tried this with four >> independent servers and get the same result, SocketDeath. >> >> Regards, >> > > OK, I identified the problem: > > By default, Socket are in non-blocking mode (Blocking property set to False). Blocking property? On a socket? AAARGGGGHHHHH! I checked high and low in the early days of this project on how to block a socket; it's what I wanted to do from the start. The documentation says not a single thing about such a property for Socket, unless you know that Blocking is inherited from Stream, which I only just this moment discovered. http://gambasdoc.org/help/comp/gb.net/socket I will see about updating the Socket page and add the Blocking property to the list of inherited properties. > So writing to it a big chunk fails. The bug is that instead of raising an > error during the Write instruction, it fails silently. > > By having a blocking socket, your program works. > > So, two remarks: > > You should set the Blocking property to True in the Ready event. Yes, I'll look at that, but why in the Ready event? Would there be any disadvantage or problem with setting the socket to block permanently when it is instantiated and its properties setup in code? Also, if it is set in the Ready event, would it needlessly get set again every time the socket became ready? > Maybe the Write instruction is silly: if the user wants to write a big chunk > of bytes, we should temporarily enter blocking mode while writing. Or not? I'm sorry, I don't understand "we". Do you mean the development team? I assume you do, from your later comments. Whatever you come up with, I would be all for the socket taking care of as much socket business as it should or could. > It is not evident, because you may want to write on the socket only during its > Write event and need to never block. The problem is you can't know how many > bytes to send without sending them, and Gambas at the moment does not tell how > many bytes were successfully sent to the socket in one shot. > > Or maybe Socket must be blocking by default? I think that sounds like a good idea. > Some thinking is needed there... Well, I'm glad I made that happen :) Just something for you to consider, in my opinion there is nothing wrong with synchronous sockets, or synchronous ServerSockets for that matter. Not only is synchronous mode appropriate in some circumstances, it would greatly reduce the complexity of managing events for an asynch object, especially in circumstances where an exact sequence of steps must take place on either end of the socket before anything gets done, as is the case in the example I sent you. That would make even more sense on a high speed network or where a client and server were on the same machine. You would also need a timeout setting. Yes, that would make the application block during transmission, but that's what the Busy cursor is for :) Regards, From nospam.nospam.nospam at ...626... Sun Jan 3 01:38:08 2010 From: nospam.nospam.nospam at ...626... (Kadaitcha Man) Date: Sun, 3 Jan 2010 11:38:08 +1100 Subject: [Gambas-user] Socket Limitations In-Reply-To: <4B3F93D3.6040803@...1909...> References: <201001021857.05639.gambas@...1...> <4B3F93D3.6040803@...1909...> Message-ID: 2010/1/3 Doriano Blengino : > after a timeout occurs, one can only assume that > the entire write has failed, even if, in fact, some data has been > succefully written. Yes, you are quite correct, but the problem of partial data transfer due to a timeout is not a problem for the socket to sort out. It is for the server and client to sort out between themselves. If you look at the sample code I attached earlier, there is this line: Private Const MULTILINE_BLOCK_TERMINATOR As String = "\r\n.\r\n" A CRLF "." CRLF sequence is the RFC3977 "termination octet". The server knows it has not got the data that client said it is sending until it gets the termination octet. If the socket goes quiet and the termination block has not been received after a specific time interval then the server closes the connection and discards the transaction. Again, I fully agree with your thoughts up there, but I genuinely question if it is a problem that the socket itself needs to be concerned about. In my view, it does not and should not. The socket only need alert the programmer to a timeout and try to gracefully exit. The socket shouldn't be taking care of network communications problems where a properly signalling pair of entities should already have a set of agreed rules to abide by when a transmission is incomplete. Regards, From nospam.nospam.nospam at ...626... Sun Jan 3 01:12:16 2010 From: nospam.nospam.nospam at ...626... (Kadaitcha Man) Date: Sun, 3 Jan 2010 11:12:16 +1100 Subject: [Gambas-user] Socket Limitations In-Reply-To: References: <201001021857.05639.gambas@...1...> Message-ID: 2010/1/3 Kadaitcha Man : > 2010/1/3 Beno?t Minisini : > http://gambasdoc.org/help/comp/gb.net/socket > > I will see about updating the Socket page and add the Blocking > property to the list of inherited properties. Before I do that, is Blocking gb3 specific? From gambas at ...1... Sun Jan 3 01:27:09 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sun, 3 Jan 2010 01:27:09 +0100 Subject: [Gambas-user] Socket Limitations In-Reply-To: References: <201001021857.05639.gambas@...1...> Message-ID: <201001030127.09509.gambas@...1...> > > Yes, I'll look at that, but why in the Ready event? Would there be any > disadvantage or problem with setting the socket to block permanently > when it is instantiated and its properties setup in code? Also, if it > is set in the Ready event, would it needlessly get set again every > time the socket became ready? > I would do that there because I'm sure the socket is opened once the socket is connected. Otherwise setting the Blocking property won't work. I can modify the stream class so that you can set the Blocking property even if the stream is not opened, but at the moment it does not work like that! Regards, -- Beno?t Minisini From gambas at ...1... Sun Jan 3 01:24:35 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sun, 3 Jan 2010 01:24:35 +0100 Subject: [Gambas-user] Socket Limitations In-Reply-To: References: <201001021857.05639.gambas@...1...> Message-ID: <201001030124.35411.gambas@...1...> > > I will see about updating the Socket page and add the Blocking > property to the list of inherited properties. > The Blocking property is already in the list of inherited properties. This is done automatically by the wiki. Regards, -- Beno?t Minisini From gambas at ...1... Sun Jan 3 01:27:45 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sun, 3 Jan 2010 01:27:45 +0100 Subject: [Gambas-user] sdl.sound plays mp3 too fast In-Reply-To: <26985683.post@...1379...> References: <26985683.post@...1379...> Message-ID: <201001030127.45710.gambas@...1...> > Hello > Some of my mp3 files play at the wrong speed using sdl.sound. They play > correctly using commercial players . I notice that they are MPEG Version 2 > files. > Is this the cause? > > Any ideas? > > Regards > > Bill Lancaster > Can you send me one mp3 that is played at the wrong speed? Is it played too fast or too low? -- Beno?t Minisini From gambas at ...1... Sun Jan 3 01:49:22 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sun, 3 Jan 2010 01:49:22 +0100 Subject: [Gambas-user] Socket Limitations In-Reply-To: References: Message-ID: <201001030149.22076.gambas@...1...> > 2010/1/3 Kadaitcha Man : > > 2010/1/3 Beno?t Minisini : > > > > http://gambasdoc.org/help/comp/gb.net/socket > > > > I will see about updating the Socket page and add the Blocking > > property to the list of inherited properties. > > Before I do that, is Blocking gb3 specific? > Yes. -- Beno?t Minisini From nospam.nospam.nospam at ...626... Sun Jan 3 02:11:53 2010 From: nospam.nospam.nospam at ...626... (Kadaitcha Man) Date: Sun, 3 Jan 2010 12:11:53 +1100 Subject: [Gambas-user] Socket Limitations In-Reply-To: <201001030127.09509.gambas@...1...> References: <201001021857.05639.gambas@...1...> <201001030127.09509.gambas@...1...> Message-ID: 2010/1/3 Beno?t Minisini : >> >> Yes, I'll look at that, but why in the Ready event? Would there be any >> disadvantage or problem with setting the socket to block permanently >> when it is instantiated and its properties setup in code? Also, if it >> is set in the Ready event, would it needlessly get set again every >> time the socket became ready? >> > > I would do that there because I'm sure the socket is opened once the socket is > connected. Otherwise setting the Blocking property won't work. Ok, that's fine. > I can modify the stream class so that you can set the Blocking property even > if the stream is not opened, but at the moment it does not work like that! I can't comment on that. I don't know what the implications are. From nospam.nospam.nospam at ...626... Sun Jan 3 02:12:53 2010 From: nospam.nospam.nospam at ...626... (Kadaitcha Man) Date: Sun, 3 Jan 2010 12:12:53 +1100 Subject: [Gambas-user] Socket Limitations In-Reply-To: <201001030149.22076.gambas@...1...> References: <201001030149.22076.gambas@...1...> Message-ID: 2010/1/3 Beno?t Minisini : >> 2010/1/3 Kadaitcha Man : >> > 2010/1/3 Beno?t Minisini : >> > >> > http://gambasdoc.org/help/comp/gb.net/socket >> > >> > I will see about updating the Socket page and add the Blocking >> > property to the list of inherited properties. >> >> Before I do that, is Blocking gb3 specific? >> > > Yes. It wasn't clear but I noticed "v3" in the URI so I thought I'd better ask before I go ahead and do something. From alerinaldi at ...2334... Sun Jan 3 01:52:11 2010 From: alerinaldi at ...2334... (Alessandro Rinaldi) Date: Sun, 3 Jan 2010 01:52:11 +0100 Subject: [Gambas-user] sdl.sound and total length of a track Message-ID: <57de1d081001021652m45bdec46ub92ff3ca6c66d41e@...627...> I think the topic explains everything.. With player functions I can only get the current position but not the total length... Any way to do it? Thanks! Alessandro From nospam.nospam.nospam at ...626... Sun Jan 3 02:36:25 2010 From: nospam.nospam.nospam at ...626... (Kadaitcha Man) Date: Sun, 3 Jan 2010 12:36:25 +1100 Subject: [Gambas-user] Socket Limitations In-Reply-To: <201001021857.05639.gambas@...1...> References: <201001021857.05639.gambas@...1...> Message-ID: 2010/1/3 Beno?t Minisini : > By default, Socket are in non-blocking mode (Blocking property set to False). > So writing to it a big chunk fails. The bug is that instead of raising an > error during the Write instruction, it fails silently. > > By having a blocking socket, your program works. > > So, two remarks: > > You should set the Blocking property to True in the Ready event. I just tried it with a 94k file and it worked like a charm. Thank you. From bill-lancaster at ...2231... Sun Jan 3 08:41:00 2010 From: bill-lancaster at ...2231... (Bill-Lancaster) Date: Sat, 2 Jan 2010 23:41:00 -0800 (PST) Subject: [Gambas-user] sdl.sound plays mp3 too fast In-Reply-To: <201001030127.45710.gambas@...1...> References: <26985683.post@...1379...> <201001030127.45710.gambas@...1...> Message-ID: <26999654.post@...1379...> Dear Benoit, thanks for the response. Please see attached mp3 file. Some files play at correct speed others too fast. Bill -- View this message in context: http://old.nabble.com/sdl.sound-plays-mp3-too-fast-tp26985683p26999654.html Sent from the gambas-user mailing list archive at Nabble.com. From doriano.blengino at ...1909... Sun Jan 3 09:05:53 2010 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Sun, 03 Jan 2010 09:05:53 +0100 Subject: [Gambas-user] Socket Limitations In-Reply-To: References: <201001021857.05639.gambas@...1...> <4B3F93D3.6040803@...1909...> Message-ID: <4B404FE1.9090703@...1909...> Kadaitcha Man ha scritto: > 2010/1/3 Doriano Blengino : > > >> after a timeout occurs, one can only assume that >> the entire write has failed, even if, in fact, some data has been >> succefully written. >> > > Yes, you are quite correct, but the problem of partial data transfer > due to a timeout is not a problem for the socket to sort out. It is > for the server and client to sort out between themselves. > > If you look at the sample code I attached earlier, there is this line: > > Private Const MULTILINE_BLOCK_TERMINATOR As String = "\r\n.\r\n" > > A CRLF "." CRLF sequence is the RFC3977 "termination octet". The > server knows it has not got the data that client said it is sending > until it gets the termination octet. If the socket goes quiet and the > termination block has not been received after a specific time interval > then the server closes the connection and discards the transaction. > > Again, I fully agree with your thoughts up there, but I genuinely > question if it is a problem that the socket itself needs to be > concerned about. In my view, it does not and should not. The socket > only need alert the programmer to a timeout and try to gracefully > exit. > > The socket shouldn't be taking care of network communications problems > where a properly signalling pair of entities should already have a set > of agreed rules to abide by when a transmission is incomplete. > I looked at your sample and I must say that, in this specific case, you are right. But sockets are more general: things are not always as you depict them. It is a difficult task to simplify things that are itself complicated. In particular, I/O (sockets included) under unix can be blocking or not blocking (the default is blocking), and when things go wrong sometimes the program is notified at a different point than the one that was responsible for the error. All put together, renders things complicated. You are right when you say that blocking could be the default, for two reasons: because the underlying OS does already so, and because this way the logic of a program is simpler. But especially in the case of a server, where many connections are alive in the same time, the blocking mode works very bad. If, to this mess, you add "automatic, behind the scenes" behaviours, like the one argued by Benoit ("may be that, when a big chunk of data has to be transmitted, we should activate blocking mode automatically"), you add a further step of uncertainity. After a few minutes I suggested that a timeout could simplify things, I changed my mind. It would not be a totally bad idea but, as most other mechanisms, it has its problems. First, what is the right timeout? Second, if a timeout occurs, how many data has been sent? And we don't want to send data twice... so the problem is again what Benoit told: at the moment you can't know how much data has been sent, and this remains true all the time you use non-blocking mode. Personally, I found that a timeout is more handy when reading (at least you know how much data you readed), but it is not perfect anyway. A question arises to my mind. It seems that non-blocking mode is the default in gambas, but no check is done for errors. In this situation, avoiding blocking mode would just solve. There is no speed penalty, because gambas writes to the OS buffers, so the speed is the same for blocking and non-blocking mode. In the case that data does not fit in the buffers, with blocking mode there is a delay; without blocking mode there is a serious problem... anyway, this is a truely complicated matter. Regards, -- Doriano Blengino "Listen twice before you speak. This is why we have two ears, but only one mouth." From nospam.nospam.nospam at ...626... Sun Jan 3 10:00:43 2010 From: nospam.nospam.nospam at ...626... (Kadaitcha Man) Date: Sun, 3 Jan 2010 20:00:43 +1100 Subject: [Gambas-user] Socket Limitations In-Reply-To: <4B404FE1.9090703@...1909...> References: <201001021857.05639.gambas@...1...> <4B3F93D3.6040803@...1909...> <4B404FE1.9090703@...1909...> Message-ID: 2010/1/3 Doriano Blengino : > Kadaitcha Man ha scritto: > After a few minutes I suggested that a timeout could simplify things, I > changed my mind. It would not be a totally bad idea but, as most other > mechanisms, it has its problems. First, what is the right timeout? It is either 0 for no timeout or it is set by the application. http://msdn.microsoft.com/en-us/library/system.net.sockets.socket.receivetimeout%28VS.80%29.aspx http://msdn.microsoft.com/en-us/library/system.net.sockets.socket.sendtimeout%28VS.80%29.aspx $ man socket SO_RCVTIMEO and SO_SNDTIMEO Specify the receiving or sending timeouts until reporting an error... perl: timeout([VAL]) Set or get the timeout value associated with this socket. If called without any arguments then the current setting is returned. If called with an argument the current setting is changed and the previous value returned. As you can see, the idea of a timeout is not a strange one to many languages on either Unix, Linux or Windows. In fact, I'd say it is an absolute necessity. And if you are using the OS socket, which you seem to be doing, then why should Gambas hide a property that is already available to C/C++ and even script programmers? > Second, if a timeout occurs, how many data has been sent? Again, that is not the business of the socket. The business of the socket is alert the program that a problem exists, nothing more. > anyway, this is a truely complicated matter. It is only complicated if you believe that the socket should poke its nose into business it shouldn't :) If the connection goes belly up, the socket can, at best, know how many bytes it sent into the ether, but it cannot ever know how many of those bytes went into hyperspace never to be seen again. How can it? It's not possible. That's why the client and server have to deal with the problem between themselves. Really, there is nothing strange in a having timeout. It is up to the client and the server to work out what to do if the connection goes down. It is not up to the socket. From doriano.blengino at ...1909... Sun Jan 3 12:05:37 2010 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Sun, 03 Jan 2010 12:05:37 +0100 Subject: [Gambas-user] Socket Limitations In-Reply-To: References: <201001021857.05639.gambas@...1...> <4B3F93D3.6040803@...1909...> <4B404FE1.9090703@...1909...> Message-ID: <4B407A01.6050009@...1909...> Kadaitcha Man ha scritto: > 2010/1/3 Doriano Blengino : > >> After a few minutes I suggested that a timeout could simplify things, I >> changed my mind. It would not be a totally bad idea but, as most other >> mechanisms, it has its problems. First, what is the right timeout? >> > > It is either 0 for no timeout or it is set by the application. > Uhm... I see the point. I intended that the timeout would be set by the application. Nevertheless, timeouts are often stupid, and should only be used to raise an error, not as part of the normal logic of a program. For example, in your application: what is the right timeout? May be a few seconds, but if there is something 1Mib to send to a very busy server, on a slow connection, some minutes would be required. Would you set the timeout to some minutes? Ok, let's do some minutes (we don't want the program fail, if there is no real reason; a slow connection is not a good reason to fail, right?). Now improve your example application; instead of sending a single message to a single host, it is a proxy which accepts several incoming messages and deals them to several hosts. If at a certain point a remote host is very busy (or down), your proxy ceases to work because it is blocking, for several minutes. You don't want to do so, so you need non-blocking sockets. The timeout of the socket is still there, because sooner or later the socket will have to raise an error, but your application won't stop to work. This is how I mean timeout - only used for error recovering. But the first time I suggested a timeout, it was related to the program logic. It can slightly simplify things, but at a cost - a possible incorrect behaviour. Using timeouts for communication can be a good idea only in precise situations, but gambas can not know what the situation is, it is a general purpose programming language. So, I think, gambas could also implement timeouts, but it would be responsibility of the user to use them in the correct way. > http://msdn.microsoft.com/en-us/library/system.net.sockets.socket.receivetimeout%28VS.80%29.aspx > http://msdn.microsoft.com/en-us/library/system.net.sockets.socket.sendtimeout%28VS.80%29.aspx > > $ man socket > > SO_RCVTIMEO and SO_SNDTIMEO > Specify the receiving or sending timeouts until reporting an > error... > > perl: > timeout([VAL]) > Set or get the timeout value associated with this socket. If called > without any arguments then the current setting is returned. If called > with an argument the current setting is changed and the previous value > returned. > > As you can see, the idea of a timeout is not a strange one to many > languages on either Unix, Linux or Windows. In fact, I'd say it is an > absolute necessity. And if you are using the OS socket, which you seem > to be doing, then why should Gambas hide a property that is already > available to C/C++ and even script programmers? > > >> Second, if a timeout occurs, how many data has been sent? >> > > Again, that is not the business of the socket. The business of the > socket is alert the program that a problem exists, nothing more. > Here I would say a concise *no*. From ground up, things works like this: "send as many data as you can, and tell me how much you sent". In fact, the lowest level OS calls work like this: the return value is the number of bytes written or read (not only for sockets, even files, standard input and output, and so on). Of course you can use blocking mode, and rely on the fact that when the system call returns, either it failed or it wrote all the data. But the blocking mode is not always the best way to go. > >> anyway, this is a truely complicated matter. >> > > It is only complicated if you believe that the socket should poke its > nose into business it shouldn't :) > > If the connection goes belly up, the socket can, at best, know how > many bytes it sent into the ether, but it cannot ever know how many of > those bytes went into hyperspace never to be seen again. How can it? > It's not possible. That's why the client and server have to deal with > the problem between themselves. > False. TCP/IP is a very robust transport, and a client socket knows exactly how many bytes it launched in the hyperspace, and how many of them have been acknowledged by the other endpoint. When the remote side acknowledges, part of the transmit buffer is freed, and some space is gained for you to write additional data. The TCP/IP sockets ensure that the data sent out arrives on the other end, correctly (with checksum), in-sequence, and completely. This is the job of a stream socket, and it works very well. If we could have no hurry, there would be no need for non-blocking mode and timeouts. > Really, there is nothing strange in a having timeout. It is up to the > client and the server to work out what to do if the connection goes > down. It is not up to the socket. > I think we two are talking from two different points of view. I am talking about a general point of view, where a socket is used in many different situations, so one can not make assumptions about data size and timeouts. This is the point of view of an operating system or a general purpose language. In fact, most OSes and languages let you specify buffer dimensions and timeouts (and blocking or non-blocking options, and many other). In most of your thoughts, you specifically refer to a single, relatively simple situation. Why not! A single situation is a nice situation to speak about, but there are many different. I think that non-blocking sockets are good for the example you sent in this list; but for your real application (a proxy, right?), a non-blocking system, with no timeouts except for errors, would be better suited. Just my thought. Regards, -- Doriano Blengino "Listen twice before you speak. This is why we have two ears, but only one mouth." From nospam.nospam.nospam at ...626... Sun Jan 3 13:28:52 2010 From: nospam.nospam.nospam at ...626... (Kadaitcha Man) Date: Sun, 3 Jan 2010 23:28:52 +1100 Subject: [Gambas-user] Socket Limitations In-Reply-To: <4B407A01.6050009@...1909...> References: <201001021857.05639.gambas@...1...> <4B3F93D3.6040803@...1909...> <4B404FE1.9090703@...1909...> <4B407A01.6050009@...1909...> Message-ID: 2010/1/3 Doriano Blengino : > Kadaitcha Man ha scritto: >> 2010/1/3 Doriano Blengino : >> >>> After a few minutes I suggested that a timeout could simplify things, I >>> changed my mind. It would not be a totally bad idea but, as most other >>> mechanisms, it has its problems. First, what is the right timeout? >>> >> >> It is either 0 for no timeout or it is set by the application. >> > Uhm... I see the point. :) I figured you would. There was a lot more I could have said but chose not to ;-> > I intended that the timeout would be set by the > application. Nevertheless, timeouts are often stupid, No, not at all. I worked in real-world computing for 37 years before retiring. If I have a 200GB/second fibre-optic connection to the net but am trying to communicate with a 150 baud acoustic modem sitting in the wilds of Timbuktu in Africa then I should know that, on average, it takes, say, fifteen minutes to transfer 0.5KB of data, for example. If the data has not been sent after, say, 20 minutes then I know I ought to disconnect and try again later. Without a timeout I can't make any such decision; the gambas socket is making decisions it shouldn't be making. Timeouts are not stupid, Doriano. It reasonable for me to ask a socket to tell me if the connection has been idle for such and such amount of time while it was trying to send or receive data. > and should only be > used to raise an error, Yes. > not as part of the normal logic of a program. No. As soon as the error is raised, the normal logic of a program takes over and decides what to do about the error. > For example, in your application: what is the right timeout? May be a > few seconds, but if there is something 1Mib to send to a very busy > server, on a slow connection, some minutes would be required. No. The timeout is not applied to the length of time it takes to transmit any data, it is applied to amount of time that there is no response between the two connected entities while trying to send or receive data. Nevertheless, to answer your question, my testing tells me that, for all the servers I might connect to, if a transfer is silent for more than 30 seconds then I have a problem to deal with. The protocol says I have to disconnect and try again, and I know that is correct because the protocol also says that the remote server will junk my transmission unless it receives a certain signal from me that I have finished sending data, and the protocol also tells me that the server will acknowledge receipt. > Would you > set the timeout to some minutes? Ok, let's do some minutes (we don't > want the program fail, if there is no real reason; a slow connection is > not a good reason to fail, right?). Yes it is a good reason. What if the customer you are writing the program for makes it a requirement that if the data is not successfully transferred and acknowledged as received within 30 seconds then the program must write a log record? What if the customer uses that log record to determine possible faults on their network, or to make decisions about upgrading to a faster link? What if the customer believes there is a problem at 4PM every day when everyone in a certain office does their final updates and they all send their data to a central server at the same? How is the customer ever going to know for sure that 4PM really is a problem? > Now improve your example > application; instead of sending a single message to a single host, it is > a proxy which accepts several incoming messages and deals them to > several hosts. If at a certain point a remote host is very busy (or > down), your proxy ceases to work because it is blocking, for several > minutes. You don't want to do so, so you need non-blocking sockets. The > timeout of the socket is still there, because sooner or later the socket > will have to raise an error, but your application won't stop to work. > This is how I mean timeout - only used for error recovering. Yes, I agree. All you need do is raise a timeout error. The program will decide what to do about it. > But the > first time I suggested a timeout, it was related to the program logic. Oh, I see. No, all you need do is raise an error that can be trapped. The program then decides what should be done. > It can slightly simplify things, but at a cost - a possible incorrect > behaviour. Using timeouts for communication can be a good idea only in > precise situations, but gambas can not know what the situation is, it is > a general purpose programming language. No programming language can know what the situation is or how to deal with it, only the program can know that, and that is why I was saying the socket should not be making decisions it has no right to make. > So, I think, gambas could also implement timeouts, but it would be > responsibility of the user to use them in the correct way. Yes. I 100% agree. However such musings are not necessary because the gb3 socket already supports blocking, and as I found out today, it is my responsibility to implement it. Anyway, it is always, without fail, the responsibility of the programmer to write the program. It is not the responsibility of the programming language to make implementation decisions for the programmer, which is exactly what gb3 is doing by not supporting timeout, making decisions it should not be making. >> http://msdn.microsoft.com/en-us/library/system.net.sockets.socket.receivetimeout%28VS.80%29.aspx >> http://msdn.microsoft.com/en-us/library/system.net.sockets.socket.sendtimeout%28VS.80%29.aspx >> >> $ man socket >> >> ? ? ? ?SO_RCVTIMEO and SO_SNDTIMEO >> ? ? ? ? ? ? ? Specify ?the ?receiving ?or ?sending timeouts until reporting an >> ? ? ? ? ? ? ? error... >> >> perl: >> timeout([VAL]) >> Set or get the timeout value associated with this socket. If called >> without any arguments then the current setting is returned. If called >> with an argument the current setting is changed and the previous value >> returned. >> >> As you can see, the idea of a timeout is not a strange one to many >> languages on either Unix, Linux or Windows. In fact, I'd say it is an >> absolute necessity. And if you are using the OS socket, which you seem >> to be doing, then why should Gambas hide a property that is already >> available to C/C++ and even script programmers? >> >> >>> Second, if a timeout occurs, how many data has been sent? >>> >> >> Again, that is not the business of the socket. The business of the >> socket is alert the program that a problem exists, nothing more. >> > Here I would say a concise *no*. From ground up, things works like this: > "send as many data as you can, and tell me how much you sent". In fact, > the lowest level OS calls work like this: the return value is the number > of bytes written or read (not only for sockets, even files, standard > input and output, and so on). Of course you can use blocking mode, and > rely on the fact that when the system call returns, either it failed or > it wrote all the data. But the blocking mode is not always the best way > to go. Of course it isn't, and that's why I said the socket should not be making the kinds of decisions it is. >>> anyway, this is a truely complicated matter. >>> >> >> It is only complicated if you believe that the socket should poke its >> nose into business it shouldn't :) >> >> If the connection goes belly up, the socket can, at best, know how >> many bytes it sent into the ether, but it cannot ever know how many of >> those bytes went into hyperspace never to be seen again. How can it? >> It's not possible. That's why the client and server have to deal with >> the problem between themselves. >> > False. TCP/IP is a very robust transport, False. TCP/IP is a network protocol. TCP = Transmission Control Protocol, and IP = Internet Protocol. The transport layer is contained within the protocol. Protocols define how two systems communicate with each other and deal with success or failure. If you take another look at the code I attached earlier, it is using a protocol, a defined RFC protocol (RFC 3977), and TCP/IP is also a defined RFC protocol (RFC 1122). Protocols are the whole reason that the gambas socket should not make decisions that the programmer should be making. Protocols define how conversations take place between systems; protocols are the reason that timeouts are necessary. > I think we two are talking from two different points of view. I am > talking about a general point of view, where a socket is used in many > different situations, so one can not make assumptions about data size > and timeouts. One does not need to make assumptions. One tests and verifies, then one sets appropriate timeouts based on empirical proof. To be honest, and no insult intended, the only time I could ever understand not having a timeout is if one is blindly sending and receiving data with no protocols to define what is being sent or received. now that's mad. Neither the client nor the server knows for sure what the other one sent or received. Client: [HEY, SERVER] Server: [WHAT?] Client: [I HAVE SOME DATA FOR YOU!] Server: [OH HUM! OK, SEND IT, BUT TERMINATE IT WITH XYZ SO I KNOW I'VE GOT IT!] Client: Sends data and [XYZ] Server: [OH HUM! OK, I GOT IT!] Client: [BYE] Server: That is a protocol, as daft as it looks. > This is the point of view of an operating system or a > general purpose language. The point of view of the general purpose language is irrelevant because it should have no point of view whatsoever about how long it should take to transmit or receive some data. Whereas the gb3 socket has the point of view that it should take an infinite amount of time to transfer a single byte. > In fact, most OSes and languages let you > specify buffer dimensions and timeouts (and blocking or non-blocking > options, and many other). In most of your thoughts, you specifically > refer to a single, relatively simple situation. That's only for now. The proxy sits between unknown clients and unknown servers that have defaults for the numbers of sockets they will create or accept. Without a timeout I cannot have a client create 4 sockets to a remote server if the remote server only accepts two connections from any one IP address, unless the remote server sends an explicit rejection message for that socket, and since the remote server is unknown, I cannot even guarantee that the remote server will do such a thing because, even if the protocol says the remote server must send a rejection message, I have no way of knowing that the remote server is fully protocol compliant. > Why not! A single > situation is a nice situation to speak about, but there are many > different. I think that non-blocking sockets are good for the example > you sent in this list; but for your real application (a proxy, right?), > a non-blocking system, with no timeouts except for errors, would be > better suited. Just my thought. Without a timeout I cannot create more than a single socket and be certain that the remote server will accept it. I would be very happy if socket (Socket and ServerSocket) accepted timeouts and raised errors when the connection timed out, where timeout means a period of time where there is no activity while a send or receive is in progress. That, btw, is why Linux socket implements both a send and a receive timeout. Regards, From gambas at ...1... Sun Jan 3 13:20:44 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sun, 3 Jan 2010 13:20:44 +0100 Subject: [Gambas-user] Socket Limitations In-Reply-To: <4B407A01.6050009@...1909...> References: <4B407A01.6050009@...1909...> Message-ID: <201001031320.44548.gambas@...1...> > [lot of talk] The point of view of the client and the server are not the same: The client likes blocking socket. It usually asks or sends something to the server, waits for the answer, and so on... It usually does one thing at once. On the contrary, the server should serve multiple client connection at once. Then it should use non-blocking sockets, and send data to the client only when the socket raises its Write event, meaning that the OS has told Gambas that the internal socket write buffer has space in it. The timeout is managed by the OS: I can only offer a property to define it, as in other languages, but that should change nothing to the logic of the program. I'm not sure that the MSDN documentation is a good reference for socket programming: - The Microsoft documentation is often not connected to the reality it tries to describe. - The Windows socket implementation often behaves differently than the other OS implementation. My problem is: how can I have the easier Socket interface in Gambas for all possible socket scenarii? That is the reason why I said that if the user asks for writing a big chunk of data to the socket, I should temporarily other blocking mode. Maybe he is doing something wrong (i.e. using a non-blocking socket, but not the Write event), but Gambas can't be sure. Gambas 2 behave this way (not my decision), and I removed this behaviour in Gambas 3, but now I don't remember why. I should test all the scenarii... Regards, -- Beno?t Minisini From doriano.blengino at ...1909... Sun Jan 3 17:54:26 2010 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Sun, 03 Jan 2010 17:54:26 +0100 Subject: [Gambas-user] Socket Limitations In-Reply-To: <201001031320.44548.gambas@...1...> References: <4B407A01.6050009@...1909...> <201001031320.44548.gambas@...1...> Message-ID: <4B40CBC2.1040402@...1909...> Beno?t Minisini ha scritto: >> [lot of talk] >> > > The point of view of the client and the server are not the same: > > The client likes blocking socket. It usually asks or sends something to the > server, waits for the answer, and so on... It usually does one thing at once. > > On the contrary, the server should serve multiple client connection at once. > Then it should use non-blocking sockets, and send data to the client only when > the socket raises its Write event, meaning that the OS has told Gambas that > the internal socket write buffer has space in it. > > The timeout is managed by the OS: I can only offer a property to define it, as > in other languages, but that should change nothing to the logic of the > program. > > > > I'm not sure that the MSDN documentation is a good reference for socket > programming: > > - The Microsoft documentation is often not connected to the reality it tries > to describe. > > - The Windows socket implementation often behaves differently than the other > OS implementation. > > > > My problem is: how can I have the easier Socket interface in Gambas for all > possible socket scenarii? > > That is the reason why I said that if the user asks for writing a big chunk of > data to the socket, I should temporarily other blocking mode. Maybe he is > doing something wrong (i.e. using a non-blocking socket, but not the Write > event), but Gambas can't be sure. > > Gambas 2 behave this way (not my decision), and I removed this behaviour in > Gambas 3, but now I don't remember why. I should test all the scenarii... > > Regards, > > Ok, it just came to my mind another possible way. The problem is that even having a "write" event, if you try to send out 128K bytes the write will not succed in one step. The same for reading - if you want to read a line, the OS will tell you that there is something to read, but not how much and neither if the incoming data contain a CR-LF or not. So there could be a way where you, in gambas, "write #xx" any amount of data. When the operation completes, an event is fired, where you can issue another write or shutdown the socket. Reading is a little trickyer, because the normal syntax implies that the value you read is available just after; in this case, one should "declare" that he wants to read a line, or a certain number of bytes, and when the event fires the data are ready to be used; in the same event you can issue another read, and so on. This is not a new idea, anyway. The timeout, as seen in this discussion, could be settable for error raising purposes, and the blocking mode is handy to write simple programs without event management. Just now I am writing a program which interfaces with gdb using pipes - this can be a good test to explore my idea; in fact I tried at first with blocking mode; then, not happy, tried non blocking mode with events; but trying to read whole lines of text does not work the way I want because still I find myself writing cycles, so I will try with this tecnique (an event raised when the operation requested has completed). May be this can suggest something, may be not. Regards, -- Doriano Blengino "Listen twice before you speak. This is why we have two ears, but only one mouth." From gambas at ...1... Sun Jan 3 18:19:23 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sun, 3 Jan 2010 18:19:23 +0100 Subject: [Gambas-user] Socket Limitations In-Reply-To: <4B40CBC2.1040402@...1909...> References: <201001031320.44548.gambas@...1...> <4B40CBC2.1040402@...1909...> Message-ID: <201001031819.23379.gambas@...1...> > Beno?t Minisini ha scritto: > >> [lot of talk] > > > > The point of view of the client and the server are not the same: > > > > The client likes blocking socket. It usually asks or sends something to > > the server, waits for the answer, and so on... It usually does one thing > > at once. > > > > On the contrary, the server should serve multiple client connection at > > once. Then it should use non-blocking sockets, and send data to the > > client only when the socket raises its Write event, meaning that the OS > > has told Gambas that the internal socket write buffer has space in it. > > > > The timeout is managed by the OS: I can only offer a property to define > > it, as in other languages, but that should change nothing to the logic of > > the program. > > > > > > > > I'm not sure that the MSDN documentation is a good reference for socket > > programming: > > > > - The Microsoft documentation is often not connected to the reality it > > tries to describe. > > > > - The Windows socket implementation often behaves differently than the > > other OS implementation. > > > > > > > > My problem is: how can I have the easier Socket interface in Gambas for > > all possible socket scenarii? > > > > That is the reason why I said that if the user asks for writing a big > > chunk of data to the socket, I should temporarily other blocking mode. > > Maybe he is doing something wrong (i.e. using a non-blocking socket, but > > not the Write event), but Gambas can't be sure. > > > > Gambas 2 behave this way (not my decision), and I removed this behaviour > > in Gambas 3, but now I don't remember why. I should test all the > > scenarii... > > > > Regards, > > Ok, it just came to my mind another possible way. The problem is that > even having a "write" event, if you try to send out 128K bytes the write > will not succed in one step. The same for reading - if you want to read > a line, the OS will tell you that there is something to read, but not > how much and neither if the incoming data contain a CR-LF or not. So > there could be a way where you, in gambas, "write #xx" any amount of > data. When the operation completes, an event is fired, where you can > issue another write or shutdown the socket. It will be too complex at the moment. That means internally managing asynchronous I/O. The simpler is being able to know how much data has been actually written after a Write call. For the read part, you are wrong: Lof() will tell you how much data you can read, and, moreover, Read has a special syntax to read up to a defined number of bytes. And you know then how much data you read, because you get it in memory. I'm currently thinking on a dedicated property of the Stream class, whose name could be "Written" or something like that. You will use it just after the Write call. Or, maybe, the Write instruction could return it as an integer. > Reading is a little > trickyer, because the normal syntax implies that the value you read is > available just after; in this case, one should "declare" that he wants > to read a line, or a certain number of bytes, and when the event fires > the data are ready to be used; in the same event you can issue another > read, and so on. This is not a new idea, anyway. > > The timeout, as seen in this discussion, could be settable for error > raising purposes, and the blocking mode is handy to write simple > programs without event management. > > Just now I am writing a program which interfaces with gdb using pipes - > this can be a good test to explore my idea; in fact I tried at first > with blocking mode; then, not happy, tried non blocking mode with > events; but trying to read whole lines of text does not work the way I > want because still I find myself writing cycles What do you mean by "writing cycle" ? If you want to interface with a program having I/O line-based, you must manage your own buffer in the read event, because you cannot never be sure that you will receive a full line of data (with the newline character at the end). So you must store the received data in a local buffer, and then extract lines from this buffer when it is possible. Regards, -- Beno?t Minisini From doriano.blengino at ...1909... Sun Jan 3 18:38:55 2010 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Sun, 03 Jan 2010 18:38:55 +0100 Subject: [Gambas-user] Socket Limitations In-Reply-To: References: <201001021857.05639.gambas@...1...> <4B3F93D3.6040803@...1909...> <4B404FE1.9090703@...1909...> <4B407A01.6050009@...1909...> Message-ID: <4B40D62F.8070102@...1909...> Kadaitcha Man ha scritto: > 2010/1/3 Doriano Blengino : >>>> anyway, this is a truely complicated matter. >>>> >>>> >>> It is only complicated if you believe that the socket should poke its >>> nose into business it shouldn't :) >>> >>> If the connection goes belly up, the socket can, at best, know how >>> many bytes it sent into the ether, but it cannot ever know how many of >>> those bytes went into hyperspace never to be seen again. How can it? >>> It's not possible. That's why the client and server have to deal with >>> the problem between themselves. >>> >>> >> False. TCP/IP is a very robust transport, >> > > False. TCP/IP is a network protocol. TCP = Transmission Control > Protocol, and IP = Internet Protocol. The transport layer is contained > within the protocol. > > Protocols define how two systems communicate with each other and deal > with success or failure. If you take another look at the code I > attached earlier, it is using a protocol, a defined RFC protocol (RFC > 3977), and TCP/IP is also a defined RFC protocol (RFC 1122). Protocols > are the whole reason that the gambas socket should not make decisions > that the programmer should be making. Protocols define how > conversations take place between systems; protocols are the reason > that timeouts are necessary. > I used the word "transport" exactly to stress on the fact that, from the programmer point of view, a TCP connection is far from being a protocol; HTTP and FTP are, but not TCP. I say so because I wrote from scratch, some years ago, a TCP/IP stack, an FTP server and a HTTP client. Anyway you are right, relying on the mnemonic TCP. > >> I think we two are talking from two different points of view. I am >> talking about a general point of view, where a socket is used in many >> different situations, so one can not make assumptions about data size >> and timeouts. >> > > One does not need to make assumptions. One tests and verifies, then > one sets appropriate timeouts based on empirical proof. > > To be honest, and no insult intended, the only time I could ever > understand not having a timeout is if one is blindly sending and > receiving data with no protocols to define what is being sent or > received. now that's mad. Neither the client nor the server knows for > sure what the other one sent or received. > This is the TCP scenario: you send data, and don't know what the hell those data have done - only that it is arrived. Never tried to speak FTP to a server which talks HTTP? Or to speak HTTP to a CIFS server? There must be a higher protocol, like your example below, which copes with requests and replies. > Client: [HEY, SERVER] > Server: [WHAT?] > Client: [I HAVE SOME DATA FOR YOU!] > Server: [OH HUM! OK, SEND IT, BUT TERMINATE IT WITH XYZ SO I KNOW I'VE GOT IT!] > Client: Sends data and [XYZ] > Server: [OH HUM! OK, I GOT IT!] > Client: [BYE] > Server: > > That is a protocol, as daft as it looks. > > >> This is the point of view of an operating system or a >> general purpose language. >> > > The point of view of the general purpose language is irrelevant > because it should have no point of view whatsoever about how long it > should take to transmit or receive some data. Whereas the gb3 socket > has the point of view that it should take an infinite amount of time > to transfer a single byte. > > >> In fact, most OSes and languages let you >> specify buffer dimensions and timeouts (and blocking or non-blocking >> options, and many other). In most of your thoughts, you specifically >> refer to a single, relatively simple situation. >> > > That's only for now. The proxy sits between unknown clients and > unknown servers that have defaults for the numbers of sockets they > will create or accept. Without a timeout I cannot have a client create > 4 sockets to a remote server if the remote server only accepts two > connections from any one IP address, unless the remote server sends an > explicit rejection message for that socket, and since the remote > server is unknown, I cannot even guarantee that the remote server will > do such a thing because, even if the protocol says the remote server > must send a rejection message, I have no way of knowing that the > remote server is fully protocol compliant. > > >> Why not! A single >> situation is a nice situation to speak about, but there are many >> different. I think that non-blocking sockets are good for the example >> you sent in this list; but for your real application (a proxy, right?), >> a non-blocking system, with no timeouts except for errors, would be >> better suited. Just my thought. >> > > Without a timeout I cannot create more than a single socket and be > certain that the remote server will accept it. I would be very happy > if socket (Socket and ServerSocket) accepted timeouts and raised > errors when the connection timed out, where timeout means a period of > time where there is no activity while a send or receive is in > progress. That, btw, is why Linux socket implements both a send and a > receive timeout. > Mmm, I think that trying to establish a connection is different than trying to send data to an already established one. I don't remember well, but a server which accept only, say, two connections from the same IP should either RESET the exceeding connections, or put them in queue. In the first case it is an error (error connecting... connection reset by peer), in the second case it would be reasonable to wait. But I agree on the fact that some form of timeout must be in effect, at least for good precaution. Regards, -- Doriano Blengino "Listen twice before you speak. This is why we have two ears, but only one mouth." From bill at ...2351... Sun Jan 3 20:52:10 2010 From: bill at ...2351... (Bill Richman) Date: Sun, 03 Jan 2010 13:52:10 -0600 Subject: [Gambas-user] Smooth scrolling listboxes should "jump scroll", right? Message-ID: <4B40F56A.5030402@...2350...> Attached is a screenshot of what I'm talking about. I've tried both GTK and QT toolkits, and it seems to do the same thing with both. Shouldn't the entries "jump" from one to the next, and not let you stop anywhere in-between, as is shown in the screencap? Any ideas? BTW, Benoit, you've rekindled my interest and joy in programming with GAMBAS. It's the best present I've gotten in a long time. Thanks. -- Bill Richman - Lincoln, Nebraska Tilter at windmills, maker of pies in the sky, & curmudgeon email: bill at ...2350... web: www.geektrap.com -------------- next part -------------- A non-text attachment was scrubbed... Name: Screenshot-Garden Manager.png Type: image/png Size: 4865 bytes Desc: not available URL: From doriano.blengino at ...1909... Sun Jan 3 20:59:24 2010 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Sun, 03 Jan 2010 20:59:24 +0100 Subject: [Gambas-user] Socket Limitations In-Reply-To: <201001031819.23379.gambas@...1...> References: <201001031320.44548.gambas@...1...> <4B40CBC2.1040402@...1909...> <201001031819.23379.gambas@...1...> Message-ID: <4B40F71C.9070304@...1909...> Beno?t Minisini ha scritto: >> Beno?t Minisini ha scritto: >> >>>> [lot of talk] >>>> >>> The point of view of the client and the server are not the same: >>> >>> The client likes blocking socket. It usually asks or sends something to >>> the server, waits for the answer, and so on... It usually does one thing >>> at once. >>> >>> On the contrary, the server should serve multiple client connection at >>> once. Then it should use non-blocking sockets, and send data to the >>> client only when the socket raises its Write event, meaning that the OS >>> has told Gambas that the internal socket write buffer has space in it. >>> >>> The timeout is managed by the OS: I can only offer a property to define >>> it, as in other languages, but that should change nothing to the logic of >>> the program. >>> >>> >>> >>> I'm not sure that the MSDN documentation is a good reference for socket >>> programming: >>> >>> - The Microsoft documentation is often not connected to the reality it >>> tries to describe. >>> >>> - The Windows socket implementation often behaves differently than the >>> other OS implementation. >>> >>> >>> >>> My problem is: how can I have the easier Socket interface in Gambas for >>> all possible socket scenarii? >>> >>> That is the reason why I said that if the user asks for writing a big >>> chunk of data to the socket, I should temporarily other blocking mode. >>> Maybe he is doing something wrong (i.e. using a non-blocking socket, but >>> not the Write event), but Gambas can't be sure. >>> >>> Gambas 2 behave this way (not my decision), and I removed this behaviour >>> in Gambas 3, but now I don't remember why. I should test all the >>> scenarii... >>> >>> Regards, >>> >> Ok, it just came to my mind another possible way. The problem is that >> even having a "write" event, if you try to send out 128K bytes the write >> will not succed in one step. The same for reading - if you want to read >> a line, the OS will tell you that there is something to read, but not >> how much and neither if the incoming data contain a CR-LF or not. So >> there could be a way where you, in gambas, "write #xx" any amount of >> data. When the operation completes, an event is fired, where you can >> issue another write or shutdown the socket. >> > > It will be too complex at the moment. That means internally managing > asynchronous I/O. > No asynchronous I/O would be involved; instead of simply reflect the operating system event (or polling) to the gambas program, the interpreter could manage internally until the requested condition is met (readed a full line; or: sended all the requested bytes), and only then raise an event to the gambas program. In fact, this would be possible right now, with the current gambas capabilities, by a class written in gambas. I could also try, but I am very busy with other tasks. > The simpler is being able to know how much data has been actually written > after a Write call. > Right. > For the read part, you are wrong: Lof() will tell you how much data you can > read, and, moreover, Read has a special syntax to read up to a defined number > of bytes. And you know then how much data you read, because you get it in > memory. > I was referring to the OS, not to gambas; anyway there must be a way to know how many bytes are ready to be read, but the operating system will not tell you if a whole line is ready. I took a look to gbx_stream.c, and found that to read a line (line input?), a for (;;) is used which, I think, is blocking. My idea was to raise an event when a line has been read, instead of blocking or make a buffering. > I'm currently thinking on a dedicated property of the Stream class, whose name > could be "Written" or something like that. You will use it just after the > Write call. Or, maybe, the Write instruction could return it as an integer. > > >> Reading is a little >> trickyer, because the normal syntax implies that the value you read is >> available just after; in this case, one should "declare" that he wants >> to read a line, or a certain number of bytes, and when the event fires >> the data are ready to be used; in the same event you can issue another >> read, and so on. This is not a new idea, anyway. >> >> The timeout, as seen in this discussion, could be settable for error >> raising purposes, and the blocking mode is handy to write simple >> programs without event management. >> >> Just now I am writing a program which interfaces with gdb using pipes - >> this can be a good test to explore my idea; in fact I tried at first >> with blocking mode; then, not happy, tried non blocking mode with >> events; but trying to read whole lines of text does not work the way I >> want because still I find myself writing cycles >> > > What do you mean by "writing cycle" ? > > If you want to interface with a program having I/O line-based, you must manage > your own buffer in the read event, because you cannot never be sure that you > will receive a full line of data (with the newline character at the end). So > you must store the received data in a local buffer, and then extract lines > from this buffer when it is possible. > > Regards, > > And this is what I am doing right now, using GLIB channels (sorry, not gambas related). An event is fired as soon as some data can be read, but you don't know how much data is available (or, at least, I do not know how to do it). So I set the channel non-blocking, read the available data and append it in the buffer, but at this point I can have 0, 1, or more lines ready - in just an event. I would like an event for every line, and this is why I suggested the same for gambas. This is already possible, of course. I wrote in gambas a file manager with external plugins made in bash, using the normal approach (the one you suggest). Again, for a text-line-based communication, an event for every line read would sometimes make sense. Regards, -- Doriano Blengino "Listen twice before you speak. This is why we have two ears, but only one mouth." From dr.diesel at ...626... Sun Jan 3 22:53:24 2010 From: dr.diesel at ...626... (Dr.Diesel) Date: Sun, 3 Jan 2010 13:53:24 -0800 (PST) Subject: [Gambas-user] qt4 draw error Message-ID: <27005884.post@...1379...> I believe I have found a qt4 bug. Here is a very simply gambas 3 (svn current to 1/2/10), this works perfectly find and as expected if i switch to gtk. Error is, and it only outputted to the gambas console: QPainter::begin: Widget painting can only begin as a result of a paintEvent QPainter::setBackground: Painter not active QPainter::pen: Painter not active QPainter::setPen: Painter not active QPainter::brush: Painter not active QPainter::setBrush: Painter not active gambas program: Public Sub Button1_Click() Draw.Begin(DrawingArea1) Draw.Line(1, 130, 500, 400) Draw.End End DrawingArea1 is locked on the main form. Thanks Andy -- View this message in context: http://old.nabble.com/qt4-draw-error-tp27005884p27005884.html Sent from the gambas-user mailing list archive at Nabble.com. From gambas at ...1... Sun Jan 3 23:02:00 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sun, 3 Jan 2010 23:02:00 +0100 Subject: [Gambas-user] qt4 draw error In-Reply-To: <27005884.post@...1379...> References: <27005884.post@...1379...> Message-ID: <201001032302.00369.gambas@...1...> > I believe I have found a qt4 bug. Here is a very simply gambas 3 (svn > current to 1/2/10), this works perfectly find and as expected if i switch > to gtk. > > Error is, and it only outputted to the gambas console: > > QPainter::begin: Widget painting can only begin as a result of a paintEvent > QPainter::setBackground: Painter not active > QPainter::pen: Painter not active > QPainter::setPen: Painter not active > QPainter::brush: Painter not active > QPainter::setBrush: Painter not active > > gambas program: > Public Sub Button1_Click() > Draw.Begin(DrawingArea1) > Draw.Line(1, 130, 500, 400) > Draw.End > End > > DrawingArea1 is locked on the main form. > > Thanks > Andy > It's not a Qt4, it's by design: they forbid drawing on a widget outside of a paint event, so that Qt4 code remains the same between X11, Windows and MacOSX. I think in the future I will enforce the same policy in Gambas for gb.gtk. There is no need of drawing on a widget outside of its paint event. Regards, -- Beno?t Minisini From dr.diesel at ...626... Sun Jan 3 23:16:10 2010 From: dr.diesel at ...626... (Dr.Diesel) Date: Sun, 3 Jan 2010 14:16:10 -0800 (PST) Subject: [Gambas-user] qt4 draw error In-Reply-To: <201001032302.00369.gambas@...1...> References: <27005884.post@...1379...> <201001032302.00369.gambas@...1...> Message-ID: <27006128.post@...1379...> Beno?t Minisini wrote: > > It's not a Qt4, it's by design: they forbid drawing on a widget outside of > a > paint event, so that Qt4 code remains the same between X11, Windows and > MacOSX. > > I think in the future I will enforce the same policy in Gambas for gb.gtk. > > There is no need of drawing on a widget outside of its paint event. > > Regards, > > -- > Beno?t Minisini > > Not sure I understand, you mean like this: Public Sub DrawingArea1_Draw() Paint.Rectangle(1, 130, 500, 400) Paint.End End This tells me the "No current Device" but if I add the paint.begin(DrawingArea1_Draw) then it tells me it is already painting? Thanks for the reply. -- View this message in context: http://old.nabble.com/qt4-draw-error-tp27005884p27006128.html Sent from the gambas-user mailing list archive at Nabble.com. From gambas at ...1... Sun Jan 3 23:16:33 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sun, 3 Jan 2010 23:16:33 +0100 Subject: [Gambas-user] qt4 draw error In-Reply-To: <201001032302.00369.gambas@...1...> References: <27005884.post@...1379...> <201001032302.00369.gambas@...1...> Message-ID: <201001032316.33776.gambas@...1...> > > I believe I have found a qt4 bug. Here is a very simply gambas 3 (svn > > current to 1/2/10), this works perfectly find and as expected if i switch > > to gtk. > > > > Error is, and it only outputted to the gambas console: > > > > QPainter::begin: Widget painting can only begin as a result of a > > paintEvent QPainter::setBackground: Painter not active > > QPainter::pen: Painter not active > > QPainter::setPen: Painter not active > > QPainter::brush: Painter not active > > QPainter::setBrush: Painter not active > > > > gambas program: > > Public Sub Button1_Click() > > Draw.Begin(DrawingArea1) > > Draw.Line(1, 130, 500, 400) > > Draw.End > > End > > > > DrawingArea1 is locked on the main form. > > > > Thanks > > Andy > > It's not a Qt4, it's by design: they forbid drawing on a widget outside of . /|\ | bug -------------' -- Beno?t Minisini From dr.diesel at ...626... Sun Jan 3 23:27:15 2010 From: dr.diesel at ...626... (Dr.Diesel) Date: Sun, 3 Jan 2010 14:27:15 -0800 (PST) Subject: [Gambas-user] qt4 draw error In-Reply-To: <201001032316.33776.gambas@...1...> References: <27005884.post@...1379...> <201001032302.00369.gambas@...1...> <201001032316.33776.gambas@...1...> Message-ID: <27006233.post@...1379...> Beno?t Minisini wrote: > > >> > >> > DrawingArea1 is locked on the main form. >> > >> > Thanks >> > Andy >> > Sorry, located not locked. -- View this message in context: http://old.nabble.com/qt4-draw-error-tp27005884p27006233.html Sent from the gambas-user mailing list archive at Nabble.com. From gambas at ...1... Mon Jan 4 00:21:50 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Mon, 4 Jan 2010 00:21:50 +0100 Subject: [Gambas-user] sdl.sound plays mp3 too fast In-Reply-To: <26999654.post@...1379...> References: <26985683.post@...1379...> <201001030127.45710.gambas@...1...> <26999654.post@...1379...> Message-ID: <201001040021.50497.gambas@...1...> > Dear Benoit, thanks for the response. > > Please see attached mp3 file. Hem. I don't see it at all... -- Beno?t Minisini From gambas at ...1... Mon Jan 4 00:22:21 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Mon, 4 Jan 2010 00:22:21 +0100 Subject: [Gambas-user] sdl.sound and total length of a track In-Reply-To: <57de1d081001021652m45bdec46ub92ff3ca6c66d41e@...627...> References: <57de1d081001021652m45bdec46ub92ff3ca6c66d41e@...627...> Message-ID: <201001040022.21713.gambas@...1...> > I think the topic explains everything.. > With player functions I can only get the current position but not the > total length... > Any way to do it? > Thanks! > Alessandro > Alas the SDL library does not provide a way to get the length of the music track. -- Beno?t Minisini From alerinaldi at ...2334... Mon Jan 4 00:52:56 2010 From: alerinaldi at ...2334... (Alessandro Rinaldi) Date: Mon, 4 Jan 2010 00:52:56 +0100 Subject: [Gambas-user] sdl.sound and total length of a track In-Reply-To: <201001040022.21713.gambas@...1...> References: <57de1d081001021652m45bdec46ub92ff3ca6c66d41e@...627...> <201001040022.21713.gambas@...1...> Message-ID: <57de1d081001031552y573ac17j97c5c06fed8dfeb1@...627...> Argh! It is in plan for GB3? From dr.diesel at ...626... Mon Jan 4 01:03:19 2010 From: dr.diesel at ...626... (Dr.Diesel) Date: Sun, 3 Jan 2010 16:03:19 -0800 (PST) Subject: [Gambas-user] sdl.sound and total length of a track In-Reply-To: <57de1d081001031552y573ac17j97c5c06fed8dfeb1@...627...> References: <57de1d081001021652m45bdec46ub92ff3ca6c66d41e@...627...> <201001040022.21713.gambas@...1...> <57de1d081001031552y573ac17j97c5c06fed8dfeb1@...627...> Message-ID: <27007145.post@...1379...> Alessandro Rinaldi wrote: > > Argh! > It is in plan for GB3? > The developers of gambas do not write/maintain SDL. You will have to ask the SDL developers. -- View this message in context: http://old.nabble.com/sdl.sound-and-total-length-of-a-track-tp26998283p27007145.html Sent from the gambas-user mailing list archive at Nabble.com. From gambas at ...1... Mon Jan 4 01:05:16 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Mon, 4 Jan 2010 01:05:16 +0100 Subject: [Gambas-user] sdl.sound and total length of a track In-Reply-To: <57de1d081001031552y573ac17j97c5c06fed8dfeb1@...627...> References: <57de1d081001021652m45bdec46ub92ff3ca6c66d41e@...627...> <201001040022.21713.gambas@...1...> <57de1d081001031552y573ac17j97c5c06fed8dfeb1@...627...> Message-ID: <201001040105.16466.gambas@...1...> > Argh! > It is in plan for GB3? > Sorry, there is no solution at the moment. It seems the SDL library is not developed anymore... The gambas sound component should be redone based on another library, architecture... -- Beno?t Minisini From alerinaldi at ...2334... Mon Jan 4 01:04:21 2010 From: alerinaldi at ...2334... (Alessandro Rinaldi) Date: Mon, 4 Jan 2010 01:04:21 +0100 Subject: [Gambas-user] sdl.sound and total length of a track In-Reply-To: <27007145.post@...1379...> References: <57de1d081001021652m45bdec46ub92ff3ca6c66d41e@...627...> <201001040022.21713.gambas@...1...> <57de1d081001031552y573ac17j97c5c06fed8dfeb1@...627...> <27007145.post@...1379...> Message-ID: <57de1d081001031604m324d0a17q6230d233f6dfdfb9@...627...> Ok, sorry. From nospam.nospam.nospam at ...626... Mon Jan 4 01:35:37 2010 From: nospam.nospam.nospam at ...626... (Kadaitcha Man) Date: Mon, 4 Jan 2010 11:35:37 +1100 Subject: [Gambas-user] Socket Limitations In-Reply-To: <201001031320.44548.gambas@...1...> References: <4B407A01.6050009@...1909...> <201001031320.44548.gambas@...1...> Message-ID: 2010/1/3 Beno?t Minisini : > > > I'm not sure that the MSDN documentation is a good reference for socket > programming: > > - The Microsoft documentation is often not connected to the reality it tries > to describe. > > - The Windows socket implementation often behaves differently than the other > OS implementation. I wasn't suggesting it was. You took the information completely out of context. The correct context is "As you can see, the idea of a timeout is not a strange one to many languages on either Unix, Linux or Windows." i also included Linux and perl information. > My problem is: how can I have the easier Socket interface in Gambas for all > possible socket scenarii? > > That is the reason why I said that if the user asks for writing a big chunk of > data to the socket, I should temporarily other blocking mode. Maybe he is > doing something wrong (i.e. using a non-blocking socket, but not the Write > event), but Gambas can't be sure. Gambas should mind its own business and do as it's told. If the program hangs or SIG faults then bad luck. Your argument here appears to be the same as Doriano's; the programming language should know what is happening, not the program. You are making program implementation decisions at the language level. Anyway, that's how it comes across when I read it, even if that's not what is meant. I think you're on the wrong track. You do not need to turn on blocking temporarily in gambas for large chunks of data at all; You can keep the gambas socket in full asynch mode if the maximum size of the transmit buffer is specified by gambas, can be made smaller by the programmer, and an event is implemented to allow the socket to request more data from the application, plus a timeout event to manage excessive idle time during a transmit/receive operation. The timeout should operate in both synch and asynch mode, whereas the data request event should only be triggered in asynch mode. In that way, the programmer has a very powerful tool in being able to use both blocking and non-blocking at will to perform highly complex and relatively simple functions. Blocking sockets is a problem for gambas because it is single-threaded and can cause the application to be unresponsive when large chunks of data are sent between systems on a slow connection. However by knowing the buffer size and having a "more data needed" event, the programmer can keep the socket in asynch mode. > Gambas 2 behave this way (not my decision), and I removed this behaviour in > Gambas 3, but now I don't remember why. I should test all the scenarii... There is no need to remember why it was turned off in gb3. It makes sense to turn it off if you want an asynch socket, however turning it off in gb3 without implementing a known buffer size and a request for additional data without a timeout has broken it. Well, that's my opinion. From nospam.nospam.nospam at ...626... Mon Jan 4 01:48:25 2010 From: nospam.nospam.nospam at ...626... (Kadaitcha Man) Date: Mon, 4 Jan 2010 11:48:25 +1100 Subject: [Gambas-user] Socket Limitations In-Reply-To: <4B40CBC2.1040402@...1909...> References: <4B407A01.6050009@...1909...> <201001031320.44548.gambas@...1...> <4B40CBC2.1040402@...1909...> Message-ID: 2010/1/4 Doriano Blengino : > the normal syntax implies that the value you read is > available just after; in this case, one should "declare" that he wants > to read a line, YES! YES! YES! Pardon my excitement. > The timeout, as seen in this discussion, could be settable for error > raising purposes, and the blocking mode is handy to write simple > programs without event management. Yes, again. > Just now I am writing a program which interfaces with gdb using pipes - > this can be a good test to explore my idea; in fact I tried at first > with blocking mode; then, not happy, tried non blocking mode with > events; but trying to read whole lines of text does not work the way I > want because still I find myself writing cycles, so I will try with this > tecnique (an event raised when the operation requested has completed). I had a similar problem implementing RFC 3977 in gb3; funny enough, IIRC, it worked perfectly in gb2, I should install gb2 and test it. I send a request to the remote server for certain data and in return I expect a single line from the remote server telling me that the data I requested follows. That line tells me that a) the server has the data I want, and b) to get ready to receive it. In all cases, the data would crash into the response line so that I lost data on the next read. That is, when the response line was read, it contained the response and data after the response. I gave up. From nospam.nospam.nospam at ...626... Mon Jan 4 01:56:06 2010 From: nospam.nospam.nospam at ...626... (Kadaitcha Man) Date: Mon, 4 Jan 2010 11:56:06 +1100 Subject: [Gambas-user] Socket Limitations In-Reply-To: <4B40D62F.8070102@...1909...> References: <201001021857.05639.gambas@...1...> <4B3F93D3.6040803@...1909...> <4B404FE1.9090703@...1909...> <4B407A01.6050009@...1909...> <4B40D62F.8070102@...1909...> Message-ID: 2010/1/4 Doriano Blengino : > This is the TCP scenario: you send data, and don't know what the hell > those data have done - only that it is arrived. Never tried to speak FTP > to a server which talks HTTP? Or to speak HTTP to a CIFS server? Yes, I have. Many, many times. > There > must be a higher protocol, like your example below, which copes with > requests and replies. :) I see we are on the right track, together. >> Without a timeout I cannot create more than a single socket and be >> certain that the remote server will accept it. I would be very happy >> if socket (Socket and ServerSocket) accepted timeouts and raised >> errors when the connection timed out, where timeout means a period of >> time where there is no activity while a send or receive is in >> progress. That, btw, is why Linux socket implements both a send and a >> receive timeout. >> > Mmm, I think that trying to establish a connection is different than > trying to send data to an already established one. They are different, but I expect they could both use the same send_timeout. > But I agree > on the fact that some form of timeout must be in effect, at least for > good precaution. That is really good news, Doriano. I have enjoyed this discussion with you and Benoit. Thanks. From nospam.nospam.nospam at ...626... Mon Jan 4 02:08:18 2010 From: nospam.nospam.nospam at ...626... (Kadaitcha Man) Date: Mon, 4 Jan 2010 12:08:18 +1100 Subject: [Gambas-user] Socket Limitations In-Reply-To: <4B40F71C.9070304@...1909...> References: <201001031320.44548.gambas@...1...> <4B40CBC2.1040402@...1909...> <201001031819.23379.gambas@...1...> <4B40F71C.9070304@...1909...> Message-ID: 2010/1/4 Doriano Blengino : > My idea was to raise an event when a line has been > read As an optional setting, that would be absolutely brilliant and would resolve a number of potential and real problems. > I would like an event for every line, I too would like an event for every line. > an event for every line read would sometimes make sense. You have no idea how much complex signalling code I could get rid of if you implemented that idea. From gambas at ...1... Mon Jan 4 02:32:54 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Mon, 4 Jan 2010 02:32:54 +0100 Subject: [Gambas-user] Release of Gambas 2.19 Message-ID: <201001040232.54382.gambas@...1...> Dear Gambas users, Here is a new release of the stable version: * Gambas now really works on ARM architecture. * The SerialPort class does not eat CPU time pointlessly anymore. * The Exist() and Dir() functions now work correctly for files located inside the executable. Here is the full ChangeLog: ------------------------------------------------------------------------------- [CONFIGURATION] * BUG: Some fixes in architecture detection. * NEW: Detect architecture between x86, x86_64 and ARM. [DEVELOPMENT ENVIRONMENT] * BUG: Correctly save ListBox having exactly 31 items defined from the IDE. * NEW: Do not close the menu editor with the ENTER or the ESC key. [EXAMPLES] * BUG: Fix the use of Dialog.Filter in the PictureDatabase example. [INTERPRETER] * BUG: Try to stop break strict aliasing rules, and other fixes. This way the interpreter should behave better on ARM architecture. * BUG: Exist() now checks relative paths in the current archive only. * BUG: Backport fixes from Gambas 3 for Dir() operating inside archives. * BUG: Try to prevent a possible crash when children processes are stopped recursively. * BUG: Alignment fixes for ARM and 64 bits architectures. [COMPILER] * BUG: Long integer constants are now compiled correctly in all cases. [SCRIPTER] * BUG: Do not crash if a specific component is missing. * BUG: The script now correctly returns the Application.Return value. * BUG: Correctly detect the Main procedure in all cases. [GB.DB] * BUG: Fixes for ARM. [GB.FORM] * BUG: TableView cannot raise a spurious "Null object" error anymore when calling the Edit() method. [GB.GTK] * BUG: Fixes for ARM. * BUG: GridView.Clear is now correctly implemented. [GB.NET] * BUG: Do not watch the SerialPort file descriptor for reading if there is no Read event handler. * NEW: SerialPort watched for status change only if at least one of the change event is implemented. [GB.NET.SMTP] * BUG: The COPYING file is actually the LICENCE file. So remove the LICENCE file, and make the COPYING file be the LGPL 2.1. [GB.QT] * BUG: Fixes for ARM. * BUG: The ComboBox Click event now is raised correctly when setting the Text property. [GB.QT.KDE] * BUG: Fixes for ARM. [GB.SDL] * BUG: Remove running SDL events in a separate thread, as it give instability. ------------------------------------------------------------------------------- I wish everyone an happy new MMX year, and I hope that this year will be the year of the Gambas 3 release! :-) Regards, -- Beno?t Minisini From nospam.nospam.nospam at ...626... Mon Jan 4 03:00:17 2010 From: nospam.nospam.nospam at ...626... (Kadaitcha Man) Date: Mon, 4 Jan 2010 13:00:17 +1100 Subject: [Gambas-user] Release of Gambas 2.19 In-Reply-To: <201001040232.54382.gambas@...1...> References: <201001040232.54382.gambas@...1...> Message-ID: 2010/1/4 Beno?t Minisini : > I wish everyone an happy new MMX year, and I hope that this year will be the Same to you. > year of the Gambas 3 release! :-) It should be, gb3 is good enough. From nospam.nospam.nospam at ...626... Mon Jan 4 04:46:03 2010 From: nospam.nospam.nospam at ...626... (Kadaitcha Man) Date: Mon, 4 Jan 2010 14:46:03 +1100 Subject: [Gambas-user] Socket Limitations In-Reply-To: <4B40F71C.9070304@...1909...> References: <201001031320.44548.gambas@...1...> <4B40CBC2.1040402@...1909...> <201001031819.23379.gambas@...1...> <4B40F71C.9070304@...1909...> Message-ID: 2010/1/4 Doriano Blengino : > My idea was to raise an event when a line has been read Based on what I just posted to the developer's list, you will need to be specific about what defines an end of line. For example: NUL ^@ \0 Null character ETX ^C End of Text LF ^J \n Line feed CR ^M \r Carriage return ETB ^W End of Trans. Block Or, a combination of characters, such as \r\n. From dosida at ...626... Mon Jan 4 06:01:44 2010 From: dosida at ...626... (Dimitris Anogiatis) Date: Sun, 3 Jan 2010 23:01:44 -0600 Subject: [Gambas-user] sdl.sound and total length of a track In-Reply-To: <57de1d081001031604m324d0a17q6230d233f6dfdfb9@...627...> References: <57de1d081001021652m45bdec46ub92ff3ca6c66d41e@...627...> <201001040022.21713.gambas@...1...> <57de1d081001031552y573ac17j97c5c06fed8dfeb1@...627...> <27007145.post@...1379...> <57de1d081001031604m324d0a17q6230d233f6dfdfb9@...627...> Message-ID: <82bffccf1001032101h133f171fg7697c44c5efed844@...627...> Alessandro, to get the length of an MP3 file (since gb.sdl.sound works primarily with mp3s) I would personally write an ID3Tag module to get the mp3's length and then load it through gb.sound.sdl afterward. or if you want you could also explore the option of using an external player for your program... For an internet radio program I wrote I used xmms2d to play the songs and that's what I use to get the length and the current position of the played mp3. perhaps you can use something similar with either mplayer or mpg123 I hope this helps, Regards Dimitris On Sun, Jan 3, 2010 at 6:04 PM, Alessandro Rinaldi < alerinaldi at ...2334...> wrote: > Ok, sorry. > > > ------------------------------------------------------------------------------ > This SF.Net email is sponsored by the Verizon Developer Community > Take advantage of Verizon's best-in-class app development support > A streamlined, 14 day to market process makes app distribution fast and > easy > Join now and get one step closer to millions of Verizon customers > http://p.sf.net/sfu/verizon-dev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From doriano.blengino at ...1909... Mon Jan 4 10:34:11 2010 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Mon, 04 Jan 2010 10:34:11 +0100 Subject: [Gambas-user] Socket Limitations In-Reply-To: References: <201001031320.44548.gambas@...1...> <4B40CBC2.1040402@...1909...> <201001031819.23379.gambas@...1...> <4B40F71C.9070304@...1909...> Message-ID: <4B41B613.4090306@...1909...> Kadaitcha Man ha scritto: > 2010/1/4 Doriano Blengino : > > >> My idea was to raise an event when a line has been read >> > > Based on what I just posted to the developer's list, you will need to > be specific about what defines an end of line. For example: > > NUL ^@ \0 Null character > ETX ^C End of Text > LF ^J \n Line feed > CR ^M \r Carriage return > ETB ^W End of Trans. Block > > Or, a combination of characters, such as \r\n. > To accomplish this task (event when a whole line has been read), there would be a string property, containing the characters you want as EOL, or another sequence, or even the terminator "CRLF.CRLF". The program would set this property to what it pleases to. Actually, it is a little too easy to suggest things without trying to develop them; I did it just a few messages ago, and I comprehend that before implementing a new feature Benoit has to take in account other factors, for example compatibility with previous versions, reliability, "strangeness" of some solution. This feature for reading lines or blocks is a little strange, I suppose. My problem is that I see some gambas limitations, but it would be wrong to try to turn gambas in something else which was not the original intention. For my extravagant ideas, there would exist a totally new language - a mix of Tcl, Python and Perl. So I think I must calm myself; take gambas for what it is, knowing that is not perfect for me, but good enough for a lot of people (me included). I think that Benoit welcomes different points of view, but correctly he takes those advices with a grain (or a handful?) of salt. With regards to our discussion, I see that our three points of view are not so different, and I enjoyed it. Gambas3 (which I never tried) is not yet stable, so it is forgivable for its glitches; I think that there is something extreme in trying to send large chunks of data in a single instruction, but I must also stop to think in the terms of twenty years ago - computers, OSes and languages *must* be more powerful. So, blocking mode by default and a reasonable set of "normal" properties and events, like all the other languages and OSes do, could be a safe way. You say that an event for reading single lines from a socket would improve your programs: well, probably it is already possible to do so, using the current gambas features. Of course, if Benoit thinks that some internal gambas mechanism would help, I have nothing to regret. I had to explain my mind; I suggest, advise and criticize mainly trying to be cooperative, but sometimes things go too much over. Regards, Doriano From rolf.frogs at ...221... Mon Jan 4 11:01:21 2010 From: rolf.frogs at ...221... (Rolf Schmidt) Date: Mon, 4 Jan 2010 11:01:21 +0100 Subject: [Gambas-user] sdl.sound and total length of a track In-Reply-To: <82bffccf1001032101h133f171fg7697c44c5efed844@...627...> References: <57de1d081001021652m45bdec46ub92ff3ca6c66d41e@...627...> <57de1d081001031604m324d0a17q6230d233f6dfdfb9@...627...> <82bffccf1001032101h133f171fg7697c44c5efed844@...627...> Message-ID: <201001041101.21556.rolf.frogs@...221...> Hi Alessandro, Dimitris Anogiatis wrote: > to get the length of an MP3 file (since gb.sdl.sound works primarily with > mp3s) I would personally write an ID3Tag module to get the mp3's length and > then load it through gb.sound.sdl afterward. > > or if you want you could also explore the option of using an external > player for your program... The problem with mp3 is, that it can use different compression algorithms, which may compress the data dynamically i.e. depends on the pattern found in the sound. So it is difficult to calculate the length directly from the given file and that is the reason, why the length may be written in the ID3-Tag. So the tip Dimitris give, seem to be the best solution. HTH Rolf From alerinaldi at ...2334... Mon Jan 4 11:59:22 2010 From: alerinaldi at ...2334... (Alessandro Rinaldi) Date: Mon, 4 Jan 2010 11:59:22 +0100 Subject: [Gambas-user] sdl.sound and total length of a track In-Reply-To: <201001041101.21556.rolf.frogs@...221...> References: <57de1d081001021652m45bdec46ub92ff3ca6c66d41e@...627...> <57de1d081001031604m324d0a17q6230d233f6dfdfb9@...627...> <82bffccf1001032101h133f171fg7697c44c5efed844@...627...> <201001041101.21556.rolf.frogs@...221...> Message-ID: <57de1d081001040259p794dfdbcke559f961a0ac015a@...627...> In fact, I currently use mplayer, but I just wanted to know if there was a better solution :) Well, thank you everybody, anyway :) From nospam.nospam.nospam at ...626... Mon Jan 4 12:45:06 2010 From: nospam.nospam.nospam at ...626... (Kadaitcha Man) Date: Mon, 4 Jan 2010 22:45:06 +1100 Subject: [Gambas-user] Socket Limitations In-Reply-To: <4B41B613.4090306@...1909...> References: <201001031320.44548.gambas@...1...> <4B40CBC2.1040402@...1909...> <201001031819.23379.gambas@...1...> <4B40F71C.9070304@...1909...> <4B41B613.4090306@...1909...> Message-ID: 2010/1/4 Doriano Blengino : > Kadaitcha Man ha scritto: >> 2010/1/4 Doriano Blengino : >> >> >>> My idea was to raise an event when a line has been read >>> >> >> Based on what I just posted to the developer's list, you will need to >> be specific about what defines an end of line. For example: >> >> NUL ? ? ^@ ? ? \0 ? ? ?Null character >> ETX ? ? ^C ? ? ? ? ? ? ?End of Text >> LF ? ? ? ?^J ? ? ?\n ? ? ?Line feed >> CR ? ? ? ^M ? ? \r ? ? ?Carriage return >> ETB ? ? ^W ? ? ? ? ? ? End of Trans. Block >> >> Or, a combination of characters, such as \r\n. >> > To accomplish this task (event when a whole line has been read), there > would be a string property, containing the characters you want as EOL, > or another sequence, or even the terminator "CRLF.CRLF". The program > would set this property to what it pleases to. Yes, fine. > Actually, it is a little too easy to suggest things without trying to > develop them; I did it just a few messages ago, and I comprehend that > before implementing a new feature Benoit has to take in account other > factors, for example compatibility with previous versions, reliability, I know that counts for something, but gb3 is alpha, so major changes should be expected. Furthermore I have seen announcements for gb2 that essentially say, "If you use this version, things will break!" That aside, yes, Benoit has other things to consider. > "strangeness" of some solution. This feature for reading lines or blocks > is a little strange, I suppose. I don't think so. Read on to find out why. > My problem is that I see some gambas > limitations, but it would be wrong to try to turn gambas in something > else which was not the original intention. Well, no. Things do change and evolve. Again, that aside, it's Benoit's decision. > For my extravagant ideas, > there would exist a totally new language - a mix of Tcl, Python and > Perl. If, for that, Benoit were to suggest that you should be shipped to a former USSR psikhushka in the furthest Arctic reaches of outer Siberia, given high doses of mind-altering drugs and punished severely for your mental illness, I would agree with him :) > So I think I must calm myself; Given the fate I would support for you, that's probably a very good idea :) > take gambas for what it is, knowing > that is not perfect for me, but good enough for a lot of people (me > included). Gambas is far, far, faster than VB.NET. Many things are accomplished with much less code. Gambas has allowed me to finally get off Windows after many years of being tied down. That said, the differences between gb and VB have made me think very hard, which I also appreciate. One can too easily become mentally lazy, and IMO the worst of humanity are the mentally lazy, > I think that Benoit welcomes different points of view, but correctly he > takes those advices with a grain (or a handful?) of salt. I'm sure Benoit is a fine student of common sense. > With regards to our discussion, I see that our three points of view are > not so different, No, they are not. > and I enjoyed it. Et moi. Mon fran?ais sucks, vous savez, mais le bon c?t?, je sais avec certitude que je peux obtenir mon visage gifl? par une femme fran?aise tout moment que je choisis. > Gambas3 (which I never tried) is not > yet stable, It is not yet officially stable, and it has some strange anomalies in the editor, which I m compiling a dossier on, but for me, it is stable enough to stick with. Unless you don't mean stable as in crashing. > so it is forgivable for its glitches; Well, despite my very bad manners and rudeness, I do want to help gb3 succeed. > I think that there is > something extreme in trying to send large chunks of data in ?a single > instruction, Weeeelllllll... Not necessarily. If the document is imprecise, which it most definitely is, it is fair to make assumptions then complain loudly to the developers when you find out that your assumptions are wrong. As for actually addressing your point, perhaps you are right, it may be extreme, but as it stands, gb3 does not allow for sending "large chunks of data in a single instruction" unless blocking is on. The whole point of what I was saying earlier is that gb3 has no mechanism for managing the transfer of such large blocks without blocking. I am communicating with RFC 3977 compliant servers and there is no defined limit on file size in RFC 3977. What limits the size of a single data transfer is the reliability of the connection between the server and the client. That puts the onus on me to test various configurations and to arrive at a file size that can be reliably transferred. FWIW, I would not go beyond 512k, even with today's technology. > but I must also stop to think in the terms of twenty years > ago Try fifty and then you're really on the playing field. > - computers, OSes and languages *must* be more powerful. So, > blocking mode by default and a reasonable set of "normal" properties and > events, like all the other languages and OSes do, could be a safe way. I disagree. I cut my teeth on fortran and COBOL, both are in use today, and AAMOF, I believe it is still true that no language can approach the usage levels of current day COBOL to even this very day. The point? Languages evolve as and when they need to. > You say that an event for reading single lines from a socket would > improve your programs: well, probably it is already possible to do so, It would not actually "improve" my programs. It would make my life as a programmer much easier because, despite your limited view into the future, there are still highly popular systems to be communicated with that are barely two years older than myself. > I had to explain my mind; I suggest, advise and criticize mainly trying > to be cooperative, but sometimes things go too much over. Oh, look, my rudeness is intended to provoke a thoughtful response. You can either react to the attitude or you can deal with the problem I present. It's my way of sorting out the wheat from the chaff. You're amongst the wheat :) From doriano.blengino at ...1909... Mon Jan 4 14:02:19 2010 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Mon, 04 Jan 2010 14:02:19 +0100 Subject: [Gambas-user] Socket Limitations In-Reply-To: References: <201001031320.44548.gambas@...1...> <4B40CBC2.1040402@...1909...> <201001031819.23379.gambas@...1...> <4B40F71C.9070304@...1909...> <4B41B613.4090306@...1909...> Message-ID: <4B41E6DB.4010309@...1909...> Kadaitcha Man ha scritto: > 2010/1/4 Doriano Blengino : >> I think that there is >> something extreme in trying to send large chunks of data in a single >> instruction, >> > > Weeeelllllll... Not necessarily. If the document is imprecise, which > it most definitely is, it is fair to make assumptions then complain > loudly to the developers when you find out that your assumptions are > wrong. > > As for actually addressing your point, perhaps you are right, it may > be extreme, but as it stands, gb3 does not allow for sending "large > chunks of data in a single instruction" unless blocking is on. The > whole point of what I was saying earlier is that gb3 has no mechanism > for managing the transfer of such large blocks without blocking. > This is a contradiction. Blocking mode serves the purpose of simplicity - if you want to send 700Mb in a single instruction, well, you can do it. But you can not send 700Mb *and* want to be non-blocked! Look at this: write #1, my_700_mb_block if error then... In blocking mode all is fine: the first instruction takes several minutes, and then terminates either with error or by having completed the job. The second instruction takes the appropriate actions. But if the first statement is non-blocking, the second instruction can not test for success or not - you should test at later time, perhaps several hours later. So non-blocking mode raises event to notify about what happened in background. In reality, it could work the way you say. The first statement starts the writing in background; the second tests for previous errors, and perhaps for some problem occurred early in the first statement. When closing the channel, all the errors are gathered together. This is the way the kernel uses, even for normal files - asynchronous I/O. But... again, the close() would be blocking! If in a rapid succession you open, write a lot, and close, there is no way to obtain an error result. Unless you are prepared for a very late notification... what about if in the meantime the object meant to receive the notification does not exist anymore? :-)... Things are getting complicated... > I am communicating with RFC 3977 compliant servers and there is no > defined limit on file size in RFC 3977. What limits the size of a > single data transfer is the reliability of the connection between the > server and the client. That puts the onus on me to test various > configurations and to arrive at a file size that can be reliably > transferred. FWIW, I would not go beyond 512k, even with today's > technology. > > No, no... I was saying that I find it "extreme" to send large chunk of data in single instructions, but by no mean I would intend that this should be forbidden or wrong. Anyway, data sizes are growing all the time: ram in computers, HDUs capacity, file sizes, DVDs (Blueray?) and so on. I thought so because in your example there were 48K (do I remember well?) to send, and I asked myself if those 48K could ever turn to 480K, which could be even more "extreme"... Ok, I have "sproloquied" (piggy italian-latin-english term for "overtalking") enough. Best regards, and happy big-chunks-stuffing-in-hyperspace. Doriano From nospam.nospam.nospam at ...626... Mon Jan 4 14:58:41 2010 From: nospam.nospam.nospam at ...626... (Kadaitcha Man) Date: Tue, 5 Jan 2010 00:58:41 +1100 Subject: [Gambas-user] Socket Limitations In-Reply-To: <4B41E6DB.4010309@...1909...> References: <201001031320.44548.gambas@...1...> <4B40CBC2.1040402@...1909...> <201001031819.23379.gambas@...1...> <4B40F71C.9070304@...1909...> <4B41B613.4090306@...1909...> <4B41E6DB.4010309@...1909...> Message-ID: 2010/1/5 Doriano Blengino : > Kadaitcha Man ha scritto: >> 2010/1/4 Doriano Blengino : >>> I think that there is >>> something extreme in trying to send large chunks of data in ?a single >>> instruction, >>> >> >> Weeeelllllll... Not necessarily. If the document is imprecise, which >> it most definitely is, it is fair to make assumptions then complain >> loudly to the developers when you find out that your assumptions are >> wrong. >> >> As for actually addressing your point, perhaps you are right, it may >> be extreme, but as it stands, gb3 does not allow for sending "large >> chunks of data in a single instruction" unless blocking is on. The >> whole point of what I was saying earlier is that gb3 has no mechanism >> for managing the transfer of such large blocks without blocking. >> > This is a contradiction. Blocking mode serves the purpose of simplicity I disagree. Blocking mode guarantees known certainties, as defined by any number of RFC documents. > - if you want to send 700Mb in a single instruction, well, you can do > it. But you can not send 700Mb *and* want to be non-blocked! Look at this: > > ? ?write #1, my_700_mb_block > ? ?if error then... As I said, I would not, even with today's technology, ever send more than 512Kb. > In blocking mode all is fine: Not if the connection can't handle it. No disrespect here but you youngsters simply do not seem to understand the value of testing and proving. You seem to be interested only in how reasonable your own thoughts seem to yourselves. Hell, if it makes sense to you, it must be right, right? > the first instruction takes several > minutes, and then terminates either with error or by having completed > the job. The second instruction takes the appropriate actions. But if > the first statement is non-blocking, the second instruction can not test > for success or not - you should test at later time, perhaps several > hours later. So non-blocking mode raises event to notify about what > happened in background. Gibberish. Sorry. Je ne comprends pas. > Things are getting complicated... Only because you are complicating them. If I write a program to "wait until the cows come home" then wait until the cows come home the program should do, without you or the programming language deciding otherwise. Do you understand that? Really, no insult intended, but I sincerely doubt that you do understand. You seem to interpret "general purpose programming language" to mean what you and you alone consider to be reasonable. You have lost contact with the idea that a program must do exactly as it is told and nothing more. Instead you insert the idea, "What if the programmer does something they didn't mean to do? Merde! How do I deal with that?" And so you end up in the never-ending circles you are currently caught in. > No, no... I was saying that I find it "extreme" to send large chunk of > data in single instructions, No, no... I was saying that I DO NOT find it "extreme" to send large chunk of data in single instructions IF THE DOCUMENTATION IMPLIES IT IS OK. > but by no mean I would intend that this > should be forbidden or wrong. Anyway, data sizes are growing all the > time: ram in computers, HDUs capacity, file sizes, DVDs (Blueray?) and > so on. I thought so because in your example there were 48K (do I > remember well?) to send, and I asked myself if those 48K could ever turn > to 480K, which could be even more "extreme"... I've said it at least three times now that I would not send any more than 512k in one gulp, despite today's technology and advancements. Heck, I would not send the standard RFC 3977 72 characters without a CRLF unless the remote server explicitly told me it was ok to send gigabytes terminated by a CRLF pair. > Ok, I have "sproloquied" (piggy italian-latin-english term for > "overtalking") enough. No, you have not over-talked. You have exposed some serious questions about the gambas philosophy. It is not OK for gambas to decide if the programmer might have done something wrong. It is only for the programmer to decide if he/she did something wrong. > > Best regards, and happy big-chunks-stuffing-in-hyperspace. lol ... too funny. From doriano.blengino at ...1909... Mon Jan 4 17:36:33 2010 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Mon, 04 Jan 2010 17:36:33 +0100 Subject: [Gambas-user] Socket Limitations In-Reply-To: References: <201001031320.44548.gambas@...1...> <4B40CBC2.1040402@...1909...> <201001031819.23379.gambas@...1...> <4B40F71C.9070304@...1909...> <4B41B613.4090306@...1909...> <4B41E6DB.4010309@...1909...> Message-ID: <4B421911.7030201@...1909...> Kadaitcha Man ha scritto: > 2010/1/5 Doriano Blengino : > > I disagree. Blocking mode guarantees known certainties, as defined by > any number of RFC documents. > Pardon me... I think that RFCs have nothing to do with blocking mode, unless you find an RFC which says "an operating system SHOULD use blocking sockets, but it MAY also use non-blocking ones". As I did not read all the RFCs around, may be you are right; in that case, I apologize. > >> - if you want to send 700Mb in a single instruction, well, you can do >> it. But you can not send 700Mb *and* want to be non-blocked! Look at this: >> >> write #1, my_700_mb_block >> if error then... >> > > As I said, I would not, even with today's technology, ever send more > than 512Kb. > > >> In blocking mode all is fine: >> > > Not if the connection can't handle it. > > No disrespect here but you youngsters simply do not seem to understand > the value of testing and proving. You seem to be interested only in > how reasonable your own thoughts seem to yourselves. Hell, if it makes > sense to you, it must be right, right? > Do you know how old I am? May be. I don't look at myself as a youngster, but you are entitled to do so, especially if you are retired. But I remember to you that I did write a TCP/IP stack from scratch. Probably this is not enough for you, but as you can imagine, I had a lot of work to do, and tries and tries and tries. And just because of this, I can say that tries are not enough - instead, they are very dangerous if not supported by a deep knowledge. But our opinions can diverge a lot at this point. > >> the first instruction takes several >> minutes, and then terminates either with error or by having completed >> the job. The second instruction takes the appropriate actions. But if >> the first statement is non-blocking, the second instruction can not test >> for success or not - you should test at later time, perhaps several >> hours later. So non-blocking mode raises event to notify about what >> happened in background. >> > > Gibberish. Sorry. Je ne comprends pas. > > >> Things are getting complicated... >> > > Only because you are complicating them. > > If I write a program to "wait until the cows come home" then wait > until the cows come home the program should do, without you or the > programming language deciding otherwise. > > Do you understand that? > > Really, no insult intended, but I sincerely doubt that you do > understand. You seem to interpret "general purpose programming > language" to mean what you and you alone consider to be reasonable. > You have lost contact with the idea that a program must do exactly as > it is told and nothing more. Instead you insert the idea, "What if the > programmer does something they didn't mean to do? Merde! How do I deal > with that?" > > And so you end up in the never-ending circles you are currently caught in. > Ok, I am speaking about things too philosophic, loosing contact with reality. There is no point in spending time in such things. But I can assure you that I am not stuck in anything - simply we don't understand each other, probably because english is not my language. And now, let's stop this nowhere-going discussion. We presented our ideas, so we know what the other thinks, and this is already a good thing. May be that someone reading us can take advantage, may be not. Best wishes for your proxy, and let me know if something new happens in your software. Regards, Doriano From bill-lancaster at ...2231... Mon Jan 4 18:13:25 2010 From: bill-lancaster at ...2231... (Bill-Lancaster) Date: Mon, 4 Jan 2010 09:13:25 -0800 (PST) Subject: [Gambas-user] sdl.sound plays mp3 too fast In-Reply-To: <201001040021.50497.gambas@...1...> References: <26985683.post@...1379...> <201001030127.45710.gambas@...1...> <26999654.post@...1379...> <201001040021.50497.gambas@...1...> Message-ID: <27015977.post@...1379...> Sorry I'll try again http://old.nabble.com/file/p27015977/000244.mp3 000244.mp3 -- View this message in context: http://old.nabble.com/sdl.sound-plays-mp3-too-fast-tp26985683p27015977.html Sent from the gambas-user mailing list archive at Nabble.com. From mohareve at ...626... Mon Jan 4 20:47:05 2010 From: mohareve at ...626... (M. Cs.) Date: Mon, 4 Jan 2010 20:47:05 +0100 Subject: [Gambas-user] I can't disconnect from the database Message-ID: Although I've invoked the DBconX.Close() command for my sqlite connection, I can still issue queries, and I'm getting results. I'd like to close the connection, select another database file and open it. how to do it? I've checked the DBconX.Open() commands in subroutines, but there's no possibilities for hidden openings. From gambas.fr at ...626... Mon Jan 4 21:38:41 2010 From: gambas.fr at ...626... (Fabien Bodard) Date: Mon, 4 Jan 2010 21:38:41 +0100 Subject: [Gambas-user] I can't disconnect from the database In-Reply-To: References: Message-ID: <6324a42a1001041238j7376aa8bj5d8b95bde357170d@...627...> normal ... as the db is automatiquely opened if it is not when you are use a call so DB.Close MyNewCon.Open DB.Exec(etc... . 2010/1/4 M. Cs. : > Although I've invoked the DBconX.Close() command for my sqlite connection, I > can still issue queries, and I'm getting results. > I'd like to close the connection, select another database file and open it. > how to do it? > I've checked the DBconX.Open() commands in subroutines, but there's no > possibilities for hidden openings. > ------------------------------------------------------------------------------ > This SF.Net email is sponsored by the Verizon Developer Community > Take advantage of Verizon's best-in-class app development support > A streamlined, 14 day to market process makes app distribution fast and easy > Join now and get one step closer to millions of Verizon customers > http://p.sf.net/sfu/verizon-dev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From mohareve at ...626... Mon Jan 4 21:49:11 2010 From: mohareve at ...626... (M. Cs.) Date: Mon, 4 Jan 2010 21:49:11 +0100 Subject: [Gambas-user] I can't disconnect from the database In-Reply-To: <6324a42a1001041238j7376aa8bj5d8b95bde357170d@...627...> References: <6324a42a1001041238j7376aa8bj5d8b95bde357170d@...627...> Message-ID: So that means I cannot redirect the properties for a connection to use another file instead? I mean, if I'd close connection and change the file and reopen? From gambas.fr at ...626... Mon Jan 4 22:04:24 2010 From: gambas.fr at ...626... (Fabien Bodard) Date: Mon, 4 Jan 2010 22:04:24 +0100 Subject: [Gambas-user] I can't disconnect from the database In-Reply-To: References: <6324a42a1001041238j7376aa8bj5d8b95bde357170d@...627...> Message-ID: <6324a42a1001041304v3339d85diae948b26efddde5e@...627...> 2010/1/4 M. Cs. : > So that means I cannot redirect the properties for a connection to use > another file instead? > I mean, if I'd close connection and change the file and reopen? you can too hresult = hcon.exec(..) hcon.close hcon.host = "mynewfilepath" hcon.database="newdatabasename" hcon.open > ------------------------------------------------------------------------------ > This SF.Net email is sponsored by the Verizon Developer Community > Take advantage of Verizon's best-in-class app development support > A streamlined, 14 day to market process makes app distribution fast and easy > Join now and get one step closer to millions of Verizon customers > http://p.sf.net/sfu/verizon-dev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From nospam.nospam.nospam at ...626... Mon Jan 4 22:52:46 2010 From: nospam.nospam.nospam at ...626... (Kadaitcha Man) Date: Tue, 5 Jan 2010 08:52:46 +1100 Subject: [Gambas-user] Socket Limitations In-Reply-To: <4B421911.7030201@...1909...> References: <4B40CBC2.1040402@...1909...> <201001031819.23379.gambas@...1...> <4B40F71C.9070304@...1909...> <4B41B613.4090306@...1909...> <4B41E6DB.4010309@...1909...> <4B421911.7030201@...1909...> Message-ID: 2010/1/5 Doriano Blengino : > Kadaitcha Man ha scritto: >> 2010/1/5 Doriano Blengino : >> >> I disagree. Blocking mode guarantees known certainties, as defined by >> any number of RFC documents. >> > Pardon me... I think that RFCs have nothing to do with blocking mode, lol - RFCs have everything to do with certainties. You misread it, or I didn't write it clearly. > Ok, I am speaking about things too philosophic, loosing contact with > reality. There is no point in spending time in such things. But I can > assure you that I am not stuck in anything - simply we don't understand > each other, probably because english is not my language. Or because French isn't mine :) > And now, let's stop this nowhere-going discussion. We both arrived at that conclusion. Wise move. From ronstk at ...239... Tue Jan 5 08:02:03 2010 From: ronstk at ...239... (Ron_1st) Date: Tue, 5 Jan 2010 08:02:03 +0100 Subject: [Gambas-user] sdl.sound plays mp3 too fast In-Reply-To: <27015977.post@...1379...> References: <26985683.post@...1379...> <201001040021.50497.gambas@...1...> <27015977.post@...1379...> Message-ID: <201001050802.04648.ronstk@...239...> On Monday 04 January 2010, Bill-Lancaster wrote: > > Sorry I'll try again http://old.nabble.com/file/p27015977/000244.mp3 > 000244.mp3 Complete name : /home/ron/Desktop/000244.mp3 Format : MPEG Audio File size : 1.36 MiB Duration : 5mn 57s Overall bit rate : 32.0 Kbps Writing library : LAME3.98 (alpha) Audio Format : MPEG Audio Format version : Version 2 Format profile : Layer 3 Duration : 5mn 57s Bit rate mode : Constant Bit rate : 32.0 Kbps Channel(s) : 2 channels Sampling rate : 16.0 KHz Resolution : 16 bits Stream size : 1.36 MiB (100%) Writing library : LAME3.98 (alpha) May be the Sampling rate or Bit rate are to less for the library used on your system for SDL_sound. This give on more players a problem with playback speed. Some play libraries require sample rate as 22.05 or 44.10 as minimum. KMplayer does OK Best regards, Ron_1st -- 111.111111 x 111.111111 = 12345.678987654321 -- A: Delete the text you reply on. Q: What to do to get my post on top? --- A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? --- A: Top-posting. Q: What is the most annoying thing in e-mail? From alerinaldi at ...2334... Tue Jan 5 12:51:15 2010 From: alerinaldi at ...2334... (Alessandro Rinaldi) Date: Tue, 5 Jan 2010 12:51:15 +0100 Subject: [Gambas-user] sdl.sound plays mp3 too fast In-Reply-To: <201001050802.04648.ronstk@...239...> References: <26985683.post@...1379...> <201001040021.50497.gambas@...1...> <27015977.post@...1379...> <201001050802.04648.ronstk@...239...> Message-ID: <57de1d081001050351w4d5f69c0g89839a20b37a5924@...627...> > May be the Sampling rate or Bit rate are to less for the > library used on your system for SDL_sound. I don't think it's bit rate, imho it's definitely the sampling rate. From jlichter at ...20... Tue Jan 5 15:00:54 2010 From: jlichter at ...20... (JLichter) Date: Tue, 05 Jan 2010 15:00:54 +0100 Subject: [Gambas-user] FileChooser Refresh and Events? In-Reply-To: <1262690809.3883.6.camel@...2347...> References: <1262690809.3883.6.camel@...2347...> Message-ID: <1262700054.2485.1.camel@...2347...> Dear All! I am using Ubuntu 9.10 with Gambas 2.13 and 2.18. How can I refresh the FileChooser? Unfortunately FileChooser1.Refresh does not work and I trick it with: FileChooser1.ShowDetailed = FALSE FileChooser1.ShowDetailed = TRUE Also the event KeyPress and MouseDown not work. Thanks in advance, Jo From gambas at ...1... Tue Jan 5 20:39:30 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Tue, 5 Jan 2010 20:39:30 +0100 Subject: [Gambas-user] FileChooser Refresh and Events? In-Reply-To: <1262700054.2485.1.camel@...2347...> References: <1262690809.3883.6.camel@...2347...> <1262700054.2485.1.camel@...2347...> Message-ID: <201001052039.30601.gambas@...1...> > Dear All! > > I am using Ubuntu 9.10 with Gambas 2.13 and 2.18. > How can I refresh the FileChooser? > > Unfortunately FileChooser1.Refresh does not work and I trick it with: > > FileChooser1.ShowDetailed = FALSE > FileChooser1.ShowDetailed = TRUE > > > Also the event KeyPress and MouseDown not work. > > > Thanks in advance, > Jo If I remember, you must call the Reload method. The Refresh method is just for refreshing the GUI of the control. Regards, -- Beno?t Minisini From jlichter at ...20... Tue Jan 5 23:01:45 2010 From: jlichter at ...20... (JLichter) Date: Tue, 05 Jan 2010 23:01:45 +0100 Subject: [Gambas-user] FileChooser Refresh and Events? In-Reply-To: <201001052039.30601.gambas@...1...> References: <1262690809.3883.6.camel@...2347...> <1262700054.2485.1.camel@...2347...> <201001052039.30601.gambas@...1...> Message-ID: <1262728905.3151.7.camel@...2347...> Dear Beno?t Minisini, Thanks for your fast answer. But the FileChooser hasn't a reload method. Link: http://gambasdoc.org/help/comp/gb.form/filechooser Regards Jo at 05.01.2010, 20:39 +0100 wrote Beno?t Minisini: > > Dear All! > > > > I am using Ubuntu 9.10 with Gambas 2.13 and 2.18. > > How can I refresh the FileChooser? > > > > Unfortunately FileChooser1.Refresh does not work and I trick it with: > > > > FileChooser1.ShowDetailed = FALSE > > FileChooser1.ShowDetailed = TRUE > > > > > > Also the event KeyPress and MouseDown not work. > > > > > > Thanks in advance, > > Jo > > If I remember, you must call the Reload method. The Refresh method is just for > refreshing the GUI of the control. > > Regards, > From gambas.fr at ...626... Tue Jan 5 23:43:42 2010 From: gambas.fr at ...626... (Fabien Bodard) Date: Tue, 5 Jan 2010 23:43:42 +0100 Subject: [Gambas-user] FileChooser Refresh and Events? In-Reply-To: <1262728905.3151.7.camel@...2347...> References: <1262690809.3883.6.camel@...2347...> <1262700054.2485.1.camel@...2347...> <201001052039.30601.gambas@...1...> <1262728905.3151.7.camel@...2347...> Message-ID: <6324a42a1001051443g3107cf48vdc3808715a52231f@...627...> this is true ... it's a miss :) ... only fileview and dirview have reload method ! But as workaround you can do that : DIM hObject AS Object hObject = FileChooser1.children[0] hObject.DirView.Reload 2010/1/5 JLichter : > Dear Beno?t Minisini, > > Thanks for your fast answer. > > But the FileChooser hasn't a reload method. > Link: http://gambasdoc.org/help/comp/gb.form/filechooser > > Regards Jo > > > > > at 05.01.2010, 20:39 +0100 wrote Beno?t Minisini: > >> > Dear All! >> > >> > I am using Ubuntu 9.10 with Gambas 2.13 and 2.18. >> > How can I refresh the FileChooser? >> > >> > Unfortunately FileChooser1.Refresh does not work and I trick it with: >> > >> > ? ? ?FileChooser1.ShowDetailed = FALSE >> > ? ? ?FileChooser1.ShowDetailed = TRUE >> > >> > >> > Also the event KeyPress and MouseDown not work. >> > >> > >> > Thanks in advance, >> > Jo >> >> If I remember, you must call the Reload method. The Refresh method is just for >> refreshing the GUI of the control. >> >> Regards, >> > > > ------------------------------------------------------------------------------ > This SF.Net email is sponsored by the Verizon Developer Community > Take advantage of Verizon's best-in-class app development support > A streamlined, 14 day to market process makes app distribution fast and easy > Join now and get one step closer to millions of Verizon customers > http://p.sf.net/sfu/verizon-dev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From jlichter at ...20... Wed Jan 6 00:23:24 2010 From: jlichter at ...20... (JLichter) Date: Wed, 06 Jan 2010 00:23:24 +0100 Subject: [Gambas-user] FileChooser Refresh and Events? In-Reply-To: <6324a42a1001051443g3107cf48vdc3808715a52231f@...627...> References: <1262690809.3883.6.camel@...2347...> <1262700054.2485.1.camel@...2347...> <201001052039.30601.gambas@...1...> <1262728905.3151.7.camel@...2347...> <6324a42a1001051443g3107cf48vdc3808715a52231f@...627...> Message-ID: <1262733804.7068.3.camel@...2347...> Great! Many Thanks that's right :-) Jo Am Dienstag, den 05.01.2010, 23:43 +0100 schrieb Fabien Bodard: > this is true ... it's a miss :) ... only fileview and dirview have > reload method ! > > > > But as workaround you can do that : > > > DIM hObject AS Object > hObject = FileChooser1.children[0] > hObject.DirView.Reload > > > > > 2010/1/5 JLichter : > > Dear Beno?t Minisini, > > > > Thanks for your fast answer. > > > > But the FileChooser hasn't a reload method. > > Link: http://gambasdoc.org/help/comp/gb.form/filechooser > > > > Regards Jo > > > > > > > > > > at 05.01.2010, 20:39 +0100 wrote Beno?t Minisini: > > > >> > Dear All! > >> > > >> > I am using Ubuntu 9.10 with Gambas 2.13 and 2.18. > >> > How can I refresh the FileChooser? > >> > > >> > Unfortunately FileChooser1.Refresh does not work and I trick it with: > >> > > >> > FileChooser1.ShowDetailed = FALSE > >> > FileChooser1.ShowDetailed = TRUE > >> > > >> > > >> > Also the event KeyPress and MouseDown not work. > >> > > >> > > >> > Thanks in advance, > >> > Jo > >> > >> If I remember, you must call the Reload method. The Refresh method is just for > >> refreshing the GUI of the control. > >> > >> Regards, > >> > > > > > > ------------------------------------------------------------------------------ > > This SF.Net email is sponsored by the Verizon Developer Community > > Take advantage of Verizon's best-in-class app development support > > A streamlined, 14 day to market process makes app distribution fast and easy > > Join now and get one step closer to millions of Verizon customers > > http://p.sf.net/sfu/verizon-dev2dev > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > From jlichter at ...20... Wed Jan 6 01:58:25 2010 From: jlichter at ...20... (JLichter) Date: Wed, 06 Jan 2010 01:58:25 +0100 Subject: [Gambas-user] FileChooser: KeyPress or MouseDown? Message-ID: <1262739505.8262.10.camel@...2347...> Dear All! Confused: With the event FileChooser1_Activate() I can using as event a DbkClick ;-) OK, but how can I using as event a KeyPress or MouseDown? It seems to me, that both events do not work. Thanks in advance, Jo From rterry at ...1946... Wed Jan 6 07:09:31 2010 From: rterry at ...1946... (richard terry) Date: Wed, 6 Jan 2010 17:09:31 +1100 Subject: [Gambas-user] Webview history cache Message-ID: <201001061709.31231.rterry@...1946...> I wondered if it was possible to programatically clear the cache of URL's from the webview control. Thanks in anticipation. Richard From gambas at ...1... Wed Jan 6 09:56:24 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Wed, 6 Jan 2010 09:56:24 +0100 Subject: [Gambas-user] Webview history cache In-Reply-To: <201001061709.31231.rterry@...1946...> References: <201001061709.31231.rterry@...1946...> Message-ID: <201001060956.24859.gambas@...1...> > I wondered if it was possible to programatically clear the cache of URL's > from the webview control. > > Thanks in anticipation. > > Richard > For the moment, you have to do that: Shell "rm -rf " & Shell$(WebSettings.Cache.Path) &/ "*" Wait Regards, -- Beno?t Minisini From bill at ...2351... Wed Jan 6 16:50:08 2010 From: bill at ...2351... (Bill Richman) Date: Wed, 06 Jan 2010 09:50:08 -0600 Subject: [Gambas-user] Smooth scrolling listboxes should "jump scroll", right? Message-ID: <4B44B130.4080103@...2350...> Attached is a screenshot of what I'm talking about. I've tried both GTK and QT toolkits, and it seems to do the same thing with both. Shouldn't the entries "jump" from one to the next, and not let you stop anywhere in-between, as is shown in the screencap? Any ideas? I'd prefer a combo-box, but I need to be able to keep track of a "hidden" index value that goes along with each selection in the list. BTW, Benoit, you've rekindled my interest and joy in programming with GAMBAS. It's the best present I've gotten in a long time. Thanks. -- Bill Richman - Lincoln, Nebraska Tilter at windmills, maker of pies in the sky, & curmudgeon email: bill at ...2350... web: www.geektrap.com -------------- next part -------------- A non-text attachment was scrubbed... Name: Screenshot-Garden Manager.png Type: image/png Size: 4865 bytes Desc: not available URL: From gambas at ...1... Wed Jan 6 16:56:15 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Wed, 6 Jan 2010 16:56:15 +0100 Subject: [Gambas-user] Smooth scrolling listboxes should "jump scroll", right? In-Reply-To: <4B44B130.4080103@...2350...> References: <4B44B130.4080103@...2350...> Message-ID: <201001061656.15238.gambas@...1...> > Attached is a screenshot of what I'm talking about. I've tried both GTK > and QT toolkits, and it seems to do the same thing with both. Shouldn't > the entries "jump" from one to the next, and not let you stop anywhere > in-between, as is shown in the screencap? Any ideas? I'd prefer a > combo-box, but I need to be able to keep track of a "hidden" index value > that goes along with each selection in the list. > > BTW, Benoit, you've rekindled my interest and joy in programming with > GAMBAS. It's the best present I've gotten in a long time. Thanks. > Sorry, I can't do anything against that behaviour that is deeply implemented inside GUI toolkits. Regards, -- Beno?t Minisini From gambas.fr at ...626... Wed Jan 6 18:46:06 2010 From: gambas.fr at ...626... (Fabien Bodard) Date: Wed, 6 Jan 2010 18:46:06 +0100 Subject: [Gambas-user] Smooth scrolling listboxes should "jump scroll", right? In-Reply-To: <201001061656.15238.gambas@...1...> References: <4B44B130.4080103@...2350...> <201001061656.15238.gambas@...1...> Message-ID: <6324a42a1001060946h5fae57b7if7fdb2f7ba6e019d@...627...> Le 6 janvier 2010 16:56, Beno?t Minisini a ?crit : >> Attached is a screenshot of what I'm talking about. ?I've tried both GTK >> and QT toolkits, and it seems to do the same thing with both. ?Shouldn't >> the entries "jump" from one to the next, and not let you stop anywhere >> in-between, as is shown in the screencap? ?Any ideas? ?I'd prefer a >> combo-box, but I need to be able to keep track of a "hidden" index value >> that goes along with each selection in the list. ok so for the hidden index value : private aHiddenValue as new Integer[] public sub Form_load() For i = 0 to 100 ComboBox.Add("value") aHiddenValue.Add(iHiddenValue) next end Public sub ComboBox_Click() ivalue = aHiddenValue[combobox.index] end >> >> BTW, Benoit, you've rekindled my interest and joy in programming with >> GAMBAS. ?It's the best present I've gotten in a long time. ?Thanks. >> > > Sorry, I can't do anything against that behaviour that is deeply implemented > inside GUI toolkits. > > Regards, > > -- > Beno?t Minisini > > ------------------------------------------------------------------------------ > This SF.Net email is sponsored by the Verizon Developer Community > Take advantage of Verizon's best-in-class app development support > A streamlined, 14 day to market process makes app distribution fast and easy > Join now and get one step closer to millions of Verizon customers > http://p.sf.net/sfu/verizon-dev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas.fr at ...626... Wed Jan 6 18:52:48 2010 From: gambas.fr at ...626... (Fabien Bodard) Date: Wed, 6 Jan 2010 18:52:48 +0100 Subject: [Gambas-user] FileChooser: KeyPress or MouseDown? In-Reply-To: <1262739505.8262.10.camel@...2347...> References: <1262739505.8262.10.camel@...2347...> Message-ID: <6324a42a1001060952l56fc525et48c6f102008990a6@...627...> 2010/1/6 JLichter : > Dear All! > > Confused: With the event FileChooser1_Activate() ?I can using as event a > DbkClick ;-) > > OK, but how can I using as event a KeyPress or MouseDown? > It seems to me, that both events do not work. > > Thanks in advance, > Jo > ------------------------------------------------------------------------------ > This SF.Net email is sponsored by the Verizon Developer Community > Take advantage of Verizon's best-in-class app development support > A streamlined, 14 day to market process makes app distribution fast and easy > Join now and get one step closer to millions of Verizon customers > http://p.sf.net/sfu/verizon-dev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > Ok, these events are not activate ! and really... i don't see the need for these events. so you can tell me what you want to do and i've maybe a soluce for that. From jlichter at ...20... Wed Jan 6 19:29:20 2010 From: jlichter at ...20... (JLichter) Date: Wed, 06 Jan 2010 19:29:20 +0100 Subject: [Gambas-user] FileChooser: KeyPress or MouseDown? In-Reply-To: <6324a42a1001060952l56fc525et48c6f102008990a6@...627...> References: <1262739505.8262.10.camel@...2347...> <6324a42a1001060952l56fc525et48c6f102008990a6@...627...> Message-ID: <1262802560.3027.31.camel@...2347...> Hi Fabien, What a pity, you don't see the need for these events? I could be on the wrong track? ;-( mmh... ok, e.g.: I want to create a contex-menue with right-mouse-click, or delete a file with the DEL-Key like: "IF key.Code = key.Delete THEN ... " Sorry, for my understanding I need such events? Or have you a better concept for do this? Regards, Jo Am Mittwoch, den 06.01.2010, 18:52 +0100 schrieb Fabien Bodard: > 2010/1/6 JLichter : > > Dear All! > > > > Confused: With the event FileChooser1_Activate() I can using as event a > > DbkClick ;-) > > > > OK, but how can I using as event a KeyPress or MouseDown? > > It seems to me, that both events do not work. > > > > Thanks in advance, > > Jo > > ------------------------------------------------------------------------------ > > This SF.Net email is sponsored by the Verizon Developer Community > > Take advantage of Verizon's best-in-class app development support > > A streamlined, 14 day to market process makes app distribution fast and easy > > Join now and get one step closer to millions of Verizon customers > > http://p.sf.net/sfu/verizon-dev2dev > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > Ok, > these events are not activate ! and really... i don't see the need for > these events. > > so you can tell me what you want to do and i've maybe a soluce for that. From jlichter at ...20... Wed Jan 6 19:56:03 2010 From: jlichter at ...20... (JLichter) Date: Wed, 06 Jan 2010 19:56:03 +0100 Subject: [Gambas-user] FileChooser: KeyPress or MouseDown? Message-ID: <1262804163.3990.3.camel@...2347...> Ooops! I'm very sorry! I can use the needed events from the form! Many thanks for your patience! Jo Am Mittwoch, den 06.01.2010, 18:52 +0100 schrieb Fabien Bodard: > 2010/1/6 JLichter : > > Dear All! > > > > Confused: With the event FileChooser1_Activate() I can using as event a > > DbkClick ;-) > > > > OK, but how can I using as event a KeyPress or MouseDown? > > It seems to me, that both events do not work. > > > > Thanks in advance, > > Jo > > ------------------------------------------------------------------------------ > > This SF.Net email is sponsored by the Verizon Developer Community > > Take advantage of Verizon's best-in-class app development support > > A streamlined, 14 day to market process makes app distribution fast and easy > > Join now and get one step closer to millions of Verizon customers > > http://p.sf.net/sfu/verizon-dev2dev > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > Ok, > these events are not activate ! and really... i don't see the need for > these events. > > so you can tell me what you want to do and i've maybe a soluce for that. From gambas at ...1... Wed Jan 6 20:01:01 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Wed, 6 Jan 2010 20:01:01 +0100 Subject: [Gambas-user] FileChooser: KeyPress or MouseDown? In-Reply-To: <1262802560.3027.31.camel@...2347...> References: <1262739505.8262.10.camel@...2347...> <6324a42a1001060952l56fc525et48c6f102008990a6@...627...> <1262802560.3027.31.camel@...2347...> Message-ID: <201001062001.01206.gambas@...1...> > Hi Fabien, > What a pity, you don't see the need for these events? > I could be on the wrong track? ;-( > > mmh... ok, e.g.: > > I want to create a contex-menue with right-mouse-click, or > delete a file with the DEL-Key like: "IF key.Code = key.Delete THEN ... > " > > Sorry, for my understanding I need such events? Or have you a better > concept for do this? > > Regards, > Jo > FileChooser and FileView are compound controls. The events you want to catch are raised by inner control you don't have access, unless using Fabien's trick. Why don't you take the FileView source code and modify it to have a contextual pop-up menu? -- Beno?t Minisini From norarg at ...2311... Wed Jan 6 22:14:02 2010 From: norarg at ...2311... (norarg) Date: Wed, 06 Jan 2010 18:14:02 -0300 Subject: [Gambas-user] OPEN unexpected error Message-ID: Hi, I have switched over to Gambas 2.99 (3), and can not figure out where I have an error, this worked in ver. 2.13: Dim hf1 As File . . . Open Application.Path & "/Generate/DATAPANEL_FORM.gen_parse" For Read As #hf1 . . In this line I get "unexpected open". I have searched around, eventually for a missing component, (stream), but then the dim of hf1 would have caused an error, I presume. I have more Open's, and the error occurs when compiling, not accessing. Please help, stay a bit stucked here. Thanks and regards, norarg From Karl.Reinl at ...2345... Wed Jan 6 22:54:30 2010 From: Karl.Reinl at ...2345... (Charlie Reinl) Date: Wed, 06 Jan 2010 22:54:30 +0100 Subject: [Gambas-user] OPEN unexpected error In-Reply-To: References: Message-ID: <1262814870.6419.7.camel@...40...> Am Mittwoch, den 06.01.2010, 18:14 -0300 schrieb norarg: > Hi, > > I have switched over to Gambas 2.99 (3), and can not figure out where I > have an error, this worked in ver. 2.13: > > Dim hf1 As File > . > . > . > Open Application.Path & "/Generate/DATAPANEL_FORM.gen_parse" For Read As > #hf1 > . > . > > In this line I get "unexpected open". I have searched around, eventually > for a missing component, (stream), but then the dim of hf1 would have > caused an error, I presume. I have more Open's, and the error occurs > when compiling, not accessing. > > Please help, stay a bit stucked here. > > Thanks and regards, > norarg Salut norarg, your sure that was in 2.13? http://gambasdoc.org/help/lang/open ' Prints the contents of a text file to the screen DIM hFile AS File DIM sLine AS String hFile = OPEN "/etc/passwd" FOR INPUT WHILE NOT Eof(hFile) LINE INPUT #hFile, sLine PRINT sLine WEND -- Amicalement Charlie From norarg at ...2311... Thu Jan 7 01:24:50 2010 From: norarg at ...2311... (norarg) Date: Wed, 06 Jan 2010 21:24:50 -0300 Subject: [Gambas-user] [SPAM] Re: OPEN unexpected error In-Reply-To: <1262814870.6419.7.camel@...40...> References: <1262814870.6419.7.camel@...40...> Message-ID: hi Charlie yes, I used 2.13 shipped with ubuntu 9.10 until last week, as I startet to use the SVN. thanks - in this way everything works fine :) saludos norarg Am Mittwoch, den 06.01.2010, 22:54 +0100 schrieb Charlie Reinl: > Am Mittwoch, den 06.01.2010, 18:14 -0300 schrieb norarg: > > Hi, > > > > I have switched over to Gambas 2.99 (3), and can not figure out where I > > have an error, this worked in ver. 2.13: > > > > Dim hf1 As File > > . > > . > > . > > Open Application.Path & "/Generate/DATAPANEL_FORM.gen_parse" For Read As > > #hf1 > > . > > . > > > > In this line I get "unexpected open". I have searched around, eventually > > for a missing component, (stream), but then the dim of hf1 would have > > caused an error, I presume. I have more Open's, and the error occurs > > when compiling, not accessing. > > > > Please help, stay a bit stucked here. > > > > Thanks and regards, > > norarg > > Salut norarg, > > your sure that was in 2.13? > > http://gambasdoc.org/help/lang/open > > > ' Prints the contents of a text file to the screen > > DIM hFile AS File > DIM sLine AS String > > hFile = OPEN "/etc/passwd" FOR INPUT > > WHILE NOT Eof(hFile) > LINE INPUT #hFile, sLine > PRINT sLine > WEND > > -------------- next part -------------- A non-text attachment was scrubbed... Name: face-smile.png Type: image/png Size: 873 bytes Desc: not available URL: From norarg at ...2311... Thu Jan 7 23:34:53 2010 From: norarg at ...2311... (norarg) Date: Thu, 07 Jan 2010 19:34:53 -0300 Subject: [Gambas-user] Problems generating a form Message-ID: Hi, let me see if I have understood this right: the values of the items in the .form are core, and recalculated in pixel when the form is loaded into the IDE. here an example: { Label1 Label MoveScaled(2,2,10,4) Text = ("Label1") } when loaded, x=14 y=14 width=70 height=28 should be an easy task ... I thought. when loading the form, the height value is increased, I generated this with (2,8,22,2) { lbl_BUD_datum Label MoveScaled(2,8,22,3) Text = ("Datum ") Alignment = Align.Right Border = Border.Raised } why, is not at all clear to me. I have also tried with 1 instead of 2, then it makes 14 pix out of it. the function calculates the height of the label plus a distance between them (1), to get a new top (y). the y-value is not influenced, so the labels are ovelapping each other: means: the new y-value is correct, while the height is too high. I could write a workaround, still I would like to know what happens here - in case I change the parameters I could be forced to write another workaround - don't know. as info: I write this generator because I have a real lot of forms to create, and data are all coming from mySql, so the behavior and functions are always the same: select record from a tableview, show the details in a data-panel, and have core-functions like new, copy, save, delete, print. if someone has an idea here, I will be grateful to here it. thanks and regards, norarg From charles at ...1784... Fri Jan 8 10:21:00 2010 From: charles at ...1784... (charlesg) Date: Fri, 8 Jan 2010 01:21:00 -0800 (PST) Subject: [Gambas-user] How to change a picture when a key is pressed ? In-Reply-To: <27065827.post@...1379...> References: <27065827.post@...1379...> Message-ID: <27073271.post@...1379...> Hi I don't mess around with pictures much so this may be the blind leading the blind. The command is: PictureBox1.Picture = Picture.Load("/home/charles/Photos/SV400005.JPG") I could not get a response to a PictureBox1_keypress event so I buried a textbox behind the picturebox, made sure it had focus and: > PUBLIC SUB TextBox1_KeyPress() > IF Key.text = "a" THEN > PictureBox1.Picture = > Picture.Load("/home/charles/Photos/SV400005.JPG") > ENDIF > END > Remember that Key.text is case sensitive so you should test for that. rgds -- View this message in context: http://old.nabble.com/How-to-change-a-picture-when-a-key-is-pressed---tp27065827p27073271.html Sent from the gambas-user mailing list archive at Nabble.com. From bill at ...2351... Fri Jan 8 16:02:42 2010 From: bill at ...2351... (Bill Richman) Date: Fri, 08 Jan 2010 09:02:42 -0600 Subject: [Gambas-user] Smooth scrolling listboxes should "jump scroll", right? In-Reply-To: <6324a42a1001060946h5fae57b7if7fdb2f7ba6e019d@...627...> References: <4B44B130.4080103@...2350...> <201001061656.15238.gambas@...1...> <6324a42a1001060946h5fae57b7if7fdb2f7ba6e019d@...627...> Message-ID: <4B474912.4040201@...2350...> Why didn't I think of that? Works great - thanks! Bill Richman - Lincoln, Nebraska Tilter at windmills, maker of pies in the sky, & curmudgeon email: bill at ...2350... web: www.geektrap.com Fabien Bodard wrote: > ok so for the hidden index value : > > private aHiddenValue as new Integer[] > > public sub Form_load() > > For i = 0 to 100 > > ComboBox.Add("value") > aHiddenValue.Add(iHiddenValue) > > next > > end > > Public sub ComboBox_Click() > > ivalue = aHiddenValue[combobox.index] > > end > From bill at ...2351... Fri Jan 8 16:10:24 2010 From: bill at ...2351... (Bill Richman) Date: Fri, 08 Jan 2010 09:10:24 -0600 Subject: [Gambas-user] How to change a picture when a key is pressed ? In-Reply-To: <27073271.post@...1379...> References: <27065827.post@...1379...> <27073271.post@...1379...> Message-ID: <4B474AE0.2090001@...2350...> I don't see the original post of this question, but when I was trying to do something like this, I ended up using a "ToolButton". You can assign pictures to them and change them using the same "Picture.Load(mypicture.jpg)" command. They generate "ToolButton_click" events. The ToolButton is (at least in my world) on the Form tab, between the "Toggle Button" and the "Slider" controls, shown as a button with a small picture of the GAMBAS logo on it. Hope this helps. Bill Richman - Lincoln, Nebraska Tilter at windmills, maker of pies in the sky, & curmudgeon email: bill at ...2350... web: www.geektrap.com charlesg wrote: > Hi > > I don't mess around with pictures much so this may be the blind leading the > blind. > > The command is: PictureBox1.Picture = > Picture.Load("/home/charles/Photos/SV400005.JPG") > > I could not get a response to a PictureBox1_keypress event so I buried a > textbox behind the picturebox, made sure it had focus and: > > > >> PUBLIC SUB TextBox1_KeyPress() >> IF Key.text = "a" THEN >> PictureBox1.Picture = >> Picture.Load("/home/charles/Photos/SV400005.JPG") >> ENDIF >> END >> >> > Remember that Key.text is case sensitive so you should test for that. > > rgds > From math.eber at ...221... Fri Jan 8 21:28:49 2010 From: math.eber at ...221... (Matti) Date: Fri, 08 Jan 2010 21:28:49 +0100 Subject: [Gambas-user] How to change a picture when a key is pressed ? In-Reply-To: <27073271.post@...1379...> References: <27065827.post@...1379...> <27073271.post@...1379...> Message-ID: <4B479581.9050903@...221...> I also don't have the original message, but PictureBox_KeyPress() works fine here. Try something like: PUBLIC SUB PictureBox1_KeyPress() IF Key.Code = 4096 THEN PictureBox1.Visible = FALSE END (this Key.Code is "ESC". Look in the docs for "Key".) Or, if you need it, something with left/right mouse: PUBLIC SUB PictureBox1_MouseDown() IF Mouse.Left = TRUE THEN PictureBox1.Visible = FALSE ELSE mnuGross.Popup ENDIF END Hope this helps. Matti charlesg schrieb: > Hi > > I don't mess around with pictures much so this may be the blind leading the > blind. > > The command is: PictureBox1.Picture = > Picture.Load("/home/charles/Photos/SV400005.JPG") > > I could not get a response to a PictureBox1_keypress event so I buried a > textbox behind the picturebox, made sure it had focus and: > > >> PUBLIC SUB TextBox1_KeyPress() >> IF Key.text = "a" THEN >> PictureBox1.Picture = >> Picture.Load("/home/charles/Photos/SV400005.JPG") >> ENDIF >> END >> > Remember that Key.text is case sensitive so you should test for that. > > rgds From math.eber at ...221... Fri Jan 8 21:37:31 2010 From: math.eber at ...221... (Matti) Date: Fri, 08 Jan 2010 21:37:31 +0100 Subject: [Gambas-user] Gambas3 svn won't install In-Reply-To: <1262119450.6354.11.camel@...40...> References: <4B3A6311.2060405@...221...> <1262119450.6354.11.camel@...40...> Message-ID: <4B47978B.4080609@...221...> Thanks for the scripts, Charlie. But they don't help, I get the same errors as before. I think Laurent had the right hint (separate post). But........ (separate post) Matti Charlie Reinl schrieb: > Am Dienstag, den 29.12.2009, 21:14 +0100 schrieb Matti: >> on OpenSuSe 11.0 >> kernel 2.6.25.20 >> libtool 1.5.26 >> >> I tried some svn versions with ./reconf-all as user with the result: >> Remember to add `AC_PROG_LIBTOOL' to `configure.ac'. >> You should update your `aclocal.m4' by running aclocal. >> autoreconf: Entering directory `.' >> autoreconf: configure.ac: not using Gettext >> ... >> autom4te: cannot open autom4te.cache/requests: no rights >> aclocal: autom4te failed with exit status: 1 >> autoreconf: aclocal failed with exit status: 1 >> >> "no rights" even if I set the rights for the user. >> >> Next I tried ./reconf-all as root and got lots of messages like: >> ... >> gbc/Makefile.am:5: Libtool library used but `LIBTOOL' is undefined >> gbc/Makefile.am:5: The usual way to define `LIBTOOL' is to add `AC_PROG_LIBTOOL' >> gbc/Makefile.am:5: to `configure.ac' and run `aclocal' and `autoconf' again. >> gbc/Makefile.am:5: If `AC_PROG_LIBTOOL' is in `configure.ac', make sure >> gbc/Makefile.am:5: its definition is in aclocal's search path. >> gbx/Makefile.am:5: library used but `RANLIB' is undefined >> gbx/Makefile.am:5: The usual way to define `RANLIB' is to add `AC_PROG_RANLIB' >> gbx/Makefile.am:5: to `configure.ac' and run `autoconf' again. >> ... >> finally: >> autoreconf: automake failed with exit status: 1 >> >> What's wrong here? >> A few months ago, I installed Gambas3 (where to find the version?) without any >> problems. >> >> Thanks for any hints. >> Matti > > Salut Matti, > > sent you my two scripts for making gambas3. > Copy them into a dir > , make them executable > , edit update30 > set TARGET to your Path > set SVNREV=" -r " to a value where it worked for you > (you have to find out) > if you can't use sudo to became root, you have also make changes in > svnMake > > > > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------------ > This SF.Net email is sponsored by the Verizon Developer Community > Take advantage of Verizon's best-in-class app development support > A streamlined, 14 day to market process makes app distribution fast and easy > Join now and get one step closer to millions of Verizon customers > http://p.sf.net/sfu/verizon-dev2dev > > > ------------------------------------------------------------------------ > > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From math.eber at ...221... Fri Jan 8 21:44:18 2010 From: math.eber at ...221... (Matti) Date: Fri, 08 Jan 2010 21:44:18 +0100 Subject: [Gambas-user] Gambas3 svn won't install In-Reply-To: <200912292141.47563.lordheavym@...626...> References: <4B3A6311.2060405@...221...> <200912292141.47563.lordheavym@...626...> Message-ID: <4B479922.1070300@...221...> Thanks, Laurent. I installed libtool 2.something, and now I could run ./reconf-all and so on. Some error messages, but as far as I can see, they are only about GTK and other things that I don't have here. Installation looks ok. Contrary to the docs, I had to run everything as root - otherwise nothing would work because of "no rights". But..... (separate post) Matti Laurent Carlier schrieb: > Le mardi 29 d?cembre 2009 21:14:09, Matti a ?crit : >> on OpenSuSe 11.0 >> kernel 2.6.25.20 >> libtool 1.5.26 >> >> I tried some svn versions with ./reconf-all as user with the result: >> Remember to add `AC_PROG_LIBTOOL' to `configure.ac'. >> You should update your `aclocal.m4' by running aclocal. >> autoreconf: Entering directory `.' >> autoreconf: configure.ac: not using Gettext >> ... >> autom4te: cannot open autom4te.cache/requests: no rights >> aclocal: autom4te failed with exit status: 1 >> autoreconf: aclocal failed with exit status: 1 >> >> "no rights" even if I set the rights for the user. >> >> Next I tried ./reconf-all as root and got lots of messages like: >> ... >> gbc/Makefile.am:5: Libtool library used but `LIBTOOL' is undefined >> gbc/Makefile.am:5: The usual way to define `LIBTOOL' is to add >> `AC_PROG_LIBTOOL' gbc/Makefile.am:5: to `configure.ac' and run `aclocal' >> and `autoconf' again. gbc/Makefile.am:5: If `AC_PROG_LIBTOOL' is in >> `configure.ac', make sure gbc/Makefile.am:5: its definition is in >> aclocal's search path. >> gbx/Makefile.am:5: library used but `RANLIB' is undefined >> gbx/Makefile.am:5: The usual way to define `RANLIB' is to add >> `AC_PROG_RANLIB' gbx/Makefile.am:5: to `configure.ac' and run `autoconf' >> again. >> ... >> finally: >> autoreconf: automake failed with exit status: 1 >> >> What's wrong here? >> A few months ago, I installed Gambas3 (where to find the version?) without >> any problems. >> >> Thanks for any hints. >> Matti >> > > Now gambas3 need libtool 2.X versions to build configure scripts. There is two > possibilities (at least), install libtool 2.x, or have access to a computer > with libtool 2.x just to run reconf-all script, all other steps > (configure/make/..) should work in your computer. > > Installing a minimal distro with appropriate tools in a chroot should be > enough (but not tested). > > ++ > > > ------------------------------------------------------------------------------ > This SF.Net email is sponsored by the Verizon Developer Community > Take advantage of Verizon's best-in-class app development support > A streamlined, 14 day to market process makes app distribution fast and easy > Join now and get one step closer to millions of Verizon customers > http://p.sf.net/sfu/verizon-dev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From math.eber at ...221... Fri Jan 8 21:51:15 2010 From: math.eber at ...221... (Matti) Date: Fri, 08 Jan 2010 21:51:15 +0100 Subject: [Gambas-user] Gambas3 svn installs now, but won't run Message-ID: <4B479AC3.9080503@...221...> ... but: When I call /usr/local/bin/gambas3, I get this message: ERROR: #2: Cannot load class '2.99.0': Unable to load class file ** INTERNAL ERROR ** ** Bad type (0) for VALUE_write ** Program aborting. Sorry! :-( What the hell is that again? Couldn't google anything like that. It's on OpenSUSE 11.0, and the first installation of gb3 was without any problems. Thanks, Matti. From gambas at ...1... Sat Jan 9 00:40:40 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sat, 9 Jan 2010 00:40:40 +0100 Subject: [Gambas-user] Gambas3 svn installs now, but won't run In-Reply-To: <4B479AC3.9080503@...221...> References: <4B479AC3.9080503@...221...> Message-ID: <201001090040.40308.gambas@...1...> > ... but: > When I call /usr/local/bin/gambas3, I get this message: > > ERROR: #2: Cannot load class '2.99.0': Unable to load class file > ** INTERNAL ERROR ** > ** Bad type (0) for VALUE_write > ** Program aborting. Sorry! :-( > > What the hell is that again? > Couldn't google anything like that. > > It's on OpenSUSE 11.0, and the first installation of gb3 was without any > problems. > > Thanks, Matti. > That means that there is something completely weird in your Gambas installation. Please provide the full output of the configuration, compilation and installation process. You have to be root only when you run "make install". You should not, or must not be root when doing configuration and compilation. Regards, -- Beno?t Minisini From gambas at ...1... Sat Jan 9 00:42:05 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sat, 9 Jan 2010 00:42:05 +0100 Subject: [Gambas-user] How to change a picture when a key is pressed ? In-Reply-To: <27073271.post@...1379...> References: <27065827.post@...1379...> <27073271.post@...1379...> Message-ID: <201001090042.05421.gambas@...1...> > Hi > > I don't mess around with pictures much so this may be the blind leading the > blind. > > The command is: PictureBox1.Picture = > Picture.Load("/home/charles/Photos/SV400005.JPG") > > I could not get a response to a PictureBox1_keypress event Some controls cannot get focus, and so never raise key events. Regards, -- Beno?t Minisini From bbruen at ...2308... Sat Jan 9 01:47:03 2010 From: bbruen at ...2308... (bbb888) Date: Fri, 8 Jan 2010 16:47:03 -0800 (PST) Subject: [Gambas-user] Where is "user component directory"? Message-ID: <27084461.post@...1379...> Hi guys, Just did a system upgrade which required a gambas re-installation (due to postgresql upgrade dependencies). This was fine, but... All my user built components seem to have disappeared. Oh well, so it goes, so I just tried to recompile them i.e. "make executable". So far, I have done my "base" component, which is a modest enhancement to the Application component. It compiles and runs ok in test mode and when I do the make all seems normal. But when I move onto the next level component, it cannot find the "bbApplication" component? I notice that bbApplication is being made in /usr/local/lib/gambas and the next component is being made in ~/projects/GAMBASprojects2009/TM080101/BOControls. Which leads me to the question, where are the user components supposed to be made, and how do I fix things so they do go there? tia bruce -- View this message in context: http://old.nabble.com/Where-is-%22user-component-directory%22--tp27084461p27084461.html Sent from the gambas-user mailing list archive at Nabble.com. From kobolds at ...2041... Sat Jan 9 02:12:10 2010 From: kobolds at ...2041... (kobolds) Date: Fri, 8 Jan 2010 17:12:10 -0800 (PST) Subject: [Gambas-user] make fail (gambas3 rev 2603) Message-ID: <27084632.post@...1379...> Hi, I having trouble when compiling gambas3 source on opensuse 11.2 (x64) ../libtool: line 4998: cd: no: No such file or directory libtool: link: cannot determine absolute directory name of `no' make[4]: *** [gb.la] Error 1 make[4]: Leaving directory `/temp/trunk/main/gbx' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/temp/trunk/main' make[2]: *** [all] Error 2 make[2]: Leaving directory `/temp/trunk/main' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/temp/trunk' make: *** [all] Error 2 -- View this message in context: http://old.nabble.com/make-fail-%28gambas3-rev-2603%29-tp27084632p27084632.html Sent from the gambas-user mailing list archive at Nabble.com. From kobolds at ...2041... Sat Jan 9 10:57:53 2010 From: kobolds at ...2041... (kobolds) Date: Sat, 9 Jan 2010 01:57:53 -0800 (PST) Subject: [Gambas-user] make fail (gambas3 rev 2603) In-Reply-To: <27084632.post@...1379...> References: <27084632.post@...1379...> Message-ID: <27086866.post@...1379...> I tried with rev 2604 but still get same error . here I attach the log http://old.nabble.com/file/p27086866/konsole.txt.tar.gz konsole.txt.tar.gz kobolds wrote: > > Hi, I having trouble when compiling gambas3 source on opensuse 11.2 (x64) > > ../libtool: line 4998: cd: no: No such file or directory > libtool: link: cannot determine absolute directory name of `no' > make[4]: *** [gb.la] Error 1 > make[4]: Leaving directory `/temp/trunk/main/gbx' > make[3]: *** [all-recursive] Error 1 > make[3]: Leaving directory `/temp/trunk/main' > make[2]: *** [all] Error 2 > make[2]: Leaving directory `/temp/trunk/main' > make[1]: *** [all-recursive] Error 1 > make[1]: Leaving directory `/temp/trunk' > make: *** [all] Error 2 > -- View this message in context: http://old.nabble.com/make-fail-%28gambas3-rev-2603%29-tp27084632p27086866.html Sent from the gambas-user mailing list archive at Nabble.com. From gambas at ...1... Sat Jan 9 12:46:03 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sat, 9 Jan 2010 12:46:03 +0100 Subject: [Gambas-user] make fail (gambas3 rev 2603) In-Reply-To: <27086866.post@...1379...> References: <27084632.post@...1379...> <27086866.post@...1379...> Message-ID: <201001091246.03610.gambas@...1...> > I tried with rev 2604 but still get same error . > > here I attach the log > > http://old.nabble.com/file/p27086866/konsole.txt.tar.gz konsole.txt.tar.gz > > kobolds wrote: > > Hi, I having trouble when compiling gambas3 source on opensuse 11.2 (x64) > > > > ../libtool: line 4998: cd: no: No such file or directory > > libtool: link: cannot determine absolute directory name of `no' > > make[4]: *** [gb.la] Error 1 > > make[4]: Leaving directory `/temp/trunk/main/gbx' > > make[3]: *** [all-recursive] Error 1 > > make[3]: Leaving directory `/temp/trunk/main' > > make[2]: *** [all] Error 2 > > make[2]: Leaving directory `/temp/trunk/main' > > make[1]: *** [all-recursive] Error 1 > > make[1]: Leaving directory `/temp/trunk' > > make: *** [all] Error 2 > Can you try to find the libffi development package if you have it on SuSE? And then install it? Otherwise, can you search where could be located the "ffi.h" include file on your system? libffi cannot be compiled, maybe this is the reason why you get this error. -- Beno?t Minisini From gambas.fr at ...626... Sat Jan 9 15:14:13 2010 From: gambas.fr at ...626... (Fabien Bodard) Date: Sat, 9 Jan 2010 15:14:13 +0100 Subject: [Gambas-user] Where is "user component directory"? In-Reply-To: <27084461.post@...1379...> References: <27084461.post@...1379...> Message-ID: <6324a42a1001090614u6efcd65rb182bec0322f7c28@...627...> take a look in /home/myacount/.local 2010/1/9 bbb888 : > > Hi guys, > > Just did a system upgrade which required a gambas re-installation (due to > postgresql upgrade dependencies). ?This was fine, but... > > All my user built components seem to have disappeared. ?Oh well, so it goes, > so I just tried to recompile them i.e. "make executable". > > So far, I have done my "base" component, which is a modest enhancement to > the Application component. ?It compiles and runs ok in test mode and when I > do the make all seems normal. ?But when I move onto the next level > component, it cannot find the "bbApplication" component? ?I notice that > bbApplication is being made in /usr/local/lib/gambas and the next component > is being made in ~/projects/GAMBASprojects2009/TM080101/BOControls. > > Which leads me to the question, where are the user components supposed to be > made, and how do I fix things so they do go there? > > tia > bruce > -- > View this message in context: http://old.nabble.com/Where-is-%22user-component-directory%22--tp27084461p27084461.html > Sent from the gambas-user mailing list archive at Nabble.com. > > > ------------------------------------------------------------------------------ > This SF.Net email is sponsored by the Verizon Developer Community > Take advantage of Verizon's best-in-class app development support > A streamlined, 14 day to market process makes app distribution fast and easy > Join now and get one step closer to millions of Verizon customers > http://p.sf.net/sfu/verizon-dev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From kobolds at ...2041... Sat Jan 9 18:51:48 2010 From: kobolds at ...2041... (kobolds) Date: Sat, 9 Jan 2010 09:51:48 -0800 (PST) Subject: [Gambas-user] make fail (gambas3 rev 2603) In-Reply-To: <201001091246.03610.gambas@...1...> References: <27084632.post@...1379...> <27086866.post@...1379...> <201001091246.03610.gambas@...1...> Message-ID: <27091041.post@...1379...> Fixed . thanks Beno?t Minisini wrote: > >> I tried with rev 2604 but still get same error . >> >> here I attach the log >> >> http://old.nabble.com/file/p27086866/konsole.txt.tar.gz >> konsole.txt.tar.gz >> >> kobolds wrote: >> > Hi, I having trouble when compiling gambas3 source on opensuse 11.2 >> (x64) >> > >> > ../libtool: line 4998: cd: no: No such file or directory >> > libtool: link: cannot determine absolute directory name of `no' >> > make[4]: *** [gb.la] Error 1 >> > make[4]: Leaving directory `/temp/trunk/main/gbx' >> > make[3]: *** [all-recursive] Error 1 >> > make[3]: Leaving directory `/temp/trunk/main' >> > make[2]: *** [all] Error 2 >> > make[2]: Leaving directory `/temp/trunk/main' >> > make[1]: *** [all-recursive] Error 1 >> > make[1]: Leaving directory `/temp/trunk' >> > make: *** [all] Error 2 >> > > Can you try to find the libffi development package if you have it on SuSE? > And > then install it? > > Otherwise, can you search where could be located the "ffi.h" include file > on > your system? > > libffi cannot be compiled, maybe this is the reason why you get this > error. > > -- > Beno?t Minisini > > ------------------------------------------------------------------------------ > This SF.Net email is sponsored by the Verizon Developer Community > Take advantage of Verizon's best-in-class app development support > A streamlined, 14 day to market process makes app distribution fast and > easy > Join now and get one step closer to millions of Verizon customers > http://p.sf.net/sfu/verizon-dev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > -- View this message in context: http://old.nabble.com/make-fail-%28gambas3-rev-2603%29-tp27084632p27091041.html Sent from the gambas-user mailing list archive at Nabble.com. From mx4eva at ...626... Sun Jan 10 06:17:02 2010 From: mx4eva at ...626... (Fiddler63) Date: Sat, 9 Jan 2010 21:17:02 -0800 (PST) Subject: [Gambas-user] How to generate a new frame or pic box when a button is pressed Message-ID: <27095733.post@...1379...> I got a button on a form and when I click the button I need the program to load a new frame/picture. Also I would like to be able to move the new frame/pic around on the screen to suit. How do I go about the above ? Cheers kim -- View this message in context: http://old.nabble.com/How-to-generate-a-new-frame-or-pic-box-when-a-button-is-pressed-tp27095733p27095733.html Sent from the gambas-user mailing list archive at Nabble.com. From mx4eva at ...626... Sun Jan 10 06:29:20 2010 From: mx4eva at ...626... (k p) Date: Sun, 10 Jan 2010 18:29:20 +1300 Subject: [Gambas-user] How to generate a new frame or pic box when a button is pressed Message-ID: I got a button on a form and when I click the button I need the program to load a new frame/picture. Also I would like to be able to move the new frame/pic around on the screen to suit. How do I go about the above ? Cheers kim From gambas.fr at ...626... Sun Jan 10 10:52:43 2010 From: gambas.fr at ...626... (Fabien Bodard) Date: Sun, 10 Jan 2010 10:52:43 +0100 Subject: [Gambas-user] How to generate a new frame or pic box when a button is pressed In-Reply-To: References: Message-ID: <6324a42a1001100152u3d3ba7e4p5fba997c9c3f8fb3@...627...> in fact you need to load a new form, set it's border to none, set it's size to the picture size, set it's picture to the picture, and then manage the movement with mouseDown, mouseUp and MouseMove events. dim hForm as new Form hForm.Resize(hPic.W, hPic.H) hForm.Picture = hPic hForm.Border = Border.None 2010/1/10 k p : > I got a button on a form and when I click the button I need the program to > load a new frame/picture. > Also I would like to be able to move the new frame/pic around on the screen > to suit. > > How do I go about the above ? > > Cheers > > kim > ------------------------------------------------------------------------------ > This SF.Net email is sponsored by the Verizon Developer Community > Take advantage of Verizon's best-in-class app development support > A streamlined, 14 day to market process makes app distribution fast and easy > Join now and get one step closer to millions of Verizon customers > http://p.sf.net/sfu/verizon-dev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Sun Jan 10 13:14:16 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sun, 10 Jan 2010 13:14:16 +0100 Subject: [Gambas-user] Problems generating a form In-Reply-To: References: Message-ID: <201001101314.16256.gambas@...1...> > Hi, > > let me see if I have understood this right: > the values of the items in the .form are core, and recalculated in pixel > when the form is loaded into the IDE. > here an example: > > { Label1 Label > MoveScaled(2,2,10,4) > Text = ("Label1") > } > > when loaded, > x=14 > y=14 > width=70 > height=28 > > should be an easy task ... I thought. > > when loading the form, the height value is increased, I generated this > with (2,8,22,2) > > { lbl_BUD_datum Label > MoveScaled(2,8,22,3) > Text = ("Datum ") > Alignment = Align.Right > Border = Border.Raised > } > > why, is not at all clear to me. > > I have also tried with 1 instead of 2, then it makes 14 pix out of it. > the function calculates the height of the label plus a distance between > them (1), to get a new top (y). the y-value is not influenced, so the > labels are ovelapping each other: means: the new y-value is correct, > while the height is too high. I could write a workaround, still I would > like to know what happens here - in case I change the parameters I could > be forced to write another workaround - don't know. > > as info: I write this generator because I have a real lot of forms to > create, and data are all coming from mySql, so the behavior and > functions are always the same: select record from a tableview, show the > details in a data-panel, and have core-functions like new, copy, save, > delete, print. > > if someone has an idea here, I will be grateful to here it. > > thanks and regards, > norarg > Label position may be constrained by its container. I can't tell more without seing the full contents of the form file. P.S. All your mails are considered as spam by Google Mail, no idea why... Regards, -- Beno?t Minisini From matteo.lisi at ...2324... Sun Jan 10 14:23:47 2010 From: matteo.lisi at ...2324... (matteo.lisi at ...2324...) Date: Sun, 10 Jan 2010 14:23:47 +0100 Subject: [Gambas-user] Problem during Gambas 2.19 installation on Ubuntu 9.10 Message-ID: <4b49d4e3.3c1.1079.1133507906@...2353...> Hi to All ! I'm trying to install last gambas2 version on my ubuntu 9.10 but I had some error: 1) I launch the configuration script with: sudo ./configure --enable-net=yes --enable-curl=yes --enable-smtp=yes but at the end I receive the following report: THESE COMPONENTS ARE DISABLED: [..] - gb.net.curl - gb.net.smtp [..] Why this components are disabled ? 2) I launched the: sudo make sudo make install All the make is done without errors but when I execute the: gambas2 I receive this error: ERROR: #27: Cannot load component 'gb.qt': cannot find library file Thanks to all ! From gambas at ...1... Sun Jan 10 14:59:51 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sun, 10 Jan 2010 14:59:51 +0100 Subject: [Gambas-user] Problem during Gambas 2.19 installation on Ubuntu 9.10 In-Reply-To: <4b49d4e3.3c1.1079.1133507906@...2353...> References: <4b49d4e3.3c1.1079.1133507906@...2353...> Message-ID: <201001101459.51113.gambas@...1...> > Hi to All ! > > I'm trying to install last gambas2 version on my ubuntu 9.10 > but I had some error: > > 1) I launch the configuration script with: > > sudo ./configure --enable-net=yes --enable-curl=yes > --enable-smtp=yes > > but at the end I receive the following report: > > THESE COMPONENTS ARE DISABLED: > [..] > - gb.net.curl > - gb.net.smtp > [..] > > Why this components are disabled ? > Because some libraries or development packages are not installed. You see it by reading the ./configure output. > 2) I launched the: > sudo make > sudo make install > > All the make is done without errors but when I execute the: > > gambas2 > > I receive this error: > ERROR: #27: Cannot load component 'gb.qt': cannot find > library file > Are you sure that you didn't get error messages during "make install"? Anyway, you need to provide the full output of the entire configuration, compilation and installation process, otherwise nobody will be able to help you. Regards, -- Beno?t Minisini From steven.herbert at ...2321... Sun Jan 10 15:28:52 2010 From: steven.herbert at ...2321... (Steven Herbert) Date: Sun, 10 Jan 2010 07:28:52 -0700 Subject: [Gambas-user] Gambas-user Digest, Vol 44, Issue 16 In-Reply-To: References: Message-ID: <1263133732.27996.3.camel@...2322...> Nabeel: You are absolutely correct - the key/struggle for us is - the screen interface - capacitive versus resistive. From my point of view that is really the biggest draw back for us. If we can get rid of this hurdle, then we have to seriously look at it. Best Regards, Steven Herbert Director Technical Services Advanced Integrity Solutions Cell: +1-250-574-8365 Fax: +1-403-770-8793 steven.herbert at ...2321... www.skype.com/steven_herbert Calgary, Canada Check out our latest product release: http://www.advancedintsol.com/news/e-PIKE_product_info.pdf Advanced Integrity Solutions Ltd. is a consulting company that brings IT networks, database solutions, e-Learning, managed services and visitor based networking together through innovative business practices, more than 35 years experience in the IT and software industry and expert experience in the field of training, service and support for IT clients and users. *** This email transmission contains confidential information which is the property of the sender and if you are not the intended recipient, you are hereby notified that any disclosure, copying or distribution of the contents of this e-mail transmission, or the taking of any action in reliance thereon or pursuant thereto, is strictly prohibited. Should you have received this e-mail in error, please notify us immediately to arrange for the return of the documentation comprising this transmission On Sun, 2010-01-10 at 12:52 +0000, gambas-user-request at lists.sourceforge.net wrote: > Send Gambas-user mailing list submissions to > gambas-user at lists.sourceforge.net > > To subscribe or unsubscribe via the World Wide Web, visit > https://lists.sourceforge.net/lists/listinfo/gambas-user > or, via email, send a message with subject or body 'help' to > gambas-user-request at lists.sourceforge.net > > You can reach the person managing the list at > gambas-user-owner at lists.sourceforge.net > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of Gambas-user digest..." > > > Today's Topics: > > 1. Re: make fail (gambas3 rev 2603) (kobolds) > 2. Re: make fail (gambas3 rev 2603) (Beno?t Minisini) > 3. Re: Where is "user component directory"? (Fabien Bodard) > 4. Re: make fail (gambas3 rev 2603) (kobolds) > 5. How to generate a new frame or pic box when a button is > pressed (Fiddler63) > 6. How to generate a new frame or pic box when a button is > pressed (k p) > 7. Re: How to generate a new frame or pic box when a button is > pressed (Fabien Bodard) > 8. Re: Problems generating a form (Beno?t Minisini) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Sat, 9 Jan 2010 01:57:53 -0800 (PST) > From: kobolds > Subject: Re: [Gambas-user] make fail (gambas3 rev 2603) > To: gambas-user at lists.sourceforge.net > Message-ID: <27086866.post at ...1379...> > Content-Type: text/plain; charset=us-ascii > > > I tried with rev 2604 but still get same error . > > here I attach the log > > http://old.nabble.com/file/p27086866/konsole.txt.tar.gz konsole.txt.tar.gz > > > kobolds wrote: > > > > Hi, I having trouble when compiling gambas3 source on opensuse 11.2 (x64) > > > > ../libtool: line 4998: cd: no: No such file or directory > > libtool: link: cannot determine absolute directory name of `no' > > make[4]: *** [gb.la] Error 1 > > make[4]: Leaving directory `/temp/trunk/main/gbx' > > make[3]: *** [all-recursive] Error 1 > > make[3]: Leaving directory `/temp/trunk/main' > > make[2]: *** [all] Error 2 > > make[2]: Leaving directory `/temp/trunk/main' > > make[1]: *** [all-recursive] Error 1 > > make[1]: Leaving directory `/temp/trunk' > > make: *** [all] Error 2 > > > > -- > View this message in context: http://old.nabble.com/make-fail-%28gambas3-rev-2603%29-tp27084632p27086866.html > Sent from the gambas-user mailing list archive at Nabble.com. > > > > > ------------------------------ > > Message: 2 > Date: Sat, 9 Jan 2010 12:46:03 +0100 > From: Beno?t Minisini > Subject: Re: [Gambas-user] make fail (gambas3 rev 2603) > To: mailing list for gambas users > Message-ID: <201001091246.03610.gambas at ...1...> > Content-Type: Text/Plain; charset="utf-8" > > > I tried with rev 2604 but still get same error . > > > > here I attach the log > > > > http://old.nabble.com/file/p27086866/konsole.txt.tar.gz konsole.txt.tar.gz > > > > kobolds wrote: > > > Hi, I having trouble when compiling gambas3 source on opensuse 11.2 (x64) > > > > > > ../libtool: line 4998: cd: no: No such file or directory > > > libtool: link: cannot determine absolute directory name of `no' > > > make[4]: *** [gb.la] Error 1 > > > make[4]: Leaving directory `/temp/trunk/main/gbx' > > > make[3]: *** [all-recursive] Error 1 > > > make[3]: Leaving directory `/temp/trunk/main' > > > make[2]: *** [all] Error 2 > > > make[2]: Leaving directory `/temp/trunk/main' > > > make[1]: *** [all-recursive] Error 1 > > > make[1]: Leaving directory `/temp/trunk' > > > make: *** [all] Error 2 > > > > Can you try to find the libffi development package if you have it on SuSE? And > then install it? > > Otherwise, can you search where could be located the "ffi.h" include file on > your system? > > libffi cannot be compiled, maybe this is the reason why you get this error. > > -- > Beno?t Minisini > > > > ------------------------------ > > Message: 3 > Date: Sat, 9 Jan 2010 15:14:13 +0100 > From: Fabien Bodard > Subject: Re: [Gambas-user] Where is "user component directory"? > To: mailing list for gambas users > Message-ID: > <6324a42a1001090614u6efcd65rb182bec0322f7c28 at ...627...> > Content-Type: text/plain; charset=ISO-8859-1 > > take a look in > > /home/myacount/.local > > > 2010/1/9 bbb888 : > > > > Hi guys, > > > > Just did a system upgrade which required a gambas re-installation (due to > > postgresql upgrade dependencies). ?This was fine, but... > > > > All my user built components seem to have disappeared. ?Oh well, so it goes, > > so I just tried to recompile them i.e. "make executable". > > > > So far, I have done my "base" component, which is a modest enhancement to > > the Application component. ?It compiles and runs ok in test mode and when I > > do the make all seems normal. ?But when I move onto the next level > > component, it cannot find the "bbApplication" component? ?I notice that > > bbApplication is being made in /usr/local/lib/gambas and the next component > > is being made in ~/projects/GAMBASprojects2009/TM080101/BOControls. > > > > Which leads me to the question, where are the user components supposed to be > > made, and how do I fix things so they do go there? > > > > tia > > bruce > > -- > > View this message in context: http://old.nabble.com/Where-is-%22user-component-directory%22--tp27084461p27084461.html > > Sent from the gambas-user mailing list archive at Nabble.com. > > > > > > ------------------------------------------------------------------------------ > > This SF.Net email is sponsored by the Verizon Developer Community > > Take advantage of Verizon's best-in-class app development support > > A streamlined, 14 day to market process makes app distribution fast and easy > > Join now and get one step closer to millions of Verizon customers > > http://p.sf.net/sfu/verizon-dev2dev > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > ------------------------------ > > Message: 4 > Date: Sat, 9 Jan 2010 09:51:48 -0800 (PST) > From: kobolds > Subject: Re: [Gambas-user] make fail (gambas3 rev 2603) > To: gambas-user at lists.sourceforge.net > Message-ID: <27091041.post at ...1379...> > Content-Type: text/plain; charset=UTF-8 > > > Fixed . thanks > > > Beno?t Minisini wrote: > > > >> I tried with rev 2604 but still get same error . > >> > >> here I attach the log > >> > >> http://old.nabble.com/file/p27086866/konsole.txt.tar.gz > >> konsole.txt.tar.gz > >> > >> kobolds wrote: > >> > Hi, I having trouble when compiling gambas3 source on opensuse 11.2 > >> (x64) > >> > > >> > ../libtool: line 4998: cd: no: No such file or directory > >> > libtool: link: cannot determine absolute directory name of `no' > >> > make[4]: *** [gb.la] Error 1 > >> > make[4]: Leaving directory `/temp/trunk/main/gbx' > >> > make[3]: *** [all-recursive] Error 1 > >> > make[3]: Leaving directory `/temp/trunk/main' > >> > make[2]: *** [all] Error 2 > >> > make[2]: Leaving directory `/temp/trunk/main' > >> > make[1]: *** [all-recursive] Error 1 > >> > make[1]: Leaving directory `/temp/trunk' > >> > make: *** [all] Error 2 > >> > > > > Can you try to find the libffi development package if you have it on SuSE? > > And > > then install it? > > > > Otherwise, can you search where could be located the "ffi.h" include file > > on > > your system? > > > > libffi cannot be compiled, maybe this is the reason why you get this > > error. > > > > -- > > Beno?t Minisini > > > > ------------------------------------------------------------------------------ > > This SF.Net email is sponsored by the Verizon Developer Community > > Take advantage of Verizon's best-in-class app development support > > A streamlined, 14 day to market process makes app distribution fast and > > easy > > Join now and get one step closer to millions of Verizon customers > > http://p.sf.net/sfu/verizon-dev2dev > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > -- > View this message in context: http://old.nabble.com/make-fail-%28gambas3-rev-2603%29-tp27084632p27091041.html > Sent from the gambas-user mailing list archive at Nabble.com. > > > > > ------------------------------ > > Message: 5 > Date: Sat, 9 Jan 2010 21:17:02 -0800 (PST) > From: Fiddler63 > Subject: [Gambas-user] How to generate a new frame or pic box when a > button is pressed > To: gambas-user at lists.sourceforge.net > Message-ID: <27095733.post at ...1379...> > Content-Type: text/plain; charset=us-ascii > > > I got a button on a form and when I click the button I need the program to > load a new frame/picture. > Also I would like to be able to move the new frame/pic around on the screen > to suit. > > How do I go about the above ? > > Cheers > > kim > -- > View this message in context: http://old.nabble.com/How-to-generate-a-new-frame-or-pic-box-when-a-button-is-pressed-tp27095733p27095733.html > Sent from the gambas-user mailing list archive at Nabble.com. > > > > > ------------------------------ > > Message: 6 > Date: Sun, 10 Jan 2010 18:29:20 +1300 > From: k p > Subject: [Gambas-user] How to generate a new frame or pic box when a > button is pressed > To: gambas-user at lists.sourceforge.net > Message-ID: > > Content-Type: text/plain; charset=ISO-8859-1 > > I got a button on a form and when I click the button I need the program to > load a new frame/picture. > Also I would like to be able to move the new frame/pic around on the screen > to suit. > > How do I go about the above ? > > Cheers > > kim > > > ------------------------------ > > Message: 7 > Date: Sun, 10 Jan 2010 10:52:43 +0100 > From: Fabien Bodard > Subject: Re: [Gambas-user] How to generate a new frame or pic box when > a button is pressed > To: mailing list for gambas users > Message-ID: > <6324a42a1001100152u3d3ba7e4p5fba997c9c3f8fb3 at ...627...> > Content-Type: text/plain; charset=ISO-8859-1 > > in fact you need to load a new form, set it's border to none, set it's > size to the picture size, set it's picture to the picture, and then > manage the movement with mouseDown, mouseUp and MouseMove events. > > > dim hForm as new Form > hForm.Resize(hPic.W, hPic.H) > hForm.Picture = hPic > hForm.Border = Border.None > > > > > 2010/1/10 k p : > > I got a button on a form and when I click the button I need the program to > > load a new frame/picture. > > Also I would like to be able to move the new frame/pic around on the screen > > to suit. > > > > How do I go about the above ? > > > > Cheers > > > > kim > > ------------------------------------------------------------------------------ > > This SF.Net email is sponsored by the Verizon Developer Community > > Take advantage of Verizon's best-in-class app development support > > A streamlined, 14 day to market process makes app distribution fast and easy > > Join now and get one step closer to millions of Verizon customers > > http://p.sf.net/sfu/verizon-dev2dev > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > ------------------------------ > > Message: 8 > Date: Sun, 10 Jan 2010 13:14:16 +0100 > From: Beno?t Minisini > Subject: Re: [Gambas-user] Problems generating a form > To: mailing list for gambas users > Message-ID: <201001101314.16256.gambas at ...1...> > Content-Type: Text/Plain; charset="utf-8" > > > Hi, > > > > let me see if I have understood this right: > > the values of the items in the .form are core, and recalculated in pixel > > when the form is loaded into the IDE. > > here an example: > > > > { Label1 Label > > MoveScaled(2,2,10,4) > > Text = ("Label1") > > } > > > > when loaded, > > x=14 > > y=14 > > width=70 > > height=28 > > > > should be an easy task ... I thought. > > > > when loading the form, the height value is increased, I generated this > > with (2,8,22,2) > > > > { lbl_BUD_datum Label > > MoveScaled(2,8,22,3) > > Text = ("Datum ") > > Alignment = Align.Right > > Border = Border.Raised > > } > > > > why, is not at all clear to me. > > > > I have also tried with 1 instead of 2, then it makes 14 pix out of it. > > the function calculates the height of the label plus a distance between > > them (1), to get a new top (y). the y-value is not influenced, so the > > labels are ovelapping each other: means: the new y-value is correct, > > while the height is too high. I could write a workaround, still I would > > like to know what happens here - in case I change the parameters I could > > be forced to write another workaround - don't know. > > > > as info: I write this generator because I have a real lot of forms to > > create, and data are all coming from mySql, so the behavior and > > functions are always the same: select record from a tableview, show the > > details in a data-panel, and have core-functions like new, copy, save, > > delete, print. > > > > if someone has an idea here, I will be grateful to here it. > > > > thanks and regards, > > norarg > > > > Label position may be constrained by its container. I can't tell more without > seing the full contents of the form file. > > P.S. All your mails are considered as spam by Google Mail, no idea why... > > Regards, > -------------- next part -------------- A non-text attachment was scrubbed... Name: AIS.logo Type: image/jpeg Size: 6040 bytes Desc: not available URL: From ronstk at ...239... Sun Jan 10 18:35:53 2010 From: ronstk at ...239... (Ron_1st) Date: Sun, 10 Jan 2010 18:35:53 +0100 Subject: [Gambas-user] Problems generating a form In-Reply-To: References: Message-ID: <201001101835.54260.ronstk@...239...> On Thursday 07 January 2010, norarg wrote: > X-Originating-IP: [201.234.99.50] see below > X-Originating-Email: [norarg at ...2311...] > Message-ID: > Received: from [192.168.1.100] ([201.234.99.50]) by > ????????BLU0-SMTP84.blu0.hotmail.com over TLS secured channel with > ????????Microsoft SMTPSVC(6.0.3790.3959); Thu, 7 Jan 2010 15:06:30 -0800 The 192.168.1.100 looks strange as sender name > From: norarg > To: gambas-user at lists.sourceforge.net > Date: Thu, 07 Jan 2010 19:34:53 -0300 > Mime-Version: 1.0 > X-Mailer: Evolution 2.28.1 > X-OriginalArrivalTime: 07 Jan 2010 23:06:31.0228 (UTC) > ????????FILETIME=[0CBE7FC0:01CA8FEE] > X-Sender-Verify: failed, postmaster The sender adress could not be verified as existing one? > X-Spam-Score: 7.0 (+++++++) > X-Spam-Report: Spam Filtering performed by mx.sourceforge.net. > ????????See http://spamassassin.org/tag/ for more details. > ????????-1.5 SPF_CHECK_PASS SPF reports sender host as permitted sender for > ????????sender-domain > ????????0.5 VA_SENDER_VERIFY_POSTMASTER Unable to Verify postmaster at ...1983... -----------------------------------------^^^^^^^^^ > ????????2.2 RCVD_IN_BL_SPAMCOP_NET RBL: Received via a relay in bl.spamcop.net > ????????[Blocked - see ] The ip '?201.234.99.50' is in the blocklist > ????????1.1 RCVD_IN_SORBS_WEB RBL: SORBS: sender is a abuseable web server > ????????[201.234.99.50 listed in dnsbl.sorbs.net] hotmail or you own computer > ????????1.5 RCVD_IN_PSBL ? ? ? ? ? RBL: Received via a relay in PSBL > ????????[201.234.99.50 listed in psbl.surriel.com] > ????????-0.0 SPF_PASS ? ? ? ? ? ? ? SPF: sender matches SPF record > ????????1.0 HTML_MESSAGE ? ? ? ? ? BODY: HTML included in message > ????????1.5 MSGID_FROM_MTA_HEADER ?Message-Id was added by a relay > ????????0.7 AWL AWL: From: address is in the auto white-list > X-Headers-End: 1NT1R6-0007Y0-SZ > http://www.spamhaus.org/query/bl?ip=201.234.99.50 http://www.spamhaus.org/pbl/query/PBL218080 201.234.98.0/23 is listed on the Policy Block List (PBL) This means you are using a private mail server with a IP in a range used by providers for customers. This is mostly done by spammer programs on hacked computers. http://cbl.abuseat.org/lookup.cgi?ip=201.234.99.50 IP Address 201.234.99.50 is currently listed in the CBL. It was detected at 2010-01-10 16:00 GMT (+/- 30 minutes), approximately 2 hours ago. ATTENTION: At the time of detection, this IP was infected with, or NATting for a computer infected with a high volume spam sending trojan - it is participating or facilitating a botnet sending spam or spreading virus/spam trojans. is the IP 201.234.99.50 your WAN adress (modem/router) or did you use hotmail for this message? In the first case I would suggest your router/computer is intruded by a spam agant. In the last case your hotmsil is as usual again in the blocklist due spam sending by some hotmail.de user. I gues the first case is true. Best regards, Ron_1st -- 111.111111 x 111.111111 = 12345.678987654321 -- A: Delete the text you reply on. Q: What to do to get my post on top? --- A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? --- A: Top-posting. Q: What is the most annoying thing in e-mail? From ronstk at ...239... Sun Jan 10 18:42:36 2010 From: ronstk at ...239... (Ron_1st) Date: Sun, 10 Jan 2010 18:42:36 +0100 Subject: [Gambas-user] Problems generating a form In-Reply-To: References: Message-ID: <201001101842.36516.ronstk@...239...> BTW 201.234.99.50: hostname 201-234-99-50.static.impsat.net.ar IP assigned to provider in Argentina in use in germany??? Best regards, Ron_1st -- From norarg at ...2311... Sun Jan 10 19:20:23 2010 From: norarg at ...2311... (norarg) Date: Sun, 10 Jan 2010 15:20:23 -0300 Subject: [Gambas-user] Problems generating a form In-Reply-To: <201001101835.54260.ronstk@...239...> References: <201001101835.54260.ronstk@...239...> Message-ID: Hi, I see this problem for the first time. I do not have an own router, the provider connects his customers via antennas, and I have no access to the router, just get a dynamic IP-address. regards norarg Am Sonntag, den 10.01.2010, 18:35 +0100 schrieb Ron_1st: > On Thursday 07 January 2010, norarg wrote: > > X-Originating-IP: [201.234.99.50] > see below > > > X-Originating-Email: [norarg at ...2311...] > > Message-ID: > > Received: from [192.168.1.100] ([201.234.99.50]) by > > BLU0-SMTP84.blu0.hotmail.com over TLS secured channel with > > Microsoft SMTPSVC(6.0.3790.3959); Thu, 7 Jan 2010 15:06:30 -0800 > The 192.168.1.100 looks strange as sender name > > > > From: norarg > > To: gambas-user at lists.sourceforge.net > > Date: Thu, 07 Jan 2010 19:34:53 -0300 > > Mime-Version: 1.0 > > X-Mailer: Evolution 2.28.1 > > X-OriginalArrivalTime: 07 Jan 2010 23:06:31.0228 (UTC) > > FILETIME=[0CBE7FC0:01CA8FEE] > > X-Sender-Verify: failed, postmaster > The sender adress could not be verified as existing one? > > > X-Spam-Score: 7.0 (+++++++) > > X-Spam-Report: Spam Filtering performed by mx.sourceforge.net. > > See http://spamassassin.org/tag/ for more details. > > -1.5 SPF_CHECK_PASS SPF reports sender host as permitted sender for > > sender-domain > > 0.5 VA_SENDER_VERIFY_POSTMASTER Unable to Verify postmaster at ...1983... > -----------------------------------------^^^^^^^^^ > > 2.2 RCVD_IN_BL_SPAMCOP_NET RBL: Received via a relay in bl.spamcop.net > > [Blocked - see ] > The ip '?201.234.99.50' is in the blocklist > > > 1.1 RCVD_IN_SORBS_WEB RBL: SORBS: sender is a abuseable web server > > [201.234.99.50 listed in dnsbl.sorbs.net] > hotmail or you own computer > > > 1.5 RCVD_IN_PSBL RBL: Received via a relay in PSBL > > [201.234.99.50 listed in psbl.surriel.com] > > -0.0 SPF_PASS SPF: sender matches SPF record > > 1.0 HTML_MESSAGE BODY: HTML included in message > > 1.5 MSGID_FROM_MTA_HEADER Message-Id was added by a relay > > 0.7 AWL AWL: From: address is in the auto white-list > > X-Headers-End: 1NT1R6-0007Y0-SZ > > > > http://www.spamhaus.org/query/bl?ip=201.234.99.50 > > http://www.spamhaus.org/pbl/query/PBL218080 > 201.234.98.0/23 is listed on the Policy Block List (PBL) > This means you are using a private mail server with a IP > in a range used by providers for customers. > This is mostly done by spammer programs on hacked computers. > > http://cbl.abuseat.org/lookup.cgi?ip=201.234.99.50 > IP Address 201.234.99.50 is currently listed in the CBL. > It was detected at 2010-01-10 16:00 GMT (+/- 30 minutes), approximately 2 hours ago. > > ATTENTION: At the time of detection, this IP was infected with, or NATting > for a computer infected with a high volume spam sending trojan - it is > participating or facilitating a botnet sending spam or spreading virus/spam trojans. > > > is the IP 201.234.99.50 your WAN adress (modem/router) or did > you use hotmail for this message? > > In the first case I would suggest your router/computer is intruded by a spam agant. > > In the last case your hotmsil is as usual again in the blocklist > due spam sending by some hotmail.de user. > > I gues the first case is true. > > > Best regards, > > Ron_1st > > -- > > 111.111111 x 111.111111 = 12345.678987654321 > > -- > A: Delete the text you reply on. > Q: What to do to get my post on top? > --- > A: Because it messes up the order in which people normally read text. > Q: Why is top-posting such a bad thing? > --- > A: Top-posting. > Q: What is the most annoying thing in e-mail? > > > ------------------------------------------------------------------------------ > This SF.Net email is sponsored by the Verizon Developer Community > Take advantage of Verizon's best-in-class app development support > A streamlined, 14 day to market process makes app distribution fast and easy > Join now and get one step closer to millions of Verizon customers > http://p.sf.net/sfu/verizon-dev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From norarg at ...2311... Sun Jan 10 19:22:08 2010 From: norarg at ...2311... (norarg) Date: Sun, 10 Jan 2010 15:22:08 -0300 Subject: [Gambas-user] Problems generating a form In-Reply-To: <201001101842.36516.ronstk@...239...> References: <201001101842.36516.ronstk@...239...> Message-ID: Hi again, I am living in Argentina now, still using the mail-adresses I used when living in Germany a year ago. regards, norarg Am Sonntag, den 10.01.2010, 18:42 +0100 schrieb Ron_1st: > BTW > 201.234.99.50: hostname 201-234-99-50.static.impsat.net.ar > > IP assigned to provider in Argentina in use in germany??? > > Best regards, > > Ron_1st > From norarg at ...2311... Sun Jan 10 19:33:42 2010 From: norarg at ...2311... (norarg) Date: Sun, 10 Jan 2010 15:33:42 -0300 Subject: [Gambas-user] Problems generating a form In-Reply-To: <201001101835.54260.ronstk@...239...> References: <201001101835.54260.ronstk@...239...> Message-ID: Hi as I can figure out, the primary DNS is 200.0.194.78, I don't know what the guy is doing. As I see, the dynamic IP is correct, so I presume it is right what you tell me. I use Evolution with POP3/SMTP to handle the mails. But it makes me somehow thoughtful, I can't use such sh... I will hand the mail over to him to get his opinion. thanks anyway regards norarg Am Sonntag, den 10.01.2010, 18:35 +0100 schrieb Ron_1st: > On Thursday 07 January 2010, norarg wrote: > > X-Originating-IP: [201.234.99.50] > see below > > > X-Originating-Email: [norarg at ...2311...] > > Message-ID: > > Received: from [192.168.1.100] ([201.234.99.50]) by > > BLU0-SMTP84.blu0.hotmail.com over TLS secured channel with > > Microsoft SMTPSVC(6.0.3790.3959); Thu, 7 Jan 2010 15:06:30 -0800 > The 192.168.1.100 looks strange as sender name > > > > From: norarg > > To: gambas-user at lists.sourceforge.net > > Date: Thu, 07 Jan 2010 19:34:53 -0300 > > Mime-Version: 1.0 > > X-Mailer: Evolution 2.28.1 > > X-OriginalArrivalTime: 07 Jan 2010 23:06:31.0228 (UTC) > > FILETIME=[0CBE7FC0:01CA8FEE] > > X-Sender-Verify: failed, postmaster > The sender adress could not be verified as existing one? > > > X-Spam-Score: 7.0 (+++++++) > > X-Spam-Report: Spam Filtering performed by mx.sourceforge.net. > > See http://spamassassin.org/tag/ for more details. > > -1.5 SPF_CHECK_PASS SPF reports sender host as permitted sender for > > sender-domain > > 0.5 VA_SENDER_VERIFY_POSTMASTER Unable to Verify postmaster at ...1983... > -----------------------------------------^^^^^^^^^ > > 2.2 RCVD_IN_BL_SPAMCOP_NET RBL: Received via a relay in bl.spamcop.net > > [Blocked - see ] > The ip '?201.234.99.50' is in the blocklist > > > 1.1 RCVD_IN_SORBS_WEB RBL: SORBS: sender is a abuseable web server > > [201.234.99.50 listed in dnsbl.sorbs.net] > hotmail or you own computer > > > 1.5 RCVD_IN_PSBL RBL: Received via a relay in PSBL > > [201.234.99.50 listed in psbl.surriel.com] > > -0.0 SPF_PASS SPF: sender matches SPF record > > 1.0 HTML_MESSAGE BODY: HTML included in message > > 1.5 MSGID_FROM_MTA_HEADER Message-Id was added by a relay > > 0.7 AWL AWL: From: address is in the auto white-list > > X-Headers-End: 1NT1R6-0007Y0-SZ > > > > http://www.spamhaus.org/query/bl?ip=201.234.99.50 > > http://www.spamhaus.org/pbl/query/PBL218080 > 201.234.98.0/23 is listed on the Policy Block List (PBL) > This means you are using a private mail server with a IP > in a range used by providers for customers. > This is mostly done by spammer programs on hacked computers. > > http://cbl.abuseat.org/lookup.cgi?ip=201.234.99.50 > IP Address 201.234.99.50 is currently listed in the CBL. > It was detected at 2010-01-10 16:00 GMT (+/- 30 minutes), approximately 2 hours ago. > > ATTENTION: At the time of detection, this IP was infected with, or NATting > for a computer infected with a high volume spam sending trojan - it is > participating or facilitating a botnet sending spam or spreading virus/spam trojans. > > > is the IP 201.234.99.50 your WAN adress (modem/router) or did > you use hotmail for this message? > > In the first case I would suggest your router/computer is intruded by a spam agant. > > In the last case your hotmsil is as usual again in the blocklist > due spam sending by some hotmail.de user. > > I gues the first case is true. > > > Best regards, > > Ron_1st > > -- > > 111.111111 x 111.111111 = 12345.678987654321 > > -- > A: Delete the text you reply on. > Q: What to do to get my post on top? > --- > A: Because it messes up the order in which people normally read text. > Q: Why is top-posting such a bad thing? > --- > A: Top-posting. > Q: What is the most annoying thing in e-mail? > > > ------------------------------------------------------------------------------ > This SF.Net email is sponsored by the Verizon Developer Community > Take advantage of Verizon's best-in-class app development support > A streamlined, 14 day to market process makes app distribution fast and easy > Join now and get one step closer to millions of Verizon customers > http://p.sf.net/sfu/verizon-dev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From matteo.lisi at ...2324... Sun Jan 10 19:36:17 2010 From: matteo.lisi at ...2324... (matteo.lisi at ...2324...) Date: Sun, 10 Jan 2010 19:36:17 +0100 Subject: [Gambas-user] Problem during Gambas 2.19 installation on Ubuntu 9.10 Message-ID: <4b4a1e21.2c3.1dc2.7319359@...2355...> Ok I checked all library installed on my ubuntu and redid the installation from the beginning. Somethings is changed: When I launch gambas2 I have: ERROR: #27: Cannot load component 'gb.qt': cannot find library file The ./configure disable the gb.qte packet and the make / make install seems to return without error... Do you need some output to understand what I wrong ? Tnx a lot! ----- Original Message ----- Da : Beno??t Minisini A : mailing list for gambas users Oggetto : Re: [Gambas-user] Problem during Gambas 2.19 installation on Ubuntu 9.10 Data : Sun, 10 Jan 2010 14:59:51 +0100 > > Hi to All !> > I'm trying to install last gambas2 > version on my ubuntu 9.10> but I had some error:> > 1) I > launch the configuration script with:> > sudo ./configure > --enable-net=yes --enable-curl=yes> --enable-smtp=yes> > > but at the end I receive the following report:> > THESE > COMPONENTS ARE DISABLED:> [..]> - gb.net.curl> - > gb.net.smtp> [..]> > Why this components are disabled ?> > Because some libraries or development packages are not > installed. You see it by reading the ./configure output.> > 2) I launched the:> sudo make> sudo make install> > All > the make is done without errors but when I execute the:> > > gambas2> > I receive this error:> ERROR: #27: Cannot load > component 'gb.qt': cannot find> library file> Are you sure > that you didn't get error messages during "make > install"?Anyway, you need to provide the full output of > the entire configuration, compilation and installation > process, otherwise nobody will be able to help you.Regards > ,-- Beno??t > Minisini-------------------------------------------------- > --- -------------------------This SF.Net email is > sponsored by the Verizon Developer CommunityTake advantage > of Verizon's best-in-class app development supportA > streamlined, 14 day to market process makes app > distribution fast and easyJoin now and get one step closer > to millions of Verizon > customershttp://p.sf.net/sfu/verizon-dev2dev > _______________________________________________Gambas-user > mailing > listGambas-user at ...2354...://lists.sourcef > orge.net/lists/listinfo/gambas-user From doriano.blengino at ...1909... Sun Jan 10 19:42:01 2010 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Sun, 10 Jan 2010 19:42:01 +0100 Subject: [Gambas-user] Problems generating a form In-Reply-To: <201001101835.54260.ronstk@...239...> References: <201001101835.54260.ronstk@...239...> Message-ID: <4B4A1F79.7000601@...1909...> Ron_1st ha scritto: > On Thursday 07 January 2010, norarg wrote: > >> X-Originating-IP: [201.234.99.50] >> > see below > > >> X-Originating-Email: [norarg at ...2311...] >> Message-ID: >> Received: from [192.168.1.100] ([201.234.99.50]) by >> BLU0-SMTP84.blu0.hotmail.com over TLS secured channel with >> Microsoft SMTPSVC(6.0.3790.3959); Thu, 7 Jan 2010 15:06:30 -0800 >> > The 192.168.1.100 looks strange as sender name > It looks not strange to me - simply a private IP natted to 201.234.99.50. The mail client says, faithfully and correctly, that it has got 192.168.1.100. Anyway, I tried some week ago to write to you privately, and never succeded in two or three days. You mail server is pickly as many, too many others. The problem is that for a provider is very difficult to block outcoming spam messages, so it is easy for it to get into some list or another. When I tried to write to you, I used 3 different, important providers - you mail server always said "it was untrusted" and rejected the message. This is a crazy world... Regards, Doriano > > >> From: norarg >> To: gambas-user at lists.sourceforge.net >> Date: Thu, 07 Jan 2010 19:34:53 -0300 >> Mime-Version: 1.0 >> X-Mailer: Evolution 2.28.1 >> X-OriginalArrivalTime: 07 Jan 2010 23:06:31.0228 (UTC) >> FILETIME=[0CBE7FC0:01CA8FEE] >> X-Sender-Verify: failed, postmaster >> > The sender adress could not be verified as existing one? > > >> X-Spam-Score: 7.0 (+++++++) >> X-Spam-Report: Spam Filtering performed by mx.sourceforge.net. >> See http://spamassassin.org/tag/ for more details. >> -1.5 SPF_CHECK_PASS SPF reports sender host as permitted sender for >> sender-domain >> 0.5 VA_SENDER_VERIFY_POSTMASTER Unable to Verify postmaster at ...1983... >> > -----------------------------------------^^^^^^^^^ > >> 2.2 RCVD_IN_BL_SPAMCOP_NET RBL: Received via a relay in bl.spamcop.net >> [Blocked - see ] >> > The ip '?201.234.99.50' is in the blocklist > > >> 1.1 RCVD_IN_SORBS_WEB RBL: SORBS: sender is a abuseable web server >> [201.234.99.50 listed in dnsbl.sorbs.net] >> > hotmail or you own computer > > >> 1.5 RCVD_IN_PSBL RBL: Received via a relay in PSBL >> [201.234.99.50 listed in psbl.surriel.com] >> -0.0 SPF_PASS SPF: sender matches SPF record >> 1.0 HTML_MESSAGE BODY: HTML included in message >> 1.5 MSGID_FROM_MTA_HEADER Message-Id was added by a relay >> 0.7 AWL AWL: From: address is in the auto white-list >> X-Headers-End: 1NT1R6-0007Y0-SZ >> >> > > http://www.spamhaus.org/query/bl?ip=201.234.99.50 > > http://www.spamhaus.org/pbl/query/PBL218080 > 201.234.98.0/23 is listed on the Policy Block List (PBL) > This means you are using a private mail server with a IP > in a range used by providers for customers. > This is mostly done by spammer programs on hacked computers. > > http://cbl.abuseat.org/lookup.cgi?ip=201.234.99.50 > IP Address 201.234.99.50 is currently listed in the CBL. > It was detected at 2010-01-10 16:00 GMT (+/- 30 minutes), approximately 2 hours ago. > > ATTENTION: At the time of detection, this IP was infected with, or NATting > for a computer infected with a high volume spam sending trojan - it is > participating or facilitating a botnet sending spam or spreading virus/spam trojans. > > > is the IP 201.234.99.50 your WAN adress (modem/router) or did > you use hotmail for this message? > > In the first case I would suggest your router/computer is intruded by a spam agant. > > In the last case your hotmsil is as usual again in the blocklist > due spam sending by some hotmail.de user. > > I gues the first case is true. > > > Best regards, > > Ron_1st > > -- Doriano Blengino "Listen twice before you speak. This is why we have two ears, but only one mouth." From gambas.fr at ...626... Sun Jan 10 19:51:21 2010 From: gambas.fr at ...626... (Fabien Bodard) Date: Sun, 10 Jan 2010 19:51:21 +0100 Subject: [Gambas-user] Problem during Gambas 2.19 installation on Ubuntu 9.10 In-Reply-To: <4b4a1e21.2c3.1dc2.7319359@...2355...> References: <4b4a1e21.2c3.1dc2.7319359@...2355...> Message-ID: <6324a42a1001101051x4f303fc3s960a7cb5188da7e0@...627...> IS libqt3-mt-dev installed ? if not install it and do a reconf-all 2010/1/10 matteo.lisi at ...2324... : > Ok > > I checked all library installed on my ubuntu and redid the > installation from the beginning. > > Somethings is changed: > > When I launch gambas2 I have: > > ERROR: #27: Cannot load component 'gb.qt': cannot find > library file > > The ./configure disable the gb.qte packet and the make / > make install seems to return without error... > > Do you need some output to understand what I wrong ? > > Tnx a lot! > > ----- Original Message ----- > Da : Beno??t Minisini > A : mailing list for gambas users > > Oggetto : Re: [Gambas-user] Problem during Gambas 2.19 > installation on Ubuntu 9.10 > Data : Sun, 10 Jan 2010 14:59:51 +0100 > >> > Hi to All !> > I'm trying to install last gambas2 >> version on my ubuntu 9.10> but I had some error:> > 1) I >> launch the configuration script with:> > sudo ./configure >> --enable-net=yes --enable-curl=yes> > --enable-smtp=yes> > >> but at the end I receive the following report:> > THESE >> COMPONENTS ARE DISABLED:> [..]> - gb.net.curl> - >> gb.net.smtp> [..]> > Why this components are disabled ?> >> Because some libraries or development packages are not >> installed. You see it by reading the ./configure output.> >> 2) I launched the:> sudo make> sudo make install> > All >> the make is done without errors but when I execute the:> > >> gambas2> > I receive this error:> ERROR: #27: Cannot load >> component 'gb.qt': cannot find> library file> Are you sure >> that you didn't get error messages during "make >> install"?Anyway, you need to provide the full output of >> the entire configuration, compilation and installation >> process, otherwise nobody will be able to help you.Regards >> ,-- Beno??t >> Minisini-------------------------------------------------- >> --- -------------------------This SF.Net email is >> sponsored by the Verizon Developer CommunityTake advantage >> of Verizon's best-in-class app development supportA >> streamlined, 14 day to market process makes app >> distribution fast and easyJoin now and get one step closer >> to millions of Verizon >> customershttp://p.sf.net/sfu/verizon-dev2dev >> _______________________________________________Gambas-user >> mailing >> listGambas-user at ...2354...://lists.sourcef >> orge.net/lists/listinfo/gambas-user > > ------------------------------------------------------------------------------ > This SF.Net email is sponsored by the Verizon Developer Community > Take advantage of Verizon's best-in-class app development support > A streamlined, 14 day to market process makes app distribution fast and easy > Join now and get one step closer to millions of Verizon customers > http://p.sf.net/sfu/verizon-dev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From norarg at ...2311... Sun Jan 10 20:03:00 2010 From: norarg at ...2311... (norarg) Date: Sun, 10 Jan 2010 16:03:00 -0300 Subject: [Gambas-user] Problems generating a form In-Reply-To: <4B4A1F79.7000601@...1909...> References: <201001101835.54260.ronstk@...239...> <4B4A1F79.7000601@...1909...> Message-ID: Hi, thanks. I will just try to use another mail-address. I am not so happy with hotmail anyway, have a own domain, but the siteprovider is (still) free, and it went down for 2 days for about 2 months ago, so I switched the mail-adress in gambas-users to receive the mailing-list. I don't know if this will help anything, trial and error. the "new" address will be: dag.jarle.johansen at ...2312... regards norarg Am Sonntag, den 10.01.2010, 19:42 +0100 schrieb Doriano Blengino: > Ron_1st ha scritto: > > On Thursday 07 January 2010, norarg wrote: > > > >> X-Originating-IP: [201.234.99.50] > >> > > see below > > > > > >> X-Originating-Email: [norarg at ...2311...] > >> Message-ID: > >> Received: from [192.168.1.100] ([201.234.99.50]) by > >> BLU0-SMTP84.blu0.hotmail.com over TLS secured channel with > >> Microsoft SMTPSVC(6.0.3790.3959); Thu, 7 Jan 2010 15:06:30 -0800 > >> > > The 192.168.1.100 looks strange as sender name > > > It looks not strange to me - simply a private IP natted to > 201.234.99.50. The mail client says, faithfully and correctly, that it > has got 192.168.1.100. > > Anyway, I tried some week ago to write to you privately, and never > succeded in two or three days. You mail server is pickly as many, too > many others. > The problem is that for a provider is very difficult to block outcoming > spam messages, so it is easy for it to get into some list or another. > When I tried to write to you, I used 3 different, important providers - > you mail server always said "it was untrusted" and rejected the message. > > This is a crazy world... > > Regards, > Doriano > > > > > > >> From: norarg > >> To: gambas-user at lists.sourceforge.net > >> Date: Thu, 07 Jan 2010 19:34:53 -0300 > >> Mime-Version: 1.0 > >> X-Mailer: Evolution 2.28.1 > >> X-OriginalArrivalTime: 07 Jan 2010 23:06:31.0228 (UTC) > >> FILETIME=[0CBE7FC0:01CA8FEE] > >> X-Sender-Verify: failed, postmaster > >> > > The sender adress could not be verified as existing one? > > > > > >> X-Spam-Score: 7.0 (+++++++) > >> X-Spam-Report: Spam Filtering performed by mx.sourceforge.net. > >> See http://spamassassin.org/tag/ for more details. > >> -1.5 SPF_CHECK_PASS SPF reports sender host as permitted sender for > >> sender-domain > >> 0.5 VA_SENDER_VERIFY_POSTMASTER Unable to Verify postmaster at ...1983... > >> > > -----------------------------------------^^^^^^^^^ > > > >> 2.2 RCVD_IN_BL_SPAMCOP_NET RBL: Received via a relay in bl.spamcop.net > >> [Blocked - see ] > >> > > The ip '?201.234.99.50' is in the blocklist > > > > > >> 1.1 RCVD_IN_SORBS_WEB RBL: SORBS: sender is a abuseable web server > >> [201.234.99.50 listed in dnsbl.sorbs.net] > >> > > hotmail or you own computer > > > > > >> 1.5 RCVD_IN_PSBL RBL: Received via a relay in PSBL > >> [201.234.99.50 listed in psbl.surriel.com] > >> -0.0 SPF_PASS SPF: sender matches SPF record > >> 1.0 HTML_MESSAGE BODY: HTML included in message > >> 1.5 MSGID_FROM_MTA_HEADER Message-Id was added by a relay > >> 0.7 AWL AWL: From: address is in the auto white-list > >> X-Headers-End: 1NT1R6-0007Y0-SZ > >> > >> > > > > http://www.spamhaus.org/query/bl?ip=201.234.99.50 > > > > http://www.spamhaus.org/pbl/query/PBL218080 > > 201.234.98.0/23 is listed on the Policy Block List (PBL) > > This means you are using a private mail server with a IP > > in a range used by providers for customers. > > This is mostly done by spammer programs on hacked computers. > > > > http://cbl.abuseat.org/lookup.cgi?ip=201.234.99.50 > > IP Address 201.234.99.50 is currently listed in the CBL. > > It was detected at 2010-01-10 16:00 GMT (+/- 30 minutes), approximately 2 hours ago. > > > > ATTENTION: At the time of detection, this IP was infected with, or NATting > > for a computer infected with a high volume spam sending trojan - it is > > participating or facilitating a botnet sending spam or spreading virus/spam trojans. > > > > > > is the IP 201.234.99.50 your WAN adress (modem/router) or did > > you use hotmail for this message? > > > > In the first case I would suggest your router/computer is intruded by a spam agant. > > > > In the last case your hotmsil is as usual again in the blocklist > > due spam sending by some hotmail.de user. > > > > I gues the first case is true. > > > > > > Best regards, > > > > Ron_1st > > > > > > > -- > Doriano Blengino > > "Listen twice before you speak. > This is why we have two ears, but only one mouth." > > > ------------------------------------------------------------------------------ > This SF.Net email is sponsored by the Verizon Developer Community > Take advantage of Verizon's best-in-class app development support > A streamlined, 14 day to market process makes app distribution fast and easy > Join now and get one step closer to millions of Verizon customers > http://p.sf.net/sfu/verizon-dev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From math.eber at ...221... Sun Jan 10 22:26:06 2010 From: math.eber at ...221... (Matti) Date: Sun, 10 Jan 2010 22:26:06 +0100 Subject: [Gambas-user] Gambas3 svn installs now, but won't run In-Reply-To: <201001090040.40308.gambas@...1...> References: <4B479AC3.9080503@...221...> <201001090040.40308.gambas@...1...> Message-ID: <4B4A45EE.6060005@...221...> This is giving me headaches. Now I deleted everything related to gambas3, also /trunk. Deleted libtool. Installed libtool 2.2.6b again. Did svn checkout again. Now I don't have to be root anymore to ./reconf-all, ./configure -C and make. But it doesn't work. I don't even have a "gambas3" file in /usr/local/bin. The logfiles are attatched. If someone could have a look at them... Libtool always tells me to add things to configure.ac - but I don't understand that. Strange: I have libtool now in /usr/share/libtool and in /usr/local/share/libtool. As well, aclocal is in /usr/local/share/aclocal, /usr/share/aclocal and /usr/share/aclocal-1.10. Seems to be some mess, but I don't know how to handle it. Thanks for any help. Matti Beno?t Minisini schrieb: >> ... but: >> When I call /usr/local/bin/gambas3, I get this message: >> >> ERROR: #2: Cannot load class '2.99.0': Unable to load class file >> ** INTERNAL ERROR ** >> ** Bad type (0) for VALUE_write >> ** Program aborting. Sorry! :-( >> >> What the hell is that again? >> Couldn't google anything like that. >> >> It's on OpenSUSE 11.0, and the first installation of gb3 was without any >> problems. >> >> Thanks, Matti. >> > > That means that there is something completely weird in your Gambas > installation. > > Please provide the full output of the configuration, compilation and > installation process. > > You have to be root only when you run "make install". You should not, or must > not be root when doing configuration and compilation. > > Regards, > -------------- next part -------------- A non-text attachment was scrubbed... Name: reconf-all.log Type: text/x-log Size: 54343 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: configure-C.log Type: text/x-log Size: 54677 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: make.log Type: text/x-log Size: 96426 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: make_install.log Type: text/x-log Size: 59774 bytes Desc: not available URL: From matteo.lisi at ...2324... Mon Jan 11 00:08:55 2010 From: matteo.lisi at ...2324... (matteo.lisi at ...2324...) Date: Mon, 11 Jan 2010 00:08:55 +0100 Subject: [Gambas-user] Problem during Gambas 2.19 installation on Ubuntu 9.10 Message-ID: <4b4a5e07.1b0.3e81.626594317@...2353...> Yes libqt3-mt-dev is installed.... thanks for your reply ! ----- Original Message ----- Da : Fabien Bodard A : mailing list for gambas users Oggetto : Re: [Gambas-user] Problem during Gambas 2.19 installation on Ubuntu 9.10 Data : Sun, 10 Jan 2010 19:51:21 +0100 > IS libqt3-mt-dev installed ? > > > if not install it and do a reconf-all > > 2010/1/10 matteo.lisi at ...2324... > > : Ok > > > > I checked all library installed on my ubuntu and redid > > the installation from the beginning. > > > > Somethings is changed: > > > > When I launch gambas2 I have: > > > > ERROR: #27: Cannot load component 'gb.qt': cannot find > > library file > > > > The ./configure disable the gb.qte packet and the make / > > make install seems to return without error... > > > > Do you need some output to understand what I wrong ? > > > > Tnx a lot! > > > > ----- Original Message ----- > > Da : Beno??t Minisini > > A : mailing list for gambas users > > > > Oggetto : Re: [Gambas-user] Problem during Gambas 2.19 > > installation on Ubuntu 9.10 > > Data : Sun, 10 Jan 2010 14:59:51 +0100 > > > >> > Hi to All !> > I'm trying to install last gambas2 > >> version on my ubuntu 9.10> but I had some error:> > 1) > I >> launch the configuration script with:> > sudo > /configure >> --enable-net=yes --enable-curl=yes> > > --enable-smtp=yes> > > >> but at the end I receive the following report:> > THESE > >> COMPONENTS ARE DISABLED:> [..]> - gb.net.curl> - > >> gb.net.smtp> [..]> > Why this components are disabled > ?> >> Because some libraries or development packages are > not >> installed. You see it by reading the ./configure > output.> >> 2) I launched the:> sudo make> sudo make > install> > All >> the make is done without errors but when > I execute the:> > >> gambas2> > I receive this error:> > ERROR: #27: Cannot load >> component 'gb.qt': cannot find> > library file> Are you sure >> that you didn't get error > messages during "make >> install"?Anyway, you need to > provide the full output of >> the entire configuration, > compilation and installation >> process, otherwise nobody > will be able to help you.Regards >> ,-- Beno??t > >> > Minisini-------------------------------------------------- > >> --- -------------------------This SF.Net email is >> > sponsored by the Verizon Developer CommunityTake advantage > >> of Verizon's best-in-class app development supportA >> > streamlined, 14 day to market process makes app >> > distribution fast and easyJoin now and get one step closer > >> to millions of Verizon >> > customershttp://p.sf.net/sfu/verizon-dev2dev >> > _______________________________________________Gambas-user > >> mailing >> > listGambas-user at ...2354...://lists.sourcef > >> orge.net/lists/listinfo/gambas-user > > > > ---------------------------------------------------------- > > -------------------- This SF.Net email is sponsored by > > the Verizon Developer Community Take advantage of > > Verizon's best-in-class app development support A > streamlined, 14 day to market process makes app > > distribution fast and easy Join now and get one step > > closer to millions of Verizon customers > > http://p.sf.net/sfu/verizon-dev2dev > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > ---------------------------------------------------------- > -------------------- This SF.Net email is sponsored by the > Verizon Developer Community Take advantage of Verizon's > best-in-class app development support A streamlined, 14 > day to market process makes app distribution fast and easy > Join now and get one step closer to millions of Verizon > customers http://p.sf.net/sfu/verizon-dev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From bbruen at ...2308... Mon Jan 11 02:39:57 2010 From: bbruen at ...2308... (bbb888) Date: Sun, 10 Jan 2010 17:39:57 -0800 (PST) Subject: [Gambas-user] Modules cant raise events :-( Message-ID: <27104759.post@...1379...> I have a module called "env" that "holds" three system wide objects (CurrentUser, CurrentProject, CurrentSystem). Lots of forms access and use these objects (Login, FMain etc etc). I am trying to signal an unknown number of listeners when one of these objects changes, for example is the user changes to another "project". But modules cant raise events. I don't want to raise the event inside the objects classes (e.g. CurrentProject is an instance of Project) as ... actually I don't know why, but it seems wrong (the object itself doesn't know it's changed). I am having trouble coming up with a solution. Can anyone suggest a solution or a workaround? tia bruce -- View this message in context: http://old.nabble.com/Modules-cant-raise-events-%3A-%28-tp27104759p27104759.html Sent from the gambas-user mailing list archive at Nabble.com. From bbruen at ...2308... Mon Jan 11 02:31:55 2010 From: bbruen at ...2308... (bbb888) Date: Sun, 10 Jan 2010 17:31:55 -0800 (PST) Subject: [Gambas-user] Where is "user component directory"? In-Reply-To: <6324a42a1001090614u6efcd65rb182bec0322f7c28@...627...> References: <27084461.post@...1379...> <6324a42a1001090614u6efcd65rb182bec0322f7c28@...627...> Message-ID: <27104718.post@...1379...> Thanks Fabien, I forgot that I did a little cleanup/re-org before the upgrade and moved the projects. The links in ~/.local/lib/gambas2 still existed and therefore pointed to a non-existent place. Simply deleting them and re-making the exec's fixed it all up! Also, sorry for the delay in replying, I've been a tad busy. regards bruce -- View this message in context: http://old.nabble.com/Where-is-%22user-component-directory%22--tp27084461p27104718.html Sent from the gambas-user mailing list archive at Nabble.com. From gambas at ...1... Mon Jan 11 03:15:11 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Mon, 11 Jan 2010 03:15:11 +0100 Subject: [Gambas-user] Modules cant raise events :-( In-Reply-To: <27104759.post@...1379...> References: <27104759.post@...1379...> Message-ID: <201001110315.11334.gambas@...1...> > I have a module called "env" that "holds" three system wide objects > (CurrentUser, CurrentProject, CurrentSystem). Lots of forms access and use > these objects (Login, FMain etc etc). > > I am trying to signal an unknown number of listeners when one of these > objects changes, for example is the user changes to another "project". But > modules cant raise events. > > I don't want to raise the event inside the objects classes (e.g. > CurrentProject is an instance of Project) as ... actually I don't know why, > but it seems wrong (the object itself doesn't know it's changed). > > I am having trouble coming up with a solution. Can anyone suggest a > solution or a workaround? > > tia > bruce > If CurrentUser, CurrentProject and CurrentSystem are the objects that change, then they should raise the events, not the module where they are declared. Shouldn't they? An event is the way an object tells the world it has changed. If you can't, then there is something not clear in your design. Anyway, you can register your listeners in an object array in your module, and call specific procedures of these object references when something change. It's more like some sort of "bus". I did that in the IDE. For example, when the project state changes (a new project is loaded, the project enters debugging mode, and so on...), the same procedure is called on all opened forms. Regards, -- Beno?t Minisini From bbruen at ...2308... Mon Jan 11 04:25:16 2010 From: bbruen at ...2308... (bbb888) Date: Sun, 10 Jan 2010 19:25:16 -0800 (PST) Subject: [Gambas-user] Modules cant raise events :-( In-Reply-To: <201001110315.11334.gambas@...1...> References: <27104759.post@...1379...> <201001110315.11334.gambas@...1...> Message-ID: <27105479.post@...1379...> Hi Benoit, Beno?t Minisini wrote: > > If CurrentUser, CurrentProject and CurrentSystem are the objects that > change, > then they should raise the events, not the module where they are declared. > Shouldn't they? An event is the way an object tells the world it has > changed. > > If you can't, then there is something not clear in your design. > Actually, it was something unclear in my explanation. Its the whole instance that gets changed, for example, FReconnect allows the user to change the CurrentProject. So before it exits, we have env.CurrentProject = selectedProject where selectedProject is a Project instance and env has a Property CurrentProject and PRIVATE SUB CurrentProject_Write(Value AS Project) $currentProject = Value END In other words, I am overwriting the whole instance in "env" (or providing a new replacement pointer, if you prefer). So, more specifically, $currentProject doesn't "know" it's been "replaced". Beno?t Minisini wrote: > Anyway, you can register your listeners in an object array in your module, > and > call specific procedures of these object references when something change. > It's more like some sort of "bus". > > I did that in the IDE. For example, when the project state changes (a new > project is loaded, the project enters debugging mode, and so on...), the > same > procedure is called on all opened forms. > This sounds like what I may be looking for! Could you provide a bit more of a clue where to look as there is a lot of good stuff in the IDE project... but there is quite a lot of code too! Finally, just out of interest, why can't modules raise events? Regards, bruce -- View this message in context: http://old.nabble.com/Modules-cant-raise-events-%3A-%28-tp27104759p27105479.html Sent from the gambas-user mailing list archive at Nabble.com. From mx4eva at ...626... Mon Jan 11 08:09:50 2010 From: mx4eva at ...626... (Fiddler63) Date: Sun, 10 Jan 2010 23:09:50 -0800 (PST) Subject: [Gambas-user] How to generate a new frame or pic box when a button is pressed In-Reply-To: <6324a42a1001100152u3d3ba7e4p5fba997c9c3f8fb3@...627...> References: <6324a42a1001100152u3d3ba7e4p5fba997c9c3f8fb3@...627...> Message-ID: <27106569.post@...1379...> Fab, thanks for that. I got the form to show fine but I'm a bit confused about the movement with the mouse. Tell me if I'm on the right track here: X,Y of the mouse is within X,Y of the object to be moved and while MouseDown, move object to current Mouse X,Y coordinates. Do I handle each of the events as separate sub routines ? I mainly struggle because I come from a 8-bit chip background where you need to know absolutely everything. Cheers Kim Fabien Bodard-4 wrote: > > in fact you need to load a new form, set it's border to none, set it's > size to the picture size, set it's picture to the picture, and then > manage the movement with mouseDown, mouseUp and MouseMove events. > > > dim hForm as new Form > hForm.Resize(hPic.W, hPic.H) > hForm.Picture = hPic > hForm.Border = Border.None > > > > > 2010/1/10 k p : >> I got a button on a form and when I click the button I need the program >> to >> load a new frame/picture. >> Also I would like to be able to move the new frame/pic around on the >> screen >> to suit. >> >> How do I go about the above ? >> >> Cheers >> >> kim >> ------------------------------------------------------------------------------ >> This SF.Net email is sponsored by the Verizon Developer Community >> Take advantage of Verizon's best-in-class app development support >> A streamlined, 14 day to market process makes app distribution fast and >> easy >> Join now and get one step closer to millions of Verizon customers >> http://p.sf.net/sfu/verizon-dev2dev >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > ------------------------------------------------------------------------------ > This SF.Net email is sponsored by the Verizon Developer Community > Take advantage of Verizon's best-in-class app development support > A streamlined, 14 day to market process makes app distribution fast and > easy > Join now and get one step closer to millions of Verizon customers > http://p.sf.net/sfu/verizon-dev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > -- View this message in context: http://old.nabble.com/How-to-generate-a-new-frame-or-pic-box-when-a-button-is-pressed-tp27095779p27106569.html Sent from the gambas-user mailing list archive at Nabble.com. From oceanosoftlapalma at ...626... Mon Jan 11 09:19:26 2010 From: oceanosoftlapalma at ...626... (=?ISO-8859-1?Q?Ricardo_D=EDaz_Mart=EDn?=) Date: Mon, 11 Jan 2010 08:19:26 +0000 Subject: [Gambas-user] Problem during Gambas 2.19 installation on Ubuntu 9.10 In-Reply-To: <4b4a5e07.1b0.3e81.626594317@...2353...> References: <4b4a5e07.1b0.3e81.626594317@...2353...> Message-ID: On before gambas installation on ubuntu 9.10 you must to do this: sudo apt-get install build-essential autoconf libbz2-dev libfbclient2 libmysqlclient15-dev unixodbc-dev libpq-dev libsqlite0-dev libsqlite3-dev libgtk2.0-dev libldap2-dev libcurl4-gnutls-dev libgtkglext1-dev libpcre3-dev libsdl-sound1.2-dev libsdl-mixer1.2-dev libsdl-image1.2-dev libsage-dev libxml2-dev libxslt1-dev libbonobo2-dev libcos4-dev libomniorb4-dev librsvg2-dev libpoppler-dev libpoppler-glib-dev libasound2-dev libesd0-dev libesd-alsa0 libdirectfb-dev libaa1-dev libxtst-dev libffi-dev kdelibs4-dev firebird2.1-dev libqt4-dev libglew1.5-dev Please, visit http://gambasdoc.org/help/install/ubuntu?view I hope this works for you. Regards, 2010/1/10 matteo.lisi at ...2324... > Yes libqt3-mt-dev is installed.... > > thanks for your reply ! > > > ----- Original Message ----- > Da : Fabien Bodard > A : mailing list for gambas users > > Oggetto : Re: [Gambas-user] Problem during Gambas 2.19 > installation on Ubuntu 9.10 > Data : Sun, 10 Jan 2010 19:51:21 +0100 > > > IS libqt3-mt-dev installed ? > > > > > > if not install it and do a reconf-all > > > > 2010/1/10 matteo.lisi at ...2324... > > > : Ok > > > > > > I checked all library installed on my ubuntu and redid > > > the installation from the beginning. > > > > > > Somethings is changed: > > > > > > When I launch gambas2 I have: > > > > > > ERROR: #27: Cannot load component 'gb.qt': cannot find > > > library file > > > > > > The ./configure disable the gb.qte packet and the make / > > > make install seems to return without error... > > > > > > Do you need some output to understand what I wrong ? > > > > > > Tnx a lot! > > > > > > ----- Original Message ----- > > > Da : Beno??t Minisini > > > A : mailing list for gambas users > > > > > > Oggetto : Re: [Gambas-user] Problem during Gambas 2.19 > > > installation on Ubuntu 9.10 > > > Data : Sun, 10 Jan 2010 14:59:51 +0100 > > > > > >> > Hi to All !> > I'm trying to install last gambas2 > > >> version on my ubuntu 9.10> but I had some error:> > 1) > > I >> launch the configuration script with:> > sudo > > /configure >> --enable-net=yes --enable-curl=yes> > > > --enable-smtp=yes> > > > >> but at the end I receive the following report:> > THESE > > >> COMPONENTS ARE DISABLED:> [..]> - gb.net.curl> - > > >> gb.net.smtp> [..]> > Why this components are disabled > > ?> >> Because some libraries or development packages are > > not >> installed. You see it by reading the ./configure > > output.> >> 2) I launched the:> sudo make> sudo make > > install> > All >> the make is done without errors but when > > I execute the:> > >> gambas2> > I receive this error:> > > ERROR: #27: Cannot load >> component 'gb.qt': cannot find> > > library file> Are you sure >> that you didn't get error > > messages during "make >> install"?Anyway, you need to > > provide the full output of >> the entire configuration, > > compilation and installation >> process, otherwise nobody > > will be able to help you.Regards >> ,-- Beno??t > > >> > > Minisini-------------------------------------------------- > > >> --- -------------------------This SF.Net email is >> > > sponsored by the Verizon Developer CommunityTake advantage > > >> of Verizon's best-in-class app development supportA >> > > streamlined, 14 day to market process makes app >> > > distribution fast and easyJoin now and get one step closer > > >> to millions of Verizon >> > > customershttp://p.sf.net/sfu/verizon-dev2dev >> > > _______________________________________________Gambas-user > > >> mailing >> > > listGambas-user at ...2354...://lists.sourcef > > >> orge.net/lists/listinfo/gambas-user > > > > > > ---------------------------------------------------------- > > > -------------------- This SF.Net email is sponsored by > > > the Verizon Developer Community Take advantage of > > > Verizon's best-in-class app development support A > > streamlined, 14 day to market process makes app > > > distribution fast and easy Join now and get one step > > > closer to millions of Verizon customers > > > http://p.sf.net/sfu/verizon-dev2dev > > > _______________________________________________ > > > Gambas-user mailing list > > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > ---------------------------------------------------------- > > -------------------- This SF.Net email is sponsored by the > > Verizon Developer Community Take advantage of Verizon's > > best-in-class app development support A streamlined, 14 > > day to market process makes app distribution fast and easy > > Join now and get one step closer to millions of Verizon > > customers http://p.sf.net/sfu/verizon-dev2dev > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > ------------------------------------------------------------------------------ > This SF.Net email is sponsored by the Verizon Developer Community > Take advantage of Verizon's best-in-class app development support > A streamlined, 14 day to market process makes app distribution fast and > easy > Join now and get one step closer to millions of Verizon customers > http://p.sf.net/sfu/verizon-dev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas.fr at ...626... Mon Jan 11 09:41:21 2010 From: gambas.fr at ...626... (Fabien Bodard) Date: Mon, 11 Jan 2010 09:41:21 +0100 Subject: [Gambas-user] How to generate a new frame or pic box when a button is pressed In-Reply-To: <27106569.post@...1379...> References: <6324a42a1001100152u3d3ba7e4p5fba997c9c3f8fb3@...627...> <27106569.post@...1379...> Message-ID: <6324a42a1001110041r28597de5pfb3ad0b3898fc2a9@...627...> PRIVATE $MX AS Integer PRIVATE $MY AS Integer PUBLIC SUB Form_MouseDown() $MX = Mouse.ScreenX - ME.X $MY = Mouse.ScreenY - ME.Y END PUBLIC SUB Form_MouseMove() ME.Move(Mouse.ScreenX - $MX, Mouse.ScreenY - $MY) END It's like that :) 2010/1/11 Fiddler63 : > > Fab, thanks for that. > I got the form to show fine but I'm a bit confused about the movement with > the mouse. > Tell me if I'm on the right track here: > > X,Y of the mouse is within X,Y of the object to be moved > and while MouseDown, move object to current Mouse X,Y coordinates. > > Do I handle each of the events as separate sub routines ? > > I mainly struggle because I come from a 8-bit chip background where you need > to know absolutely everything. > > Cheers > Kim > > > > > Fabien Bodard-4 wrote: >> >> in fact you need to load a new form, set it's border to none, set it's >> size to the picture size, set it's picture to the picture, and then >> manage the movement with mouseDown, mouseUp and MouseMove events. >> >> >> dim hForm as new Form >> hForm.Resize(hPic.W, hPic.H) >> hForm.Picture = hPic >> hForm.Border = Border.None >> >> >> >> >> 2010/1/10 k p : >>> I got a button on a form and when I click the button I need the program >>> to >>> load a new frame/picture. >>> Also I would like to be able to move the new frame/pic around on the >>> screen >>> to suit. >>> >>> How do I go about the above ? >>> >>> Cheers >>> >>> kim >>> ------------------------------------------------------------------------------ >>> This SF.Net email is sponsored by the Verizon Developer Community >>> Take advantage of Verizon's best-in-class app development support >>> A streamlined, 14 day to market process makes app distribution fast and >>> easy >>> Join now and get one step closer to millions of Verizon customers >>> http://p.sf.net/sfu/verizon-dev2dev >>> _______________________________________________ >>> Gambas-user mailing list >>> Gambas-user at lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>> >> >> ------------------------------------------------------------------------------ >> This SF.Net email is sponsored by the Verizon Developer Community >> Take advantage of Verizon's best-in-class app development support >> A streamlined, 14 day to market process makes app distribution fast and >> easy >> Join now and get one step closer to millions of Verizon customers >> http://p.sf.net/sfu/verizon-dev2dev >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> >> > > -- > View this message in context: http://old.nabble.com/How-to-generate-a-new-frame-or-pic-box-when-a-button-is-pressed-tp27095779p27106569.html > Sent from the gambas-user mailing list archive at Nabble.com. > > > ------------------------------------------------------------------------------ > This SF.Net email is sponsored by the Verizon Developer Community > Take advantage of Verizon's best-in-class app development support > A streamlined, 14 day to market process makes app distribution fast and easy > Join now and get one step closer to millions of Verizon customers > http://p.sf.net/sfu/verizon-dev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas.fr at ...626... Mon Jan 11 09:51:11 2010 From: gambas.fr at ...626... (Fabien Bodard) Date: Mon, 11 Jan 2010 09:51:11 +0100 Subject: [Gambas-user] Problem during Gambas 2.19 installation on Ubuntu 9.10 In-Reply-To: References: <4b4a5e07.1b0.3e81.626594317@...2353...> Message-ID: <6324a42a1001110051t7f195cdawf120d1ffad20d98@...627...> More upto date ... and i've updated on the wiki too ... so gb3 can compile Too with all components. sudo apt-get install build-essential autoconf libbz2-dev libfbclient2 libmysqlclient15-dev unixodbc-dev libpq-dev libsqlite0-dev libsqlite3-dev libgtk2.0-dev libldap2-dev libcurl4-gnutls-dev libgtkglext1-dev libpcre3-dev libsdl-sound1.2-dev libsdl-mixer1.2-dev libsdl-image1.2-dev libsage-dev libxml2-dev libxslt1-dev libbonobo2-dev libcos4-dev libomniorb4-dev librsvg2-dev libpoppler-dev libpoppler-glib-dev libasound2-dev libesd0-dev libesd-alsa0 libdirectfb-dev libaa1-dev libxtst-dev libffi-dev kdelibs4-dev firebird2.1-dev libqt4-dev libglew1.5-dev libimlib2-dev libv4l-dev libsdl-ttf2.0-dev 2010/1/11 Ricardo D?az Mart?n : > On before gambas installation on ubuntu 9.10 you must to do this: > > sudo apt-get install build-essential autoconf libbz2-dev libfbclient2 > libmysqlclient15-dev unixodbc-dev libpq-dev libsqlite0-dev > libsqlite3-dev libgtk2.0-dev libldap2-dev libcurl4-gnutls-dev > libgtkglext1-dev libpcre3-dev libsdl-sound1.2-dev libsdl-mixer1.2-dev > libsdl-image1.2-dev libsage-dev libxml2-dev libxslt1-dev > libbonobo2-dev libcos4-dev libomniorb4-dev librsvg2-dev libpoppler-dev > libpoppler-glib-dev libasound2-dev libesd0-dev libesd-alsa0 > libdirectfb-dev libaa1-dev libxtst-dev libffi-dev kdelibs4-dev > firebird2.1-dev libqt4-dev libglew1.5-dev > > > Please, visit http://gambasdoc.org/help/install/ubuntu?view > > I hope this works for you. > > Regards, > > 2010/1/10 matteo.lisi at ...2324... > >> Yes libqt3-mt-dev is installed.... >> >> thanks for your reply ! >> >> >> ----- Original Message ----- >> Da : Fabien Bodard >> A : mailing list for gambas users >> >> Oggetto : Re: [Gambas-user] Problem during Gambas 2.19 >> installation on Ubuntu 9.10 >> Data : Sun, 10 Jan 2010 19:51:21 +0100 >> >> > IS libqt3-mt-dev installed ? >> > >> > >> > if not install it and do a reconf-all >> > >> > 2010/1/10 matteo.lisi at ...2324... >> > > : Ok >> > > >> > > I checked all library installed on my ubuntu and redid >> > > the installation from the beginning. >> > > >> > > Somethings is changed: >> > > >> > > When I launch gambas2 I have: >> > > >> > > ERROR: #27: Cannot load component 'gb.qt': cannot find >> > > library file >> > > >> > > The ./configure disable the gb.qte packet and the make / >> > > make install seems to return without error... >> > > >> > > Do you need some output to understand what I wrong ? >> > > >> > > Tnx a lot! >> > > >> > > ----- Original Message ----- >> > > Da : Beno??t Minisini >> > > A : mailing list for gambas users >> > > >> > > Oggetto : Re: [Gambas-user] Problem during Gambas 2.19 >> > > installation on Ubuntu 9.10 >> > > Data : Sun, 10 Jan 2010 14:59:51 +0100 >> > > >> > >> > Hi to All !> > I'm trying to install last gambas2 >> > >> version on my ubuntu 9.10> but I had some error:> > 1) >> > I >> launch the configuration script with:> > sudo >> > /configure >> --enable-net=yes --enable-curl=yes> >> > > --enable-smtp=yes> > >> > >> but at the end I receive the following report:> > THESE >> > >> COMPONENTS ARE DISABLED:> [..]> - gb.net.curl> - >> > >> gb.net.smtp> [..]> > Why this components are disabled >> > ?> >> Because some libraries or development packages are >> > not >> installed. You see it by reading the ./configure >> > output.> >> 2) I launched the:> sudo make> sudo make >> > install> > All >> the make is done without errors but when >> > I execute the:> > >> gambas2> > I receive this error:> >> > ERROR: #27: Cannot load >> component 'gb.qt': cannot find> >> > library file> Are you sure >> that you didn't get error >> > messages during "make >> install"?Anyway, you need to >> > provide the full output of >> the entire configuration, >> > compilation and installation >> process, otherwise nobody >> > will be able to help you.Regards >> ,-- Beno??t >> > >> >> > Minisini-------------------------------------------------- >> > >> --- -------------------------This SF.Net email is >> >> > sponsored by the Verizon Developer CommunityTake advantage >> > >> of Verizon's best-in-class app development supportA >> >> > streamlined, 14 day to market process makes app >> >> > distribution fast and easyJoin now and get one step closer >> > >> to millions of Verizon >> >> > customershttp://p.sf.net/sfu/verizon-dev2dev >> >> > _______________________________________________Gambas-user >> > >> mailing >> >> > listGambas-user at ...2354...://lists.sourcef >> > >> orge.net/lists/listinfo/gambas-user > >> > > >> > ---------------------------------------------------------- >> > > -------------------- This SF.Net email is sponsored by >> > > the Verizon Developer Community Take advantage of >> > > Verizon's best-in-class app development support A >> > streamlined, 14 day to market process makes app >> > > distribution fast and easy Join now and get one step >> > > closer to millions of Verizon customers >> > > http://p.sf.net/sfu/verizon-dev2dev >> > > _______________________________________________ >> > > Gambas-user mailing list >> > > Gambas-user at lists.sourceforge.net >> > https://lists.sourceforge.net/lists/listinfo/gambas-user > >> > >> > ---------------------------------------------------------- >> > -------------------- This SF.Net email is sponsored by the >> > Verizon Developer Community Take advantage of Verizon's >> > best-in-class app development support A streamlined, 14 >> > day to market process makes app distribution fast and easy >> > Join now and get one step closer to millions of Verizon >> > customers http://p.sf.net/sfu/verizon-dev2dev >> > _______________________________________________ >> > Gambas-user mailing list >> > Gambas-user at lists.sourceforge.net >> > https://lists.sourceforge.net/lists/listinfo/gambas-user >> >> >> ------------------------------------------------------------------------------ >> This SF.Net email is sponsored by the Verizon Developer Community >> Take advantage of Verizon's best-in-class app development support >> A streamlined, 14 day to market process makes app distribution fast and >> easy >> Join now and get one step closer to millions of Verizon customers >> http://p.sf.net/sfu/verizon-dev2dev >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > ------------------------------------------------------------------------------ > This SF.Net email is sponsored by the Verizon Developer Community > Take advantage of Verizon's best-in-class app development support > A streamlined, 14 day to market process makes app distribution fast and easy > Join now and get one step closer to millions of Verizon customers > http://p.sf.net/sfu/verizon-dev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From eilert-sprachen at ...221... Mon Jan 11 10:05:53 2010 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Mon, 11 Jan 2010 10:05:53 +0100 Subject: [Gambas-user] make fail (gambas3 rev 2603) In-Reply-To: <27091041.post@...1379...> References: <27084632.post@...1379...> <27086866.post@...1379...> <201001091246.03610.gambas@...1...> <27091041.post@...1379...> Message-ID: <4B4AE9F1.3070505@...221...> Am 09.01.2010 18:51, schrieb kobolds: > > Fixed . thanks How did you fix that? I had the same problem, so please describe somewhat more in detail... Thank you. Rolf > > > Beno?t Minisini wrote: >> >>> I tried with rev 2604 but still get same error . >>> >>> here I attach the log >>> >>> http://old.nabble.com/file/p27086866/konsole.txt.tar.gz >>> konsole.txt.tar.gz >>> >>> kobolds wrote: >>>> Hi, I having trouble when compiling gambas3 source on opensuse 11.2 >>> (x64) >>>> >>>> ../libtool: line 4998: cd: no: No such file or directory >>>> libtool: link: cannot determine absolute directory name of `no' >>>> make[4]: *** [gb.la] Error 1 >>>> make[4]: Leaving directory `/temp/trunk/main/gbx' >>>> make[3]: *** [all-recursive] Error 1 >>>> make[3]: Leaving directory `/temp/trunk/main' >>>> make[2]: *** [all] Error 2 >>>> make[2]: Leaving directory `/temp/trunk/main' >>>> make[1]: *** [all-recursive] Error 1 >>>> make[1]: Leaving directory `/temp/trunk' >>>> make: *** [all] Error 2 >>> >> >> Can you try to find the libffi development package if you have it on SuSE? >> And >> then install it? >> >> Otherwise, can you search where could be located the "ffi.h" include file >> on >> your system? >> >> libffi cannot be compiled, maybe this is the reason why you get this >> error. >> >> -- >> Beno?t Minisini >> >> ------------------------------------------------------------------------------ >> This SF.Net email is sponsored by the Verizon Developer Community >> Take advantage of Verizon's best-in-class app development support >> A streamlined, 14 day to market process makes app distribution fast and >> easy >> Join now and get one step closer to millions of Verizon customers >> http://p.sf.net/sfu/verizon-dev2dev >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> >> > From matteo.lisi at ...2324... Mon Jan 11 10:18:38 2010 From: matteo.lisi at ...2324... (matteo.lisi at ...2324...) Date: Mon, 11 Jan 2010 10:18:38 +0100 Subject: [Gambas-user] Problem during Gambas 2.19 installation on Ubuntu 9.10 Message-ID: <4b4aecee.27.5b0b.854328907@...2358...> Hi Fabien and thanks for your reply I update my Ubuntu (Before my last reply I used the apt-get string on the installation page) with your last apt-get string and something is changed: now when I launch gambas2 I obtain: matteo at ...2357...:/usr/src/gambas2-2.19.0$ gambas2 ERROR: #27: Cannot load component 'gb.debug': cannot find library file any tips ? Thanks in advice matteo at ...2357...:/usr/src/gambas2-2.19.0$ sudo gambas2 ERROR: #27: Cannot load component 'gb.debug': cannot find library file ----- Original Message ----- Da : Fabien Bodard A : mailing list for gambas users Oggetto : Re: [Gambas-user] Problem during Gambas 2.19 installation on Ubuntu 9.10 Data : Mon, 11 Jan 2010 09:51:11 +0100 > More upto date ... and i've updated on the wiki too ... so > gb3 can compile Too with all components. > > > sudo apt-get install build-essential autoconf libbz2-dev > libfbclient2 libmysqlclient15-dev unixodbc-dev libpq-dev > libsqlite0-dev libsqlite3-dev libgtk2.0-dev libldap2-dev > libcurl4-gnutls-dev libgtkglext1-dev libpcre3-dev > libsdl-sound1.2-dev libsdl-mixer1.2-dev > libsdl-image1.2-dev libsage-dev libxml2-dev libxslt1-dev > libbonobo2-dev libcos4-dev libomniorb4-dev librsvg2-dev > libpoppler-dev libpoppler-glib-dev libasound2-dev > libesd0-dev libesd-alsa0 libdirectfb-dev libaa1-dev > libxtst-dev libffi-dev kdelibs4-dev firebird2.1-dev > libqt4-dev libglew1.5-dev libimlib2-dev libv4l-dev > libsdl-ttf2.0-dev > > 2010/1/11 Ricardo D?az Mart?n > > : On before gambas > installation on ubuntu 9.10 you must to do this: > > > sudo apt-get install build-essential autoconf libbz2-dev > > libfbclient2 libmysqlclient15-dev unixodbc-dev libpq-dev > > libsqlite0-dev libsqlite3-dev libgtk2.0-dev libldap2-dev > > libcurl4-gnutls-dev libgtkglext1-dev libpcre3-dev > > libsdl-sound1.2-dev libsdl-mixer1.2-dev > > libsdl-image1.2-dev libsage-dev libxml2-dev libxslt1-dev > libbonobo2-dev libcos4-dev libomniorb4-dev librsvg2-dev > > libpoppler-dev libpoppler-glib-dev libasound2-dev > > libesd0-dev libesd-alsa0 libdirectfb-dev libaa1-dev > > libxtst-dev libffi-dev kdelibs4-dev firebird2.1-dev > libqt4-dev libglew1.5-dev > > > > > Please, visit > http://gambasdoc.org/help/install/ubuntu?view > > > I hope this works for you. > > > > Regards, > > > > 2010/1/10 matteo.lisi at ...2324... > > > >> Yes libqt3-mt-dev is installed.... > >> > >> thanks for your reply ! > >> > >> > >> ----- Original Message ----- > >> Da : Fabien Bodard > >> A : mailing list for gambas users > >> > >> Oggetto : Re: [Gambas-user] Problem during Gambas 2.19 > >> installation on Ubuntu 9.10 > >> Data : Sun, 10 Jan 2010 19:51:21 +0100 > >> > >> > IS libqt3-mt-dev installed ? > >> > > >> > > >> > if not install it and do a reconf-all > >> > > >> > 2010/1/10 matteo.lisi at ...2324... > >> > > : Ok > >> > > > >> > > I checked all library installed on my ubuntu and > redid >> > > the installation from the beginning. > >> > > > >> > > Somethings is changed: > >> > > > >> > > When I launch gambas2 I have: > >> > > > >> > > ERROR: #27: Cannot load component 'gb.qt': cannot > find >> > > library file > >> > > > >> > > The ./configure disable the gb.qte packet and the > make / >> > > make install seems to return without > error... >> > > > >> > > Do you need some output to understand what I wrong > ? >> > > > >> > > Tnx a lot! > >> > > > >> > > ----- Original Message ----- > >> > > Da : Beno??t Minisini > >> > > A : mailing list for > gambas users >> > > > >> > > Oggetto : Re: [Gambas-user] Problem during Gambas > 2.19 >> > > installation on Ubuntu 9.10 > >> > > Data : Sun, 10 Jan 2010 14:59:51 +0100 > >> > > > >> > >> > Hi to All !> > I'm trying to install last > gambas2 >> > >> version on my ubuntu 9.10> but I had some > error:> > 1) >> > I >> launch the configuration script > with:> > sudo >> > /configure >> --enable-net=yes > --enable-curl=yes> >> > > --enable-smtp=yes> > > >> > >> but at the end I receive the following report:> > > THESE >> > >> COMPONENTS ARE DISABLED:> [..]> - > gb.net.curl> - >> > >> gb.net.smtp> [..]> > Why this > components are disabled >> > ?> >> Because some libraries > or development packages are >> > not >> installed. You see > it by reading the ./configure >> > output.> >> 2) I > launched the:> sudo make> sudo make >> > install> > All >> > the make is done without errors but when >> > I execute > the:> > >> gambas2> > I receive this error:> >> > ERROR: > #27: Cannot load >> component 'gb.qt': cannot find> >> > > library file> Are you sure >> that you didn't get error >> > > messages during "make >> install"?Anyway, you need to >> > > provide the full output of >> the entire configuration, > >> > compilation and installation >> process, otherwise > nobody >> > will be able to help you.Regards >> ,-- > Beno??t >> > >> > >> > > Minisini-------------------------------------------------- > >> > >> --- -------------------------This SF.Net email is > >> >> > sponsored by the Verizon Developer CommunityTake > advantage >> > >> of Verizon's best-in-class app > development supportA >> >> > streamlined, 14 day to market > process makes app >> >> > distribution fast and easyJoin > now and get one step closer >> > >> to millions of Verizon > >> >> > customershttp://p.sf.net/sfu/verizon-dev2dev >> > >> > > _______________________________________________Gambas-user > >> > >> mailing >> >> > > listGambas-user at ...2354...://lists.sourcef > >> > >> orge.net/lists/listinfo/gambas-user > >> > > > >> > > ---------------------------------------------------------- > >> > > -------------------- This SF.Net email is sponsored > by >> > > the Verizon Developer Community Take advantage > of >> > > Verizon's best-in-class app development support > A >> > streamlined, 14 day to market process makes app > >> > > distribution fast and easy Join now and get one > step >> > > closer to millions of Verizon customers > >> > > http://p.sf.net/sfu/verizon-dev2dev > >> > > _______________________________________________ > >> > > Gambas-user mailing list > >> > > Gambas-user at lists.sourceforge.net > >> > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > >> > >> > > ---------------------------------------------------------- > >> > -------------------- This SF.Net email is sponsored > by the >> > Verizon Developer Community Take advantage of > Verizon's >> > best-in-class app development support A > streamlined, 14 >> > day to market process makes app > distribution fast and easy >> > Join now and get one step > closer to millions of Verizon >> > customers > http://p.sf.net/sfu/verizon-dev2dev >> > > _______________________________________________ >> > > Gambas-user mailing list >> > > Gambas-user at lists.sourceforge.net >> > > https://lists.sourceforge.net/lists/listinfo/gambas-user > >> >> > >> > ---------------------------------------------------------- > -------------------- >> This SF.Net email is sponsored by > the Verizon Developer Community >> Take advantage of > Verizon's best-in-class app development support >> A > streamlined, 14 day to market process makes app > distribution fast and >> easy > >> Join now and get one step closer to millions of Verizon > customers >> http://p.sf.net/sfu/verizon-dev2dev > >> _______________________________________________ > >> Gambas-user mailing list > >> Gambas-user at lists.sourceforge.net > >> > https://lists.sourceforge.net/lists/listinfo/gambas-user > > >> > ---------------------------------------------------------- > > -------------------- This SF.Net email is sponsored by > > the Verizon Developer Community Take advantage of > > Verizon's best-in-class app development support A > streamlined, 14 day to market process makes app > > distribution fast and easy Join now and get one step > > closer to millions of Verizon customers > > http://p.sf.net/sfu/verizon-dev2dev > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > ---------------------------------------------------------- > -------------------- This SF.Net email is sponsored by the > Verizon Developer Community Take advantage of Verizon's > best-in-class app development support A streamlined, 14 > day to market process makes app distribution fast and easy > Join now and get one step closer to millions of Verizon > customers http://p.sf.net/sfu/verizon-dev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From mx4eva at ...626... Mon Jan 11 10:36:24 2010 From: mx4eva at ...626... (Fiddler63) Date: Mon, 11 Jan 2010 01:36:24 -0800 (PST) Subject: [Gambas-user] SOLVED - How to generate a new frame or pic box when a button is pressed In-Reply-To: <6324a42a1001110041r28597de5pfb3ad0b3898fc2a9@...627...> References: <6324a42a1001100152u3d3ba7e4p5fba997c9c3f8fb3@...627...> <27106569.post@...1379...> <6324a42a1001110041r28597de5pfb3ad0b3898fc2a9@...627...> Message-ID: <27107825.post@...1379...> Wicked, I like it :-) PRIVATE $MX AS Integer PRIVATE $MY AS Integer PUBLIC SUB Form_MouseDown() $MX = Mouse.ScreenX - ME.X $MY = Mouse.ScreenY - ME.Y END PUBLIC SUB Form_MouseMove() ME.Move(Mouse.ScreenX - $MX, Mouse.ScreenY - $MY) END It's like that :) 2010/1/11 Fiddler63 : > > Fab, thanks for that. > I got the form to show fine but I'm a bit confused about the movement with > the mouse. > Tell me if I'm on the right track here: > > X,Y of the mouse is within X,Y of the object to be moved > and while MouseDown, move object to current Mouse X,Y coordinates. > > Do I handle each of the events as separate sub routines ? > > I mainly struggle because I come from a 8-bit chip background where you > need > to know absolutely everything. > > Cheers > Kim > > > > > Fabien Bodard-4 wrote: >> >> in fact you need to load a new form, set it's border to none, set it's >> size to the picture size, set it's picture to the picture, and then >> manage the movement with mouseDown, mouseUp and MouseMove events. >> >> >> dim hForm as new Form >> hForm.Resize(hPic.W, hPic.H) >> hForm.Picture = hPic >> hForm.Border = Border.None >> >> >> >> >> 2010/1/10 k p : >>> I got a button on a form and when I click the button I need the program >>> to >>> load a new frame/picture. >>> Also I would like to be able to move the new frame/pic around on the >>> screen >>> to suit. >>> >>> How do I go about the above ? >>> >>> Cheers >>> >>> kim -- View this message in context: http://old.nabble.com/How-to-generate-a-new-frame-or-pic-box-when-a-button-is-pressed-tp27095779p27107825.html Sent from the gambas-user mailing list archive at Nabble.com. From gambas.fr at ...626... Mon Jan 11 12:06:42 2010 From: gambas.fr at ...626... (Fabien Bodard) Date: Mon, 11 Jan 2010 12:06:42 +0100 Subject: [Gambas-user] Problem during Gambas 2.19 installation on Ubuntu 9.10 In-Reply-To: <4b4aecee.27.5b0b.854328907@...2358...> References: <4b4aecee.27.5b0b.854328907@...2358...> Message-ID: <6324a42a1001110306p69f757f8n7036e77314d845f1@...627...> 2010/1/11 matteo.lisi at ...2324... : > > Hi Fabien and thanks for your reply > > I update my Ubuntu (Before my last reply I used the apt-get > string on the installation page) with your last apt-get > string and something is changed: > > now when I launch gambas2 I obtain: > > matteo at ...2357...:/usr/src/gambas2-2.19.0$ gambas2 > ERROR: #27: Cannot load component 'gb.debug': cannot find > library file Try a make uninstall make clean make -j4 make install make -j4 allow to accellerate de compilation time by create multiple instance of the process (a so can use multiple processor capabilities) > > any tips ? > > > Thanks in advice > > > matteo at ...2357...:/usr/src/gambas2-2.19.0$ sudo gambas2 > ERROR: #27: Cannot load component 'gb.debug': cannot find > library file > > > ----- Original Message ----- > Da : Fabien Bodard > A : mailing list for gambas users > > Oggetto : Re: [Gambas-user] Problem during Gambas 2.19 > installation on Ubuntu 9.10 > Data : Mon, 11 Jan 2010 09:51:11 +0100 > >> More upto date ... and i've updated on the wiki too ... so >> gb3 can compile Too with all components. >> >> >> sudo apt-get install build-essential autoconf libbz2-dev >> libfbclient2 libmysqlclient15-dev unixodbc-dev libpq-dev >> libsqlite0-dev libsqlite3-dev libgtk2.0-dev libldap2-dev >> libcurl4-gnutls-dev libgtkglext1-dev libpcre3-dev >> libsdl-sound1.2-dev libsdl-mixer1.2-dev >> libsdl-image1.2-dev libsage-dev libxml2-dev libxslt1-dev >> libbonobo2-dev libcos4-dev libomniorb4-dev librsvg2-dev >> libpoppler-dev libpoppler-glib-dev libasound2-dev >> libesd0-dev libesd-alsa0 libdirectfb-dev libaa1-dev >> libxtst-dev libffi-dev kdelibs4-dev firebird2.1-dev >> libqt4-dev libglew1.5-dev libimlib2-dev libv4l-dev >> libsdl-ttf2.0-dev >> >> 2010/1/11 Ricardo D?az Mart?n >> > : On before gambas >> installation on ubuntu 9.10 you must to do this: > >> > sudo apt-get install build-essential autoconf libbz2-dev >> > libfbclient2 libmysqlclient15-dev unixodbc-dev libpq-dev >> > libsqlite0-dev libsqlite3-dev libgtk2.0-dev libldap2-dev >> > libcurl4-gnutls-dev libgtkglext1-dev libpcre3-dev >> > libsdl-sound1.2-dev libsdl-mixer1.2-dev >> > libsdl-image1.2-dev libsage-dev libxml2-dev libxslt1-dev >> libbonobo2-dev libcos4-dev libomniorb4-dev librsvg2-dev >> > libpoppler-dev libpoppler-glib-dev libasound2-dev >> > libesd0-dev libesd-alsa0 libdirectfb-dev libaa1-dev >> > libxtst-dev libffi-dev kdelibs4-dev firebird2.1-dev >> libqt4-dev libglew1.5-dev > >> > >> > Please, visit >> http://gambasdoc.org/help/install/ubuntu?view > >> > I hope this works for you. >> > >> > Regards, >> > >> > 2010/1/10 matteo.lisi at ...2324... >> > >> >> Yes libqt3-mt-dev is installed.... >> >> >> >> thanks for your reply ! >> >> >> >> >> >> ----- Original Message ----- >> >> Da : Fabien Bodard >> >> A : mailing list for gambas users >> >> >> >> Oggetto : Re: [Gambas-user] Problem during Gambas 2.19 >> >> installation on Ubuntu 9.10 >> >> Data : Sun, 10 Jan 2010 19:51:21 +0100 >> >> >> >> > IS libqt3-mt-dev installed ? >> >> > >> >> > >> >> > if not install it and do a reconf-all >> >> > >> >> > 2010/1/10 matteo.lisi at ...2324... >> >> > > : Ok >> >> > > >> >> > > I checked all library installed on my ubuntu and >> redid >> > > the installation from the beginning. >> >> > > >> >> > > Somethings is changed: >> >> > > >> >> > > When I launch gambas2 I have: >> >> > > >> >> > > ERROR: #27: Cannot load component 'gb.qt': cannot >> find >> > > library file >> >> > > >> >> > > The ./configure disable the gb.qte packet and the >> make / >> > > make install seems to return without >> error... >> > > >> >> > > Do you need some output to understand what I wrong >> ? >> > > >> >> > > Tnx a lot! >> >> > > >> >> > > ----- Original Message ----- >> >> > > Da : Beno??t Minisini >> >> > > A : mailing list for >> gambas users >> > > >> >> > > Oggetto : Re: [Gambas-user] Problem during Gambas >> 2.19 >> > > installation on Ubuntu 9.10 >> >> > > Data : Sun, 10 Jan 2010 14:59:51 +0100 >> >> > > >> >> > >> > Hi to All !> > I'm trying to install last >> gambas2 >> > >> version on my ubuntu 9.10> but I had some >> error:> > 1) >> > I >> launch the configuration script >> with:> > sudo >> > /configure >> --enable-net=yes >> --enable-curl=yes> >> > > --enable-smtp=yes> > >> >> > >> but at the end I receive the following report:> > >> THESE >> > >> COMPONENTS ARE DISABLED:> [..]> - >> gb.net.curl> - >> > >> gb.net.smtp> [..]> > Why this >> components are disabled >> > ?> >> Because some libraries >> or development packages are >> > not >> installed. You see >> it by reading the ./configure >> > output.> >> 2) I >> launched the:> sudo make> sudo make >> > install> > All >> >> the make is done without errors but when >> > I execute >> the:> > >> gambas2> > I receive this error:> >> > ERROR: >> #27: Cannot load >> component 'gb.qt': cannot find> >> > >> library file> Are you sure >> that you didn't get error >> >> > messages during "make >> install"?Anyway, you need to >> >> > provide the full output of >> the entire configuration, >> >> > compilation and installation >> process, otherwise >> nobody >> > will be able to help you.Regards >> ,-- >> Beno??t >> > >> >> >> > >> Minisini-------------------------------------------------- >> >> > >> --- -------------------------This SF.Net email is >> >> >> > sponsored by the Verizon Developer CommunityTake >> advantage >> > >> of Verizon's best-in-class app >> development supportA >> >> > streamlined, 14 day to market >> process makes app >> >> > distribution fast and easyJoin >> now and get one step closer >> > >> to millions of Verizon >> >> >> > customershttp://p.sf.net/sfu/verizon-dev2dev >> >> >> > >> _______________________________________________Gambas-user >> >> > >> mailing >> >> > >> listGambas-user at ...2354...://lists.sourcef >> >> > >> orge.net/lists/listinfo/gambas-user > >> > > >> >> > >> ---------------------------------------------------------- >> >> > > -------------------- This SF.Net email is sponsored >> by >> > > the Verizon Developer Community Take advantage >> of >> > > Verizon's best-in-class app development support >> A >> > streamlined, 14 day to market process makes app >> >> > > distribution fast and easy Join now and get one >> step >> > > closer to millions of Verizon customers >> >> > > http://p.sf.net/sfu/verizon-dev2dev >> >> > > _______________________________________________ >> >> > > Gambas-user mailing list >> >> > > Gambas-user at lists.sourceforge.net >> >> > >> https://lists.sourceforge.net/lists/listinfo/gambas-user > >> >> > >> > >> ---------------------------------------------------------- >> >> > -------------------- This SF.Net email is sponsored >> by the >> > Verizon Developer Community Take advantage of >> Verizon's >> > best-in-class app development support A >> streamlined, 14 >> > day to market process makes app >> distribution fast and easy >> > Join now and get one step >> closer to millions of Verizon >> > customers >> http://p.sf.net/sfu/verizon-dev2dev >> > >> _______________________________________________ >> > >> Gambas-user mailing list >> > >> Gambas-user at lists.sourceforge.net >> > >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> >> >> >> >> >> ---------------------------------------------------------- >> -------------------- >> This SF.Net email is sponsored by >> the Verizon Developer Community >> Take advantage of >> Verizon's best-in-class app development support >> A >> streamlined, 14 day to market process makes app >> distribution fast and >> easy >> >> Join now and get one step closer to millions of Verizon >> customers >> http://p.sf.net/sfu/verizon-dev2dev >> >> _______________________________________________ >> >> Gambas-user mailing list >> >> Gambas-user at lists.sourceforge.net >> >> >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > >> >> ---------------------------------------------------------- >> > -------------------- This SF.Net email is sponsored by >> > the Verizon Developer Community Take advantage of >> > Verizon's best-in-class app development support A >> streamlined, 14 day to market process makes app >> > distribution fast and easy Join now and get one step >> > closer to millions of Verizon customers >> > http://p.sf.net/sfu/verizon-dev2dev >> > _______________________________________________ >> > Gambas-user mailing list >> > Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user > >> >> ---------------------------------------------------------- >> -------------------- This SF.Net email is sponsored by the >> Verizon Developer Community Take advantage of Verizon's >> best-in-class app development support A streamlined, 14 >> day to market process makes app distribution fast and easy >> Join now and get one step closer to millions of Verizon >> customers http://p.sf.net/sfu/verizon-dev2dev >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user > > ------------------------------------------------------------------------------ > This SF.Net email is sponsored by the Verizon Developer Community > Take advantage of Verizon's best-in-class app development support > A streamlined, 14 day to market process makes app distribution fast and easy > Join now and get one step closer to millions of Verizon customers > http://p.sf.net/sfu/verizon-dev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From wdahn at ...1000... Mon Jan 11 12:11:36 2010 From: wdahn at ...1000... (Werner) Date: Mon, 11 Jan 2010 19:11:36 +0800 Subject: [Gambas-user] SOLVED - How to generate a new frame or pic box when a button is pressed In-Reply-To: <27107825.post@...1379...> References: <6324a42a1001100152u3d3ba7e4p5fba997c9c3f8fb3@...627...> <27106569.post@...1379...> <6324a42a1001110041r28597de5pfb3ad0b3898fc2a9@...627...> <27107825.post@...1379...> Message-ID: <4B4B0768.8080708@...1000...> On 11/01/10 17:36, Fiddler63 wrote: > Wicked, I like it :-) > > > > PRIVATE $MX AS Integer > PRIVATE $MY AS Integer > > PUBLIC SUB Form_MouseDown() > > $MX = Mouse.ScreenX - ME.X > $MY = Mouse.ScreenY - ME.Y > > END > > PUBLIC SUB Form_MouseMove() > > ME.Move(Mouse.ScreenX - $MX, Mouse.ScreenY - $MY) > > END > > > It's like that :) > > 2010/1/11 Fiddler63 : > >> Fab, thanks for that. >> I got the form to show fine but I'm a bit confused about the movement with >> the mouse. >> Tell me if I'm on the right track here: >> >> X,Y of the mouse is within X,Y of the object to be moved >> and while MouseDown, move object to current Mouse X,Y coordinates. >> >> Do I handle each of the events as separate sub routines ? >> >> I mainly struggle because I come from a 8-bit chip background where you >> need >> to know absolutely everything. >> >> Cheers >> Kim >> >> >> >> >> Fabien Bodard-4 wrote: >> >>> in fact you need to load a new form, set it's border to none, set it's >>> size to the picture size, set it's picture to the picture, and then >>> manage the movement with mouseDown, mouseUp and MouseMove events. >>> >>> >>> dim hForm as new Form >>> hForm.Resize(hPic.W, hPic.H) >>> hForm.Picture = hPic >>> hForm.Border = Border.None >>> >>> >>> >>> >>> 2010/1/10 k p : >>> >>>> I got a button on a form and when I click the button I need the program >>>> to >>>> load a new frame/picture. >>>> Also I would like to be able to move the new frame/pic around on the >>>> screen >>>> to suit. >>>> >>>> How do I go about the above ? >>>> >>>> Cheers >>>> >>>> kim >>>> > So what does Mouse.StartX and Mouse.StartY do then? Regards Werner From matteo.lisi at ...2324... Mon Jan 11 12:37:11 2010 From: matteo.lisi at ...2324... (matteo.lisi at ...2324...) Date: Mon, 11 Jan 2010 12:37:11 +0100 Subject: [Gambas-user] Problem during Gambas 2.19 installation on Ubuntu 9.10 Message-ID: <4b4b0d67.3e0.551b.1160745736@...2355...> Hi Fabien.. nothing is changed: ERROR: #27: Cannot load component 'gb.debug': cannot find library file Have you any tips ? ----- Original Message ----- Da : Fabien Bodard A : mailing list for gambas users Oggetto : Re: [Gambas-user] Problem during Gambas 2.19 installation on Ubuntu 9.10 Data : Mon, 11 Jan 2010 12:06:42 +0100 > 2010/1/11 matteo.lisi at ...2324... > : > > > Hi Fabien and thanks for your reply > > > > I update my Ubuntu (Before my last reply I used the > > apt-get string on the installation page) with your last > > apt-get string and something is changed: > > > > now when I launch gambas2 I obtain: > > > > matteo at ...2357...:/usr/src/gambas2-2.19.0$ gambas2 > > ERROR: #27: Cannot load component 'gb.debug': cannot > > find library file > > Try a > make uninstall > make clean > make -j4 > make install > > > > make -j4 allow to accellerate de compilation time by > create multiple instance of the process (a so can use > multiple processor capabilities) > > > > > > any tips ? > > > > > > Thanks in advice > > > > > > matteo at ...2357...:/usr/src/gambas2-2.19.0$ sudo > > gambas2 ERROR: #27: Cannot load component 'gb.debug': > > cannot find library file > > > > > > ----- Original Message ----- > > Da : Fabien Bodard > > A : mailing list for gambas users > > > > Oggetto : Re: [Gambas-user] Problem during Gambas 2.19 > > installation on Ubuntu 9.10 > > Data : Mon, 11 Jan 2010 09:51:11 +0100 > > > >> More upto date ... and i've updated on the wiki too ... > so >> gb3 can compile Too with all components. > >> > >> > >> sudo apt-get install build-essential autoconf > libbz2-dev >> libfbclient2 libmysqlclient15-dev > unixodbc-dev libpq-dev >> libsqlite0-dev libsqlite3-dev > libgtk2.0-dev libldap2-dev >> libcurl4-gnutls-dev > libgtkglext1-dev libpcre3-dev >> libsdl-sound1.2-dev > libsdl-mixer1.2-dev >> libsdl-image1.2-dev libsage-dev > libxml2-dev libxslt1-dev >> libbonobo2-dev libcos4-dev > libomniorb4-dev librsvg2-dev >> libpoppler-dev > libpoppler-glib-dev libasound2-dev >> libesd0-dev > libesd-alsa0 libdirectfb-dev libaa1-dev >> libxtst-dev > libffi-dev kdelibs4-dev firebird2.1-dev >> libqt4-dev > libglew1.5-dev libimlib2-dev libv4l-dev >> > libsdl-ttf2.0-dev >> > >> 2010/1/11 Ricardo D?az Mart?n > >> > : On before gambas > >> installation on ubuntu 9.10 you must to do this: > > >> > sudo apt-get install build-essential autoconf > libbz2-dev >> > libfbclient2 libmysqlclient15-dev > unixodbc-dev libpq-dev >> > libsqlite0-dev libsqlite3-dev > libgtk2.0-dev libldap2-dev >> > libcurl4-gnutls-dev > libgtkglext1-dev libpcre3-dev >> > libsdl-sound1.2-dev > libsdl-mixer1.2-dev >> > libsdl-image1.2-dev libsage-dev > libxml2-dev libxslt1-dev >> libbonobo2-dev libcos4-dev > libomniorb4-dev librsvg2-dev >> > libpoppler-dev > libpoppler-glib-dev libasound2-dev >> > libesd0-dev > libesd-alsa0 libdirectfb-dev libaa1-dev >> > libxtst-dev > libffi-dev kdelibs4-dev firebird2.1-dev >> libqt4-dev > libglew1.5-dev > >> > > >> > Please, visit > >> http://gambasdoc.org/help/install/ubuntu?view > > >> > I hope this works for you. > >> > > >> > Regards, > >> > > >> > 2010/1/10 matteo.lisi at ...2324... > >> > > >> >> Yes libqt3-mt-dev is installed.... > >> >> > >> >> thanks for your reply ! > >> >> > >> >> > >> >> ----- Original Message ----- > >> >> Da : Fabien Bodard > >> >> A : mailing list for gambas users > >> >> > >> >> Oggetto : Re: [Gambas-user] Problem during Gambas > 2.19 >> >> installation on Ubuntu 9.10 > >> >> Data : Sun, 10 Jan 2010 19:51:21 +0100 > >> >> > >> >> > IS libqt3-mt-dev installed ? > >> >> > > >> >> > > >> >> > if not install it and do a reconf-all > >> >> > > >> >> > 2010/1/10 matteo.lisi at ...2324... > >> >> > > : Ok > >> >> > > > >> >> > > I checked all library installed on my ubuntu and > >> redid >> > > the installation from the beginning. > >> >> > > > >> >> > > Somethings is changed: > >> >> > > > >> >> > > When I launch gambas2 I have: > >> >> > > > >> >> > > ERROR: #27: Cannot load component 'gb.qt': > cannot >> find >> > > library file > >> >> > > > >> >> > > The ./configure disable the gb.qte packet and > the >> make / >> > > make install seems to return without > >> error... >> > > > >> >> > > Do you need some output to understand what I > wrong >> ? >> > > > >> >> > > Tnx a lot! > >> >> > > > >> >> > > ----- Original Message ----- > >> >> > > Da : Beno??t Minisini > >> >> > > A : mailing list > for >> gambas users >> > > > >> >> > > Oggetto : > Re: [Gambas-user] Problem during Gambas >> 2.19 >> > > > installation on Ubuntu 9.10 >> >> > > Data : Sun, 10 Jan > 2010 14:59:51 +0100 >> >> > > > >> >> > >> > Hi to All !> > I'm trying to install last > >> gambas2 >> > >> version on my ubuntu 9.10> but I had > some >> error:> > 1) >> > I >> launch the configuration > script >> with:> > sudo >> > /configure >> > --enable-net=yes >> --enable-curl=yes> >> > > > --enable-smtp=yes> > >> >> > >> but at the end I receive > the following report:> > >> THESE >> > >> COMPONENTS ARE > DISABLED:> [..]> - >> gb.net.curl> - >> > >> gb.net.smtp> > [..]> > Why this >> components are disabled >> > ?> >> > Because some libraries >> or development packages are >> > > not >> installed. You see >> it by reading the ./configure > >> > output.> >> 2) I >> launched the:> sudo make> sudo > make >> > install> > All >> >> the make is done without > errors but when >> > I execute >> the:> > >> gambas2> > I > receive this error:> >> > ERROR: >> #27: Cannot load >> > component 'gb.qt': cannot find> >> > >> library file> Are > you sure >> that you didn't get error >> >> > messages > during "make >> install"?Anyway, you need to >> >> > > provide the full output of >> the entire configuration, >> > >> > compilation and installation >> process, otherwise >> > nobody >> > will be able to help you.Regards >> ,-- >> > Beno??t >> > >> >> >> > > >> > Minisini-------------------------------------------------- > >> >> > >> --- -------------------------This SF.Net email > is >> >> >> > sponsored by the Verizon Developer > CommunityTake >> advantage >> > >> of Verizon's > best-in-class app >> development supportA >> >> > > streamlined, 14 day to market >> process makes app >> >> > > distribution fast and easyJoin >> now and get one step > closer >> > >> to millions of Verizon >> >> >> > > customershttp://p.sf.net/sfu/verizon-dev2dev >> >> >> > > >> > _______________________________________________Gambas-user > >> >> > >> mailing >> >> > >> > listGambas-user at ...2354...://lists.sourcef > >> >> > >> orge.net/lists/listinfo/gambas-user > >> > > >> > >> > >> > ---------------------------------------------------------- > >> >> > > -------------------- This SF.Net email is > sponsored >> by >> > > the Verizon Developer Community > Take advantage >> of >> > > Verizon's best-in-class app > development support >> A >> > streamlined, 14 day to > market process makes app >> >> > > distribution fast and > easy Join now and get one >> step >> > > closer to > millions of Verizon customers >> >> > > > http://p.sf.net/sfu/verizon-dev2dev >> >> > > > _______________________________________________ >> >> > > > Gambas-user mailing list >> >> > > > Gambas-user at lists.sourceforge.net >> >> > > >> > https://lists.sourceforge.net/lists/listinfo/gambas-user > > >> >> > >> > >> > ---------------------------------------------------------- > >> >> > -------------------- This SF.Net email is > sponsored >> by the >> > Verizon Developer Community Take > advantage of >> Verizon's >> > best-in-class app > development support A >> streamlined, 14 >> > day to > market process makes app >> distribution fast and easy >> > > Join now and get one step >> closer to millions of > Verizon >> > customers >> > http://p.sf.net/sfu/verizon-dev2dev >> > >> > _______________________________________________ >> > >> > Gambas-user mailing list >> > >> > Gambas-user at lists.sourceforge.net >> > >> > https://lists.sourceforge.net/lists/listinfo/gambas-user > >> >> >> >> >> > >> > ---------------------------------------------------------- > >> -------------------- >> This SF.Net email is sponsored > by >> the Verizon Developer Community >> Take advantage of > >> Verizon's best-in-class app development support >> A > >> streamlined, 14 day to market process makes app > >> distribution fast and >> easy > >> >> Join now and get one step closer to millions of > Verizon >> customers >> > http://p.sf.net/sfu/verizon-dev2dev >> >> > _______________________________________________ >> >> > Gambas-user mailing list >> >> > Gambas-user at lists.sourceforge.net >> >> > >> > https://lists.sourceforge.net/lists/listinfo/gambas-user > >> > >> >> > ---------------------------------------------------------- > >> > -------------------- This SF.Net email is sponsored > by >> > the Verizon Developer Community Take advantage of > >> > Verizon's best-in-class app development support A > >> streamlined, 14 day to market process makes app > >> > distribution fast and easy Join now and get one step > >> > closer to millions of Verizon customers > >> > http://p.sf.net/sfu/verizon-dev2dev > >> > _______________________________________________ > >> > Gambas-user mailing list > >> > Gambas-user at lists.sourceforge.net > >> > https://lists.sourceforge.net/lists/listinfo/gambas-user > > >> >> > ---------------------------------------------------------- > >> -------------------- This SF.Net email is sponsored by > the >> Verizon Developer Community Take advantage of > Verizon's >> best-in-class app development support A > streamlined, 14 >> day to market process makes app > distribution fast and easy >> Join now and get one step > closer to millions of Verizon >> customers > http://p.sf.net/sfu/verizon-dev2dev >> > _______________________________________________ >> > Gambas-user mailing list >> > Gambas-user at lists.sourceforge.net >> > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > ---------------------------------------------------------- > > -------------------- This SF.Net email is sponsored by > > the Verizon Developer Community Take advantage of > > Verizon's best-in-class app development support A > streamlined, 14 day to market process makes app > > distribution fast and easy Join now and get one step > > closer to millions of Verizon customers > > http://p.sf.net/sfu/verizon-dev2dev > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > ---------------------------------------------------------- > -------------------- This SF.Net email is sponsored by the > Verizon Developer Community Take advantage of Verizon's > best-in-class app development support A streamlined, 14 > day to market process makes app distribution fast and easy > Join now and get one step closer to millions of Verizon > customers http://p.sf.net/sfu/verizon-dev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From Karl.Reinl at ...2345... Mon Jan 11 12:48:32 2010 From: Karl.Reinl at ...2345... (Charlie Reinl) Date: Mon, 11 Jan 2010 12:48:32 +0100 Subject: [Gambas-user] Where is "user component directory"? In-Reply-To: <27104718.post@...1379...> References: <27084461.post@...1379...> <6324a42a1001090614u6efcd65rb182bec0322f7c28@...627...> <27104718.post@...1379...> Message-ID: <1263210512.6463.1.camel@...40...> Am Sonntag, den 10.01.2010, 17:31 -0800 schrieb bbb888: > Thanks Fabien, > > I forgot that I did a little cleanup/re-org before the upgrade and moved the > projects. > > The links in ~/.local/lib/gambas2 still existed and therefore pointed to a > non-existent place. Simply deleting them and re-making the exec's fixed it > all up! > > Also, sorry for the delay in replying, I've been a tad busy. > > regards > bruce Salut, I claim that since October 2009 -- Amicalement Charlie -------------- next part -------------- An embedded message was scrubbed... From: Charlie Reinl Subject: [Gambas-devel] problems with user-components , today with a solution Date: Mon, 12 Oct 2009 19:57:52 +0200 Size: 2824 URL: -------------- next part -------------- An embedded message was scrubbed... From: Charlie Reinl Subject: Re: [Gambas-devel] two minor ++ IDE-Bugs Date: Sun, 15 Nov 2009 11:46:02 +0100 Size: 17937 URL: From gambas.fr at ...626... Mon Jan 11 13:58:20 2010 From: gambas.fr at ...626... (Fabien Bodard) Date: Mon, 11 Jan 2010 13:58:20 +0100 Subject: [Gambas-user] Where is "user component directory"? In-Reply-To: <1263210512.6463.1.camel@...40...> References: <27084461.post@...1379...> <6324a42a1001090614u6efcd65rb182bec0322f7c28@...627...> <27104718.post@...1379...> <1263210512.6463.1.camel@...40...> Message-ID: <6324a42a1001110458i52f2dd1dpb49eaf7ab5c9e37d@...627...> the management tools for users component are really poor, i know ! I think we need something in the project/component tab to manage that. 2010/1/11 Charlie Reinl : > Am Sonntag, den 10.01.2010, 17:31 -0800 schrieb bbb888: >> Thanks Fabien, >> >> I forgot that I did a little cleanup/re-org before the upgrade and moved the >> projects. >> >> The links in ~/.local/lib/gambas2 still existed and therefore pointed to a >> non-existent place. ?Simply deleting them and re-making the exec's fixed it >> all up! >> >> Also, sorry for the delay in replying, I've been a tad busy. >> >> regards >> bruce > > Salut, > > I claim that since October 2009 > > > -- > Amicalement > Charlie > > > ---------- Message transf?r? ---------- > From:?Charlie Reinl > To:?gambas at ...1... > Date:?Mon, 12 Oct 2009 19:57:52 +0200 > Subject:?[Gambas-devel] problems with user-components , today with a solution > Salut, > > I have a project which uses 4 components. > /MyProject > |__/project > ? ? ? ? ?|_switch (1 component) > ? ? ? ? ? ? ? ?|_ 2 component \ > ? ? ? ? ? ? ? ?| ? ? ? ? ? ? ? > 4 component > ? ? ? ? ? ? ? ?|_ 3 component / > > last week I set up an svn-repository and imported all dir's and files. > Then for testing matters I checked out ../trunk to > /MyProjectTEST > |__/project > ? ? ? ? ?|_switch (1 component) > ? ? ? ? ? ? ? ?|_ 2 component \ > ? ? ? ? ? ? ? ?| ? ? ? ? ? ? ? ?> 4 component > ? ? ? ? ? ? ? ?|_ 3 component / > ?svn worked like a charm, then I compiled the parts from up because of > the requires ... nothings, happens and I think the link wasn't made, the > component it self and the required where always claimed. > > After deleting in ~/.local/lib/gambas2 the concerned *.component and > *.gambas, so the component it self and the required where no more > claimed after recompilation. > > But the exported functions where not recognised . > > That where OK, after deleting also the in */.local/share/gambas2/info > the concerned *.info and *.list and recompilation. > > This all happened on gambas2, a check out of the newest IDE/Version > changed nothing. > > here is one solution : > > 'PRIVATE SUB MakeLink_OLD(sSrc AS String, sDst AS String) > ' > ' ?IF NOT Exist(sDst) THEN LINK sSrc TO sDst > ' > 'END > > PRIVATE SUB MakeLink(sSrc AS String, sDst AS String) > DIM oStat AS Object > ? IF Exist(sDst) THEN > ? ? ?oStat = Stat(sDst) > ? ? ?IF oStat.Link <> sSrc THEN > ? ? ? ? IF oStat.Type = gb.Link THEN > ? ? ? ? ? ?KILL sDst > ? ? ? ? ELSE > ? ? ? ? ? ?RETURN > ? ? ? ? END IF > ? ? ?ELSE > ? ? ? ? Message.Error("Can't create the link") > ? ? ? ? RETURN > ? ? ?END IF > ? END IF > ? LINK sSrc TO sDst > END > -- > Amicalment > Charlie > > > > ---------- Message transf?r? ---------- > From:?Charlie Reinl > To:?mailing list for gambas developers > Date:?Sun, 15 Nov 2009 11:46:02 +0100 > Subject:?Re: [Gambas-devel] two minor ++ IDE-Bugs > Am Sonntag, den 15.11.2009, 02:40 +0100 schrieb Beno?t Minisini: >> > Salut, >> > >> > two minor ++ IDE-Bugs (seen in gambas2-IDE). >> > >> > 1. in the IDE, make an Executable (Ctrl+Alt+M) which is a component. >> > ? ?Then load a "normal" project and make an Executable (Ctrl+Alt+M). >> > ? ?The component dialog is still there "Install in the user component >> > ? ?directory" >> > >> >> OK, I will fix that in the next commit. >> >> > 2. gambas2 user-components >> > >> > ? ?If your project (which is a component) moves, you have to delete >> > ? ?the 4 links concerned, >> >> I don't understand the following sentences: >> >> > ? ?because and bad MakeLink procedure in the IDE. >> > >> > 'PRIVATE SUB MakeLink_OLD(sSrc AS String, sDst AS String) >> > ' ?IF NOT Exist(sDst) THEN LINK sSrc TO sDst >> > 'END >> > ' >> > >> >> Can you explain again? > > Salut, > > the shown MakeLink out of gambas IDE does not create a link if the > link (file) exists. > > Sometimes for testing matters, I make a copy of the project. > Then the .gambas2 ?is no more the one who's pointed by the > link (which exists), but the link is not created, because the link > exists. > > Attached a test project. > -- > Amicalment > Charlie > > [OperatingSystem] > OperatingSystem=Linux > KernelRelease=2.6.24-25-generic > DistributionVendor=ubuntu > DistributionRelease="Ubuntu 8.04.3 LTS" > > [System] > CPUArchitecture=i686 > TotalRam=506932 kB > > [Gambas] > Gambas1=gbx-1.0.17 > Gambas1Path=/usr/bin/gbx > Gambas2=2.17.0 > Gambas2Path=/usr/local/bin/gbx2 > Gambas3=2.99.0 > Gambas3Path=/usr/local/bin/gbx3 > > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus on > what you do best, core application coding. Discover what's new with > Crystal Reports now. ?http://p.sf.net/sfu/bobj-july > _______________________________________________ > Gambas-devel mailing list > Gambas-devel at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-devel > > ------------------------------------------------------------------------------ > This SF.Net email is sponsored by the Verizon Developer Community > Take advantage of Verizon's best-in-class app development support > A streamlined, 14 day to market process makes app distribution fast and easy > Join now and get one step closer to millions of Verizon customers > http://p.sf.net/sfu/verizon-dev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > From gambas.fr at ...626... Mon Jan 11 13:54:32 2010 From: gambas.fr at ...626... (Fabien Bodard) Date: Mon, 11 Jan 2010 13:54:32 +0100 Subject: [Gambas-user] Problem during Gambas 2.19 installation on Ubuntu 9.10 In-Reply-To: <4b4b0d67.3e0.551b.1160745736@...2355...> References: <4b4b0d67.3e0.551b.1160745736@...2355...> Message-ID: <6324a42a1001110454m78d71942ye49597384a2ba83e@...627...> give me the output of gbi2 2010/1/11 matteo.lisi at ...2324... : > Hi Fabien.. > > nothing is changed: > > ERROR: #27: Cannot load component 'gb.debug': cannot find > library file > > Have you any tips ? > > > ----- Original Message ----- > Da : Fabien Bodard > A : mailing list for gambas users > > Oggetto : Re: [Gambas-user] Problem during Gambas 2.19 > installation on Ubuntu 9.10 > Data : Mon, 11 Jan 2010 12:06:42 +0100 > >> 2010/1/11 matteo.lisi at ...2324... >> : > >> > Hi Fabien and thanks for your reply >> > >> > I update my Ubuntu (Before my last reply I used the >> > apt-get string on the installation page) with your last >> > apt-get string and something is changed: >> > >> > now when I launch gambas2 I obtain: >> > >> > matteo at ...2357...:/usr/src/gambas2-2.19.0$ gambas2 >> > ERROR: #27: Cannot load component 'gb.debug': cannot >> > find library file >> >> Try a >> make uninstall >> make clean >> make -j4 >> make install >> >> >> >> make -j4 allow to accellerate de compilation time by >> create multiple instance of the process (a so can use >> multiple processor capabilities) >> >> >> > >> > any tips ? >> > >> > >> > Thanks in advice >> > >> > >> > matteo at ...2357...:/usr/src/gambas2-2.19.0$ sudo >> > gambas2 ERROR: #27: Cannot load component 'gb.debug': >> > cannot find library file >> > >> > >> > ----- Original Message ----- >> > Da : Fabien Bodard >> > A : mailing list for gambas users >> > >> > Oggetto : Re: [Gambas-user] Problem during Gambas 2.19 >> > installation on Ubuntu 9.10 >> > Data : Mon, 11 Jan 2010 09:51:11 +0100 >> > >> >> More upto date ... and i've updated on the wiki too ... >> so >> gb3 can compile Too with all components. >> >> >> >> >> >> sudo apt-get install build-essential autoconf >> libbz2-dev >> libfbclient2 libmysqlclient15-dev >> unixodbc-dev libpq-dev >> libsqlite0-dev libsqlite3-dev >> libgtk2.0-dev libldap2-dev >> libcurl4-gnutls-dev >> libgtkglext1-dev libpcre3-dev >> libsdl-sound1.2-dev >> libsdl-mixer1.2-dev >> libsdl-image1.2-dev libsage-dev >> libxml2-dev libxslt1-dev >> libbonobo2-dev libcos4-dev >> libomniorb4-dev librsvg2-dev >> libpoppler-dev >> libpoppler-glib-dev libasound2-dev >> libesd0-dev >> libesd-alsa0 libdirectfb-dev libaa1-dev >> libxtst-dev >> libffi-dev kdelibs4-dev firebird2.1-dev >> libqt4-dev >> libglew1.5-dev libimlib2-dev libv4l-dev >> >> libsdl-ttf2.0-dev >> >> >> 2010/1/11 Ricardo D?az Mart?n >> >> > : On before gambas >> >> installation on ubuntu 9.10 you must to do this: > >> >> > sudo apt-get install build-essential autoconf >> libbz2-dev >> > libfbclient2 libmysqlclient15-dev >> unixodbc-dev libpq-dev >> > libsqlite0-dev libsqlite3-dev >> libgtk2.0-dev libldap2-dev >> > libcurl4-gnutls-dev >> libgtkglext1-dev libpcre3-dev >> > libsdl-sound1.2-dev >> libsdl-mixer1.2-dev >> > libsdl-image1.2-dev libsage-dev >> libxml2-dev libxslt1-dev >> libbonobo2-dev libcos4-dev >> libomniorb4-dev librsvg2-dev >> > libpoppler-dev >> libpoppler-glib-dev libasound2-dev >> > libesd0-dev >> libesd-alsa0 libdirectfb-dev libaa1-dev >> > libxtst-dev >> libffi-dev kdelibs4-dev firebird2.1-dev >> libqt4-dev >> libglew1.5-dev > >> > >> >> > Please, visit >> >> http://gambasdoc.org/help/install/ubuntu?view > >> >> > I hope this works for you. >> >> > >> >> > Regards, >> >> > >> >> > 2010/1/10 matteo.lisi at ...2324... >> >> > >> >> >> Yes libqt3-mt-dev is installed.... >> >> >> >> >> >> thanks for your reply ! >> >> >> >> >> >> >> >> >> ----- Original Message ----- >> >> >> Da : Fabien Bodard >> >> >> A : mailing list for gambas users >> >> >> >> >> >> Oggetto : Re: [Gambas-user] Problem during Gambas >> 2.19 >> >> installation on Ubuntu 9.10 >> >> >> Data : Sun, 10 Jan 2010 19:51:21 +0100 >> >> >> >> >> >> > IS libqt3-mt-dev installed ? >> >> >> > >> >> >> > >> >> >> > if not install it and do a reconf-all >> >> >> > >> >> >> > 2010/1/10 matteo.lisi at ...2324... >> >> >> > > : Ok >> >> >> > > >> >> >> > > I checked all library installed on my ubuntu and >> >> redid >> > > the installation from the beginning. >> >> >> > > >> >> >> > > Somethings is changed: >> >> >> > > >> >> >> > > When I launch gambas2 I have: >> >> >> > > >> >> >> > > ERROR: #27: Cannot load component 'gb.qt': >> cannot >> find >> > > library file >> >> >> > > >> >> >> > > The ./configure disable the gb.qte packet and >> the >> make / >> > > make install seems to return without >> >> error... >> > > >> >> >> > > Do you need some output to understand what I >> wrong >> ? >> > > >> >> >> > > Tnx a lot! >> >> >> > > >> >> >> > > ----- Original Message ----- >> >> >> > > Da : Beno??t Minisini >> >> >> > > A : mailing list >> for >> gambas users >> > > >> >> >> > > Oggetto : >> Re: [Gambas-user] Problem during Gambas >> 2.19 >> > > >> installation on Ubuntu 9.10 >> >> > > Data : Sun, 10 Jan >> 2010 14:59:51 +0100 >> >> > > >> >> >> > >> > Hi to All !> > I'm trying to install last >> >> gambas2 >> > >> version on my ubuntu 9.10> but I had >> some >> error:> > 1) >> > I >> launch the configuration >> script >> with:> > sudo >> > /configure >> >> --enable-net=yes >> --enable-curl=yes> >> > > >> --enable-smtp=yes> > >> >> > >> but at the end I receive >> the following report:> > >> THESE >> > >> COMPONENTS ARE >> DISABLED:> [..]> - >> gb.net.curl> - >> > >> gb.net.smtp> >> [..]> > Why this >> components are disabled >> > ?> >> >> Because some libraries >> or development packages are >> > >> not >> installed. You see >> it by reading the ./configure >> >> > output.> >> 2) I >> launched the:> sudo make> sudo >> make >> > install> > All >> >> the make is done without >> errors but when >> > I execute >> the:> > >> gambas2> > I >> receive this error:> >> > ERROR: >> #27: Cannot load >> >> component 'gb.qt': cannot find> >> > >> library file> Are >> you sure >> that you didn't get error >> >> > messages >> during "make >> install"?Anyway, you need to >> >> > >> provide the full output of >> the entire configuration, >> >> >> > compilation and installation >> process, otherwise >> >> nobody >> > will be able to help you.Regards >> ,-- >> >> Beno??t >> > >> >> >> > >> >> >> Minisini-------------------------------------------------- >> >> >> > >> --- -------------------------This SF.Net email >> is >> >> >> > sponsored by the Verizon Developer >> CommunityTake >> advantage >> > >> of Verizon's >> best-in-class app >> development supportA >> >> > >> streamlined, 14 day to market >> process makes app >> >> > >> distribution fast and easyJoin >> now and get one step >> closer >> > >> to millions of Verizon >> >> >> > >> customershttp://p.sf.net/sfu/verizon-dev2dev >> >> >> > >> >> >> _______________________________________________Gambas-user >> >> >> > >> mailing >> >> > >> >> listGambas-user at ...2354...://lists.sourcef >> >> >> > >> orge.net/lists/listinfo/gambas-user > >> > > >> >> >> > >> >> ---------------------------------------------------------- >> >> >> > > -------------------- This SF.Net email is >> sponsored >> by >> > > the Verizon Developer Community >> Take advantage >> of >> > > Verizon's best-in-class app >> development support >> A >> > streamlined, 14 day to >> market process makes app >> >> > > distribution fast and >> easy Join now and get one >> step >> > > closer to >> millions of Verizon customers >> >> > > >> http://p.sf.net/sfu/verizon-dev2dev >> >> > > >> _______________________________________________ >> >> > > >> Gambas-user mailing list >> >> > > >> Gambas-user at lists.sourceforge.net >> >> > >> >> >> https://lists.sourceforge.net/lists/listinfo/gambas-user > >> >> >> > >> > >> >> ---------------------------------------------------------- >> >> >> > -------------------- This SF.Net email is >> sponsored >> by the >> > Verizon Developer Community Take >> advantage of >> Verizon's >> > best-in-class app >> development support A >> streamlined, 14 >> > day to >> market process makes app >> distribution fast and easy >> >> > Join now and get one step >> closer to millions of >> Verizon >> > customers >> >> http://p.sf.net/sfu/verizon-dev2dev >> > >> >> _______________________________________________ >> > >> >> Gambas-user mailing list >> > >> >> Gambas-user at lists.sourceforge.net >> > >> >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> >> >> >> >> >> >> >> >> ---------------------------------------------------------- >> >> -------------------- >> This SF.Net email is sponsored >> by >> the Verizon Developer Community >> Take advantage of >> >> Verizon's best-in-class app development support >> A >> >> streamlined, 14 day to market process makes app >> >> distribution fast and >> easy >> >> >> Join now and get one step closer to millions of >> Verizon >> customers >> >> http://p.sf.net/sfu/verizon-dev2dev >> >> >> _______________________________________________ >> >> >> Gambas-user mailing list >> >> >> Gambas-user at lists.sourceforge.net >> >> >> >> >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> >> > >> >> >> ---------------------------------------------------------- >> >> > -------------------- This SF.Net email is sponsored >> by >> > the Verizon Developer Community Take advantage of >> >> > Verizon's best-in-class app development support A >> >> streamlined, 14 day to market process makes app >> >> > distribution fast and easy Join now and get one step >> >> > closer to millions of Verizon customers >> >> > http://p.sf.net/sfu/verizon-dev2dev >> >> > _______________________________________________ >> >> > Gambas-user mailing list >> >> > Gambas-user at lists.sourceforge.net >> >> >> https://lists.sourceforge.net/lists/listinfo/gambas-user > >> >> >> >> ---------------------------------------------------------- >> >> -------------------- This SF.Net email is sponsored by >> the >> Verizon Developer Community Take advantage of >> Verizon's >> best-in-class app development support A >> streamlined, 14 >> day to market process makes app >> distribution fast and easy >> Join now and get one step >> closer to millions of Verizon >> customers >> http://p.sf.net/sfu/verizon-dev2dev >> >> _______________________________________________ >> >> Gambas-user mailing list >> >> Gambas-user at lists.sourceforge.net >> >> https://lists.sourceforge.net/lists/listinfo/gambas-user > >> > >> ---------------------------------------------------------- >> > -------------------- This SF.Net email is sponsored by >> > the Verizon Developer Community Take advantage of >> > Verizon's best-in-class app development support A >> streamlined, 14 day to market process makes app >> > distribution fast and easy Join now and get one step >> > closer to millions of Verizon customers >> > http://p.sf.net/sfu/verizon-dev2dev >> > _______________________________________________ >> > Gambas-user mailing list >> > Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user > >> >> ---------------------------------------------------------- >> -------------------- This SF.Net email is sponsored by the >> Verizon Developer Community Take advantage of Verizon's >> best-in-class app development support A streamlined, 14 >> day to market process makes app distribution fast and easy >> Join now and get one step closer to millions of Verizon >> customers http://p.sf.net/sfu/verizon-dev2dev >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user > > ------------------------------------------------------------------------------ > This SF.Net email is sponsored by the Verizon Developer Community > Take advantage of Verizon's best-in-class app development support > A streamlined, 14 day to market process makes app distribution fast and easy > Join now and get one step closer to millions of Verizon customers > http://p.sf.net/sfu/verizon-dev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From matteo.lisi at ...2324... Mon Jan 11 15:24:08 2010 From: matteo.lisi at ...2324... (matteo.lisi at ...2324...) Date: Mon, 11 Jan 2010 15:24:08 +0100 Subject: [Gambas-user] Problem during Gambas 2.19 installation on Ubuntu 9.10 Message-ID: <4b4b3488.3ac.2ae1.994155013@...2359...> this is my gbi2 output: matteo at ...2357...:/usr/src/gambas2-2.19.0$ sudo gbi2 gb.qt.ext gb.db.form gb.gtk gbi2: warning: component gb.draw not found gb.qt gbi2: warning: component gb.draw not found gb.xml.xslt gb.xml gb.opengl gb.desktop gb.qt.kde gb.xml.rpc gb.compress gb.pdf gb.report gb.gui gbi2: warning: component gb.draw not found gb.sdl gb.pcre gb.gtk.ext gb.vb gb.net.curl gb.form.mdi gb.form.dialog gb.chart gb.form gb.v4l gb.info gb.qt.kde.html gb.settings gb.sdl.sound gb.image gb.qt.opengl gb.web gb.db gb.crypt thanks ----- Original Message ----- Da : Fabien Bodard A : mailing list for gambas users Oggetto : Re: [Gambas-user] Problem during Gambas 2.19 installation on Ubuntu 9.10 Data : Mon, 11 Jan 2010 13:54:32 +0100 > give me the output of gbi2 > > > > > > 2010/1/11 matteo.lisi at ...2324... > > : Hi Fabien.. > > > > nothing is changed: > > > > ERROR: #27: Cannot load component 'gb.debug': cannot > > find library file > > > > Have you any tips ? > > > > > > ----- Original Message ----- > > Da : Fabien Bodard > > A : mailing list for gambas users > > > > Oggetto : Re: [Gambas-user] Problem during Gambas 2.19 > > installation on Ubuntu 9.10 > > Data : Mon, 11 Jan 2010 12:06:42 +0100 > > > >> 2010/1/11 matteo.lisi at ...2324... > >> : > > >> > Hi Fabien and thanks for your reply > >> > > >> > I update my Ubuntu (Before my last reply I used the > >> > apt-get string on the installation page) with your > last >> > apt-get string and something is changed: > >> > > >> > now when I launch gambas2 I obtain: > >> > > >> > matteo at ...2357...:/usr/src/gambas2-2.19.0$ gambas2 > >> > ERROR: #27: Cannot load component 'gb.debug': cannot > >> > find library file > >> > >> Try a > >> make uninstall > >> make clean > >> make -j4 > >> make install > >> > >> > >> > >> make -j4 allow to accellerate de compilation time by > >> create multiple instance of the process (a so can use > >> multiple processor capabilities) > >> > >> > >> > > >> > any tips ? > >> > > >> > > >> > Thanks in advice > >> > > >> > > >> > matteo at ...2357...:/usr/src/gambas2-2.19.0$ sudo > >> > gambas2 ERROR: #27: Cannot load component 'gb.debug': > >> > cannot find library file > >> > > >> > > >> > ----- Original Message ----- > >> > Da : Fabien Bodard > >> > A : mailing list for gambas users > >> > > >> > Oggetto : Re: [Gambas-user] Problem during Gambas > 2.19 >> > installation on Ubuntu 9.10 > >> > Data : Mon, 11 Jan 2010 09:51:11 +0100 > >> > > >> >> More upto date ... and i've updated on the wiki too > .. >> so >> gb3 can compile Too with all components. > >> >> > >> >> > >> >> sudo apt-get install build-essential autoconf > >> libbz2-dev >> libfbclient2 libmysqlclient15-dev > >> unixodbc-dev libpq-dev >> libsqlite0-dev libsqlite3-dev > >> libgtk2.0-dev libldap2-dev >> libcurl4-gnutls-dev > >> libgtkglext1-dev libpcre3-dev >> libsdl-sound1.2-dev > >> libsdl-mixer1.2-dev >> libsdl-image1.2-dev libsage-dev > >> libxml2-dev libxslt1-dev >> libbonobo2-dev libcos4-dev > >> libomniorb4-dev librsvg2-dev >> libpoppler-dev > >> libpoppler-glib-dev libasound2-dev >> libesd0-dev > >> libesd-alsa0 libdirectfb-dev libaa1-dev >> libxtst-dev > >> libffi-dev kdelibs4-dev firebird2.1-dev >> libqt4-dev > >> libglew1.5-dev libimlib2-dev libv4l-dev >> > >> libsdl-ttf2.0-dev >> > >> >> 2010/1/11 Ricardo D?az Mart?n > >> >> > : On before gambas > >> >> installation on ubuntu 9.10 you must to do this: > > >> >> > sudo apt-get install build-essential autoconf > >> libbz2-dev >> > libfbclient2 libmysqlclient15-dev > >> unixodbc-dev libpq-dev >> > libsqlite0-dev > libsqlite3-dev >> libgtk2.0-dev libldap2-dev >> > > libcurl4-gnutls-dev >> libgtkglext1-dev libpcre3-dev >> > > libsdl-sound1.2-dev >> libsdl-mixer1.2-dev >> > > libsdl-image1.2-dev libsage-dev >> libxml2-dev > libxslt1-dev >> libbonobo2-dev libcos4-dev >> > libomniorb4-dev librsvg2-dev >> > libpoppler-dev >> > libpoppler-glib-dev libasound2-dev >> > libesd0-dev >> > libesd-alsa0 libdirectfb-dev libaa1-dev >> > libxtst-dev > >> libffi-dev kdelibs4-dev firebird2.1-dev >> libqt4-dev > >> libglew1.5-dev > >> > >> >> > Please, visit > >> >> http://gambasdoc.org/help/install/ubuntu?view > > >> >> > I hope this works for you. > >> >> > > >> >> > Regards, > >> >> > > >> >> > 2010/1/10 matteo.lisi at ...2324... > >> >> > > >> >> >> Yes libqt3-mt-dev is installed.... > >> >> >> > >> >> >> thanks for your reply ! > >> >> >> > >> >> >> > >> >> >> ----- Original Message ----- > >> >> >> Da : Fabien Bodard > >> >> >> A : mailing list for gambas users > >> >> >> > >> >> >> Oggetto : Re: [Gambas-user] Problem during Gambas > >> 2.19 >> >> installation on Ubuntu 9.10 > >> >> >> Data : Sun, 10 Jan 2010 19:51:21 +0100 > >> >> >> > >> >> >> > IS libqt3-mt-dev installed ? > >> >> >> > > >> >> >> > > >> >> >> > if not install it and do a reconf-all > >> >> >> > > >> >> >> > 2010/1/10 matteo.lisi at ...2324... > >> >> >> > > : Ok > >> >> >> > > > >> >> >> > > I checked all library installed on my ubuntu > and >> >> redid >> > > the installation from the > beginning. >> >> >> > > > >> >> >> > > Somethings is changed: > >> >> >> > > > >> >> >> > > When I launch gambas2 I have: > >> >> >> > > > >> >> >> > > ERROR: #27: Cannot load component 'gb.qt': > >> cannot >> find >> > > library file > >> >> >> > > > >> >> >> > > The ./configure disable the gb.qte packet and > >> the >> make / >> > > make install seems to return > without >> >> error... >> > > > >> >> >> > > Do you need some output to understand what I > >> wrong >> ? >> > > > >> >> >> > > Tnx a lot! > >> >> >> > > > >> >> >> > > ----- Original Message ----- > >> >> >> > > Da : Beno??t Minisini > >> >> >> > > A : mailing > list >> for >> gambas users >> > > > >> >> >> > > Oggetto : > >> Re: [Gambas-user] Problem during Gambas >> 2.19 >> > > > >> installation on Ubuntu 9.10 >> >> > > Data : Sun, 10 > Jan >> 2010 14:59:51 +0100 >> >> > > > >> >> >> > >> > Hi to All !> > I'm trying to install last > >> >> gambas2 >> > >> version on my ubuntu 9.10> but I had > >> some >> error:> > 1) >> > I >> launch the configuration > >> script >> with:> > sudo >> > /configure >> > >> --enable-net=yes >> --enable-curl=yes> >> > > > >> --enable-smtp=yes> > >> >> > >> but at the end I > receive >> the following report:> > >> THESE >> > >> > COMPONENTS ARE >> DISABLED:> [..]> - >> gb.net.curl> - >> > > >> gb.net.smtp> >> [..]> > Why this >> components are > disabled >> > ?> >> >> Because some libraries >> or > development packages are >> > >> not >> installed. You see > >> it by reading the ./configure >> >> > output.> >> 2) I > >> launched the:> sudo make> sudo >> make >> > install> > > All >> >> the make is done without >> errors but when >> > > I execute >> the:> > >> gambas2> > I >> receive this > error:> >> > ERROR: >> #27: Cannot load >> >> component > 'gb.qt': cannot find> >> > >> library file> Are >> you > sure >> that you didn't get error >> >> > messages >> > during "make >> install"?Anyway, you need to >> >> > >> > provide the full output of >> the entire configuration, >> > >> >> > compilation and installation >> process, otherwise > >> >> nobody >> > will be able to help you.Regards >> ,-- > >> >> Beno??t >> > >> >> >> > > >> >> > >> > Minisini-------------------------------------------------- > >> >> >> > >> --- -------------------------This SF.Net > email >> is >> >> >> > sponsored by the Verizon Developer > >> CommunityTake >> advantage >> > >> of Verizon's > >> best-in-class app >> development supportA >> >> > > >> streamlined, 14 day to market >> process makes app >> > >> > >> distribution fast and easyJoin >> now and get one > step >> closer >> > >> to millions of Verizon >> >> >> > > >> customershttp://p.sf.net/sfu/verizon-dev2dev >> >> >> > > >> >> > >> > _______________________________________________Gambas-user > >> >> >> > >> mailing >> >> > >> >> > listGambas-user at ...2354...://lists.sourcef > >> >> >> > >> orge.net/lists/listinfo/gambas-user > >> > > > >> >> >> > >> > >> > ---------------------------------------------------------- > >> >> >> > > -------------------- This SF.Net email is >> > sponsored >> by >> > > the Verizon Developer Community >> > Take advantage >> of >> > > Verizon's best-in-class app >> > development support >> A >> > streamlined, 14 day to >> > market process makes app >> >> > > distribution fast and > >> easy Join now and get one >> step >> > > closer to >> > millions of Verizon customers >> >> > > >> > http://p.sf.net/sfu/verizon-dev2dev >> >> > > >> > _______________________________________________ >> >> > > > >> Gambas-user mailing list >> >> > > >> > Gambas-user at lists.sourceforge.net >> >> > >> >> > >> > https://lists.sourceforge.net/lists/listinfo/gambas-user > > >> >> >> > >> > >> >> > ---------------------------------------------------------- > >> >> >> > -------------------- This SF.Net email is >> > sponsored >> by the >> > Verizon Developer Community Take > >> advantage of >> Verizon's >> > best-in-class app >> > development support A >> streamlined, 14 >> > day to >> > market process makes app >> distribution fast and easy >> > >> > Join now and get one step >> closer to millions of >> > Verizon >> > customers >> >> > http://p.sf.net/sfu/verizon-dev2dev >> > >> >> > _______________________________________________ >> > >> >> > Gambas-user mailing list >> > >> >> > Gambas-user at lists.sourceforge.net >> > >> >> > https://lists.sourceforge.net/lists/listinfo/gambas-user > >> >> >> >> >> >> >> >> > >> > ---------------------------------------------------------- > >> >> -------------------- >> This SF.Net email is > sponsored >> by >> the Verizon Developer Community >> Take > advantage of >> >> Verizon's best-in-class app development > support >> A >> >> streamlined, 14 day to market process > makes app >> >> distribution fast and >> easy > >> >> >> Join now and get one step closer to millions of > >> Verizon >> customers >> > >> http://p.sf.net/sfu/verizon-dev2dev >> >> > >> _______________________________________________ >> >> > >> Gambas-user mailing list >> >> > >> Gambas-user at lists.sourceforge.net >> >> > >> >> > >> > https://lists.sourceforge.net/lists/listinfo/gambas-user > >> >> > >> >> >> > ---------------------------------------------------------- > >> >> > -------------------- This SF.Net email is > sponsored >> by >> > the Verizon Developer Community Take > advantage of >> >> > Verizon's best-in-class app > development support A >> >> streamlined, 14 day to market > process makes app >> >> > distribution fast and easy Join > now and get one step >> >> > closer to millions of Verizon > customers >> >> > http://p.sf.net/sfu/verizon-dev2dev > >> >> > _______________________________________________ > >> >> > Gambas-user mailing list > >> >> > Gambas-user at lists.sourceforge.net > >> >> > >> > https://lists.sourceforge.net/lists/listinfo/gambas-user > > >> >> >> >> > ---------------------------------------------------------- > >> >> -------------------- This SF.Net email is sponsored > by >> the >> Verizon Developer Community Take advantage of > >> Verizon's >> best-in-class app development support A > >> streamlined, 14 >> day to market process makes app > >> distribution fast and easy >> Join now and get one step > >> closer to millions of Verizon >> customers > >> http://p.sf.net/sfu/verizon-dev2dev >> > >> _______________________________________________ >> > >> Gambas-user mailing list >> > >> Gambas-user at lists.sourceforge.net >> > >> > https://lists.sourceforge.net/lists/listinfo/gambas-user > > >> > >> > ---------------------------------------------------------- > >> > -------------------- This SF.Net email is sponsored > by >> > the Verizon Developer Community Take advantage of > >> > Verizon's best-in-class app development support A > >> streamlined, 14 day to market process makes app > >> > distribution fast and easy Join now and get one step > >> > closer to millions of Verizon customers > >> > http://p.sf.net/sfu/verizon-dev2dev > >> > _______________________________________________ > >> > Gambas-user mailing list > >> > Gambas-user at lists.sourceforge.net > >> > https://lists.sourceforge.net/lists/listinfo/gambas-user > > >> >> > ---------------------------------------------------------- > >> -------------------- This SF.Net email is sponsored by > the >> Verizon Developer Community Take advantage of > Verizon's >> best-in-class app development support A > streamlined, 14 >> day to market process makes app > distribution fast and easy >> Join now and get one step > closer to millions of Verizon >> customers > http://p.sf.net/sfu/verizon-dev2dev >> > _______________________________________________ >> > Gambas-user mailing list >> > Gambas-user at lists.sourceforge.net >> > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > ---------------------------------------------------------- > > -------------------- This SF.Net email is sponsored by > > the Verizon Developer Community Take advantage of > > Verizon's best-in-class app development support A > streamlined, 14 day to market process makes app > > distribution fast and easy Join now and get one step > > closer to millions of Verizon customers > > http://p.sf.net/sfu/verizon-dev2dev > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > ---------------------------------------------------------- > -------------------- This SF.Net email is sponsored by the > Verizon Developer Community Take advantage of Verizon's > best-in-class app development support A streamlined, 14 > day to market process makes app distribution fast and easy > Join now and get one step closer to millions of Verizon > customers http://p.sf.net/sfu/verizon-dev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From gambas.fr at ...626... Mon Jan 11 21:10:25 2010 From: gambas.fr at ...626... (Fabien Bodard) Date: Mon, 11 Jan 2010 21:10:25 +0100 Subject: [Gambas-user] Problem during Gambas 2.19 installation on Ubuntu 9.10 In-Reply-To: <4b4b3488.3ac.2ae1.994155013@...2359...> References: <4b4b3488.3ac.2ae1.994155013@...2359...> Message-ID: <6324a42a1001111210k7a2456ecp2789cc262252176d@...627...> ok you try that : cd /usr/src/gambas2-2.19.0/main sudo make uninstall make clean ./reconf ./configure -C make sudo make install gbi3 2010/1/11 matteo.lisi at ...2324... : > this is my gbi2 output: > > matteo at ...2357...:/usr/src/gambas2-2.19.0$ sudo gbi2 > gb.qt.ext > gb.db.form > gb.gtk > gbi2: warning: component gb.draw not found > gb.qt > gbi2: warning: component gb.draw not found > gb.xml.xslt > gb.xml > gb.opengl > gb.desktop > gb.qt.kde > gb.xml.rpc > gb.compress > gb.pdf > gb.report > gb.gui > gbi2: warning: component gb.draw not found > gb.sdl > gb.pcre > gb.gtk.ext > gb.vb > gb.net.curl > gb.form.mdi > gb.form.dialog > gb.chart > gb.form > gb.v4l > gb.info > gb.qt.kde.html > gb.settings > gb.sdl.sound > gb.image > gb.qt.opengl > gb.web > gb.db > gb.crypt > > thanks > > > > > ----- Original Message ----- > Da : Fabien Bodard > A : mailing list for gambas users > > Oggetto : Re: [Gambas-user] Problem during Gambas 2.19 > installation on Ubuntu 9.10 > Data : Mon, 11 Jan 2010 13:54:32 +0100 > >> give me the output of gbi2 >> >> >> >> >> >> 2010/1/11 matteo.lisi at ...2324... >> > : Hi Fabien.. >> > >> > nothing is changed: >> > >> > ERROR: #27: Cannot load component 'gb.debug': cannot >> > find library file >> > >> > Have you any tips ? >> > >> > >> > ----- Original Message ----- >> > Da : Fabien Bodard >> > A : mailing list for gambas users >> > >> > Oggetto : Re: [Gambas-user] Problem during Gambas 2.19 >> > installation on Ubuntu 9.10 >> > Data : Mon, 11 Jan 2010 12:06:42 +0100 >> > >> >> 2010/1/11 matteo.lisi at ...2324... >> >> : > >> >> > Hi Fabien and thanks for your reply >> >> > >> >> > I update my Ubuntu (Before my last reply I used the >> >> > apt-get string on the installation page) with your >> last >> > apt-get string and something is changed: >> >> > >> >> > now when I launch gambas2 I obtain: >> >> > >> >> > matteo at ...2357...:/usr/src/gambas2-2.19.0$ gambas2 >> >> > ERROR: #27: Cannot load component 'gb.debug': cannot >> >> > find library file >> >> >> >> Try a >> >> make uninstall >> >> make clean >> >> make -j4 >> >> make install >> >> >> >> >> >> >> >> make -j4 allow to accellerate de compilation time by >> >> create multiple instance of the process (a so can use >> >> multiple processor capabilities) >> >> >> >> >> >> > >> >> > any tips ? >> >> > >> >> > >> >> > Thanks in advice >> >> > >> >> > >> >> > matteo at ...2357...:/usr/src/gambas2-2.19.0$ sudo >> >> > gambas2 ERROR: #27: Cannot load component 'gb.debug': >> >> > cannot find library file >> >> > >> >> > >> >> > ----- Original Message ----- >> >> > Da : Fabien Bodard >> >> > A : mailing list for gambas users >> >> > >> >> > Oggetto : Re: [Gambas-user] Problem during Gambas >> 2.19 >> > installation on Ubuntu 9.10 >> >> > Data : Mon, 11 Jan 2010 09:51:11 +0100 >> >> > >> >> >> More upto date ... and i've updated on the wiki too >> .. >> so >> gb3 can compile Too with all components. >> >> >> >> >> >> >> >> >> sudo apt-get install build-essential autoconf >> >> libbz2-dev >> libfbclient2 libmysqlclient15-dev >> >> unixodbc-dev libpq-dev >> libsqlite0-dev libsqlite3-dev >> >> libgtk2.0-dev libldap2-dev >> libcurl4-gnutls-dev >> >> libgtkglext1-dev libpcre3-dev >> libsdl-sound1.2-dev >> >> libsdl-mixer1.2-dev >> libsdl-image1.2-dev libsage-dev >> >> libxml2-dev libxslt1-dev >> libbonobo2-dev libcos4-dev >> >> libomniorb4-dev librsvg2-dev >> libpoppler-dev >> >> libpoppler-glib-dev libasound2-dev >> libesd0-dev >> >> libesd-alsa0 libdirectfb-dev libaa1-dev >> libxtst-dev >> >> libffi-dev kdelibs4-dev firebird2.1-dev >> libqt4-dev >> >> libglew1.5-dev libimlib2-dev libv4l-dev >> >> >> libsdl-ttf2.0-dev >> >> >> >> 2010/1/11 Ricardo D?az Mart?n >> >> >> > : On before gambas >> >> >> installation on ubuntu 9.10 you must to do this: > >> >> >> > sudo apt-get install build-essential autoconf >> >> libbz2-dev >> > libfbclient2 libmysqlclient15-dev >> >> unixodbc-dev libpq-dev >> > libsqlite0-dev >> libsqlite3-dev >> libgtk2.0-dev libldap2-dev >> > >> libcurl4-gnutls-dev >> libgtkglext1-dev libpcre3-dev >> > >> libsdl-sound1.2-dev >> libsdl-mixer1.2-dev >> > >> libsdl-image1.2-dev libsage-dev >> libxml2-dev >> libxslt1-dev >> libbonobo2-dev libcos4-dev >> >> libomniorb4-dev librsvg2-dev >> > libpoppler-dev >> >> libpoppler-glib-dev libasound2-dev >> > libesd0-dev >> >> libesd-alsa0 libdirectfb-dev libaa1-dev >> > libxtst-dev >> >> libffi-dev kdelibs4-dev firebird2.1-dev >> libqt4-dev >> >> libglew1.5-dev > >> > >> >> > Please, visit >> >> >> http://gambasdoc.org/help/install/ubuntu?view > >> >> >> > I hope this works for you. >> >> >> > >> >> >> > Regards, >> >> >> > >> >> >> > 2010/1/10 matteo.lisi at ...2324... >> >> >> > >> >> >> >> Yes libqt3-mt-dev is installed.... >> >> >> >> >> >> >> >> thanks for your reply ! >> >> >> >> >> >> >> >> >> >> >> >> ----- Original Message ----- >> >> >> >> Da : Fabien Bodard >> >> >> >> A : mailing list for gambas users >> >> >> >> >> >> >> >> Oggetto : Re: [Gambas-user] Problem during Gambas >> >> 2.19 >> >> installation on Ubuntu 9.10 >> >> >> >> Data : Sun, 10 Jan 2010 19:51:21 +0100 >> >> >> >> >> >> >> >> > IS libqt3-mt-dev installed ? >> >> >> >> > >> >> >> >> > >> >> >> >> > if not install it and do a reconf-all >> >> >> >> > >> >> >> >> > 2010/1/10 matteo.lisi at ...2324... >> >> >> >> > > : Ok >> >> >> >> > > >> >> >> >> > > I checked all library installed on my ubuntu >> and >> >> redid >> > > the installation from the >> beginning. >> >> >> > > >> >> >> >> > > Somethings is changed: >> >> >> >> > > >> >> >> >> > > When I launch gambas2 I have: >> >> >> >> > > >> >> >> >> > > ERROR: #27: Cannot load component 'gb.qt': >> >> cannot >> find >> > > library file >> >> >> >> > > >> >> >> >> > > The ./configure disable the gb.qte packet and >> >> the >> make / >> > > make install seems to return >> without >> >> error... >> > > >> >> >> >> > > Do you need some output to understand what I >> >> wrong >> ? >> > > >> >> >> >> > > Tnx a lot! >> >> >> >> > > >> >> >> >> > > ----- Original Message ----- >> >> >> >> > > Da : Beno??t Minisini >> >> >> >> > > A : mailing >> list >> for >> gambas users >> > > >> >> >> >> > > Oggetto : >> >> Re: [Gambas-user] Problem during Gambas >> 2.19 >> > > >> >> installation on Ubuntu 9.10 >> >> > > Data : Sun, 10 >> Jan >> 2010 14:59:51 +0100 >> >> > > >> >> >> >> > >> > Hi to All !> > I'm trying to install last >> >> >> gambas2 >> > >> version on my ubuntu 9.10> but I had >> >> some >> error:> > 1) >> > I >> launch the configuration >> >> script >> with:> > sudo >> > /configure >> >> >> --enable-net=yes >> --enable-curl=yes> >> > > >> >> --enable-smtp=yes> > >> >> > >> but at the end I >> receive >> the following report:> > >> THESE >> > >> >> COMPONENTS ARE >> DISABLED:> [..]> - >> gb.net.curl> - >> >> > >> gb.net.smtp> >> [..]> > Why this >> components are >> disabled >> > ?> >> >> Because some libraries >> or >> development packages are >> > >> not >> installed. You see >> >> it by reading the ./configure >> >> > output.> >> 2) I >> >> launched the:> sudo make> sudo >> make >> > install> > >> All >> >> the make is done without >> errors but when >> > >> I execute >> the:> > >> gambas2> > I >> receive this >> error:> >> > ERROR: >> #27: Cannot load >> >> component >> 'gb.qt': cannot find> >> > >> library file> Are >> you >> sure >> that you didn't get error >> >> > messages >> >> during "make >> install"?Anyway, you need to >> >> > >> >> provide the full output of >> the entire configuration, >> >> >> >> > compilation and installation >> process, otherwise >> >> >> nobody >> > will be able to help you.Regards >> ,-- >> >> >> Beno??t >> > >> >> >> > >> >> >> >> >> >> Minisini-------------------------------------------------- >> >> >> >> > >> --- -------------------------This SF.Net >> email >> is >> >> >> > sponsored by the Verizon Developer >> >> CommunityTake >> advantage >> > >> of Verizon's >> >> best-in-class app >> development supportA >> >> > >> >> streamlined, 14 day to market >> process makes app >> >> >> > >> distribution fast and easyJoin >> now and get one >> step >> closer >> > >> to millions of Verizon >> >> >> > >> >> customershttp://p.sf.net/sfu/verizon-dev2dev >> >> >> > >> >> >> >> >> >> _______________________________________________Gambas-user >> >> >> >> > >> mailing >> >> > >> >> >> listGambas-user at ...2354...://lists.sourcef >> >> >> >> > >> orge.net/lists/listinfo/gambas-user > >> > > >> >> >> >> > >> >> >> >> ---------------------------------------------------------- >> >> >> >> > > -------------------- This SF.Net email is >> >> sponsored >> by >> > > the Verizon Developer Community >> >> Take advantage >> of >> > > Verizon's best-in-class app >> >> development support >> A >> > streamlined, 14 day to >> >> market process makes app >> >> > > distribution fast and >> >> easy Join now and get one >> step >> > > closer to >> >> millions of Verizon customers >> >> > > >> >> http://p.sf.net/sfu/verizon-dev2dev >> >> > > >> >> _______________________________________________ >> >> > > >> >> Gambas-user mailing list >> >> > > >> >> Gambas-user at lists.sourceforge.net >> >> > >> >> >> >> >> https://lists.sourceforge.net/lists/listinfo/gambas-user > >> >> >> >> > >> > >> >> >> ---------------------------------------------------------- >> >> >> >> > -------------------- This SF.Net email is >> >> sponsored >> by the >> > Verizon Developer Community Take >> >> advantage of >> Verizon's >> > best-in-class app >> >> development support A >> streamlined, 14 >> > day to >> >> market process makes app >> distribution fast and easy >> >> >> > Join now and get one step >> closer to millions of >> >> Verizon >> > customers >> >> >> http://p.sf.net/sfu/verizon-dev2dev >> > >> >> >> _______________________________________________ >> > >> >> >> Gambas-user mailing list >> > >> >> >> Gambas-user at lists.sourceforge.net >> > >> >> >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> >> >> >> >> >> >> >> >> >> >> >> ---------------------------------------------------------- >> >> >> -------------------- >> This SF.Net email is >> sponsored >> by >> the Verizon Developer Community >> Take >> advantage of >> >> Verizon's best-in-class app development >> support >> A >> >> streamlined, 14 day to market process >> makes app >> >> distribution fast and >> easy >> >> >> >> Join now and get one step closer to millions of >> >> Verizon >> customers >> >> >> http://p.sf.net/sfu/verizon-dev2dev >> >> >> >> _______________________________________________ >> >> >> >> Gambas-user mailing list >> >> >> >> Gambas-user at lists.sourceforge.net >> >> >> >> >> >> >> >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> >> >> > >> >> >> >> ---------------------------------------------------------- >> >> >> > -------------------- This SF.Net email is >> sponsored >> by >> > the Verizon Developer Community Take >> advantage of >> >> > Verizon's best-in-class app >> development support A >> >> streamlined, 14 day to market >> process makes app >> >> > distribution fast and easy Join >> now and get one step >> >> > closer to millions of Verizon >> customers >> >> > http://p.sf.net/sfu/verizon-dev2dev >> >> >> > _______________________________________________ >> >> >> > Gambas-user mailing list >> >> >> > Gambas-user at lists.sourceforge.net >> >> >> >> >> >> https://lists.sourceforge.net/lists/listinfo/gambas-user > >> >> >> >> >> >> ---------------------------------------------------------- >> >> >> -------------------- This SF.Net email is sponsored >> by >> the >> Verizon Developer Community Take advantage of >> >> Verizon's >> best-in-class app development support A >> >> streamlined, 14 >> day to market process makes app >> >> distribution fast and easy >> Join now and get one step >> >> closer to millions of Verizon >> customers >> >> http://p.sf.net/sfu/verizon-dev2dev >> >> >> _______________________________________________ >> >> >> Gambas-user mailing list >> >> >> Gambas-user at lists.sourceforge.net >> >> >> >> https://lists.sourceforge.net/lists/listinfo/gambas-user > >> >> > >> >> ---------------------------------------------------------- >> >> > -------------------- This SF.Net email is sponsored >> by >> > the Verizon Developer Community Take advantage of >> >> > Verizon's best-in-class app development support A >> >> streamlined, 14 day to market process makes app >> >> > distribution fast and easy Join now and get one step >> >> > closer to millions of Verizon customers >> >> > http://p.sf.net/sfu/verizon-dev2dev >> >> > _______________________________________________ >> >> > Gambas-user mailing list >> >> > Gambas-user at lists.sourceforge.net >> >> >> https://lists.sourceforge.net/lists/listinfo/gambas-user > >> >> >> >> ---------------------------------------------------------- >> >> -------------------- This SF.Net email is sponsored by >> the >> Verizon Developer Community Take advantage of >> Verizon's >> best-in-class app development support A >> streamlined, 14 >> day to market process makes app >> distribution fast and easy >> Join now and get one step >> closer to millions of Verizon >> customers >> http://p.sf.net/sfu/verizon-dev2dev >> >> _______________________________________________ >> >> Gambas-user mailing list >> >> Gambas-user at lists.sourceforge.net >> >> https://lists.sourceforge.net/lists/listinfo/gambas-user > >> > >> ---------------------------------------------------------- >> > -------------------- This SF.Net email is sponsored by >> > the Verizon Developer Community Take advantage of >> > Verizon's best-in-class app development support A >> streamlined, 14 day to market process makes app >> > distribution fast and easy Join now and get one step >> > closer to millions of Verizon customers >> > http://p.sf.net/sfu/verizon-dev2dev >> > _______________________________________________ >> > Gambas-user mailing list >> > Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user > >> >> ---------------------------------------------------------- >> -------------------- This SF.Net email is sponsored by the >> Verizon Developer Community Take advantage of Verizon's >> best-in-class app development support A streamlined, 14 >> day to market process makes app distribution fast and easy >> Join now and get one step closer to millions of Verizon >> customers http://p.sf.net/sfu/verizon-dev2dev >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user > > ------------------------------------------------------------------------------ > This SF.Net email is sponsored by the Verizon Developer Community > Take advantage of Verizon's best-in-class app development support > A streamlined, 14 day to market process makes app distribution fast and easy > Join now and get one step closer to millions of Verizon customers > http://p.sf.net/sfu/verizon-dev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From kobolds at ...2041... Mon Jan 11 22:01:05 2010 From: kobolds at ...2041... (kobolds) Date: Mon, 11 Jan 2010 13:01:05 -0800 (PST) Subject: [Gambas-user] make fail (gambas3 rev 2603) In-Reply-To: <4B4AE9F1.3070505@...221...> References: <27084632.post@...1379...> <27086866.post@...1379...> <201001091246.03610.gambas@...1...> <27091041.post@...1379...> <4B4AE9F1.3070505@...221...> Message-ID: <27117626.post@...1379...> I just add the libffi-devel package from yast . this package is not added by default Rolf-Werner Eilert wrote: > > Am 09.01.2010 18:51, schrieb kobolds: >> >> Fixed . thanks > > > How did you fix that? I had the same problem, so please describe > somewhat more in detail... > > Thank you. > > Rolf > >> >> >> Beno?t Minisini wrote: >>> >>>> I tried with rev 2604 but still get same error . >>>> >>>> here I attach the log >>>> >>>> http://old.nabble.com/file/p27086866/konsole.txt.tar.gz >>>> konsole.txt.tar.gz >>>> >>>> kobolds wrote: >>>>> Hi, I having trouble when compiling gambas3 source on opensuse 11.2 >>>> (x64) >>>>> >>>>> ../libtool: line 4998: cd: no: No such file or directory >>>>> libtool: link: cannot determine absolute directory name of `no' >>>>> make[4]: *** [gb.la] Error 1 >>>>> make[4]: Leaving directory `/temp/trunk/main/gbx' >>>>> make[3]: *** [all-recursive] Error 1 >>>>> make[3]: Leaving directory `/temp/trunk/main' >>>>> make[2]: *** [all] Error 2 >>>>> make[2]: Leaving directory `/temp/trunk/main' >>>>> make[1]: *** [all-recursive] Error 1 >>>>> make[1]: Leaving directory `/temp/trunk' >>>>> make: *** [all] Error 2 >>>> >>> >>> Can you try to find the libffi development package if you have it on >>> SuSE? >>> And >>> then install it? >>> >>> Otherwise, can you search where could be located the "ffi.h" include >>> file >>> on >>> your system? >>> >>> libffi cannot be compiled, maybe this is the reason why you get this >>> error. >>> >>> -- >>> Beno?t Minisini >>> >>> ------------------------------------------------------------------------------ >>> This SF.Net email is sponsored by the Verizon Developer Community >>> Take advantage of Verizon's best-in-class app development support >>> A streamlined, 14 day to market process makes app distribution fast and >>> easy >>> Join now and get one step closer to millions of Verizon customers >>> http://p.sf.net/sfu/verizon-dev2dev >>> _______________________________________________ >>> Gambas-user mailing list >>> Gambas-user at lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>> >>> >> > > > ------------------------------------------------------------------------------ > This SF.Net email is sponsored by the Verizon Developer Community > Take advantage of Verizon's best-in-class app development support > A streamlined, 14 day to market process makes app distribution fast and > easy > Join now and get one step closer to millions of Verizon customers > http://p.sf.net/sfu/verizon-dev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > -- View this message in context: http://old.nabble.com/make-fail-%28gambas3-rev-2603%29-tp27084632p27117626.html Sent from the gambas-user mailing list archive at Nabble.com. From Karl.Reinl at ...2345... Mon Jan 11 22:52:32 2010 From: Karl.Reinl at ...2345... (Charlie Reinl) Date: Mon, 11 Jan 2010 22:52:32 +0100 Subject: [Gambas-user] we need an update for report-ng Message-ID: <1263246752.6935.5.camel@...40...> Salut, we need an update for report-ng Mandriva Linux 2010.0 use also /etc/lsb-release see attached gambas_report.log -- Charlie -------------- next part -------------- A non-text attachment was scrubbed... Name: gambas_report.log Type: text/x-log Size: 273 bytes Desc: not available URL: From eilert-sprachen at ...221... Tue Jan 12 09:09:26 2010 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Tue, 12 Jan 2010 09:09:26 +0100 Subject: [Gambas-user] make fail (gambas3 rev 2603) In-Reply-To: <27117626.post@...1379...> References: <27084632.post@...1379...> <27086866.post@...1379...> <201001091246.03610.gambas@...1...> <27091041.post@...1379...> <4B4AE9F1.3070505@...221...> <27117626.post@...1379...> Message-ID: <4B4C2E36.6020100@...221...> Ok, thanks a lot! I'll try that next... Rolf Am 11.01.2010 22:01, schrieb kobolds: > > I just add the libffi-devel package from yast . this package is not added by > default > > > Rolf-Werner Eilert wrote: >> >> Am 09.01.2010 18:51, schrieb kobolds: >>> >>> Fixed . thanks >> >> >> How did you fix that? I had the same problem, so please describe >> somewhat more in detail... >> >> Thank you. >> >> Rolf >> >>> >>> >>> Beno?t Minisini wrote: >>>> >>>>> I tried with rev 2604 but still get same error . >>>>> >>>>> here I attach the log >>>>> >>>>> http://old.nabble.com/file/p27086866/konsole.txt.tar.gz >>>>> konsole.txt.tar.gz >>>>> >>>>> kobolds wrote: >>>>>> Hi, I having trouble when compiling gambas3 source on opensuse 11.2 >>>>> (x64) >>>>>> >>>>>> ../libtool: line 4998: cd: no: No such file or directory >>>>>> libtool: link: cannot determine absolute directory name of `no' >>>>>> make[4]: *** [gb.la] Error 1 >>>>>> make[4]: Leaving directory `/temp/trunk/main/gbx' >>>>>> make[3]: *** [all-recursive] Error 1 >>>>>> make[3]: Leaving directory `/temp/trunk/main' >>>>>> make[2]: *** [all] Error 2 >>>>>> make[2]: Leaving directory `/temp/trunk/main' >>>>>> make[1]: *** [all-recursive] Error 1 >>>>>> make[1]: Leaving directory `/temp/trunk' >>>>>> make: *** [all] Error 2 >>>>> >>>> >>>> Can you try to find the libffi development package if you have it on >>>> SuSE? >>>> And >>>> then install it? >>>> >>>> Otherwise, can you search where could be located the "ffi.h" include >>>> file >>>> on >>>> your system? >>>> >>>> libffi cannot be compiled, maybe this is the reason why you get this >>>> error. >>>> >>>> -- >>>> Beno?t Minisini >>>> >>>> ------------------------------------------------------------------------------ >>>> This SF.Net email is sponsored by the Verizon Developer Community >>>> Take advantage of Verizon's best-in-class app development support >>>> A streamlined, 14 day to market process makes app distribution fast and >>>> easy >>>> Join now and get one step closer to millions of Verizon customers >>>> http://p.sf.net/sfu/verizon-dev2dev >>>> _______________________________________________ >>>> Gambas-user mailing list >>>> Gambas-user at lists.sourceforge.net >>>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>>> >>>> >>> >> >> >> ------------------------------------------------------------------------------ >> This SF.Net email is sponsored by the Verizon Developer Community >> Take advantage of Verizon's best-in-class app development support >> A streamlined, 14 day to market process makes app distribution fast and >> easy >> Join now and get one step closer to millions of Verizon customers >> http://p.sf.net/sfu/verizon-dev2dev >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> >> > From matteo.lisi at ...2324... Tue Jan 12 11:57:15 2010 From: matteo.lisi at ...2324... (matteo.lisi at ...2324...) Date: Tue, 12 Jan 2010 11:57:15 +0100 Subject: [Gambas-user] Problem during Gambas 2.19 installation on Ubuntu 9.10 Message-ID: <4b4c558b.47.2ddb.1481693609@...2359...> Hi ! Not work yet ! I redid an installation and I saw that the the ./configure output show gb.qte disabled why ? After the installation I did: > cd /usr/src/gambas2-2.19.0/main > sudo make uninstall > make clean > /reconf > /configure -C > make > sudo make install > gbi3 (gbi2 instead of gbi3) and the gambas2 output remain the same: ERROR: #27: Cannot load component 'gb.qt': cannot find library file P.S. I update my system and the libtool library at the last version. Is it possible to have a problem here ? ----- Original Message ----- Da : Fabien Bodard A : mailing list for gambas users Oggetto : Re: [Gambas-user] Problem during Gambas 2.19 installation on Ubuntu 9.10 Data : Mon, 11 Jan 2010 21:10:25 +0100 > ok > > you try that : > > cd /usr/src/gambas2-2.19.0/main > sudo make uninstall > make clean > /reconf > /configure -C > make > sudo make install > gbi3 > > 2010/1/11 matteo.lisi at ...2324... > > : this is my gbi2 output: > > > > matteo at ...2357...:/usr/src/gambas2-2.19.0$ sudo gbi2 > > gb.qt.ext > > gb.db.form > > gb.gtk > > gbi2: warning: component gb.draw not found > > gb.qt > > gbi2: warning: component gb.draw not found > > gb.xml.xslt > > gb.xml > > gb.opengl > > gb.desktop > > gb.qt.kde > > gb.xml.rpc > > gb.compress > > gb.pdf > > gb.report > > gb.gui > > gbi2: warning: component gb.draw not found > > gb.sdl > > gb.pcre > > gb.gtk.ext > > gb.vb > > gb.net.curl > > gb.form.mdi > > gb.form.dialog > > gb.chart > > gb.form > > gb.v4l > > gb.info > > gb.qt.kde.html > > gb.settings > > gb.sdl.sound > > gb.image > > gb.qt.opengl > > gb.web > > gb.db > > gb.crypt > > > > thanks > > > > > > > > > > ----- Original Message ----- > > Da : Fabien Bodard > > A : mailing list for gambas users > > > > Oggetto : Re: [Gambas-user] Problem during Gambas 2.19 > > installation on Ubuntu 9.10 > > Data : Mon, 11 Jan 2010 13:54:32 +0100 > > > >> give me the output of gbi2 > >> > >> > >> > >> > >> > >> 2010/1/11 matteo.lisi at ...2324... > >> > : Hi Fabien.. > >> > > >> > nothing is changed: > >> > > >> > ERROR: #27: Cannot load component 'gb.debug': cannot > >> > find library file > >> > > >> > Have you any tips ? > >> > > >> > > >> > ----- Original Message ----- > >> > Da : Fabien Bodard > >> > A : mailing list for gambas users > >> > > >> > Oggetto : Re: [Gambas-user] Problem during Gambas > 2.19 >> > installation on Ubuntu 9.10 > >> > Data : Mon, 11 Jan 2010 12:06:42 +0100 > >> > > >> >> 2010/1/11 matteo.lisi at ...2324... > >> >> : > > >> >> > Hi Fabien and thanks for your reply > >> >> > > >> >> > I update my Ubuntu (Before my last reply I used > the >> >> > apt-get string on the installation page) with > your >> last >> > apt-get string and something is changed: > >> >> > > >> >> > now when I launch gambas2 I obtain: > >> >> > > >> >> > matteo at ...2357...:/usr/src/gambas2-2.19.0$ > gambas2 >> >> > ERROR: #27: Cannot load component > 'gb.debug': cannot >> >> > find library file > >> >> > >> >> Try a > >> >> make uninstall > >> >> make clean > >> >> make -j4 > >> >> make install > >> >> > >> >> > >> >> > >> >> make -j4 allow to accellerate de compilation time by > >> >> create multiple instance of the process (a so can > use >> >> multiple processor capabilities) > >> >> > >> >> > >> >> > > >> >> > any tips ? > >> >> > > >> >> > > >> >> > Thanks in advice > >> >> > > >> >> > > >> >> > matteo at ...2357...:/usr/src/gambas2-2.19.0$ sudo > >> >> > gambas2 ERROR: #27: Cannot load component > 'gb.debug': >> >> > cannot find library file > >> >> > > >> >> > > >> >> > ----- Original Message ----- > >> >> > Da : Fabien Bodard > >> >> > A : mailing list for gambas users > >> >> > > >> >> > Oggetto : Re: [Gambas-user] Problem during Gambas > >> 2.19 >> > installation on Ubuntu 9.10 > >> >> > Data : Mon, 11 Jan 2010 09:51:11 +0100 > >> >> > > >> >> >> More upto date ... and i've updated on the wiki > too >> .. >> so >> gb3 can compile Too with all > components. >> >> >> > >> >> >> > >> >> >> sudo apt-get install build-essential autoconf > >> >> libbz2-dev >> libfbclient2 libmysqlclient15-dev > >> >> unixodbc-dev libpq-dev >> libsqlite0-dev > libsqlite3-dev >> >> libgtk2.0-dev libldap2-dev >> > libcurl4-gnutls-dev >> >> libgtkglext1-dev libpcre3-dev >> > libsdl-sound1.2-dev >> >> libsdl-mixer1.2-dev >> > libsdl-image1.2-dev libsage-dev >> >> libxml2-dev > libxslt1-dev >> libbonobo2-dev libcos4-dev >> >> > libomniorb4-dev librsvg2-dev >> libpoppler-dev >> >> > libpoppler-glib-dev libasound2-dev >> libesd0-dev >> >> > libesd-alsa0 libdirectfb-dev libaa1-dev >> libxtst-dev >> > >> libffi-dev kdelibs4-dev firebird2.1-dev >> libqt4-dev > >> >> libglew1.5-dev libimlib2-dev libv4l-dev >> >> >> > libsdl-ttf2.0-dev >> >> >> >> 2010/1/11 Ricardo D?az > Mart?n >> >> >> > : On before > gambas >> >> >> installation on ubuntu 9.10 you must to do > this: > >> >> >> > sudo apt-get install build-essential > autoconf >> >> libbz2-dev >> > libfbclient2 > libmysqlclient15-dev >> >> unixodbc-dev libpq-dev >> > > libsqlite0-dev >> libsqlite3-dev >> libgtk2.0-dev > libldap2-dev >> > >> libcurl4-gnutls-dev >> > libgtkglext1-dev libpcre3-dev >> > >> libsdl-sound1.2-dev > >> libsdl-mixer1.2-dev >> > >> libsdl-image1.2-dev > libsage-dev >> libxml2-dev >> libxslt1-dev >> > libbonobo2-dev libcos4-dev >> >> libomniorb4-dev > librsvg2-dev >> > libpoppler-dev >> >> libpoppler-glib-dev > libasound2-dev >> > libesd0-dev >> >> libesd-alsa0 > libdirectfb-dev libaa1-dev >> > libxtst-dev >> >> > libffi-dev kdelibs4-dev firebird2.1-dev >> libqt4-dev >> > >> libglew1.5-dev > >> > >> >> > Please, visit >> >> >> > http://gambasdoc.org/help/install/ubuntu?view > >> >> >> > > I hope this works for you. >> >> >> > > >> >> >> > Regards, > >> >> >> > > >> >> >> > 2010/1/10 matteo.lisi at ...2324... > >> >> >> > > >> >> >> >> Yes libqt3-mt-dev is installed.... > >> >> >> >> > >> >> >> >> thanks for your reply ! > >> >> >> >> > >> >> >> >> > >> >> >> >> ----- Original Message ----- > >> >> >> >> Da : Fabien Bodard > >> >> >> >> A : mailing list for gambas users > >> >> >> >> > >> >> >> >> Oggetto : Re: [Gambas-user] Problem during > Gambas >> >> 2.19 >> >> installation on Ubuntu 9.10 > >> >> >> >> Data : Sun, 10 Jan 2010 19:51:21 +0100 > >> >> >> >> > >> >> >> >> > IS libqt3-mt-dev installed ? > >> >> >> >> > > >> >> >> >> > > >> >> >> >> > if not install it and do a reconf-all > >> >> >> >> > > >> >> >> >> > 2010/1/10 matteo.lisi at ...2324... > >> >> >> >> > > : Ok > >> >> >> >> > > > >> >> >> >> > > I checked all library installed on my > ubuntu >> and >> >> redid >> > > the installation from the > >> beginning. >> >> >> > > > >> >> >> >> > > Somethings is changed: > >> >> >> >> > > > >> >> >> >> > > When I launch gambas2 I have: > >> >> >> >> > > > >> >> >> >> > > ERROR: #27: Cannot load component 'gb.qt': > >> >> cannot >> find >> > > library file > >> >> >> >> > > > >> >> >> >> > > The ./configure disable the gb.qte packet > and >> >> the >> make / >> > > make install seems to > return >> without >> >> error... >> > > > >> >> >> >> > > Do you need some output to understand what > I >> >> wrong >> ? >> > > > >> >> >> >> > > Tnx a lot! > >> >> >> >> > > > >> >> >> >> > > ----- Original Message ----- > >> >> >> >> > > Da : Beno??t Minisini > >> >> >> >> > > A : mailing > >> list >> for >> gambas users >> > > > >> >> >> >> > > > Oggetto : >> >> Re: [Gambas-user] Problem during Gambas >> > 2.19 >> > > >> >> installation on Ubuntu 9.10 >> >> > > > Data : Sun, 10 >> Jan >> 2010 14:59:51 +0100 >> >> > > > >> >> >> >> > >> > Hi to All !> > I'm trying to install > last >> >> >> gambas2 >> > >> version on my ubuntu 9.10> > but I had >> >> some >> error:> > 1) >> > I >> launch the > configuration >> >> script >> with:> > sudo >> > > /configure >> >> >> --enable-net=yes >> --enable-curl=yes> > >> > > >> >> --enable-smtp=yes> > >> >> > >> but at the > end I >> receive >> the following report:> > >> THESE >> > > >> >> COMPONENTS ARE >> DISABLED:> [..]> - >> gb.net.curl> > - >> >> > >> gb.net.smtp> >> [..]> > Why this >> > components are >> disabled >> > ?> >> >> Because some > libraries >> or >> development packages are >> > >> not >> > installed. You see >> >> it by reading the ./configure >> > >> > output.> >> 2) I >> >> launched the:> sudo make> sudo > >> make >> > install> > >> All >> >> the make is done > without >> errors but when >> > >> I execute >> the:> > >> > gambas2> > I >> receive this >> error:> >> > ERROR: >> > #27: Cannot load >> >> component >> 'gb.qt': cannot find> > >> > >> library file> Are >> you >> sure >> that you > didn't get error >> >> > messages >> >> during "make >> > install"?Anyway, you need to >> >> > >> >> provide the > full output of >> the entire configuration, >> >> >> >> > > compilation and installation >> process, otherwise >> >> > >> nobody >> > will be able to help you.Regards >> ,-- >> > >> >> Beno??t >> > >> >> >> > >> >> >> > >> >> > >> > Minisini-------------------------------------------------- > >> >> >> >> > >> --- -------------------------This SF.Net > >> email >> is >> >> >> > sponsored by the Verizon > Developer >> >> CommunityTake >> advantage >> > >> of > Verizon's >> >> best-in-class app >> development supportA > >> >> > >> >> streamlined, 14 day to market >> process > makes app >> >> >> > >> distribution fast and easyJoin >> > now and get one >> step >> closer >> > >> to millions of > Verizon >> >> >> > >> >> > customershttp://p.sf.net/sfu/verizon-dev2dev >> >> >> > >> > >> >> >> >> > >> > _______________________________________________Gambas-user > >> >> >> >> > >> mailing >> >> > >> >> >> > listGambas-user at ...2354...://lists.sourcef > >> >> >> >> > >> orge.net/lists/listinfo/gambas-user > >> > > > >> >> >> >> > >> > >> >> > >> > ---------------------------------------------------------- > >> >> >> >> > > -------------------- This SF.Net email is > >> >> sponsored >> by >> > > the Verizon Developer > Community >> >> Take advantage >> of >> > > Verizon's > best-in-class app >> >> development support >> A >> > > streamlined, 14 day to >> >> market process makes app >> > >> > > distribution fast and >> >> easy Join now and get > one >> step >> > > closer to >> >> millions of Verizon > customers >> >> > > >> >> > http://p.sf.net/sfu/verizon-dev2dev >> >> > > >> >> > _______________________________________________ >> >> > > > >> >> Gambas-user mailing list >> >> > > >> >> > Gambas-user at lists.sourceforge.net >> >> > >> >> >> >> > >> > https://lists.sourceforge.net/lists/listinfo/gambas-user > > >> >> >> >> > >> > >> >> >> > ---------------------------------------------------------- > >> >> >> >> > -------------------- This SF.Net email is >> > >> sponsored >> by the >> > Verizon Developer Community > Take >> >> advantage of >> Verizon's >> > best-in-class > app >> >> development support A >> streamlined, 14 >> > > day to >> >> market process makes app >> distribution fast > and easy >> >> >> > Join now and get one step >> closer to > millions of >> >> Verizon >> > customers >> >> > >> http://p.sf.net/sfu/verizon-dev2dev >> > >> >> > >> _______________________________________________ >> > >> > >> >> Gambas-user mailing list >> > >> >> > >> Gambas-user at lists.sourceforge.net >> > >> >> > >> > https://lists.sourceforge.net/lists/listinfo/gambas-user > >> >> >> >> >> >> >> >> >> >> >> > >> > ---------------------------------------------------------- > >> >> >> -------------------- >> This SF.Net email is >> > sponsored >> by >> the Verizon Developer Community >> Take > >> advantage of >> >> Verizon's best-in-class app > development >> support >> A >> >> streamlined, 14 day to > market process >> makes app >> >> distribution fast and >> > easy >> >> >> >> Join now and get one step closer to > millions of >> >> Verizon >> customers >> > >> >> http://p.sf.net/sfu/verizon-dev2dev >> >> > >> >> _______________________________________________ >> > >> >> >> Gambas-user mailing list >> >> > >> >> Gambas-user at lists.sourceforge.net >> >> > >> >> >> > >> >> > >> > https://lists.sourceforge.net/lists/listinfo/gambas-user > >> >> >> > >> >> >> >> > ---------------------------------------------------------- > >> >> >> > -------------------- This SF.Net email is >> > sponsored >> by >> > the Verizon Developer Community Take > >> advantage of >> >> > Verizon's best-in-class app >> > development support A >> >> streamlined, 14 day to market > >> process makes app >> >> > distribution fast and easy > Join >> now and get one step >> >> > closer to millions of > Verizon >> customers >> >> > > http://p.sf.net/sfu/verizon-dev2dev >> >> >> > > _______________________________________________ >> >> >> > > Gambas-user mailing list >> >> >> > > Gambas-user at lists.sourceforge.net >> >> >> > >> >> > >> > https://lists.sourceforge.net/lists/listinfo/gambas-user > > >> >> >> >> >> >> > ---------------------------------------------------------- > >> >> >> -------------------- This SF.Net email is > sponsored >> by >> the >> Verizon Developer Community Take > advantage of >> >> Verizon's >> best-in-class app > development support A >> >> streamlined, 14 >> day to > market process makes app >> >> distribution fast and easy > >> Join now and get one step >> >> closer to millions of > Verizon >> customers >> >> > http://p.sf.net/sfu/verizon-dev2dev >> >> >> > _______________________________________________ >> >> >> > Gambas-user mailing list >> >> >> > Gambas-user at lists.sourceforge.net >> >> >> > >> > https://lists.sourceforge.net/lists/listinfo/gambas-user > > >> >> > >> >> > ---------------------------------------------------------- > >> >> > -------------------- This SF.Net email is > sponsored >> by >> > the Verizon Developer Community Take > advantage of >> >> > Verizon's best-in-class app > development support A >> >> streamlined, 14 day to market > process makes app >> >> > distribution fast and easy Join > now and get one step >> >> > closer to millions of Verizon > customers >> >> > http://p.sf.net/sfu/verizon-dev2dev > >> >> > _______________________________________________ > >> >> > Gambas-user mailing list > >> >> > Gambas-user at lists.sourceforge.net > >> >> > >> > https://lists.sourceforge.net/lists/listinfo/gambas-user > > >> >> >> >> > ---------------------------------------------------------- > >> >> -------------------- This SF.Net email is sponsored > by >> the >> Verizon Developer Community Take advantage of > >> Verizon's >> best-in-class app development support A > >> streamlined, 14 >> day to market process makes app > >> distribution fast and easy >> Join now and get one step > >> closer to millions of Verizon >> customers > >> http://p.sf.net/sfu/verizon-dev2dev >> > >> _______________________________________________ >> > >> Gambas-user mailing list >> > >> Gambas-user at lists.sourceforge.net >> > >> > https://lists.sourceforge.net/lists/listinfo/gambas-user > > >> > >> > ---------------------------------------------------------- > >> > -------------------- This SF.Net email is sponsored > by >> > the Verizon Developer Community Take advantage of > >> > Verizon's best-in-class app development support A > >> streamlined, 14 day to market process makes app > >> > distribution fast and easy Join now and get one step > >> > closer to millions of Verizon customers > >> > http://p.sf.net/sfu/verizon-dev2dev > >> > _______________________________________________ > >> > Gambas-user mailing list > >> > Gambas-user at lists.sourceforge.net > >> > https://lists.sourceforge.net/lists/listinfo/gambas-user > > >> >> > ---------------------------------------------------------- > >> -------------------- This SF.Net email is sponsored by > the >> Verizon Developer Community Take advantage of > Verizon's >> best-in-class app development support A > streamlined, 14 >> day to market process makes app > distribution fast and easy >> Join now and get one step > closer to millions of Verizon >> customers > http://p.sf.net/sfu/verizon-dev2dev >> > _______________________________________________ >> > Gambas-user mailing list >> > Gambas-user at lists.sourceforge.net >> > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > ---------------------------------------------------------- > > -------------------- This SF.Net email is sponsored by > > the Verizon Developer Community Take advantage of > > Verizon's best-in-class app development support A > streamlined, 14 day to market process makes app > > distribution fast and easy Join now and get one step > > closer to millions of Verizon customers > > http://p.sf.net/sfu/verizon-dev2dev > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > ---------------------------------------------------------- > -------------------- This SF.Net email is sponsored by the > Verizon Developer Community Take advantage of Verizon's > best-in-class app development support A streamlined, 14 > day to market process makes app distribution fast and easy > Join now and get one step closer to millions of Verizon > customers http://p.sf.net/sfu/verizon-dev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From Karl.Reinl at ...2345... Tue Jan 12 18:11:04 2010 From: Karl.Reinl at ...2345... (Charlie Reinl) Date: Tue, 12 Jan 2010 18:11:04 +0100 Subject: [Gambas-user] problems with user-components Message-ID: <1263316264.6406.4.camel@...40...> Salut , this happens, while staying on 'User components' and push the [ About component... ] button. -- Amicalement Charlie [OperatingSystem] OperatingSystem=Linux KernelRelease=2.6.24-26-generic DistributionVendor=ubuntu DistributionRelease="Ubuntu 8.04.3 LTS" [System] CPUArchitecture=i686 TotalRam=506932 kB [Gambas] Gambas1=gbx-1.0.17 Gambas1Path=/usr/bin/gbx Gambas2=2.19.0 rev.2602 Gambas2Path=/usr/local/bin/gbx2 Gambas3=2.99.0 rev.2602 (can't compile actually) Gambas3Path=/usr/local/bin/gbx3 -------------- next part -------------- A non-text attachment was scrubbed... Name: Bildschirmfoto-Projekt Eigenschaften - obfuscation.png Type: image/png Size: 63666 bytes Desc: not available URL: From joshiggins at ...1601... Tue Jan 12 19:03:54 2010 From: joshiggins at ...1601... (Joshua Higgins) Date: Tue, 12 Jan 2010 18:03:54 +0000 Subject: [Gambas-user] we need an update for report-ng In-Reply-To: <1263246752.6935.5.camel@...40...> References: <1263246752.6935.5.camel@...40...> Message-ID: <4247f5441001121003p41453362yaac8d4ca52b3cd94@...627...> Where does report-ng live now? 2010/1/11 Charlie Reinl : > Salut, > > we need an update for report-ng > > Mandriva Linux 2010.0 use also /etc/lsb-release > > see attached gambas_report.log > -- > Charlie > > ------------------------------------------------------------------------------ > This SF.Net email is sponsored by the Verizon Developer Community > Take advantage of Verizon's best-in-class app development support > A streamlined, 14 day to market process makes app distribution fast and easy > Join now and get one step closer to millions of Verizon customers > http://p.sf.net/sfu/verizon-dev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > -- joshua higgins >>>>>>------ From math.eber at ...221... Tue Jan 12 22:56:02 2010 From: math.eber at ...221... (Matti) Date: Tue, 12 Jan 2010 22:56:02 +0100 Subject: [Gambas-user] Mailing list not working correctly? Message-ID: <4B4CEFF2.2010301@...221...> Since a few months, it happens quite often that I post a question or an answer to another post and don't get any answers. I recieve my own mails in Thunderbird correctly, but when I look at http://sourceforge.net/mailarchive/forum.php?forum_name=gambas-user my mails sometimes just don't appear there. Anything wrong here? For example, I sent a mail about compiling problems of gambas3 on 10.01.2010 22:26 that doesn't show in this list. Regards Matti From alerinaldi at ...2334... Tue Jan 12 23:01:16 2010 From: alerinaldi at ...2334... (Alessandro Rinaldi) Date: Tue, 12 Jan 2010 23:01:16 +0100 Subject: [Gambas-user] Mailing list not working correctly? In-Reply-To: <4B4CEFF2.2010301@...221...> References: <4B4CEFF2.2010301@...221...> Message-ID: <57de1d081001121401h392955e5v8f1ff97b924bca89@...627...> Don't know, I received this however... From gambas at ...1... Wed Jan 13 00:53:10 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Wed, 13 Jan 2010 00:53:10 +0100 Subject: [Gambas-user] Strange event in a ComboBox In-Reply-To: <9C4882CA-6D24-419E-A51B-955B6F6A4147@...1896...> References: <9C4882CA-6D24-419E-A51B-955B6F6A4147@...1896...> Message-ID: <201001130053.10519.gambas@...1...> > Benoit, > > I'm following my project and in a ComboBox I found a strange event. > > On Gambas v2.18 on Fedora11. > > I joined a list a data in this ComboxBox manually by the IDE and when > I add the word 'or', 'OR', '-or-', etc... in this list, the project can't > start because the IDE add at the end of the line in the Form definition a > wrong ')'. > > If I remove the line with the 'or' word, all it's ok. > > It's not really important for me, just to inform you. > > > Olivier Cruilles > Mail: linuxos at ...1896... > > That bug has been fixed in Gambas 2.19. Regards, -- Beno?t Minisini From imperious.ldr at ...2360... Wed Jan 13 04:00:03 2010 From: imperious.ldr at ...2360... (Anthony Ivan) Date: Wed, 13 Jan 2010 16:00:03 +1300 Subject: [Gambas-user] Serial port (gb.net) curious error - reading byte value incorrectly. Message-ID: <4B4D3733.3000905@...2360...> Hello to All, [Gambas 2.19.0-1 on Fedora 12, Intel X86_64] I am currently working on a little project that communicates with a VHF radio via the MAP27 instruction set. All is working perfectly except for one small error... as detailed below... When the radio communicates with the PC the serialport_read() triggers perfectly and takes the byte's of data provided and places them into a queue for processing ... a typical translated incoming hex string may look something like: 16 10 02 04 01 00 00 10 03 The next message will increment the 5th byte value by one thus giving: 16 10 02 04 02 00 00 10 03 Oddly enough if the value coming to the serial port from the radio is 1D (binary value 00011101), Gambas seems to see that value as 1A (binary value 00011010). Every other input is working perfectly... and there is absolute certainty that the incoming byte value is indeed 1D. Also, the outbound side is ok... if I reply to the radio as if it had sent a 1D with the appropriate CRC16 checksum everything is happy. Could this be a small error in the serial code (gb.Net) that someone has encountered or rather a known issue elsewhere which I have not yet found in my searches? Thanks, Anthony From wdahn at ...1000... Wed Jan 13 06:14:36 2010 From: wdahn at ...1000... (Werner) Date: Wed, 13 Jan 2010 13:14:36 +0800 Subject: [Gambas-user] Mailing list not working correctly? In-Reply-To: <4B4CEFF2.2010301@...221...> References: <4B4CEFF2.2010301@...221...> Message-ID: <4B4D56BC.3040709@...1000...> On 13/01/10 05:56, Matti wrote: > Since a few months, it happens quite often that I post a question or an answer > to another post and don't get any answers. > I recieve my own mails in Thunderbird correctly, but when I look at > http://sourceforge.net/mailarchive/forum.php?forum_name=gambas-user > my mails sometimes just don't appear there. > > Anything wrong here? > > For example, I sent a mail about compiling problems of gambas3 on > 10.01.2010 22:26 > that doesn't show in this list. > > Regards > Matti > > I see 6 posts from you on 31.12.2009 with 2 topics in my Inbox: Installation instructions for openSUSE and how to get the version number After that, there's nothing until last Saturday (4 posts). Regards Werner From wdahn at ...1000... Wed Jan 13 06:20:15 2010 From: wdahn at ...1000... (Werner) Date: Wed, 13 Jan 2010 13:20:15 +0800 Subject: [Gambas-user] Serial port (gb.net) curious error - reading byte value incorrectly. In-Reply-To: <4B4D3733.3000905@...2360...> References: <4B4D3733.3000905@...2360...> Message-ID: <4B4D580F.8070606@...1000...> On 13/01/10 11:00, Anthony Ivan wrote: > Hello to All, > > [Gambas 2.19.0-1 on Fedora 12, Intel X86_64] > > I am currently working on a little project that communicates with a VHF > radio via the MAP27 instruction set. All is working perfectly except for > one small error... as detailed below... > > When the radio communicates with the PC the serialport_read() triggers > perfectly and takes the byte's of data provided and places them into a > queue for processing ... a typical translated incoming hex string may > look something like: > 16 10 02 04 01 00 00 10 03 > > The next message will increment the 5th byte value by one thus giving: > 16 10 02 04 02 00 00 10 03 > > Oddly enough if the value coming to the serial port from the radio is 1D > (binary value 00011101), Gambas seems to see that value as 1A (binary > value 00011010). > Every other input is working perfectly... and there is absolute > certainty that the incoming byte value is indeed 1D. Also, the outbound > side is ok... if I reply to the radio as if it had sent a 1D with the > appropriate CRC16 checksum everything is happy. Could this be a small > error in the serial code (gb.Net) that someone has encountered or rather > a known issue elsewhere which I have not yet found in my searches? > > Thanks, > > Anthony > We've discussed that about one month ago. It is about a flag that must be set/cleared. The thread can be found in the archive. Regards Werner From linuxos at ...1896... Wed Jan 13 07:55:50 2010 From: linuxos at ...1896... (Olivier Cruilles) Date: Wed, 13 Jan 2010 07:55:50 +0100 Subject: [Gambas-user] Strange event in a ComboBox In-Reply-To: <201001130053.10519.gambas@...1...> References: <9C4882CA-6D24-419E-A51B-955B6F6A4147@...1896...> <201001130053.10519.gambas@...1...> Message-ID: <69281B12-1A3B-43BF-9CCD-82EDF75DA76E@...1896...> Thank you Benoit. I'll try it as soon is possible. Le 13 janv. 2010 ? 00:53, Beno?t Minisini a ?crit : >> Benoit, >> >> I'm following my project and in a ComboBox I found a strange event. >> >> On Gambas v2.18 on Fedora11. >> >> I joined a list a data in this ComboxBox manually by the IDE and when >> I add the word 'or', 'OR', '-or-', etc... in this list, the project can't >> start because the IDE add at the end of the line in the Form definition a >> wrong ')'. >> >> If I remove the line with the 'or' word, all it's ok. >> >> It's not really important for me, just to inform you. >> >> >> Olivier Cruilles >> Mail: linuxos at ...1896... >> >> > > That bug has been fixed in Gambas 2.19. > > Regards, > > -- > Beno?t Minisini > > ------------------------------------------------------------------------------ > This SF.Net email is sponsored by the Verizon Developer Community > Take advantage of Verizon's best-in-class app development support > A streamlined, 14 day to market process makes app distribution fast and easy > Join now and get one step closer to millions of Verizon customers > http://p.sf.net/sfu/verizon-dev2dev > _______________________________________________ > 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 eilert-sprachen at ...221... Wed Jan 13 08:57:57 2010 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Wed, 13 Jan 2010 08:57:57 +0100 Subject: [Gambas-user] Modal dialog + Balloon hangs program Message-ID: <4B4D7D05.7000905@...221...> Hi all, Last night I discovered this feature: If you have a balloon on FMain and want to let it appear while there is a modal dialog open (I didn't test a non-modal form yet), the balloon isn't shown and the program hangs, eating 100 % CPU load. I made a little test app to show this and try to add it to this mail. If you press the Button and then close the dialog at once, the balloon will appear after 10 seconds. But if you do not close the dialog, the program will crash. Thanks for your comments! Regards Rolf -------------- next part -------------- A non-text attachment was scrubbed... Name: TestBalloon-0.0.1.tar.gz Type: application/x-gzip Size: 7835 bytes Desc: not available URL: From mx4eva at ...626... Wed Jan 13 09:29:13 2010 From: mx4eva at ...626... (Fiddler63) Date: Wed, 13 Jan 2010 00:29:13 -0800 (PST) Subject: [Gambas-user] Modal dialog + Balloon hangs program In-Reply-To: <4B4D7D05.7000905@...221...> References: <4B4D7D05.7000905@...221...> Message-ID: <27141176.post@...1379...> Unable to open download Kim Hi all, Last night I discovered this feature: If you have a balloon on FMain and want to let it appear while there is a modal dialog open (I didn't test a non-modal form yet), the balloon isn't shown and the program hangs, eating 100 % CPU load. I made a little test app to show this and try to add it to this mail. If you press the Button and then close the dialog at once, the balloon will appear after 10 seconds. But if you do not close the dialog, the program will crash. Thanks for your comments! Regards Rolf -- View this message in context: http://old.nabble.com/Modal-dialog-%2B-Balloon-hangs-program-tp27140888p27141176.html Sent from the gambas-user mailing list archive at Nabble.com. From eilert-sprachen at ...221... Wed Jan 13 10:04:39 2010 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Wed, 13 Jan 2010 10:04:39 +0100 Subject: [Gambas-user] Modal dialog + Balloon hangs program In-Reply-To: <27141176.post@...1379...> References: <4B4D7D05.7000905@...221...> <27141176.post@...1379...> Message-ID: <4B4D8CA7.6030802@...221...> Maybe the rights are wrong? I tried it here, it works fine. Unpack that thing and try doing a chown -R on the directory, this should fix it for you. Rolf Am 13.01.2010 09:29, schrieb Fiddler63: > > Unable to open download > Kim > > > Hi all, > > Last night I discovered this feature: > > If you have a balloon on FMain and want to let it appear while there is > a modal dialog open (I didn't test a non-modal form yet), the balloon > isn't shown and the program hangs, eating 100 % CPU load. > > I made a little test app to show this and try to add it to this mail. > > If you press the Button and then close the dialog at once, the balloon > will appear after 10 seconds. But if you do not close the dialog, the > program will crash. > > Thanks for your comments! > > Regards > > Rolf > From mx4eva at ...626... Wed Jan 13 10:17:34 2010 From: mx4eva at ...626... (Fiddler63) Date: Wed, 13 Jan 2010 01:17:34 -0800 (PST) Subject: [Gambas-user] Modal dialog + Balloon hangs program In-Reply-To: <4B4D8CA7.6030802@...221...> References: <4B4D7D05.7000905@...221...> <27141176.post@...1379...> <4B4D8CA7.6030802@...221...> Message-ID: <27141746.post@...1379...> Works fine here Kim Maybe the rights are wrong? I tried it here, it works fine. Unpack that thing and try doing a chown -R on the directory, this should fix it for you. Rolf Am 13.01.2010 09:29, schrieb Fiddler63: > > Unable to open download > Kim > > > Hi all, > > Last night I discovered this feature: > > If you have a balloon on FMain and want to let it appear while there is > a modal dialog open (I didn't test a non-modal form yet), the balloon > isn't shown and the program hangs, eating 100 % CPU load. > > I made a little test app to show this and try to add it to this mail. > > If you press the Button and then close the dialog at once, the balloon > will appear after 10 seconds. But if you do not close the dialog, the > program will crash. > > Thanks for your comments! > > Regards > > Rolf -- View this message in context: http://old.nabble.com/Modal-dialog-%2B-Balloon-hangs-program-tp27140888p27141746.html Sent from the gambas-user mailing list archive at Nabble.com. From eilert-sprachen at ...221... Wed Jan 13 10:19:07 2010 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Wed, 13 Jan 2010 10:19:07 +0100 Subject: [Gambas-user] Modal dialog + Balloon hangs program In-Reply-To: <27141176.post@...1379...> References: <4B4D7D05.7000905@...221...> <27141176.post@...1379...> Message-ID: <4B4D900B.9090201@...221...> In case my idea doesn't help, just create it yourself: You need a Form FMain with a Button1 and a Timer1. You need another form that you name dlgTest. There do not need to be any objects on this form, it's just the dialog window to be opened. You set the Timer1 to 10000. The code on FMain is fairly simple: ' Gambas class file PUBLIC SUB _new() END PUBLIC SUB Form_Open() END PUBLIC SUB Button1_Click() Timer1.Enabled = TRUE dlgTest.ShowDialog END PUBLIC SUB Timer1_Timer() Balloon.Info("This is a button", Button1) END Am 13.01.2010 09:29, schrieb Fiddler63: > > Unable to open download > Kim > > > Hi all, > > Last night I discovered this feature: > > If you have a balloon on FMain and want to let it appear while there is > a modal dialog open (I didn't test a non-modal form yet), the balloon > isn't shown and the program hangs, eating 100 % CPU load. > > I made a little test app to show this and try to add it to this mail. > > If you press the Button and then close the dialog at once, the balloon > will appear after 10 seconds. But if you do not close the dialog, the > program will crash. > > Thanks for your comments! > > Regards > > Rolf > From mx4eva at ...626... Wed Jan 13 10:28:53 2010 From: mx4eva at ...626... (Fiddler63) Date: Wed, 13 Jan 2010 01:28:53 -0800 (PST) Subject: [Gambas-user] Modal dialog + Balloon hangs program In-Reply-To: <27141746.post@...1379...> References: <4B4D7D05.7000905@...221...> <27141176.post@...1379...> <4B4D8CA7.6030802@...221...> <27141746.post@...1379...> Message-ID: <27141906.post@...1379...> oops, I forgot. Ubuntu 9.10 and Gambas 2.13 Kim Works fine here Kim Rolf-Werner Eilert wrote: > > Maybe the rights are wrong? I tried it here, it works fine. Unpack that > thing and try doing a chown -R on the directory, this should fix it for > you. > > Rolf > > > Am 13.01.2010 09:29, schrieb Fiddler63: >> >> Unable to open download >> Kim >> >> >> Hi all, >> >> Last night I discovered this feature: >> >> If you have a balloon on FMain and want to let it appear while there is >> a modal dialog open (I didn't test a non-modal form yet), the balloon >> isn't shown and the program hangs, eating 100 % CPU load. >> >> I made a little test app to show this and try to add it to this mail. >> >> If you press the Button and then close the dialog at once, the balloon >> will appear after 10 seconds. But if you do not close the dialog, the >> program will crash. >> >> Thanks for your comments! >> >> Regards >> >> Rolf > > -- View this message in context: http://old.nabble.com/Modal-dialog-%2B-Balloon-hangs-program-tp27140888p27141906.html Sent from the gambas-user mailing list archive at Nabble.com. From smiefert at ...784... Wed Jan 13 11:16:36 2010 From: smiefert at ...784... (Stefan Miefert) Date: Wed, 13 Jan 2010 11:16:36 +0100 Subject: [Gambas-user] Select a Row in a Tableview Message-ID: <8D42310D957CFB46AA11921A711D4D160256AB3F5B@...1899...> Hello, how can i select a row in a TableView? Via code? Mytableview.row = 1 doesent working:) From eilert-sprachen at ...221... Wed Jan 13 11:40:03 2010 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Wed, 13 Jan 2010 11:40:03 +0100 Subject: [Gambas-user] Modal dialog + Balloon hangs program In-Reply-To: <27141906.post@...1379...> References: <4B4D7D05.7000905@...221...> <27141176.post@...1379...> <4B4D8CA7.6030802@...221...> <27141746.post@...1379...> <27141906.post@...1379...> Message-ID: <4B4DA303.9040908@...221...> Ok, yes, you're right: Mine is 2.16 on an "somewhat older" Suse 10.3 as terminal server. But I guess it's not that. "works fine" means no problems with it on your system? Rolf Am 13.01.2010 10:28, schrieb Fiddler63: > > oops, I forgot. > Ubuntu 9.10 and Gambas 2.13 > Kim > > > Works fine here > Kim > > > Rolf-Werner Eilert wrote: >> >> Maybe the rights are wrong? I tried it here, it works fine. Unpack that >> thing and try doing a chown -R on the directory, this should fix it for >> you. >> >> Rolf >> >> >> Am 13.01.2010 09:29, schrieb Fiddler63: >>> >>> Unable to open download >>> Kim >>> >>> >>> Hi all, >>> >>> Last night I discovered this feature: >>> >>> If you have a balloon on FMain and want to let it appear while there is >>> a modal dialog open (I didn't test a non-modal form yet), the balloon >>> isn't shown and the program hangs, eating 100 % CPU load. >>> >>> I made a little test app to show this and try to add it to this mail. >>> >>> If you press the Button and then close the dialog at once, the balloon >>> will appear after 10 seconds. But if you do not close the dialog, the >>> program will crash. >>> >>> Thanks for your comments! >>> >>> Regards >>> >>> Rolf >> >> > From matteo.lisi at ...2324... Wed Jan 13 12:28:26 2010 From: matteo.lisi at ...2324... (Matteo Lisi) Date: Wed, 13 Jan 2010 12:28:26 +0100 Subject: [Gambas-user] Best Linux Distribution for Gambas develop. Message-ID: <4B4DAE5A.2020902@...2324...> Hi ! I have to develop a gambas application (I have to customize gambas IDE too) , but I encounted some problem with my ubuntu 9.10 ,if you read this mailing list you know :D . My simple question is: What is the best linux distrubution for gambas developing ? thanks From wdahn at ...1000... Wed Jan 13 12:34:50 2010 From: wdahn at ...1000... (Werner) Date: Wed, 13 Jan 2010 19:34:50 +0800 Subject: [Gambas-user] Select a Row in a Tableview In-Reply-To: <8D42310D957CFB46AA11921A711D4D160256AB3F5B@...1899...> References: <8D42310D957CFB46AA11921A711D4D160256AB3F5B@...1899...> Message-ID: <4B4DAFDA.90408@...1000...> On 13/01/10 18:16, Stefan Miefert wrote: > Hello, > > how can i select a row in a TableView? Via code? > > Mytableview.row = 1 doesent working:) > A TableView is an editable GridView. http://www.mail-archive.com/gambas-user at lists.sourceforge.net/msg05860.html From smiefert at ...784... Wed Jan 13 12:45:28 2010 From: smiefert at ...784... (Stefan Miefert) Date: Wed, 13 Jan 2010 12:45:28 +0100 Subject: [Gambas-user] Select a Row in a Tableview In-Reply-To: <4B4DAFDA.90408@...1000...> References: <8D42310D957CFB46AA11921A711D4D160256AB3F5B@...1899...> <4B4DAFDA.90408@...1000...> Message-ID: <8D42310D957CFB46AA11921A711D4D160256AB3F67@...1899...> Hello, this syntax crashed gambas -----Urspr?ngliche Nachricht----- Von: Werner [mailto:wdahn at ...1000...] Gesendet: Mittwoch, 13. Januar 2010 12:35 An: mailing list for gambas users Betreff: Re: [Gambas-user] Select a Row in a Tableview On 13/01/10 18:16, Stefan Miefert wrote: > Hello, > > how can i select a row in a TableView? Via code? > > Mytableview.row = 1 doesent working:) > A TableView is an editable GridView. http://www.mail-archive.com/gambas-user at lists.sourceforge.net/msg05860.html ------------------------------------------------------------------------------ This SF.Net email is sponsored by the Verizon Developer Community Take advantage of Verizon's best-in-class app development support A streamlined, 14 day to market process makes app distribution fast and easy Join now and get one step closer to millions of Verizon customers http://p.sf.net/sfu/verizon-dev2dev _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From rscala at ...2362... Wed Jan 13 11:47:14 2010 From: rscala at ...2362... (Roberto Scala) Date: Wed, 13 Jan 2010 11:47:14 +0100 Subject: [Gambas-user] How To Play an .AVI Video File in Gambas Message-ID: <4B4DA4B2.4000406@...2362...> Is it possible to play an .avi or .flv file inside a form in gambas? If yes, how to do that? From smiefert at ...784... Wed Jan 13 13:15:23 2010 From: smiefert at ...784... (Stefan Miefert) Date: Wed, 13 Jan 2010 13:15:23 +0100 Subject: [Gambas-user] Select a Row in a Tableview In-Reply-To: <4B4DAFDA.90408@...1000...> References: <8D42310D957CFB46AA11921A711D4D160256AB3F5B@...1899...> <4B4DAFDA.90408@...1000...> Message-ID: <8D42310D957CFB46AA11921A711D4D160256AB3F6B@...1899...> -----Urspr?ngliche Nachricht----- Von: Werner [mailto:wdahn at ...1000...] Gesendet: Mittwoch, 13. Januar 2010 12:35 An: mailing list for gambas users Betreff: Re: [Gambas-user] Select a Row in a Tableview On 13/01/10 18:16, Stefan Miefert wrote: > Hello, > > how can i select a row in a TableView? Via code? > > Mytableview.row = 1 doesent working:) > > A TableView is an editable GridView. The syntax like tablevie.row.[0].selected = true Istn accepted by gambas and the syntax without the . before the [0] raise an error From ron at ...1740... Wed Jan 13 13:05:36 2010 From: ron at ...1740... (Ron) Date: Wed, 13 Jan 2010 13:05:36 +0100 Subject: [Gambas-user] How To Play an .AVI Video File in Gambas In-Reply-To: <4B4DA4B2.4000406@...2362...> References: <4B4DA4B2.4000406@...2362...> Message-ID: <4B4DB710.5000200@...1740...> Roberto Scala wrote: > Is it possible to play an .avi or .flv file inside a form in gambas? > > If yes, how to do that? > > > > ------------------------------------------------------------------------------ > This SF.Net email is sponsored by the Verizon Developer Community > Take advantage of Verizon's best-in-class app development support > A streamlined, 14 day to market process makes app distribution fast and easy > Join now and get one step closer to millions of Verizon customers > http://p.sf.net/sfu/verizon-dev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > One option is to try to play it with the gambas MoviePlayer example, if that works, use that code (based on an embedded mplayer instance) into your form. Regards, Ron_2nd. From gambas.fr at ...626... Wed Jan 13 14:20:07 2010 From: gambas.fr at ...626... (Fabien Bodard) Date: Wed, 13 Jan 2010 14:20:07 +0100 Subject: [Gambas-user] Best Linux Distribution for Gambas develop. In-Reply-To: <4B4DAE5A.2020902@...2324...> References: <4B4DAE5A.2020902@...2324...> Message-ID: <6324a42a1001130520x50598899ie3b7f982415909a7@...627...> ubuntu/mandrake/suse/fedora 2010/1/13 Matteo Lisi : > > ? Hi ! > ? I have to develop a gambas application (I have to customize gambas IDE too) > ? , but I encounted some problem with my ubuntu 9.10 ,if you read this mailing > ? list you know :D . > ? My simple question is: > ? What is the best linux distrubution for gambas developing ? > ? thanks > ------------------------------------------------------------------------------ > This SF.Net email is sponsored by the Verizon Developer Community > Take advantage of Verizon's best-in-class app development support > A streamlined, 14 day to market process makes app distribution fast and easy > Join now and get one step closer to millions of Verizon customers > http://p.sf.net/sfu/verizon-dev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Wed Jan 13 15:27:58 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Wed, 13 Jan 2010 15:27:58 +0100 Subject: [Gambas-user] Select a Row in a Tableview In-Reply-To: <8D42310D957CFB46AA11921A711D4D160256AB3F6B@...1899...> References: <8D42310D957CFB46AA11921A711D4D160256AB3F5B@...1899...> <4B4DAFDA.90408@...1000...> <8D42310D957CFB46AA11921A711D4D160256AB3F6B@...1899...> Message-ID: <201001131527.58715.gambas@...1...> > -----Urspr?ngliche Nachricht----- > Von: Werner [mailto:wdahn at ...1000...] > Gesendet: Mittwoch, 13. Januar 2010 12:35 > An: mailing list for gambas users > Betreff: Re: [Gambas-user] Select a Row in a Tableview > > On 13/01/10 18:16, Stefan Miefert wrote: > > Hello, > > > > how can i select a row in a TableView? Via code? > > > > Mytableview.row = 1 doesent working:) > > > > A TableView is an editable GridView. > > The syntax like tablevie.row.[0].selected = true > > Istn accepted by gambas and the syntax without the . before the [0] raise > an error > The syntax is: TableView.Rows[0].Selected = True Regards, -- Beno?t Minisini From gambas at ...1... Wed Jan 13 15:37:37 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Wed, 13 Jan 2010 15:37:37 +0100 Subject: [Gambas-user] Serial port (gb.net) curious error - reading byte value incorrectly. In-Reply-To: <4B4D580F.8070606@...1000...> References: <4B4D3733.3000905@...2360...> <4B4D580F.8070606@...1000...> Message-ID: <201001131537.37186.gambas@...1...> > On 13/01/10 11:00, Anthony Ivan wrote: > > Hello to All, > > > > [Gambas 2.19.0-1 on Fedora 12, Intel X86_64] > > > > I am currently working on a little project that communicates with a VHF > > radio via the MAP27 instruction set. All is working perfectly except for > > one small error... as detailed below... > > > > When the radio communicates with the PC the serialport_read() triggers > > perfectly and takes the byte's of data provided and places them into a > > queue for processing ... a typical translated incoming hex string may > > look something like: > > 16 10 02 04 01 00 00 10 03 > > > > The next message will increment the 5th byte value by one thus giving: > > 16 10 02 04 02 00 00 10 03 > > > > Oddly enough if the value coming to the serial port from the radio is 1D > > (binary value 00011101), Gambas seems to see that value as 1A (binary > > value 00011010). > > Every other input is working perfectly... and there is absolute > > certainty that the incoming byte value is indeed 1D. Also, the outbound > > side is ok... if I reply to the radio as if it had sent a 1D with the > > appropriate CRC16 checksum everything is happy. Could this be a small > > error in the serial code (gb.Net) that someone has encountered or rather > > a known issue elsewhere which I have not yet found in my searches? > > > > Thanks, > > > > Anthony > > We've discussed that about one month ago. It is about a flag that must > be set/cleared. The thread can be found in the archive. > > Regards > Werner > Yes. I forgot that problem. I fixed it in revision #2610. Now the CR/NL input conversion flags are cleared when opening a serial port. Regards, -- Beno?t Minisini From gambas at ...1... Wed Jan 13 15:46:43 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Wed, 13 Jan 2010 15:46:43 +0100 Subject: [Gambas-user] Gambas3 svn installs now, but won't run In-Reply-To: <4B4A45EE.6060005@...221...> References: <4B479AC3.9080503@...221...> <201001090040.40308.gambas@...1...> <4B4A45EE.6060005@...221...> Message-ID: <201001131546.43977.gambas@...1...> > This is giving me headaches. > Now I deleted everything related to gambas3, also /trunk. > Deleted libtool. > Installed libtool 2.2.6b again. > Did svn checkout again. > Now I don't have to be root anymore to ./reconf-all, ./configure -C and > make. But it doesn't work. I don't even have a "gambas3" file in > /usr/local/bin. The logfiles are attatched. If someone could have a look > at them... > > Libtool always tells me to add things to configure.ac - but I don't > understand that. > > Strange: I have libtool now in /usr/share/libtool and in > /usr/local/share/libtool. > > As well, aclocal is in /usr/local/share/aclocal, /usr/share/aclocal and > /usr/share/aclocal-1.10. > > Seems to be some mess, but I don't know how to handle it. > > Thanks for any help. > Matti > You have to install cairo development libraries (cairo and cairo-ft). The compilation fails because this was not added to the gb.gtk component requirements until recently. Regards, -- Beno?t Minisini From wdahn at ...1000... Wed Jan 13 14:30:46 2010 From: wdahn at ...1000... (Werner) Date: Wed, 13 Jan 2010 21:30:46 +0800 Subject: [Gambas-user] Select a Row in a Tableview In-Reply-To: <8D42310D957CFB46AA11921A711D4D160256AB3F67@...1899...> References: <8D42310D957CFB46AA11921A711D4D160256AB3F5B@...1899...> <4B4DAFDA.90408@...1000...> <8D42310D957CFB46AA11921A711D4D160256AB3F67@...1899...> Message-ID: <4B4DCB06.6030201@...1000...> On 13/01/10 19:45, Stefan Miefert wrote: > Hello, > > this syntax crashed gambas > > -----Urspr?ngliche Nachricht----- > Von: Werner [mailto:wdahn at ...1000...] > Gesendet: Mittwoch, 13. Januar 2010 12:35 > An: mailing list for gambas users > Betreff: Re: [Gambas-user] Select a Row in a Tableview > > On 13/01/10 18:16, Stefan Miefert wrote: > >> Hello, >> >> how can i select a row in a TableView? Via code? >> >> Mytableview.row = 1 doesent working:) >> >> > A TableView is an editable GridView. > > http://www.mail-archive.com/gambas-user at lists.sourceforge.net/msg05860.html > Which version of Gambas are you using? From rterry at ...1946... Wed Jan 13 21:56:59 2010 From: rterry at ...1946... (richard terry) Date: Thu, 14 Jan 2010 07:56:59 +1100 Subject: [Gambas-user] Best Linux Distribution for Gambas develop. In-Reply-To: <4B4DAE5A.2020902@...2324...> References: <4B4DAE5A.2020902@...2324...> Message-ID: <201001140756.59469.rterry@...1946...> On Wednesday 13 January 2010 22:28:26 Matteo Lisi wrote: > Hi ! > I have to develop a gambas application (I have to customize gambas IDE > too) , but I encounted some problem with my ubuntu 9.10 ,if you read this > mailing list you know :D . > My simple question is: > What is the best linux distrubution for gambas developing ? > thanks > --------------------------------------------------------------------------- > --- This SF.Net email is sponsored by the Verizon Developer Community > Take advantage of Verizon's best-in-class app development support > A streamlined, 14 day to market process makes app distribution fast and > easy Join now and get one step closer to millions of Verizon customers > http://p.sf.net/sfu/verizon-dev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > I'm Biased - ARCH linux always up to date and simple PKGBUILD means re- buildling gambas3 any number of times during the day takes a couple of minutes. regards Richard From math.eber at ...221... Wed Jan 13 22:10:45 2010 From: math.eber at ...221... (Matti) Date: Wed, 13 Jan 2010 22:10:45 +0100 Subject: [Gambas-user] Gambas3 svn installs now, but won't run In-Reply-To: <201001131546.43977.gambas@...1...> References: <4B479AC3.9080503@...221...> <201001090040.40308.gambas@...1...> <4B4A45EE.6060005@...221...> <201001131546.43977.gambas@...1...> Message-ID: <4B4E36D5.9090600@...221...> Thanks, Benoit. But no progress. cairo. cairo-devel, cairomm, cairomm-devel, python-cairo are installed. cairo-ft ??? Couldn't find it. But this just can't be the reason. There are so many errors and warnings and disabled compontents - there seems to be something completely wrong here. I still guess it's a result of installing libtool 2.2.6b. If I only knew how to check that, I wouldn't bother you. My recent logs are attatched. Thanks, Matti. Beno?t Minisini schrieb: >> This is giving me headaches. >> Now I deleted everything related to gambas3, also /trunk. >> Deleted libtool. >> Installed libtool 2.2.6b again. >> Did svn checkout again. >> Now I don't have to be root anymore to ./reconf-all, ./configure -C and >> make. But it doesn't work. I don't even have a "gambas3" file in >> /usr/local/bin. The logfiles are attatched. If someone could have a look >> at them... >> >> Libtool always tells me to add things to configure.ac - but I don't >> understand that. >> >> Strange: I have libtool now in /usr/share/libtool and in >> /usr/local/share/libtool. >> >> As well, aclocal is in /usr/local/share/aclocal, /usr/share/aclocal and >> /usr/share/aclocal-1.10. >> >> Seems to be some mess, but I don't know how to handle it. >> >> Thanks for any help. >> Matti >> > > You have to install cairo development libraries (cairo and cairo-ft). The > compilation fails because this was not added to the gb.gtk component > requirements until recently. > > Regards, > -------------- next part -------------- A non-text attachment was scrubbed... Name: Logs.tar.gz Type: application/x-gzip Size: 47515 bytes Desc: not available URL: From rterry at ...1946... Wed Jan 13 22:18:00 2010 From: rterry at ...1946... (richard terry) Date: Thu, 14 Jan 2010 08:18:00 +1100 Subject: [Gambas-user] Gambas3 svn installs now, but won't run In-Reply-To: <4B4E36D5.9090600@...221...> References: <4B479AC3.9080503@...221...> <201001131546.43977.gambas@...1...> <4B4E36D5.9090600@...221...> Message-ID: <201001140818.00288.rterry@...1946...> On Thursday 14 January 2010 08:10:45 Matti wrote: > Thanks, Benoit. > But no progress. > > cairo. cairo-devel, cairomm, cairomm-devel, python-cairo are installed. > cairo-ft ??? Couldn't find it. > > But this just can't be the reason. > There are so many errors and warnings and disabled compontents - there > seems to be something completely wrong here. > I still guess it's a result of installing libtool 2.2.6b. > If I only knew how to check that, I wouldn't bother you. > > My recent logs are attatched. > > Thanks, Matti. > > Beno?t Minisini schrieb: > >> This is giving me headaches. > >> Now I deleted everything related to gambas3, also /trunk. > >> Deleted libtool. > >> Installed libtool 2.2.6b again. > >> Did svn checkout again. > >> Now I don't have to be root anymore to ./reconf-all, ./configure -C and > >> make. But it doesn't work. I don't even have a "gambas3" file in > >> /usr/local/bin. The logfiles are attatched. If someone could have a > >> look at them... > >> > >> Libtool always tells me to add things to configure.ac - but I don't > >> understand that. > >> > >> Strange: I have libtool now in /usr/share/libtool and in > >> /usr/local/share/libtool. > >> > >> As well, aclocal is in /usr/local/share/aclocal, /usr/share/aclocal and > >> /usr/share/aclocal-1.10. > >> > >> Seems to be some mess, but I don't know how to handle it. > >> > >> Thanks for any help. > >> Matti > > > > You have to install cairo development libraries (cairo and cairo-ft). The > > compilation fails because this was not added to the gb.gtk component > > requirements until recently. > > > > Regards, > Not that this will be much help but I'm using libtool 2.2.6b-1 without problems (ARCH linux) with 2609 build. Regards Ricahrd From gambas at ...1... Wed Jan 13 22:28:13 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Wed, 13 Jan 2010 22:28:13 +0100 Subject: [Gambas-user] Gambas3 svn installs now, but won't run In-Reply-To: <4B4E36D5.9090600@...221...> References: <4B479AC3.9080503@...221...> <201001131546.43977.gambas@...1...> <4B4E36D5.9090600@...221...> Message-ID: <201001132228.13536.gambas@...1...> > Thanks, Benoit. > But no progress. > > cairo. cairo-devel, cairomm, cairomm-devel, python-cairo are installed. > cairo-ft ??? Couldn't find it. > > But this just can't be the reason. > There are so many errors and warnings and disabled compontents - there > seems to be something completely wrong here. > I still guess it's a result of installing libtool 2.2.6b. > If I only knew how to check that, I wouldn't bother you. > > My recent logs are attatched. > > Thanks, Matti. > No, there is progress. Try the latest revision, I fixed your compilation error, due to an old version of Qt4. It should go further now. Regards, -- Beno?t Minisini From oceanosoftlapalma at ...626... Thu Jan 14 10:32:53 2010 From: oceanosoftlapalma at ...626... (=?ISO-8859-1?Q?Ricardo_D=EDaz_Mart=EDn?=) Date: Thu, 14 Jan 2010 09:32:53 +0000 Subject: [Gambas-user] Best Linux Distribution for Gambas develop. In-Reply-To: <201001140756.59469.rterry@...1946...> References: <4B4DAE5A.2020902@...2324...> <201001140756.59469.rterry@...1946...> Message-ID: Ubuntu for me is the best for gb applications. I allways deploy gb apps in ubuntu server with freenx and clients can be windows/linux/mac. Regards 2010/1/13 richard terry > On Wednesday 13 January 2010 22:28:26 Matteo Lisi wrote: > > Hi ! > > I have to develop a gambas application (I have to customize gambas IDE > > too) , but I encounted some problem with my ubuntu 9.10 ,if you read > this > > mailing list you know :D . > > My simple question is: > > What is the best linux distrubution for gambas developing ? > > thanks > > > --------------------------------------------------------------------------- > > --- This SF.Net email is sponsored by the Verizon Developer Community > > Take advantage of Verizon's best-in-class app development support > > A streamlined, 14 day to market process makes app distribution fast and > > easy Join now and get one step closer to millions of Verizon customers > > http://p.sf.net/sfu/verizon-dev2dev > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > I'm Biased - ARCH linux always up to date and simple PKGBUILD means > re- > buildling gambas3 any number of times during the day takes a couple of > minutes. > > regards > > Richard > > > ------------------------------------------------------------------------------ > This SF.Net email is sponsored by the Verizon Developer Community > Take advantage of Verizon's best-in-class app development support > A streamlined, 14 day to market process makes app distribution fast and > easy > Join now and get one step closer to millions of Verizon customers > http://p.sf.net/sfu/verizon-dev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From mx4eva at ...626... Thu Jan 14 11:19:02 2010 From: mx4eva at ...626... (Fiddler63) Date: Thu, 14 Jan 2010 02:19:02 -0800 (PST) Subject: [Gambas-user] Modal dialog + Balloon hangs program In-Reply-To: <4B4DA303.9040908@...221...> References: <4B4D7D05.7000905@...221...> <27141176.post@...1379...> <4B4D8CA7.6030802@...221...> <27141746.post@...1379...> <27141906.post@...1379...> <4B4DA303.9040908@...221...> Message-ID: <27159021.post@...1379...> Yes, the program run normally within no hangups or issues. kim Ok, yes, you're right: Mine is 2.16 on an "somewhat older" Suse 10.3 as terminal server. But I guess it's not that. "works fine" means no problems with it on your system? Rolf Am 13.01.2010 10:28, schrieb Fiddler63: > > oops, I forgot. > Ubuntu 9.10 and Gambas 2.13 > Kim > > > Works fine here > Kim > > -- View this message in context: http://old.nabble.com/Modal-dialog-%2B-Balloon-hangs-program-tp27140888p27159021.html Sent from the gambas-user mailing list archive at Nabble.com. From kobolds at ...2041... Thu Jan 14 23:57:16 2010 From: kobolds at ...2041... (kobolds) Date: Thu, 14 Jan 2010 14:57:16 -0800 (PST) Subject: [Gambas-user] PictureBox problem (Gambas3) Message-ID: <27169578.post@...1379...> I having strange problem with PictureBox to display image. if I choose the image from picturebox properties , the image show up but when I do it from program , the picture not showing . in the program I do this picturebox1.picture = picture[application.path & "/image/back.png"] I found out that some of my picture is showing but some no. I have not a clue what going on . %-| http://old.nabble.com/file/p27169578/Back.png.tar.gz Back.png.tar.gz -- View this message in context: http://old.nabble.com/PictureBox-problem-%28Gambas3%29-tp27169578p27169578.html Sent from the gambas-user mailing list archive at Nabble.com. From bill at ...2351... Fri Jan 15 01:33:04 2010 From: bill at ...2351... (Bill Richman) Date: Thu, 14 Jan 2010 18:33:04 -0600 Subject: [Gambas-user] PictureBox problem (Gambas3) In-Reply-To: <27169578.post@...1379...> References: <27169578.post@...1379...> Message-ID: <4B4FB7C0.40201@...2350...> Have you tried: picturebox1.Picture = Picture.load(application.path & "/image/back.png") If only part of your picture is showing, try setting the "stretch" property of the Picturebox control to "True". Bill Richman - Lincoln, Nebraska Tilter at windmills, maker of pies in the sky, & curmudgeon email: bill at ...2350... web: www.geektrap.com kobolds wrote: > I having strange problem with PictureBox to display image. > > if I choose the image from picturebox properties , the image show up but > when I do it from program , the picture not showing . > > in the program I do this > picturebox1.picture = picture[application.path & "/image/back.png"] > > I found out that some of my picture is showing but some no. I have not a > clue what going on . %-| > > > http://old.nabble.com/file/p27169578/Back.png.tar.gz Back.png.tar.gz > > From kobolds at ...2041... Fri Jan 15 03:45:04 2010 From: kobolds at ...2041... (kobolds) Date: Thu, 14 Jan 2010 18:45:04 -0800 (PST) Subject: [Gambas-user] PictureBox problem (Gambas3) In-Reply-To: <4B4FB7C0.40201@...2350...> References: <27169578.post@...1379...> <4B4FB7C0.40201@...2350...> Message-ID: <27171708.post@...1379...> I try your suggestion and this time error show up ("unable to load image") when i run . I have few image (png) in that folder with same size . I try few of them and found that some ok but some not . I can load the all the image from the picturebox properties without any problem is this a bugs? Bill Richman wrote: > > Have you tried: > > picturebox1.Picture = Picture.load(application.path & "/image/back.png") > > If only part of your picture is showing, try setting the "stretch" > property of the Picturebox control to "True". > > Bill Richman - Lincoln, Nebraska > Tilter at windmills, maker of pies in the sky, & curmudgeon > email: bill at ...2350... web: www.geektrap.com > > > > > kobolds wrote: >> I having strange problem with PictureBox to display image. >> >> if I choose the image from picturebox properties , the image show up but >> when I do it from program , the picture not showing . >> >> in the program I do this >> picturebox1.picture = picture[application.path & "/image/back.png"] >> >> I found out that some of my picture is showing but some no. I have not a >> clue what going on . %-| >> >> >> http://old.nabble.com/file/p27169578/Back.png.tar.gz Back.png.tar.gz >> >> > > ------------------------------------------------------------------------------ > Throughout its 18-year history, RSA Conference consistently attracts the > world's best and brightest in the field, creating opportunities for > Conference > attendees to learn about information security's most important issues > through > interactions with peers, luminaries and emerging and established > companies. > http://p.sf.net/sfu/rsaconf-dev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > -- View this message in context: http://old.nabble.com/PictureBox-problem-%28Gambas3%29-tp27169578p27171708.html Sent from the gambas-user mailing list archive at Nabble.com. From bill at ...2351... Fri Jan 15 04:16:28 2010 From: bill at ...2351... (Bill Richman) Date: Thu, 14 Jan 2010 21:16:28 -0600 Subject: [Gambas-user] PictureBox problem (Gambas3) In-Reply-To: <27171708.post@...1379...> References: <27169578.post@...1379...> <4B4FB7C0.40201@...2350...> <27171708.post@...1379...> Message-ID: <4B4FDE0C.8030708@...2350...> Make sure you aren't ending up with two /'s between the path and the filename when you concatenate them with &. Also, do the ones that work (or the ones that don't) have something in common in terms of the filename? Maybe something to do with the length of the filename, or special characters in the filename? Just guessing... Bill Richman - Lincoln, Nebraska Tilter at windmills, maker of pies in the sky, & curmudgeon email: bill at ...2350... web: www.geektrap.com kobolds wrote: > I try your suggestion and this time error show up ("unable to load image") > when i run . > > I have few image (png) in that folder with same size . I try few of them and > found that some ok but some not . > > I can load the all the image from the picturebox properties without any > problem > > is this a bugs? > > > > Bill Richman wrote: > >> Have you tried: >> >> picturebox1.Picture = Picture.load(application.path & "/image/back.png") >> >> If only part of your picture is showing, try setting the "stretch" >> property of the Picturebox control to "True". >> >> Bill Richman - Lincoln, Nebraska >> Tilter at windmills, maker of pies in the sky, & curmudgeon >> email: bill at ...2350... web: www.geektrap.com >> >> >> >> >> kobolds wrote: >> >>> I having strange problem with PictureBox to display image. >>> >>> if I choose the image from picturebox properties , the image show up but >>> when I do it from program , the picture not showing . >>> >>> in the program I do this >>> picturebox1.picture = picture[application.path & "/image/back.png"] >>> >>> I found out that some of my picture is showing but some no. I have not a >>> clue what going on . %-| >>> >>> >>> http://old.nabble.com/file/p27169578/Back.png.tar.gz Back.png.tar.gz >>> >>> >>> >> ------------------------------------------------------------------------------ >> Throughout its 18-year history, RSA Conference consistently attracts the >> world's best and brightest in the field, creating opportunities for >> Conference >> attendees to learn about information security's most important issues >> through >> interactions with peers, luminaries and emerging and established >> companies. >> http://p.sf.net/sfu/rsaconf-dev2dev >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> >> >> > > From nospam.nospam.nospam at ...626... Fri Jan 15 09:04:13 2010 From: nospam.nospam.nospam at ...626... (nospam.nospam.nospam at ...626...) Date: Fri, 15 Jan 2010 19:04:13 +1100 Subject: [Gambas-user] Help needed with pcre Message-ID: I have this line of code: Reg = New Regexp("=A7=F1=FChw=A4=A3", "=[\\da-fA-F]{2}") "=A7" is correctly matched, but it is the only match returned. How do I make Regexp match every occurrence so that =F1,=FC, =A4 and =A3 are also returned as matches? I've tried perldoc.perl.org and other sites but I can't find the answer. Any suggestions welcome. From gambas at ...1... Fri Jan 15 09:59:22 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Fri, 15 Jan 2010 09:59:22 +0100 Subject: [Gambas-user] PictureBox problem (Gambas3) In-Reply-To: <27169578.post@...1379...> References: <27169578.post@...1379...> Message-ID: <201001150959.22298.gambas@...1...> > I having strange problem with PictureBox to display image. > > if I choose the image from picturebox properties , the image show up but > when I do it from program , the picture not showing . > > in the program I do this > picturebox1.picture = picture[application.path & "/image/back.png"] > > I found out that some of my picture is showing but some no. I have not a > clue what going on . %-| > > > http://old.nabble.com/file/p27169578/Back.png.tar.gz Back.png.tar.gz > Please provide your project. And, anyway, you must not absolute paths pointing at your project directory, because these paths do not exist anymore when you make an executable. You must use relative paths instead. See the documentation page http://gambasdoc.org/help/cat/path for more details! Regards, -- Beno?t Minisini From nospam.nospam.nospam at ...626... Fri Jan 15 09:59:55 2010 From: nospam.nospam.nospam at ...626... (nospam.nospam.nospam at ...626...) Date: Fri, 15 Jan 2010 19:59:55 +1100 Subject: [Gambas-user] [SOLVED] Re: Help needed with pcre In-Reply-To: References: Message-ID: 2010/1/15 nospam.nospam.nospam at ...626... : > I have this line of code: > > Reg = New Regexp("=A7=F1=FChw=A4=A3", "=[\\da-fA-F]{2}") > > "=A7" is correctly matched, but it is the only match returned. > > How do I make Regexp match every occurrence so that =F1,=FC, =A4 and > =A3 are also returned as matches? > > I've tried perldoc.perl.org and other sites but I can't find the answer. > > Any suggestions welcome. Thank you, Markus Schatten. I found this: http://www.mailinglistarchive.com/gambas-user at lists.sourceforge.net/msg01355.html From joshiggins at ...1601... Fri Jan 15 11:36:57 2010 From: joshiggins at ...1601... (Joshua Higgins) Date: Fri, 15 Jan 2010 10:36:57 +0000 Subject: [Gambas-user] update to report-ng Message-ID: <4247f5441001150236p3b6f6b86pe0ba91a327352ad@...627...> Hi list, I have updated the report-ng script so that it should work with any distro that is supplying an /etc/lsb-release file. Before it only expected Ubuntu to provide this file. Regards, -- joshua higgins >>>>>>------ -------------- next part -------------- A non-text attachment was scrubbed... Name: report-ng Type: application/octet-stream Size: 3270 bytes Desc: not available URL: From pinozollo at ...626... Fri Jan 15 17:38:02 2010 From: pinozollo at ...626... (Pino Zollo) Date: Fri, 15 Jan 2010 13:38:02 -0300 Subject: [Gambas-user] Collection of String[2] Message-ID: <201001151338.02705.pinozollo@...626...> Please, where am I wrong ? For Element[1] and Element[0] I get always the same values.... STATIC PUBLIC Lista AS NEW Collection ... ... PUBLIC FUNCTION xyz ... DIM Element AS String[2] DIM Parti AS String[2] ... DO WHILE... Parti[0] = myStruc.Value(0) Parti[1] = myStruc.Value(2) Lista.Add(Parti, myStruc.Value(1)) LOOP ..... FOR EACH Element IN Lista PRINT Lista.Key;; " ";; Element[1];; " ";; Element[0] NEXT END ------------------------ Many Thanks in advance Pino -- Key ID: 0xF6768208 Key fingerprint = B16D 0A7C 5B29 A334 CE6A 71F6 EAF8 3D88 F676 8208 Key server: hkp://wwwkeys.eu.pgp.net From kobolds at ...2041... Fri Jan 15 18:53:56 2010 From: kobolds at ...2041... (kobolds) Date: Fri, 15 Jan 2010 09:53:56 -0800 (PST) Subject: [Gambas-user] PictureBox problem (Gambas3) In-Reply-To: <201001150959.22298.gambas@...1...> References: <27169578.post@...1379...> <201001150959.22298.gambas@...1...> Message-ID: <27180994.post@...1379...> I found the problem . sorry it's my fault . I mess up some code while try to rewrite my program in gb2 to gb3. Beno?t Minisini wrote: > >> I having strange problem with PictureBox to display image. >> >> if I choose the image from picturebox properties , the image show up but >> when I do it from program , the picture not showing . >> >> in the program I do this >> picturebox1.picture = picture[application.path & "/image/back.png"] >> >> I found out that some of my picture is showing but some no. I have not a >> clue what going on . %-| >> >> >> http://old.nabble.com/file/p27169578/Back.png.tar.gz Back.png.tar.gz >> > > Please provide your project. > > And, anyway, you must not absolute paths pointing at your project > directory, > because these paths do not exist anymore when you make an executable. You > must > use relative paths instead. > > See the documentation page http://gambasdoc.org/help/cat/path for more > details! > > Regards, > > -- > Beno?t Minisini > > ------------------------------------------------------------------------------ > Throughout its 18-year history, RSA Conference consistently attracts the > world's best and brightest in the field, creating opportunities for > Conference > attendees to learn about information security's most important issues > through > interactions with peers, luminaries and emerging and established > companies. > http://p.sf.net/sfu/rsaconf-dev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > -- View this message in context: http://old.nabble.com/PictureBox-problem-%28Gambas3%29-tp27169578p27180994.html Sent from the gambas-user mailing list archive at Nabble.com. From pinozollo at ...626... Fri Jan 15 20:04:52 2010 From: pinozollo at ...626... (Pino Zollo) Date: Fri, 15 Jan 2010 16:04:52 -0300 Subject: [Gambas-user] Collections Message-ID: <201001151604.52616.pinozollo@...626...> Hi, please can somebody explain the following from the documentation: -------- DIM Dict AS NEW Collection DIM Element AS String Dict["Blue"] = 3 Dict["Red"] = 1 Dict["Green"] = 2 FOR EACH Element IN Dict PRINT Element; NEXT
3 1 2 ---------- 3,1 and 2 are Integer, so why Element is a String and Prints 3 1 3 instead of Blue, Red and Green ? Thanks Pino -- Key ID: 0xF6768208 Key fingerprint = B16D 0A7C 5B29 A334 CE6A 71F6 EAF8 3D88 F676 8208 Key server: hkp://wwwkeys.eu.pgp.net From kobolds at ...2041... Fri Jan 15 20:53:29 2010 From: kobolds at ...2041... (kobolds) Date: Fri, 15 Jan 2010 11:53:29 -0800 (PST) Subject: [Gambas-user] problem bold style in select font dialog (gambas3) Message-ID: <27182733.post@...1379...> I small problem with the select font dialog . when I try to select to bold style , the text doesn't change to bold . I have to first click other style (normal , italic or bold italic) and then click the bold style , by then the bold style will work . -- View this message in context: http://old.nabble.com/problem-bold-style-in-select-font-dialog-%28gambas3%29-tp27182733p27182733.html Sent from the gambas-user mailing list archive at Nabble.com. From Karl.Reinl at ...2345... Fri Jan 15 21:39:14 2010 From: Karl.Reinl at ...2345... (Charlie Reinl) Date: Fri, 15 Jan 2010 21:39:14 +0100 Subject: [Gambas-user] Collections In-Reply-To: <201001151604.52616.pinozollo@...626...> References: <201001151604.52616.pinozollo@...626...> Message-ID: <1263587954.6411.4.camel@...40...> Am Freitag, den 15.01.2010, 16:04 -0300 schrieb Pino Zollo: > DIM Dict AS NEW Collection > DIM Element AS String > > Dict["Blue"] = 3 > Dict["Red"] = 1 > Dict["Green"] = 2 > > FOR EACH Element IN Dict > PRINT Element; > NEXT > Salut, did you ever more then run that code ? debug ? or looked whats a Collection ? OK, "Blue","Red" and "Green" are the KEY for the Collection Element, and so they declared and asigned. try that! PUBLIC SUB Main() DIM Dict AS NEW Collection DIM Element AS String Dict["Blue"] = 3 Dict["Red"] = 1 Dict["Green"] = 2 FOR EACH Element IN Dict PRINT Element PRINT Dict.Key NEXT END -- Charlie From kobolds at ...2041... Fri Jan 15 23:02:16 2010 From: kobolds at ...2041... (kobolds) Date: Fri, 15 Jan 2010 14:02:16 -0800 (PST) Subject: [Gambas-user] problem with aligment same width (gambas3) Message-ID: <27184227.post@...1379...> gambas3 qt4 I notice that gb ide auto change the width when it's not suppose too. I have 3 button each with width 90, 100,100 I want all 3 button width become 90 . I select them and choose align same width . I notice all 3 button width now become 91 when it suppose to be 90 . -- View this message in context: http://old.nabble.com/problem-with-aligment-same-width-%28gambas3%29-tp27184227p27184227.html Sent from the gambas-user mailing list archive at Nabble.com. From rterry at ...1946... Sat Jan 16 01:42:35 2010 From: rterry at ...1946... (richard terry) Date: Sat, 16 Jan 2010 11:42:35 +1100 Subject: [Gambas-user] update to report-ng In-Reply-To: <4247f5441001150236p3b6f6b86pe0ba91a327352ad@...627...> References: <4247f5441001150236p3b6f6b86pe0ba91a327352ad@...627...> Message-ID: <201001161142.35244.rterry@...1946...> On Friday 15 January 2010 21:36:57 Joshua Higgins wrote: > Hi list, > > I have updated the report-ng script so that it should work with any > distro that is supplying an /etc/lsb-release file. Before it only > expected Ubuntu to provide this file. > > Regards, > > >>>>>>------ > works with ARCH From rterry at ...1946... Sat Jan 16 08:07:59 2010 From: rterry at ...1946... (richard terry) Date: Sat, 16 Jan 2010 18:07:59 +1100 Subject: [Gambas-user] Webkit ?not rendering strike through properly Message-ID: <201001161807.59067.rterry@...1946...> Not sure if this problem is mine/webmit/my gambas. I just had occasion to use strikethough in some html , and despite the code it did't appear in the webkit window. Some time later I noticed it was appearing in another webkit window using the same code. I swiped the paragraph which should have been strike through with a mouse, and magically the strike through text appeared. Weird. Anyone else noticed this? Regards richard From mx4eva at ...626... Sat Jan 16 09:39:27 2010 From: mx4eva at ...626... (Fiddler63) Date: Sat, 16 Jan 2010 00:39:27 -0800 (PST) Subject: [Gambas-user] problem with aligment same width (gambas3) In-Reply-To: <27184227.post@...1379...> References: <27184227.post@...1379...> Message-ID: <27187522.post@...1379...> kobolds wrote: > > gambas3 qt4 > > I notice that gb ide auto change the width when it's not suppose too. > > I have 3 button each with width 90, 100,100 > > I want all 3 button width become 90 . I select them and choose align same > width . I notice all 3 button width now become 91 when it suppose to be 90 > . > > I also notice another problem that when I copy paste a button with width > 90 , the pasted button width is 89 > > This is also an issue in V2.13 And your layout in the IDE is quite different to layout when running the programming. Kim -- View this message in context: http://old.nabble.com/problem-with-aligment-same-width-%28gambas3%29-tp27184227p27187522.html Sent from the gambas-user mailing list archive at Nabble.com. From nospam.nospam.nospam at ...626... Sat Jan 16 09:48:32 2010 From: nospam.nospam.nospam at ...626... (nospam.nospam.nospam at ...626...) Date: Sat, 16 Jan 2010 19:48:32 +1100 Subject: [Gambas-user] problem with aligment same width (gambas3) In-Reply-To: <27187522.post@...1379...> References: <27184227.post@...1379...> <27187522.post@...1379...> Message-ID: 2010/1/16 Fiddler63 : > kobolds wrote: >> >> gambas3 qt4 >> >> I notice that gb ide auto change the width when it's not suppose too. >> >> I have 3 button each with width 90, 100,100 >> >> ?I want all 3 button width become 90 . I select them and choose align same >> width . I notice all 3 button width now become 91 when it suppose to be 90 >> . >> >> I also notice another problem that when I copy paste a button with width >> 90 , the pasted button width is 89 >> >> > > This is also an issue in V2.13 Crikey. When Adam was a lad... > And your layout in the IDE is quite different to layout when running the > programming. > Kim These are all non-Gambas-related issues; they are caused by the qt & gtk toolkits. I had all kinds of weird issues so I moved to gb3 and qt4 on Linux Ultimate edition 2.5 (Ubuntu 9.10 based) and the problem was solved. The UI issues gave me freaking headaches and I was too willing to blame Gambas but I was wrong. As soon as I got to gb3 and qt4, all of those kinds of issues went away. Hint! Hint! From mx4eva at ...626... Sat Jan 16 10:34:29 2010 From: mx4eva at ...626... (Fiddler63) Date: Sat, 16 Jan 2010 01:34:29 -0800 (PST) Subject: [Gambas-user] Error - Signal 11 - Gambas 2.19 Message-ID: <27187858.post@...1379...> A button with the following code will cause a Signal 11 error in Gambas 2.19. If I remove the ([50, 50]) I get no error. PUBLIC SUB New_Btn_Click() DIM hPic AS Picture hPic = NEW Picture([50, 50]) .... END Cheers Kim -- View this message in context: http://old.nabble.com/Error---Signal-11---Gambas-2.19-tp27187858p27187858.html Sent from the gambas-user mailing list archive at Nabble.com. From mx4eva at ...626... Sat Jan 16 10:47:18 2010 From: mx4eva at ...626... (Fiddler63) Date: Sat, 16 Jan 2010 01:47:18 -0800 (PST) Subject: [Gambas-user] problem with aligment same width (gambas3) In-Reply-To: References: <27184227.post@...1379...> <27187522.post@...1379...> Message-ID: <27187938.post@...1379...> Kadaitcha Man wrote: > > 2010/1/16 Fiddler63 : >> kobolds wrote: >>> >>> gambas3 qt4 >>> >>> I notice that gb ide auto change the width when it's not suppose too. >>> >>> I have 3 button each with width 90, 100,100 >>> >>> ?I want all 3 button width become 90 . I select them and choose align >>> same >>> width . I notice all 3 button width now become 91 when it suppose to be >>> 90 >>> . >>> >>> I also notice another problem that when I copy paste a button with width >>> 90 , the pasted button width is 89 >>> >>> >> >> This is also an issue in V2.13 > > Crikey. When Adam was a lad... > >> And your layout in the IDE is quite different to layout when running the >> programming. >> Kim > > These are all non-Gambas-related issues; they are caused by the qt & > gtk toolkits. I had all kinds of weird issues so I moved to gb3 and > qt4 on Linux Ultimate edition 2.5 (Ubuntu 9.10 based) and the problem > was solved. The UI issues gave me freaking headaches and I was too > willing to blame Gambas but I was wrong. As soon as I got to gb3 and > qt4, all of those kinds of issues went away. > > Hint! Hint! > > I just installed Gambas 2.19 which I presume is Gambas3. Still same > issues. > Will try qt4 > I'm also running Ubuntu 9.10 > Cheers > > -- View this message in context: http://old.nabble.com/problem-with-aligment-same-width-%28gambas3%29-tp27184227p27187938.html Sent from the gambas-user mailing list archive at Nabble.com. From pinozollo at ...626... Sat Jan 16 11:23:00 2010 From: pinozollo at ...626... (Pino Zollo) Date: Sat, 16 Jan 2010 07:23:00 -0300 Subject: [Gambas-user] Collections In-Reply-To: <1263587954.6411.4.camel@...40...> References: <201001151604.52616.pinozollo@...626...> <1263587954.6411.4.camel@...40...> Message-ID: <201001160723.00842.pinozollo@...626...> Il venerd? 15 gennaio 2010 17:39:14 hai scritto: > Am Freitag, den 15.01.2010, 16:04 -0300 schrieb Pino Zollo: > > DIM Dict AS NEW Collection > > DIM Element AS String > > > > Dict["Blue"] = 3 > > Dict["Red"] = 1 > > Dict["Green"] = 2 > > > > FOR EACH Element IN Dict > > PRINT Element; > > NEXT > > Salut, > > did you ever more then run that code ? debug ? or looked whats a > Collection ? > > OK, "Blue","Red" and "Green" are the KEY for the Collection Element, > and so they declared and asigned. > > try that! > > PUBLIC SUB Main() > DIM Dict AS NEW Collection > DIM Element AS String > > Dict["Blue"] = 3 > Dict["Red"] = 1 > Dict["Green"] = 2 > > FOR EACH Element IN Dict > PRINT Element > PRINT Dict.Key > NEXT > END Thanks Charlie, I was trying to understand Collections better as I have a wrong behaviour in the following piece of code when I use an array of two strings as element; the key is an unique string. The two print statements print exactly the same thing...the Lista.key is correct and all different, but the other ( ; Element[1];; " ";; Element[0] ) print always the last element added to the structure. If instead of using an Array[2] I use a single String joining the two strings into a single one, then all works perfectly.... ...so I guess that there is a bug in how Structure handles Variant elements. Just another example of my bad luck ! ....or maybe I do not understand something. Best regards Pino --------------------------------------------- DO WHILE i < MyArray.Count myStruc = MyArray.Pop() a = 0 DO WHILE a < myStruc.Count ' DEBUG myStruc.Key(a);; myStruc.Value(a) ' myStruc.dataType(a) Disp.DisRes.Text = Disp.DisRes.Text & myStruc.Key(a) & ": " & myStruc.Value(a) WAIT Disp.DisRes.Pos = Len(Disp.DisRes.Text) Disp.DisRes.EnsureVisible() INC a LOOP Parti[0] = myStruc.Value(0) Parti[1] = myStruc.Value(2) ' DEBUG Parti[0];; Parti[1];; myStruc.Value(1) ' Lista.Add(Parti, myStruc.Value(1)) ' acts same as the following Lista[myStruc.Value(1)] = Parti DEBUG Lista.Count;; Lista[myStruc.Value(1)][1];; " ";; Lista[myStruc.Value(1)][0] Disp.DisRes.Text = Disp.DisRes.Text & "~~~~~~~~~" INC i LOOP ' CBCommand.Clear ' CBComm2.Clear FOR EACH Element IN Lista PRINT Lista.Key;; " ";; Lista[Lista.key][1];; " ";; Lista[Lista.key][0] PRINT Lista.Key;; " ";; Element[1];; " ";; Element[0] ' SELECT CASE Element[1] ' CASE "n:s" ' CBCommand.Add(Lista.Key) ' CASE "s:n" ' CBComm2.Add(Lista.Key) ' END SELECT NEXT ----------------------------------------------------- -- Key ID: 0xF6768208 Key fingerprint = B16D 0A7C 5B29 A334 CE6A 71F6 EAF8 3D88 F676 8208 Key server: hkp://wwwkeys.eu.pgp.net From nospam.nospam.nospam at ...626... Sat Jan 16 11:29:33 2010 From: nospam.nospam.nospam at ...626... (nospam.nospam.nospam at ...626...) Date: Sat, 16 Jan 2010 21:29:33 +1100 Subject: [Gambas-user] Collections In-Reply-To: <201001160723.00842.pinozollo@...626...> References: <201001151604.52616.pinozollo@...626...> <1263587954.6411.4.camel@...40...> <201001160723.00842.pinozollo@...626...> Message-ID: 2010/1/16 Pino Zollo : > The two print statements print exactly the same thing...the Lista.key is correct and all different, but the > other ( ; Element[1];; " ? ";; Element[0] ) print always the last element added to the structure. First you need to sort out if you have a problem in your debug line. > DEBUG Lista.Count;; Lista[myStruc.Value(1)][1];; " ";; Lista[myStruc.Value(1)][0] Put a breakpoint on this line: > Disp.DisRes.Text = Disp.DisRes.Text & "~~~~~~~~~" Then inspect myStruc in the IDE. If the inspection of myStruc shows the correct values then what you have in the debug line is wrong. From Karl.Reinl at ...2345... Sat Jan 16 12:25:56 2010 From: Karl.Reinl at ...2345... (Charlie Reinl) Date: Sat, 16 Jan 2010 12:25:56 +0100 Subject: [Gambas-user] Collections In-Reply-To: <201001160723.00842.pinozollo@...626...> References: <201001151604.52616.pinozollo@...626...> <1263587954.6411.4.camel@...40...> <201001160723.00842.pinozollo@...626...> Message-ID: <1263641156.6710.10.camel@...40...> Am Samstag, den 16.01.2010, 07:23 -0300 schrieb Pino Zollo: > Il venerd? 15 gennaio 2010 17:39:14 hai scritto: > > Am Freitag, den 15.01.2010, 16:04 -0300 schrieb Pino Zollo: > > > DIM Dict AS NEW Collection > > > DIM Element AS String > > > > > > Dict["Blue"] = 3 > > > Dict["Red"] = 1 > > > Dict["Green"] = 2 > > > > > > FOR EACH Element IN Dict > > > PRINT Element; > > > NEXT > > > > Salut, > > > > did you ever more then run that code ? debug ? or looked whats a > > Collection ? > > > > OK, "Blue","Red" and "Green" are the KEY for the Collection Element, > > and so they declared and asigned. > > > > try that! > > > > PUBLIC SUB Main() > > DIM Dict AS NEW Collection > > DIM Element AS String > > > > Dict["Blue"] = 3 > > Dict["Red"] = 1 > > Dict["Green"] = 2 > > > > FOR EACH Element IN Dict > > PRINT Element > > PRINT Dict.Key > > NEXT > > END > > Thanks Charlie, > I was trying to understand Collections better as I have a wrong behaviour in the following piece of code > when I use an array of two strings as element; the key is an unique string. > > The two print statements print exactly the same thing...the Lista.key is correct and all different, but the > other ( ; Element[1];; " ";; Element[0] ) print always the last element added to the structure. > > If instead of using an Array[2] I use a single String joining the two strings into a single one, then all works > perfectly.... > > ...so I guess that there is a bug in how Structure handles Variant elements. > > Just another example of my bad luck ! > ....or maybe I do not understand something. > > Best regards > > Pino > --------------------------------------------- > DO WHILE i < MyArray.Count > myStruc = MyArray.Pop() > a = 0 > DO WHILE a < myStruc.Count > ' DEBUG myStruc.Key(a);; myStruc.Value(a) ' myStruc.dataType(a) > Disp.DisRes.Text = Disp.DisRes.Text & myStruc.Key(a) & ": " & myStruc.Value(a) > WAIT > Disp.DisRes.Pos = Len(Disp.DisRes.Text) > Disp.DisRes.EnsureVisible() > INC a > LOOP > Parti[0] = myStruc.Value(0) > Parti[1] = myStruc.Value(2) > ' DEBUG Parti[0];; Parti[1];; myStruc.Value(1) > ' Lista.Add(Parti, myStruc.Value(1)) ' acts same as the following > Lista[myStruc.Value(1)] = Parti > DEBUG Lista.Count;; Lista[myStruc.Value(1)][1];; " ";; Lista[myStruc.Value(1)][0] > Disp.DisRes.Text = Disp.DisRes.Text & "~~~~~~~~~" > INC i > LOOP > ' CBCommand.Clear > ' CBComm2.Clear > FOR EACH Element IN Lista > > PRINT Lista.Key;; " ";; Lista[Lista.key][1];; " ";; Lista[Lista.key][0] > PRINT Lista.Key;; " ";; Element[1];; " ";; Element[0] > > ' SELECT CASE Element[1] > ' CASE "n:s" > ' CBCommand.Add(Lista.Key) > ' CASE "s:n" > ' CBComm2.Add(Lista.Key) > ' END SELECT > NEXT > ----------------------------------------------------- > Salut Pino, my problem with your problem is: That is just a piece of code, I can only run and debug, if I invent ALL the rest. And so,every test will say nothing(if it is not a typo in that piece code). So please sent always a full run able gambas-archive. That has not to be the whole project, but a part of it, which reach that piece of code without any problems. I saw often the problem by producing such an example. -- Amicalement Charlie From wdahn at ...1000... Sat Jan 16 12:40:41 2010 From: wdahn at ...1000... (Werner) Date: Sat, 16 Jan 2010 19:40:41 +0800 Subject: [Gambas-user] Collections In-Reply-To: <201001160723.00842.pinozollo@...626...> References: <201001151604.52616.pinozollo@...626...> <1263587954.6411.4.camel@...40...> <201001160723.00842.pinozollo@...626...> Message-ID: <4B51A5B9.8080500@...1000...> On 16/01/10 18:23, Pino Zollo wrote: > Il venerd? 15 gennaio 2010 17:39:14 hai scritto: > >> Am Freitag, den 15.01.2010, 16:04 -0300 schrieb Pino Zollo: >> >>> DIM Dict AS NEW Collection >>> DIM Element AS String >>> >>> Dict["Blue"] = 3 >>> Dict["Red"] = 1 >>> Dict["Green"] = 2 >>> >>> FOR EACH Element IN Dict >>> PRINT Element; >>> NEXT >>> >> Salut, >> >> did you ever more then run that code ? debug ? or looked whats a >> Collection ? >> >> OK, "Blue","Red" and "Green" are the KEY for the Collection Element, >> and so they declared and asigned. >> >> try that! >> >> PUBLIC SUB Main() >> DIM Dict AS NEW Collection >> DIM Element AS String >> >> Dict["Blue"] = 3 >> Dict["Red"] = 1 >> Dict["Green"] = 2 >> >> FOR EACH Element IN Dict >> PRINT Element >> PRINT Dict.Key >> NEXT >> END >> > Thanks Charlie, > I was trying to understand Collections better as I have a wrong behaviour in the following piece of code > when I use an array of two strings as element; the key is an unique string. > > The two print statements print exactly the same thing...the Lista.key is correct and all different, but the > other ( ; Element[1];; " ";; Element[0] ) print always the last element added to the structure. > > If instead of using an Array[2] I use a single String joining the two strings into a single one, then all works > perfectly.... > > ...so I guess that there is a bug in how Structure handles Variant elements. > > Just another example of my bad luck ! > ....or maybe I do not understand something. > > Best regards > > Pino > --------------------------------------------- > DO WHILE i < MyArray.Count > myStruc = MyArray.Pop() > a = 0 > DO WHILE a < myStruc.Count > ' DEBUG myStruc.Key(a);; myStruc.Value(a) ' myStruc.dataType(a) > Disp.DisRes.Text = Disp.DisRes.Text & myStruc.Key(a) & ": " & myStruc.Value(a) > WAIT > Disp.DisRes.Pos = Len(Disp.DisRes.Text) > Disp.DisRes.EnsureVisible() > INC a > LOOP > Parti[0] = myStruc.Value(0) > Parti[1] = myStruc.Value(2) > ' DEBUG Parti[0];; Parti[1];; myStruc.Value(1) > ' Lista.Add(Parti, myStruc.Value(1)) ' acts same as the following > Lista[myStruc.Value(1)] = Parti > DEBUG Lista.Count;; Lista[myStruc.Value(1)][1];; " ";; Lista[myStruc.Value(1)][0] > Disp.DisRes.Text = Disp.DisRes.Text & "~~~~~~~~~" > INC i > LOOP > ' CBCommand.Clear > ' CBComm2.Clear > FOR EACH Element IN Lista > > PRINT Lista.Key;; " ";; Lista[Lista.key][1];; " ";; Lista[Lista.key][0] > PRINT Lista.Key;; " ";; Element[1];; " ";; Element[0] > > ' SELECT CASE Element[1] > ' CASE "n:s" > ' CBCommand.Add(Lista.Key) > ' CASE "s:n" > ' CBComm2.Add(Lista.Key) > ' END SELECT > NEXT > ----------------------------------------------------- > > I look at the code above and wonder abount the first 2 lines. Say i is 3 and count is 6. When it loops you get the following: i count 3 6 4 5 end of loop because the Pop in the second line reduces count. Is that what you wanted? Regards Werner From kobolds at ...2041... Sat Jan 16 15:09:01 2010 From: kobolds at ...2041... (kobolds) Date: Sat, 16 Jan 2010 06:09:01 -0800 (PST) Subject: [Gambas-user] problem with aligment same width (gambas3) In-Reply-To: References: <27184227.post@...1379...> <27187522.post@...1379...> Message-ID: <27189676.post@...1379...> I using gb3 and qt4 and I still having these problem Kadaitcha Man wrote: > > 2010/1/16 Fiddler63 : >> kobolds wrote: >>> >>> gambas3 qt4 >>> >>> I notice that gb ide auto change the width when it's not suppose too. >>> >>> I have 3 button each with width 90, 100,100 >>> >>> ?I want all 3 button width become 90 . I select them and choose align >>> same >>> width . I notice all 3 button width now become 91 when it suppose to be >>> 90 >>> . >>> >>> I also notice another problem that when I copy paste a button with width >>> 90 , the pasted button width is 89 >>> >>> >> >> This is also an issue in V2.13 > > Crikey. When Adam was a lad... > >> And your layout in the IDE is quite different to layout when running the >> programming. >> Kim > > These are all non-Gambas-related issues; they are caused by the qt & > gtk toolkits. I had all kinds of weird issues so I moved to gb3 and > qt4 on Linux Ultimate edition 2.5 (Ubuntu 9.10 based) and the problem > was solved. The UI issues gave me freaking headaches and I was too > willing to blame Gambas but I was wrong. As soon as I got to gb3 and > qt4, all of those kinds of issues went away. > > Hint! Hint! > > ------------------------------------------------------------------------------ > Throughout its 18-year history, RSA Conference consistently attracts the > world's best and brightest in the field, creating opportunities for > Conference > attendees to learn about information security's most important issues > through > interactions with peers, luminaries and emerging and established > companies. > http://p.sf.net/sfu/rsaconf-dev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > -- View this message in context: http://old.nabble.com/problem-with-aligment-same-width-%28gambas3%29-tp27184227p27189676.html Sent from the gambas-user mailing list archive at Nabble.com. From nospam.nospam.nospam at ...626... Sat Jan 16 15:39:12 2010 From: nospam.nospam.nospam at ...626... (nospam.nospam.nospam at ...626...) Date: Sun, 17 Jan 2010 01:39:12 +1100 Subject: [Gambas-user] problem with aligment same width (gambas3) In-Reply-To: <27189676.post@...1379...> References: <27184227.post@...1379...> <27187522.post@...1379...> <27189676.post@...1379...> Message-ID: 2010/1/17 kobolds : > > I using gb3 and qt4 and I still having these problem Yes, but did you select qt4 in Project > Properties > Components? From pinozollo at ...626... Sat Jan 16 16:19:54 2010 From: pinozollo at ...626... (Pino Zollo) Date: Sat, 16 Jan 2010 12:19:54 -0300 Subject: [Gambas-user] Collections In-Reply-To: <1263641156.6710.10.camel@...40...> References: <201001151604.52616.pinozollo@...626...> <201001160723.00842.pinozollo@...626...> <1263641156.6710.10.camel@...40...> Message-ID: <201001161219.54553.pinozollo@...626...> Il sabato 16 gennaio 2010 08:25:56 hai scritto: > Salut Pino, > > my problem with your problem is: > That is just a piece of code, I can only run and debug, if I invent ALL > the rest. > > And so,every test will say nothing(if it is not a typo in that piece > code). > > So please sent always a full run able gambas-archive. That has not to be > the whole project, but a part of it, which reach that piece of code > without any problems. I saw often the problem by producing such an > example. > > ? > -- > Amicalement > Charlie Merci Charllie, Here included is the source of my project...it is just a studio exercise for testing of XML-RPC client component of GAMBAS. To run it you need the server fldigi which is available on: http://www.w1hkj.com/alpha/fldigi-flarq/ If you compile it from source make sure that the XML-RPC is enabled. The problem rises when clicking on the 3rd button form the bottom, the one with A:n in front. It sends the command fldigi.list which replies with the list of recognised commands. This project has a minor problem that maybe due to XML-RPC component.... Some call needs cRpc.Mode = 2 other do not. I wish I were able to understand why. Let me know if all right with the server A bien tot Pino -- Key ID: 0xF6768208 Key fingerprint = B16D 0A7C 5B29 A334 CE6A 71F6 EAF8 3D88 F676 8208 Key server: hkp://wwwkeys.eu.pgp.net -------------- next part -------------- A non-text attachment was scrubbed... Name: ctlfldigi-0.0.2.tar.gz Type: application/x-tgz Size: 11024 bytes Desc: not available URL: From pinozollo at ...626... Sat Jan 16 17:15:28 2010 From: pinozollo at ...626... (Pino Zollo) Date: Sat, 16 Jan 2010 13:15:28 -0300 Subject: [Gambas-user] Gambas-user Digest, Vol 44, Issue 34 In-Reply-To: References: Message-ID: <201001161315.28520.pinozollo@...626...> Il sabato 16 gennaio 2010 12:21:09 gambas-user-request at ...625...t ha scritto: > > ? > > I look at the code above and wonder abount the first 2 lines. > Say i is 3 and count is 6. When it loops you get the following: > ? ? i ? ? ? ?count > ? ? 3 ? ? ? ?6 > ? ? 4 ? ? ? ?5 > end of loop > because the Pop in the second line reduces count. Is that what you wanted? > > Regards > Werner uhm ! thats a very useful information !!! I didn't know that pop reduces the count....in fact at the end I have only 60 outcomes instead of about 117 ! ...and the reason for which the loop was ending even without INC i, when I had forgotten it ! Maybe this affects the main problem ! I am going to investigate further. A real help ...thanks a lot ! Ciao Pino -- Key ID: 0xF6768208 Key fingerprint = B16D 0A7C 5B29 A334 CE6A 71F6 EAF8 3D88 F676 8208 Key server: hkp://wwwkeys.eu.pgp.net From pinozollo at ...626... Sat Jan 16 17:27:01 2010 From: pinozollo at ...626... (Pino Zollo) Date: Sat, 16 Jan 2010 13:27:01 -0300 Subject: [Gambas-user] Collections In-Reply-To: References: Message-ID: <201001161327.01485.pinozollo@...626...> Il sabato 16 gennaio 2010 12:21:09 gambas-user-request at ...625...t ha scritto: > > ? ? ? ? ? ? ? Disp.DisRes.Text = Disp.DisRes.Text & "~~~~~~~~~" > > ? ? ? ? ? ? INC i > > ? ? ? ? ?LOOP > > ? ? ? ? ?' CBCommand.Clear > > ? ? ? ? ?' CBComm2.Clear > > ? ? ? ? ?FOR EACH Element IN Lista > > ? ? ? ? ? ? ? > > ? ? ? ? ? ? ? PRINT Lista.Key;; " ? ";; Lista[Lista.key][1];; " ? ";; > > Lista[Lista.key][0] PRINT Lista.Key;; " ? ";; Element[1];; " ? ";; > > Element[0] > > > > ? ? ? ? ? ? ? ' SELECT CASE Element[1] > > ? ? ? ? ? ? ? ' ? ?CASE "n:s" > > ? ? ? ? ? ? ? ' ? ? ?CBCommand.Add(Lista.Key) > > ? ? ? ? ? ? ? ' ? ?CASE "s:n" > > ? ? ? ? ? ? ? ' ? ? ?CBComm2.Add(Lista.Key) > > ? ? ? ? ? ? ? ' END SELECT > > ? ? ? ? ?NEXT ? > > ----------------------------------------------------- > > > > ? > > I look at the code above and wonder abount the first 2 lines. > Say i is 3 and count is 6. When it loops you get the following: > ? ? i ? ? ? ?count > ? ? 3 ? ? ? ?6 > ? ? 4 ? ? ? ?5 > end of loop > because the Pop in the second line reduces count. Is that what you wanted? Hi Werner, Sorry for the previous wrong "Object".... Yes definitively it takes to eliminate the INC i instruction.... The main problems remains....now the 119th string is always printed: i.e. " A:n Returns the list of methods. " While the first column, the key, is correct. ----------------------- fldigi.version_struct A:n Returns the list of methods. fldigi.version_struct A:n Returns the list of methods. fldigi.name A:n Returns the list of methods. fldigi.name A:n Returns the list of methods. fldigi.list A:n Returns the list of methods. fldigi.list A:n Returns the list of methods. ----------------------- Regards Pino -- Key ID: 0xF6768208 Key fingerprint = B16D 0A7C 5B29 A334 CE6A 71F6 EAF8 3D88 F676 8208 Key server: hkp://wwwkeys.eu.pgp.net From wdahn at ...1000... Sat Jan 16 17:57:19 2010 From: wdahn at ...1000... (Werner) Date: Sun, 17 Jan 2010 00:57:19 +0800 Subject: [Gambas-user] Collections In-Reply-To: <201001161327.01485.pinozollo@...626...> References: <201001161327.01485.pinozollo@...626...> Message-ID: <4B51EFEF.2020009@...1000...> On 17/01/10 00:27, Pino Zollo wrote: > Il sabato 16 gennaio 2010 12:21:09 gambas-user-request at lists.sourceforge.net > ha scritto: > >>> Disp.DisRes.Text = Disp.DisRes.Text & "~~~~~~~~~" >>> INC i >>> LOOP >>> ' CBCommand.Clear >>> ' CBComm2.Clear >>> FOR EACH Element IN Lista >>> >>> PRINT Lista.Key;; " ";; Lista[Lista.key][1];; " ";; >>> Lista[Lista.key][0] PRINT Lista.Key;; " ";; Element[1];; " ";; >>> Element[0] >>> >>> ' SELECT CASE Element[1] >>> ' CASE "n:s" >>> ' CBCommand.Add(Lista.Key) >>> ' CASE "s:n" >>> ' CBComm2.Add(Lista.Key) >>> ' END SELECT >>> NEXT >>> ----------------------------------------------------- >>> >>> >>> >> I look at the code above and wonder abount the first 2 lines. >> Say i is 3 and count is 6. When it loops you get the following: >> i count >> 3 6 >> 4 5 >> end of loop >> because the Pop in the second line reduces count. Is that what you wanted? >> > Hi Werner, > > Sorry for the previous wrong "Object".... > > Yes definitively it takes to eliminate the INC i instruction.... > > The main problems remains....now the 119th string is always printed: > i.e. " A:n Returns the list of methods. " > While the first column, the key, is correct. > ----------------------- > fldigi.version_struct A:n Returns the list of methods. > fldigi.version_struct A:n Returns the list of methods. > fldigi.name A:n Returns the list of methods. > fldigi.name A:n Returns the list of methods. > fldigi.list A:n Returns the list of methods. > fldigi.list A:n Returns the list of methods. > ----------------------- > > Regards > > Pino > > > Like Charlie mentioned, it would be helpful if you supplied a small subproject that shows the problem, along with test data, if needed. Personally, my debugging style is to step through the code or use breakpoints at strategic locations. Then I inspect the variables that are being used in that section to compare with what values I expect them to contain. For expressions like myArray.Count you highlight the expression and the debugger will show you the value. The Gambas debugger is fantastic. Regards, Werner From kobolds at ...2041... Sat Jan 16 18:28:21 2010 From: kobolds at ...2041... (kobolds) Date: Sat, 16 Jan 2010 09:28:21 -0800 (PST) Subject: [Gambas-user] problem with aligment same width (gambas3) In-Reply-To: References: <27184227.post@...1379...> <27187522.post@...1379...> <27189676.post@...1379...> Message-ID: <27192021.post@...1379...> yes . it's selected by default Kadaitcha Man wrote: > > 2010/1/17 kobolds : >> >> I using gb3 and qt4 and I still having these problem > > Yes, but did you select qt4 in Project > Properties > Components? > > ------------------------------------------------------------------------------ > Throughout its 18-year history, RSA Conference consistently attracts the > world's best and brightest in the field, creating opportunities for > Conference > attendees to learn about information security's most important issues > through > interactions with peers, luminaries and emerging and established > companies. > http://p.sf.net/sfu/rsaconf-dev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > -- View this message in context: http://old.nabble.com/problem-with-aligment-same-width-%28gambas3%29-tp27184227p27192021.html Sent from the gambas-user mailing list archive at Nabble.com. From mohareve at ...626... Sat Jan 16 18:38:46 2010 From: mohareve at ...626... (M. Cs.) Date: Sat, 16 Jan 2010 18:38:46 +0100 Subject: [Gambas-user] How to set fonts to fixed size? Message-ID: I need fixed size for the GUI and all the texts. Is it possible to have exactly the same sizes for all the screen resolutions? I don't want to have dynamically scaled texts. Is it possible to set them as fixed all at once? From Karl.Reinl at ...2345... Sat Jan 16 19:05:09 2010 From: Karl.Reinl at ...2345... (Charlie Reinl) Date: Sat, 16 Jan 2010 19:05:09 +0100 Subject: [Gambas-user] update to report-ng In-Reply-To: <4247f5441001150236p3b6f6b86pe0ba91a327352ad@...627...> References: <4247f5441001150236p3b6f6b86pe0ba91a327352ad@...627...> Message-ID: <1263665109.6433.2.camel@...40...> Am Freitag, den 15.01.2010, 10:36 +0000 schrieb Joshua Higgins: > Hi list, > > I have updated the report-ng script so that it should work with any > distro that is supplying an /etc/lsb-release file. Before it only > expected Ubuntu to provide this file. > > Regards, Salut Joshua, send you the output and lsb-release from Ubuntu 8.4.3 and Mandriva 2010.0 Because the "DistributionVendor=lsb-release" Thanks Charlie From Karl.Reinl at ...2345... Sat Jan 16 19:10:30 2010 From: Karl.Reinl at ...2345... (Charlie Reinl) Date: Sat, 16 Jan 2010 19:10:30 +0100 Subject: [Gambas-user] update to report-ng In-Reply-To: <4247f5441001150236p3b6f6b86pe0ba91a327352ad@...627...> References: <4247f5441001150236p3b6f6b86pe0ba91a327352ad@...627...> Message-ID: <1263665431.6433.5.camel@...40...> Am Freitag, den 15.01.2010, 10:36 +0000 schrieb Joshua Higgins: > Hi list, > > I have updated the report-ng script so that it should work with any > distro that is supplying an /etc/lsb-release file. Before it only > expected Ubuntu to provide this file. > > Regards, Salut Joshua, send you the output and lsb-release from Ubuntu 8.4.3 and Mandriva 2010.0 Because the "DistributionVendor=lsb-release" Thanks Charlie This time I attach it.(:?) -------------- next part -------------- A non-text attachment was scrubbed... Name: gambas-report.tar.bz2 Type: application/x-bzip-compressed-tar Size: 705 bytes Desc: not available URL: From kobolds at ...2041... Sat Jan 16 19:52:59 2010 From: kobolds at ...2041... (kobolds) Date: Sat, 16 Jan 2010 10:52:59 -0800 (PST) Subject: [Gambas-user] problem with aligment same width (gambas3) In-Reply-To: <27192021.post@...1379...> References: <27184227.post@...1379...> <27187522.post@...1379...> <27189676.post@...1379...> <27192021.post@...1379...> Message-ID: <27192740.post@...1379...> OK , I think I finally found the bugs . you can try your self and will see the bug. 1. add a button to a form 2. change the button width and height to 60 . or any even number 3. click to select the button to copy and paste . see the new pasted button width and height now become 59 . his bug only occur if you set the width and height to even number . if you set to odd number then it's OK. kobolds wrote: > > yes . it's selected by default > > > Kadaitcha Man wrote: >> >> 2010/1/17 kobolds : >>> >>> I using gb3 and qt4 and I still having these problem >> >> Yes, but did you select qt4 in Project > Properties > Components? >> >> ------------------------------------------------------------------------------ >> Throughout its 18-year history, RSA Conference consistently attracts the >> world's best and brightest in the field, creating opportunities for >> Conference >> attendees to learn about information security's most important issues >> through >> interactions with peers, luminaries and emerging and established >> companies. >> http://p.sf.net/sfu/rsaconf-dev2dev >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> >> > > -- View this message in context: http://old.nabble.com/problem-with-aligment-same-width-%28gambas3%29-tp27184227p27192740.html Sent from the gambas-user mailing list archive at Nabble.com. From math.eber at ...221... Sat Jan 16 20:23:01 2010 From: math.eber at ...221... (Matti) Date: Sat, 16 Jan 2010 20:23:01 +0100 Subject: [Gambas-user] Gambas3 svn installs now, but won't run In-Reply-To: <201001132228.13536.gambas@...1...> References: <4B479AC3.9080503@...221...> <201001131546.43977.gambas@...1...> <4B4E36D5.9090600@...221...> <201001132228.13536.gambas@...1...> Message-ID: <4B521215.4020506@...221...> You're right, there is a little progress. Got version 2611 now ("from scratch", as you say), and in usr/local/bin now I at least have the files gambas3, gambas3.gambas, gambas-database-manager.gambas, gba3, gbc3, gbi3, gbr3, gbs3, gbs3.gambas and gbx3. But it won't run. There are still so many errors, warnings and disabled compontents, I still think there is something very wrong with libtool: When I do reconf-all for the first time, I get aclocal: #################### aclocal: ## Internal Error ## aclocal: #################### aclocal: Too many loops. aclocal: Please contact . at /usr/share/automake-1.10/Automake/Channels.pm line 570 Automake::Channels::msg('automake', '', 'Too many loops.') called at /usr/share/automake-1.10/Automake/ChannelDefs.pm line 191 Automake::ChannelDefs::prog_error('Too many loops.') called at /usr/bin/aclocal line 1060 autoreconf: aclocal failed with exit status: 255 Running reconf-all again, I get a lot of things like libtoolize: You should add the contents of the following files to `aclocal.m4': libtoolize: `/usr/local/share/aclocal/libtool.m4' libtoolize: `/usr/local/share/aclocal/ltoptions.m4' libtoolize: `/usr/local/share/aclocal/ltversion.m4' libtoolize: `/usr/local/share/aclocal/ltsugar.m4' libtoolize: `/usr/local/share/aclocal/lt~obsolete.m4' libtoolize: Remember to add `LT_INIT' to configure.ac. libtoolize: Consider adding `AC_CONFIG_MACRO_DIR([m4])' to configure.ac and libtoolize: rerunning libtoolize, to keep the correct libtool macros in-tree. libtoolize: Consider adding `-I m4' to ACLOCAL_AMFLAGS in Makefile.am. libtoolize: You should add the contents of `m4/argz.m4' to `aclocal.m4'. libtoolize: Remember to add `LTDL_INIT' to configure.ac. libtoolize: Remember to add `LT_CONFIG_LTDL_DIR([libltdl])' to `configure.ac'. libtoolize: Consider using `AC_CONFIG_AUX_DIR([libltdl/config])' in configure.ac. libtoolize: Consider using `AC_CONFIG_MACRO_DIR([libltdl/m4])' in configure.ac. Configure gets me ************************************************************ THESE COMPONENTS ARE DISABLED: - gb.cairo - gb.db.firebird - gb.db.mysql - gb.db.postgresql - gb.gtk - gb.opengl - gb.sdl ************************************************************ And with make install I read ---------------------------------------------------------------------- Libraries have been installed in: /usr/local/lib/gambas3 If you ever happen to want to link against installed libraries in a given directory, LIBDIR, you must either use libtool, and specify the full pathname of the library, or use the `-LLIBDIR' flag during linking and do at least one of the following: - add LIBDIR to the `LD_LIBRARY_PATH' environment variable during execution - add LIBDIR to the `LD_RUN_PATH' environment variable during linking - use the `-Wl,-rpath -Wl,LIBDIR' linker flag - have your system administrator add LIBDIR to `/etc/ld.so.conf' See any operating system documentation about shared libraries for more information, such as the ld(1) and ld.so(8) manual pages. ---------------------------------------------------------------------- I know, this is probably no gambas problem, but I'm really stuck here. The logs are attatched. Matti Beno?t Minisini schrieb: >> Thanks, Benoit. >> But no progress. >> >> cairo. cairo-devel, cairomm, cairomm-devel, python-cairo are installed. >> cairo-ft ??? Couldn't find it. >> >> But this just can't be the reason. >> There are so many errors and warnings and disabled compontents - there >> seems to be something completely wrong here. >> I still guess it's a result of installing libtool 2.2.6b. >> If I only knew how to check that, I wouldn't bother you. >> >> My recent logs are attatched. >> >> Thanks, Matti. >> > > No, there is progress. Try the latest revision, I fixed your compilation > error, due to an old version of Qt4. It should go further now. > > Regards, > -------------- next part -------------- A non-text attachment was scrubbed... Name: Logs.tar.gz Type: application/x-gzip Size: 46655 bytes Desc: not available URL: From pinozollo at ...626... Sat Jan 16 22:02:18 2010 From: pinozollo at ...626... (Pino Zollo) Date: Sat, 16 Jan 2010 18:02:18 -0300 Subject: [Gambas-user] Collections In-Reply-To: References: Message-ID: <201001161802.18614.pinozollo@...626...> Il sabato 16 gennaio 2010 15:53:11 gambas-user-request at ...625...t ha scritto: > The Gambas debugger is fantastic. Here is attached the evidence that all keys point to the same array. I have improved previously attached project adding Lista.Clear after CASE 6 and removing INC i from the external DO WHILE 0 < MyArray.Count ' also changed i to 0 LOOP ' thanks Werner So it is the filling of Lista that fails....possibly a bug; besides both Lista.Add(Parti, myStruc.Value(1)) and Lista[myStruc.Value(1)] = Parti Produce the same result. As I said in a previous append the work-around of joining the two parts of Parti into a single string such as: Jo = Parti[0] & "~" & Parti[1] and than recovering with Split(Element, "~") works perfectly.... ...so the problem is just when a String[] is stored into the Collection What do you think Beno?t ? Thanks for the attention Pino -- Key ID: 0xF6768208 Key fingerprint = B16D 0A7C 5B29 A334 CE6A 71F6 EAF8 3D88 F676 8208 Key server: hkp://wwwkeys.eu.pgp.net -------------- next part -------------- A non-text attachment was scrubbed... Name: Lista_Collection.png.zip Type: application/x-zip Size: 81371 bytes Desc: not available URL: From joshiggins at ...1601... Sat Jan 16 22:41:47 2010 From: joshiggins at ...1601... (Joshua Higgins) Date: Sat, 16 Jan 2010 21:41:47 +0000 Subject: [Gambas-user] update to report-ng In-Reply-To: <1263665431.6433.5.camel@...40...> References: <4247f5441001150236p3b6f6b86pe0ba91a327352ad@...627...> <1263665431.6433.5.camel@...40...> Message-ID: <4247f5441001161341i28ebbf3ev2b813eb58c8b3978@...627...> Ah, yes, please try this version. -- joshua higgins >>>>>>------ -------------- next part -------------- A non-text attachment was scrubbed... Name: report-ng Type: application/octet-stream Size: 3438 bytes Desc: not available URL: From Karl.Reinl at ...2345... Sat Jan 16 23:39:07 2010 From: Karl.Reinl at ...2345... (Charlie Reinl) Date: Sat, 16 Jan 2010 23:39:07 +0100 Subject: [Gambas-user] update to report-ng In-Reply-To: <4247f5441001161341i28ebbf3ev2b813eb58c8b3978@...627...> References: <4247f5441001150236p3b6f6b86pe0ba91a327352ad@...627...> <1263665431.6433.5.camel@...40...> <4247f5441001161341i28ebbf3ev2b813eb58c8b3978@...627...> Message-ID: <1263681547.6433.9.camel@...40...> Am Samstag, den 16.01.2010, 21:41 +0000 schrieb Joshua Higgins: > Ah, yes, please try this version. Salut Joshua, YES, for my Ubuntu 8.04.3 LTS and Mandriva 2010.0 it works fine. Thanks Charlie From gambas.fr at ...626... Sat Jan 16 23:58:44 2010 From: gambas.fr at ...626... (Fabien Bodard) Date: Sat, 16 Jan 2010 23:58:44 +0100 Subject: [Gambas-user] Collections In-Reply-To: <201001161802.18614.pinozollo@...626...> References: <201001161802.18614.pinozollo@...626...> Message-ID: <6324a42a1001161458u632674acvbbf707a676899ef6@...627...> just don't forget when you add multiple array, think to add new array as only the memory address is added to the collection , not the array content. In other case all the array in the collection link to the same one dim mycol as NEW collection dim i as integer dim aText as string[] For i = 0 to 15 aText = NEW string[4] aText.Add(aText,i) next 2010/1/16 Pino Zollo : > Il sabato 16 gennaio 2010 15:53:11 gambas-user-request at ...720...net > ha scritto: >> The Gambas debugger is fantastic. > > Here is attached the evidence that all keys point to the same array. > > I have improved ?previously attached project adding > ?Lista.Clear > after > ?CASE 6 > > and removing ?INC i from the external > DO WHILE 0 < MyArray.Count ? ' also changed i to 0 > > LOOP ? ?' thanks Werner > > So it is the filling of Lista that fails....possibly a bug; besides > both > ?Lista.Add(Parti, myStruc.Value(1)) > > and > > ?Lista[myStruc.Value(1)] = Parti > > Produce the same result. > > As I said in a previous append the work-around of joining the two parts of > Parti into a single string such as: ?Jo = Parti[0] & "~" & Parti[1] > and than recovering with Split(Element, "~") > works perfectly.... > > ...so the problem is just when a String[] is stored into the Collection > > What do you think Beno?t ? > > Thanks for the attention > > Pino > -- > Key ID: 0xF6768208 > Key fingerprint = B16D 0A7C 5B29 A334 CE6A ?71F6 EAF8 3D88 F676 8208 > Key server: hkp://wwwkeys.eu.pgp.net > > ------------------------------------------------------------------------------ > Throughout its 18-year history, RSA Conference consistently attracts the > world's best and brightest in the field, creating opportunities for Conference > attendees to learn about information security's most important issues through > interactions with peers, luminaries and emerging and established companies. > http://p.sf.net/sfu/rsaconf-dev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > From gambas.fr at ...626... Sun Jan 17 00:05:26 2010 From: gambas.fr at ...626... (Fabien Bodard) Date: Sun, 17 Jan 2010 00:05:26 +0100 Subject: [Gambas-user] Collection of String[2] In-Reply-To: <201001151338.02705.pinozollo@...626...> References: <201001151338.02705.pinozollo@...626...> Message-ID: <6324a42a1001161505k4ac604a6u6a22970497304c70@...627...> 2010/1/15 Pino Zollo : > Please, where am I wrong ? > For Element[1] and Element[0] ?I get always the same values.... > > STATIC PUBLIC Lista AS NEW Collection > ... > ... > > PUBLIC FUNCTION xyz ... > > ?DIM Element AS String[2] > ?DIM Parti AS String[] > ... > ?DO WHILE... Parti = NEW String[2] > ? ?Parti[0] = myStruc.Value(0) > ? ?Parti[1] = myStruc.Value(2) > ? ?Lista.Add(Parti, myStruc.Value(1)) > ?LOOP > ..... > ?FOR EACH Element IN Lista > ? ? ? ? ? ? ?PRINT Lista.Key;; " ? ";; Element[1];; " ? ";; Element[0] > ?NEXT > > END > ------------------------ > > Many Thanks in advance > Pino > -- > Key ID: 0xF6768208 > Key fingerprint = B16D 0A7C 5B29 A334 CE6A ?71F6 EAF8 3D88 F676 8208 > Key server: hkp://wwwkeys.eu.pgp.net > > ------------------------------------------------------------------------------ > Throughout its 18-year history, RSA Conference consistently attracts the > world's best and brightest in the field, creating opportunities for Conference > attendees to learn about information security's most important issues through > interactions with peers, luminaries and emerging and established companies. > http://p.sf.net/sfu/rsaconf-dev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas.fr at ...626... Sun Jan 17 00:07:17 2010 From: gambas.fr at ...626... (Fabien Bodard) Date: Sun, 17 Jan 2010 00:07:17 +0100 Subject: [Gambas-user] How to set fonts to fixed size? In-Reply-To: References: Message-ID: <6324a42a1001161507p6b8dcc19t8d82bd0ba030ecfd@...627...> Form.scaled = false 2010/1/16 M. Cs. : > I need fixed size for the GUI and all the texts. Is it possible to have > exactly the same sizes for all the screen resolutions? I don't want to have > dynamically scaled texts. > Is it possible to set them as fixed all at once? > ------------------------------------------------------------------------------ > Throughout its 18-year history, RSA Conference consistently attracts the > world's best and brightest in the field, creating opportunities for Conference > attendees to learn about information security's most important issues through > interactions with peers, luminaries and emerging and established companies. > http://p.sf.net/sfu/rsaconf-dev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From nospam.nospam.nospam at ...626... Sun Jan 17 00:35:30 2010 From: nospam.nospam.nospam at ...626... (nospam.nospam.nospam at ...626...) Date: Sun, 17 Jan 2010 10:35:30 +1100 Subject: [Gambas-user] problem with aligment same width (gambas3) In-Reply-To: <27192740.post@...1379...> References: <27184227.post@...1379...> <27187522.post@...1379...> <27189676.post@...1379...> <27192021.post@...1379...> <27192740.post@...1379...> Message-ID: 2010/1/17 kobolds : > > OK , I think I finally found the bugs . > > you can try your self and will see the bug. > 1. add a button to a form > 2. change the button width and height to 60 . or any even number > 3. click to select the button to copy and paste . see the new pasted button > width and height now become 59 . > > his bug only occur if you set the width and height to even number . if you > set to odd number then it's OK. Yes, you are quite right. It happens here also. From pinozollo at ...626... Sun Jan 17 00:36:22 2010 From: pinozollo at ...626... (Pino Zollo) Date: Sat, 16 Jan 2010 20:36:22 -0300 Subject: [Gambas-user] Collection of String[2] Message-ID: <201001162036.22761.pinozollo@...626...> Thanks a lot Fabien, it works now ! A la prochain Pino > Please, where am I wrong ? > For Element[1] and Element[0] ?I get always the same values.... > > STATIC PUBLIC Lista AS NEW Collection > ... > ... > > PUBLIC FUNCTION xyz ... > > ?DIM Element AS String[2] > ?DIM Parti AS String[] > ... > ?DO WHILE... ? ? ? Parti = NEW String[2] > ? ?Parti[0] = myStruc.Value(0) > ? ?Parti[1] = myStruc.Value(2) > ? ?Lista.Add(Parti, myStruc.Value(1)) > ?LOOP > ..... > ?FOR EACH Element IN Lista > ? ? ? ? ? ? ?PRINT Lista.Key;; " ? ";; Element[1];; " ? ";; Element[0] > ?NEXT > > END > ------------------------ > -- Key ID: 0xF6768208 Key fingerprint = B16D 0A7C 5B29 A334 CE6A 71F6 EAF8 3D88 F676 8208 Key server: hkp://wwwkeys.eu.pgp.net From alpeachey at ...626... Sun Jan 17 06:05:09 2010 From: alpeachey at ...626... (Aaron Peachey) Date: Sun, 17 Jan 2010 16:05:09 +1100 Subject: [Gambas-user] Custom controls Message-ID: <4B529A85.90900@...626...> Hi all, I'm just learning Gambas and trying to do something simple (I thought) by making custom versions of controls. For example, I want to inherit the Label and TextBox controls to add some new properties and methods. As a basic example, in my program the labels for mandatory fields are a different font/colour to the non-mandatory field labels. To achieve this (in wxPython) I have simply inherited the Label control and added a new variable 'isMandatory' to pass to the constructor which is then used to determine the font/colour of the label. I've searched everywhere trying to find out how to do this and come up with very little on how to do this. Can anyone point me in the right direction please? Also, once I have created custom controls (one step at a time, i know...), can I get them into the Gambas GUI toolbox so I can drag them onto forms etc. or do I need to add them to their parents programatically? thanks Aaron From kevinfishburne at ...1887... Sun Jan 17 07:29:40 2010 From: kevinfishburne at ...1887... (kevinfishburne) Date: Sat, 16 Jan 2010 22:29:40 -0800 (PST) Subject: [Gambas-user] PictureBox.Picture.Image[x, y] output interpretation Message-ID: <27196508.post@...1379...> When retrieving the value of a pixel at x,y from the picture in a picturebox control it outputs a single value. How does this value represent the pixel's value, and can it be easily converted to an RGB value? This is something that's going to need to be done 4,294,967,296 times, so is there a quicker way to reference pixel RGB values from a large image? The image being read will be of a varying format, 8192x8192 pixels and grayscale. The high number of "reads" is because it's being used as a modifier by an algorithm that is generating a 65536x65536 grayscale image. ----- Kevin Fishburne, Eight Virtues www: http://sales.eightvirtues.com http://sales.eightvirtues.com e-mail: mailto:sales at ...1887... sales at ...1887... phone: (770) 853-6271 -- View this message in context: http://old.nabble.com/PictureBox.Picture.Image-x%2C-y--output-interpretation-tp27196508p27196508.html Sent from the gambas-user mailing list archive at Nabble.com. From nospam.nospam.nospam at ...626... Sun Jan 17 07:59:48 2010 From: nospam.nospam.nospam at ...626... (nospam.nospam.nospam at ...626...) Date: Sun, 17 Jan 2010 17:59:48 +1100 Subject: [Gambas-user] Custom controls In-Reply-To: <4B529A85.90900@...626...> References: <4B529A85.90900@...626...> Message-ID: 2010/1/17 Aaron Peachey : > Hi all, > I'm just learning Gambas and trying to do something simple (I thought) > by making custom versions of controls. > > For example, I want to inherit the Label and TextBox controls to add > some new properties and methods. > As a basic example, in my program the labels for mandatory fields are a > different font/colour to the non-mandatory field labels. To achieve this > (in wxPython) I have simply inherited the Label control and added a new > variable 'isMandatory' to pass to the constructor which is then used to > determine the font/colour of the label. > > I've searched everywhere trying to find out how to do this and come up > with very little on how to do this. Can anyone point me in the right > direction please? > > Also, once I have created custom controls (one step at a time, i > know...), can I get them into the Gambas GUI toolbox so I can drag them > onto forms etc. or do I need to add them to their parents programatically? http://gambasdoc.org/help/dev/gambas From nospam.nospam.nospam at ...626... Sun Jan 17 08:08:11 2010 From: nospam.nospam.nospam at ...626... (nospam.nospam.nospam at ...626...) Date: Sun, 17 Jan 2010 18:08:11 +1100 Subject: [Gambas-user] PictureBox.Picture.Image[x, y] output interpretation In-Reply-To: <27196508.post@...1379...> References: <27196508.post@...1379...> Message-ID: 2010/1/17 kevinfishburne : > When retrieving the value of a pixel at x,y from the picture in a picturebox > control it outputs a single value. How does this value represent the pixel's > value, and can it be easily converted to an RGB value? Red = Value Mod 256 Green = Int(Value / 256) Mod 256 Blue = Int(Value / 256 / 256) Mod 256 From gambas.fr at ...626... Sun Jan 17 16:54:12 2010 From: gambas.fr at ...626... (Fabien Bodard) Date: Sun, 17 Jan 2010 16:54:12 +0100 Subject: [Gambas-user] Error - Signal 11 - Gambas 2.19 In-Reply-To: <27187858.post@...1379...> References: <27187858.post@...1379...> Message-ID: <6324a42a1001170754o5608d852y24b9b4021707ce27@...627...> hPicture = NEW Picture ( [ Width AS Integer, Height AS Integer, Transparent AS Boolean ] ) 2010/1/16 Fiddler63 : > > A button with the following code will cause a Signal 11 error in Gambas 2.19. > If I remove the ([50, 50]) I get no error. > > PUBLIC SUB New_Btn_Click() > DIM hPic AS Picture > hPic = NEW Picture([50, 50]) > .... ok i understand your problem :) hPicture = NEW Picture ( [ Width AS Integer, Height AS Integer, Transparent AS Boolean ] ) in the doc"[,]" means optional values ... so you can set it or not . [] in the gambas syntax is an array... it's not really the same ! so you need to write : hPic = New Picture(50,50) > END > > Cheers > Kim > -- > View this message in context: http://old.nabble.com/Error---Signal-11---Gambas-2.19-tp27187858p27187858.html > Sent from the gambas-user mailing list archive at Nabble.com. > > > ------------------------------------------------------------------------------ > Throughout its 18-year history, RSA Conference consistently attracts the > world's best and brightest in the field, creating opportunities for Conference > attendees to learn about information security's most important issues through > interactions with peers, luminaries and emerging and established companies. > http://p.sf.net/sfu/rsaconf-dev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From joshiggins at ...1601... Sun Jan 17 18:40:39 2010 From: joshiggins at ...1601... (Joshua Higgins) Date: Sun, 17 Jan 2010 17:40:39 +0000 Subject: [Gambas-user] report-ng script In-Reply-To: <4B52D6F0.7030309@...1909...> References: <4B52D6F0.7030309@...1909...> Message-ID: <4247f5441001170940o419076c6t515a22e86cc73c1a@...627...> Good idea, seems better that way. Benoit, is there a central place we can put this script? 2010/1/17 Doriano Blengino : > Hi Joshua, > > just took a look at your script, and wanted to make a stupid suggestion. > > Instead of writing: > > ? echo "[OperatingSystem]" > $OutputFile > ? echo "OperatingSystem=$OS" >> $OutputFile > > with many repeats, you could do: > > ? ( > ? ? ? echo "[OperatingSystem]" > ? ? ? echo "OperatingSystem=$OS" > ? ? ? if [ blah blah blah ]; then > ? ? ? ? ?... > ? ? ? fi > ? ) > $OutputFile > > ...easier to write and less error-prone. > > Just a thought. > > Regards, > > -- > Doriano Blengino > > "Listen twice before you speak. > This is why we have two ears, but only one mouth." > > -- joshua higgins >>>>>>------ From gambas at ...1... Sun Jan 17 21:59:27 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sun, 17 Jan 2010 21:59:27 +0100 Subject: [Gambas-user] Error - Signal 11 - Gambas 2.19 In-Reply-To: <27187858.post@...1379...> References: <27187858.post@...1379...> Message-ID: <201001172159.27407.gambas@...1...> > A button with the following code will cause a Signal 11 error in Gambas > 2.19. If I remove the ([50, 50]) I get no error. > > PUBLIC SUB New_Btn_Click() > DIM hPic AS Picture > hPic = NEW Picture([50, 50]) > .... > END > > Cheers > Kim > Please provide your full project, because you should not get a signal 11 (an interpreter crash) but a normal error message. I tried there, and got no signal 11, but the right error message (type mismatch...). Thanks in advance. Regards, -- Beno?t Minisini From gambas at ...1... Sun Jan 17 22:03:19 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sun, 17 Jan 2010 22:03:19 +0100 Subject: [Gambas-user] Custom controls In-Reply-To: <4B529A85.90900@...626...> References: <4B529A85.90900@...626...> Message-ID: <201001172203.19702.gambas@...1...> > Hi all, > I'm just learning Gambas and trying to do something simple (I thought) > by making custom versions of controls. > > For example, I want to inherit the Label and TextBox controls to add > some new properties and methods. > As a basic example, in my program the labels for mandatory fields are a > different font/colour to the non-mandatory field labels. To achieve this > (in wxPython) I have simply inherited the Label control and added a new > variable 'isMandatory' to pass to the constructor which is then used to > determine the font/colour of the label. > > I've searched everywhere trying to find out how to do this and come up > with very little on how to do this. Can anyone point me in the right > direction please? > > Also, once I have created custom controls (one step at a time, i > know...), can I get them into the Gambas GUI toolbox so I can drag them > onto forms etc. or do I need to add them to their parents programatically? > > thanks > Aaron > For example, you have to: 1) Create a class named "MyLabel" in your project. 2) Use "INHERITS Label". But you have to use it manually, and you won't see it in the IDE toolbox. If you want that, you have to create a component, as explained in the link provide by nospam x 3. Regards, -- Beno?t Minisini From gambas at ...1... Sun Jan 17 22:05:19 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sun, 17 Jan 2010 22:05:19 +0100 Subject: [Gambas-user] =?utf-8?q?PictureBox=2EPicture=2EImage=5Bx=2C_y=5D_?= =?utf-8?q?output_=09interpretation?= In-Reply-To: References: <27196508.post@...1379...> Message-ID: <201001172205.19568.gambas@...1...> > 2010/1/17 kevinfishburne : > > When retrieving the value of a pixel at x,y from the picture in a > > picturebox control it outputs a single value. How does this value > > represent the pixel's value, and can it be easily converted to an RGB > > value? > > Red = Value Mod 256 > Green = Int(Value / 256) Mod 256 > Blue = Int(Value / 256 / 256) Mod 256 > Or you can use the [] operator on the Color class. Color[MyColor].Red Color[MyColor].Green Color[MyColor].Blue ... See the Color class documentation for all properties you can use on Color[...]. Regards, -- Beno?t Minisini From gambas at ...1... Sun Jan 17 22:06:59 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sun, 17 Jan 2010 22:06:59 +0100 Subject: [Gambas-user] problem with aligment same width (gambas3) In-Reply-To: <27192740.post@...1379...> References: <27184227.post@...1379...> <27192021.post@...1379...> <27192740.post@...1379...> Message-ID: <201001172206.59338.gambas@...1...> > OK , I think I finally found the bugs . > > you can try your self and will see the bug. > 1. add a button to a form > 2. change the button width and height to 60 . or any even number > 3. click to select the button to copy and paste . see the new pasted button > width and height now become 59 . > > his bug only occur if you set the width and height to even number . if you > set to odd number then it's OK. > I can't reproduce your bug, both in Gambas 2 and Gambas 3. Can you provide me a project that shows that bug, and please tell me what is the value of Desktop.Scale on your machine. Regards, -- Beno?t Minisini From kobolds at ...2041... Sun Jan 17 23:35:17 2010 From: kobolds at ...2041... (kobolds) Date: Sun, 17 Jan 2010 14:35:17 -0800 (PST) Subject: [Gambas-user] problem with aligment same width (gambas3) In-Reply-To: <201001172206.59338.gambas@...1...> References: <27184227.post@...1379...> <27187522.post@...1379...> <27189676.post@...1379...> <27192021.post@...1379...> <27192740.post@...1379...> <201001172206.59338.gambas@...1...> Message-ID: <27203638.post@...1379...> my desktop scale is 7 my screen size is 1280 x 800 Beno?t Minisini wrote: > >> OK , I think I finally found the bugs . >> >> you can try your self and will see the bug. >> 1. add a button to a form >> 2. change the button width and height to 60 . or any even number >> 3. click to select the button to copy and paste . see the new pasted >> button >> width and height now become 59 . >> >> his bug only occur if you set the width and height to even number . if >> you >> set to odd number then it's OK. >> > > I can't reproduce your bug, both in Gambas 2 and Gambas 3. > > Can you provide me a project that shows that bug, and please tell me what > is > the value of Desktop.Scale on your machine. > > Regards, > > -- > Beno?t Minisini > > ------------------------------------------------------------------------------ > Throughout its 18-year history, RSA Conference consistently attracts the > world's best and brightest in the field, creating opportunities for > Conference > attendees to learn about information security's most important issues > through > interactions with peers, luminaries and emerging and established > companies. > http://p.sf.net/sfu/rsaconf-dev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > -- View this message in context: http://old.nabble.com/problem-with-aligment-same-width-%28gambas3%29-tp27184227p27203638.html Sent from the gambas-user mailing list archive at Nabble.com. From nospam.nospam.nospam at ...626... Sun Jan 17 23:33:50 2010 From: nospam.nospam.nospam at ...626... (nospam.nospam.nospam at ...626...) Date: Mon, 18 Jan 2010 09:33:50 +1100 Subject: [Gambas-user] problem with aligment same width (gambas3) In-Reply-To: <201001172206.59338.gambas@...1...> References: <27184227.post@...1379...> <27192021.post@...1379...> <27192740.post@...1379...> <201001172206.59338.gambas@...1...> Message-ID: 2010/1/18 Beno?t Minisini : >> OK , I think I finally found the bugs . >> >> you can try your self and will see the bug. >> 1. add a button to a form >> 2. change the button width and height to 60 . or any even number >> 3. click to select the button to copy and paste . see the new pasted button >> width and height now become 59 . >> >> his bug only occur if you set the width and height to even number . if you >> set to odd number then it's OK. >> > > I can't reproduce your bug, both in Gambas 2 and Gambas 3. > > Can you provide me a project that shows that bug, and please tell me what is > the value of Desktop.Scale on your machine. It happens on my machine also. Desktop.Scale = 7 here. From gambas at ...1... Mon Jan 18 01:00:04 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Mon, 18 Jan 2010 01:00:04 +0100 Subject: [Gambas-user] Modal dialog + Balloon hangs program In-Reply-To: <4B4D7D05.7000905@...221...> References: <4B4D7D05.7000905@...221...> Message-ID: <201001180100.05013.gambas@...1...> > Hi all, > > Last night I discovered this feature: > > If you have a balloon on FMain and want to let it appear while there is > a modal dialog open (I didn't test a non-modal form yet), the balloon > isn't shown and the program hangs, eating 100 % CPU load. > > I made a little test app to show this and try to add it to this mail. > > If you press the Button and then close the dialog at once, the balloon > will appear after 10 seconds. But if you do not close the dialog, the > program will crash. > > Thanks for your comments! > > Regards > > Rolf > The bug should have been fixed in revision #2612. Regards, -- Beno?t Minisini From gambas at ...1... Mon Jan 18 01:11:29 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Mon, 18 Jan 2010 01:11:29 +0100 Subject: [Gambas-user] problem with aligment same width (gambas3) In-Reply-To: <27203638.post@...1379...> References: <27184227.post@...1379...> <201001172206.59338.gambas@...1...> <27203638.post@...1379...> Message-ID: <201001180111.29292.gambas@...1...> > my desktop scale is 7 > > > my screen size is 1280 x 800 > OK, I succeeded in reproducing the bug. Now I have to investigate... -- Beno?t Minisini From gambas at ...1... Mon Jan 18 01:22:32 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Mon, 18 Jan 2010 01:22:32 +0100 Subject: [Gambas-user] problem with aligment same width (gambas3) In-Reply-To: <201001180111.29292.gambas@...1...> References: <27184227.post@...1379...> <27203638.post@...1379...> <201001180111.29292.gambas@...1...> Message-ID: <201001180122.32798.gambas@...1...> > > my desktop scale is 7 > > > > > > my screen size is 1280 x 800 > > OK, I succeeded in reproducing the bug. Now I have to investigate... > The bug has been fixed in revision #2613 for Gambas 2. The fix for Gambas 3 will follow. Regards, -- Beno?t Minisini From kobolds at ...2041... Mon Jan 18 02:03:02 2010 From: kobolds at ...2041... (kobolds) Date: Sun, 17 Jan 2010 17:03:02 -0800 (PST) Subject: [Gambas-user] problem with database manager (gambas3) Message-ID: <27204927.post@...1379...> I having some problem with the database manager on gb3 1. when I close the database manager , it close the whole gb3 2. cannot add /modify /delete the records in a table. if no records in the table and I click on the view , I get exception and gb3 terminate . the add button always disable and the delete button is not working. is these known problem ? -- View this message in context: http://old.nabble.com/problem-with-database-manager-%28gambas3%29-tp27204927p27204927.html Sent from the gambas-user mailing list archive at Nabble.com. From gambas at ...1... Mon Jan 18 01:23:38 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Mon, 18 Jan 2010 01:23:38 +0100 Subject: [Gambas-user] Webkit ?not rendering strike through properly In-Reply-To: <201001161807.59067.rterry@...1946...> References: <201001161807.59067.rterry@...1946...> Message-ID: <201001180123.38672.gambas@...1...> > Not sure if this problem is mine/webmit/my gambas. > > I just had occasion to use strikethough in some html > , and despite the code it did't appear in the webkit > window. > > Some time later I noticed it was appearing in another webkit window using > the same code. I swiped the paragraph which should have been strike > through with a mouse, and magically the strike through text appeared. > > Weird. > > Anyone else noticed this? > > Regards > > richard > Qt/WebKit is not really finished. Maybe you should try to look in the bug tracker of the Qt/Webkit project, which is somewhere on the web... -- Beno?t Minisini From alpeachey at ...626... Mon Jan 18 03:08:27 2010 From: alpeachey at ...626... (Aaron Peachey) Date: Mon, 18 Jan 2010 13:08:27 +1100 Subject: [Gambas-user] Custom controls Message-ID: <908061cb1001171808r53566adbk45681b5bb60d21dd@...627...> > > > > For example, you have to: > > 1) Create a class named "MyLabel" in your project. > 2) Use "INHERITS Label". > > But you have to use it manually, and you won't see it in the IDE toolbox. > > If you want that, you have to create a component, as explained in the link > provide by nospam x 3. > > Regards, > > -- > Beno?t Minisini > > Thanks. I was able to do all this but it raised a few questions: 1. How do I add an instance of my custom control to a form? I tried to just instantiate a NEW instance of it passing the formname as the parent parameter but it didn't appear on the form. So then I used the Show method and set the X and Y properties but still couldn't get it to show up. 2. How do I define custom parameters for the _new method? I've managed to define the method using my own parameter but not sure what order to pass them in when I instantiate (i.e. do I pass the parent parameters then the custom ones or vice versa)? thanks again Aaron From gambas at ...1... Mon Jan 18 01:24:12 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Mon, 18 Jan 2010 01:24:12 +0100 Subject: [Gambas-user] report-ng script In-Reply-To: <4247f5441001170940o419076c6t515a22e86cc73c1a@...627...> References: <4B52D6F0.7030309@...1909...> <4247f5441001170940o419076c6t515a22e86cc73c1a@...627...> Message-ID: <201001180124.12414.gambas@...1...> > Good idea, seems better that way. > > Benoit, is there a central place we can put this script? > Maybe the better place is in the IDE source code? -- Beno?t Minisini From nospam.nospam.nospam at ...626... Mon Jan 18 05:01:52 2010 From: nospam.nospam.nospam at ...626... (nospam.nospam.nospam at ...626...) Date: Mon, 18 Jan 2010 15:01:52 +1100 Subject: [Gambas-user] problem with aligment same width (gambas3) In-Reply-To: <201001180122.32798.gambas@...1...> References: <27184227.post@...1379...> <27203638.post@...1379...> <201001180111.29292.gambas@...1...> <201001180122.32798.gambas@...1...> Message-ID: 2010/1/18 Beno?t Minisini : >> > my desktop scale is 7 >> > >> > >> > my screen size is 1280 x 800 >> >> OK, I succeeded in reproducing the bug. Now I have to investigate... >> > > The bug has been fixed in revision #2613 for Gambas 2. The fix for Gambas 3 > will follow. Thanks for that. From mx4eva at ...626... Mon Jan 18 08:57:00 2010 From: mx4eva at ...626... (Fiddler63) Date: Sun, 17 Jan 2010 23:57:00 -0800 (PST) Subject: [Gambas-user] Error - Signal 11 - Gambas 2.19 In-Reply-To: <201001172159.27407.gambas@...1...> References: <27187858.post@...1379...> <201001172159.27407.gambas@...1...> Message-ID: <27207132.post@...1379...> > A button with the following code will cause a Signal 11 error in Gambas > 2.19. If I remove the ([50, 50]) I get no error. > > PUBLIC SUB New_Btn_Click() > DIM hPic AS Picture > hPic = NEW Picture([50, 50]) > .... > END > > Cheers > Kim > Please provide your full project, because you should not get a signal 11 (an interpreter crash) but a normal error message. I tried there, and got no signal 11, but the right error message (type mismatch...). Thanks in advance. Regards, -- Beno?t Minisini Hmm, now when I run the code, I get error message (type mismatch....). Weird -- View this message in context: http://old.nabble.com/Error---Signal-11---Gambas-2.19-tp27187858p27207132.html Sent from the gambas-user mailing list archive at Nabble.com. From nospam.nospam.nospam at ...626... Mon Jan 18 10:14:52 2010 From: nospam.nospam.nospam at ...626... (Kadaitcha Man) Date: Mon, 18 Jan 2010 20:14:52 +1100 Subject: [Gambas-user] Error - Signal 11 - Gambas 2.19 In-Reply-To: <27207132.post@...1379...> References: <27187858.post@...1379...> <201001172159.27407.gambas@...1...> <27207132.post@...1379...> Message-ID: 2010/1/18 Fiddler63 : >> A button with the following code will cause a Signal 11 error in Gambas >> ?2.19. If I remove the ([50, 50]) I get no error. >> >> PUBLIC SUB New_Btn_Click() >> DIM hPic AS Picture >> hPic = NEW Picture([50, 50]) >> .... >> END >> >> Cheers >> Kim >> > > Please provide your full project, because you should not get a signal 11 (an > interpreter crash) but a normal error message. I tried there, and got no > signal 11, but the right error message (type mismatch...). > Hmm, now when I run the code, I get error message (type mismatch....). > Weird Weirder still... "Please provide your full project, because you should not get a signal 11". HTH From mx4eva at ...626... Mon Jan 18 12:27:30 2010 From: mx4eva at ...626... (Fiddler63) Date: Mon, 18 Jan 2010 03:27:30 -0800 (PST) Subject: [Gambas-user] How to move an object within a form Message-ID: <27209201.post@...1379...> I'm trying to move an object within a form. The following code allows me to move the form, but not the object within the form, ie when I click on the mouse I can move the form around on the screen, but no the object within the form. Any suggestions ? PRIVATE $MX AS Integer PRIVATE $MY AS Integer PUBLIC SUB DrawingArea1_MouseDown() $MX = Mouse.ScreenX - ME.X $MY = Mouse.ScreenY - ME.Y END PUBLIC SUB DrawingArea1_MouseMove() ME.Move(Mouse.ScreenX - $MX, Mouse.ScreenY - $MY) END -- View this message in context: http://old.nabble.com/How-to-move-an-object-within-a-form-tp27209201p27209201.html Sent from the gambas-user mailing list archive at Nabble.com. From mx4eva at ...626... Mon Jan 18 12:47:43 2010 From: mx4eva at ...626... (Fiddler63) Date: Mon, 18 Jan 2010 03:47:43 -0800 (PST) Subject: [Gambas-user] Error - Signal 11 - Gambas 2.19 In-Reply-To: References: <27187858.post@...1379...> <201001172159.27407.gambas@...1...> <27207132.post@...1379...> Message-ID: <27209407.post@...1379...> 2010/1/18 Fiddler63 : >> A button with the following code will cause a Signal 11 error in Gambas >> ?2.19. If I remove the ([50, 50]) I get no error. >> >> PUBLIC SUB New_Btn_Click() >> DIM hPic AS Picture >> hPic = NEW Picture([50, 50]) >> .... >> END >> >> Cheers >> Kim >> > > Please provide your full project, because you should not get a signal 11 > (an > interpreter crash) but a normal error message. I tried there, and got no > signal 11, but the right error message (type mismatch...). > Hmm, now when I run the code, I get error message (type mismatch....). > Weird Weirder still... "Please provide your full project, because you should not get a signal 11". HTH What I mean is that I now get the "correct" error message and not "signal 11" error and I cannot reproduce the "signal 11" error on my system now. -- View this message in context: http://old.nabble.com/Error---Signal-11---Gambas-2.19-tp27187858p27209407.html Sent from the gambas-user mailing list archive at Nabble.com. From ron at ...1740... Mon Jan 18 12:51:12 2010 From: ron at ...1740... (Ron) Date: Mon, 18 Jan 2010 12:51:12 +0100 Subject: [Gambas-user] Error - Signal 11 - Gambas 2.19 In-Reply-To: <27209407.post@...1379...> References: <27187858.post@...1379...> <201001172159.27407.gambas@...1...> <27207132.post@...1379...> <27209407.post@...1379...> Message-ID: <4B544B30.4060003@...1740...> Didn't follow the complete thread, but are you running on a 64 bits OS? I had some weird crashes too (all fixed now), they occurred quite often, but sometimes I had to restart my program 20+ times in a row to make it fail again, it was because it only crashed when it was loaded in 64 bits memory space. Regards, Ron_2nd. > > 2010/1/18 Fiddler63 : > >>> A button with the following code will cause a Signal 11 error in Gambas >>> 2.19. If I remove the ([50, 50]) I get no error. >>> >>> PUBLIC SUB New_Btn_Click() >>> DIM hPic AS Picture >>> hPic = NEW Picture([50, 50]) >>> .... >>> END >>> >>> Cheers >>> Kim >>> >>> >> Please provide your full project, because you should not get a signal 11 >> (an >> interpreter crash) but a normal error message. I tried there, and got no >> signal 11, but the right error message (type mismatch...). >> > > >> Hmm, now when I run the code, I get error message (type mismatch....). >> Weird >> > > Weirder still... "Please provide your full project, because you should > not get a signal 11". > > HTH > > What I mean is that I now get the "correct" error message and not "signal > 11" error and I cannot reproduce the "signal 11" error on my system now. > > From mx4eva at ...626... Mon Jan 18 12:59:48 2010 From: mx4eva at ...626... (Fiddler63) Date: Mon, 18 Jan 2010 03:59:48 -0800 (PST) Subject: [Gambas-user] Error - Signal 11 - Gambas 2.19 In-Reply-To: <4B544B30.4060003@...1740...> References: <27187858.post@...1379...> <201001172159.27407.gambas@...1...> <27207132.post@...1379...> <27209407.post@...1379...> <4B544B30.4060003@...1740...> Message-ID: <27209516.post@...1379...> Yep, running 64 bit Kim Ron Klinkien wrote: > > Didn't follow the complete thread, but are you running on a 64 bits OS? > > I had some weird crashes too (all fixed now), they occurred quite often, > but sometimes I had to restart my program 20+ times in a row to make it > fail again, it was because it only crashed when it was loaded in 64 bits > memory space. > > Regards, > Ron_2nd. >> >> 2010/1/18 Fiddler63 : >> >>>> A button with the following code will cause a Signal 11 error in Gambas >>>> 2.19. If I remove the ([50, 50]) I get no error. >>>> >>>> PUBLIC SUB New_Btn_Click() >>>> DIM hPic AS Picture >>>> hPic = NEW Picture([50, 50]) >>>> .... >>>> END >>>> >>>> Cheers >>>> Kim >>>> >>>> >>> Please provide your full project, because you should not get a signal 11 >>> (an >>> interpreter crash) but a normal error message. I tried there, and got no >>> signal 11, but the right error message (type mismatch...). >>> >> >> >>> Hmm, now when I run the code, I get error message (type mismatch....). >>> Weird >>> >> >> Weirder still... "Please provide your full project, because you should >> not get a signal 11". >> >> HTH >> >> What I mean is that I now get the "correct" error message and not "signal >> 11" error and I cannot reproduce the "signal 11" error on my system now. >> >> > > > ------------------------------------------------------------------------------ > Throughout its 18-year history, RSA Conference consistently attracts the > world's best and brightest in the field, creating opportunities for > Conference > attendees to learn about information security's most important issues > through > interactions with peers, luminaries and emerging and established > companies. > http://p.sf.net/sfu/rsaconf-dev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > -- View this message in context: http://old.nabble.com/Error---Signal-11---Gambas-2.19-tp27187858p27209516.html Sent from the gambas-user mailing list archive at Nabble.com. From eilert-sprachen at ...221... Mon Jan 18 13:18:28 2010 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Mon, 18 Jan 2010 13:18:28 +0100 Subject: [Gambas-user] What is gb.qte when compiling? Message-ID: <4B545194.30302@...221...> Just downloaded 2.19 and wanted to compile it. Running configure, it says THESE COMPONENTS ARE DISABLED: - gb.corba - gb.db.firebird - gb.db.odbc - gb.db.sqlite2 - gb.gtk.svg - gb.qte - gb.sdl - gb.sdl.sound So, everything ok as usual, but I do not know what gb.qte is from the Components dialog's point of view. Is it qb.qt.ext? I used this in some of my projects. I ask just to make sure I still can use my projects after installing the new version... :-) I do not remember the gb.qte thing appearing in the DISABLED list yet. Thanks for any explanation. Regards Rolf From gambas at ...1... Mon Jan 18 14:00:17 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Mon, 18 Jan 2010 14:00:17 +0100 Subject: [Gambas-user] What is gb.qte when compiling? In-Reply-To: <4B545194.30302@...221...> References: <4B545194.30302@...221...> Message-ID: <201001181400.17311.gambas@...1...> > Just downloaded 2.19 and wanted to compile it. Running configure, it says > > THESE COMPONENTS ARE DISABLED: > > - gb.corba > - gb.db.firebird > - gb.db.odbc > - gb.db.sqlite2 > - gb.gtk.svg > - gb.qte > - gb.sdl > - gb.sdl.sound > > So, everything ok as usual, but I do not know what gb.qte is from the > Components dialog's point of view. Is it qb.qt.ext? I used this in some > of my projects. > > I ask just to make sure I still can use my projects after installing the > new version... :-) I do not remember the gb.qte thing appearing in the > DISABLED list yet. > > Thanks for any explanation. > > Regards > > Rolf > Don't worry about gb.qte. Nobody uses it, and it has been removed in Gambas 3. Regards, -- Beno?t Minisini From bill at ...2351... Mon Jan 18 15:23:19 2010 From: bill at ...2351... (Bill Richman) Date: Mon, 18 Jan 2010 08:23:19 -0600 Subject: [Gambas-user] Program going off the rails in a way I can't explain. Help? Message-ID: <4B546ED7.4040708@...2350...> I've got a really weird problem going on. I've been working on this project for about a month, and today I decided to make some major changes to the user interface operates. I moved some code around and delete some code, and now when I run it in the IDE, it randomly jumps into the sub that handles the click event for a combo-box control called cbBedList_Click(). The routine "Populate_cbBedList()" gets called by "Form_Open", and reads values from a database to populate the Combo-box. As far as I can remember, I haven't changed the code for this form at all, but seemingly for no reason, when it hits line "178 cbBedList.Clear" in the Populate sub, it starts executing the code in cbBedList_Click! This generates an error because the cbBedList.index value isn't set, since it wasn't actually clicked. If I remark out the contents of the Click event, the Populate routine finishes, although I still see the debug statement from line 169. If I remark out everything from 168-173, it still runs fine (although obviously I don't get click events handled for the combo-box any longer!). I'm pulling my hair out. The stack backtrace shows: FMain.cbBedList_Click.169 (native code) FMain.Populate_cbBedList.178 FMain.Form_Open.26 Setting a breakpoint at 178 and single-stepping shows exactly what the backtrace does; the next line to be executed after 178 is 169! ANY ideas??? Please? === 168 PUBLIC SUB cbBedList_Click() 169 DEBUG "We're in cbBedList_Click()!" 170 ' BedNum = BedList[cbBedList.index + 1] 171 ' DrawPlots($db, BedNum) 172 173 END 174 175 PUBLIC SUB Populate_cbBedList() 176 DIM sql AS String 177 'populate the bed selection listbox 178 cbBedList.Clear 179 sql = "select bedname, bednum from Beds" 180 $res = $db.Exec(sql) 181 DEBUG "$res.Count=" & $res.Count 182 FOR EACH $res 183 DEBUG "$res!BedName=" & $res!BedName 184 cbBedList.Add($res!BedName) 185 DEBUG "cbBedList.count=" & cbBedList.Count 186 DEBUG "$res!BedNum=" & $res!BedNum 187 BedList[cbBedList.count] = $res!BedNum 188 NEXT 189 END -- Bill Richman - Lincoln, Nebraska Tilter at windmills, maker of pies in the sky, & curmudgeon email: bill at ...2350... web: www.geektrap.com From gambas at ...1... Mon Jan 18 15:46:11 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Mon, 18 Jan 2010 15:46:11 +0100 Subject: [Gambas-user] Program going off the rails in a way I can't explain. Help? In-Reply-To: <4B546ED7.4040708@...2350...> References: <4B546ED7.4040708@...2350...> Message-ID: <201001181546.11673.gambas@...1...> > I've got a really weird problem going on. I've been working on this > project for about a month, and today I decided to make some major > changes to the user interface operates. I moved some code around and > delete some code, and now when I run it in the IDE, it randomly jumps > into the sub that handles the click event for a combo-box control called > cbBedList_Click(). The routine "Populate_cbBedList()" gets called by > "Form_Open", and reads values from a database to populate the > Combo-box. As far as I can remember, I haven't changed the code for > this form at all, but seemingly for no reason, when it hits line "178 > cbBedList.Clear" in the Populate sub, it starts executing the code in > cbBedList_Click! This generates an error because the cbBedList.index > value isn't set, since it wasn't actually clicked. If I remark out the > contents of the Click event, the Populate routine finishes, although I > still see the debug statement from line 169. If I remark out everything > from 168-173, it still runs fine (although obviously I don't get click > events handled for the combo-box any longer!). I'm pulling my hair > out. The stack backtrace shows: > > FMain.cbBedList_Click.169 > (native code) > FMain.Populate_cbBedList.178 > FMain.Form_Open.26 > > Setting a breakpoint at 178 and single-stepping shows exactly what the > backtrace does; the next line to be executed after 178 is 169! ANY > ideas??? Please? > > === > > > 168 PUBLIC SUB cbBedList_Click() > 169 DEBUG "We're in cbBedList_Click()!" > 170 ' BedNum = BedList[cbBedList.index + 1] > 171 ' DrawPlots($db, BedNum) > 172 > 173 END > 174 > 175 PUBLIC SUB Populate_cbBedList() > 176 DIM sql AS String > 177 'populate the bed selection listbox > 178 cbBedList.Clear > 179 sql = "select bedname, bednum from Beds" > 180 $res = $db.Exec(sql) > 181 DEBUG "$res.Count=" & $res.Count > 182 FOR EACH $res > 183 DEBUG "$res!BedName=" & $res!BedName > 184 cbBedList.Add($res!BedName) > 185 DEBUG "cbBedList.count=" & cbBedList.Count > 186 DEBUG "$res!BedNum=" & $res!BedNum > 187 BedList[cbBedList.count] = $res!BedNum > 188 NEXT > 189 END > Which version of Gambas do you use? With which GUI component? On which desktop? -- Beno?t Minisini From eilert-sprachen at ...221... Mon Jan 18 15:51:19 2010 From: eilert-sprachen at ...221... (Sprachschule Eilert) Date: Mon, 18 Jan 2010 15:51:19 +0100 Subject: [Gambas-user] What is gb.qte when compiling? In-Reply-To: <201001181400.17311.gambas@...1...> References: <4B545194.30302@...221...> <201001181400.17311.gambas@...1...> Message-ID: <4B547567.10800@...394...> Am 18.01.2010 14:00, schrieb Beno?t Minisini: >> Just downloaded 2.19 and wanted to compile it. Running configure, it says >> >> THESE COMPONENTS ARE DISABLED: >> >> - gb.corba >> - gb.db.firebird >> - gb.db.odbc >> - gb.db.sqlite2 >> - gb.gtk.svg >> - gb.qte >> - gb.sdl >> - gb.sdl.sound >> >> So, everything ok as usual, but I do not know what gb.qte is from the >> Components dialog's point of view. Is it qb.qt.ext? I used this in some >> of my projects. >> >> I ask just to make sure I still can use my projects after installing the >> new version... :-) I do not remember the gb.qte thing appearing in the >> DISABLED list yet. >> >> Thanks for any explanation. >> >> Regards >> >> Rolf >> > > Don't worry about gb.qte. Nobody uses it, and it has been removed in Gambas 3. > > Regards, > Ok, thank you. Compiled and installed flawlessly, now runs without problems... Regards Rolf -- Rolf-Werner Eilert SPRACHSCHULE EILERT Kollegienwall 19 - 49074 Osnabr?ck www.eilert-sprachen.de - 0541/22653 From Karl.Reinl at ...2345... Mon Jan 18 16:39:06 2010 From: Karl.Reinl at ...2345... (Charlie Reinl) Date: Mon, 18 Jan 2010 16:39:06 +0100 Subject: [Gambas-user] Program going off the rails in a way I can't explain. Help? In-Reply-To: <4B546ED7.4040708@...2350...> References: <4B546ED7.4040708@...2350...> Message-ID: <1263829146.6430.13.camel@...40...> Am Montag, den 18.01.2010, 08:23 -0600 schrieb Bill Richman: > I've got a really weird problem going on. I've been working on this > project for about a month, and today I decided to make some major > changes to the user interface operates. I moved some code around and > delete some code, and now when I run it in the IDE, it randomly jumps > into the sub that handles the click event for a combo-box control called > cbBedList_Click(). The routine "Populate_cbBedList()" gets called by > "Form_Open", and reads values from a database to populate the > Combo-box. As far as I can remember, I haven't changed the code for > this form at all, but seemingly for no reason, when it hits line "178 > cbBedList.Clear" in the Populate sub, it starts executing the code in > cbBedList_Click! This generates an error because the cbBedList.index > value isn't set, since it wasn't actually clicked. If I remark out the > contents of the Click event, the Populate routine finishes, although I > still see the debug statement from line 169. If I remark out everything > from 168-173, it still runs fine (although obviously I don't get click > events handled for the combo-box any longer!). I'm pulling my hair > out. The stack backtrace shows: > > FMain.cbBedList_Click.169 > (native code) > FMain.Populate_cbBedList.178 > FMain.Form_Open.26 > > Setting a breakpoint at 178 and single-stepping shows exactly what the > backtrace does; the next line to be executed after 178 is 169! ANY > ideas??? Please? > > === > > > 168 PUBLIC SUB cbBedList_Click() > 169 DEBUG "We're in cbBedList_Click()!" > 170 ' BedNum = BedList[cbBedList.index + 1] > 171 ' DrawPlots($db, BedNum) > 172 > 173 END > 174 > 175 PUBLIC SUB Populate_cbBedList() > 176 DIM sql AS String > 177 'populate the bed selection listbox > 178 cbBedList.Clear > 179 sql = "select bedname, bednum from Beds" > 180 $res = $db.Exec(sql) > 181 DEBUG "$res.Count=" & $res.Count > 182 FOR EACH $res > 183 DEBUG "$res!BedName=" & $res!BedName > 184 cbBedList.Add($res!BedName) > 185 DEBUG "cbBedList.count=" & cbBedList.Count > 186 DEBUG "$res!BedNum=" & $res!BedNum > 187 BedList[cbBedList.count] = $res!BedNum > 188 NEXT > 189 END > Salut Bill, first question : which gambas 2 or 3 ? second question : did you update that gambas ? third question : did you try to make a ALT-F7 (compile all) in the IDE ? there was said something about fired event by code, look in the archive. As workaround, you can set a bIsPopulate which is set to FALSE between line 177 - 178 and to TRUE after the Next. And in cbBedList_Click you don't do anything if NOT bIsPopulate . -- Amicalement Charlie From bill at ...2351... Mon Jan 18 17:33:50 2010 From: bill at ...2351... (Bill Richman) Date: Mon, 18 Jan 2010 10:33:50 -0600 Subject: [Gambas-user] Program going off the rails in a way I can't explain. Help? In-Reply-To: <201001181546.11673.gambas@...1...> References: <4B546ED7.4040708@...2350...> <201001181546.11673.gambas@...1...> Message-ID: <4B548D6E.10602@...2350...> Beno?t Minisini wrote: >> I've got a really weird problem going on. I've been working on this >> project for about a month, and today I decided to make some major >> changes to the user interface operates. I moved some code around and >> delete some code, and now when I run it in the IDE, it randomly jumps >> into the sub that handles the click event for a combo-box control called >> cbBedList_Click(). The routine "Populate_cbBedList()" gets called by >> "Form_Open", and reads values from a database to populate the >> Combo-box. As far as I can remember, I haven't changed the code for >> this form at all, but seemingly for no reason, when it hits line "178 >> cbBedList.Clear" in the Populate sub, it starts executing the code in >> cbBedList_Click! This generates an error because the cbBedList.index >> value isn't set, since it wasn't actually clicked. If I remark out the >> contents of the Click event, the Populate routine finishes, although I >> still see the debug statement from line 169. If I remark out everything >> from 168-173, it still runs fine (although obviously I don't get click >> events handled for the combo-box any longer!). I'm pulling my hair >> out. The stack backtrace shows: >> >> FMain.cbBedList_Click.169 >> (native code) >> FMain.Populate_cbBedList.178 >> FMain.Form_Open.26 >> >> Setting a breakpoint at 178 and single-stepping shows exactly what the >> backtrace does; the next line to be executed after 178 is 169! ANY >> ideas??? Please? >> >> === >> >> >> 168 PUBLIC SUB cbBedList_Click() >> 169 DEBUG "We're in cbBedList_Click()!" >> 170 ' BedNum = BedList[cbBedList.index + 1] >> 171 ' DrawPlots($db, BedNum) >> 172 >> 173 END >> 174 >> 175 PUBLIC SUB Populate_cbBedList() >> 176 DIM sql AS String >> 177 'populate the bed selection listbox >> 178 cbBedList.Clear >> 179 sql = "select bedname, bednum from Beds" >> 180 $res = $db.Exec(sql) >> 181 DEBUG "$res.Count=" & $res.Count >> 182 FOR EACH $res >> 183 DEBUG "$res!BedName=" & $res!BedName >> 184 cbBedList.Add($res!BedName) >> 185 DEBUG "cbBedList.count=" & cbBedList.Count >> 186 DEBUG "$res!BedNum=" & $res!BedNum >> 187 BedList[cbBedList.count] = $res!BedNum >> 188 NEXT >> 189 END >> >> > > Which version of Gambas do you use? With which GUI component? On which > desktop? > > Gambas 2.7, gb.gui, Ubuntu Linux 2.6.27-16-generic, Gnome 2.24.1 From bill at ...2351... Mon Jan 18 17:36:52 2010 From: bill at ...2351... (Bill Richman) Date: Mon, 18 Jan 2010 10:36:52 -0600 Subject: [Gambas-user] Program going off the rails in a way I can't explain. Help? In-Reply-To: <1263829146.6430.13.camel@...40...> References: <4B546ED7.4040708@...2350...> <1263829146.6430.13.camel@...40...> Message-ID: <4B548E24.80402@...2350...> Charlie Reinl wrote: > Am Montag, den 18.01.2010, 08:23 -0600 schrieb Bill Richman: > >> I've got a really weird problem going on. I've been working on this >> project for about a month, and today I decided to make some major >> changes to the user interface operates. I moved some code around and >> delete some code, and now when I run it in the IDE, it randomly jumps >> into the sub that handles the click event for a combo-box control called >> cbBedList_Click(). The routine "Populate_cbBedList()" gets called by >> "Form_Open", and reads values from a database to populate the >> Combo-box. As far as I can remember, I haven't changed the code for >> this form at all, but seemingly for no reason, when it hits line "178 >> cbBedList.Clear" in the Populate sub, it starts executing the code in >> cbBedList_Click! This generates an error because the cbBedList.index >> value isn't set, since it wasn't actually clicked. If I remark out the >> contents of the Click event, the Populate routine finishes, although I >> still see the debug statement from line 169. If I remark out everything >> from 168-173, it still runs fine (although obviously I don't get click >> events handled for the combo-box any longer!). I'm pulling my hair >> out. The stack backtrace shows: >> >> FMain.cbBedList_Click.169 >> (native code) >> FMain.Populate_cbBedList.178 >> FMain.Form_Open.26 >> >> Setting a breakpoint at 178 and single-stepping shows exactly what the >> backtrace does; the next line to be executed after 178 is 169! ANY >> ideas??? Please? >> >> === >> >> >> 168 PUBLIC SUB cbBedList_Click() >> 169 DEBUG "We're in cbBedList_Click()!" >> 170 ' BedNum = BedList[cbBedList.index + 1] >> 171 ' DrawPlots($db, BedNum) >> 172 >> 173 END >> 174 >> 175 PUBLIC SUB Populate_cbBedList() >> 176 DIM sql AS String >> 177 'populate the bed selection listbox >> 178 cbBedList.Clear >> 179 sql = "select bedname, bednum from Beds" >> 180 $res = $db.Exec(sql) >> 181 DEBUG "$res.Count=" & $res.Count >> 182 FOR EACH $res >> 183 DEBUG "$res!BedName=" & $res!BedName >> 184 cbBedList.Add($res!BedName) >> 185 DEBUG "cbBedList.count=" & cbBedList.Count >> 186 DEBUG "$res!BedNum=" & $res!BedNum >> 187 BedList[cbBedList.count] = $res!BedNum >> 188 NEXT >> 189 END >> >> > > Salut Bill, > > first question : which gambas 2 or 3 ? > second question : did you update that gambas ? > third question : did you try to make a ALT-F7 (compile all) in the IDE ? > > there was said something about fired event by code, look in the archive. > > As workaround, you can set a bIsPopulate which is set to FALSE between > line 177 - 178 and to TRUE after the Next. > > And in cbBedList_Click you don't do anything if NOT bIsPopulate . > > Gambas 2.7, gb.gui, Ubuntu Linux 2.6.27-16-generic, Gnome 2.24.1 I'm not sure what you mean by "update" gambas. To what? I tried "compile all" because I'd been cutting and pasting code around and thought it might be confused about locations in the compiled code, but it didn't seem to help. Thanks for the workaround suggestion; I'll keep it in mind in case I can't resolve this problem. -Bill From bill at ...2351... Mon Jan 18 17:44:19 2010 From: bill at ...2351... (Bill Richman) Date: Mon, 18 Jan 2010 10:44:19 -0600 Subject: [Gambas-user] Program going off the rails in a way I can't explain. Help? Message-ID: <4B548FE3.2040803@...2350...> I added some debugging output. Screenshot of code with line numbers is attached. (Is there any way to copy or save the code _with_ the line numbers for purposes like this?) Console output when run: FMain.Populate_cbBedList.178: About to run cbBedList.Clear FMain.cbBedList_Click.169: We're in cbBedList_Click()! FMain.cbBedList_Click.169: We're in cbBedList_Click()! FMain.Populate_cbBedList.180: Right after cbBedList.Clear FMain.Populate_cbBedList.185: $res.Count=9 FMain.Populate_cbBedList.187: $res!BedName=first FMain.cbBedList_Click.169: We're in cbBedList_Click()! FMain.Populate_cbBedList.190: cbBedList.count=1 FMain.Populate_cbBedList.191: $res!BedNum=1 FMain.Populate_cbBedList.187: $res!BedName=second FMain.Populate_cbBedList.190: cbBedList.count=2 FMain.Populate_cbBedList.191: $res!BedNum=2 FMain.Populate_cbBedList.187: $res!BedName=NewTest FMain.Populate_cbBedList.190: cbBedList.count=3 FMain.Populate_cbBedList.191: $res!BedNum=3 FMain.Populate_cbBedList.187: $res!BedName=Big Bed FMain.Populate_cbBedList.190: cbBedList.count=4 FMain.Populate_cbBedList.191: $res!BedNum=4 FMain.Populate_cbBedList.187: $res!BedName=Another bed FMain.Populate_cbBedList.190: cbBedList.count=5 FMain.Populate_cbBedList.191: $res!BedNum=5 FMain.Populate_cbBedList.187: $res!BedName=yet another bed FMain.Populate_cbBedList.190: cbBedList.count=6 FMain.Populate_cbBedList.191: $res!BedNum=6 FMain.Populate_cbBedList.187: $res!BedName=and another FMain.Populate_cbBedList.190: cbBedList.count=7 FMain.Populate_cbBedList.191: $res!BedNum=7 FMain.Populate_cbBedList.187: $res!BedName=test123 FMain.Populate_cbBedList.190: cbBedList.count=8 FMain.Populate_cbBedList.191: $res!BedNum=8 FMain.Populate_cbBedList.187: $res!BedName=asdfasdf FMain.Populate_cbBedList.190: cbBedList.count=9 FMain.Populate_cbBedList.191: $res!BedNum=9 -- Bill Richman - Lincoln, Nebraska Tilter at windmills, maker of pies in the sky, & curmudgeon email: bill at ...2350... web: www.geektrap.com -------------- next part -------------- A non-text attachment was scrubbed... Name: Screenshot-GardenManager - Gambas 2.png Type: image/png Size: 121432 bytes Desc: not available URL: From gambas at ...1... Mon Jan 18 18:08:12 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Mon, 18 Jan 2010 18:08:12 +0100 Subject: [Gambas-user] problem with database manager (gambas3) In-Reply-To: <27204927.post@...1379...> References: <27204927.post@...1379...> Message-ID: <201001181808.12360.gambas@...1...> > I having some problem with the database manager on gb3 The database manager has been deprecated and will be removed in Gambas 3. What are you talking about? -- Beno?t Minisini From gambas at ...1... Mon Jan 18 18:07:26 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Mon, 18 Jan 2010 18:07:26 +0100 Subject: [Gambas-user] =?utf-8?q?Program_going_off_the_rails_in_a_way_I_ca?= =?utf-8?b?bid0CWV4cGxhaW4uIEhlbHA/?= In-Reply-To: <4B548D6E.10602@...2350...> References: <4B546ED7.4040708@...2350...> <201001181546.11673.gambas@...1...> <4B548D6E.10602@...2350...> Message-ID: <201001181807.26096.gambas@...1...> > Beno?t Minisini wrote: > >> I've got a really weird problem going on. I've been working on this > >> project for about a month, and today I decided to make some major > >> changes to the user interface operates. I moved some code around and > >> delete some code, and now when I run it in the IDE, it randomly jumps > >> into the sub that handles the click event for a combo-box control called > >> cbBedList_Click(). The routine "Populate_cbBedList()" gets called by > >> "Form_Open", and reads values from a database to populate the > >> Combo-box. As far as I can remember, I haven't changed the code for > >> this form at all, but seemingly for no reason, when it hits line "178 > >> cbBedList.Clear" in the Populate sub, it starts executing the code in > >> cbBedList_Click! This generates an error because the cbBedList.index > >> value isn't set, since it wasn't actually clicked. If I remark out the > >> contents of the Click event, the Populate routine finishes, although I > >> still see the debug statement from line 169. If I remark out everything > >> from 168-173, it still runs fine (although obviously I don't get click > >> events handled for the combo-box any longer!). I'm pulling my hair > >> out. The stack backtrace shows: > >> > >> FMain.cbBedList_Click.169 > >> (native code) > >> FMain.Populate_cbBedList.178 > >> FMain.Form_Open.26 > >> > >> Setting a breakpoint at 178 and single-stepping shows exactly what the > >> backtrace does; the next line to be executed after 178 is 169! ANY > >> ideas??? Please? > >> > >> === > >> > >> > >> 168 PUBLIC SUB cbBedList_Click() > >> 169 DEBUG "We're in cbBedList_Click()!" > >> 170 ' BedNum = BedList[cbBedList.index + 1] > >> 171 ' DrawPlots($db, BedNum) > >> 172 > >> 173 END > >> 174 > >> 175 PUBLIC SUB Populate_cbBedList() > >> 176 DIM sql AS String > >> 177 'populate the bed selection listbox > >> 178 cbBedList.Clear > >> 179 sql = "select bedname, bednum from Beds" > >> 180 $res = $db.Exec(sql) > >> 181 DEBUG "$res.Count=" & $res.Count > >> 182 FOR EACH $res > >> 183 DEBUG "$res!BedName=" & $res!BedName > >> 184 cbBedList.Add($res!BedName) > >> 185 DEBUG "cbBedList.count=" & cbBedList.Count > >> 186 DEBUG "$res!BedNum=" & $res!BedNum > >> 187 BedList[cbBedList.count] = $res!BedNum > >> 188 NEXT > >> 189 END > > > > Which version of Gambas do you use? With which GUI component? On which > > desktop? > > Gambas 2.7, gb.gui, Ubuntu Linux 2.6.27-16-generic, Gnome 2.24.1 The ComboBox.Clear() method should not raise Click event. This is an old bug that has been fixed since Gambas 2.7. You should upgrade Gambas, or handle that specific case in your code by hand (i.e. by using a global variable as a lock). Regards, -- Beno?t Minisini From gambas.fr at ...626... Mon Jan 18 18:46:12 2010 From: gambas.fr at ...626... (Fabien Bodard) Date: Mon, 18 Jan 2010 18:46:12 +0100 Subject: [Gambas-user] How to move an object within a form In-Reply-To: <27209201.post@...1379...> References: <27209201.post@...1379...> Message-ID: <6324a42a1001180946m10ce044bx9eccebddd26adbcf@...627...> what do you want to do exactly... i don't understand :/ (english is not my primary language !) 2010/1/18 Fiddler63 : > > I'm trying to move an object within a form. > The following code allows me to move the form, but not the object within the > form, ie when I click on the mouse I can move the form around on the screen, > but no the object within the form. > > Any suggestions ? > > PRIVATE $MX AS Integer > PRIVATE $MY AS Integer > > PUBLIC SUB DrawingArea1_MouseDown() > ?$MX = Mouse.ScreenX - ME.X > ?$MY = Mouse.ScreenY - ME.Y > END > > PUBLIC SUB DrawingArea1_MouseMove() > ?ME.Move(Mouse.ScreenX - $MX, Mouse.ScreenY - $MY) > END > -- > View this message in context: http://old.nabble.com/How-to-move-an-object-within-a-form-tp27209201p27209201.html > Sent from the gambas-user mailing list archive at Nabble.com. > > > ------------------------------------------------------------------------------ > Throughout its 18-year history, RSA Conference consistently attracts the > world's best and brightest in the field, creating opportunities for Conference > attendees to learn about information security's most important issues through > interactions with peers, luminaries and emerging and established companies. > http://p.sf.net/sfu/rsaconf-dev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From mx4eva at ...626... Mon Jan 18 19:38:15 2010 From: mx4eva at ...626... (Fiddler63) Date: Mon, 18 Jan 2010 10:38:15 -0800 (PST) Subject: [Gambas-user] How to move an object within a form In-Reply-To: <6324a42a1001180946m10ce044bx9eccebddd26adbcf@...627...> References: <27209201.post@...1379...> <6324a42a1001180946m10ce044bx9eccebddd26adbcf@...627...> Message-ID: <27214892.post@...1379...> I would like the user to be able to move the drawingarea around within the form. The drawingarea(s) will eventuality be created dynamically, when I get around to understand that part as well. Image a bunch of boxes like a mindmap, which you can move around on the screen (within the form). Kim Fabien Bodard-4 wrote: > > what do you want to do exactly... i don't understand :/ (english is > not my primary language !) > > 2010/1/18 Fiddler63 : >> >> I'm trying to move an object within a form. >> The following code allows me to move the form, but not the object within >> the >> form, ie when I click on the mouse I can move the form around on the >> screen, >> but no the object within the form. >> >> Any suggestions ? >> >> PRIVATE $MX AS Integer >> PRIVATE $MY AS Integer >> >> PUBLIC SUB DrawingArea1_MouseDown() >> ?$MX = Mouse.ScreenX - ME.X >> ?$MY = Mouse.ScreenY - ME.Y >> END >> >> PUBLIC SUB DrawingArea1_MouseMove() >> ?ME.Move(Mouse.ScreenX - $MX, Mouse.ScreenY - $MY) >> END >> -- >> View this message in context: >> http://old.nabble.com/How-to-move-an-object-within-a-form-tp27209201p27209201.html >> Sent from the gambas-user mailing list archive at Nabble.com. >> >> >> ------------------------------------------------------------------------------ >> Throughout its 18-year history, RSA Conference consistently attracts the >> world's best and brightest in the field, creating opportunities for >> Conference >> attendees to learn about information security's most important issues >> through >> interactions with peers, luminaries and emerging and established >> companies. >> http://p.sf.net/sfu/rsaconf-dev2dev >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > ------------------------------------------------------------------------------ > Throughout its 18-year history, RSA Conference consistently attracts the > world's best and brightest in the field, creating opportunities for > Conference > attendees to learn about information security's most important issues > through > interactions with peers, luminaries and emerging and established > companies. > http://p.sf.net/sfu/rsaconf-dev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > -- View this message in context: http://old.nabble.com/How-to-move-an-object-within-a-form-tp27209201p27214892.html Sent from the gambas-user mailing list archive at Nabble.com. From kobolds at ...2041... Mon Jan 18 19:26:01 2010 From: kobolds at ...2041... (kobolds) Date: Mon, 18 Jan 2010 10:26:01 -0800 (PST) Subject: [Gambas-user] problem with database manager (gambas3) In-Reply-To: <201001181808.12360.gambas@...1...> References: <27204927.post@...1379...> <201001181808.12360.gambas@...1...> Message-ID: <27214741.post@...1379...> I though the one show at the connection is db manager ?. I create a sqlite db connection . when I click on it , it show db manager where I can add/modify or delete table. even though it's integrated into the ide , I though it's still db manager . Beno?t Minisini wrote: > >> I having some problem with the database manager on gb3 > > The database manager has been deprecated and will be removed in Gambas 3. > What > are you talking about? > > -- > Beno?t Minisini > > ------------------------------------------------------------------------------ > Throughout its 18-year history, RSA Conference consistently attracts the > world's best and brightest in the field, creating opportunities for > Conference > attendees to learn about information security's most important issues > through > interactions with peers, luminaries and emerging and established > companies. > http://p.sf.net/sfu/rsaconf-dev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > -- View this message in context: http://old.nabble.com/problem-with-database-manager-%28gambas3%29-tp27204927p27214741.html Sent from the gambas-user mailing list archive at Nabble.com. From wdahn at ...1000... Mon Jan 18 13:31:25 2010 From: wdahn at ...1000... (Werner) Date: Mon, 18 Jan 2010 20:31:25 +0800 Subject: [Gambas-user] How to move an object within a form In-Reply-To: <27209201.post@...1379...> References: <27209201.post@...1379...> Message-ID: <4B54549D.1050900@...1000...> On 18/01/10 19:27, Fiddler63 wrote: > I'm trying to move an object within a form. > The following code allows me to move the form, but not the object within the > form, ie when I click on the mouse I can move the form around on the screen, > but no the object within the form. > > Any suggestions ? > > PRIVATE $MX AS Integer > PRIVATE $MY AS Integer > > PUBLIC SUB DrawingArea1_MouseDown() > $MX = Mouse.ScreenX - ME.X > $MY = Mouse.ScreenY - ME.Y > END > > PUBLIC SUB DrawingArea1_MouseMove() > ME.Move(Mouse.ScreenX - $MX, Mouse.ScreenY - $MY) > END > ME relates to the form, not the Drawing Area. Regards, Werner From wdahn at ...1000... Mon Jan 18 13:42:34 2010 From: wdahn at ...1000... (Werner) Date: Mon, 18 Jan 2010 20:42:34 +0800 Subject: [Gambas-user] How to move an object within a form In-Reply-To: <27209201.post@...1379...> References: <27209201.post@...1379...> Message-ID: <4B54573A.4090505@...1000...> On 18/01/10 19:27, Fiddler63 wrote: > I'm trying to move an object within a form. > The following code allows me to move the form, but not the object within the > form, ie when I click on the mouse I can move the form around on the screen, > but no the object within the form. > > Any suggestions ? > > PRIVATE $MX AS Integer > PRIVATE $MY AS Integer > > PUBLIC SUB DrawingArea1_MouseDown() > $MX = Mouse.ScreenX - ME.X > $MY = Mouse.ScreenY - ME.Y > END > > PUBLIC SUB DrawingArea1_MouseMove() > ME.Move(Mouse.ScreenX - $MX, Mouse.ScreenY - $MY) > END > ME relates to the form, not the Drawing Area. This works for me: '---------------------------------------------- Private thePicture As New Picture Public Sub Form_Open() thePicture = Picture.Load("/home/werda/Desktop/Wolf.jpg") DrawingArea1.Resize(thePicture.Width, thePicture.Height) End Public Sub DrawingArea1_Draw() Draw.Picture(thePicture, 0, 0) End Public Sub DrawingArea1_MouseMove() DrawingArea1.X += Mouse.X - Mouse.StartX DrawingArea1.Y += Mouse.Y - Mouse.StartY End '---------------------------------------------- Regards, Werner From math.eber at ...221... Mon Jan 18 20:06:37 2010 From: math.eber at ...221... (Matti) Date: Mon, 18 Jan 2010 20:06:37 +0100 Subject: [Gambas-user] How to move an object within a form In-Reply-To: <27214892.post@...1379...> References: <27209201.post@...1379...> <6324a42a1001180946m10ce044bx9eccebddd26adbcf@...627...> <27214892.post@...1379...> Message-ID: <4B54B13D.1020808@...221...> I did this with PictureBoxes. 1. On MouseDown event, the start position of the PictureBox is taken: iMStartx = Mouse.X iMStarty = Mouse.Y 2. On MouseMove event, the sub is: ("Rahmen" are the PictureBoxes, and "Ziel" means target) PUBLIC SUB Rahmen_MouseMove() DIM Zielx AS Integer DIM Ziely AS Integer iNr = LAST.Tag Zielx = aRahmen[iNr].X + Mouse.X - iMStartx Ziely = aRahmen[iNr].Y + Mouse.Y - iMStarty aRahmen[iNr].X = Zielx aRahmen[iNr].Y = Ziely ... END That's all. Matti Fiddler63 schrieb: > I would like the user to be able to move the drawingarea around within the > form. > The drawingarea(s) will eventuality be created dynamically, when I get > around to understand that part as well. > Image a bunch of boxes like a mindmap, which you can move around on the > screen (within the form). > Kim > > > > Fabien Bodard-4 wrote: >> what do you want to do exactly... i don't understand :/ (english is >> not my primary language !) >> >> 2010/1/18 Fiddler63 : >>> I'm trying to move an object within a form. >>> The following code allows me to move the form, but not the object within >>> the >>> form, ie when I click on the mouse I can move the form around on the >>> screen, >>> but no the object within the form. >>> >>> Any suggestions ? >>> >>> PRIVATE $MX AS Integer >>> PRIVATE $MY AS Integer >>> >>> PUBLIC SUB DrawingArea1_MouseDown() >>> $MX = Mouse.ScreenX - ME.X >>> $MY = Mouse.ScreenY - ME.Y >>> END >>> >>> PUBLIC SUB DrawingArea1_MouseMove() >>> ME.Move(Mouse.ScreenX - $MX, Mouse.ScreenY - $MY) >>> END >>> -- >>> View this message in context: >>> http://old.nabble.com/How-to-move-an-object-within-a-form-tp27209201p27209201.html >>> Sent from the gambas-user mailing list archive at Nabble.com. >>> >>> >>> ------------------------------------------------------------------------------ >>> Throughout its 18-year history, RSA Conference consistently attracts the >>> world's best and brightest in the field, creating opportunities for >>> Conference >>> attendees to learn about information security's most important issues >>> through >>> interactions with peers, luminaries and emerging and established >>> companies. >>> http://p.sf.net/sfu/rsaconf-dev2dev >>> _______________________________________________ >>> Gambas-user mailing list >>> Gambas-user at lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>> >> ------------------------------------------------------------------------------ >> Throughout its 18-year history, RSA Conference consistently attracts the >> world's best and brightest in the field, creating opportunities for >> Conference >> attendees to learn about information security's most important issues >> through >> interactions with peers, luminaries and emerging and established >> companies. >> http://p.sf.net/sfu/rsaconf-dev2dev >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> >> > From gambas at ...1... Mon Jan 18 20:57:22 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Mon, 18 Jan 2010 20:57:22 +0100 Subject: [Gambas-user] problem with database manager (gambas3) In-Reply-To: <27214741.post@...1379...> References: <27204927.post@...1379...> <201001181808.12360.gambas@...1...> <27214741.post@...1379...> Message-ID: <201001182057.22692.gambas@...1...> > I though the one show at the connection is db manager ?. > I create a sqlite db connection . when I click on it , it show db manager > where I can add/modify or delete table. > > even though it's integrated into the ide , I though it's still db manager . > Ah, OK, yes it is! :-) > 1. when I close the database manager , it close the whole gb3 Where do you click exactly? Can you give me more details? > 2. cannot add /modify /delete the records in a table. Sorry, that was not implemented yet. I wanted to implement that directly in the DataView control. But maybe I won't have time, and will implement the feature directly in the IDE, as it was in the old database manager. > if no records in the > table and I click on the view , I get exception and gb3 terminate . Apparently a bug, I will see if I can reproduce it. Regards, -- Beno?t Minisini From kobolds at ...2041... Mon Jan 18 21:01:47 2010 From: kobolds at ...2041... (kobolds) Date: Mon, 18 Jan 2010 12:01:47 -0800 (PST) Subject: [Gambas-user] problem with database manager (gambas3) In-Reply-To: <201001182057.22692.gambas@...1...> References: <27204927.post@...1379...> <201001181808.12360.gambas@...1...> <27214741.post@...1379...> <201001182057.22692.gambas@...1...> Message-ID: <27215899.post@...1379...> >> 1. when I close the database manager , it close the whole gb3 > Where do you click exactly? Can you give me more details? > the red close tab button Beno?t Minisini wrote: > >> I though the one show at the connection is db manager ?. >> I create a sqlite db connection . when I click on it , it show db manager >> where I can add/modify or delete table. >> >> even though it's integrated into the ide , I though it's still db manager >> . >> > > Ah, OK, yes it is! :-) > >> 1. when I close the database manager , it close the whole gb3 > > Where do you click exactly? Can you give me more details? > >> 2. cannot add /modify /delete the records in a table. > > Sorry, that was not implemented yet. I wanted to implement that directly > in > the DataView control. But maybe I won't have time, and will implement the > feature directly in the IDE, as it was in the old database manager. > >> if no records in the >> table and I click on the view , I get exception and gb3 terminate . > > Apparently a bug, I will see if I can reproduce it. > > Regards, > > -- > Beno?t Minisini > > ------------------------------------------------------------------------------ > Throughout its 18-year history, RSA Conference consistently attracts the > world's best and brightest in the field, creating opportunities for > Conference > attendees to learn about information security's most important issues > through > interactions with peers, luminaries and emerging and established > companies. > http://p.sf.net/sfu/rsaconf-dev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > -- View this message in context: http://old.nabble.com/problem-with-database-manager-%28gambas3%29-tp27204927p27215899.html Sent from the gambas-user mailing list archive at Nabble.com. From gambas at ...1... Mon Jan 18 21:23:07 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Mon, 18 Jan 2010 21:23:07 +0100 Subject: [Gambas-user] problem with database manager (gambas3) In-Reply-To: <27215899.post@...1379...> References: <27204927.post@...1379...> <201001182057.22692.gambas@...1...> <27215899.post@...1379...> Message-ID: <201001182123.08006.gambas@...1...> > >> 1. when I close the database manager , it close the whole gb3 > > > > Where do you click exactly? Can you give me more details? > > the red close tab button > Can you send me your full project and tell me what should I do to reproduce the bug. If it needs a specific database connection, can you send me a sql dump of the needed data to initialize that database? Regards, -- Beno?t Minisini From kobolds at ...2041... Mon Jan 18 22:02:28 2010 From: kobolds at ...2041... (kobolds) Date: Mon, 18 Jan 2010 13:02:28 -0800 (PST) Subject: [Gambas-user] problem with database manager (gambas3) In-Reply-To: <201001182123.08006.gambas@...1...> References: <27204927.post@...1379...> <201001181808.12360.gambas@...1...> <27214741.post@...1379...> <201001182057.22692.gambas@...1...> <27215899.post@...1379...> <201001182123.08006.gambas@...1...> Message-ID: <27216733.post@...1379...> here I attach the test project and snap shot. the database is in sqlite3 . you need to change the path of the connection 1. after you open the database manager , at the top right you will see red close button (to close the tab) click on it , it will close the whole ide when it not suppose to be 2. click on a test table you will see no records on records view . double click on the records view you will get exception . this exception only happen if no record . if there's a record then the exception won't come out http://old.nabble.com/file/p27216733/test.tar.gz test.tar.gz http://old.nabble.com/file/p27216733/snapshot1.png snapshot1.png you need Beno?t Minisini wrote: > >> >> 1. when I close the database manager , it close the whole gb3 >> > >> > Where do you click exactly? Can you give me more details? >> >> the red close tab button >> > > Can you send me your full project and tell me what should I do to > reproduce > the bug. If it needs a specific database connection, can you send me a sql > dump of the needed data to initialize that database? > > Regards, > > -- > Beno?t Minisini > > ------------------------------------------------------------------------------ > Throughout its 18-year history, RSA Conference consistently attracts the > world's best and brightest in the field, creating opportunities for > Conference > attendees to learn about information security's most important issues > through > interactions with peers, luminaries and emerging and established > companies. > http://p.sf.net/sfu/rsaconf-dev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > -- View this message in context: http://old.nabble.com/problem-with-database-manager-%28gambas3%29-tp27204927p27216733.html Sent from the gambas-user mailing list archive at Nabble.com. From bill at ...2351... Tue Jan 19 00:09:22 2010 From: bill at ...2351... (Bill Richman) Date: Mon, 18 Jan 2010 17:09:22 -0600 Subject: [Gambas-user] Program going off the rails in a way I can't explain. Help? In-Reply-To: <201001190816.02445.rterry@...1946...> References: <4B546ED7.4040708@...2350...> <201001190816.02445.rterry@...1946...> Message-ID: <4B54EA22.8050101@...2350...> Thanks for the suggestions. I updated to Gambas 2.19, but that didn't seem to help. I assume you're referring to the files it creates in the .gambas folder inside each project folder? I've deleted those - although I think that what the "Clean up" option does - and re-run the program. The files in .gambas reappear, and I'm still getting the behavior where it jumps randomly into the event routine when I call the .clear method of the combo-box control: FMain.Populate_cbBedList.178: About to run cbBedList.Clear FMain.cbBedList_Click.169: We're in cbBedList_Click()! FMain.cbBedList_Click.169: We're in cbBedList_Click()! FMain.Populate_cbBedList.180: Right after cbBedList.Clear FMain.Populate_cbBedList.185: $res.Count=9 FMain.Populate_cbBedList.187: $res!BedName=first FMain.cbBedList_Click.169: We're in cbBedList_Click()! FMain.Populate_cbBedList.190: cbBedList.count=1 FMain.Populate_cbBedList.191: $res!BedNum=1 I can try what someone else suggested - setting a flag after populating the combo-box to tell me if I'm supposed to be in the event or not - but that seems kind of ugly. Bill Richman - Lincoln, Nebraska Tilter at windmills, maker of pies in the sky, & curmudgeon email: bill at ...2350... web: www.geektrap.com richard terry wrote: > On Tuesday 19 January 2010 01:23:19 Bill Richman wrote: > Bill, > > I've intermittently had this problem - I think in my case it was because I'd > made changes to the code, saved it, but gambas was running on an old pre- > compiled version. > > I cleaned up the project, deleted all the compiled files, re-compiled and it > seemed to fix the problem. > > Let me know if that helps for interest. > > Regards > > Richard > > >> I've got a really weird problem going on. I've been working on this >> project for about a month, and today I decided to make some major >> changes to the user interface operates. I moved some code around and >> delete some code, and now when I run it in the IDE, it randomly jumps >> into the sub that handles the click event for a combo-box control called >> cbBedList_Click(). The routine "Populate_cbBedList()" gets called by >> "Form_Open", and reads values from a database to populate the >> Combo-box. As far as I can remember, I haven't changed the code for >> this form at all, but seemingly for no reason, when it hits line "178 >> cbBedList.Clear" in the Populate sub, it starts executing the code in >> cbBedList_Click! This generates an error because the cbBedList.index >> value isn't set, since it wasn't actually clicked. If I remark out the >> contents of the Click event, the Populate routine finishes, although I >> still see the debug statement from line 169. If I remark out everything >> from 168-173, it still runs fine (although obviously I don't get click >> events handled for the combo-box any longer!). I'm pulling my hair >> out. The stack backtrace shows: >> >> FMain.cbBedList_Click.169 >> (native code) >> FMain.Populate_cbBedList.178 >> FMain.Form_Open.26 >> >> Setting a breakpoint at 178 and single-stepping shows exactly what the >> backtrace does; the next line to be executed after 178 is 169! ANY >> ideas??? Please? >> >> === >> >> >> 168 PUBLIC SUB cbBedList_Click() >> 169 DEBUG "We're in cbBedList_Click()!" >> 170 ' BedNum = BedList[cbBedList.index + 1] >> 171 ' DrawPlots($db, BedNum) >> 172 >> 173 END >> 174 >> 175 PUBLIC SUB Populate_cbBedList() >> 176 DIM sql AS String >> 177 'populate the bed selection listbox >> 178 cbBedList.Clear >> 179 sql = "select bedname, bednum from Beds" >> 180 $res = $db.Exec(sql) >> 181 DEBUG "$res.Count=" & $res.Count >> 182 FOR EACH $res >> 183 DEBUG "$res!BedName=" & $res!BedName >> 184 cbBedList.Add($res!BedName) >> 185 DEBUG "cbBedList.count=" & cbBedList.Count >> 186 DEBUG "$res!BedNum=" & $res!BedNum >> 187 BedList[cbBedList.count] = $res!BedNum >> 188 NEXT >> 189 END >> >> From bill at ...2351... Tue Jan 19 00:16:09 2010 From: bill at ...2351... (Bill Richman) Date: Mon, 18 Jan 2010 17:16:09 -0600 Subject: [Gambas-user] Program going off the rails in a way I can't explain. Help? In-Reply-To: <201001181807.26096.gambas@...1...> References: <4B546ED7.4040708@...2350...> <201001181546.11673.gambas@...1...> <4B548D6E.10602@...2350...> <201001181807.26096.gambas@...1...> Message-ID: <4B54EBB9.2010406@...2350...> Well, I upgraded to Gambas 2.19 using the instructions for Ubuntu Intrepid found here: http://gambasdoc.org/help/install/ubuntu?view. Since "Help/About" now reports 2.19, I have to assume that worked, and I'm still getting the same behavior (jumping into the "_click" event when running the .clear method of the combo-box control). Although it seems like it runs the _click handler a couple of times for each call to .clear, and once during the first usage of the .add method as well: FMain.Populate_cbBedList.178: About to run cbBedList.Clear FMain.cbBedList_Click.169: We're in cbBedList_Click()! FMain.cbBedList_Click.169: We're in cbBedList_Click()! FMain.Populate_cbBedList.180: Right after cbBedList.Clear FMain.Populate_cbBedList.185: $res.Count=9 FMain.Populate_cbBedList.187: $res!BedName=first FMain.cbBedList_Click.169: We're in cbBedList_Click()! I can try setting up a flag to kick me out of the _click until after the control is populated, as someone else suggested, but that seems pretty ugly. Is there some way I can be sure I'm running 2.19 (in which you noted this bug has been fixed) other than the ?/About menu, or is that definitive? Thanks, -Bill Bill Richman - Lincoln, Nebraska Tilter at windmills, maker of pies in the sky, & curmudgeon email: bill at ...2350... web: www.geektrap.com Beno?t Minisini wrote: >> Beno?t Minisini wrote: >> >>>> I've got a really weird problem going on. I've been working on this >>>> project for about a month, and today I decided to make some major >>>> changes to the user interface operates. I moved some code around and >>>> delete some code, and now when I run it in the IDE, it randomly jumps >>>> into the sub that handles the click event for a combo-box control called >>>> cbBedList_Click(). The routine "Populate_cbBedList()" gets called by >>>> "Form_Open", and reads values from a database to populate the >>>> Combo-box. As far as I can remember, I haven't changed the code for >>>> this form at all, but seemingly for no reason, when it hits line "178 >>>> cbBedList.Clear" in the Populate sub, it starts executing the code in >>>> cbBedList_Click! This generates an error because the cbBedList.index >>>> value isn't set, since it wasn't actually clicked. If I remark out the >>>> contents of the Click event, the Populate routine finishes, although I >>>> still see the debug statement from line 169. If I remark out everything >>>> from 168-173, it still runs fine (although obviously I don't get click >>>> events handled for the combo-box any longer!). I'm pulling my hair >>>> out. The stack backtrace shows: >>>> >>>> FMain.cbBedList_Click.169 >>>> (native code) >>>> FMain.Populate_cbBedList.178 >>>> FMain.Form_Open.26 >>>> >>>> Setting a breakpoint at 178 and single-stepping shows exactly what the >>>> backtrace does; the next line to be executed after 178 is 169! ANY >>>> ideas??? Please? >>>> >>>> === >>>> >>>> >>>> 168 PUBLIC SUB cbBedList_Click() >>>> 169 DEBUG "We're in cbBedList_Click()!" >>>> 170 ' BedNum = BedList[cbBedList.index + 1] >>>> 171 ' DrawPlots($db, BedNum) >>>> 172 >>>> 173 END >>>> 174 >>>> 175 PUBLIC SUB Populate_cbBedList() >>>> 176 DIM sql AS String >>>> 177 'populate the bed selection listbox >>>> 178 cbBedList.Clear >>>> 179 sql = "select bedname, bednum from Beds" >>>> 180 $res = $db.Exec(sql) >>>> 181 DEBUG "$res.Count=" & $res.Count >>>> 182 FOR EACH $res >>>> 183 DEBUG "$res!BedName=" & $res!BedName >>>> 184 cbBedList.Add($res!BedName) >>>> 185 DEBUG "cbBedList.count=" & cbBedList.Count >>>> 186 DEBUG "$res!BedNum=" & $res!BedNum >>>> 187 BedList[cbBedList.count] = $res!BedNum >>>> 188 NEXT >>>> 189 END >>>> >>> Which version of Gambas do you use? With which GUI component? On which >>> desktop? >>> >> Gambas 2.7, gb.gui, Ubuntu Linux 2.6.27-16-generic, Gnome 2.24.1 >> > > The ComboBox.Clear() method should not raise Click event. This is an old bug > that has been fixed since Gambas 2.7. You should upgrade Gambas, or handle > that specific case in your code by hand (i.e. by using a global variable as a > lock). > > Regards, > > > From alpeachey at ...626... Tue Jan 19 00:20:28 2010 From: alpeachey at ...626... (Aaron Peachey) Date: Tue, 19 Jan 2010 10:20:28 +1100 Subject: [Gambas-user] Custom controls - 1 more question Message-ID: <908061cb1001181520y59b095eh4ac41a30a9f01e8c@...627...> How do i add a control to a form in code? i've tried dim name as label then name = new label(parentformname) in the form open method but it doesn't appear. thanks, aaron From gambas at ...1... Tue Jan 19 00:28:01 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Tue, 19 Jan 2010 00:28:01 +0100 Subject: [Gambas-user] problem bold style in select font dialog (gambas3) In-Reply-To: <27182733.post@...1379...> References: <27182733.post@...1379...> Message-ID: <201001190028.01341.gambas@...1...> > I small problem with the select font dialog . when I try to select to bold > style , the text doesn't change to bold . > I have to first click other style (normal , italic or bold italic) and > then click the bold style , by then the bold style will work . > Bug fixed in revision #2615 for Gambas 2. Regards, -- Beno?t Minisini From gambas at ...1... Tue Jan 19 00:29:21 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Tue, 19 Jan 2010 00:29:21 +0100 Subject: [Gambas-user] Custom controls - 1 more question In-Reply-To: <908061cb1001181520y59b095eh4ac41a30a9f01e8c@...627...> References: <908061cb1001181520y59b095eh4ac41a30a9f01e8c@...627...> Message-ID: <201001190029.21946.gambas@...1...> > How do i add a control to a form in code? i've tried dim name as label > then name = new label(parentformname) in the form open method but it > doesn't appear. thanks, aaron > Can you show your code? -- Beno?t Minisini From bill at ...2351... Tue Jan 19 03:27:54 2010 From: bill at ...2351... (Bill Richman) Date: Mon, 18 Jan 2010 20:27:54 -0600 Subject: [Gambas-user] IconView control questions Message-ID: <4B5518AA.1040400@...2350...> I'm having a little trouble figuring out how to get the iconview control to behave as I would like. The "grid spacing" property seems to adjust the horizontal distance between the icons, but is there any way to change the vertical spacing between the icons and the text, and between sequential rows of icons? Or is there a way to turn off the text labels on the icons entirely, to make them pack together more closely vertically? Thanks. -- Bill Richman - Lincoln, Nebraska Tilter at windmills, maker of pies in the sky, & curmudgeon email: bill at ...2350... web: www.geektrap.com From doriano.blengino at ...1909... Tue Jan 19 08:54:21 2010 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Tue, 19 Jan 2010 08:54:21 +0100 Subject: [Gambas-user] Program going off the rails in a way I can't explain. Help? In-Reply-To: <4B54EBB9.2010406@...2350...> References: <4B546ED7.4040708@...2350...> <201001181546.11673.gambas@...1...> <4B548D6E.10602@...2350...> <201001181807.26096.gambas@...1...> <4B54EBB9.2010406@...2350...> Message-ID: <4B55652D.4090903@...1909...> Bill Richman ha scritto: > Well, I upgraded to Gambas 2.19 using the instructions for Ubuntu > Intrepid found here: http://gambasdoc.org/help/install/ubuntu?view. > Since "Help/About" now reports 2.19, I have to assume that worked, and > I'm still getting the same behavior (jumping into the "_click" event > when running the .clear method of the combo-box control). Although it > seems like it runs the _click handler a couple of times for each call to > .clear, and once during the first usage of the .add method as well: > > FMain.Populate_cbBedList.178: About to run cbBedList.Clear > FMain.cbBedList_Click.169: We're in cbBedList_Click()! > FMain.cbBedList_Click.169: We're in cbBedList_Click()! > FMain.Populate_cbBedList.180: Right after cbBedList.Clear > FMain.Populate_cbBedList.185: $res.Count=9 > FMain.Populate_cbBedList.187: $res!BedName=first > FMain.cbBedList_Click.169: We're in cbBedList_Click()! > > I can try setting up a flag to kick me out of the _click until after the > control is populated, as someone else suggested, but that seems pretty > ugly. Is there some way I can be sure I'm running 2.19 (in which you > noted this bug has been fixed) other than the ?/About menu, or is that > definitive? > I think that setting up a flag won't hurt anyway, even if it is ugly. The whole GUI world (not only gambas) seems to have this kind of mentality (to raise an event in response to modifications made by code), so even where this problem does not show, may be in the future it will (this is called "update a software to the latest version"). Regards, Doriano From nospam.nospam.nospam at ...626... Tue Jan 19 09:37:53 2010 From: nospam.nospam.nospam at ...626... (Kadaitcha Man) Date: Tue, 19 Jan 2010 19:37:53 +1100 Subject: [Gambas-user] Program going off the rails in a way I can't explain. Help? In-Reply-To: <4B55652D.4090903@...1909...> References: <4B546ED7.4040708@...2350...> <201001181546.11673.gambas@...1...> <4B548D6E.10602@...2350...> <201001181807.26096.gambas@...1...> <4B54EBB9.2010406@...2350...> <4B55652D.4090903@...1909...> Message-ID: 2010/1/19 Doriano Blengino : > I think that setting up a flag won't hurt anyway, even if it is ugly. > The whole GUI world (not only gambas) seems to have this kind of > mentality (to raise an event in response to modifications made by code), 1) Flags are necessary in any GUI. 2) Events caused by code should fire as if the user had performed the function. Otherwise the performing code would have to emulate the control's event sequence and there goes OO encapsulation. not to mention the need to write unnecessary and oft-repeating code. HTH From doriano.blengino at ...1909... Tue Jan 19 10:12:46 2010 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Tue, 19 Jan 2010 10:12:46 +0100 Subject: [Gambas-user] Program going off the rails in a way I can't explain. Help? In-Reply-To: References: <4B546ED7.4040708@...2350...> <201001181546.11673.gambas@...1...> <4B548D6E.10602@...2350...> <201001181807.26096.gambas@...1...> <4B54EBB9.2010406@...2350...> <4B55652D.4090903@...1909...> Message-ID: <4B55778E.7000808@...1909...> Kadaitcha Man ha scritto: > 2010/1/19 Doriano Blengino : > > >> I think that setting up a flag won't hurt anyway, even if it is ugly. >> The whole GUI world (not only gambas) seems to have this kind of >> mentality (to raise an event in response to modifications made by code), >> > > 1) Flags are necessary in any GUI. > ?? > 2) Events caused by code should fire as if the user had performed the function. > > Otherwise the performing code would have to emulate the control's > event sequence and there goes OO encapsulation. not to mention the > need to write unnecessary and oft-repeating code. > Debatable (but I am unwilling to debate). Is it more oft-repeating and unnecessary to write: combo1.add('An item") combo1_click ' would be better to "raise an event to an object" (note: 2 lines of code, and only one is meaningful to our discussion) or private bUpdatingCombo as boolean ... bUpdatingCombo = true combo1.add("An item") bUpdatingCombo = false ... ' (later, in combo1_click) if bUpdatingCombo then return ... (note: 4 lines of code needed and a global variable used in three different places). And things can be more complicated than this stupid example if there is some inheritance involved - which is the order of execution of the several event handler? And should we block every event handler in the hierarchy (if it is possible) or just some? What happens behind the scenes (encapsulation!)? Regards, Doriano From nospam.nospam.nospam at ...626... Tue Jan 19 10:20:52 2010 From: nospam.nospam.nospam at ...626... (Kadaitcha Man) Date: Tue, 19 Jan 2010 20:20:52 +1100 Subject: [Gambas-user] Program going off the rails in a way I can't explain. Help? In-Reply-To: <4B55778E.7000808@...1909...> References: <4B546ED7.4040708@...2350...> <201001181546.11673.gambas@...1...> <4B548D6E.10602@...2350...> <201001181807.26096.gambas@...1...> <4B54EBB9.2010406@...2350...> <4B55652D.4090903@...1909...> <4B55778E.7000808@...1909...> Message-ID: 2010/1/19 Doriano Blengino : > Kadaitcha Man ha scritto: >> 2010/1/19 Doriano Blengino : >> >> >>> I think that setting up a flag won't hurt anyway, even if it is ugly. >>> The whole GUI world (not only gambas) seems to have this kind of >>> mentality (to raise an event in response to modifications made by code), >>> >> >> 1) Flags are necessary in any GUI. >> > ?? >> 2) Events caused by code should fire as if the user had performed the function. >> >> Otherwise the performing code would have to emulate the control's >> event sequence and there goes OO encapsulation. not to mention the >> need to write unnecessary and oft-repeating code. >> > Debatable (but I am unwilling to debate). > Is it more oft-repeating and unnecessary to write: Hey, I don't want to get into an argument, but the fact that you posted code really blew your "I am unwilling to debate" line right out of the water :) From nospam.nospam.nospam at ...626... Tue Jan 19 10:24:30 2010 From: nospam.nospam.nospam at ...626... (Kadaitcha Man) Date: Tue, 19 Jan 2010 20:24:30 +1100 Subject: [Gambas-user] Program going off the rails in a way I can't explain. Help? In-Reply-To: <4B55778E.7000808@...1909...> References: <4B546ED7.4040708@...2350...> <201001181546.11673.gambas@...1...> <4B548D6E.10602@...2350...> <201001181807.26096.gambas@...1...> <4B54EBB9.2010406@...2350...> <4B55652D.4090903@...1909...> <4B55778E.7000808@...1909...> Message-ID: 2010/1/19 Doriano Blengino : > ? ?combo1.add('An item") > ? ?combo1_click ? ' would be better to "raise an event to an object" My last post aside, it is not the job of the calling code to know what the called code should do. Nor is the job of the calling code to do what the called code ought to have done if it was not done. End of discussion. Regards, From eilert-sprachen at ...221... Tue Jan 19 10:57:35 2010 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Tue, 19 Jan 2010 10:57:35 +0100 Subject: [Gambas-user] LOCK only within OPEN/CLOSE? Message-ID: <4B55820F.4080103@...221...> Just tried to rewrite a function I used for locking files in my Gambas1 apps. It was based on making a directory for locking, and it delivered a Boolean about if locking was successful or not. Think of it this way: Private Function FileIsLocked(filename As String) As Boolean Now, when I tried to change the functional part so it uses LOCK instead of my original mechanism, I get "Useless LOCK". Does this mean, LOCK can only be used within an OPEN/CLOSE statement? Or maybe only directly following an OPEN statement? That would be a shame, because this would mean doing without my own function and including a lot of code into each OPEN session anywhere it is needed. This wouldn't only blow up my code unnecessarily but also require me to browse through all the places where file locking is used. Or did I get this error message wrong? Regards Rolf From alpeachey at ...626... Tue Jan 19 11:15:52 2010 From: alpeachey at ...626... (Aaron Peachey) Date: Tue, 19 Jan 2010 21:15:52 +1100 Subject: [Gambas-user] Custom controls - 1 more question Message-ID: <4B558658.4070709@...626...> Yes, this is the code in my form's class file: PUBLIC SUB Form_Open() DIM lblName AS Label lblName = NEW Label(ME) lblName.Show() END From nospam.nospam.nospam at ...626... Tue Jan 19 11:47:12 2010 From: nospam.nospam.nospam at ...626... (Kadaitcha Man) Date: Tue, 19 Jan 2010 21:47:12 +1100 Subject: [Gambas-user] Custom controls - 1 more question In-Reply-To: <4B558658.4070709@...626...> References: <4B558658.4070709@...626...> Message-ID: 2010/1/19 Aaron Peachey : > Yes, this is the code in my form's class file: > > PUBLIC SUB Form_Open() > ?DIM lblName AS Label > ?lblName = NEW Label(ME) > ?lblName.Show() > END Erm... have you tried putting text in the label's Caption property, set its width and X, Y location so that it is within the visible area of the form, yes? No, you haven't? There's your problem then, hey. The field has no text so it can't be seen, even if it is hiding behind the window title-bar. Also, lose lblName.Show(). Regards,